/* IDACDA All-State — front end. Scoped to .idacda-as; inherits the theme font. */
.idacda-as {
	--as-ink: #18181b;
	--as-muted: #6b7280;
	--as-line: #e5e7eb;
	--as-soft: #f6f7f9;
	--as-accent: #1e3a5f;
	--as-accent-ink: #fff;
	--as-good: #166534;
	--as-good-bg: #dcfce7;
	--as-warn: #92400e;
	--as-warn-bg: #fef3c7;
	--as-bad: #b91c1c;
	--as-bad-bg: #fee2e2;
	--as-radius: 10px;
	color: var(--as-ink);
	line-height: 1.5;
	max-width: 1100px;
	margin: 0 auto;
}
.idacda-as *, .idacda-as *::before, .idacda-as *::after { box-sizing: border-box; }
.idacda-as h2 { margin: 0 0 .25em; font-size: 1.6em; line-height: 1.2; }
.idacda-as h3 { margin: 1.6em 0 .6em; font-size: 1.2em; }
.idacda-as h4 { margin: .4em 0 .2em; font-size: 1.1em; }
.idacda-as section { margin-bottom: 2em; }
.idacda-as .as-muted, .idacda-as small { color: var(--as-muted); }
.idacda-as [hidden] { display: none !important; }
.idacda-as .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Notices and callouts */
.as-notice { padding: 12px 16px; border-radius: var(--as-radius); margin: 0 0 1.25em; font-weight: 500; }
.as-notice-success { background: var(--as-good-bg); color: var(--as-good); }
.as-notice-error { background: var(--as-bad-bg); color: var(--as-bad); }
.as-notice-info { background: #e0ecff; color: #1e40af; }
.as-callout { background: var(--as-soft); border-left: 4px solid var(--as-accent); padding: 14px 18px; border-radius: 0 var(--as-radius) var(--as-radius) 0; margin: 0 0 1.5em; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.as-callout-good { border-color: var(--as-good); background: var(--as-good-bg); }
.as-callout-warn { border-color: #d97706; background: var(--as-warn-bg); }
.as-callout select { max-width: 100%; }

/* Buttons: the theme's own .btn / .btn-theme-primary / .btn-theme-primary-outline
   (OnePress + the site's custom CSS). Only spacing and two exceptions here. */
.idacda-as .btn { text-decoration: none; margin: 0; }
.idacda-as .btn:disabled { opacity: .55; cursor: not-allowed; }
/* The site's custom CSS sets every .btn to 1.3em !important; compact buttons
   inside tables need to stay compact. */
.idacda-as .btn.btn-sm { font-size: .85em !important; padding: .3rem .8rem; }
.idacda-as .as-link-btn { background: none; border: 0; padding: 0; color: var(--as-bad); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }
.as-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Header */
.as-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 1em; border-bottom: 1px solid var(--as-line); margin-bottom: 1.5em; }
.as-head-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .95em; }
.as-back { margin: 0 0 1em; font-size: .95em; }
.as-back a { text-decoration: none; }
.as-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 1.6em 0 .8em; }
.as-section-head h2, .as-section-head h3 { margin: 0; }

