:root {
  --navy: #112539;
  --navy-dark: #0e2639;
  --steel: #346b87;
  --olive: #778240;
  --ink: #203442;
  --muted: #536570;
  --line: #d3dbdb;
  --panel: #edf1ef;
  --paper: #f5f3ed;
  --surface: #fdfcf8;
  --accent: #66723b;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: "Trebuchet MS", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--steel); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a27627; outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 4.8vw, 60px); margin: 12px 0 20px; }
h2 { font-size: clamp(27px, 3vw, 36px); margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 10px; }
p { margin: 0 0 18px; }
.skip { position: absolute; left: -10000px; top: 12px; z-index: 10; }
.skip:focus { left: 16px; background: var(--surface); padding: 12px 20px; }
.portal-header { border-top: 5px solid var(--accent); background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; margin: auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-brand { display: flex; align-items: center; gap: 25px; color: var(--navy); text-decoration: none; min-width: 0; }
.portal-brand img { width: 148px; height: auto; display: block; }
.brand-label { border-left: 1px solid var(--line); padding-left: 25px; font-size: 13px; line-height: 1.5; }
.brand-label strong { display: block; font-size: 17px; }
.portal-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.portal-nav a { min-height: 44px; padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; border-radius: 4px; }
.portal-nav a:hover { background: var(--panel); }
.portal-nav .nav-account { border: 1px solid var(--line); }
.wrap { max-width: 1200px; margin: auto; padding: 48px 28px 64px; min-width: 0; }
.wrap > * { min-width: 0; max-width: 100%; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .16em; margin-bottom: 14px; }
.intro { color: var(--muted); font-size: 19px; max-width: 660px; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 21px; border: 1px solid var(--navy); border-radius: 4px; background: var(--navy); color: #f9faf4; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: #23445b; border-color: #23445b; }
.btn.secondary, .button.secondary { background: var(--surface); color: var(--navy); border: 1px solid #b9c5c9; }
.btn.secondary:hover { background: var(--panel); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.actions > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.notice { background: #eeefdf; border-left: 4px solid var(--accent); padding: 18px 22px; margin: 22px 0; border-radius: 0 5px 5px 0; }
[role="alert"] { border-left: 4px solid #a04735; padding: 16px 20px; background: #f8ece5; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin: 18px 0 7px; }
input, select, textarea { width: 100%; max-width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #aebec3; border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 16px; }
textarea { resize: vertical; min-height: 110px; }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 22px; height: 22px; flex-shrink: 0; accent-color: var(--accent); }
input[type="hidden"] { display: none; }
fieldset { min-width: 0; }
legend { padding: 0 8px; color: var(--navy); font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 22px; }
.filters > div { flex: 1 1 180px; min-width: 0; }
.filters label { margin-top: 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; line-height: 1.5; }
th, td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); color: var(--navy); font-size: 12px; font-weight: 700; }
td .btn { white-space: nowrap; }
td a:not(.btn), summary { display: inline-block; padding: 9px 0; min-height: 44px; }
summary { cursor: pointer; color: var(--steel); font-weight: 700; }
.acea-table, .table-scroll, .wrap div[style*="overflow-x"] { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.wrap > table { display: block; overflow-x: auto; }
.pill { display: inline-block; padding: 4px 9px; border-radius: 4px; background: #e8eeea; color: #3f5845; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.submitted { color: var(--steel); background: #e6edf0; }
.pill.rejected, .pill.unpaid { background: #f8e8e2; color: #91402e; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; margin-bottom: 56px; }
.hero-copy { padding: 22px 0; }
.hero h1 { font-size: clamp(44px, 5.4vw, 70px); }
.hero-picture { margin: 0; position: relative; background: var(--navy); border-radius: 5px; overflow: hidden; }
.hero-picture img { display: block; width: 100%; height: 380px; object-fit: cover; }
.hero-picture figcaption { padding: 20px 24px; color: #e7ede8; font-size: 14px; border-top: 3px solid var(--olive); }
.program-intro { border-top: 1px solid var(--line); padding-top: 32px; display: flex; justify-content: space-between; align-items: start; gap: 30px; margin-bottom: 26px; }
.program-intro p { max-width: 470px; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.workspace { display: flex; flex-direction: column; padding: 30px; border-top: 3px solid var(--steel); }
.workspace.charcuterie { border-top-color: var(--accent); }
.workspace .mode { display: inline-block; width: fit-content; padding: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .025em; background: #e8eef1; color: var(--steel); margin-bottom: 23px; border-radius: 3px; }
.workspace.charcuterie .mode { color: #53612e; background: #edefdf; }
.workspace h2 { font-size: 31px; }
.workspace .description { color: var(--muted); flex: 1; }
.workspace .actions { margin-top: 24px; }
.workspace .actions .btn { width: 100%; justify-content: space-between; }
.workspace .actions .guideline { font-size: 14px; min-height: 44px; }
.stats { margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.stats > div { min-width: 0; }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 0 0 4px; font-family: Georgia, serif; font-size: 36px; line-height: 1.2; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats .remaining dd { color: var(--accent); }
.stats dt { order: 2; }
.stats > div { display: flex; flex-direction: column; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 7px; font-size: 13px; color: var(--muted); }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #e2e7e3; accent-color: var(--steel); }
progress::-webkit-progress-bar { background: #e2e7e3; }
progress::-webkit-progress-value { background: var(--steel); }
progress::-moz-progress-bar { background: var(--steel); }
.charcuterie progress { accent-color: var(--accent); }
.charcuterie progress::-webkit-progress-value { background: var(--accent); }
.charcuterie progress::-moz-progress-bar { background: var(--accent); }
.workspace-state { margin: 18px 0 0; padding: 13px 16px; background: var(--panel); font-size: 14px; border-radius: 4px; }
.welcome { margin-bottom: 34px; }
.welcome .intro { margin-bottom: 0; }
.principles { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-top: 38px; padding: 30px; background: #e9ede5; border: 1px solid #d5ddce; border-radius: 5px; }
.principles h2 { font-size: 27px; }
.principles p { margin-bottom: 0; color: #415546; }
.principles strong { color: var(--navy); }
.portal-footer { border-top: 1px solid var(--line); background: #edf0e9; }
.footer-inner { max-width: 1200px; padding: 28px; margin: auto; display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner strong { display: block; color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
/* The portal header replaces legacy ACEA profile-selection navigation.
   Guidelines remain available in the portal footer on every scoring page. */
.judge-portal .acea-nav { display: none; }
.judge-portal .score-form select { font-size: 16px; }
@media (max-width: 900px) {
  .brand-label { display: none; }
  .hero { gap: 28px; }
  .hero-picture img { height: 330px; }
  .workspace { padding: 24px; }
}
@media (max-width: 767px) {
  .header-inner { padding: 17px 18px; gap: 14px; flex-wrap: wrap; }
  .portal-brand img { width: 124px; }
  .portal-nav { gap: 4px; }
  .portal-nav a { padding: 10px 12px; font-size: 13px; }
  .wrap { padding: 30px 18px 42px; }
  .hero, .workspace-grid, .principles { grid-template-columns: 1fr; }
  .hero { gap: 24px; margin-bottom: 34px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 48px; }
  .hero-picture img { height: 260px; }
  .program-intro { display: block; }
  .program-intro p { margin-bottom: 0; }
  .workspace-grid { gap: 18px; }
  .workspace h2 { font-size: 29px; }
  .card { padding: 22px 18px; }
  .principles { padding: 24px; gap: 8px; }
  .footer-inner { padding: 24px 18px; }
  .judging-filters { grid-template-columns: 1fr !important; }
  .acea-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .welcome { animation: portal-enter .45s ease-out both; }
  @keyframes portal-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
.portal-video{margin-top:32px}
.portal-video-player{position:relative;aspect-ratio:16/9;width:100%;background:#112539;border-radius:6px;overflow:hidden}
.portal-video-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media print {
  .portal-video-player{display:none}
  body { background: #fdfcf8; font-size: 11pt; }
  .portal-header, .portal-footer, .skip, .no-print, .actions { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 30pt; }
  .card { break-inside: avoid; }
  .workspace-grid { grid-template-columns: 1fr 1fr; }
}
