
:root {
    --active-tab-colour: #fde8d8;
    --inactive-tab-colour: #f590b0;
    --title-footer-colour: #e8407a;
}

*{
	margin			: 0px;
}

/* The document must never be horizontally scrollable. body already clipped its own overflow,
   but body is not the root: with the root still scrollable sideways, Chrome widens the layout
   viewport to fit the widest content, and a fixed element anchored to its RIGHT edge then opens
   past the right of the screen. That is what put the phone navigation drawer off-screen on the
   Withdrawals tab, reachable only by pinching out.
   `clip`, not `hidden`, on purpose: `hidden` would make the root a scroll container, and
   #navbar's position:sticky resolves against the nearest scroll container, so the tab bar would
   stop sticking to the viewport. `clip` clips without scrolling and leaves sticky alone. A
   browser too old for `clip` ignores the line and is no worse off than before. */
html{
    overflow-x      : clip;
    /* Always reserve the vertical scrollbar's track, whether or not a scrollbar is showing.
       body used to do this with `padding-left: calc(100vw - 100%)`, which is the scrollbar's
       width on a page that scrolls and zero on a page that does not, so the whole shell sat
       about 15px further right on a long page than on a short one. Reserving the gutter keeps
       the layout width identical either way, so nothing moves.
       A browser without scrollbar-gutter ignores this and is no worse off than it was before
       the padding went in: content sits flush left and only shifts if a scrollbar appears. */
    scrollbar-gutter: stable;
}

body{
  	color			: #000;
    background      : linear-gradient(to right, #ff66c4, #ff914d);
    background-attachment: fixed;
  	font			: 400 16px/24px Roboto,sans-serif;
  	font-family		: 'Roboto','Helvetica Neue',Helvetica,sans-serif;
  	line-height		: 23px;
    /* No scrollbar compensation here: html reserves the gutter instead. This shifted the shell
       right by the scrollbar's width on scrolling pages only, which is what made a page without
       one look like everything had moved left. It was already overridden to 0 in wide mode and
       on phones, so the inconsistency only ever showed in the normal desktop shell. */
    overflow-x      : clip;
}

/* The page frame: one 1px line on the wrapper, instead of a 2px border restated on each child
   which used to stack up at every seam. Deliberately NOT overflow:hidden, because that would
   make #navbar's position:sticky stick to the wrapper rather than the viewport and the nav
   would scroll away. The banner and footer keep their own corner radii so they follow this
   border's curve without needing to be clipped. */
#wrapper{
	border			: 1px solid #e8407a;
	border-radius	: 6px;
	width			: 100%;
	max-width		: 1000px;
    background      : #ff8fab;
    margin-top      : 10px;
    margin-bottom   : 10px;
	margin-right	: auto;
	margin-left		: auto;
	height			: auto;
    padding-bottom	: 0px;
	padding-top		: 0px;
	box-sizing		: border-box;
}

/* The shell children fill whatever #wrapper allows and never state a cap of their own.
   The width of the page is declared in exactly one place, on #wrapper, in three rules:
   the default, wide-mode, and the wide-screen media query. It used to be restated on all
   six of these as well, which is how the wide-screen change first landed with the page
   still pinned at 1000px: six values were updated and the seventh, the one that actually
   governs, was missed. */
#banner,#statusbar,#navbar,#content,#container,#footer{
	width			: 100%;
	margin			: auto;
	box-sizing		: border-box;
}
/* The artwork is painted as a background; the <img> inside is invisible and exists only to
   give the div its height. The background colour is sampled from the artwork's own edges
   (#2e2a23, consistent on three sides), so where the banner is wider than the image's aspect
   ratio the fill either side is indistinguishable from the image. It is letterboxed, it just
   does not read as letterboxed. 'contain' keeps the whole image visible and centred instead
   of cropping its sides as the old 'auto 100%' did in wide mode. */
/* The artwork is set here AND as the <img> src in form.php: the img is transparent and exists
   only to give the box its height, so both have to name the same brand asset.

   A brand may supply its ground as a CSS value rather than baking it into the image. That is
   what bannerGradient is: the artwork keeps its alpha and this element paints the ground behind
   it, so the ground is always exactly the element's size. Baking a gradient into the image
   instead left a visible seam wherever the image's edge colour met the bar or the page, because
   the two were sized and positioned independently. A brand with a full-bleed banner (PMDES's
   header.png) sets no gradient and gets the single-layer rules it always had. */
#banner{
	height			: auto;
	max-height		: 200px;
	background-color: #2e2a23;
	color			: #fff;
	border-radius	: 6px 6px 0px 0px;
	margin			: 0px auto;
	background-image: url(/images/header.png);
	background-position: center;
	background-repeat: no-repeat;
	background-size	: contain;
	position		: relative;
	z-index			: 0;
	overflow		: hidden;
}
#banner img{
	width: 100%;
	height: auto;
	max-height: 200px;
	opacity:0;
}
/* The status block: page title, who you are, venue and dates. Scrolls away normally.
   It used to be the sticky element, which pinned the whole header and ate the viewport
   on small screens. Only #navbar below is pinned now. */
#statusbar{
    background-color: #e8407a;
}

/* The tab navigation, pinned to the top. This has to be a SIBLING of #statusbar, not a
   child: a sticky element only stays pinned while its own parent is still in view, so
   nesting it inside the status block would scroll it away with the block. */
#navbar{
    position		: sticky;
    top				: 0;
    z-index			: 100;
    background-color: #e8407a;
}

#footer{
	height			: auto;
	/* 5px, not 6. #wrapper is rounded 6px on a 1px border, so the curve on the inside of it
	   is 6 minus the border: 5. At 6 the footer's corner pulled away from the wrapper's and
	   the wrapper's own background showed through the gap as two small light arcs at the
	   bottom left and right. */
	border-radius	: 0px 0px 5px 5px;
	background-color: #e8407a;
	margin			: auto;
}

body.wide-mode {
	padding-left	: 0;
}
body.wide-mode #wrapper {
	max-width		: calc(100% - 24px);
}
body.wide-mode #banner {
	background-size		: contain;
	background-position	: center;
}
body.wide-mode #banner img {
	width			: 1000px;
}

#content{
	height			: auto;
	background		: #fff;
	margin			: auto;
	overflow-x		: hidden;
}

#container{
	display			: flow-root;
	background		: #fde8d8;
	text-align		: left;
	position		: relative;
	z-index			: 1;
}
#container3{
	overflow		: hidden;
	background		: #f07aaa;
	text-align		: left;
	position		: relative;
	z-index			: 3;
	/* Padding, not a border. These were three 2px borders painted in the background's own
	   colour, which is not a border: it is two pixels of fill with an edge declared on it that
	   nothing could ever see. Recolouring them so they could be seen drew a line across the
	   top, left and right that was never part of the design, so they become what they always
	   actually were. Same pixels, and no colour doing two jobs. */
	padding			: 2px 2px 0;
	/* Right edge only.
	   The left shadow went first: it fell across the tab above rather than away from the panel,
	   so the two read as overlapping instead of joined.
	   The upward one goes for the same reason, one step later. A -5px vertical offset threw the
	   shadow ABOVE the panel, where #navbar covered it at the top of the page. #navbar is
	   sticky, so scrolling pins it to the viewport while this panel travels up, and the band it
	   had been hiding appeared between the tabs and the first fieldset: about 3px tall and
	   wider than the panel on the right, which is the blur plus the 5px offset.
	   A panel joined to the tabs along its top edge should not cast a shadow onto them.
	   Spread of -3px cancels the blur's vertical bleed, so the shadow stays on the right edge
	   instead of creeping back above and below. */
	box-shadow		: rgba(0, 0, 0, 0.15) 5px 0px 3px -3px;
}

#lcontain,#rcontain,#fourcontain{
	text-align		: center;
    padding-bottom	: 20px;
}

/* ---- Wide screens: fieldsets packed into columns --------------------------------------
   At 1000px the page is a single column, which leaves most of a 4K display empty. Above
   1900px the shell widens and the tiles are packed into two columns by form.php's JS,
   shortest column first so the two sides finish level rather than one running long.
   The packing is JS because no CSS mechanism does shortest-first: multi-column balances by
   splitting content mid-element, and grid fills in source order regardless of height.
   Tiles are whole <form> elements (autoform.php emits one form per fieldset), so moving one
   moves its inputs with it and submission is unaffected. */
#container.packed, #container3.packed{
	/* #container3 is overflow:hidden normally, which makes it a scroll container, and a sticky
	   descendant then sticks to THAT box rather than the viewport. Since the box never scrolls,
	   nothing sticks. The flex context here already contains floats, so the clip is not needed
	   while packed. */
	overflow		: visible;
}
.packcol{
	flex			: 1 1 0;
	min-width		: 0;
}
/* The fieldset margin already provides the gutter; without this the middle gap doubles. */
.packcol > form > fieldset,
.packcol > fieldset{
	width			: calc(100% - 40px);
}

/* Above 1900px the 1000px shell is released and the page uses whatever width is actually
   there, rather than stopping at a second fixed cap. #wrapper has to be in this list: it
   caps everything inside it, so widening only the inner elements leaves the columns
   squeezed into the old width. The column COUNT steps up with the viewport in form.php,
   which is what keeps each column readable instead of just stretching two of them. */
@media only screen and (min-width: 1900px){
	#wrapper{
		max-width	: calc(100% - 40px);
	}
	/* wide-mode tabs declare their own wrapper cap at a higher specificity, so it has to be
	   restated here or they would stay at the 24px gutter while everything else moved. */
	body.wide-mode #wrapper{
		max-width	: calc(100% - 40px);
	}
}

/* ---- Tile roles ------------------------------------------------------------------------
   Instruction tiles are prose, navigation tiles are a picker. Both are read or used once and
   then worked beneath, so on wide screens they pack into the leftmost column (see form.php)
   and the navigation one stays in view while you scroll the content beside it.

   Colours are the brand gradient stops local uses on the social cards, so the two stay
   consistent. Checked for contrast rather than chosen by eye: white text sits at 7.88:1 on
   #5b3fa0, 9.34:1 on #7A1F6E and 5.09:1 on #C42C93, so it clears 4.5:1 across the whole
   sweep. #E8459E was dropped from the gradient at 3.64:1, which only passes for large text.

   Note the legend: a script sets every legend's background from its fieldset's border colour,
   so the border colour here is doing double duty and the legend text is set to match it. */
/* fieldset.instruction-note is the same treatment for a block that cannot be a top-level
   tile. The checkout page is one big form with nested fieldsets, so its guidance cannot be
   lifted out into the column layout without restructuring the payment page. It still reads as
   instruction rather than as more body copy. */
.tile-instruction > fieldset,
fieldset.instruction-note{
	background		: linear-gradient(160deg, #fff8ef 0%, #ffe9d5 100%);
	border			: 1px solid #e3b98f;
	border-left		: 5px solid #ff914d;
}
.tile-instruction > fieldset > legend,
fieldset.instruction-note > legend{
	color			: #000;
	font-style		: italic;
}
fieldset.instruction-note p,
.tile-instruction > fieldset p,
.tile-instruction > fieldset li{
	color			: #3a2a1c;
	line-height		: 1.55;
}

.tile-navigation > fieldset{
	background		: linear-gradient(135deg, #5b3fa0 0%, #7A1F6E 55%, #C42C93 100%);
	/* Border colour is the gradient's FAR end, not its near one. A script paints each legend
	   with its fieldset's border colour, and the legend sits at the top left where this
	   gradient starts at #5b3fa0, so matching that made the legend vanish into the panel.
	   #C42C93 is the opposite stop, so the legend reads as a tab against the purple corner.
	   White on it is 5.09:1. */
	border			: 1px solid #C42C93;
	box-shadow		: 0 2px 14px rgba(91,63,160,.35);
}
.tile-navigation > fieldset > legend{
	color			: #fff;
	font-weight		: bold;
}
/* Everything that is not a control inherits the light-on-dark treatment. */
/* Same ID-rule problem: #container p beats a class selector, so the paragraphs on the dark
   navigation tile were rendering black on purple. */
.tile-navigation > fieldset,
.tile-navigation > fieldset label,
#container .tile-navigation > fieldset p,
#container3 .tile-navigation > fieldset p,
.tile-navigation > fieldset p{
	color			: #fff;
}
/* The control itself stays a normal light control: dark text on white reads better in a
   dropdown than any tinted variant, and it marks the one thing on the tile you act on. */
/* Colour only. The control's geometry belongs to select#soflow, an ID rule carrying the
   padding, width and -webkit-appearance it is built around; overriding the padding here
   pushed the text out of the box and clipped it. */
.tile-navigation > fieldset select,
.tile-navigation > fieldset input{
	background-color: #fff;
	color			: #000;
	border-color	: rgba(255,255,255,.75);
}
.tile-navigation > fieldset select:focus,
.tile-navigation > fieldset input:focus{
	outline			: 3px solid #ffd9f0;
	outline-offset	: 1px;
}

/* The instruction and navigation tiles ride together in a group at the top of the left
   column, and that group is what sticks. Sticking each tile separately would have them
   overlap each other at the same offset as you scroll.

   'can-stick' is added by form.php only when the group is short enough to leave a usable
   slice of viewport below it. A group taller than the screen would pin content permanently
   off the bottom, which is worse than not sticking at all. Only ever applied while packed:
   in a single column there is nothing beside it to scroll past. */
/* The reserved column spans the row so its sticky group has somewhere to travel. A sticky
   element moves only inside its own parent's box, and a column holding nothing but the group is
   exactly as tall as it, which pins nothing. .packrow is align-items:flex-start so every column
   shrink-wraps to its content, which is what the content columns want and the opposite of what
   this one needs. The class is set by form.php alongside can-stick. */
.packrow > .packcol.hasstickygroup{
	align-self		: stretch;
}
.packcol > .stickygroup.can-stick{
	position		: sticky;
	top				: var(--stickytop, 90px);
	z-index			: 2;
}

/* A form whose body is one fieldset per competitor or per section used to draw a box around a
   stack of boxes, and that outer box also meant the inner ones could not spread across the
   column layout. When form.php packs them (see wideColumns), the wrapper gives up its chrome
   and becomes just the flex context, so the per-competitor fieldsets read as the tiles they
   are. The legend stays as the heading it always was, but is painted explicitly: a script sets
   each legend's background from its fieldset's border colour, and this fieldset no longer has
   one. */
/* The columns live in their own row, not in the wrapper itself. Making the wrapper a flex
   container turned everything beside the fieldsets into a flex item: on checkout the entry
   status heading, the totals and the invoice button each took a column. In a row, that content
   keeps normal flow at full width and only the fieldsets are columnised. */
.packrow{
	display			: flex;
	align-items		: flex-start;
	width			: 100%;
}
fieldset.fieldset-unwrapped{
	border			: 0;
	box-shadow		: none;
	background		: transparent;
	padding			: 0;
	margin			: 0 0 10px;
	width			: 100%;
}
fieldset.fieldset-unwrapped > legend{
	/* #a0334a rather than the lighter brand pink: white on that pink is 3.86:1, which fails
	   for a 16px bold legend. This is 6.85:1. */
	background		: #a0334a !important;
	color			: #fff;
	border-radius	: 6px;
	padding			: 4px 12px;
	margin-bottom	: 6px;
}

/* Entry status sits at the top of the checkout page and is the one thing people come to that
   page to read, so it is given weight rather than being another paragraph. The h1 above it
   carries the state word itself (Complete, or an amount owing); this is the sentence under it.
   Black on the pale ground is 17.7:1. */
p.entry-status{
	font-weight		: bold;
	font-size		: 1.05em;
	margin			: 0 0 4px;
	color			: #231f20;
}
p.entry-status:empty{
	display			: none;
}
p.entry-status-note{
	margin			: 0 0 14px;
	color			: #4a3a40;
}

/* The three figures on the checkout page are one calculation, not three remarks, so they are
   a single panel with the balance marked as the line that matters. Full width and centred: it
   is the summary of the page, not an aside, and it reads as a statement rather than a note in
   the margin.

   Colours are the brand gradient used on the navigation tiles, so the two read as the same
   system. Checked rather than eyeballed: white on #5b3fa0 is 7.88:1 and on #7A1F6E is 9.34:1,
   both clear of 4.5:1. The balance is separated by a rule as well as by size, so it does not
   rely on colour alone. */
.balance-summary{
	background		: linear-gradient(135deg, #5b3fa0 0%, #7A1F6E 100%);
	border			: 0;
	border-radius	: 8px;
	padding			: 18px 20px;
	/* Matches the fieldset rule (margin 20px, width calc(100% - 40px)) so it lines up with the
	   boxes above and below it instead of running to the edges on its own. */
	margin			: 16px 20px;
	width			: calc(100% - 40px);
	box-sizing		: border-box;
	text-align		: center;
	box-shadow		: 0 2px 14px rgba(91,63,160,.3);
}
/* Prefixed with #container deliberately. `#container p { color: black }` is an ID selector and
   silently beats any class rule, so white text set here alone rendered black on the gradient.
   The same trap has now caught the select padding, the styled-select background and this. */
#container .balance-summary p,
#container3 .balance-summary p,
.balance-summary p{
	margin			: 0 0 8px;
	color			: #fff;
	font-size		: 1em;
}
/* Payments received sit inside the summary now, so they need to read as a sub-list within it
   rather than as more body copy. Left-aligned against the centred totals on purpose: a list of
   references and amounts is easier to scan down one edge. */
#container .balance-summary p.balance-heading,
#container3 .balance-summary p.balance-heading,
.balance-summary p.balance-heading{
	margin			: 12px 0 4px;
	font-size		: 0.8em;
	text-transform	: uppercase;
	letter-spacing	: 0.08em;
	opacity			: 0.85;
}
#container .balance-summary p.balance-payment,
#container3 .balance-summary p.balance-payment,
.balance-summary p.balance-payment{
	display			: flex;
	justify-content	: space-between;
	gap				: 12px;
	text-align		: left;
	/* auto margins centre the capped block in the tile. Every other line in this summary is a
	   plain <p>, and the global `p { text-align: center }` centres those, so a left-hugging
	   block here was the odd one out. */
	margin			: 0 auto 3px;
	font-size		: 0.8em;
	opacity			: 0.9;
	/* Capped, not full width. space-between across the whole tile threw the reference against
	   the left edge and the amount against the right, a hand's width apart on a desktop, which
	   stopped reading as one line. Every other line in this summary is plain inline text, so
	   these were also the only ones spreading. The cap keeps the pair together while the
	   amounts still line up under each other, which is the reason for the flex in the first
	   place. */
	max-width		: 34em;
	/* The payment intent reference is long and must not push the amount off the tile. */
	word-break		: break-all;
}
#container .balance-summary p.balance-payment span,
#container3 .balance-summary p.balance-payment span,
.balance-summary p.balance-payment span{
	flex			: 0 0 auto;
	font-weight		: bold;
	word-break		: normal;
}

#container .balance-summary p.balance-line,
#container3 .balance-summary p.balance-line,
.balance-summary p.balance-line{
	margin			: 14px 0 0;
	padding-top		: 14px;
	border-top		: 2px solid rgba(255,255,255,.4);
	font-weight		: bold;
	font-size		: 1.45em;
	color			: #fff;
	letter-spacing	: 0.01em;
}
@media only screen and (max-width: 600px){
	.balance-summary{
		padding		: 14px 14px;
		/* The phone rules take fieldsets to margin 10px 0 and width 100%, so this follows. */
		margin		: 10px 0;
		width		: 100%;
	}
	.balance-summary p.balance-line{
		font-size	: 1.25em;
	}
}

/* Item Details is a fieldset per competitor, each holding a fieldset per item. The competitor
   fieldset is the top-level box, so it keeps the normal fieldset chrome: it was stripped at
   first, which left the items as the only boxes and the competitor as a floating heading. Its
   legend is just a legend, painted from its own border like every other, so nothing special is
   needed here beyond the spacing that stops two nested boxes crowding each other. */
fieldset.owner-group{
	margin-bottom	: 24px;
}
fieldset.owner-group > fieldset{
	margin			: 14px 20px;
	width			: calc(100% - 40px);
}

/* Prose lists. The global `li { float: left }` exists for the tab navigation but applies to
   every list on the site, and `ul` carries a pink background with no padding for the same
   reason, so an ordinary bulleted list renders as a single run-on line on a pink strip. Any
   list written as content needs this to read as a list. */
ul.info-list{
	list-style-type	: disc;
	background		: transparent;
	/* Centred as a block, with the items still ranged left inside it. The paragraphs around
	   these lists are centred by the global `p { text-align: center }`, so a list pinned to the
	   left edge by a left margin was the only thing not lining up. The indent that margin used
	   to provide comes from padding instead, so auto margins are free to do the centring.
	   The cap is a readable measure: centring a full-width list would leave the bullets adrift
	   from the text above them on a wide screen. */
	max-width		: 46em;
	margin			: 10px auto 14px;
	padding			: 0 0 0 26px;
	box-sizing		: border-box;
}
ul.info-list > li{
	float			: none;
	position		: static;
	display			: list-item;
	margin			: 0 0 7px;
	line-height		: 1.5;
	text-align		: left;
}


/* Link state on the sync instructions. Three states, each carrying a word as well as a colour
   so the meaning does not depend on seeing the difference. Contrast on the pale instruction
   ground: #1b5e20 is 7.4:1, #8a4b00 is 5.2:1, #43484d is 7.8:1. */
p.link-state{
	margin			: 0 0 12px;
	padding			: 9px 12px;
	border-radius	: 6px;
	border-left		: 4px solid currentColor;
	font-weight		: bold;
	font-size		: 0.95em;
	background		: rgba(255,255,255,.55);
}
p.link-state.link-up   { color: #1b5e20; }
p.link-state.link-down { color: #8a4b00; }
p.link-state.link-idle { color: #43484d; }


/* The pinned action bar, at every width. These buttons move you between tabs and between items,
   and at the foot of a long entry form they were below the fold on a desktop just as much as on
   a phone. The buttons do not move in the DOM, so they still submit the form they belong to;
   only the painting changes.

   The row stays a grid, so its existing left and right placement still holds, but it is capped
   to the page width and centred so the buttons line up with the content above them rather than
   sitting at the far corners of a 4K display. */
#buttonrow.buttonbar-fixed{
	position		: fixed;
	left			: 0;
	right			: 0;
	bottom			: 0;
	z-index			: 900;
	/* Same width as the footer it comes to rest on, so the two read as one piece of furniture
	   rather than a strip floating across an unrelated page. Centred with auto margins, not a
	   translateX: form.php drives the footer lift with translateY, and a transform here would
	   be overwritten by it. The caps mirror #wrapper's, which is where the footer's width
	   actually comes from. */
	width			: 100%;
	max-width		: 1000px;
	margin			: 0 auto;
	/* Without this the bar is content-box, because the global reset sets only margin. form.php
	   sets its width to the footer's measured width, and the padding then pushed it 28px past
	   the right edge. */
	box-sizing		: border-box;
	padding			: 10px 14px calc(10px + env(safe-area-inset-bottom));
	gap				: 10px;
	background		: #e8407a;
	box-shadow		: 0 -2px 12px rgba(0,0,0,.3);
	border-radius	: 6px 6px 0 0;
}
body.wide-mode #buttonrow.buttonbar-fixed{
	max-width		: calc(100% - 24px);
}
/* Has to sit AFTER the base rule, not up with the other 1900px rules. Both selectors are
   (1,1,0), so at equal specificity the later one wins and a cap declared earlier would simply
   be overwritten by the 1000px default. */
@media only screen and (min-width: 1900px){
	#buttonrow.buttonbar-fixed,
	body.wide-mode #buttonrow.buttonbar-fixed{
		max-width	: calc(100% - 40px);
	}
}
#buttonrow.buttonbar-fixed .button{
	margin			: 0;
}
/* The clearance goes on the CONTENT, not on the body. On the body it reserved space after the
   footer as well, so the footer and the bar ended up competing for the same strip at the bottom
   of the page. With it on the content, the content clears the bar, the footer follows
   immediately after, and form.php lifts the bar out of the footer's way as it scrolls into
   view: the footer pushes the bar up and sits beneath it. The exact height is measured there,
   since it depends on how many buttons the tab has and how they wrap. */
body.has-button-bar #container,
body.has-button-bar #content{
	padding-bottom	: var(--buttonbar-height, 96px);
}
@media only screen and (max-width: 800px){
	#buttonrow.buttonbar-fixed{
		padding		: 8px 10px calc(8px + env(safe-area-inset-bottom));
		gap			: 8px;
	}
	#buttonrow.buttonbar-fixed .button{
		width		: 100%;
		padding		: 11px 6px;
		font-size	: 13px;
	}
}


