/* DECA Judge Portal visual layer. Components and field behavior remain in app.js. */
@font-face { font-family: "Source Sans 3"; src: url("./assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("./assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("./assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("./assets/fonts/source-sans-3-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --deca-blue: #0072ce;
  --blue-deep: #005ca8;
  --blue-wash: #e8f3fc;
  --blue-line: #a9cfee;
  --navy: #102f4b;
  --navy-2: #214a6c;
  --on-navy: #e5eef5;
  --on-navy-dim: #b7cedf;
  --ink: #172b3b;
  --muted: #4e6373;
  --paper: #fff;
  --wash: #f5f8fb;
  --line: #d9e4ec;
  --line-strong: #a9becd;
  --r: 10px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

html { background: var(--wash); }
body { min-height: 100dvh; font-size: 1rem; line-height: 1.5; }
main { width: min(1200px, calc(100% - 3rem)); padding-top: 2.5rem; }
.site-header { height: 72px; border-bottom-color: var(--line); }
.brand { gap: 1.1rem; }
.brand-logo { width: 112px; }
.brand-context { padding-left: 1.1rem; }
.brand strong { font-size: .98rem; font-weight: 700; }
.brand small { font-family: inherit; font-size: .72rem; letter-spacing: .06em; text-transform: none; }
h1, h2, h3, h4 { font-family: "Source Sans 3", "Segoe UI", sans-serif; }
h1 { font-size: clamp(2.75rem, 4.5vw, 4.45rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-weight: 700; line-height: 1.15; }
.lead { color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.eyebrow { font-family: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .09em; }
.fine { font-size: .87rem; }
a { text-underline-offset: 3px; }

/* Shape rule: 10px containers and 8px controls. */
.card, .hero-card { border-color: var(--line); border-radius: 10px; }
.card { padding: clamp(1.4rem, 2.6vw, 2rem); }
.button, input, select, textarea, .choice, .option label, .chip-option label,
.tabs, .link-box, .empty, .notice, .badge { border-radius: 8px; }
.button { min-height: 46px; padding: .68rem 1.2rem; font-size: 1rem; font-weight: 700; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { background: var(--blue-deep); }
.button:active { transform: translateY(1px); }
.button.ghost { background: transparent; border-color: var(--line-strong); }
.button.ghost:hover { background: var(--blue-wash); border-color: var(--deca-blue); }
.button.small { min-height: 36px; }
.button[disabled] { opacity: .65; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.sidebar-link:focus-visible, .tab:focus-visible { outline: 3px solid var(--deca-blue); outline-offset: 2px; }
input, select, textarea { min-height: 46px; padding: .64rem .78rem; line-height: 1.3; }
input::placeholder, textarea::placeholder { color: #607483; opacity: 1; }
label, legend { font-size: .96rem; font-weight: 700; }
.field { gap: .4rem; }
.form-grid { gap: 1.1rem 1.2rem; }
.choice { padding: .78rem .88rem; align-items: flex-start; }
.choice label { line-height: 1.4; }
.chip-option label { font-weight: 600; }
.chip-option input:checked + label { background: var(--blue-deep); }
.seg input:checked + label, .tab.active { background: var(--navy); }

/* Public landing: an event brief grounded in real dates and location. */
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  min-height: min(650px, calc(100dvh - 72px));
  margin-top: -2.5rem;
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: var(--paper);
  color: var(--ink);
}
.hero-band::after { content: none; }
.hero-copy { max-width: 46rem; }
.hero-band h1 { color: var(--ink); max-width: 18ch; margin-bottom: 1.3rem; }
.hero-band .lead { color: var(--muted); max-width: 49ch; }
.hero-band .eyebrow { color: var(--blue-deep); }
.hero-band .button-row { margin-top: 2.1rem; }
.hero-band .button { min-height: 52px; padding: .8rem 1.55rem; }
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 415px;
  padding: clamp(1.65rem, 3vw, 2.5rem);
  border-radius: 16px;
  background: #0072ce;
  color: #fff;
}
.hero-visual-head { display: flex; align-items: center; gap: .8rem; font-size: .9rem; font-weight: 700; }
.hero-visual-head img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.hero-day-list { margin-top: 2rem; }
.hero-day { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; border-top: 1px solid rgb(255 255 255 / .45); padding: .7rem 0; }
.hero-day strong { font-size: clamp(3.1rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.hero-day span { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.hero-day small { display: block; margin-top: .35rem; font-size: .83rem; font-weight: 400; color: #ecf6ff; }
.hero-visual-place { padding-top: 1.1rem; border-top: 1px solid rgb(255 255 255 / .45); font-size: .96rem; font-weight: 600; }
.fact-row { margin-top: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: none; background: transparent; }
.fact { padding: 1.2rem 1.5rem; border-color: var(--line); }
.fact dt { font-family: inherit; font-size: .75rem; letter-spacing: .08em; }
.fact dd { font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 700; }
.band { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.band-head { border: 0; padding: 0; }
.band-head h2 { font-size: clamp(2rem, 3vw, 2.7rem); max-width: 12ch; }
.step-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 0; background: transparent; }
.step, .step:first-child { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; gap: 1.5rem; min-height: 0; padding: 1.35rem 0; background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; }
.step:first-child { grid-row: auto; }
.step h3, .step:first-child h3 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.step p, .step:first-child p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 46ch; }

/* Signup: familiar document layout with clear section headings. */
.signup-head { max-width: 1120px; margin: .7rem auto 1.8rem; }
.signup-head h1 { font-size: clamp(2.45rem, 4vw, 3.6rem); margin-bottom: .55rem; max-width: none; }
.signup-head .lead { margin-bottom: .6rem; }
.signup-head-note { max-width: 62ch; margin: 0; color: var(--muted); }
.signup-layout { display: flex; flex-direction: column; max-width: 1120px; margin: 0 auto; gap: 1rem; }
.signup-layout > form { width: 100%; padding: clamp(1.45rem, 3vw, 2.6rem); }
.form-section { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.6rem; padding-top: 2.5rem; border-top-color: var(--line); }
.form-section:first-of-type { margin-top: 0; padding-top: 0; }
.form-section-intro { align-self: start; }
.form-section-body { min-width: 0; }
.form-section-head { display: block; color: var(--ink); font-family: inherit; font-size: clamp(1.4rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -.025em; text-transform: none; margin: 0 0 .45rem; }
.form-section-note { margin: 0; font-size: .95rem; }
.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option label { padding: 1rem 1.1rem; min-height: 92px; }
.option-title { font-size: 1rem; }
.option-meta { font-size: .86rem; line-height: 1.4; }
.scroll-list { max-height: 20rem; background: var(--wash); }
.signup-aside { position: static; order: initial; padding: 1.35rem 1.6rem; background: var(--blue-wash); border: 1px solid var(--blue-line); border-radius: 10px; color: var(--ink); }
.signup-aside h2 { color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }
.signup-aside p { margin: 0; color: var(--muted); }
.conflict-search { margin-bottom: .85rem; }
.conflict-search input { max-width: 390px; }
.choice-list .choice[hidden], .field[hidden] { display: none; }
.signup-layout .notice.error { margin: 0 0 1.2rem; }
.signup-layout .form-section:last-child .button { margin-top: 1.35rem; }

/* Coordinator and private portal surfaces use the same typography and controls. */
.admin-shell { margin-top: -2.5rem; min-height: calc(100dvh - 72px); }
.admin-sidebar { background: var(--paper); color: var(--ink); border-right: 1px solid var(--line); }
.sidebar-brand { color: var(--ink); }
.sidebar-brand img { filter: none; opacity: 1; }
.sidebar-brand, .sidebar-group h2, .sidebar-role, .sidebar-count { font-family: inherit; }
.sidebar-group h2 { color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.sidebar-link { color: var(--ink); font-size: .95rem; padding-top: .58rem; padding-bottom: .58rem; }
.sidebar-link:hover { color: var(--blue-deep); background: var(--blue-wash); }
.sidebar-link.active { background: var(--blue-wash); border-left-color: var(--deca-blue); color: var(--blue-deep); }
.sidebar-count, .sidebar-link.active .sidebar-count { background: var(--paper); color: var(--blue-deep); }
.sidebar-foot { border-top-color: var(--line); color: var(--muted); }
.sidebar-foot strong { color: var(--ink); }
.admin-main { background: var(--wash); }
.page-head h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.section-label, .metric span, th, .badge { font-family: inherit; letter-spacing: .07em; }
.operations-metrics { border-radius: 10px; overflow: hidden; }
.operations-metrics .metric { min-height: 112px; }
.metric strong { font-size: 2.2rem; }
.metric-attention strong { color: var(--blue-deep); }
.overview-layout { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 1.25rem; }
.overview-recruitment .page-head h2 { font-size: 1.55rem; }
.overview-side .card h2 { margin-bottom: .85rem; }
.overview-recruitment .table-wrap { overflow-x: auto; }
.judge-workspace, .advisor-workspace { max-width: 1200px; margin: 0 auto; }
.judge-head, .advisor-head { padding: 1rem 0 1.35rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.judge-head h1, .advisor-head h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); max-width: none; }
.judge-head .lead, .advisor-head .lead { margin: .2rem 0 0; }
.judge-focus { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 12px; background: var(--deca-blue); color: #fff; }
.judge-focus .eyebrow, .judge-focus h2, .judge-focus p { color: #fff; }
.judge-focus h2 { font-size: clamp(1.7rem, 2.7vw, 2.3rem); margin: .25rem 0; }
.judge-focus p { margin: 0; }
.judge-focus .button { flex: none; background: #fff; color: #005ca8; }
.judge-focus .button:hover { background: #e8f3fc; }
.judge-layout { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 1.25rem; }
.judge-layout > .stack, .judge-layout > aside { min-width: 0; }
.judge-layout .day-card { padding: 1.1rem 1.25rem; background: var(--wash); }
.judge-layout .day-card + .day-card { margin-top: .75rem; }
.judge-layout .day-card h3 { margin-bottom: .25rem; }
.judge-layout .choice + .choice { margin-top: .6rem; }
#judge-days, #judge-assignments, #judge-sections, #judge-materials { scroll-margin-top: 6rem; }
.advisor-deadlines { margin-bottom: 1.25rem; }
.advisor-deadline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.advisor-deadline-grid .summary-line { display: grid; gap: .25rem; justify-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; }
.advisor-deadline-grid .summary-line strong { font-size: 1.2rem; }
.advisor-recruitment { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.6rem; margin-bottom: 1.25rem; background: var(--blue-wash); border-color: var(--blue-line); }
.advisor-recruitment-count { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--blue-line); padding-right: 1rem; }
.advisor-recruitment-count strong { color: var(--blue-deep); font-size: 3.7rem; line-height: 1; }
.advisor-recruitment-count span { font-size: .9rem; color: var(--muted); }
.advisor-days { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.advisor-days .day-card { margin: 0; }
.advisor-workspace > form { gap: 1.25rem; }
.task-item, .communication-item { border-radius: 10px; }
.empty { padding: 1.5rem; background: var(--blue-wash); border-color: var(--blue-line); }
.auth-shell { max-width: 520px; margin-top: clamp(2rem, 6vw, 5rem); }
.table-wrap { border-radius: 10px; }
tbody tr:hover td { background: var(--blue-wash); }

@media (max-width: 980px) {
  .signup-layout { display: flex; }
  .signup-aside { order: initial; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-link.active { border-bottom-color: var(--deca-blue); }
  .overview-layout, .judge-layout { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .hero-band { grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 2rem; min-height: 0; }
  .fact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { border-top: 0; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; }
  .step-grid { grid-template-columns: 1fr; }
  .step { border-left: 0; }
  .band { grid-template-columns: 1fr; gap: .7rem; }
  .form-section { grid-template-columns: 1fr; gap: .85rem; }
  .form-section-note { max-width: 60ch; }
}
@media (max-width: 700px) {
  main { width: min(100% - 1.5rem, 1200px); }
  .hero-band { grid-template-columns: 1fr; gap: 2rem; margin-top: -1.25rem; padding: 3rem 1.25rem 2.2rem; min-height: 0; }
  .hero-band h1 { font-size: clamp(2.6rem, 10vw, 3.6rem); max-width: 18ch; }
  .hero-visual { display: flex; min-height: 0; padding: 1.35rem; border-radius: 12px; }
  .hero-day-list { margin-top: 1.4rem; }
  .hero-day { grid-template-columns: 4rem 1fr; gap: .8rem; }
  .hero-day strong { font-size: 3.2rem; }
  .hero-visual-place { margin-top: .5rem; }
  .fact-row { grid-template-columns: 1fr; }
  .fact, .fact:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 1.15rem; }
  .fact:first-child { border-top: 0; }
  .fact dd { font-size: 1.15rem; }
  .step-grid { grid-template-columns: 1fr; }
  .step:first-child { grid-row: auto; min-height: 0; }
  .step { grid-template-columns: 1fr; gap: .35rem; min-height: 0; }
  .signup-head { margin-top: .3rem; }
  .signup-layout > form { padding: 1.35rem 1.1rem; }
  .form-grid, .option-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .site-header { height: 64px; }
  .brand-logo { width: 96px; }
  .admin-shell { margin-top: -1.25rem; }
  .admin-sidebar { scrollbar-width: none; }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-main > .page-head .button-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-main > .page-head .button-row .button { width: 100%; }
  .admin-main > .page-head .button-row .button:last-child { grid-column: 1 / -1; }
  .operations-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-metrics .metric { min-height: 104px; border-top: 1px solid var(--line); }
  .operations-metrics .metric:nth-child(-n + 2) { border-top: 0; }
  .operations-metrics .metric:nth-child(odd) { border-left: 0; }
  .judge-focus { display: block; }
  .judge-focus .button { margin-top: 1.25rem; }
  .advisor-deadline-grid, .advisor-days { grid-template-columns: 1fr; }
  .advisor-recruitment { grid-template-columns: 1fr; gap: .8rem; }
  .advisor-recruitment-count { border-right: 0; border-bottom: 1px solid var(--blue-line); padding: 0 0 .75rem; }
}
@media (max-width: 440px) {
  .segmented { display: flex; width: 100%; }
  .seg { flex: 1; }
  .seg label { text-align: center; padding-left: .4rem; padding-right: .4rem; }
  .button-row .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

@media print {
  .hero-visual { display: none; }
  .admin-main { background: #fff; }
}