/* Cards */
.as-card { background: #fff; border: 1px solid var(--as-line); border-radius: var(--as-radius); padding: 20px; }
.as-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.as-event-card { display: flex; flex-direction: column; gap: 6px; }
.as-event-card h3 { margin: .3em 0 .1em; font-size: 1.3em; line-height: 1.25; }
.as-event-card h3 a { text-decoration: none; color: inherit; }
.as-event-card > .btn { align-self: flex-start; margin-top: auto; }
.as-event-card p { margin: 0; text-align: left; }
.as-tile-date { color: var(--as-muted); }
.as-tile-summary { margin: 8px 0 12px !important; font-weight: 600; }
.as-tile-results { color: var(--as-good); font-weight: 600; margin-bottom: 8px !important; }
.as-tile-closes { font-size: 14px; color: var(--as-muted); margin-top: 8px !important; }
.as-pill { font-family: Helvetica, Arial, sans-serif; display: inline-block; align-self: flex-start; background: #e8eef6; color: var(--as-accent); border-radius: 999px; padding: 2px 10px; font-size: .78em; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.as-stats { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95em; }
.as-stats .as-due strong { color: var(--as-warn); }
.as-stats .as-good { color: var(--as-good); font-weight: 600; }
.as-progress { height: 6px; background: var(--as-soft); border-radius: 99px; overflow: hidden; }
.as-progress span { display: block; height: 100%; background: var(--as-accent); }
.as-narrow { max-width: 680px; }
.as-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }

/* Event header */
.as-event-head { margin-bottom: 1.5em; }
.as-event-head .as-pill { margin: 14px 0 12px; }
.idacda-as .as-event-head h1 { font-size: 2em; line-height: 1.2; margin: 0 0 .35em; }
.as-facts { list-style: none; padding: 0; margin: .75em 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.as-facts li span { display: block; font-size: .75em; text-transform: uppercase; letter-spacing: .06em; color: var(--as-muted); font-weight: 600; }
.as-description { margin-top: 1em; }
.as-description h3 { margin: 0 0 .4em; }
.as-description > :last-child { margin-bottom: 0; }
.as-org-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 1.5em; }
.as-org-switch a, .as-filters a { padding: 6px 12px; border: 1px solid var(--as-line); border-radius: 999px; text-decoration: none; color: inherit; font-size: .92em; }
.as-org-switch a.is-current, .as-filters a.is-current { background: var(--as-accent); border-color: var(--as-accent); color: #fff; }
.as-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 1em; }
.as-filters .as-toggle-link { margin-left: auto; }
.as-filters .as-toggle-link a { border: 0; text-decoration: underline; }

/* Tables */
.as-table-wrap { overflow-x: auto; border: 1px solid var(--as-line); border-radius: var(--as-radius); background: #fff; }
.as-table { width: 100%; border-collapse: collapse; font-size: .94em; margin: 0; }
.as-table th { text-align: left; font-size: .76em; text-transform: uppercase; letter-spacing: .05em; color: var(--as-muted); background: var(--as-soft); padding: 10px 12px; border-bottom: 1px solid var(--as-line); white-space: nowrap; }
.as-table td { padding: 10px 12px; border-bottom: 1px solid var(--as-line); vertical-align: top; }
.as-table tr:last-child td { border-bottom: 0; }
.as-table audio { display: block; width: 220px; height: 34px; margin-top: 6px; }
.as-table .as-num { font-variant-numeric: tabular-nums; color: var(--as-muted); }
.as-amt { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.as-row-actions { white-space: nowrap; }
.as-row-actions > * + * { margin-left: 10px; }
.as-highlight td { background: #fffbeb; }
.as-dim td { opacity: .55; }
.as-placed td { background: #f0fdf4; }
.as-withdraw { display: inline-block; }
.as-withdraw summary { cursor: pointer; color: var(--as-bad); list-style: none; display: inline; text-decoration: underline; }
.as-withdraw summary::-webkit-details-marker { display: none; }
.as-withdraw form { margin-top: 8px; display: grid; gap: 6px; white-space: normal; min-width: 200px; }
.as-inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.as-inline-form input[type=text] { width: 120px; padding: 4px 8px; }
.as-empty { text-align: center; padding: 32px 16px; border: 2px dashed var(--as-line); border-radius: var(--as-radius); }

/* Status chips */
.as-status { display: inline-block; font-size: .82em; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--as-soft); color: var(--as-muted); white-space: nowrap; }
.as-audio-ready, .as-fee-paid, .as-order-paid, .as-order-po_received, .as-status.as-good { background: var(--as-good-bg); color: var(--as-good); }
.as-audio-processing, .as-fee-due, .as-fee-pending, .as-fee-invoiced, .as-order-po_pending, .as-order-pending, .as-audio-unconverted { background: var(--as-warn-bg); color: var(--as-warn); }
.as-audio-failed, .as-audio-none, .as-order-refunded { background: var(--as-bad-bg); color: var(--as-bad); }

/* Cart */
.as-cart { border-color: #c9d6e6; }
.as-cart h3 { margin-top: 0; }
.as-cart-items { list-style: none; padding: 0; margin: 0 0 8px; }
.as-cart-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--as-line); }
.as-cart-items label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.as-cart-total { display: flex; justify-content: space-between; font-size: 1.2em; margin: 10px 0 18px; }
.as-pay { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.as-pay legend { font-weight: 700; margin-bottom: 8px; }
.as-pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--as-line); border-radius: var(--as-radius); cursor: pointer; }
.as-pay-option:has(input:checked) { border-color: var(--as-accent); background: #f3f7fc; }
.as-pay-option small { display: block; }
.as-withdrawn { margin-top: 1.5em; }
.as-withdrawn summary { cursor: pointer; color: var(--as-muted); }

/* Forms */
.as-form fieldset { border: 1px solid var(--as-line); border-radius: var(--as-radius); padding: 14px 18px 4px; margin: 0 0 18px; }
.as-form legend { font-weight: 700; padding: 0 6px; }
.as-form h3 { margin-top: 1.2em; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.as-grid-address { grid-template-columns: 2fr 1fr 1fr; }
.as-span-full { grid-column: 1 / -1; }
.as-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.as-field label { font-weight: 600; font-size: .93em; }
.as-req { color: var(--as-bad); }
.idacda-as input[type=text], .idacda-as input[type=email], .idacda-as input[type=tel], .idacda-as input[type=password], .idacda-as input[type=number], .idacda-as input[type=file], .idacda-as select, .idacda-as textarea { width: 100%; padding: 9px 11px; border: 1px solid #cfd4da; border-radius: 8px; font: inherit; background: #fff; color: inherit; }
.idacda-as input:focus, .idacda-as select:focus, .idacda-as textarea:focus { outline: 2px solid #93b4d8; outline-offset: 1px; border-color: var(--as-accent); }
.as-check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.as-address { border-style: dashed !important; }
.as-fee-note { font-weight: 600; color: var(--as-accent); }

/* Tabs */
.as-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--as-line); margin: 0 0 16px; flex-wrap: wrap; }
.as-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--as-muted); cursor: pointer; }
.as-tab[aria-selected=true] { color: var(--as-accent); border-bottom-color: var(--as-accent); }
.as-auth { max-width: 760px; margin: 0 auto; }
.as-signin { max-width: 420px; margin: 0 auto; }
.as-signin h2 { margin-bottom: .8em; }
.idacda-as .as-btn-block { display: block; width: 100%; }
.as-forgot { margin: 4px 0 0; text-align: center; font-size: .92em; }
.as-switch { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--as-line); text-align: center; }
.as-switch a { font-weight: 600; }

/* Audition */
.as-audition .as-backtrack { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; background: var(--as-soft); border-radius: 8px; margin-bottom: 14px; }
.as-recorder { min-height: 200px; max-width: 100%; overflow: hidden; }
.as-recorded { font-weight: 600; color: var(--as-good); }
.as-player { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 20px; padding: 14px; background: var(--as-soft); border-radius: var(--as-radius); position: sticky; top: 0; z-index: 5; }
.as-player audio { flex: 1 1 320px; }

/* Rubric */
.as-score-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.as-pager { display: flex; gap: 14px; }
.as-criterion .as-help { margin: 0 0 8px; font-size: .9em; }
.as-scale { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.as-scale label { position: relative; }
.as-scale input { position: absolute; opacity: 0; inset: 0; }
.as-scale span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #cfd4da; border-radius: 8px; font-weight: 700; cursor: pointer; background: #fff; }
.as-scale input:checked + span { background: var(--as-accent); color: #fff; border-color: var(--as-accent); }
.as-scale input:focus-visible + span { outline: 2px solid #93b4d8; outline-offset: 2px; }
.as-score-total { font-size: 1.3em; }

/* Placement */
.as-choir-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.as-choir-counts .as-card { display: flex; flex-direction: column; padding: 14px; }
.as-big { font-size: 2em; font-weight: 800; line-height: 1.1; }
.as-sticky-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--as-line); }
.as-org-list { list-style: none; padding: 0; margin: 0 0 14px; }
.as-org-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--as-line); }