/* An item's description: guidance about what belongs in that section, shown inside the item's
   own fieldset. It was an <h4> padded with <br>, so body copy was the largest text in the box
   and screen readers were handed a heading that is not one.

   It keeps the left-edge accent the site's notices use, but in the brand pink rather than the
   warning amber: a description of what belongs in a section is guidance, not a caution, and
   borrowing the warning tone would have made every item look like it had a problem. */
.item-note{
	/* A pale panel floated over the fieldset's own pink, rather than the amber used by
	   .msg-notification.msg-warning. The amber reads as a caution, and an item description is
	   not a caution, it is just guidance about what belongs in that section. White at 72% over
	   the fieldset ground resolves to #fce0e9, and #2b2124 on that is 12.62:1. */
	background		: rgba(255,255,255,.72);
	border			: 1px solid rgba(255,255,255,.9);
	border-left		: 4px solid #e8407a;
	color			: #2b2124;
	/* Rounded on all four corners. It was squared off on the left to sit flush against the
	   accent edge, but that edge is part of the same box, so the result just looked clipped. */
	border-radius	: 6px;
	padding			: 10px 14px;
	/* Equal margins, and no max-width. The cap was holding it short of the fieldset's right
	   edge while its left margin lined up with everything else, which read as a mistake rather
	   than as a measure. */
	margin			: 10px 20px 14px;
	font-size		: 0.92em;
	line-height		: 1.5;
	text-align		: left;
}
@media only screen and (max-width: 600px){
	.item-note{
		margin		: 10px 0 14px;
	}
}

/* A wrapper fieldset whose contents are themselves fieldsets gives up its appearance entirely,
   legend included. The legend carried the form's title, which on these tabs restates what the
   tab already says: "Withdraw from Sections" above the list of sections to withdraw from. The
   element stays in the DOM because the column packer needs something to pack into, so this is
   presentation only. Marked by form.php at every width, not only when packing. */
fieldset.fieldset-passthrough{
	border			: 0;
	box-shadow		: none;
	background		: transparent;
	padding			: 0;
	margin			: 0;
	width			: 100%;
}
fieldset.fieldset-passthrough > legend{
	display			: none;
}



/* The unsynced-changes dialog. Built rather than using alert(), so it can explain what is
   actually happening and offer the safe choice first. Contrast checked: white on #5b3fa0 is
   7.88:1, and the body text is near-black on white at 18:1. */
#leaveguard{
	position		: fixed;
	inset			: 0;
	background		: rgba(0,0,0,.55);
	display			: none;
	align-items		: center;
	justify-content	: center;
	z-index			: 1100;
	padding			: 20px;
}
#leaveguard.open{
	display			: flex;
}
#leaveguard .lg-box{
	background		: #fff;
	border-radius	: 10px;
	max-width		: 460px;
	width			: 100%;
	padding			: 22px 24px 18px;
	box-shadow		: 0 12px 40px rgba(0,0,0,.4);
	text-align		: left;
}
#leaveguard h2{
	margin			: 0 0 10px;
	font-size		: 1.15em;
	color			: #231f20;
	text-align		: left;
	padding			: 0;
}
#leaveguard p{
	margin			: 0 0 18px;
	color			: #231f20;
	font-size		: 0.95em;
	line-height		: 1.5;
	text-align		: left;
}
#leaveguard .lg-actions{
	display			: flex;
	gap				: 10px;
	justify-content	: flex-end;
	flex-wrap		: wrap;
}
#leaveguard .lg-actions .button{
	margin			: 0;
}
/* The safe choice is the solid one. Leaving is still available, just not the thing your eye
   lands on and your finger finds first. */
#leaveguard .lg-stay{
	background		: #5b3fa0;
	color			: #fff;
}
#leaveguard .lg-go{
	background		: transparent;
	color			: #5b3fa0;
	border			: 1px solid #5b3fa0;
}
@media only screen and (max-width: 600px){
	#leaveguard .lg-actions{
		flex-direction	: column-reverse;
	}
	#leaveguard .lg-actions .button{
		width			: 100%;
	}
}


/* A wrapper fieldset whose contents are themselves fieldsets gives up its appearance entirely,
   legend included. The legend carried the form's title, which on these tabs restates what the
   tab already says: "Withdraw from Sections" above the list of sections to withdraw from. The
   element stays in the DOM because the column packer needs something to pack into, so this is
   presentation only. Marked by form.php at every width, not only when packing. */
fieldset.fieldset-passthrough{
	border			: 0;
	box-shadow		: none;
	background		: transparent;
	padding			: 0;
	margin			: 0;
	width			: 100%;
}
fieldset.fieldset-passthrough > legend{
	display			: none;
}



/* Event notices: the section, championship and scholarship rules, and the studio report notes.
   Several hundred words of eligibility rules that people read carefully and still get wrong, so
   they take the same treatment as the other guidance on the site rather than being bare prose.

   The text-align and color here are prefixed with #container because the stylesheet carries
   `#container p { text-align: center; color: black }` as an ID rule, which a class cannot beat.
   Centred rules are genuinely hard to read at this length. */
.event-notice{
	background		: rgba(255,255,255,.72);
	border			: 1px solid rgba(255,255,255,.9);
	border-left		: 4px solid #e8407a;
	border-radius	: 6px;
	padding			: 14px 18px;
	margin			: 16px 20px;
	line-height		: 1.55;
}
#container .event-notice p,
#container3 .event-notice p,
.event-notice p{
	text-align		: left;
	color			: #2b2124;
	margin			: 0 0 10px;
	font-size		: 0.95em;
}
#container .event-notice p:last-child,
#container3 .event-notice p:last-child,
.event-notice p:last-child{
	margin-bottom	: 0;
}
/* Paragraphs that are nothing but a bold heading, marked server-side by eventNoticeHtml. Not
   done with p > strong:only-child, which looks equivalent but matches any paragraph whose only
   ELEMENT child is a strong, text around it or not. That broke "The <strong>entrants listed
   below</strong> have selected..." across two lines with the strong styled as a heading. */
#container .event-notice p.notice-heading,
#container3 .event-notice p.notice-heading,
.event-notice p.notice-heading{
	font-size		: 1.05em;
	color			: #a0334a;
	letter-spacing	: 0.02em;
	margin			: 14px 0 8px;
}
.event-notice p.notice-heading:first-child{
	margin-top		: 0;
}
.event-notice ul,
.event-notice ol{
	background		: transparent;
	margin			: 8px 0 12px 24px;
	padding			: 0;
}
.event-notice ul{ list-style-type: disc; }
.event-notice ol{ list-style-type: decimal; }
.event-notice li{
	float			: none;
	position		: static;
	display			: list-item;
	margin			: 0 0 6px;
	text-align		: left;
}
@media only screen and (max-width: 600px){
	.event-notice{
		margin		: 14px 0;
		padding		: 12px 14px;
	}
}


#lcontain{
	margin			: auto;
	width			: 300px;
	float			: left;
	background		: #eeeeee;
}

#rcontain{
	margin			: auto;
	width			: 550px;
	float			: right;
	background		: #eeeeee;
}

#fourcontain{
	margin			: auto;
	width			: 212px;
	float			: left;
	background		: rgba(0, 147, 214, 0.2);
}

#fourgroup{
	margin			: auto;
	width			: 850px;
	height			: 600px; /* this wasn't active */
	float			: left;
	background		: rgba(0, 147, 214, 0.2);
}

#buttonright button {
	float			: right;
}

/* The button row doubles as the page's bottom navigation. On a phone it is pinned to the
   foot of the screen where thumbs reach, which form.php enables by adding .buttonbar-fixed
   (only when there is exactly one row on the page; nine tabs carry two, and two pinned bars
   would stack on top of each other).

   The buttons stay inside their <form> in the DOM. A fixed element still submits the form it
   belongs to, so nothing about posting changes. */
/* ---- Save status pill -------------------------------------------------------------------
   One per page, fixed under the pinned nav. The per-field marks say where an individual change
   is up to; this says whether the page as a whole has anything outstanding, which is what you
   want to know before closing the tab. Hidden until there is something to report. */
#savepill{
	position		: fixed;
	top				: 12px;
	left			: 50%;
	transform		: translateX(-50%) translateY(-14px);
	z-index			: 1000;
	padding			: 8px 16px;
	border-radius	: 999px;
	font			: bold 13px/1 Arial, Helvetica, sans-serif;
	color			: #fff;
	box-shadow		: 0 3px 14px rgba(0,0,0,.3);
	opacity			: 0;
	visibility		: hidden;
	transition		: opacity .18s ease, transform .18s ease;
	pointer-events	: none;
	white-space		: nowrap;
	max-width		: calc(100% - 24px);
	overflow		: hidden;
	text-overflow	: ellipsis;
}
#savepill.savepill-show{
	opacity			: 1;
	visibility		: visible;
	transform		: translateX(-50%) translateY(0);
}
#savepill.savepill-saving{ background: #5b3fa0; }
#savepill.savepill-saved { background: #1b7f3b; }
#savepill.savepill-error { background: #b71c1c; }

@media only screen and (max-width: 800px){
	/* Sits above the button bar at the foot, clear of the pinned nav at the top. The offset
	   is only applied when a bar is actually there; the fallback used to lift the pill 70px
	   off the bottom on every page that has no buttons. */
	#savepill{
		top			: auto;
		bottom		: 14px;
		transform	: translateX(-50%) translateY(14px);
		font-size	: 14px;
		padding		: 10px 18px;
	}
	#savepill.savepill-show{ transform: translateX(-50%) translateY(0); }
	body.has-button-bar #savepill{
		bottom		: calc(var(--buttonbar-height, 70px) + 10px);
	}
}

#buttonrow {
	display				: grid;
	grid-template-columns	: 1fr 1fr;
	gap					: 6px;
	margin-top			: 8px;
}
#buttonrow .button-left,
#buttonrow .button-right {
	display				: contents;
}
#buttonrow .button-left > *:nth-child(1) { grid-column: 1; grid-row: 1; }
#buttonrow .button-left > *:nth-child(2) { grid-column: 1; grid-row: 2; }
#buttonrow .button-right > *:nth-child(1) { grid-column: 2; grid-row: 1; }
#buttonrow .button-right > *:nth-child(2) { grid-column: 2; grid-row: 2; }
/* Buttons that are neither a previous nor a next: a form's own ButtonTabs destinations. They
   span the full width under the left/right pair, auto-placed into the next free row, so a form
   with only these still gets a #buttonrow and still ends up in the pinned bar. */
#buttonrow .button-centre {
	grid-column		: 1 / -1;
	display			: flex;
	flex-wrap		: wrap;
	justify-content	: center;
	gap				: 6px;
}
#buttonrow.buttonbar-fixed .button-centre .button{
	flex			: 1 1 160px;
}
@media only screen and (max-width: 800px){
}

.btn-icon {
	width			: 16px;
	height			: 16px;
	fill			: currentColor;
	vertical-align	: middle;
	margin			: 0 5px;
	transform		: translateY(-1px);
}

#buttoncenter {
    display			: flex;
    justify-content	: center;
}

.nomargin{
	margin			: 1;
}

#message {
    display			: none;
    font-size		: 24px;
}

