:root {
  --navy: #173f55;
  --blue: #2d7891;
  --aqua: #dff4f2;
  --aqua-strong: #b9e2df;
  --coral: #c85f45;
  --sand: #f8f2e7;
  --paper: #fffefb;
  --ink: #24343d;
  --muted: #61727a;
  --line: #d9e3e4;
  --shadow: 0 12px 30px rgba(23, 63, 85, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--aqua) 0 220px, #f7fbfa 220px 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #f2a93b; outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 24px 0 54px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--paper); border: 2px solid var(--navy); border-radius: 50%; font-size: 22px; }
.hero { margin-top: 42px; max-width: 760px; }
.eyebrow { margin: 0 0 8px; color: var(--coral); font-size: .86rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; }
h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.035em; }
.lede { margin: 16px 0 0; max-width: 660px; color: #405b68; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 12px; color: #466571; font-size: .92rem; }
.crumbs a { text-underline-offset: 3px; }
main { margin-top: -24px; padding-bottom: 72px; }
.panel { background: rgba(255, 254, 251, .96); border: 1px solid rgba(23, 63, 85, .13); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 42px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.section-heading p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 235px; padding: 26px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 12px 24px rgba(23,63,85,.12); }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; background: var(--aqua); border-radius: 15px; font-size: 27px; }
.card h2, .card h3 { margin: 0 0 9px; font-size: 1.45rem; }
.card p { margin: 0 0 24px; color: var(--muted); }
.card-link { margin-top: auto; color: var(--coral); font-weight: 800; }
.badge { align-self: flex-start; margin-bottom: 16px; padding: 5px 10px; background: var(--sand); border-radius: 999px; color: #75502e; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.resource-stack { display: grid; gap: 18px; }
.resource { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.resource-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--aqua); font-size: 25px; }
.resource h3 { margin: 0 0 4px; font-size: 1.15rem; }
.resource p { margin: 0; color: var(--muted); }
.resource-rich { align-items: start; }
.resource-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.byline { margin-top: 7px !important; font-size: .88rem; font-weight: 700; }
.group { margin-top: 30px; }
.group:first-child { margin-top: 0; }
.group-title { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.45rem; }
.topic-label { display: inline-block; margin-bottom: 7px; color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.management-link { overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; background: var(--navy); border: 2px solid var(--navy); border-radius: 12px; color: white; font-weight: 800; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--blue); border-color: var(--blue); }
.button.secondary { background: transparent; color: var(--navy); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button.coral { background: var(--coral); border-color: var(--coral); }
.form-grid { display: grid; gap: 18px; max-width: 700px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--navy); font-weight: 800; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 10px 13px; color: var(--ink);
  background: white; border: 1px solid #a9bdc4; border-radius: 11px;
  font: inherit;
}
.field input[type="file"] { padding: 11px; }
.help { margin: 0; color: var(--muted); font-size: .9rem; }
.notice { margin-bottom: 22px; padding: 15px 17px; border-radius: 12px; font-weight: 700; }
.notice.success { color: #205b45; background: #e1f5eb; border: 1px solid #9ed5bc; }
.notice.error { color: #7a2f23; background: #fff0eb; border: 1px solid #e4b5a9; }
.loading { color: var(--muted); }
.divider { height: 1px; margin: 34px 0; background: var(--line); }
.empty { padding: 28px; border: 2px dashed var(--aqua-strong); border-radius: 18px; background: #f9fdfc; text-align: center; }
.empty-icon { font-size: 30px; }
.empty h3 { margin: 6px 0; }
.empty p { margin: 0 auto; max-width: 560px; color: var(--muted); }
.footer { padding: 24px 0 38px; color: #54717d; text-align: center; font-size: .9rem; }

@media (max-width: 700px) {
  body { background: linear-gradient(180deg, var(--aqua) 0 190px, #f7fbfa 190px 100%); }
  .site-header { padding-bottom: 42px; }
  .hero { margin-top: 28px; }
  .grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 5px; }
  .resource { grid-template-columns: 48px 1fr; }
  .resource-icon { width: 46px; height: 46px; }
  .resource .button { grid-column: 1 / -1; }
  .resource-actions { grid-column: 1 / -1; justify-content: stretch; }
  .resource-actions .button { flex: 1 1 160px; }
}

@media print {
  body { background: white; }
  .site-header { padding-bottom: 24px; }
  main { margin-top: 0; }
  .panel { box-shadow: none; }
  .card { break-inside: avoid; }
}