/* Public listing */
.as-public-events { display: grid; gap: 18px; }
.as-public-event h3 { margin: .3em 0; }

@media (max-width: 640px) {
	.as-grid-address { grid-template-columns: 1fr 1fr; }
	.as-grid-address .as-span-full { grid-column: 1 / -1; }
	.as-card { padding: 16px; }
	.as-head { align-items: flex-start; }
	.as-filters .as-toggle-link { margin-left: 0; }
}
.as-roster-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.as-change-org { position: relative; font-size: .92em; }
.as-change-org summary { cursor: pointer; color: var(--as-accent); text-decoration: underline; list-style: none; }
.as-change-org summary::-webkit-details-marker { display: none; }
.as-change-org ul { position: absolute; z-index: 10; top: 1.8em; left: 0; min-width: 260px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--as-line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.as-change-org li a { display: block; padding: 8px 14px; text-decoration: none; color: inherit; }
.as-change-org li a:hover { background: var(--as-soft); }
.as-change-org li.as-sep:not(:first-child) { border-top: 1px solid var(--as-line); margin-top: 4px; padding-top: 4px; }
.as-card.has-image { padding-top: 0; overflow: hidden; }
.as-card.has-image .as-event-media { display: block; margin: 0 -20px 14px; }
.as-event-media .as-event-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 640px) { .as-card.has-image .as-event-media { margin: 0 -16px 12px; } }
.as-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; margin: 0 0 1.25em; padding-bottom: .75em; border-bottom: 1px solid var(--as-line); font-size: .95em; }
.as-nav a { text-decoration: none; color: var(--as-accent); font-weight: 600; }
.as-nav a:hover { text-decoration: underline; }
.as-nav a.is-current { color: var(--as-ink); }
.as-nav-sep { color: #c7cbd1; }
.as-table tfoot .as-add-row td { background: var(--as-soft); border-top: 1px solid var(--as-line); padding: 12px; }
.as-table .as-empty-row { text-align: center; padding: 28px 16px; }
.idacda-as .as-address-block { font-style: normal; line-height: 1.45; margin: 0; text-align: left; }
.as-facts .as-address-block { display: inline-block; vertical-align: top; margin-right: 8px; }
.idacda-as .as-map-link { color: var(--as-accent); text-decoration: underline; text-underline-offset: 2px; }
.idacda-as .as-map-link:hover { text-decoration-thickness: 2px; }
.as-consent { margin: -4px 0 14px; }
.as-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9em; color: var(--as-muted); cursor: pointer; }
.as-consent input[type=checkbox] { margin-top: .25em; flex: none; }
/* One field per row, in the first column (phones on the profile forms). */
.as-grid > .as-own-row { grid-column: 1; }
/* Adjudication tiles: one per row, full width. */
.as-cards.as-cards-full { grid-template-columns: 1fr; }
.as-cards-full .as-actions { margin: 0; padding-top: 25px; }
/* Public tiles have no director summary line: keep space above the button. */
.as-public-tiles .as-event-card > :nth-last-child(3) { margin-bottom: 12px !important; }