/* Notification banner system */
#notification-area {
    position        : sticky;
    top             : 0;
    z-index         : 200;
}
.msg-notification {
    display         : flex;
    align-items     : flex-start;
    gap             : 10px;
    padding         : 11px 14px;
    margin          : 0 0 2px;
    font-size       : 0.92em;
    line-height     : 1.45;
    border-radius   : 4px;
    animation       : notifPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.6s both, notifBeat 0.5s ease-in-out 1.2s;
}
.msg-notification.msg-error {
    background      : #fff0f5;
    border          : 1px solid #f590b0;
    border-left     : 4px solid #e8407a;
    color           : #6b1530;
}
.msg-notification.msg-success {
    background      : #f0fdf4;
    border          : 1px solid #86efac;
    border-left     : 4px solid #16a34a;
    color           : #14532d;
}
.msg-notification.msg-warning {
    background      : #fffbeb;
    border          : 1px solid #fcd34d;
    border-left     : 4px solid #d97706;
    color           : #78350f;
}
.msg-notification .msg-text {
    flex            : 1;
}
.msg-dismiss {
    background      : none;
    border          : none;
    cursor          : pointer;
    font-size       : 1.15em;
    line-height     : 1;
    padding         : 0 2px;
    opacity         : 0.5;
    color           : inherit;
    flex-shrink     : 0;
}
.msg-dismiss:hover { opacity: 1; }
h1.message, h2.message { font-size: inherit; font-weight: normal; margin: 0; }
@keyframes notifPop {
    0%   { opacity: 0; transform: translateY(-10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes notifBeat {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.025); }
    100% { transform: scale(1); }
}

span.error {
	display			: block;
	margin-left		: 40px;
	color			: #a0334a;
	font-size		: 0.85em;
	font-style		: italic;
}
span.error:not(:empty)::before {
	content				: '';
	display				: inline-block;
	width				: 18px;
	height				: 18px;
	background-image	: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon points='10,2 1,18 19,18' fill='%23FFD700' stroke='%23000' stroke-width='1'/%3E%3Ctext x='10' y='16' text-anchor='middle' font-size='9' font-weight='bold' fill='%231a1a1a'%3E!%3C/text%3E%3C/svg%3E");
	background-size		: contain;
	background-repeat	: no-repeat;
	margin-right		: 2px;
	vertical-align		: middle;
	transform			: translateY(-2px);
}

p.music-reminder {
	display			: block;
	margin			: 8px 0 8px 40px;
	padding			: 8px 12px;
	color			: #664d03;
	background-color	: #fff3cd;
	border			: 1px solid #ffe69c;
	border-radius	: 6px;
	font-size		: 0.9em;
	font-weight		: bold;
}

/* Music-change fee: once-at-top finalisation + fee explanation, and the per-item free-length line. */
.mcf-fee-notice {
	display			: block;
	margin			: 12px 0;
	padding			: 10px 14px;
	color			: #0c5460;
	background-color	: #d1ecf1;
	border			: 1px solid #bee5eb;
	border-radius	: 6px;
	font-size		: 0.9em;
	line-height		: 1.4;
}
p.mcf-limit {
	margin			: 4px 0 6px 0;
	color			: #555;
	font-size		: 0.85em;
	font-style		: italic;
}

@keyframes musicBounce {
	0%, 100%	{ transform: translateY(0)   rotate(-10deg); }
	50%			{ transform: translateY(-5px) rotate(10deg);  }
}
@keyframes musicBoxSpin {
	from	{ transform: perspective(80px) rotateY(0deg); }
	to		{ transform: perspective(80px) rotateY(360deg); }
}
span.uploading {
	display			: block;
	margin-left		: 40px;
	color			: #555;
	font-size		: 0.85em;
	font-style		: italic;
}
span.uploading:not(:empty)::before {
	content			: '♫';
	display			: inline-block;
	font-style		: normal;
	margin-right	: 5px;
	vertical-align	: middle;
	animation		: musicBounce 0.8s ease-in-out infinite;
}

span.confirmed {
	display			: block;
	margin-left		: 40px;
	color			: #a0334a;
	font-size		: 0.85em;
	font-style		: italic;
}
span.confirmed:not(:empty)::before {
	content			: '✓';
	color			: #2e7d32;
	font-style		: normal;
	margin-right	: 5px;
}

span.listen-required {
	display			: block;
	margin-left		: 40px;
	color			: #a0334a;
	font-size		: 0.85em;
	font-style		: italic;
}
span.listen-required:not(:empty)::before {
	content			: '▶';
	color			: #a0334a;
	font-style		: normal;
	margin-right	: 5px;
	vertical-align	: middle;
}
span.convert-failed {
	display			: block;
	margin-left		: 40px;
	color			: #a0334a;
	font-size		: 0.85em;
	font-style		: italic;
}
span.convert-failed:not(:empty)::before {
	content				: '';
	display				: inline-block;
	width				: 18px;
	height				: 18px;
	background-image	: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8' fill='none' stroke='%23a0334a' stroke-width='2'/%3E%3Cline x1='7' y1='7' x2='13' y2='13' stroke='%23a0334a' stroke-width='2'/%3E%3Cline x1='13' y1='7' x2='7' y2='13' stroke='%23a0334a' stroke-width='2'/%3E%3C/svg%3E");
	background-size		: contain;
	background-repeat	: no-repeat;
	margin-right		: 2px;
	vertical-align		: middle;
	transform			: translateY(-2px);
}

span.playing:not(:empty)::before {
	content				: '';
	display				: inline-block;
	width				: 22px;
	height				: 22px;
	background-image	: url('/images/eisteddfod-logo.svg');
	background-size		: contain;
	background-repeat	: no-repeat;
	background-position	: center;
	margin-right		: 4px;
	vertical-align		: middle;
	animation			: musicBoxSpin 2.5s linear infinite;
}

.notice-banner {
    background-color    : #fff3cd;
    border              : 1px solid #ffc107;
    border-radius       : 6px;
    padding             : 14px 18px;
    margin              : 20px;
    text-align          : center;
}

.button-danger {
    background-color    : #c0392b;
    color               : #fff;
    padding             : 6px 14px;
    font-size           : 13px;
    margin              : 0;
}
.button-danger:hover {
    background-color    : #922b21;
    color               : #fff;
}

.listing-table {
    width               : 100%;
    border-collapse     : collapse;
    margin-top          : 8px;
}
.listing-table th,
.listing-table td {
    text-align          : left;
    padding             : 8px 10px;
    border-bottom       : 1px solid #ddd;
}
.listing-table th {
    font-weight         : bold;
}

.upcoming-events-table {
    width               : 100%;
    border-collapse     : collapse;
    margin              : 16px 0;
}
.upcoming-events-table thead tr {
    background-color    : #e8407a;
    color               : #fff;
}
.upcoming-events-table th {
    padding             : 10px 14px;
    text-align          : left;
    font-weight         : bold;
}
.upcoming-events-table td {
    padding             : 10px 14px;
    box-shadow          : none;
}
.upcoming-events-table td:hover {
    box-shadow          : none;
}

img.displayed,#ul{
    display			: block;
    margin-left		: auto;
    margin-right	: auto;
	padding			: 10px;
}

img.left {
    	display			: block;
    	float			: left;
	padding				: 10px;
}

.button:active {
  	background-color	: lightBlue;
  	box-shadow			: 0 5px #666;
  	font-size			: 16px;
}

.remover:active {
    opacity			: 0.0;
  	box-shadow		: none;
}

.remover:focus {
	opacity			: 0.2;
  	box-shadow		: none;
}

.disabled {
	background-color	: lightgrey;
    cursor				: not-allowed;
    color				: black;
}

.disabled:hover {
	font-size				: 16px;
	border					: 1px solid black;
	background-color		: lightgrey;
	margin					: 8px 1px 0px 1px;
	color					: black;
	box-shadow				: none;
}

.table-container {
    text-align: center; /* This centers the table within the container horizontally */
}

table {
	overflow				: hidden; /* Ensure the rounded corners are visible */
    font-size				: 0.9em;
    font-family				: sans-serif;
    min-width				: 100%;
	max-width				: 100%;
    margin					: 0 auto; /* This centers the table within the div container horizontally */
}



thead tr {
    background-color		: #009879;
    text-align				: center;
}


th{
	background-color			: #ff8fab;
}

td:empty::before {
  content: "\00a0"; /* Non-breaking space (&nbsp;) */
}

th, td {
    padding					: 12px 15px;
    text-align				: center;
	border-radius			: 6px;
	box-shadow				: 	0 0 20px rgba(0, 0, 0, 0.15);
}

/* Style for the sorted column */
th.sortable.ascending::after {
content: ' ▲'; /* Up arrow for ascending order */
}

th.sortable.descending::after {
content: ' ▼'; /* Down arrow for descending order */
}

/* Style to indicate that columns are sortable */
th.sortable {
cursor: pointer;
}

table th:hover, td:hover{
	color						: #e8407a;
	box-shadow					: inset 0 0 16px 0px rgba(0, 0, 0, 0.15)
}

tbody tr:nth-of-type(even) {
    background-color			: #fde8d8;
}
tbody tr:nth-of-type(odd) {
    background-color			: #f07aaa;
}

/* The swatch, as agreed: a 30px circle with a soft shadow rather than the browser's own
   rectangle with its chrome around it. These rules predate anything that used them, so this is
   the first time they have actually rendered, and they were a webkit prefix short: without the
   unprefixed `appearance` Firefox keeps its native swatch and ignores the width, height and
   radius entirely. The prefix stays for older Safari.
   margin-left is gone with them. It was written for a layout that never shipped and pushed the
   swatch 40px away from the label naming it, which on the colour forms reads as belonging to
   the next field rather than its own. */
input[type="color"] {
   -webkit-appearance		: none;
    appearance				: none;
    width					: 30px;
    height					: 30px;
    border					: 0;
    border-radius			: 50%;
    padding					: 0;
    overflow				: hidden;
    box-shadow				: 2px 2px 5px rgba(0,0,0,.1);
    vertical-align			: middle;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
}

/* A colour field is a label and a dot on one line. It needs its own row because `label` is
   display:block app-wide, which is correct for a text field (label above a 550px input) and
   wrong for a 30px swatch, and because the label's own 40px indent has to move to the row so
   the swatch does not inherit it and sit 40px adrift of its label.
   gap, not a margin on the swatch: the row owns the spacing, so nothing changes if the order
   of the label and the input is ever swapped. */
.colourfield {
    display				: flex;
    align-items			: center;
    gap					: 12px;
    margin				: 0 0 14px 40px;
}
.colourfield label {
    display				: inline;
    margin-left			: 0;
    min-width			: 170px;
}
/* An empty error span would otherwise still take a gap's worth of room on every row. */
.colourfield .error:empty {
    display				: none;
}

#top h1{
	padding-top		: 25px;
	padding-bottom	: 25px;
	color			: black;
	font-size		: 36px;
	text-align		: center;
}

#statusbar h2{
	padding-top		: 20px;
	padding-bottom	: 20px;
	color			: black;
	font-size		: 26px;
	text-align		: center;
}

#statusbar h3{
	padding-right		: 5px;
	padding-bottom		: 5px;
	color			: black;
	font-size		: 13px;
	text-align		: right;
}

#rcontain h1,#lcontain h1,#footer h1,#container h1,#fourcontain h1{
	padding-top		: 20px;
	padding-bottom	: 20px;
	color			: black;
	font-size		: 26px;
	text-align		: center;
}

p{
    text-align		: center;
}

#rcontain p,#lcontain p,#fourcontain p,#rcontain li,#lcontain li,#container p,#footer p{
	font-size		: 16px;
	color			: black;
	margin-left		: 20px;
	margin-right	: 20px;
}

#footer p{

	text-align		: center;
}

a {
    color           : black;
	text-align		: center;
}

/* The tab rows are built from lists, so they need their items floated into a row, no bullets
   and the bar colour behind them. That styling used to sit on bare `ul` and bare `li`, which
   meant every prose list on the site inherited it: a numbered set of instructions rendered as
   one run-on line on a strip of bar colour. Both are now scoped to the two navigation lists
   (ul.tab-row, built server-side and again by the row packer, and #subtabnav), and ordinary
   lists get ordinary list styling below. */
ul.tab-row,
#subtabnav{
	list-style-type	: none;
	margin			: 0;
	padding			: 0;
	background-color: #e8407a;
}

/* Way back to the landing page from the login screen. Sits between the banner and the status
   bar, small and out of the way: it is an exit for someone who landed here by accident, not a
   call to action competing with the login form. */
#backtolanding{
	margin			: 0;
	padding			: 6px 14px 0;
	text-align		: left;
	font-size		: 0.85em;
}
#backtolanding a{
	color			: #000;
	text-decoration	: none;
	font-weight		: bold;
	opacity			: 0.75;
}
#backtolanding a:hover,
#backtolanding a:focus{
	opacity			: 1;
	text-decoration	: underline;
}

/* The one-time gallery unlock prompt. Instruction colouring, not an error: nothing is wrong,
   there is simply a passcode step on Move's side that we can take care of once. */
