:root {
  --ink: #17211d;
  --muted: #617069;
  --green: #123f34;
  --green-2: #1c5a49;
  --mint: #dceee7;
  --lime: #d9f05a;
  --cream: #f5f2e9;
  --white: #fff;
  --line: #dfe5e1;
  --danger: #b33a3a;
  --shadow: 0 22px 70px rgba(18, 63, 52, .12);
  --radius: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfcfa; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.row { display: flex; flex-wrap: wrap; }
.col-lg-12 { width: 100%; }
.content { border-radius: var(--radius); padding: 28px; background: #fff; }
.about { padding-block: 28px; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-header, .portal-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(18,63,52,.09); background: rgba(251,252,250,.92); backdrop-filter: blur(18px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1.05; }
.brand-mark { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; color: var(--green); background: var(--lime); font-family: Georgia, serif; font-size: 26px; font-weight: 800; transform: rotate(-4deg); }
.brand-logo { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 12px; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 18px; letter-spacing: .08em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav, .portal-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 680; }
.primary-nav > a:not(.btn), .portal-nav > a { color: #52625b; }
.primary-nav > a.active, .primary-nav > a:hover, .portal-nav > a.active, .portal-nav > a:hover { color: var(--green); }
.portal-nav > a { display: inline-flex; align-items: center; gap: 7px; }
.nav-count { display: inline-grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; border-radius: 999px; color: #fff; background: var(--danger); font-size: 11px; line-height: 1; }
.nav-toggle { display: none; border: 0; color: var(--green); background: transparent; font-weight: 750; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; padding: 0 22px; cursor: pointer; font-weight: 760; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 42px; padding-inline: 18px; }
.btn-primary { color: var(--green); background: var(--lime); box-shadow: 0 12px 30px rgba(217,240,90,.22); }
.btn-ink { color: #fff !important; background: var(--green); }
.btn-soft { border-color: var(--line); color: var(--green); background: #fff; }
.btn-danger { color: #fff; background: var(--danger); }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; transform: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--green-2); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { width: 26px; height: 2px; background: var(--lime); content: ""; }
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; background: var(--cream); }
.hero::before { position: absolute; width: 460px; height: 460px; top: -240px; right: -90px; border: 90px solid rgba(217,240,90,.28); border-radius: 50%; content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; }
.hero h1 { max-width: 780px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 86px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.hero h1 em { color: var(--green-2); font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; margin: 28px 0 32px; color: #56635e; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.call-card { position: relative; border: 1px solid rgba(255,255,255,.16); border-radius: 30px; padding: 34px; color: #fff; background: var(--green); box-shadow: var(--shadow); }
.call-card::after { position: absolute; right: 26px; bottom: 26px; width: 70px; height: 70px; border: 1px solid rgba(217,240,90,.28); border-radius: 50%; content: ""; }
.call-card .status-pill { color: var(--green); background: var(--lime); }
.call-card h2 { max-width: 360px; margin: 24px 0 32px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.13; }
.call-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.call-meta small { display: block; color: #a9c0b7; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.call-meta strong { display: block; margin-top: 5px; font-size: 15px; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; color: #246143; background: #e6f6ed; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status-pill.closed { color: #7d4d1a; background: #faebcd; }
.stats-strip { background: var(--green); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 30px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.stat span { color: #b5c8c1; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.section { padding: 92px 0; }
.section-soft { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 42px; }
.section-heading h2 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 58px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.section-heading p { max-width: 440px; margin: 0; color: var(--muted); }
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.prize-card { min-height: 330px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; transition: .2s ease; }
.prize-card:hover { border-color: #bad2c8; transform: translateY(-4px); box-shadow: var(--shadow); }
.prize-number { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-family: Georgia, serif; font-weight: 700; }
.prize-card h3 { margin: 44px 0 12px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.18; }
.prize-card p { margin: 0; color: var(--muted); }
.prize-card .text-link { margin-top: auto; padding-top: 28px; }
.text-link { color: var(--green); font-weight: 780; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.current-call { display: grid; grid-template-columns: .72fr 1.28fr; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.call-aside { padding: 38px; color: #fff; background: var(--green); }
.call-artwork { width: calc(100% + 76px); height: 190px; margin: -38px -38px 28px; object-fit: cover; }
.call-year { font-family: Georgia, serif; font-size: 92px; line-height: 1; letter-spacing: -.06em; }
.call-aside p { color: #b8cdc5; }
.deadline-box { margin-top: 42px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; }
.deadline-box small { display: block; color: #a9bdb6; text-transform: uppercase; letter-spacing: .1em; }
.deadline-box strong { display: block; margin-top: 7px; font-size: 18px; }
.call-content { padding: 46px; }
.call-content h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 38px; font-weight: 500; line-height: 1.12; }
.call-content p { color: var(--muted); }
.call-content ul, .prose ul { padding-left: 22px; }
.call-content .hero-actions { margin-top: 30px; }
.archive-list { border-top: 1px solid var(--line); }
.archive-row { display: grid; grid-template-columns: 100px 1fr 180px 40px; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); padding: 24px 4px; }
.archive-row:hover { background: rgba(220,238,231,.25); }
.archive-row .year { font-family: Georgia, serif; font-size: 28px; }
.archive-row h3 { margin: 0; font-size: 17px; }
.archive-row p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.archive-row .arrow { font-size: 24px; }
.announcements-section { background: #fff; }
.publication-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.publication-index-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 260px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fbfcfa; transition: .2s ease; }
.publication-index-card:hover { border-color: #bad2c8; transform: translateY(-4px); box-shadow: var(--shadow); }
.publication-index-card.featured { grid-column: 1 / -1; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); }
.publication-index-card > img, .publication-card-art { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.publication-card-art { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: #fff; background: linear-gradient(145deg, var(--green), #1d6652); }
.publication-card-art span { font-size: 34px; }
.publication-card-art strong { font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
.publication-index-copy { display: flex; min-width: 0; flex-direction: column; padding: 26px; }
.publication-index-meta, .publication-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.publication-index-meta span { color: var(--green); }
.publication-index-copy h3 { margin: 22px 0 10px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.12; }
.publication-index-copy p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.publication-index-copy .text-link { margin-top: auto; }
.publication-hero { position: relative; overflow: hidden; padding: 72px 0 82px; color: #fff; background: var(--green); }
.publication-hero::after { position: absolute; width: 420px; height: 420px; top: -245px; right: -75px; border: 82px solid rgba(217,240,90,.14); border-radius: 50%; content: ""; }
.publication-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); align-items: center; gap: 70px; }
.publication-back { display: inline-block; margin-bottom: 34px; color: #bdd0c9; font-size: 13px; font-weight: 700; }
.publication-hero .eyebrow { color: var(--lime); }
.publication-hero h1 { max-width: 850px; margin: 0; font-family: Georgia, serif; font-size: clamp(46px, 6vw, 76px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.publication-hero h1 + p { max-width: 760px; margin: 26px 0; color: #c4d6cf; font-size: 18px; }
.publication-meta { color: #9fbab0; }
.publication-mark { display: grid; aspect-ratio: 1; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.06); text-align: center; }
.publication-mark span { font-size: 42px; }
.publication-mark strong { display: block; font-family: Georgia, serif; font-size: 62px; font-weight: 500; line-height: 1.1; }
.publication-mark small { color: #b7cbc3; text-transform: uppercase; letter-spacing: .1em; }
.publication-image-wrap { overflow: hidden; border-radius: 26px; margin-top: -42px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.publication-image-wrap img { width: 100%; max-height: 600px; object-fit: cover; }
.publication-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: start; gap: 70px; }
.publication-body { color: #354a42; font-size: 17px; }
.publication-body > *:first-child { margin-top: 0; font-size: 21px; color: var(--ink); }
.publication-body h2 { margin-top: 45px; font-size: 35px; }
.publication-body li { margin-block: 8px; }
.publication-aside { position: sticky; top: 110px; display: grid; gap: 14px; }
.publication-aside h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.15; }
.publication-aside p:not(.eyebrow) { color: var(--muted); }
.announcement-winner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.announcement-winner-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
.announcement-winner-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 16px; }
.announcement-winner-head img, .announcement-initials { width: 76px; height: 76px; border-radius: 19px; object-fit: cover; }
.announcement-initials { display: grid; place-items: center; color: var(--green); background: var(--lime); font-family: Georgia, serif; font-size: 26px; font-weight: 700; }
.announcement-winner-head h3 { margin: 2px 0 4px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.12; }
.announcement-winner-head p { margin: 0; color: var(--muted); font-size: 12px; }
.winner-work { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.winner-work small { color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.winner-work p { margin: 5px 0 0; color: #3e5149; font-size: 14px; }
.winner-publications { border-top: 1px solid var(--line); margin-top: auto; padding-top: 18px; }
.winner-publications summary { display: flex; justify-content: space-between; color: var(--green); cursor: pointer; font-size: 13px; font-weight: 800; }
.winner-publications .prose { margin-top: 12px; font-size: 12px; overflow-wrap: anywhere; }
.winner-publications ol { padding-left: 20px; }
.winner-publications a { text-decoration: underline; text-underline-offset: 2px; }
.publication-cta { padding: 65px 0; color: #fff; background: #0c2d25; }
.publication-cta .shell { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.publication-cta h2 { max-width: 700px; margin: 0; font-family: Georgia, serif; font-size: 38px; font-weight: 500; line-height: 1.12; }
.publication-cta .eyebrow { color: var(--lime); }
.recipient-photo-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: var(--green); background: var(--mint); font-size: 54px; }
.publication-admin-grid { grid-template-columns: minmax(520px, 1.2fr) minmax(380px, .8fr); }
.publication-admin-list { display: grid; }
.publication-admin-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 18px 20px; }
.publication-admin-row:first-child { border-top: 0; }
.publication-admin-row h3 { margin: 7px 0 3px; font-size: 14px; }
.publication-admin-row p, .publication-admin-row small { margin: 0; color: var(--muted); font-size: 11px; }
.publication-year { font-family: Georgia, serif; color: var(--green); font-size: 24px; }
.publication-form-image { width: 100%; max-height: 230px; margin-bottom: 22px; border-radius: 18px; object-fit: cover; }
.input-prefix { display: flex; align-items: center; border: 1px solid #cad4cf; border-radius: 13px; overflow: hidden; background: #f4f7f5; }
.input-prefix span { padding-left: 13px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.input-prefix .input { border: 0; border-radius: 0; box-shadow: none; }
.site-footer { padding: 58px 0 26px; color: #fff; background: #0c2d25; }
.site-footer .brand small, .site-footer p, .site-footer span { color: #9fb5ad; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .9fr; gap: 60px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid p { max-width: 370px; }
.footer-grid strong { margin-bottom: 8px; color: var(--lime); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.11); margin-top: 45px; padding-top: 22px; font-size: 12px; }
.flash { margin-top: 22px; border: 1px solid #bad7c8; border-radius: 14px; padding: 14px 18px; color: #24563f; background: #edf8f2; }
.flash-error, .flash-danger { border-color: #efc6c6; color: #8c2f2f; background: #fff1f1; }
.flash-info { border-color: #c9d9e8; color: #315875; background: #f1f7fc; }

/* Forms and portals */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 44px clamp(36px, 6vw, 90px); color: #fff; background: var(--green); }
.auth-story::after { position: absolute; width: 430px; height: 430px; right: -200px; bottom: -210px; border: 80px solid rgba(217,240,90,.18); border-radius: 50%; content: ""; }
.auth-story .brand small { color: #b0c4bc; }
.auth-story h1 { max-width: 600px; margin: auto 0 20px; font-family: Georgia, serif; font-size: clamp(44px, 6vw, 74px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.auth-story > div > p { max-width: 540px; color: #b9cec6; font-size: 17px; }
.auth-proof { display: flex; gap: 28px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 50px; padding-top: 26px; color: #b9cec6; font-size: 13px; }
.auth-panel { display: grid; place-items: center; padding: 50px 30px; }
.auth-card { width: min(100%, 480px); }
.auth-card h2 { margin: 0; font-family: Georgia, serif; font-size: 42px; font-weight: 500; letter-spacing: -.03em; }
.auth-card > p { margin: 10px 0 28px; color: var(--muted); }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs a { flex: 1; border-bottom: 2px solid transparent; padding: 12px; color: var(--muted); text-align: center; font-weight: 730; }
.tabs a.active { border-color: var(--green); color: var(--green); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; border: 1px solid #cad4cf; border-radius: 13px; padding: 13px 14px; color: var(--ink); background: #fff; outline: none; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(28,90,73,.09); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 62px; }
.input-action { position: absolute; right: 8px; top: 50%; border: 0; padding: 6px; color: var(--green); background: transparent; transform: translateY(-50%); cursor: pointer; font-size: 12px; font-weight: 750; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.form-actions .btn { flex: 1; }
.portal-body { background: #f4f6f3; }
.portal-header { background: rgba(255,255,255,.94); }
.user-chip { display: inline-flex; align-items: center; gap: 9px; color: #44534d; font-size: 13px; }
.user-chip > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: var(--green); background: var(--lime); font-weight: 800; }
.portal-main { padding: 42px 0 80px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.page-intro h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.page-intro p { max-width: 580px; margin: 12px 0 0; color: var(--muted); }
.workspace-grid { display: grid; grid-template-columns: 300px 1fr; align-items: start; gap: 24px; }
.panel { border: 1px solid #e1e6e2; border-radius: var(--radius); background: #fff; box-shadow: 0 12px 40px rgba(18,63,52,.055); }
.panel-body { padding: 28px; }
.stage-card { overflow: hidden; }
.stage-top { padding: 28px; color: #fff; background: var(--green); }
.stage-top .status-pill { margin-bottom: 24px; }
.stage-top h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.stage-top p { margin: 0; color: #b7ccc4; font-size: 14px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; margin: 24px 0 8px; background: rgba(255,255,255,.12); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.progress-steps { padding: 14px 24px 24px; }
.progress-step { display: flex; gap: 12px; padding: 11px 0; color: var(--muted); font-size: 13px; }
.progress-step + .progress-step { border-top: 1px solid var(--line); }
.progress-step .dot { width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid #b8c4be; border-radius: 50%; text-align: center; line-height: 18px; }
.progress-step.done { color: var(--green); font-weight: 700; }
.progress-step.done .dot { border-color: var(--green); color: #fff; background: var(--green); }
.content-stack { display: grid; gap: 22px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 22px 28px; }
.panel-header h2, .panel-header h3 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.notice { border-left: 4px solid var(--lime); border-radius: 8px; padding: 16px 18px; color: #35554a; background: #f1f7f3; }
.notice.warning { border-color: #e4a229; color: #6e511c; background: #fff9ea; }
.notice.danger { border-color: var(--danger); color: #7f2d2d; background: #fff1f1; }
.message-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 24px; align-items: start; }
.message-layout > .panel:first-child { position: sticky; top: 106px; }
.message-feed { display: grid; gap: 14px; }
.message-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.message-card.from-admin { border-left: 4px solid var(--lime); background: #f8fbf9; }
.message-card.from-applicant { margin-left: min(54px, 8%); border-left: 4px solid var(--green); }
.message-card p { margin: 12px 0 0; white-space: normal; overflow-wrap: anywhere; }
.message-card .text-link { display: inline-block; margin-top: 10px; }
.message-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.message-meta span, .message-card > small { color: var(--muted); font-size: 12px; }
.message-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.message-attachments a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--green); background: #fff; font-size: 12px; font-weight: 750; text-decoration: none; overflow-wrap: anywhere; }
.message-attachments a:hover { border-color: var(--green); }
.message-attachments small { color: var(--muted); font-weight: 500; }
.completion-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.completion-checks span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #f7f9f8; font-size: 13px; font-weight: 700; }
.completion-checks span.ready { border-color: #bdd8cc; color: var(--green); background: #eaf6f0; }
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.upload-item { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; padding: 14px; }
.upload-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; color: var(--green); background: var(--mint); font-size: 12px; font-weight: 850; }
.upload-item strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.upload-item small { display: block; color: var(--muted); font-size: 11px; }
.upload-item .status { margin-left: auto; color: var(--green); font-size: 12px; font-weight: 800; }
.file-drop { display: grid; place-items: center; border: 1.5px dashed #b7c8c0; border-radius: 18px; padding: 30px; text-align: center; background: #fbfdfb; cursor: pointer; }
.file-drop:hover { border-color: var(--green-2); background: #f5faf7; }
.file-drop strong { color: var(--green); }
.file-drop small { display: block; margin-top: 4px; color: var(--muted); }
.file-drop input { position: absolute; opacity: 0; pointer-events: none; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; color: var(--muted); background: #f6f8f6; font-size: 11px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.data-table td { border-top: 1px solid var(--line); padding: 15px 16px; font-size: 13px; vertical-align: middle; }
.data-table tr:hover td { background: #fbfdfb; }
.table-person strong { display: block; }
.table-person span { color: var(--muted); font-size: 12px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px 22px; }
.filter-bar .field { min-width: 150px; margin: 0; }
.filter-bar .search-field { flex: 1; min-width: 230px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi strong { display: block; margin-top: 4px; font-family: Georgia, serif; font-size: 33px; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; align-items: start; gap: 22px; }
.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
.definition { border-bottom: 1px solid var(--line); padding: 14px 0; }
.definition small { display: block; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }
.definition strong, .definition span { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.definition-full { grid-column: 1 / -1; }
.submitted-profile { margin-top: 24px; }
.prose { color: #4d5c56; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); font-family: Georgia, serif; font-weight: 500; }
.call-details-panel { min-width: 0; overflow: hidden; }
.call-details-panel .prose { overflow-wrap: anywhere; }
.call-details-panel .prose > *:first-child { margin-top: 0 !important; }
.call-details-panel .prose * { max-width: 100% !important; }
.call-details-panel .prose table { width: 100%; border-collapse: collapse; }
.call-details-panel .prose th, .call-details-panel .prose td { border: 1px solid var(--line); padding: 9px; }
.empty-state { padding: 46px 24px; color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.committee-grid { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); align-items: start; gap: 22px; }
.committee-list { min-width: 0; }
.inline-form { margin: 0; }
.password-reset-form { display: flex; min-width: 330px; gap: 8px; }
.input-compact { min-width: 210px; padding: 9px 11px; }
.admin-header .portal-nav { gap: 12px; font-size: 13px; }
.auto-load-note { color: var(--green) !important; font-weight: 700; }
.filter-bar.is-loading { opacity: .72; pointer-events: none; }
.textarea { resize: vertical; }
.textarea-tall { min-height: 280px; }
.narrow-shell { max-width: 860px; }
.management-grid { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); align-items: start; gap: 22px; }
.calls-management-grid { grid-template-columns: minmax(620px, 1.35fr) minmax(360px, .65fr); }
.management-list { min-width: 0; overflow: hidden; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-card { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 15px; padding: 14px; cursor: pointer; background: #fbfdfb; }
.check-card input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--green); }
.check-card strong, .check-card small { display: block; }
.check-card strong { font-size: 13px; }
.check-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.record-list, .profile-admin-list { display: grid; }
.record-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 20px 22px; }
.record-row:first-child, .profile-admin-row:first-child { border-top: 0; }
.record-year { font-family: Georgia, serif; font-size: 27px; }
.record-row h3, .profile-admin-row h3 { margin: 7px 0 2px; font-size: 15px; }
.record-row p, .profile-admin-row p { margin: 0; color: var(--muted); font-size: 12px; }
.record-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.button-link { border: 0; padding: 0; cursor: pointer; background: transparent; font: inherit; }
.form-image-preview { width: 112px; height: 112px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 20px; object-fit: cover; }
.call-image-preview { width: 180px; height: 112px; }
.profile-admin-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 18px 22px; }
.profile-admin-row > img, .profile-fallback { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.profile-fallback { display: grid; place-items: center; color: var(--green); background: var(--mint); font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.profile-year { color: var(--green); font-size: 12px; font-weight: 800; }
.committee-admin-row { grid-template-columns: 72px minmax(0, 1fr) minmax(120px, auto); }
.committee-admin-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.committee-actions { display: grid; justify-items: end; gap: 8px; }
.confirmation-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 24px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(7, 35, 28, .3); }
.confirmation-dialog::backdrop { background: rgba(7, 35, 28, .62); backdrop-filter: blur(3px); }
.dialog-body { padding: 34px; }
.dialog-body h2 { margin: 5px 0 22px; font-family: Georgia, serif; font-size: 31px; font-weight: 500; line-height: 1.15; }
.dialog-body .notice { margin: 22px 0; }
.dialog-close-form { position: sticky; z-index: 2; top: 0; height: 0; text-align: right; }
.dialog-close-form button { width: 38px; height: 38px; margin: 12px 12px 0 0; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--ink); background: #fff; font-size: 25px; line-height: 1; }
.winner-trophy { display: inline-grid; min-width: 46px; height: 46px; place-items: center; border-radius: 50%; background: #fff4c3; font-size: 25px; }
.winner-trophy-inline { display: inline; color: #9a6500; font-size: 17px; }
.winner-card .btn-primary { width: 100%; }
.table-substatus { display: block; margin-top: 5px; color: #8a6508; font-size: 10px; font-weight: 750; }
.winner-list { display: grid; }
.winner-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 22px 26px; }
.winner-row:first-child { border-top: 0; }
.winner-row h3 { margin: 8px 0 4px; font-size: 17px; }
.winner-row p, .winner-row small { display: block; margin: 2px 0; color: var(--muted); font-size: 12px; }
.winner-medal { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; background: #fff4c3; font-size: 26px; }
.winner-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.danger-link { color: var(--danger) !important; }
.kpi-inline { display: flex; flex: 1; justify-content: flex-end; gap: 22px; color: var(--muted); font-size: 12px; }
.kpi-inline strong { color: var(--green); font-size: 18px; }
.notification-grid { grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); }
.notification-template-list { display: grid; max-height: 760px; overflow: auto; }
.notification-template-row { display: grid; gap: 4px; border-top: 1px solid var(--line); padding: 15px 20px; color: var(--ink); text-decoration: none; }
.notification-template-row:first-child { border-top: 0; }
.notification-template-row:hover, .notification-template-row.active { background: #f2f8f4; }
.notification-template-row.active { border-left: 4px solid var(--lime); padding-left: 16px; }
.notification-template-row small { color: var(--muted); }
.code-textarea { font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 1.6; }
.committee-reset { grid-column: 2 / -1; margin-top: -4px; }
.logo-preview { display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 24px; padding: 18px; background: #fbfdfb; }
.logo-preview img { width: 120px; height: 80px; object-fit: contain; }
.logo-preview label { color: var(--muted); font-size: 13px; }

/* Managed people on the public landing page */
.recipient-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.recipient-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .2s ease; }
.recipient-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipient-photo { position: relative; height: 280px; overflow: hidden; background: var(--mint); }
.recipient-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.recipient-card:hover .recipient-photo img { transform: scale(1.025); }
.recipient-photo span { position: absolute; left: 16px; bottom: 16px; border-radius: 999px; padding: 7px 11px; color: #fff; background: rgba(12,45,37,.86); backdrop-filter: blur(8px); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.recipient-copy { padding: 22px; }
.recipient-copy h3, .committee-card h3 { margin: 5px 0 7px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.14; }
.recipient-copy > p:not(.profile-role), .committee-card p:not(.profile-role) { margin: 0; color: var(--muted); font-size: 13px; }
.profile-role { margin: 0; color: var(--green-2); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.recipient-copy details { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; }
.recipient-copy summary { color: var(--green); cursor: pointer; font-size: 12px; font-weight: 780; }
.recipient-copy details p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.committee-public-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.committee-card { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.committee-card img { width: 104px; height: 124px; border-radius: 16px; object-fit: cover; object-position: center top; }
.committee-card h3 { font-size: 21px; }
.rich-editor { overflow: hidden; border: 1px solid #cad4cf; border-radius: 16px; background: #fff; }
.rich-editor:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(28,90,73,.09); }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 9px; background: #f6f8f6; }
.rich-editor-toolbar button { min-height: 34px; border: 1px solid #d7dfda; border-radius: 8px; padding: 5px 9px; color: var(--green); background: #fff; cursor: pointer; font-size: 12px; }
.rich-editor-toolbar button:hover { border-color: var(--green-2); background: var(--mint); }
.rich-editor-toolbar .rich-source-toggle { margin-left: auto; }
.rich-block-select { width: 132px; padding: 6px 9px; border-radius: 8px; font-size: 12px; }
.rich-editor-content, .rich-editor-source { min-height: 480px; max-height: 720px; overflow: auto; border: 0; border-radius: 0; padding: 24px; outline: 0; }
.rich-editor-content { background: #fff; overflow-wrap: anywhere; }
.rich-editor-content > *:first-child { margin-top: 0 !important; }
.rich-editor-content * { max-width: 100% !important; }
.rich-editor-content table { width: 100%; border-collapse: collapse; }
.rich-editor-content th, .rich-editor-content td { border: 1px solid var(--line); padding: 8px; }
.rich-editor-source { display: none; width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.55; }
.rich-editor.is-source .rich-editor-content { display: none; }
.rich-editor.is-source .rich-editor-source { display: block; }

@media (max-width: 1080px) {
  .calls-management-grid, .publication-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .current-call, .auth-page, .workspace-grid, .detail-grid, .committee-grid, .management-grid, .message-layout { grid-template-columns: 1fr; }
  .message-layout > .panel:first-child { position: static; }
  .hero { padding-top: 56px; }
  .call-card { max-width: 620px; }
  .stats-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .prize-grid { grid-template-columns: 1fr; }
  .recipient-grid, .committee-public-grid { grid-template-columns: repeat(2, 1fr); }
  .prize-card { min-height: 250px; }
  .archive-row { grid-template-columns: 80px 1fr 34px; }
  .archive-row > :nth-child(3) { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .auth-story { min-height: 430px; }
  .workspace-grid { gap: 18px; }
  .stage-card { display: grid; grid-template-columns: 1fr 1fr; }
  .publication-hero-grid, .publication-layout { grid-template-columns: 1fr; }
  .publication-mark { width: min(280px, 70vw); }
  .publication-aside { position: static; }
  .announcement-winner-grid { grid-template-columns: 1fr; }
  .publication-cta .shell { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .header-inner { min-height: 70px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 70px; right: 14px; left: 14px; display: none; align-items: stretch; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; box-shadow: var(--shadow); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 11px 13px; }
  .portal-header .header-inner { min-height: auto; align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 11px; }
  .portal-nav { width: 100%; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
  .portal-nav > a { flex: 0 0 auto; white-space: nowrap; }
  .portal-nav .user-chip { display: none; }
  .hero h1 { font-size: 49px; }
  .hero-grid { gap: 40px; }
  .call-card { padding: 25px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .section { padding: 68px 0; }
  .call-aside, .call-content { padding: 28px; }
  .call-artwork { width: calc(100% + 56px); margin: -28px -28px 24px; }
  .call-year { font-size: 72px; }
  .archive-row { grid-template-columns: 64px 1fr 26px; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom, .page-intro { align-items: flex-start; flex-direction: column; }
  .auth-story { min-height: 360px; padding: 30px 24px; }
  .auth-story h1 { font-size: 46px; }
  .auth-proof { flex-direction: column; gap: 8px; }
  .auth-panel { padding: 42px 20px; }
  .field-row, .upload-grid, .definition-grid { grid-template-columns: 1fr; }
  .check-grid, .recipient-grid, .committee-public-grid { grid-template-columns: 1fr; }
  .record-row { grid-template-columns: 54px 1fr; }
  .record-actions { grid-column: 2; justify-content: flex-start; }
  .profile-admin-row, .committee-admin-row { grid-template-columns: 58px minmax(0, 1fr); align-items: start; padding-inline: 16px; }
  .profile-admin-row > img, .profile-fallback { width: 58px; height: 58px; border-radius: 15px; }
  .profile-admin-row .record-actions, .committee-actions, .committee-reset { grid-column: 2; justify-items: start; }
  .committee-reset { width: 100%; min-width: 0; flex-direction: column; }
  .committee-reset .input { min-width: 0; }
  .recipient-photo { height: 340px; }
  .stage-card { display: block; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .panel-body, .panel-header { padding: 20px; }
  .publication-index-grid { grid-template-columns: 1fr; }
  .publication-index-card, .publication-index-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .publication-index-card > img, .publication-card-art { min-height: 210px; max-height: 300px; }
  .publication-hero { padding: 50px 0 64px; }
  .publication-hero h1 { font-size: 44px; }
  .publication-hero-grid { gap: 40px; }
  .publication-image-wrap { border-radius: 18px; margin-top: -28px; }
  .publication-admin-row { grid-template-columns: 46px minmax(0, 1fr); }
  .publication-admin-row .record-actions { grid-column: 2; }
  .input-prefix { align-items: stretch; flex-direction: column; }
  .input-prefix span { padding: 9px 13px 0; }
  .winner-row { grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
  .winner-medal { width: 44px; height: 44px; font-size: 22px; }
  .winner-actions { grid-column: 2; justify-content: flex-start; }
  .dialog-body { padding: 28px 22px; }
  .dialog-body h2 { font-size: 27px; }
  .kpi-inline { width: 100%; justify-content: flex-start; }
}
