:root {
  --ink: #122835;
  --deep: #09232e;
  --teal: #165f60;
  --cream: #f6f3ed;
  --paper: #fffdfa;
  --muted: #4d6269;
  --line: #d9ded7;
  --gold: #c5a56f;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
a { color: var(--teal); text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #008b88; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; inset: .5rem auto auto .5rem; padding: .75rem; background: white; transform: translateY(-160%); z-index: 4; }
.skip:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; gap: clamp(.7rem, 3vw, 2rem); padding: .9rem clamp(1rem, 5vw, 5rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .63rem; align-items: center; flex-shrink: 0; font: 600 1.22rem Georgia, serif; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid #82724f; border-radius: 50%; color: #584522; font-size: .8rem; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.55rem); margin-left: auto; flex-wrap: wrap; }
nav a { text-decoration: none; color: #324e56; font-size: .93rem; font-weight: 650; }
nav a[aria-current="page"], nav a:hover { text-decoration: underline; color: var(--teal); }
main { flex: 1; }
#app { min-height: 55vh; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(102deg, #092630 7%, #0e3a45 58%, #46676c 100%); color: white; min-height: 300px; display: grid; align-items: center; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 85%; height: 140%; right: -17%; bottom: -100%; border: 1px solid #e3d4ab85; border-radius: 50%; transform: rotate(-14deg); }
.hero::after { width: 90%; right: -20%; bottom: -92%; box-shadow: 0 -13px 0 #a7b7af14, 0 -26px 0 #a7b7af11, 0 -39px 0 #a7b7af0e; }
.hero .wrap { padding-block: 3.1rem; }
.hero p { max-width: 42rem; color: #e4efed; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.15; margin: 0 0 .65em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 7vw, 4.25rem); margin-bottom: .3em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); }
h3 { font-size: 1.35rem; }
p { line-height: 1.55; margin: 0 0 .9rem; }
.eyebrow { text-transform: uppercase; font-size: .73rem; letter-spacing: .15em; font-weight: 700; margin-bottom: 1.1rem; }
.hero .eyebrow { color: #f5deb5; }
.page-heading { padding-top: 2.6rem; }
.page-heading h1 { font-size: clamp(2.2rem, 6vw, 3.45rem); }
.content { padding-block: 2.15rem 3.65rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card, .panel, .form-box { background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 3vw, 1.6rem); min-width: 0; }
.card .eyebrow { color: #695439; margin-bottom: .7rem; }
.card:last-child, .card p:last-child, .panel p:last-child { margin-bottom: 0; }
.section-gap { margin-top: 2.4rem; }
.meta, .empty { color: var(--muted); }
.empty { border-left: 2px solid var(--gold); padding: .7rem 1rem; background: #fbf7ef; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; border: 1px solid var(--teal); border-radius: .42rem; padding: .6rem .88rem; color: white; background: var(--teal); font-weight: 650; text-decoration: none; min-height: 40px; }
.button:hover { filter: brightness(.9); }
.button.ghost { color: var(--teal); background: transparent; }
.button.light { background: #f5e7cd; color: #302517; border-color: #f5e7cd; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .7rem; }
.stack { display: grid; gap: .9rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: minmax(7rem, 9rem) 1fr; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.timeline p:last-child { margin: 0; }
.tag { display: inline-block; border-radius: 2rem; background: #e5efea; color: #204e42; padding: .2rem .62rem; font-size: .8rem; font-weight: 700; }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.auth-grid { display: grid; grid-template-columns: 1.2fr minmax(0, 390px); gap: 1.6rem; align-items: start; padding-block: 3rem; }
.form-box h2 { margin-bottom: .45em; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .85rem; }
label { display: grid; gap: .32rem; align-content: start; color: #304853; font-size: .93rem; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 42px; border: 1px solid #91a4a1; border-radius: .4rem; background: white; color: var(--ink); padding: .48rem .58rem; }
textarea { resize: vertical; min-height: 88px; }
input[type="checkbox"] { width: auto; min-height: auto; }
.check { display: flex; flex-direction: row; align-items: center; gap: .55rem; }
form > .actions { margin-top: 1rem; }
details > summary { cursor: pointer; font-weight: 650; margin-bottom: .7rem; }
.staff-item { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.staff-item:last-child { border-bottom: none; }
.staff-item strong { overflow-wrap: anywhere; }
.status:empty { display: none; }
.demo-notice { margin: 0; padding: .5rem 1.25rem; background: #efe2c7; color: #402e1b; font-size: .88rem; text-align: center; }
.status { width: min(1100px, 100% - 2.5rem); margin: .85rem auto; padding: .68rem .8rem; background: #e2f1e9; border-left: 3px solid #346d58; overflow-wrap: anywhere; }
.status[data-kind="error"] { background: #f8e7df; border-color: #a84134; }
.loading { padding: 2rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: 1.1rem clamp(1rem, 5vw, 5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.disclosure { font-size: .88rem; border-left: 2px solid var(--gold); padding-left: .7rem; }
.long-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 1.2rem; }
@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; justify-content: space-between; }
  nav { order: 3; width: 100%; margin: 0; }
  .auth-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .25rem; }
  .hero { min-height: 235px; }
}
@media print {
  .site-header, .site-footer, .button, .skip, .status { display: none !important; }
  :root { color: black; background: white; }
  .hero { color: black; background: white; min-height: 0; }
  .hero p, .hero .eyebrow { color: black; }
  .wrap { width: 100%; }
  .panel, .card, .timeline li { break-inside: avoid; }
}