.photo-unlock{
	margin			: 12px auto 4px;
	max-width		: 46em;
	padding			: 12px 16px 14px;
	border-radius	: 10px;
	background		: linear-gradient(160deg, #fff8ef 0%, #ffe9d5 100%);
	border			: 1px solid #e3b98f;
	border-left		: 5px solid #ff914d;
	text-align		: center;
}
#container .photo-unlock p,
#container3 .photo-unlock p,
.photo-unlock p{
	margin			: 0 0 8px;
	color			: #3a2a1c;
	font-size		: 0.92em;
	line-height		: 1.5;
}
.photo-unlock p:last-child{ margin-bottom: 0; }

/* ---- Results: one card per performance -------------------------------------------------
   Everything about a performance on one card: the photo you recognise it by, the placing, the
   score and how it compared, the adjudicator's critique and the video. The critique used to be a
   separate fieldset in another column, so reading what the adjudicator said about a particular
   dance meant finding the same section name twice, two long scrolls apart on a phone.

   A grid rather than a table: a results row is not tabular once it carries a photo and an audio
   player, and a table that wide cannot be read on a phone however it scrolls. */
fieldset.result-group{
	background		: linear-gradient(160deg, #ffffff 0%, #fde8d8 100%);
}
/* 300px, not the 230px this started at, and the critique player is why. The native <audio>
   control is browser chrome we cannot restyle, and Chrome drops its timeline entirely below roughly
   250px of control width, leaving a play button and a time readout with no way to scrub. At 230px
   per track, minus the critique panel's padding, the control had about 214px and the slider was
   gone. 300px leaves it around 284px, which keeps the scrubber.
   
   The cost is one fewer column on a wide screen, which is the right trade: a card whose whole
   purpose is listening to a four-minute critique has to be wide enough to seek within it. */
/* min(300px, 100%) rather than a bare 300px: auto-fill holds a track at its stated minimum even
   when the container is narrower than it, so on a 280px phone a 300px minimum pushed the grid off
   the side of the screen. The min() clamps the track to the container, which costs nothing at any
   width where 300px fits. The 600px breakpoint below collapses both grids to one column anyway;
   this is the guard for anything that slips past it. */
.result-cards{
	display			: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap				: 14px;
	padding			: 6px 2px 10px;
}
/* ---- Results: awards won at the event --------------------------------------------------
   Above the performance cards, because an award is about the whole event rather than one dance
   and reads as an afterthought underneath a list of sections.

   Deliberately NOT a card: the cards are dark tiles, one per performance, and an award is not a
   performance. It is a light band on the fieldset's own gradient, so it reads as a heading for
   the group rather than another item in it. Gold is the accent and appears once, on the rule and
   the marker, with the text left in the body colour; spending it on the text as well would flatten
   the two into one note.

   Nothing renders at all until an award is released, so this is invisible on every event where
   winners have not been announced. */
.result-awards{
	margin			: 2px 2px 14px;
	display			: flex;
	flex-direction	: column;
	gap				: 9px;
}
.result-awards h3{
	margin			: 0;
	font-size		: 0.95em;
	letter-spacing	: 0.06em;
	text-transform	: uppercase;
	color			: #ba8442;
}
/* Same grid as the performance cards below, so an award tile and a dance tile line up on every
   width instead of the awards block having its own rhythm. */
.award-tiles{
	display			: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap				: 10px;
}

/* THE ID-RULE TRAP, same one the navigation tiles hit. `#container p` sets colour black and a
   20px side margin, and an ID beats any number of classes, so every <p> in these tiles -- the
   category, the standing, the sponsor -- came out black and indented. Only the award name looked
   right, because it is an <h4> and nothing global colours those. Every paragraph rule below is
   therefore written three times: once under #container, once under #container3, and once bare for
   anywhere outside them. Undoing the margin and font-size matters as much as the colour. */
#container .award-tile p,
#container3 .award-tile p,
.award-tile p{
	margin			: 0;
	margin-left		: 0;
	margin-right	: 0;
	font-size		: 1em;
	color			: inherit;
}

/* The standard tier. A solid plate rather than the translucent wash it started as: the fieldset
   behind it is itself a gradient, so a semi-transparent tile picked up whatever happened to be
   under it and the text contrast moved down the column. Solid white, a gold rail, and a shadow so
   it reads as an object sitting on the group rather than a tinted patch of it. */
.award-tile{
	display			: flex;
	flex-direction	: column;
	align-items		: flex-start;
	gap				: 3px;
	padding			: 11px 14px 12px;
	border			: 1px solid rgba(186, 132, 66, .45);
	border-left		: 3px solid #ba8442;
	border-radius	: 0 9px 9px 0;
	background		: #ffffff;
	box-shadow		: 0 1px 5px rgba(43, 26, 61, .14);
	color			: #2b1a3d;
}
#container .award-tile p.award-category,
#container3 .award-tile p.award-category,
.award-tile p.award-category{
	font-size		: 0.7em;
	font-weight		: bold;
	letter-spacing	: 0.1em;
	text-transform	: uppercase;
	color			: #8a5f2a;
}
.award-name{
	margin			: 0;
	font-size		: 1.02em;
	font-weight		: bold;
	line-height		: 1.32;
	color			: inherit;
}
/* Only present where an award carries a standing of its own, so it must not read as part of the
   name: two unlabelled rows of one award would look like a duplicate. */
#container .award-tile p.award-rank,
#container3 .award-tile p.award-rank,
.award-tile p.award-rank{
	margin-top		: 3px;
	font-size		: 0.75em;
	font-weight		: bold;
	letter-spacing	: 0.04em;
	text-transform	: uppercase;
	padding			: 3px 10px;
	border-radius	: 999px;
	/* Ink on gold, not white on gold: white gives only 3.25:1 against #ba8442 and this text is
	   0.75em, so it is not large text and would fail. The dark ink clears 6:1 and reads like an
	   engraved plate, which is the right note anyway. */
	background		: #ba8442;
	color			: #2b1a3d;
	white-space		: nowrap;
}
#container .award-tile p.award-giver,
#container3 .award-tile p.award-giver,
.award-tile p.award-giver{
	margin-top		: 3px;
	font-size		: 0.8em;
	font-style		: italic;
	color			: #6b5f72;
}

/* The major tier: event-wide honours and the scholarships, the ones announced from the stage.
   
   The senior member of the same family as .result-card rather than a different idea: same 12px
   radius, same centred layout, and a ground from the same hue as that card's first stop (#5b3fa0)
   taken much darker. Deep and gold-framed beside purple-and-pink reads as a plaque next to a
   photograph, where a second bright gradient would only have competed.
   
   Full width at every breakpoint, so a major never sits in a column beside a section award. */
.award-tile.award-major{
	grid-column		: 1 / -1;
	align-items		: center;
	text-align		: center;
	gap				: 6px;
	padding			: 20px 22px 22px;
	border			: 1px solid #ba8442;
	border-radius	: 12px;
	box-shadow		: inset 0 0 0 1px rgba(217, 168, 95, .30), 0 4px 18px rgba(29, 16, 41, .42);
	background		: linear-gradient(145deg, #32204a 0%, #1d1029 100%);
	color			: #ffffff;
}
/* Gold splits into jobs rather than being reused: #ba8442 frames, #d9a85f carries text on the dark
   ground where the framing gold falls under 4.5:1, and #8a5f2a carries it on the white tile where
   #d9a85f would be far too pale. */
#container .award-tile.award-major p.award-category,
#container3 .award-tile.award-major p.award-category,
.award-tile.award-major p.award-category{
	color			: #d9a85f;
	font-size		: 0.74em;
}
.award-tile.award-major .award-name{
	font-size		: 1.38em;
	line-height		: 1.25;
	letter-spacing	: -0.01em;
	color			: #ffffff;
}
#container .award-tile.award-major p.award-rank,
#container3 .award-tile.award-major p.award-rank,
.award-tile.award-major p.award-rank{
	background		: transparent;
	border			: 1px solid #d9a85f;
	color			: #d9a85f;
}
#container .award-tile.award-major p.award-giver,
#container3 .award-tile.award-major p.award-giver,
.award-tile.award-major p.award-giver{
	color			: rgba(255, 255, 255, .84);
}
/* The plaque device, in place of a trophy glyph: a short gold rule under the category label. No
   font to fail, nothing to land as a tofu box, and it scales with the text. */
.award-flourish{
	display			: block;
	width			: 48px;
	height			: 2px;
	background		: linear-gradient(90deg, rgba(217,168,95,0) 0%, #d9a85f 50%, rgba(217,168,95,0) 100%);
}

/* =============================================================================================
   AWARD TREATMENTS

   Two independent axes, both read off what local already sends, so nothing is chosen per award:

     the TREATMENT comes from Category, or from the family named in the title where a category
     holds several (see awardTreatment() in functions.php);
     the HUE comes from the discipline named in the title.

   Every hue is declared once as custom properties and every treatment reads them, so adding a
   style is one block here and one line in the classifier, not a pass over every treatment.

   --a-spark  the drawing hue, never used for text
   --a-label  that hue darkened until it clears 4.5:1 on a near-white ground
   --a-wash   the same hue at low alpha, for a pale ground
   --a-edge   the same hue at mid alpha, for a border
   --a-deep   a dark ground for the treatments that are dark by design
   --a-lift   the pale that carries text on --a-deep
   ============================================================================================= */
.award-tile{
	--a-spark	: #9661D4;
	--a-label	: #6f3fa8;
	--a-wash	: #9661D42E;
	--a-edge	: #9661D44D;
	--a-deep	: #1d1029;
	--a-lift	: #ece7f3;
}
.award-tile.a-classical	{ --a-spark:#FC489E; --a-label:#b02a6a; --a-wash:#FC489E2E; --a-edge:#FC489E4D;
						  --a-deep:#3a0f24; --a-lift:#ffd9e8; }
.award-tile.a-jazz		{ --a-spark:#9661D4; --a-label:#6f3fa8; --a-wash:#9661D42E; --a-edge:#9661D44D;
						  --a-deep:#241046; --a-lift:#e4d4ff; }
.award-tile.a-tap		{ --a-spark:#8FBF9F; --a-label:#3f7557; --a-wash:#8FBF9F3D; --a-edge:#8FBF9F66;
						  --a-deep:#12291f; --a-lift:#d4ebdd; }
.award-tile.a-contemporary{ --a-spark:#F9A97B; --a-label:#9c5529; --a-wash:#F9A97B3D; --a-edge:#F9A97B66;
						  --a-deep:#3a1d0e; --a-lift:#ffe2cd; }
.award-tile.a-lyrical	{ --a-spark:#8FBCDB; --a-label:#2f6b94; --a-wash:#8FBCDB3D; --a-edge:#8FBCDB66;
						  --a-deep:#0f2434; --a-lift:#d6ebf8; }
.award-tile.a-improvisation{ --a-spark:#C8A8F7; --a-label:#6b4b9e; --a-wash:#C8A8F73D; --a-edge:#C8A8F766;
						  --a-deep:#2a1c40; --a-lift:#e8ddfa; }
.award-tile.a-anystyle	{ --a-spark:#281248; --a-label:#281248; --a-wash:#2812481A; --a-edge:#28124833;
						  --a-deep:#1d1029; --a-lift:#ece7f3; }
/* Lyrical/Jazz is one award over two disciplines, so it keeps both rather than picking a winner.
   The single-hue properties take the Jazz end, which is the stronger of the two. */
.award-tile.a-lyricaljazz{ --a-spark:#9661D4; --a-label:#6f3fa8; --a-wash:#9661D42E; --a-edge:#9661D44D;
						  --a-deep:#0f2434; --a-lift:#e4d4ff; }

/* Anything with furniture behind the text needs a stacking context and a clip. Only these, not
   every tile: the plain plate has nothing to clip and an overflow rule there would be noise. */
.award-tile.a-medal,
.award-tile.a-medalnovice,
.award-tile.a-playbill,
.award-tile.a-bokeh,
.award-tile.a-bokehwarm,
.award-tile.a-footlights,
.award-tile.a-confetti,
.award-tile.a-marquee,
.award-tile.a-star,
.award-tile.a-sparkle,
.award-tile.a-rings,
.award-tile.a-fireworks,
.award-tile.a-dancer,
.award-tile.a-baby{
	position		: relative;
	overflow		: hidden;
}
/* The furniture sits behind, the words in front. Both need a layer or the paint order is the
   document order, which puts a scrim on top of the name. */
.award-tile .a-art,
.award-tile .a-blob,
.award-tile .a-lamp,
.award-tile .a-slip,
.award-tile .a-bloom,
.award-tile .a-bar,
.award-tile .a-scrim,
.award-tile .a-edge,
.award-tile .a-dancer{ position:absolute; z-index:0; }
.award-tile .award-category,
.award-tile .award-name,
.award-tile .award-rank,
.award-tile .award-giver,
.award-tile .award-flourish{ position:relative; z-index:1; }
.award-tile .a-art{ inset:0; width:100%; height:100%; }

/* ---- the pale-ground treatments: sparkle, shooting star, footlights, bokeh, confetti --------- */
.award-tile.a-sparkle,
.award-tile.a-star,
.award-tile.a-footlights,
.award-tile.a-bokeh,
.award-tile.a-bokehwarm,
.award-tile.a-confetti{
	background		: linear-gradient(168deg, #fffdfe 0%, var(--a-wash) 100%);
	border			: 1px solid var(--a-edge);
	border-left		: 1px solid var(--a-edge);
	border-radius	: 10px;
	color			: #2b1a3d;
}
#container .award-tile.a-sparkle p.award-category,
#container3 .award-tile.a-sparkle p.award-category,
.award-tile.a-sparkle p.award-category,
#container .award-tile.a-star p.award-category,
#container3 .award-tile.a-star p.award-category,
.award-tile.a-star p.award-category,
#container .award-tile.a-footlights p.award-category,
#container3 .award-tile.a-footlights p.award-category,
.award-tile.a-footlights p.award-category,
#container .award-tile.a-bokeh p.award-category,
#container3 .award-tile.a-bokeh p.award-category,
.award-tile.a-bokeh p.award-category,
#container .award-tile.a-bokehwarm p.award-category,
#container3 .award-tile.a-bokehwarm p.award-category,
.award-tile.a-bokehwarm p.award-category,
#container .award-tile.a-confetti p.award-category,
#container3 .award-tile.a-confetti p.award-category,
.award-tile.a-confetti p.award-category{
	color			: var(--a-label);
}
/* Encouragement keeps the four-point diamond; Most Promising gets a five-point star that is going
   somewhere. Two different objects, so the halves of one family never blur together. */
.award-tile.a-sparkle .a-art path{ fill:none; stroke:var(--a-spark); }
.award-tile.a-star .a-art .a-comet{ fill:var(--a-spark); stroke:none; opacity:.8; }
.award-tile.a-star .a-art .a-glow,
.award-tile.a-star .a-art .a-dot,
.award-tile.a-star .a-art .a-star{ fill:var(--a-spark); stroke:none; }
.award-tile.a-star .a-art .a-streak{ fill:none; stroke:var(--a-spark); stroke-linecap:round; }

/* Up & Coming: a lighting bar coming up is the lights finding someone new. The lamps take the one
   style hue and vary by size and opacity, which is how real lamps differ. */
.award-tile.a-footlights .a-lamp{ border-radius:50%; filter:blur(11px); background:var(--a-spark); }
.award-tile.a-footlights .a-l1{ width:54px; height:54px; left:-8px;  top:-6px; opacity:.52; }
.award-tile.a-footlights .a-l2{ width:40px; height:40px; left:28%;   top:-2px; opacity:.44; }
.award-tile.a-footlights .a-l3{ width:48px; height:48px; left:56%;   top:-8px; opacity:.40; }
.award-tile.a-footlights .a-l4{ width:30px; height:30px; left:86%;   top: 2px; opacity:.46; }
.award-tile.a-footlights .a-bloom{
	inset			: 0 0 auto 0;
	height			: 72%;
	opacity			: .22;
	background		: linear-gradient(to bottom, var(--a-spark) 0%, transparent 100%);
}
.award-tile.a-footlights .a-bar{
	top				: 26px;
	left			: 0;
	right			: 0;
	height			: 2px;
	opacity			: .45;
	background		: linear-gradient(90deg, transparent 0%, var(--a-spark) 18%, var(--a-spark) 82%, transparent 100%);
}

/* Community Spirit and Team Spirit are the same kind of award -- both about belonging, both given
   to a whole rather than a performance -- so they share the wash and differ only in its mix. */
.award-tile.a-bokeh .a-blob,
.award-tile.a-bokehwarm .a-blob{ border-radius:50%; filter:blur(13px); }
.award-tile.a-bokeh .a-b1{ width:130px; height:130px; left:-26px; top:-34px; background:rgba(252,72,158,.42); }
.award-tile.a-bokeh .a-b2{ width:92px;  height:92px;  left:30%;   top:-26px; background:rgba(150,97,212,.40); }
.award-tile.a-bokeh .a-b3{ width:66px;  height:66px;  left:62%;   top:16px;  background:rgba(200,168,247,.52); }
.award-tile.a-bokehwarm .a-b1{ width:130px; height:130px; left:-26px; top:-34px; background:rgba(251,118,62,.40); }
.award-tile.a-bokehwarm .a-b2{ width:92px;  height:92px;  left:30%;   top:-26px; background:rgba(186,132,66,.42); }
.award-tile.a-bokehwarm .a-b3{ width:66px;  height:66px;  left:62%;   top:16px;  background:rgba(252,72,158,.34); }
#container .award-tile.a-bokehwarm p.award-category,
#container3 .award-tile.a-bokehwarm p.award-category,
.award-tile.a-bokehwarm p.award-category{ color:#a8501d; }
.award-tile .a-scrim{
	inset			: auto 0 0 0;
	height			: 58%;
	background		: linear-gradient(to top, rgba(255,253,254,.96) 0%, rgba(255,253,254,.6) 52%, rgba(255,253,254,0) 100%);
}

/* Most Entertaining: angled slips falling, no two at the same angle. Fixed positions, not random,
   so one award looks the same on every reload. */
.award-tile.a-confetti .a-slip{ width:6px; height:13px; border-radius:1px; opacity:.72; }
.award-tile.a-confetti .a-slip:nth-of-type(3n+1){ background:#FC489E; }
.award-tile.a-confetti .a-slip:nth-of-type(3n+2){ background:#9661D4; }
.award-tile.a-confetti .a-slip:nth-of-type(3n+3){ background:#FB763E; }

/* Showmanship: a marquee, lit all the way round. Bulbs are one element type at one size, laid out
   by a flex strip, because mixed element types inside the strip make nth-of-type count the wrong
   things and the top and bottom stop matching. */
.award-tile.a-marquee{
	background		: linear-gradient(150deg, #2c1140 0%, #16081f 100%);
	border			: 1px solid rgba(252,72,158,.45);
	border-left		: 1px solid rgba(252,72,158,.45);
	border-radius	: 10px;
	color			: #ffffff;
	padding			: 20px 18px;
}
.award-tile.a-marquee .a-edge{
	left			: 10px;
	right			: 10px;
	display			: flex;
	justify-content	: space-between;
}
.award-tile.a-marquee .a-top{ top:9px; }
.award-tile.a-marquee .a-bottom{ bottom:9px; }
.award-tile.a-marquee .a-bulb{
	width			: 5px;
	height			: 5px;
	border-radius	: 50%;
	background		: #ffd166;
	box-shadow		: 0 0 6px rgba(255,209,102,.9);
}
#container .award-tile.a-marquee p.award-category,
#container3 .award-tile.a-marquee p.award-category,
.award-tile.a-marquee p.award-category{ color:#ffd166; }
#container .award-tile.a-marquee p.award-giver,
#container3 .award-tile.a-marquee p.award-giver,
.award-tile.a-marquee p.award-giver{ color:rgba(255,255,255,.82); }

/* ---- the dark treatments: playbill ----------------------------------------------------------
   A playbill is a dark object and should stay one, so the style hue tints the ground rather than
   flipping it to white, and the type takes the matching pale so it never sits on a mid-tone. */
.award-tile.a-playbill{
	align-items		: center;
	text-align		: center;
	gap				: 6px;
	padding			: 18px 18px 20px;
	border			: 0;
	border-top		: 4px double var(--a-spark);
	border-bottom	: 4px double var(--a-spark);
	border-radius	: 8px;
	background		: var(--a-deep);
	color			: var(--a-lift);
	box-shadow		: none;
}
.award-tile.a-playbill.a-lyricaljazz{
	background		: linear-gradient(118deg, #0f2434 0%, #241046 100%);
}
#container .award-tile.a-playbill p.award-category,
#container3 .award-tile.a-playbill p.award-category,
.award-tile.a-playbill p.award-category{ color:var(--a-lift); opacity:.8; letter-spacing:.2em; }
.award-tile.a-playbill .award-name{ color:var(--a-lift); text-transform:uppercase; font-size:1.02em; }
#container .award-tile.a-playbill p.award-giver,
#container3 .award-tile.a-playbill p.award-giver,
.award-tile.a-playbill p.award-giver{ color:var(--a-lift); opacity:.76; }

/* ---- medallion: the metal is the grade, the paper is the discipline -------------------------
   34 of these, so nothing may be chosen per award. Two metals and six papers cover the lot. */
.award-tile.a-medal,
.award-tile.a-medalnovice{
	--m1			: #d9a95f;
	--m2			: #f0d6a4;
	--m3			: #a97b36;
	--mink			: #3a2a12;
	flex-direction	: row;
	align-items		: center;
	gap				: 14px;
	border			: 1px solid var(--a-edge);
	border-left		: 1px solid var(--a-edge);
	border-radius	: 10px;
	background		: linear-gradient(176deg, #fffdff 0%, var(--a-wash) 100%);
}
/* Novice wears rose gold, so the two grades can never be mistaken for one another. */
.award-tile.a-medalnovice{ --m1:#c98a90; --m2:#eec4c3; --m3:#9d5f69; --mink:#3d1f24; }
.award-tile.a-medal .a-disc,
.award-tile.a-medalnovice .a-disc{
	flex			: none;
	width			: 58px;
	height			: 58px;
	border-radius	: 50%;
	position		: relative;
	display			: grid;
	place-items		: center;
	/* A smooth sweep, not a repeating one: a fine repeating conic aliases against the pixel grid
	   and comes out as moire rather than milling. */
	background		: conic-gradient(from 212deg, var(--m3) 0deg, var(--m2) 54deg, var(--m1) 108deg,
					  var(--m3) 170deg, var(--m2) 232deg, var(--m1) 292deg, var(--m3) 360deg);
	box-shadow		: 0 2px 5px rgba(58,42,18,.3);
}
.award-tile.a-medal .a-disc::before,
.award-tile.a-medalnovice .a-disc::before{
	content			: "";
	position		: absolute;
	inset			: 6px;
	border-radius	: 50%;
	background		: radial-gradient(circle at 33% 27%, rgba(255,255,255,.9) 0 16%, rgba(255,255,255,0) 58%),
					  linear-gradient(145deg, var(--m2) 0%, var(--m1) 46%, var(--m3) 100%);
	box-shadow		: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -2px 4px rgba(58,42,18,.28);
}
/* Struck with a 1 because that is what a medallion is here: the top first-place score in the band. */
.award-tile.a-medal .a-disc b,
.award-tile.a-medalnovice .a-disc b{
	position		: relative;
	font-size		: 1.5em;
	line-height		: 1;
	color			: var(--mink);
	text-shadow		: 0 1px 0 rgba(255,255,255,.6);
}
#container .award-tile.a-medal p.award-category,
#container3 .award-tile.a-medal p.award-category,
.award-tile.a-medal p.award-category,
#container .award-tile.a-medalnovice p.award-category,
#container3 .award-tile.a-medalnovice p.award-category,
.award-tile.a-medalnovice p.award-category{ color:var(--a-label); }

/* ---- the Baby championships ------------------------------------------------------------------
   These go to the smallest dancers in the eisteddfod, so they get the one treatment that is not
   trying to look weighty: rounder, lighter, friendlier. */
.award-tile.a-baby{
	align-items		: flex-start;
	text-align		: left;
	border			: 1px solid rgba(150,97,212,.24);
	border-left		: 1px solid rgba(150,97,212,.24);
	border-radius	: 20px;
	background		: linear-gradient(161deg, #fff5fb 0%, #f6edff 62%, #f1e6ff 100%);
	color			: #43215c;
	box-shadow		: inset 0 1px 0 #fff, 0 2px 8px rgba(150,97,212,.12);
}
#container .award-tile.a-baby p.award-category,
#container3 .award-tile.a-baby p.award-category,
.award-tile.a-baby p.award-category{ color:#9b3f7a; }
.award-tile.a-baby .award-name{ color:#43215c; font-size:1.12em; }
#container .award-tile.a-baby p.award-giver,
#container3 .award-tile.a-baby p.award-giver,
.award-tile.a-baby p.award-giver{ color:#6b4b85; }

/* ---- the one-offs ---------------------------------------------------------------------------
   Three awards that are not a family and name no style, so each takes its motif from what the
   award is actually for. They sit outside the hue scheme on purpose. */

/* Dedication and hard work: layers laid down a year at a time, each ring thinner and fainter than
   the one inside it, so the oldest work reads as the deepest. */
.award-tile.a-rings{
	border			: 1px solid rgba(143,98,48,.3);
	border-left		: 1px solid rgba(143,98,48,.3);
	border-radius	: 10px;
	background		: linear-gradient(172deg, #fffdf8 0%, #fbf3e6 100%);
	color			: #3d2a12;
}
.award-tile.a-rings .a-art circle{ stroke:#8f6230; }
#container .award-tile.a-rings p.award-category,
#container3 .award-tile.a-rings p.award-category,
.award-tile.a-rings p.award-category{ color:#6d4a24; }
#container .award-tile.a-rings p.award-giver,
#container3 .award-tile.a-rings p.award-giver,
.award-tile.a-rings p.award-giver{ color:#6d4a24; }

/* A dancer's own choreography: the dancer is the author, so the tile shows the person. This is the
   site's own ballet dancer, already in the brand palette and already in the right arabesque. */
.award-tile.a-dancer{
	border			: 1px solid rgba(40,18,72,.22);
	border-left		: 1px solid rgba(40,18,72,.22);
	border-radius	: 10px;
	background		: linear-gradient(168deg, #fefdff 0%, #f4f1fa 100%);
	color			: #281248;
	min-height		: 150px;
}
.award-tile.a-dancer .a-dancer{ right:6px; top:8px; height:134px; width:auto; }
.award-tile.a-dancer .award-category,
.award-tile.a-dancer .award-name,
.award-tile.a-dancer .award-giver{ max-width:60%; }

/* The Kelsey Amelia Nosworthy Memorial, for the biggest personality. Night-sky ink keeps the
   dignity a memorial wants while the motif carries the joy, and a scrim from the bottom edge
   darkens only where the words are. */
.award-tile.a-fireworks{
	border			: 1px solid rgba(255,209,102,.4);
	border-left		: 1px solid rgba(255,209,102,.4);
	border-radius	: 10px;
	background		: radial-gradient(130% 100% at 20% 0%, #2a2560 0%, #0f0e28 70%);
	color			: #ffffff;
	justify-content	: flex-end;
	min-height		: 132px;
}
.award-tile.a-fireworks::after{
	content			: "";
	position		: absolute;
	inset			: auto 0 0 0;
	height			: 64%;
	z-index			: 0;
	background		: linear-gradient(to top, rgba(15,14,40,.95) 0%, rgba(15,14,40,.74) 46%, rgba(15,14,40,0) 100%);
}
#container .award-tile.a-fireworks p.award-category,
#container3 .award-tile.a-fireworks p.award-category,
.award-tile.a-fireworks p.award-category{ color:#ffd166; }
#container .award-tile.a-fireworks p.award-giver,
#container3 .award-tile.a-fireworks p.award-giver,
.award-tile.a-fireworks p.award-giver{ color:rgba(255,255,255,.84); }

/* Scholarship standings: silver is the runner-up, gold the winner. Nothing has to say which
   outranks which, because the metals already do. */
/* The winner keeps the gold the major tile already uses, filled rather than outlined, so the pair
   reads as a pair: identical tiles where only the standing and the metal differ. */
#container .award-tile.a-plaque p.award-rank,
#container3 .award-tile.a-plaque p.award-rank,
.award-tile.a-plaque p.award-rank{
	background		: #d9a85f;
	border			: 0;
	color			: #1d1029;
}
/* Silver is the runner-up, and it has to come after the winner rule: a runner-up tile carries
   both classes and they are the same specificity, so source order is what decides. */
#container .award-tile.a-runnerup p.award-rank,
#container3 .award-tile.a-runnerup p.award-rank,
.award-tile.a-runnerup p.award-rank{
	background		: #ccd2dc;
	border			: 0;
	color			: #1d1029;
}

/* Dark tiles, the same gradient as the navigation tiles so the two read as one family. The
   cards were white, and a native <audio> control is light grey chrome the browser draws itself
   and will not let us restyle, so it dissolved into the card.

   Contrast was measured against all three gradient stops, the last of which (#C42C93) is the
   tightest. White clears 4.5:1 everywhere (7.88, 9.34, 5.09). Every tint that reads as pink does
   NOT: Tutu manages only 3.02 at that stop. So the body text is all white and the hierarchy
   comes from size and weight, with the pink kept for the score alone, where 32px counts as
   large text and 3.98 is enough. */
.result-card{
	display			: flex;
	flex-direction	: column;
	align-items		: center;
	text-align		: center;
	gap				: 8px;
	padding			: 14px 13px 16px;
	border-radius	: 12px;
	border			: 1px solid #C42C93;
	background		: linear-gradient(150deg, #5b3fa0 0%, #7A1F6E 55%, #C42C93 100%);
	box-shadow		: 0 3px 14px rgba(91,63,160,.35);
	color			: #fff;
}
/* The photo leads the card, so it takes the full width rather than the pill width. */
.result-card a.photolink{
	align-self		: stretch;
}
.result-card a.photolink.phototile{
	width			: 100%;
	background		: rgba(255,255,255,.12);
	border-color	: rgba(255,255,255,.45);
}
.result-card a.photolink.phototile span{
	color			: #fff;
}
.result-card h4.result-section{
	margin			: 2px 0 0;
	font-size		: 1em;
	line-height		: 1.35;
	color			: #fff;
}
/* The placing is the thing people screenshot and send to a grandparent, so it is a ribbon
   rather than a line of text. First, second and third take metal; everything else keeps the
   plain pill so that Highly Commended does not pretend to be a medal.
   Dark text on the darkest stop of each gradient: gold 6.97:1, silver 8.53:1, bronze 5.07:1,
   and white on the plain pill 5.09:1 against the card's tightest stop. */
.result-card p.result-place{
	display			: inline-block;
	margin			: 2px 0 0;
	padding			: 5px 17px;
	border-radius	: 999px;
	font-weight		: bold;
	font-size		: 0.82em;
	letter-spacing	: 2px;
	text-transform	: uppercase;
	color			: #fff;
	background		: rgba(255,255,255,.15);
	border			: 1px solid rgba(255,255,255,.55);
	box-shadow		: 0 1px 4px rgba(0,0,0,.18);
}
.result-card p.result-place-first,
.result-card p.result-place-second,
.result-card p.result-place-third{
	border			: 1px solid rgba(0,0,0,.22);
	text-shadow		: 0 1px 0 rgba(255,255,255,.35);
	box-shadow		: 0 2px 7px rgba(0,0,0,.28);
}
.result-card p.result-place-first{
	background		: linear-gradient(135deg, #fff3c4 0%, #f2d777 45%, #d9b44a 100%);
	color			: #3b2a00;
}
.result-card p.result-place-second{
	background		: linear-gradient(135deg, #ffffff 0%, #e4e7ec 45%, #bfc3cc 100%);
	color			: #26262b;
}
.result-card p.result-place-third{
	background		: linear-gradient(135deg, #f6d7b8 0%, #ddA877 45%, #bd8150 100%);
	color			: #2e1a08;
}
.result-card p.result-place-withdrawn{
	font-style		: italic;
	text-transform	: none;
	letter-spacing	: 0;
	background		: rgba(255,255,255,.10);
	border-color	: rgba(255,255,255,.35);
	box-shadow		: none;
}
.result-card p.result-score{
	margin			: 0;
	font-size		: 2em;
	font-weight		: bold;
	line-height		: 1;
	/* Large text, so 3.98:1 at the tightest stop is within the rule. */
	color			: #ffd9f0;
}
.result-card p.result-compare{
	margin			: 0;
	font-size		: 0.78em;
	line-height		: 1.45;
	color			: #fff;
}
/* The audio control is browser chrome and always light, so give it a panel of its own to sit
   on rather than letting it collide with the gradient. */
.result-critique{
	width			: 100%;
	margin-top		: 2px;
	/* Tighter at the sides than the top and bottom: horizontal padding is width taken straight off
	   the timeline, and this panel exists to hold the control rather than to frame it. */
	padding			: 8px 5px;
	border-radius	: 10px;
	background		: rgba(255,255,255,.16);
}
.result-critique-label{
	display			: block;
	font-size		: 0.76em;
	font-weight		: bold;
	letter-spacing	: 0.5px;
	text-transform	: uppercase;
	color			: #fff;
	margin-bottom	: 5px;
}
.result-critique audio{
	width			: 100%;
	/* The global audio rule indents every player by 40px, which on a 230px card pushed the control
	   most of the way out of it. Zeroed here, and the mobile breakpoints zero it globally. */
	margin-left		: 0;
	border-radius	: 8px;
	/* A floor under the control, so a narrow viewport widens the grid track rather than shrinking
	   the timeline away. min-content on a grid item pushes the column out; below this width the
	   player stops being a player. */
	min-width		: 250px;
}
/* Except where there is genuinely no room: under 360px the card is already full width and a floor
   would overflow the page instead of fitting the screen. */
@media only screen and (max-width: 360px) {
	.result-critique audio{ min-width: 0; }
}
.result-card a.videolink{
	margin-top		: 2px;
	background		: #fff;
	color			: #5b3fa0;
}
.result-card a.videolink:hover,
.result-card a.videolink:focus{
	background		: #ffd9f0;
	color			: #5b3fa0;
}
.result-withdrawn{
	background		: linear-gradient(150deg, #4a4358 0%, #5b4f66 55%, #6e5f73 100%);
	border-color	: #8a7f90;
	box-shadow		: 0 2px 8px rgba(0,0,0,.2);
}
@media only screen and (max-width: 600px){
	.result-cards,
	.award-tiles{
		grid-template-columns: 1fr;
		gap			: 12px;
	}
}

/* The scroll box every report table sits in. It used to be an inline width:100% with
   overflow-x:auto, which only works if every ancestor can actually be narrower than the table.
   A fieldset cannot by default: its min-width resolves to min-content, so a wide table dragged
   the fieldset, the form and the column out past the screen. With the root now clipping
   horizontal overflow rather than scrolling it, that excess became unreachable instead of
   merely ugly. max-width here plus min-width:0 on the fieldsets keeps the overflow inside this
   box, where it can be scrolled. */
.table-scroll{
	width			: 100%;
	max-width		: 100%;
	overflow-x		: auto;
	-webkit-overflow-scrolling: touch;
}

/* Buy-video link in the results table. Reads as an action, not as another score: the cells
   around it are numbers and places, so an unstyled anchor disappeared into them. Kept small
   because there is one on every row. */
a.videolink{
	display			: inline-block;
	padding			: 4px 12px;
	border-radius	: 999px;
	background		: #e8407a;
	color			: #fff;
	font-size		: 0.82em;
	font-weight		: bold;
	text-decoration	: none;
	white-space		: nowrap;
}
/* Photo link. Starts as a pill like the video one and becomes a tile once photothumbs.js has
   confirmed the watermarked preview actually loads. Never the other way round: a tile drawn
   before the image resolves would leave a broken picture where a working link had been. */
a.photolink{
	display			: inline-block;
	padding			: 4px 12px;
	border-radius	: 999px;
	background		: #f07aaa;
	color			: #000;
	font-size		: 0.82em;
	font-weight		: bold;
	text-decoration	: none;
	white-space		: nowrap;
}
a.photolink.phototile{
	padding			: 0;
	border-radius	: 8px;
	overflow		: hidden;
	background		: #fde8d8;
	border			: 1px solid #e8407a;
	white-space		: normal;
	width			: 116px;
	line-height		: 0;
}
a.photolink.phototile img{
	display			: block;
	width			: 100%;
	height			: auto;
}
a.photolink.phototile span{
	display			: block;
	padding			: 4px 6px;
	font-size		: 0.95em;
	line-height		: 1.3;
	text-align		: center;
}
a.photolink:hover,
a.photolink:focus{
	filter			: brightness(0.94);
}

a.videolink:hover,
a.videolink:focus{
	filter			: brightness(0.92);
	color			: #fff;
}

/* Prose lists, anywhere in page content. The navigation lists are excluded by selector rather
   than left to specificity: the nav rules above set only float and position, so a bare `ul > li`
   rule still reached the tab items with the rest of its declarations and put a 7px gap under
   every tab, which broke the join between a tab and the panel below it. ul.info-list and
   .event-notice ul/ol still carry their own variants and beat these on specificity. */
ol:not(.tab-row),
ul:not(.tab-row):not(#subtabnav){
	margin			: 10px 0 14px 24px;
	padding			: 0;
	background		: transparent;
}
ol:not(.tab-row){ list-style-type: decimal; }
ul:not(.tab-row):not(#subtabnav){ list-style-type: disc; }
ol:not(.tab-row) > li,
ul:not(.tab-row):not(#subtabnav) > li{
	display			: list-item;
	float			: none;
	position		: static;
	margin			: 0 0 7px;
	line-height		: 1.5;
	text-align		: left;
}
#adminmodeswitch {
	width			: 105px;
	margin-left		: auto;
	margin-top		: 0;
	margin-bottom	: 5px;
	background-color: #fde8d8;
	border-radius	: 5px;
	overflow		: hidden;
	height			: 26px;
}
#adminmodeswitch select {
	width			: 105px;
	height			: 26px;
	font-size		: 12px;
	background		: transparent;
	border			: none;
	padding			: 2px 4px;
	color			: #000;
}
/* ---- Portrait navigation ----------------------------------------------------------------
   Below 800px the seven tabs wrap to two or three rows and push the page down, so they are
   replaced by a drawer. Hidden entirely on desktop: these three rules are the off switch, and
   the media query further down is the only place they are turned on. Built by form.php's JS
   from the real nav, so it always matches whatever tabs the config produced. */
#navtoggle, #navdrawer, #navscrim{ display:none; }

#tabnav{
	display			: flex;
	align-items		: flex-end;
	position		: relative;
}
#tabnav-left, #tabnav-right{
	display			: flex;
	flex-direction	: column;
	justify-content	: flex-end;
	flex			: 0 0 auto;
}
#tabnav-spacer{
	flex			: 1;
}
.tab-row{
	display			: flex;
	flex-wrap		: wrap;
	position		: relative;
	background-color: transparent;
}
#tabnav-right .tab-row{
	justify-content	: flex-end;
}
#tabnav-shelf{
	position		: absolute;
	bottom			: 0;
	left			: 0;
	right			: 0;
	height			: 43px;
	background-color: #f590b0;
	z-index			: 0;
}
#subtabnav{
	list-style-type	: none;
	margin			: 0;
	padding-top		: 4px;
	display			: flex;
	overflow		: visible;
	background-color: #fde8d8;
	position		: relative;
	z-index			: 200;
}
#subtabnav li {
	position		: relative;
}

#subtabnav-shadow {
	height			: 2px;
	position		: relative;
	pointer-events	: none;
	background-color: #f07aaa;
}

#subtabnav li a {
	display			: block;
    background      : #f590b0;
    color           : black;
	text-align		: center;
	font-weight		: bold;
	padding			: 10px 12px;
	text-decoration	: none;
	border-radius	: 8px 8px 0px 0px;
	white-space		: nowrap;
}


@media (hover: hover) {
	#subtabnav li a:hover{
		color			: #e8407a;
		font-weight		: bold;
	}
}
#subtabnav .active {
	background-color: #f07aaa;
	color			: black;
	font-weight		: bold;
}

h2{
	padding-top		: 20px;
	padding-bottom	: 20px;
	color			: black;
	font-size		: 22px;
	text-align		: center;
}

ul.tab-row > li,
#subtabnav > li {
	float			: left;
	position		: relative;
}

.tab-row li a {
	display			: block;
    background      : #f590b0;
    color           : black;
	text-align		: center;
	font-weight		: bold;
	padding			: 10px 12px;
	text-decoration	: none;
	border-radius	: 8px 8px 0px 0px;
	white-space		: nowrap;
}

@media (hover: hover) {
	.tab-row li a:hover{
		color			: #e8407a;
		font-weight		: bold;
	}
}

.tab {
	margin-left		: 40px !important;
	margin-top		: 10px;
	margin-bottom	: 10px;
   	text-align		: left;
}

.tab2 {
	margin-left		: 80px !important;
	margin-top		: 10px;
	margin-bottom	: 10px;
   	text-align		: left;
}

.tab3 {
	margin-left		: 120px !important;
	margin-top		: 10px;
	margin-bottom	: 10px;
   	text-align		: left;
}

.item-heading {
	margin-left		: 10px !important;
	margin-top		: 10px;
	margin-bottom	: 10px;
	text-align		: left;
	font-weight		: bold;
}
.center{
   	text-align		: center;
}

.active,
.tab-row li a.active {
	background-color: #fde8d8;
	color			: black;
	font-weight		: bold;
	position		: relative;
	z-index			: 2;
	box-shadow		: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* The container */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ff914d;
  border: 1px solid black;
}

/* Create a custom checkbox */
.checkmark.green {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ff66c4;
}

/* Create a custom checkbox */
.checkmark.purple {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #cb6ce6;
}

/* Create a custom checkbox */
.checkmark.blue{
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ff914d;
}

/* Create a custom checkbox */
.checkmark.gold {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #ba8442;
}

/* Create a custom checkbox */
.checkmark.rosegold {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #B76E79;
}

/* Create a custom checkbox */
.Xone {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: rgba(0, 0, 0, 0);
}

/* Create a custom checkbox */
.Xtwo {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: rgba(0, 0, 0, 0);
}

/* On mouse-over, lighten relative to base colour */
.container:hover input ~ .checkmark {
  background-color: #ffb07a;
}

.container:hover input ~ .checkmark.blue {
  background-color: #ffb07a;
}

.container:hover input ~ .checkmark.green {
  background-color: #ff8fd6;
}

.container:hover input ~ .checkmark.purple {
  background-color: #db8ff0;
}

.container:hover input ~ .checkmark.gold {
  background-color: #cc9a5c;
}

.container:hover input ~ .checkmark.rosegold {
  background-color: #ca8d96;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #ff914d}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark.blue {
  background-color: #ff914d}
/* When the checkbox is checked, add a purple background */
.container input:checked ~ .checkmark.purple {
  background-color: #cb6ce6}
/* When the checkbox is checked, add a green background */
.container input:checked ~ .checkmark.green {
  background-color: #ff66c4}
/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark.gold {
  background-color: #ba8442}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark.rosegold {
  background-color: #B76E79}

.container:hover input:checked ~ .checkmark {
  background-color: #ffb07a;
}
.container:hover input:checked ~ .checkmark.blue {
  background-color: #ffb07a;
}
.container:hover input:checked ~ .checkmark.green {
  background-color: #ff8fd6;
}
.container:hover input:checked ~ .checkmark.purple {
  background-color: #db8ff0;
}
.container:hover input:checked ~ .checkmark.gold {
  background-color: #cc9a5c;
}
.container:hover input:checked ~ .checkmark.rosegold {
  background-color: #ca8d96;
}

/* A championship or scholarship whose prerequisite choice has not been made yet.
   Deliberately a question mark rather than the X: the X is already
   `input:not(:checked):disabled`, meaning locked out and not available to you, and reusing it
   here would say the entry is barred when it is merely waiting on a decision. A ? asks for one.
   The box is also disabled while it shows, so the entry cannot be taken before it qualifies, and
   that is what the glyph explains. Set and cleared by prereqchoice.js as options are ticked.

   Drawn, not typed. The tick is two rotated borders and the X two rotated bars, both white and
   both 3px, so a text "?" sat in the same box as lettering among marks. A question mark cannot
   be made from borders, so it follows the other exception in this stylesheet and is an SVG data
   URI, the same approach as the warning triangle: white, 3px, round caps, on the 25px box. */
.container .checkmark.needschoice::after {
  content         : "";
  display         : block;
  position        : absolute;
  inset           : 0;
  /* The tick's geometry has to be unset rather than inherited, ALL of it. It is a 5px by 10px
     box of angled borders offset 9px in, so overriding only the border and the transform left
     the image clipped to that 5 by 10 corner: a scrap of curve top left and nothing else.
     Width and height are set explicitly rather than left to inset, since a box with both set
     is over-constrained and the dimensions win. */
  border          : 0;
  transform       : none;
  width           : 100%;
  height          : 100%;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2025%2025'%3E%3Cpath%20d='M12.5%2016C12.5%2012%2017%2011.5%2017%208.5C17%205.5%2014.9%204%2012.5%204C10.3%204%208.6%205.3%208.1%207'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3Ccircle%20cx='12.5'%20cy='20'%20r='1.7'%20fill='white'/%3E%3C/svg%3E");
  background-repeat  : no-repeat;
  background-position: center;
  background-size    : 25px 25px;
}
/* The X must not draw at the same time: a disabled unchecked box would otherwise show both. */
.container input:not(:checked):disabled ~ .checkmark.needschoice ~ .Xone::before,
.container input:not(:checked):disabled ~ .checkmark.needschoice ~ .Xtwo::before {
  display         : none;
}

/* The prerequisite choice that sits under its championship or scholarship. Indented and ruled
   on the left so it reads as belonging to the line above rather than as more of the list, the
   same visual idea as the divisions under a group item. */
/* A section in the Select Sections list that an award above has claimed as its qualifying
   choice. It reads like the mandatory prerequisites beside it: the award's purple, and a popup
   saying why it cannot be unticked here.
   A class on the label rather than the script rewriting the checkmark's own class. Swapping the
   class meant remembering the original to put back, and that bookkeeping is what made the
   earlier version of this fight itself. The specificity has to beat
   `.container input:checked ~ .checkmark.purple`, hence naming the input too. */
.container.prereq-claimed.from-championship input ~ .checkmark,
.container.prereq-claimed.from-championship input:checked ~ .checkmark {
	background-color: #cb6ce6;
}
/* A locked-out level reads as unavailable rather than as taken: the award's colour, but muted,
   since it is not the thing the award holds. It still shows the X, which is what
   `input:not(:checked):disabled` draws and the right mark for an option you cannot have. */
.container.prereq-claimed.prereq-sibling input ~ .checkmark {
	opacity			: 0.55;
}

/* Green where a scholarship is the one claiming it, matching the mandatory scholarship
   prerequisites in the same list. Which award holds a section decides its colour, and a
   scholarship always wins that over a championship. */
.container.prereq-claimed.from-scholarship input ~ .checkmark,
.container.prereq-claimed.from-scholarship input:checked ~ .checkmark {
	background-color: #ff66c4;
}

/* Closed until asked for. Every championship would otherwise carry an expanded list of
   qualifying sections whether or not anyone had shown an interest in it, which on a tab that
   already holds every section the competitor is eligible for is several screens of prompting
   nobody asked for. prereqchoice.js opens it when the owner is clicked, and on load only where
   the choice has already been answered. */
.prereq-choice {
  display         : none;
  margin          : 2px 0 10px 34px;
  padding         : 6px 0 2px 12px;
  border-left     : 3px solid #e8407a;
}
.prereq-choice.open {
  display         : block;
}
#container .prereq-choice p.prereq-choice-intro,
#container3 .prereq-choice p.prereq-choice-intro,
.prereq-choice p.prereq-choice-intro {
  /* #container p is an ID rule setting text-align:center, which a class cannot beat. */
  text-align      : left;
  margin          : 0 0 6px;
  font-size        : 0.9em;
  font-style      : italic;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Create the checkmark/indicator (hidden when not checked) */
.Xone::before {
  content: "";
  position: absolute;
  display: none;
}

/* Create the checkmark/indicator (hidden when not checked) */
.Xtwo::before {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Show the stem of the checkmark when unchecked */
.container input:not(:checked):disabled ~ .Xone::before {
  display: block;
}

/* Show the tip of the checkmark when unchecked */
.container input:not(:checked):disabled ~ .Xtwo::before {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Style the checkmark/indicator stem */
.container .Xone::before {
  content: "";
  left: 4px;
  top: 11px;
  width: 18px;
  height: 3px;
  background: white;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Style the checkmark/indicator tip */
.container .Xtwo::before {
	content: "";
	left: 4px;
    top: 11px;
    width: 18px;
    height: 3px;
	background: white;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}



/* A standard control size. This was height:25px with 6px padding, which is small for a
   pointer and cramped for a 16px font. box-sizing makes min-height the whole control rather
   than just its text area, so 38px is the finished height. Phones get more, further down. */
input.cctext, input.filterInput {
	text-align		: left;
	color			: black;
	margin-left		: 40px;
	border			: 1px solid black;
	border-radius	: 4px;
	box-sizing		: border-box;
	min-height		: 38px;
	padding			: 8px 10px;
	font-size		: 1em;
	/* Matched to .styled-select so a text field and a dropdown on the same form line up. It was
	   600px with min-width 60%, and that percentage is what made it stretch absurdly wide as the
	   container grew, since 60% of a wide column is a very long single-line field. */
	width			: 550px;
	max-width		: 100%;
	background-color: #fde8d8;
}
input.cctext:-webkit-autofill,
input.cctext:-webkit-autofill:hover,
input.cctext:-webkit-autofill:focus,
input.filterInput:-webkit-autofill,
input.filterInput:-webkit-autofill:hover,
input.filterInput:-webkit-autofill:focus,
input.cctext:autofill,
input.filterInput:autofill {
	-webkit-box-shadow	: 0 0 0px 1000px #fde8d8 inset;
	box-shadow			: 0 0 0px 1000px #fde8d8 inset;
	-webkit-text-fill-color: black;
}

textarea.cctext {
	text-align		: left;
	color			: black;
	margin-left		: 40px;
	border			: 1px solid black;
	border-radius	: 4px;
	padding			: 6px;
	font-size		: 1em;
	font-family		: inherit;
	min-width		: 60%;
	max-width		: 90%;
	width			: 600px;
	resize			: vertical;
	background-color: #fde8d8;
}

input.html-duration-picker{
	text-align		: left;
	color			: black;
	margin-left		: 40px;
	border			: 1px solid black;
	border-radius	: 4px;
	height			: 40px;
	padding			: 6px;
	font-size		: 2em;
}
.controls button.scroll-btn:nth-child(1) {
  height: 18px !important;
  top: 1px !important;
}

.controls button.scroll-btn:nth-child(2) {
  height: 18px !important;
  top: 18px !important;
}

.html-duration-picker-input-controls-wrapper .html-duration-picker {
  text-align: right;
  padding-right: 20px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  cursor: text;
}

.html-duration-picker-input-controls-wrapper .scroll-btn {
  text-align: center;
  width: 16px;
  padding: 0 4px;
  border: none;
  cursor: default;
  position: absolute;
}

.html-duration-picker-input-controls-wrapper .caret {
  width: 0;
  height: 0;
  border-style: solid;
}

.html-duration-picker-input-controls-wrapper .caret.caret-up {
  border-width: 0 4px 5px 4px;
  border-color: transparent transparent #000 transparent;
}

.html-duration-picker-input-controls-wrapper .caret.caret-down {
  border-width: 5px 4px 0 4px;
  border-color: #000 transparent transparent transparent;
}

.html-duration-picker-input-controls-wrapper .controls {
  display: inline-block;
  position: absolute;
  top: 1px;
  padding: 2px 0;
}

.html-duration-picker-input-controls-wrapper {
  display: inline-block;
  position: relative;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}



/* The brand's muted shade, not the CSS keyword "pink", which is what this was: a literal
   #FFC0CB that stayed pink whatever brand was being served. --inactive-tab-colour is the
   light step in every palette, so this lands at the same weight it always had on PMDES and
   comes out purple on CHDES. */
input::placeholder,
textarea::placeholder {
  color: var(--inactive-tab-colour);
  font-style: italic;
}


.ccselect{

}

label{
	font-size:		0.9em;
	color:			black;
	font-weight:	bold;
	display:		block;
	text-align:		left;
	margin-left:	40px;
	margin-bottom:	0;
}

fieldset{
	margin						: 20px;
	border						: 1px solid #e8407a;
	border-radius				: 6px;
	box-shadow					: 0 0 20px rgba(0, 0, 0, 0.15);
	background					: #f590b0;
	min-width					: 0;
	width						: calc(100% - 40px);
	box-sizing					: border-box;
}

/* Alternating nested fieldsets (autoreport.php wraps each report level in one) get a different border
   so the nesting reads. This used $activeTabColour, which is the exact colour of #container's own
   background, so on an even level the border was invisible: a report rendered as one undifferentiated
   block. $activeTab2Colour is the palette's mid pink, distinct from both the container behind it and
   the $titleAndFooterColour border an odd level uses, which is what makes the alternation visible at
   all. Deliberately softer than the odd border, since this is a nesting cue and not a divider. */
fieldset.alternate:nth-of-type(even) {
	border						: 1px solid #f07aaa;
}

/* Legend backgrounds, matching each fieldset's border colour.
   These used to be painted by a script in form.php that read every fieldset's computed
   border-top-color and applied it to the legend. That left every legend on its CSS default
   until the script ran, so the correct colour arrived after first paint. The colours are
   declared here, which is where the borders they match are declared.
   Only the cases a script was actually changing are listed. The base pair already matched,
   fieldset.fieldset-unwrapped sets its own with !important for contrast, and the borderless
   fieldsets were skipped by the script because an absent border reports currentColor.
   The .green/.purple/... legends are here because legend.green and friends only match when the
   markup puts the class on the legend, which it does only for .alternate. */
.tile-instruction > fieldset > legend,
fieldset.instruction-note > legend{
	background-color			: #e3b98f;
}
.tile-navigation > fieldset > legend{
	background-color			: #C42C93;
}
fieldset.alternate:nth-of-type(even) > legend{
	background-color			: #f07aaa;
}
fieldset.green > legend{     background-color: #ff66c4; }
fieldset.purple > legend{    background-color: #cb6ce6; }
fieldset.blue > legend{      background-color: #ff914d; }
fieldset.gold > legend{      background-color: #ba8442; }
fieldset.rosegold > legend{  background-color: #B76E79; }

legend{
    font-size					: 1em;
    padding						: 5px 30px 5px 30px;
    border						: 0px solid #f590b0;
    border-radius				: 6px;
    color						: black;
    font-weight					: bold;
    background					: #e8407a;
}

.group-info-icon {
    display                     : inline-block;
    width                       : 19px;
    height                      : 19px;
    cursor                      : pointer;
    margin-left                 : 8px;
    vertical-align              : middle;
    position                    : relative;
    user-select                 : none;
    /* The badge and the popup it opens were a matched pair of Material Blue. The hex is URL
       encoded inside the data URI, which is how it survived a search for the colour. */
    background-image            : url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%235b3fa0'/%3E%3Ccircle cx='10' cy='10' r='9' fill='none' stroke='white' stroke-width='2'/%3E%3Ctext x='10' y='10' text-anchor='middle' dominant-baseline='central' fill='white' font-size='11' font-weight='bold' font-family='Arial,Helvetica,sans-serif'%3E%3F%3C/text%3E%3C/svg%3E");
    background-size             : contain;
    background-repeat           : no-repeat;
}

.group-note-popup {
    display                     : none;
    position                    : fixed;
    background                  : white;
    /* The site's own purple, as used by the focus outlines and the leaveguard dialog. Was
       Material Blue, which arrived with the popup and belongs to neither brand. */
    border                      : 1px solid #5b3fa0;
    border-radius               : 6px;
    padding                     : 8px 12px;
    font-size                   : 1.4em;
    line-height                 : 1.4;
    font-weight                 : normal;
    color                       : #333;
    min-width                   : 600px;
    max-width                   : 900px;
    box-shadow                  : 0 2px 8px rgba(0,0,0,0.2);
    z-index                     : 1000;
    white-space                 : normal;
    cursor                      : default;
}

@media (hover: hover) {
    .group-info-icon:hover .group-note-popup {
        display                 : block;
    }
}
.group-info-icon:focus .group-note-popup,
.group-info-icon.open .group-note-popup {
    display                     : block;
}

/* Item-checkbox "why is this locked/pre-selected" trigger -- click-only
   (see .has-info-popup handlers in form.php), whole label is the click
   target, no visible icon. Deliberately its own class with zero base
   styling of its own -- reusing .group-info-icon directly on label.container
   fought .container's own CSS (padding-left for the checkbox indent kept
   getting lost) despite correct specificity on paper; not worth chasing
   further when this is a clean, guaranteed-no-conflict alternative. Only
   reuses .group-note-popup for the popup's own box styling, which was
   already a standalone class not dependent on its parent's class. */
label.container.has-info-popup {
    cursor                       : pointer;
}
label.container.has-info-popup.open .group-note-popup {
    display                      : block;
}

/* $pink = "#009688";
$purple = "#673ab7";
$orange = "#2196F3";
$gold = "#ba8442";
$rosegold = "#B76E79"; */

fieldset.green{
	margin:			20px;
	border:			1px solid #ff66c4;
	border-radius:	6px;
	box-shadow: 	0 0 20px rgba(0, 0, 0, 0.15);
	background:		#f590b0;
	min-width:		0;
	width:			calc(100% - 40px);
	box-sizing:		border-box;
}

legend.green{
    font-size:      1em;
    padding:        5px 30px 5px 30px;
    border:         0px solid #f590b0;
    border-radius:  6px;
    color:          black;
    font-weight:    bold;
    background:     #ff66c4;
}

fieldset.purple{
	margin:			20px;
	border:			1px solid #cb6ce6;
	border-radius:	6px;
	box-shadow: 	0 0 20px rgba(0, 0, 0, 0.15);
	background:		#f590b0;
	min-width:		0;
	width:			calc(100% - 40px);
	box-sizing:		border-box;
}

legend.purple{
    font-size:      1em;
    padding:        5px 30px 5px 30px;
    border:         0px solid #f590b0;
    border-radius:  6px;
    color:          black;
    font-weight:    bold;
    background:     #cb6ce6;
}

fieldset.blue{
	margin:			20px;
	border:			1px solid #ff914d;
	border-radius:	6px;
	box-shadow: 	0 0 20px rgba(0, 0, 0, 0.15);
	background:		#f590b0;
	min-width:		0;
	width:			calc(100% - 40px);
	box-sizing:		border-box;
}

legend.blue{
    font-size:      1em;
    padding:        5px 30px 5px 30px;
    border:         0px solid #f590b0;
    border-radius:  6px;
    color:          black;
    font-weight:    bold;
    background:     #ff914d;
}

fieldset.gold{
	margin:			20px;
	border:			1px solid #ba8442;
	border-radius:	6px;
	box-shadow: 	0 0 20px rgba(0, 0, 0, 0.15);
	background:		#f590b0;
	min-width:		0;
	width:			calc(100% - 40px);
	box-sizing:		border-box;
}

legend.gold{
    font-size:      1em;
    padding:        5px 30px 5px 30px;
    border:         0px solid #f590b0;
    border-radius:  6px;
    color:          black;
    font-weight:    bold;
    background:     #ba8442;
}

fieldset.rosegold{
	margin:			20px;
	border:			1px solid #B76E79;
	border-radius:	6px;
	box-shadow: 	0 0 20px rgba(0, 0, 0, 0.15);
	background:		#f590b0;
	min-width:		0;
	width:			calc(100% - 40px);
	box-sizing:		border-box;
}

legend.rosegold{
    font-size:      1em;
    padding:        5px 30px 5px 30px;
    border:         0px solid #f590b0;
    border-radius:  6px;
    color:          black;
    font-weight:    bold;
    background:     #B76E79;
}

input[type=file] {
    width: 100%; /* Adjust the width as needed */
    max-width: 600px; /* Set a max-width to prevent it from being too wide */
}

input[type=file]::file-selector-button {
	background-color:	#e8407a;
    border			:	0px;
    border-radius	:	4px;
    color			:	black;
    font-weight		:	bold;
    padding			:	15px 32px;
    margin			:	6px 1px 6px 41px;
    text-align		:	center;
    position		:	relative;
    text-decoration	:	none;
    display			:	inline-block;
    font-size		:	16px;
    cursor			:	pointer;
    z-index			:	1;
}

input[type=file]::file-selector-button:hover {
	border			:	0px;
    border-radius	:	4px;
    background-color:	#fde8d8;
    color			:	#fff;
    z-index			:	2;
}


.button
{
    background-color:	#e8407a;
    border			:	0px;
    border-radius	:	4px;
    color			:	black;
    font-weight		:	bold;
    padding			:	15px 32px;
    margin			:	6px 1px 6px 41px;
    text-align		:	center;
    position		:	relative;
    text-decoration	:	none;
    display			:	inline-block;
    font-size		:	16px;
    cursor			:	pointer;
    z-index			:	1;
}
.button:hover
{
    border			:	0px;
    border-radius	:	4px;
    background-color:	#fde8d8;
    /* Black, not white. The hover background is a pale cream, so white text on it was 1.21:1,
       which is effectively invisible. This is 17.71:1. It applies to every button on the site,
       not just the pinned action bar where it was noticed. */
    color			:	#000;
    z-index			:	2;
}
.button:disabled
{
    opacity			:	0.4;
    cursor			:	default;
}
.button:disabled:hover
{
    background-color:	#e8407a;
    color			:	black;
}

.helpText{
	margin-left		:	40px;
	font-size		:	80%;
}


.styled-select {
   height: 29px;
   overflow: hidden;
   width: 550px;
   max-width: 100%;
   margin-left: 40px;
   margin-top: 10px;
}

.styled-select select {
   background: transparent;
   border: none;
   font-size: 14px;
   color: black;
   height: 29px;
   padding: 5px; /* If you add too much padding here, the options won't show in IE */
   width: 550px;
   max-width: 100%;
}

/* Restores the arrow to .styled-select. That rule sets `background: transparent`, and the
   shorthand resets background-image, so it wiped the chevron the generic select rule draws.
   appearance:none still applied, which had already removed the NATIVE arrow, so these controls
   were left with no indication at all that they were dropdowns. Same selector as the rule
   above, placed after it, so it wins without an arms race on specificity. */
.styled-select select,
#adminmodeswitch select {
   background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b3fa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 10px center;
   background-size: 12px 8px;
   padding-right: 30px;
}

.styled-select.slate {
   height: 34px;
   width: 550px;
   max-width: 100%;
}

.styled-select.slate select {
   border: 1px solid #ccc;
   font-size: 16px;
   height: 34px;
   width: 550px;
   max-width: 100%;
}

.rounded {
   -webkit-border-radius: 20px;
   -moz-border-radius: 20px;
   border-radius: 20px;
}

.semi-square {
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
}

/* -------------------- Colors: Background */
.slate   { background-color: #ddd; }
.green   { background-color: #779126; }
.blue    { background-color: #e8407a; }
.yellow  { background-color: #eec111; }
.black   { background-color: #000; }

/* -------------------- Colors: Text */
.slate select   { color: #000; }
.green select   { color: #fff; }
.blue select    { color: #000; }
.yellow select  { color: #000; }
.black select   { color: #fff; }


#mainselection select {
   border: 0;
   color: #EEE;
   background: transparent;
   font-size: 20px;
   font-weight: bold;
   padding: 2px 10px;
   width: 378px;
   *width: 350px;
   *background: #58B14C;
   -webkit-appearance: none;
}

#mainselection {
   overflow:hidden;
   width:350px;
   -moz-border-radius: 9px 9px 9px 9px;
   -webkit-border-radius: 9px 9px 9px 9px;
   border-radius: 9px 9px 9px 9px;
   box-shadow: 1px 1px 11px #330033;
   background: #58B14C;
}


/* ---- Dropdowns ---------------------------------------------------------------------------
   The native control paints a white box and a system-blue highlight, which fights the palette
   everywhere it appears. appearance:none removes the platform chrome so the closed control can
   be styled, and the arrow is drawn here as an inline SVG so it needs no image request.

   The open list is only partly ours: Firefox and Chrome on Windows and Linux honour option
   colours, while macOS, iOS and Android draw a native picker that ignores them. accent-color
   is the one property those platforms do respect, so the highlight at least lands on brand
   instead of system blue. Everything here degrades to a plain usable select. */
select,
select#soflow,
select#soflow-color{
	-webkit-appearance	: none;
	-moz-appearance		: none;
	appearance			: none;
	background-color	: #fff;
	background-image	: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b3fa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat	: no-repeat;
	background-position	: right 12px center;
	background-size		: 12px 8px;
	padding-right		: 34px;
	border				: 1px solid #b9a7d6;
	border-radius		: 6px;
	color				: #231f20;
	accent-color		: #e8407a;
	cursor				: pointer;
}
select:hover{
	border-color		: #8a6fc4;
}
select:focus{
	outline				: 3px solid rgba(91,63,160,.35);
	outline-offset		: 1px;
	border-color		: #5b3fa0;
}
select:disabled{
	opacity				: .6;
	cursor				: default;
}
/* Honoured on Firefox, and on Chrome under Windows and Linux. Ignored by the native pickers
   on macOS, iOS and Android, which is why accent-color is set above as well. */
select option{
	background-color	: #fff;
	color				: #231f20;
	padding				: 6px 10px;
}
select option:checked,
select option:hover{
	background-color	: #fde8d8;
	color				: #231f20;
}
/* On the dark navigation tile the control keeps a light ground, but its arrow and edge pick up
   the tile rather than the default lilac. */
.tile-navigation select{
	border-color		: rgba(255,255,255,.75);
}

select#soflow, select#soflow-color {
   /* 300px below is the preferred width, not a floor. With margin:20px either side this
      element demanded 340px, which became the minimum width of anything containing it: a
      packed column could not go narrower and a phone was pushed sideways. This clamps it to
      whatever the container can give once its own margins are paid for, so it is unchanged
      anywhere there is room. */
   max-width: calc(100% - 40px);
   box-sizing: border-box;
   -webkit-appearance: button;
   -webkit-border-radius: 2px;
   -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
   -webkit-user-select: none;
   background-position: 97% center;
   background-repeat: no-repeat;
   border: 1px solid #AAA;
   color: #555;
   font-size: inherit;
   margin: 20px;
   overflow: hidden;
   /* Right padding must clear the arrow drawn by the generic select rule above. This is an
      ID selector, so a plain shorthand here silently won that rule's padding-right and let
      long option text run underneath the chevron. */
   padding: 8px 34px 8px 10px;
   text-overflow: ellipsis;
   white-space: nowrap;
   width: 300px;
}

select#soflow-color {
   color: #fff;
   background-color: #779126;
   -webkit-border-radius: 20px;
   -moz-border-radius: 20px;
   border-radius: 20px;
   padding-left: 15px;
}


/* Audio player css Variables */

audio {
    width: 100%;
	max-width: 600px;
	border-radius: 10px;
	margin-left: 40px;
    background-color: #fde8d8; /* Background color of the control bar */
}

audio::-webkit-media-controls-panel {
	border-radius: 20px;
    background-color: #fde8d8; /* Control bar background color */
}

audio::-webkit-media-controls-enclosure {
    border-radius: 10px;
    background-color: #fde8d8;
}

audio::-webkit-media-controls {
    background-color: #fde8d8;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button,
audio::-webkit-media-controls-mute-button,
audio::-webkit-media-controls-volume-slider,
audio::-webkit-media-controls-timeline {
	border-radius: 20px;
	margin-left: 5px;
    color: #e8407a; /* Control buttons color */
    background-color: #f07aaa; /* Control buttons background color */
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-timeline-container {
    color: #e8407a; /* Time display color */
}

audio::-webkit-media-controls-volume-slider {
	padding-left: 10px;
	padding-right: 10px;
    background-color: #f590b0; /* Volume slider background color */
}







/* Stripe css Variables */

.payment-form {
  display: flex;
  justify-content: center;
}

#payment-form {
  width: 30vw;
  min-width: 500px;
  align-self: center;
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
  border-radius: 7px;
  padding: 40px;
}

.hidden {
  display: none;
}

#payment-message {
  color: rgb(105, 115, 134);
  font-size: 16px;
  line-height: 20px;
  padding-top: 12px;
  text-align: center;
}

#payment-element {
  margin-bottom: 24px;
}

/* Buttons and links */
/* Pasted from Stripe's Elements sample, whose button and spinner are their own #5469d4. That
   is Stripe's brand, not ours, and it sat on the checkout page where it was the most visible
   colour on the screen. White on #5b3fa0 is 7.88:1, the same check the navigation tiles and
   the balance summary record. */
#submit {
  background: #5b3fa0;
  font-family: Arial, sans-serif;
  color: #ffffff;
  border-radius: 4px;
  border: 0;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
}
#submit:hover {
  filter: contrast(115%);
}
#submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* spinner/processing state, errors */
.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}
.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}
.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: #5b3fa0;
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}
.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: #5b3fa0;
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 800px) {
  #wrapper,
  #banner, #statusbar, #navbar, #content, #container, #footer {
    margin-top    : 0;
    margin-bottom : 0;
    border-radius : 0;
  }
  body {
    padding-left  : 0;
  }
  #lcontain, #rcontain, #fourcontain {
    float         : none;
    width         : 100%;
    box-sizing    : border-box;
  }
  #fourgroup {
    float         : none;
    width         : 100%;
    height        : auto;
    box-sizing    : border-box;
  }
  #tabnav {
    overflow      : hidden;
    display       : block;
  }

  /* ---- Portrait navigation: drawer replaces the tab rows ---- */
  /* Scoped to has-nav-drawer, which form.php sets only once the drawer is actually built.
     Unconditionally hiding these left a phone with no navigation at all if the script did not
     run: no tabs, no sub-tabs, no logout, and no way off the page. */
  body.has-nav-drawer #tabnav,
  body.has-nav-drawer #subtabnav,
  body.has-nav-drawer #subtabnav-shadow {
    display       : none !important;
  }
  #navtoggle {
    display       : flex;
    align-items   : center;
    gap           : 10px;
    width         : 100%;
    border        : 0;
    background    : #fde8d8;
    color         : #000;
    font          : bold 15px Arial, Helvetica, sans-serif;
    padding       : 13px 15px;
    text-align    : left;
    cursor        : pointer;
    border-radius : 8px 8px 0 0;
  }
  #navtoggle .bars {
    display       : block;
    width         : 19px;
    height        : 2px;
    background    : #000;
    position      : relative;
    flex          : 0 0 auto;
  }
  #navtoggle .bars::before,
  #navtoggle .bars::after {
    content       : "";
    position      : absolute;
    left          : 0;
    width         : 19px;
    height        : 2px;
    background    : #000;
  }
  #navtoggle .bars::before { top: -6px; }
  #navtoggle .bars::after  { top:  6px; }
  /* "Menu" sits with the bars on the left and does not shrink: it is the control's label, and
     the thing a phone user is looking for. */
  #navtoggle .menu-label {
    flex          : 0 0 auto;
  }
  /* The current tab name is pushed to the right edge, so the left of the bar is always the same
     control in the same place whatever tab you are on. It takes the remaining width and is the
     only part allowed to truncate, since a long section name is the one thing here that can
     outgrow a phone. */
  #navtoggle .current {
    flex          : 1;
    text-align    : right;
    font-weight   : normal;
    overflow      : hidden;
    text-overflow : ellipsis;
    white-space   : nowrap;
  }
  #navscrim {
    display       : block;
    position      : fixed;
    inset         : 0;
    background    : rgba(0,0,0,.45);
    opacity       : 0;
    visibility    : hidden;
    transition    : opacity .2s ease;
    z-index       : 998;
  }
  #navscrim.open { opacity: 1; visibility: visible; }
  #navdrawer {
    display       : block;
    /* Closed, it is only translated off-screen, so every link in it stayed focusable and in
       the accessibility tree: tabbing walked into invisible controls. visibility:hidden takes
       it out of both, and the transition keeps it visible while it slides away. */
    visibility    : hidden;
    position      : fixed;
    top           : 0;
    right         : 0;
    height        : 100%;
    width         : 78%;
    max-width     : 310px;
    background    : #e8407a;
    transform     : translateX(100%);
    transition    : transform .22s ease, visibility .22s;
    z-index       : 999;
    overflow-y    : auto;
    -webkit-overflow-scrolling: touch;
  }
  #navdrawer.open {
    transform     : translateX(0);
    visibility    : visible;
  }
  #navdrawer .shut {
    width         : 100%;
    text-align    : right;
    background    : none;
    border        : 0;
    color         : #fff;
    font-size     : 28px;
    line-height   : 1;
    padding       : 10px 16px;
    cursor        : pointer;
  }
  #navdrawer a {
    display       : block;
    color         : #fff;
    font-weight   : bold;
    font-size     : 15.5px;
    padding       : 15px 18px;
    text-decoration: none;
    border-bottom : 1px solid rgba(255,255,255,.18);
  }
  #navdrawer a.active {
    background    : #fde8d8;
    color         : #000;
  }
  /* Sub-tabs sit under their parent, indented, so the hierarchy survives the flattening. */
  #navdrawer a.sub {
    padding-left  : 34px;
    font-size     : 14px;
    font-weight   : normal;
    background    : rgba(0,0,0,.12);
  }
  #navdrawer a.sub.active {
    background    : #fde8d8;
    color         : #000;
  }

  #subtabnav {
    overflow      : hidden;
    display       : block;
    padding-top   : 0;
  }
  audio {
    margin-left   : 0;
  }
}

@media only screen and (max-width: 600px) {
  form {
    width         : 100%;
    min-width     : 0;
    box-sizing    : border-box;
  }
  #top h1 {
    font-size     : 22px;
    padding-top   : 16px;
    padding-bottom: 16px;
  }
  #statusbar h2 {
    font-size     : 18px;
    padding-top   : 12px;
    padding-bottom: 12px;
  }
  .group-note-popup {
    width         : 90vw;
    left          : 4px !important;
    font-size     : 1.1em;
    min-width     : 0;
  }
  #subtabnav {
    overflow-x    : auto;
    flex-wrap     : nowrap;
  }
  fieldset {
    min-width     : 0;
    width         : 100%;
    margin        : 10px 0;
    box-sizing    : border-box;
  }
  input, select, textarea,
  input.cctext, input.filterInput, textarea.cctext,
  .styled-select, .styled-select select,
  .styled-select.slate, .styled-select.slate select {
    width         : 100% !important;
    max-width     : 100% !important;
    min-width     : 0 !important;
    margin-left   : 0 !important;
    /* margin-right stayed at 20px, so a width:100% control overflowed by exactly that. */
    margin-right  : 0 !important;
    box-sizing    : border-box;
      /* Phones get a bigger target and a bigger font. 16px is not cosmetic: below it,
         iOS zooms the whole page when the field takes focus, which then leaves the
         layout scrolled sideways. 46px clears the 44px touch-target minimum. */
      min-height    : 46px !important;
      font-size     : 16px !important;
      padding       : 11px 12px !important;
      line-height   : 1.3 !important;
  }

    /* The wrapper is height:29px with overflow:hidden, so forcing its select to 46px above
       clipped 17px off the control and took part of the option text with it. The wrapper has
       to grow with its contents. */
    .styled-select, .styled-select.slate, #adminmodeswitch {
      height        : auto !important;
      overflow      : visible !important;
      width         : auto !important;
    }

    /* The shorthand padding above overrides the padding-right that reserves room for the
       arrow, so option text ran underneath it on phones. Selects need the right-hand room
       back; text inputs do not. */
    select {
      padding       : 11px 34px 11px 12px !important;
    }

    /* A swatch is not a field you type into, so none of the phone treatment above applies to
       it: at width 100% and 46px tall it is a full-width bar rather than a dot, and the 12px
       padding pushes the colour itself in from the edges. It is already a 44px-plus target with
       the margin around it. !important because the bare `input` rule above uses it, which beats
       this selector's higher specificity. */
    input[type="color"] {
      width         : 30px !important;
      min-width     : 30px !important;
      height        : 30px !important;
      min-height    : 30px !important;
      padding       : 0 !important;
      margin        : 0 8px 0 0 !important;
    }

    /* The 40px indent goes on phones with every other one, and the label stops reserving a
       fixed column so a long label wraps instead of squeezing the dot off the edge. */
    .colourfield {
      margin-left   : 0;
    }
    .colourfield label {
      min-width     : 0;
    }

    /* Buttons were swept up by the 16px bump, which exists only because iOS zooms the page
       when a text field under 16px takes focus. A button does not trigger that, so this was a
       20% wider label for no benefit, inside a width:100% box whose label cannot wrap. The
       touch target stays 46px. */
    input[type="submit"], input[type="button"], input[type="reset"] {
      font-size     : 14px !important;
      padding       : 11px 10px !important;
    }
  label {
    display       : block;
  }
  label,
  audio,
  input[type="color"],
  input[type="button"], input[type="submit"], input[type="reset"],
  button,
  span.error, span.uploading, span.confirmed, span.listen-required, span.convert-failed,
  .styled-select,
  #rcontain p, #lcontain p, #fourcontain p, #rcontain li, #lcontain li, #container p, #footer p,
  .tab, .tab2 {
    margin-left   : 0 !important;
  }
  h2 {
    font-size     : 1.1em;
  }
  h3 {
    font-size     : 1em;
  }
  .container {
    font-size     : 0.8em;
  }
}

@keyframes conveyor-right {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes conveyor-left {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
.tab-conveyor-track {
    display                 : flex !important;
    flex-wrap               : nowrap !important;
    list-style              : none;
    margin                  : 0;
    padding                 : 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration      : 40s;
    width                   : max-content;
}
.tab-conveyor-track.paused {
    animation-play-state    : paused;
}

@keyframes bg-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes bg-twinkle {
    0%, 100% { opacity: var(--base-opacity); }
    50%       { opacity: calc(var(--base-opacity) * 0.5); }
}
@keyframes bg-drift-a {
    0%   { translate:   0px   0px; }
    25%  { translate:  40px -30px; }
    50%  { translate:  20px  50px; }
    75%  { translate: -35px  20px; }
    100% { translate:   0px   0px; }
}
@keyframes bg-drift-b {
    0%   { translate:   0px   0px; }
    25%  { translate: -50px  25px; }
    50%  { translate: -10px -40px; }
    75%  { translate:  45px -15px; }
    100% { translate:   0px   0px; }
}
@keyframes bg-drift-c {
    0%   { translate:   0px   0px; }
    33%  { translate:  30px  45px; }
    66%  { translate: -40px  15px; }
    100% { translate:   0px   0px; }
}
@keyframes bg-drift-d {
    0%   { translate:   0px   0px; }
    20%  { translate: -25px -45px; }
    60%  { translate:  50px -20px; }
    80%  { translate:  15px  35px; }
    100% { translate:   0px   0px; }
}
.bg-decoration {
    animation: bg-spin var(--spin-dur) linear infinite,
               bg-twinkle var(--twinkle-dur) ease-in-out infinite,
               var(--drift-anim) var(--drift-dur) ease-in-out infinite;
    animation-delay: 0s, 0s, var(--drift-delay);
}




/* ─── Live Status board ───────────────────────────────────────────────────────
 *
 * Built to the design concept on the Live Event Status canvas, which is itself the look of the
 * venue's own stream overlays on the on-site box (streampanel.html at 16:9, instagramstream.html
 * at 9:16). Someone watching at home and someone looking at the screen in the foyer should feel
 * they are reading the same thing.
 *
 * The concept's ground is a four-stop diagonal sweep through the whole palette, backstage purple
 * to violet to pink to flare, rather than a flat panel with one accent. Per-mode variants shift
 * those stops instead of swapping to unrelated colours, so the board still reads as one family
 * whatever the event is doing.
 *
 * Two deliberate departures from the concept, both because this is a tab and not a broadcast
 * overlay. It is fluid to a max-width with content-driven height, not a fixed 960x540 frame; and
 * where the overlay shows an "On time" chip from the venue's own pace data, this shows the event
 * status, because getpublic.php carries no pace figure and inventing one would be worse than
 * showing the thing we do know.
 *
 * Every rule is scoped under .els-, because this stylesheet is global to the whole app.
 */
.els-board {
    --els-tulle : #F7EFF7;
    --els-accent: linear-gradient(300deg, #9661D4 0%, #FC489E 52%, #FB763E 100%);

    position        : relative;
    overflow        : hidden;
    font-family     : 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif;
    color           : var(--els-tulle);
    background      : linear-gradient(120deg, #281248 0%, #9661D4 38%, #FC489E 72%, #FB763E 100%);
    border-radius   : 14px;
    padding         : 26px 34px 24px;
    margin          : 0 0 18px;
    max-width       : 960px;
    box-shadow      : 0 14px 34px rgba(40, 18, 72, 0.3);
}

/* The authoritative palettes, lifted from the state concept's own PAL map rather than guessed.
 *
 * Two things in it corrected what I had invented. A BREAK uses the results palette, not a red
 * one: red on an otherwise purple-to-pink board reads as a fault rather than as a scheduled
 * interval. And standby is a LIGHT ground, which the earlier draft had as deep purple.
 *
 * Text is #F7EFF7 on every palette, the light standby ground included, exactly as the concept
 * draws it. I queried that one and Daniel confirmed it reads fine, so it is not second-guessed
 * here.
 */
.els-board[data-mode="now"] {
    background: linear-gradient(120deg, #281248 0%, #9661D4 38%, #FC489E 72%, #FB763E 100%);
    --els-accent: linear-gradient(300deg, #9661D4 0%, #FC489E 52%, #FB763E 100%);
}
.els-board[data-mode="standby"],
.els-board[data-mode="fallback"] {
    background: linear-gradient(120deg, #C8A8F7 0%, #FFAEE8 42%, #FC489E 100%);
    --els-accent: linear-gradient(300deg, #8A3FD0 0%, #E23A88 50%, #FC489E 100%);
}
.els-board[data-mode="notice"] {
    background: linear-gradient(120deg, #7941EC 0%, #A897FF 48%, #F855A8 100%);
    --els-accent: linear-gradient(300deg, #6C2EA8 0%, #9E3FC8 50%, #C24FC0 100%);
}
/* A break shares the results palette, as the concept has it. */
.els-board[data-mode="break"],
.els-board[data-mode="results"] {
    background: linear-gradient(120deg, #FF6D63 0%, #FF5095 42%, #BD288E 74%, #281248 100%);
    --els-accent: linear-gradient(300deg, #7A1F6E 0%, #C42C93 50%, #E8459E 100%);
}

.els-rail {
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--els-accent);
}

.els-top {
    display         : flex;
    align-items     : flex-start;
    justify-content : space-between;
    gap             : 16px;
}

/* The flag is a raised gradient pill, which is what makes it read as a broadcast caption. */
.els-flag {
    display       : inline-flex;
    align-items   : center;
    gap           : 10px;
    background    : var(--els-accent);
    padding       : 9px 18px;
    border-radius : 10px;
    box-shadow    : 0 10px 24px rgba(0, 0, 0, 0.3);
}
.els-flagword {
    font-weight    : 800;
    text-transform : uppercase;
    letter-spacing : 0.04em;
    font-size      : 17px;
    color          : #fff;
}
.els-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #fff; display: inline-block; flex: 0 0 auto; opacity: 0.55;
}
/* Only breathes while something is actually on stage, so the movement carries meaning. */
.els-board[data-mode="now"] .els-dot { opacity: 1; animation: elsPulse 2s infinite; }
@keyframes elsPulse {
    0%   { transform: scale(1);   opacity: 0.9; }
    50%  { transform: scale(0.6); opacity: 0.35; }
    100% { transform: scale(1);   opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
    .els-board[data-mode="now"] .els-dot { animation: none; }
}

/* The concept's second line in the flag block: who is on, or what the break is. */
.els-flagsub {
    margin-top     : 6px;
    font-weight    : 700;
    text-transform : uppercase;
    letter-spacing : 0.03em;
    font-size      : 14px;
    color          : rgba(255, 255, 255, 0.92);
}
.els-flagsub:empty { display: none; }
.els-flagblock { min-width: 0; }

.els-context  { text-align: right; min-width: 0; }
.els-sectionno {
    font-weight    : 700;
    text-transform : uppercase;
    letter-spacing : 0.05em;
    font-size      : 15px;
    color          : rgba(255, 255, 255, 0.88);
    text-shadow    : 0 2px 8px rgba(0, 0, 0, 0.4);
}
.els-eventline { font-size: 13px; color: rgba(255, 255, 255, 0.68); margin-top: 2px; }

.els-hero {
    text-align : center;
    padding    : 30px 8px 26px;
}
.els-eyebrow {
    font-weight    : 700;
    text-transform : uppercase;
    letter-spacing : 0.1em;
    font-size      : 15px;
    color          : rgba(255, 255, 255, 0.72);
    margin-bottom  : 10px;
}
.els-eyebrow:empty { display: none; }
.els-name {
    font-weight : 800;
    font-size   : 56px;
    line-height : 1.05;
    color       : #fff;
    text-shadow : 0 10px 30px rgba(0, 0, 0, 0.4);
    text-wrap   : balance;
}
.els-section {
    margin-top     : 14px;
    font-weight    : 600;
    text-transform : uppercase;
    letter-spacing : 0.03em;
    font-size      : 19px;
    color          : rgba(255, 255, 255, 0.9);
    text-wrap      : balance;
}

/* Collapses entirely, not to an empty bar: a break and a next-section notice carry no section,
 * no position and no pace in the concept, and an empty 7px track reads as a stalled one. */
.els-foot.els-empty { display: none; }

.els-footrow {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    gap             : 12px;
    margin-bottom   : 9px;
}
.els-pacelabel {
    font-weight    : 600;
    text-transform : uppercase;
    letter-spacing : 0.05em;
    font-size      : 13px;
    color          : rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
}
.els-chip {
    font-weight    : 700;
    text-transform : uppercase;
    letter-spacing : 0.04em;
    font-size      : 13px;
    color          : rgba(255, 255, 255, 0.92);
    background     : rgba(255, 255, 255, 0.15);
    padding        : 5px 14px;
    border-radius  : 7px;
    white-space    : nowrap;
}
.els-chip:empty { display: none; }
.els-pacebar {
    height        : 7px;
    border-radius : 8px;
    background    : rgba(255, 255, 255, 0.18);
    overflow      : hidden;
}
.els-pacefill { height: 100%; width: 0; background: #fff; transition: width 0.6s ease; }

.els-age {
    margin-top : 12px;
    font-size  : 12px;
    color      : rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}
.els-watermark {
    position       : absolute;
    right          : 26px;
    bottom         : 10px;
    font-weight    : 800;
    font-size      : 26px;
    letter-spacing : 0.02em;
    color          : rgba(255, 255, 255, 0.14);
    pointer-events : none;
}
.els-watermark:empty { display: none; }

.els-nodata {
    font-family : 'Poppins', 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size   : 17px;
    font-weight : 500;
    line-height : 1.45;
    max-width   : 60ch;
}

/* Narrow screens get the VERTICAL treatment, not a squeezed horizontal one.
 *
 * The two overlays are two designs, not one design at two sizes: streampanel.html is 960x540 and
 * instagramstream.html is 540x960, with its own gradient angle, rail, type scale and a stacked
 * top block. Daniel's call is to follow that split here, so below the vertical frame's own width
 * this board becomes the Insta layout and above it the broadcast one. Every number here is from
 * that artboard rather than invented: 160deg, a 4px rail, 42px hero, 17px section, 6px pace bar.
 */
@media (max-width: 700px) {
    .els-board { padding: 24px 22px 20px; border-radius: 12px; }
    /* Same palettes, the vertical artboard's 160deg angle. */
    .els-board[data-mode="now"]      { background: linear-gradient(160deg, #281248 0%, #9661D4 38%, #FC489E 72%, #FB763E 100%); }
    .els-board[data-mode="standby"],
    .els-board[data-mode="fallback"] { background: linear-gradient(160deg, #C8A8F7 0%, #FFAEE8 42%, #FC489E 100%); }
    .els-board[data-mode="notice"]   { background: linear-gradient(160deg, #7941EC 0%, #A897FF 48%, #F855A8 100%); }
    .els-board[data-mode="break"],
    .els-board[data-mode="results"]  { background: linear-gradient(160deg, #FF6D63 0%, #FF5095 42%, #BD288E 74%, #281248 100%); }
    .els-flagsub { font-size: 13px; }

    .els-rail      { height: 4px; }
    /* Stacked, which is what the vertical artboard does with the same two blocks. */
    .els-top       { flex-direction: column; align-items: flex-start; gap: 10px; }
    .els-context   { text-align: left; }
    .els-sectionno { font-size: 14px; }
    .els-eventline { font-size: 12px; }

    .els-hero      { padding: 26px 0 22px; }
    .els-eyebrow   { font-size: 14px; }
    .els-name      { font-size: 42px; line-height: 1.08; }
    .els-section   { font-size: 17px; margin-top: 12px; }

    .els-pacelabel { font-size: 13px; }
    .els-chip      { font-size: 13px; padding: 5px 13px; }
    .els-pacebar   { height: 6px; }
    .els-watermark { display: none; }
}

/* Below the narrowest phone the 42px hero still has to give, or a long name takes four lines. */
@media (max-width: 400px) {
    .els-name    { font-size: 33px; }
    .els-section { font-size: 15px; }
}

/* The placings list, from the state concept's results and recap panes. Rank badges are its own
 * BADGE map: blue for first, pink-to-flare for second, teal for third, purple for a highly
 * commended. Fourth and Encouragement are not in that map, so they take the purple too rather
 * than inventing two more colours.
 *
 * One list serves both states. Results is the current section once its places are announced;
 * Recap is the previous section, shown while the current one is still being danced. Only the
 * label and heading differ, so there is no second panel to keep in step. */
.els-places {
    margin-top : 4px;
    padding    : 16px 0 2px;
    border-top : 1px solid rgba(255, 255, 255, 0.22);
}
.els-placeslabel {
    font-weight    : 700;
    text-transform : uppercase;
    letter-spacing : 0.1em;
    font-size      : 12px;
    color          : rgba(255, 255, 255, 0.72);
}
.els-placeshead {
    font-weight : 600;
    font-size   : 17px;
    margin      : 3px 0 11px;
    text-wrap   : balance;
}
.els-placeslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
/* The global `li { float: left }` rule, which exists for the tab navigation, would otherwise run
 * these onto one line. */
.els-placeslist li { float: none; }
.els-placesline {
    display     : flex;
    align-items : center;
    gap         : 10px;
    font-size   : 15px;
    font-weight : 500;
}
.els-rank {
    flex           : 0 0 auto;
    min-width      : 42px;
    text-align     : center;
    padding        : 3px 8px;
    border-radius  : 6px;
    font-weight    : 700;
    font-size      : 12px;
    text-transform : uppercase;
    letter-spacing : 0.03em;
    color          : #fff;
    background     : linear-gradient(135deg, #9661D4, #5b3fa0);
}
.els-rank[data-rank="1st"] { background: linear-gradient(135deg, #5AB4F5, #2E6FD6); }
.els-rank[data-rank="2nd"] { background: linear-gradient(135deg, #FC489E, #FB763E); }
.els-rank[data-rank="3rd"] { background: linear-gradient(135deg, #4FD1B5, #2FA88C); color: #1b0d30; }

@media (max-width: 700px) {
    .els-places     { padding-top: 14px; }
    .els-placeshead { font-size: 15px; }
    .els-placesline { font-size: 14px; }
}

/* A withheld score. It occupies the same slot as the number so a card does not reflow when a
 * section releases, but reads as a sentence rather than a figure: it is text like "Not yet
 * released" or "Pending: Highest Scoring Duo Overall", not a score. */
p.result-score.result-score-held {
    font-size   : 14px;
    font-weight : 500;
    font-style  : italic;
    opacity     : 0.8;
    line-height : 1.4;
}

/* A card with no photo keeps the real tile's exact footprint, so headings stay level across a
 * row instead of one card riding up where its photo is missing.
 *
 * Built to match rather than guessed at. Inside a result card the real tile is width:100%, not
 * the 116px it is elsewhere, and Move's thumbnails are 550x367, so the picture area takes that
 * aspect-ratio and scales with the card at any width. Underneath it sits a caption line with the
 * same padding, size and line-height as the real tile's, because that caption is what sets the
 * bottom edge. The note goes in the picture area and the caption keeps one short word, since the
 * real caption is the single line "Photos" and a wrapped one would make this tile taller.
 *
 * Plainly not a link: dashed, a div rather than an a, no hover, and Tab skips it.
 */
.photo-absent {
	width			: 100%;
	box-sizing		: border-box;
	border-radius	: 8px;
	border			: 1px dashed rgba(255,255,255,.45);
	background		: rgba(255,255,255,.07);
	overflow		: hidden;
}
.photo-absent-note {
	display			: flex;
	align-items		: center;
	justify-content	: center;
	aspect-ratio	: 550 / 367;
	padding			: 6px;
	box-sizing		: border-box;
	font-size		: 0.78em;
	line-height		: 1.25;
	text-align		: center;
	color			: rgba(255,255,255,.72);
}
.photo-absent-label {
	display			: block;
	padding			: 4px 6px;
	font-size		: 0.95em;
	line-height		: 1.3;
	text-align		: center;
	color			: rgba(255,255,255,.85);
}

/* A withdrawal row that already carries a result. Says so on the row, before anyone reaches for
 * the tick, rather than only in the dialog that follows it. Amber rather than red: this is a
 * caution about a consequence, not an error, and the action is still allowed. */
.withdraw-hasresult {
	margin			: 3px 0 0;
	font-size		: 0.78em;
	line-height		: 1.4;
	font-weight		: 600;
	color			: #8a4b00;
}
