:root {
  --bg: #f9efe1;
  --bg-soft: #f2dfc7;
  --paper: #fff9ec;
  --paper-2: #f7ead6;
  --ink: #26180f;
  --muted: #6d5a48;
  --line: rgba(91, 52, 30, .18);
  --brand: #8a3f22;
  --brand-dark: #351c12;
  --accent: #c9964c;
  --gold: #9d7428;
  --success: #2d7a46;
  --warning: #a86a00;
  --danger: #a33636;
  --shadow: 0 24px 70px rgba(63, 35, 17, .16);
  --shadow-soft: 0 10px 24px rgba(63, 35, 17, .10);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -6%, rgba(255, 230, 184, .92), transparent 34rem),
    radial-gradient(circle at 82% 8%, rgba(121, 58, 30, .16), transparent 28rem),
    linear-gradient(180deg, #f8ead5 0%, #fff8ec 46%, #f4e1c7 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  min-width: 320px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .42;
  background-image:
    linear-gradient(90deg, rgba(83, 49, 28, .04) 1px, transparent 1px),
    linear-gradient(rgba(83, 49, 28, .035) 1px, transparent 1px),
    radial-gradient(circle at 20% 80%, rgba(87, 56, 30, .06), transparent 18rem);
  background-size: 42px 42px, 42px 42px, auto;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .10;
  background-image:
    repeating-linear-gradient(100deg, transparent 0 18px, rgba(78, 39, 19, .12) 19px 20px),
    radial-gradient(circle, rgba(44, 21, 9, .12) 1px, transparent 1.5px);
  background-size: auto, 18px 18px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
code { background: #ead7ba; border-radius: 8px; padding: .1rem .35rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .75rem clamp(1rem, 4vw, 4rem);
  background: rgba(39, 22, 13, .96);
  color: #fff4dc;
  border-bottom: 1px solid rgba(232, 195, 129, .18);
  box-shadow: 0 8px 22px rgba(19, 11, 5, .18);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; min-width: max-content; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #d4a85b;
  font-size: 1.55rem;
  border-radius: 50%;
  border: 1px solid rgba(211, 168, 91, .38);
  background: radial-gradient(circle at top, rgba(211, 168, 91, .18), transparent 70%);
}
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.55rem); color: #dcb56f; letter-spacing: .02em; }
.brand small { color: #c89a51; font-size: .76rem; text-transform: uppercase; letter-spacing: .36em; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; flex-wrap: wrap; }
.site-nav > a, .nav-dropdown > button {
  border: 0;
  background: transparent;
  color: #fff4dc;
  padding: .55rem .74rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  letter-spacing: .015em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-nav a:hover, .nav-dropdown > button:hover, .site-nav a:focus-visible, .nav-dropdown > button:focus-visible {
  color: #f5cd83;
  background: rgba(255, 245, 220, .08);
  outline: none;
}
.admin-link { color: #f6d9a0 !important; background: rgba(198, 146, 72, .14) !important; }
.nav-dropdown { position: relative; }
.nav-dropdown > div {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 250px;
  display: none;
  flex-direction: column;
  padding: .6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.nav-dropdown:hover > div { display: flex; }
.nav-dropdown > div a { padding: .72rem .9rem; border-radius: 12px; color: var(--muted); font-family: Inter, sans-serif; }
.nav-dropdown > div a:hover { background: #f2dfc7; color: var(--brand-dark); }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff4dc; border-radius: 12px; padding: .45rem .7rem; }
main { min-height: 70vh; }

.hero, .page-hero, .section, .storybook-shell, .admin-layout, .site-footer, .story-strip, .updates-strip {
  width: min(1360px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 70vh;
  padding: clamp(3rem, 7vw, 6rem) 0 2rem;
}
.vintage-hero { position: relative; }
.vintage-hero::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem auto auto;
  width: min(62vw, 740px);
  height: 340px;
  z-index: -1;
  opacity: .38;
  background:
    linear-gradient(180deg, transparent 45%, rgba(104, 61, 30, .18) 46% 47%, transparent 48%),
    radial-gradient(ellipse at 30% 70%, rgba(83, 109, 74, .2) 0 5%, transparent 6%),
    radial-gradient(ellipse at 43% 68%, rgba(83, 109, 74, .18) 0 4%, transparent 5%),
    radial-gradient(ellipse at 58% 72%, rgba(105, 64, 30, .18) 0 9%, transparent 10%);
  filter: blur(.1px);
}
.hero-copy { max-width: 720px; }
.hero h1, .page-hero h1, .section h2, .admin-main h1, .book-page h2, .updates-label h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: .96;
  font-weight: 700;
}
.hero h1, .page-hero h1 {
  font-size: clamp(3.35rem, 8.5vw, 7rem);
  margin: .25rem 0 .5rem;
  letter-spacing: -.045em;
  color: #2b180f;
  text-wrap: balance;
}
.ornament {
  width: 180px;
  height: 18px;
  margin: .25rem 0 1rem;
  background:
    linear-gradient(90deg, transparent, var(--gold), transparent) center/100% 1px no-repeat,
    radial-gradient(circle, var(--gold) 0 4px, transparent 5px) center/18px 18px no-repeat;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #503c2b; max-width: 780px; }
.lead em { color: #3d2417; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.14em; }
.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  font-weight: 900;
  margin: 0 0 .3rem;
}
.hero-actions, .card-actions, .storybook-footer-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.3rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid rgba(85, 47, 25, .28);
  border-radius: 14px;
  padding: .82rem 1.05rem;
  color: var(--brand-dark);
  background: rgba(255, 249, 236, .82);
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(54, 30, 14, .07);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover, .interactive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn.primary { color: #fff8e9; background: linear-gradient(135deg, #9a4828, #6e2f1c); border-color: transparent; }
.btn.gold { color: #fff8e9; background: linear-gradient(135deg, #a77a2f, #6e531d); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.small { padding: .55rem .75rem; font-size: .88rem; border-radius: 12px; }
.wide-btn { width: 100%; margin-top: 1rem; }

.hero-still-life {
  position: relative;
  min-height: 430px;
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 237, 188, .8), transparent 16rem),
    linear-gradient(135deg, rgba(104, 57, 29, .28), rgba(251, 235, 204, .38)),
    linear-gradient(160deg, #b47a3f, #4d2717 60%, #26140c);
  box-shadow: var(--shadow);
  border: 1px solid rgba(82, 47, 25, .2);
}
.hero-still-life::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 26%, rgba(255,255,255,.18) 27% 30%, transparent 31% 100%),
    radial-gradient(circle at 82% 20%, rgba(255, 220, 150, .35), transparent 14rem),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 2px 16px);
  mix-blend-mode: screen;
}
.hero-still-life::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 1.8rem;
  height: 42px;
  border-radius: 50%;
  background: rgba(21, 10, 5, .34);
  filter: blur(18px);
}
.book-stack { position: absolute; left: 8%; top: 18%; width: 230px; height: 170px; transform: rotate(-7deg); }
.book-stack span { position: absolute; left: 0; width: 220px; height: 45px; border-radius: 8px; background: linear-gradient(90deg, #352010, #8f5a28 22%, #1f1209 90%); box-shadow: 0 9px 0 rgba(0,0,0,.12); }
.book-stack span:nth-child(1) { top: 0; }
.book-stack span:nth-child(2) { top: 42px; left: 14px; background: linear-gradient(90deg, #2c190c, #6f3d1d 24%, #1c1008 90%); }
.book-stack span:nth-child(3) { top: 84px; left: 4px; background: linear-gradient(90deg, #49301c, #a36a34 24%, #2b170b 90%); }
.book-stack strong { position: absolute; top: 20px; left: 54px; color: #dbbc72; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; line-height: 1.1; text-align: center; transform: rotate(3deg); }
.portrait-paper { position: absolute; left: 43%; top: 14%; width: 170px; height: 205px; background: #ead9bd; border: 10px solid #f3e7cf; display: grid; place-items: center; font-family: "Cormorant Garamond"; font-size: 4rem; color: #4c3524; box-shadow: var(--shadow-soft); transform: rotate(5deg); }
.open-pages { position: absolute; right: 8%; top: 24%; width: 285px; min-height: 170px; padding: 1.4rem; color: #482d1e; background: linear-gradient(90deg, #f6e7c9 0 49%, #ead2ad 50% 100%); border-radius: 4px 28px 28px 4px; box-shadow: var(--shadow-soft); transform: rotate(3deg); }
.open-pages span { font-family: "Cormorant Garamond"; text-transform: uppercase; letter-spacing: .1em; color: #8b4a2f; font-weight: 700; }
.open-pages p { font-size: .92rem; }
.ink-bottle { position: absolute; right: 3%; bottom: 17%; width: 84px; height: 92px; display: grid; place-items: center; color: #d9c184; font-family: "Cormorant Garamond"; background: linear-gradient(180deg, #1e1712, #0b0705); border-radius: 22px 22px 10px 10px; border: 1px solid rgba(255,255,255,.18); text-transform: uppercase; }
.pen { position: absolute; left: 28%; bottom: 22%; width: 300px; height: 13px; background: linear-gradient(90deg, #1b0e08, #c1873d, #160b06); transform: rotate(-15deg); border-radius: 999px; box-shadow: var(--shadow-soft); }
.pen::after { content: ""; position: absolute; right: -28px; top: -4px; border-left: 32px solid #d2a762; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }

.story-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.3rem; }
.feature-story-card, .resource-panel, .plain-card, .material-card, .content-card, .side-card, .panel, .portrait-card, .story-list-item, .comment-card, .form-card, .empty-panel {
  background: rgba(255, 249, 236, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.interactive-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-story-card { display: grid; grid-template-columns: minmax(100px, 180px) minmax(0, 1fr); gap: 1.1rem; padding: 1rem; align-items: center; overflow: hidden; }
.feature-story-card h2 { font-family: "Cormorant Garamond"; font-size: clamp(2rem, 3vw, 2.7rem); line-height: .95; margin: .15rem 0 .45rem; }
.feature-story-card p { margin: 0 0 .65rem; color: var(--muted); }
.feature-story-card a { color: var(--brand); font-weight: 900; }
.story-art { position: relative; min-height: 110px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #d9b873, #7d4c2c); }
.story-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 25%, rgba(255,231,169,.75), transparent 24%), linear-gradient(180deg, transparent 55%, rgba(51,83,50,.28) 56%); }
.story-art .land { position: absolute; left: -10%; right: -10%; bottom: -20px; height: 60px; background: rgba(67, 71, 39, .42); border-radius: 50%; }
.story-art .sun { position: absolute; right: 12%; top: 18%; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 224, 139, .75); }
.story-art .figure { position: absolute; left: 38%; bottom: 24px; width: 20px; height: 44px; border-radius: 18px 18px 4px 4px; background: rgba(68, 35, 22, .55); box-shadow: 32px 6px 0 rgba(96, 47, 26, .45); }
.story-art-the-flowers-of-may { background: linear-gradient(160deg, #e3bd7c, #8b6b3e 50%, #6c7c54); }
.story-art-the-yellow-shawl { background: linear-gradient(160deg, #d4a64c, #8b4a2f 62%, #2f1b12); }

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 780px; margin-bottom: 1.4rem; }
.section-head h2, .resource-panel h2, .updates-label h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0; }
.learning-dashboard { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 1rem; align-items: stretch; }
.resource-panel { padding: 1.4rem; position: relative; overflow: hidden; }
.resource-panel::after { content: ""; position: absolute; right: -30px; bottom: -35px; width: 140px; height: 140px; opacity: .14; border-radius: 28px; border: 12px double var(--brand); transform: rotate(-14deg); }
.panel-title-row { display: flex; align-items: center; gap: .85rem; margin-bottom: .8rem; }
.round-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #884528; box-shadow: inset 0 0 0 4px rgba(255,255,255,.15); }
.round-icon.gold { background: #846021; }
.round-icon.dark { background: #2f1a10; }
.accordion { display: grid; gap: .55rem; margin-top: 1rem; }
.accordion-trigger { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.35); border-radius: 14px; padding: .8rem .9rem; display: flex; justify-content: space-between; align-items: center; color: var(--brand-dark); font-weight: 900; cursor: pointer; }
.accordion-panel { display: none; padding: 0 .9rem .8rem; color: var(--muted); }
.accordion-item-open + .accordion-panel, .accordion-trigger.open + .accordion-panel { display: block; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.resource-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.45); border-radius: 999px; padding: .48rem .72rem; color: var(--muted); cursor: pointer; font-weight: 800; }
.chip.active { background: #3b2116; color: #fff8e9; border-color: #3b2116; }
.chip-panel { display: none; color: var(--muted); min-height: 72px; }
.chip-panel.active { display: block; }
.story-library-panel p { color: var(--muted); }
.library-links { display: grid; gap: .65rem; margin-top: 1rem; }
.library-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .82rem .9rem; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.38); transition: background .2s ease, transform .2s ease; }
.library-links a:hover { background: rgba(255,255,255,.72); transform: translateX(4px); }
.library-links strong { color: var(--brand); }

.muted-paper, .muted { background: rgba(250, 235, 211, .52); border-block: 1px solid rgba(90, 51, 26, .10); }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.resource-grid, .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.material-card, .plain-card { padding: 1.2rem; }
.material-card h3, .plain-card h3 { font-family: "Cormorant Garamond"; font-size: 1.7rem; margin: .35rem 0; line-height: 1.05; }
.material-card p, .plain-card p { color: var(--muted); }
.tag { display: inline-flex; padding: .24rem .55rem; border-radius: 999px; background: #f2dfc7; color: var(--brand-dark); font-size: .76rem; font-weight: 900; }
.empty-panel { padding: 2rem; text-align: center; grid-column: 1 / -1; }
.empty, small { color: var(--muted); }

.updates-strip { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-bottom: 2rem; padding: 1rem; border-radius: var(--radius); background: rgba(255, 249, 236, .76); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.updates-label { display: flex; gap: 1rem; align-items: center; padding: .8rem 1rem; border-right: 1px solid var(--line); }
.updates-label > span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #8a3f22; color: #fff; font-size: 1.45rem; }
.updates-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.updates-list article { padding: .8rem 1rem; border-left: 1px solid var(--line); }
.updates-list strong { display: block; color: var(--brand-dark); }
.updates-list p { margin: .25rem 0; color: var(--muted); }

.page-hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem);
}
.page-hero.compact { max-width: 1000px; margin-inline: auto; }
.paper-hero::after, .story-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1rem;
  width: min(42vw, 520px);
  height: 145px;
  opacity: .18;
  background: radial-gradient(ellipse at 30% 70%, rgba(70, 93, 57, .55) 0 7%, transparent 8%), linear-gradient(180deg, transparent 58%, rgba(99, 55, 29, .45) 60% 62%, transparent 63%);
  pointer-events: none;
}
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr); gap: 1.2rem; align-items: start; }
.split.align-start { align-items: start; }
.content-card, .side-card, .panel, .portrait-card { padding: 1.4rem; }
.content-card h2, .side-card h3, .panel h3, .story-list-item h3 { font-family: "Cormorant Garamond"; font-size: 2rem; line-height: 1.05; margin: .2rem 0 .75rem; }
.side-card { display: grid; gap: .7rem; }
.side-card a, .resource-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.35); color: var(--brand-dark); font-weight: 800; }
.side-card a:hover, .resource-row:hover { background: rgba(255,255,255,.74); }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.resource-list { display: grid; gap: .7rem; }
.author-block { grid-template-columns: 340px minmax(0, 1fr); }
.portrait-placeholder {
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond";
  font-size: 5rem;
  color: #4a2c1c;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 34%, #e3c79b 0 17%, transparent 18%),
    linear-gradient(180deg, #f1dfc2, #c49a65);
  border: 10px solid #fff5df;
  box-shadow: var(--shadow-soft);
}
.notice { padding: 1rem; background: #fff1d6; border: 1px solid #e7ca99; border-radius: 16px; color: #5a3b23; }
.story-list { display: grid; gap: 1rem; }
.story-list-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem; }
details summary { cursor: pointer; color: var(--brand); font-weight: 900; }
.story-list-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.filter-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.filter-bar label { font-weight: 900; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf9;
  color: var(--ink);
  padding: .75rem .85rem;
  outline-color: var(--accent);
}
.filter-bar select { width: auto; min-width: 260px; }
.form-card { display: grid; gap: 1rem; }
.form-card label { display: grid; gap: .35rem; font-weight: 800; color: var(--brand-dark); }
.form-card label input, .form-card label textarea, .form-card label select { font-weight: 400; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; }
.check input { width: auto; }

.storybook-shell { padding: 1rem 0 4rem; }
.storybook-toolbar { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.book { perspective: 1600px; }
.book-page {
  display: none;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 1.3rem;
  min-height: 540px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform-origin: left center;
}
.book-page.active { display: grid; animation: pageFlip .35s ease both; }
@keyframes pageFlip { from { opacity: .35; transform: rotateY(-8deg) translateX(-12px); } to { opacity: 1; transform: rotateY(0) translateX(0); } }
.page-illustration { min-height: 480px; display: grid; place-items: center; background: #f2dfc7; border-radius: 24px; overflow: hidden; }
.page-illustration img { width: 100%; height: 100%; object-fit: cover; }
.illustration-placeholder { width: 180px; height: 180px; display: grid; place-items: center; border-radius: 48px; font-family: "Cormorant Garamond"; font-size: 4rem; color: var(--brand-dark); background: #dfc39a; }
.page-text { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.page-number { color: var(--brand); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.page-text p { font-size: 1.08rem; color: var(--muted); white-space: pre-line; }
.annotation { margin-top: 1rem; padding: 1rem; border-left: 4px solid var(--brand); background: #fff5e5; border-radius: 14px; color: var(--brand-dark); }
.storybook-footer-actions { justify-content: center; margin-top: 1.3rem; }

.comment-card { padding: 1rem; }
.comment-card.wide { max-width: 900px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.comment-meta span, .status { padding: .16rem .5rem; background: #f2dfc7; border-radius: 999px; font-size: .78rem; color: var(--brand-dark); font-weight: 800; }
.status.pending { background: #fff1c4; color: #876200; }
.status.approved { background: #d9f2df; color: var(--success); }
.status.hidden { background: #f4dddd; color: var(--danger); }
.comment-card p { white-space: pre-line; }
.edit-link { color: var(--brand); font-weight: 800; }
.discussion-wall, .comments-panel { display: grid; gap: 1rem; }

.flash-wrap { position: fixed; right: 1rem; top: 5rem; z-index: 100; display: grid; gap: .5rem; max-width: 420px; }
.flash { padding: .85rem 1rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; }
.flash-success { border-color: #a7d9b7; color: var(--success); }
.flash-warning { border-color: #f3d28e; color: var(--warning); }
.flash-danger { border-color: #e9a3a3; color: var(--danger); }

.admin-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; padding: 2rem 0 4rem; align-items: start; }
.admin-sidebar { position: sticky; top: 6rem; display: grid; gap: .4rem; padding: 1rem; background: var(--brand-dark); color: #fff; border-radius: 24px; }
.admin-sidebar h2 { margin: .2rem .4rem 1rem; font-family: "Cormorant Garamond"; font-size: 2rem; }
.admin-sidebar a { padding: .7rem .8rem; border-radius: 14px; color: #fff; }
.admin-sidebar a:hover { background: rgba(255,255,255,.12); }
.admin-main { min-width: 0; display: grid; gap: 1rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.admin-head h1 { margin: .1rem 0; font-size: clamp(2rem, 4vw, 3rem); }
.admin-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--brand-dark); font-size: .9rem; }
td form, .actions form { display: inline; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab { padding: .55rem .85rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--muted); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.comment-admin-list { display: grid; gap: .8rem; }

.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer strong { color: var(--brand-dark); }
.site-footer p { margin: .2rem 0 0; max-width: 720px; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--brand); font-weight: 800; }
.narrow { max-width: 760px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-still-life { min-height: 360px; }
  .learning-dashboard { grid-template-columns: 1fr 1fr; }
  .library-panel { grid-column: 1 / -1; }
  .story-strip { grid-template-columns: 1fr; }
  .feature-story-card { grid-template-columns: minmax(110px, 220px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .site-header { align-items: center; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    padding: .8rem;
    background: rgba(39, 22, 13, .98);
    border: 1px solid rgba(232, 195, 129, .18);
    border-radius: 20px;
    box-shadow: var(--shadow);
    align-items: stretch;
    flex-direction: column;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-dropdown > button { width: 100%; text-align: left; font-family: Inter, sans-serif; }
  .nav-dropdown > div { position: static; box-shadow: none; border: 0; background: rgba(255, 246, 234, .08); margin-top: .25rem; color: #fff4dc; }
  .nav-dropdown:hover > div { display: none; }
  .nav-dropdown.open > div { display: flex; }
  .nav-dropdown > div a { color: #fff4dc; }
  .hero, .split, .book-page, .admin-layout, .author-block { grid-template-columns: 1fr; }
  .card-grid.three, .two-columns, .form-grid, .admin-stats, .learning-dashboard, .updates-strip, .updates-list { grid-template-columns: 1fr; }
  .story-list-item, .site-footer, .admin-head { flex-direction: column; align-items: flex-start; }
  .updates-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-links { justify-content: flex-start; }
  .admin-sidebar { position: static; }
  .page-illustration { min-height: 300px; }
}
@media (max-width: 640px) {
  .site-header { padding: .65rem .85rem; }
  .brand small { letter-spacing: .2em; }
  .hero, .page-hero, .section, .storybook-shell, .admin-layout, .site-footer, .story-strip, .updates-strip { width: min(100% - 1rem, 1360px); }
  .hero h1, .page-hero h1 { font-size: clamp(2.7rem, 16vw, 4.8rem); }
  .hero-still-life { min-height: 300px; border-radius: 24px; }
  .book-stack { left: 5%; top: 16%; transform: rotate(-8deg) scale(.72); transform-origin: left top; }
  .portrait-paper { left: 47%; top: 13%; transform: rotate(6deg) scale(.72); transform-origin: left top; }
  .open-pages { right: 4%; top: 44%; width: 230px; transform: rotate(2deg) scale(.82); transform-origin: right top; }
  .ink-bottle { transform: scale(.78); right: 1%; bottom: 10%; }
  .pen { width: 220px; left: 17%; bottom: 21%; }
  .feature-story-card { grid-template-columns: 1fr; }
  .story-art { min-height: 150px; }
  .resource-panel, .content-card, .side-card, .panel, .portrait-card, .material-card, .plain-card { padding: 1rem; border-radius: 20px; }
  .filter-bar select { min-width: 100%; }
  .storybook-toolbar { flex-direction: column; }
  .book-page { min-height: 0; padding: .7rem; border-radius: 22px; }
  .page-text { padding: .9rem; }
  .footer-links { gap: .65rem; }
}
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-grid > div { padding: 1.15rem; border-radius: 20px; background: rgba(255,249,236,.88); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.stat-grid strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; color: var(--brand); }
.stat-grid span { color: var(--muted); font-weight: 800; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   High-fidelity homepage design based on the requested warm vintage
   Filipino literary mockup. This section intentionally overrides only
   the public homepage components and keeps the rest of the app intact.
------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid rgba(218, 177, 105, .16);
  background:
    radial-gradient(circle at 10% 0%, rgba(199, 151, 78, .14), transparent 22rem),
    linear-gradient(180deg, rgba(35, 22, 15, .99), rgba(25, 14, 9, .99));
}
.brand-mark {
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 1.95rem;
  background: transparent;
  color: #d4a758;
}
.brand strong {
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  letter-spacing: .01em;
}
.brand small {
  letter-spacing: .42em;
  font-size: .72rem;
}
.site-nav > a,
.nav-dropdown > button {
  position: relative;
  border-radius: 0;
  padding: .7rem .9rem .95rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.18vw, 1.24rem);
}
.site-nav > a::after,
.nav-dropdown > button::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .48rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: #d2a55b;
  transition: transform .18s ease;
}
.site-nav > a:hover::after,
.nav-dropdown > button:hover::after,
.site-nav > a:focus-visible::after,
.nav-dropdown > button:focus-visible::after {
  transform: scaleX(1);
}
.site-nav a:hover,
.nav-dropdown > button:hover,
.site-nav a:focus-visible,
.nav-dropdown > button:focus-visible {
  background: transparent;
}

.home-stage {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 226, .94) 0 36%, rgba(246, 226, 194, .78) 45%, rgba(87, 45, 22, .44) 100%),
    radial-gradient(circle at 88% 12%, rgba(255, 219, 147, .28), transparent 18rem),
    linear-gradient(180deg, #f4dfbd, #f5e8cf);
  border-bottom: 1px solid rgba(77, 45, 25, .16);
}
.home-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .35;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(2deg, transparent 0 38px, rgba(79, 45, 24, .06) 39px 40px),
    radial-gradient(ellipse at 4% 82%, rgba(58, 79, 55, .34) 0 5%, transparent 5.5%),
    radial-gradient(ellipse at 8% 84%, rgba(58, 79, 55, .30) 0 4%, transparent 4.5%),
    radial-gradient(ellipse at 16% 86%, rgba(91, 58, 28, .22) 0 10%, transparent 10.5%),
    linear-gradient(180deg, transparent 64%, rgba(75, 55, 31, .20) 65% 67%, transparent 68%);
}
.home-stage::after {
  content: "Dear reader   literature   memory   barrio   family   story   craft   heart   May   tradition";
  position: absolute;
  left: 0;
  top: 2rem;
  width: 48%;
  color: rgba(76, 45, 25, .13);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 2.1rem);
  letter-spacing: .18em;
  word-spacing: 2rem;
  transform: rotate(-7deg);
  pointer-events: none;
}
.home-stage__inner {
  width: min(1480px, calc(100% - 3rem));
  min-height: 430px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(560px, 1.22fr);
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.home-stage__copy {
  align-self: center;
  padding: clamp(2.1rem, 5vw, 3.8rem) 0 clamp(2.5rem, 5vw, 4.2rem);
  max-width: 620px;
}
.home-stage__copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.2rem, 7vw, 7rem);
  line-height: .82;
  letter-spacing: -.045em;
  color: #25150f;
  text-wrap: balance;
}
.home-stage__copy h1 span { display: inline-block; }
.home-stage__copy p {
  max-width: 620px;
  margin: .95rem 0 0;
  color: #321f17;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.16rem, 1.5vw, 1.42rem);
  line-height: 1.22;
}
.home-stage__copy em {
  color: #2a170f;
  font-style: italic;
}
.home-ornament {
  width: 250px;
  height: 22px;
  margin: .8rem 0 .75rem;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(73, 40, 23, .82) 6% 42%, transparent 43% 57%, rgba(73, 40, 23, .82) 58% 94%, transparent 95%) center/100% 1px no-repeat,
    radial-gradient(circle, rgba(171, 116, 46, .95) 0 4px, transparent 4.5px) center/18px 18px no-repeat;
}
.literary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .72rem;
  min-height: 44px;
  margin-top: 1.05rem;
  padding: .82rem 1.25rem;
  border: 1px solid rgba(91, 43, 22, .18);
  border-radius: 8px;
  color: #fff8e9;
  background: linear-gradient(180deg, #9a4528, #743119);
  box-shadow: 0 13px 22px rgba(60, 28, 15, .18);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .84rem;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.literary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(60, 28, 15, .23);
  filter: saturate(1.08);
}
.literary-button strong { font-size: 1.1rem; }
.literary-button--wide { width: max-content; max-width: 100%; }
.literary-button--gold { background: linear-gradient(180deg, #9d7428, #6f541d); }

.desk-collage {
  position: relative;
  min-height: 430px;
  isolation: isolate;
}
.desk-collage::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64%;
  background:
    radial-gradient(ellipse at 64% 72%, rgba(20, 10, 5, .45), transparent 30rem),
    linear-gradient(100deg, rgba(230, 200, 156, .25), rgba(57, 28, 14, .46));
  transform: skewX(-9deg) translateX(3rem);
  border-radius: 3rem 0 0 0;
  z-index: -1;
}
.desk-book,
.desk-library,
.desk-note,
.desk-portrait,
.desk-open-book,
.desk-pen,
.desk-ink,
.desk-flowers {
  position: absolute;
  filter: drop-shadow(0 16px 18px rgba(36, 18, 8, .24));
}
.desk-book {
  width: clamp(190px, 19vw, 310px);
  height: clamp(54px, 5.2vw, 78px);
  border-radius: 7px 18px 10px 5px;
  background:
    linear-gradient(90deg, rgba(255, 207, 115, .16) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #4c2814 0 18%, #8a5123 22% 68%, #241209 72% 100%);
  border: 1px solid rgba(21, 10, 5, .28);
}
.desk-book-one { left: 22%; top: 13%; transform: rotate(-8deg); }
.desk-book-two { left: 34%; top: 21%; transform: rotate(-5deg); display: grid; place-items: center; }
.desk-book-two span {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #d5ad5c;
  text-transform: uppercase;
  letter-spacing: .09em;
  line-height: 1.04;
  font-size: clamp(.9rem, 1.5vw, 1.25rem);
  text-align: center;
  transform: rotate(2deg);
}
.desk-library {
  right: 3%;
  top: 0;
  width: clamp(200px, 23vw, 340px);
  height: 158px;
  background:
    repeating-linear-gradient(90deg, #3e2413 0 24px, #6f411f 25px 32px, #1e1108 33px 37px, #91602c 38px 47px),
    linear-gradient(#3e2413, #1d0e07);
  border-radius: 0 0 18px 18px;
  opacity: .95;
}
.desk-note {
  width: clamp(180px, 19vw, 290px);
  height: clamp(90px, 9vw, 138px);
  background:
    repeating-linear-gradient(8deg, transparent 0 18px, rgba(87, 52, 30, .16) 19px 20px),
    linear-gradient(180deg, #f4dfba, #d3ae77);
  border: 1px solid rgba(101, 61, 31, .20);
}
.note-left { left: 18%; top: 48%; transform: rotate(-14deg); }
.note-center { left: 45%; top: 40%; transform: rotate(8deg); }
.desk-portrait {
  left: 50%;
  top: 14%;
  width: clamp(130px, 14vw, 210px);
  aspect-ratio: 1 / 1.18;
  padding: 10px;
  background: #f4e4c8;
  transform: rotate(5deg);
}
.desk-portrait span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.6rem, 5vw, 6.5rem);
  color: rgba(34, 22, 16, .72);
  background:
    radial-gradient(circle at 50% 32%, rgba(43, 33, 25, .56) 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 50% 70%, rgba(42, 31, 24, .42) 0 22%, transparent 22.5%),
    linear-gradient(180deg, #c2ab8a, #8f7557);
  filter: sepia(.65) grayscale(.25);
}
.desk-open-book {
  right: 11%;
  top: 32%;
  width: clamp(240px, 29vw, 440px);
  min-height: clamp(118px, 14vw, 190px);
  padding: clamp(1rem, 2vw, 1.55rem);
  background:
    linear-gradient(90deg, rgba(124, 78, 39, .14) 49%, rgba(79, 45, 22, .18) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(93, 55, 31, .16) 17px 18px),
    linear-gradient(90deg, #f0ddb7 0 48%, #e3c89d 52% 100%);
  color: #563821;
  transform: rotate(5deg);
  border-radius: 5px 28px 28px 5px;
}
.desk-open-book span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8a4529;
}
.desk-open-book p { width: 56%; margin: .5rem 0 0 auto; font-size: .82rem; line-height: 1.35; }
.desk-pen {
  left: 38%;
  top: 61%;
  width: clamp(240px, 31vw, 460px);
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, #180b06 0 22%, #c08a3f 23% 31%, #4b2312 32% 84%, #d3a257 85% 100%);
  transform: rotate(-15deg);
}
.desk-pen::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -7px;
  border-left: 36px solid #d5aa61;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.desk-ink {
  right: 0;
  bottom: 10%;
  width: 88px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 20px 20px 10px 10px;
  background: linear-gradient(180deg, #221812, #080504);
  border: 1px solid rgba(255,255,255,.15);
  color: #d9bc70;
  transform: rotate(2deg);
}
.desk-ink::before {
  content: "";
  position: absolute;
  top: -18px;
  width: 54px;
  height: 24px;
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, #120b07, #2a1d14);
}
.desk-ink span {
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: .9;
  text-align: center;
}
.desk-flowers {
  right: 6%;
  top: 15%;
  width: 160px;
  height: 160px;
  background:
    radial-gradient(circle at 70% 12%, #d7bd7e 0 4px, transparent 5px),
    radial-gradient(circle at 50% 24%, #d7bd7e 0 3px, transparent 4px),
    radial-gradient(circle at 82% 44%, #d7bd7e 0 4px, transparent 5px),
    linear-gradient(65deg, transparent 48%, rgba(89, 64, 35, .8) 49% 50%, transparent 51%),
    linear-gradient(113deg, transparent 48%, rgba(89, 64, 35, .6) 49% 50%, transparent 51%);
  opacity: .8;
  filter: none;
}


/* Uploaded homepage banner */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 26vw, 435px);
  overflow: hidden;
  border-bottom: 1px solid rgba(77, 45, 25, .16);
  background: #ead8bb;
  box-shadow: inset 0 -40px 70px rgba(60, 32, 16, .12);
}
.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(35, 18, 8, .08), transparent 26%, rgba(42, 23, 12, .10) 100%),
    radial-gradient(circle at 80% 0%, rgba(255, 220, 148, .14), transparent 18rem);
}
.home-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-story-cards,
.home-resource-board,
.home-updates {
  width: min(1520px, calc(100% - 3rem));
  margin-inline: auto;
}
.home-story-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  position: relative;
  z-index: 3;
  margin-top: -36px;
}
.home-story-card {
  display: grid;
  grid-template-columns: minmax(145px, 220px) 1fr;
  gap: 1.25rem;
  align-items: center;
  min-height: 152px;
  padding: .9rem 1.05rem;
  border: 1px solid rgba(91, 52, 30, .18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 236, .94), rgba(250, 238, 216, .92));
  box-shadow: 0 14px 24px rgba(67, 36, 19, .15);
  overflow: hidden;
  position: relative;
}
.home-story-card::after {
  content: "";
  position: absolute;
  right: .65rem;
  bottom: .45rem;
  width: 78px;
  height: 78px;
  opacity: .13;
  background:
    linear-gradient(45deg, transparent 48%, #8e5c35 49% 51%, transparent 52%),
    radial-gradient(ellipse at 50% 22%, transparent 0 20%, #8e5c35 21% 22%, transparent 23%);
  transform: rotate(18deg);
}
.home-story-card h2 {
  margin: 0 0 .55rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.home-story-card p { margin: 0; color: #5f4a39; line-height: 1.35; }
.home-story-card a {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  margin-top: .8rem;
  color: #8a3f22;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.home-story-art {
  position: relative;
  min-height: 120px;
  border-radius: 4px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 229, 160, .8), transparent 22%),
    linear-gradient(180deg, #d6b069 0 45%, #7a7640 46% 100%);
  box-shadow: inset 0 0 0 1px rgba(74, 43, 24, .10);
}
.home-story-art .art-land {
  position: absolute;
  left: -14%;
  right: -14%;
  bottom: -34px;
  height: 74px;
  border-radius: 50%;
  background: rgba(55, 72, 44, .42);
}
.home-story-art .art-figure {
  position: absolute;
  left: 36%;
  bottom: 28px;
  width: 18px;
  height: 44px;
  border-radius: 14px 14px 4px 4px;
  background: rgba(70, 36, 24, .56);
  box-shadow: 36px 6px 0 rgba(98, 50, 28, .48), -38px 8px 0 rgba(83, 44, 28, .36);
}
.home-story-art--the-mats::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 10%;
  bottom: 22px;
  height: 18px;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, rgba(237, 202, 134, .8) 0 5px, rgba(115, 78, 39, .65) 6px 7px);
  transform: rotate(-5deg);
}
.home-story-art--the-flowers-of-may {
  background:
    radial-gradient(circle at 72% 34%, rgba(220, 105, 76, .8) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 60%, rgba(229, 169, 84, .8) 0 5px, transparent 6px),
    radial-gradient(circle at 32% 28%, rgba(255, 228, 166, .7), transparent 20%),
    linear-gradient(180deg, #dac071, #687a4e);
}
.home-story-art--the-yellow-shawl {
  background:
    radial-gradient(circle at 70% 40%, rgba(255, 215, 117, .86), transparent 13%),
    linear-gradient(125deg, #d1a24a, #8a4329 54%, #2d180f 100%);
}
.home-story-art--the-yellow-shawl .art-figure { background: #b9862e; box-shadow: 30px 4px 0 rgba(40, 20, 14, .5); }

.home-resource-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1.32fr;
  gap: 1.1rem;
  margin-top: 1.25rem;
}
.home-panel {
  position: relative;
  min-height: 260px;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(91, 52, 30, .18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 250, 238, .9), rgba(246, 230, 204, .88));
  box-shadow: 0 12px 22px rgba(67, 36, 19, .12);
  overflow: hidden;
}
.home-panel::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 150px;
  height: 120px;
  opacity: .14;
  background:
    linear-gradient(180deg, transparent 0 16px, #7e4d2e 17px 19px, transparent 20px 36px),
    linear-gradient(90deg, transparent 0 22px, #7e4d2e 23px 25px, transparent 26px 48px);
  transform: rotate(-11deg);
  pointer-events: none;
}
.home-panel__heading {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin-bottom: .85rem;
}
.home-panel__heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.34rem, 1.7vw, 1.7rem);
  line-height: 1;
}
.home-panel__heading p { margin: .18rem 0 0; color: #654d39; line-height: 1.2; }
.home-panel__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8a3f22;
  color: #fff8e9;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .16);
}
.home-panel__icon--gold { background: #806323; }
.home-panel__icon--dark { background: #2a1810; }
.home-accordion {
  display: grid;
  border: 1px solid rgba(91, 52, 30, .12);
  border-radius: 8px;
  overflow: hidden;
  margin-top: .75rem;
}
.home-accordion__trigger {
  width: 100%;
  min-height: 40px;
  padding: .55rem .75rem;
  border: 0;
  border-bottom: 1px solid rgba(91, 52, 30, .12);
  border-radius: 0;
  background: rgba(255, 255, 255, .22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #3a2418;
  font-size: .88rem;
  font-weight: 900;
  cursor: pointer;
}
.home-accordion__trigger:last-of-type { border-bottom: 0; }
.home-accordion__panel {
  padding: .55rem .75rem;
  color: #6c5744;
  border-bottom: 1px solid rgba(91, 52, 30, .12);
  font-size: .9rem;
  line-height: 1.4;
  background: rgba(255, 252, 245, .55);
}
.learning-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 1rem 0;
}
.learning-chip {
  min-height: 34px;
  border-radius: 999px;
  padding: .38rem .72rem;
  background: rgba(239, 220, 190, .74);
  border: 1px solid rgba(91, 52, 30, .12);
  color: #4d3828;
  font-size: .88rem;
  font-weight: 800;
}
.learning-chip.active {
  background: #3a2418;
  color: #fff4dc;
}
.home-chip-panels {
  min-height: 54px;
  color: #654d39;
}
.home-chip-panels p { margin: 0; line-height: 1.45; }
.library-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .5rem 0 .9rem;
}
.library-filter-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: .24rem .65rem;
  border-radius: 999px;
  background: rgba(235, 216, 184, .78);
  color: #4b3424;
  font-size: .78rem;
  font-weight: 900;
}
.library-filter-row span.active {
  color: #fff6df;
  background: #321d13;
}
.library-shelf-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .9rem;
}
.library-shelf-preview a {
  display: grid;
  gap: .55rem;
  min-height: 135px;
  padding: .8rem;
  border: 1px solid rgba(91, 52, 30, .14);
  border-radius: 8px;
  background: rgba(255, 253, 247, .42);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.library-shelf-preview a:hover {
  transform: translateY(-3px);
  background: rgba(255, 253, 247, .78);
  box-shadow: 0 14px 24px rgba(67, 36, 19, .12);
}
.library-shelf-preview strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1;
}
.library-shelf-preview small { color: #8a3f22; font-weight: 900; }
.mini-cover {
  min-height: 58px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 229, 160, .7), transparent 20%),
    linear-gradient(135deg, #d8b574, #765036);
  box-shadow: inset 0 0 0 1px rgba(68, 37, 21, .14);
}
.mini-cover--the-flowers-of-may { background: linear-gradient(135deg, #d9b76e, #657b52); }
.mini-cover--the-yellow-shawl { background: linear-gradient(135deg, #d4a041, #2d180f); }

.home-updates {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2.1rem;
  padding: .85rem 1rem;
  min-height: 86px;
  border: 1px solid rgba(91, 52, 30, .16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 249, 236, .92), rgba(245, 227, 198, .90)),
    radial-gradient(circle at 96% 50%, rgba(143, 76, 39, .18), transparent 9rem);
  box-shadow: 0 12px 22px rgba(67, 36, 19, .10);
  position: relative;
  overflow: hidden;
}
.home-updates::after {
  content: "";
  position: absolute;
  right: 1.6rem;
  bottom: -.1rem;
  width: 185px;
  height: 70px;
  opacity: .12;
  background:
    linear-gradient(90deg, transparent 0 12%, #7c4b2d 13% 14%, transparent 15% 24%, #7c4b2d 25% 26%, transparent 27% 40%, #7c4b2d 41% 42%, transparent 43%),
    linear-gradient(180deg, transparent 0 34%, #7c4b2d 35% 39%, transparent 40% 100%),
    radial-gradient(ellipse at 50% 18%, transparent 0 40%, #7c4b2d 41% 44%, transparent 45%);
}
.home-updates__label {
  display: flex;
  align-items: center;
  gap: .95rem;
  padding-right: 1.1rem;
  border-right: 1px solid rgba(91, 52, 30, .16);
}
.home-updates__label > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8a3f22;
  color: #fff6df;
  font-size: 1.5rem;
}
.home-updates h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  text-transform: uppercase;
  font-size: 1.45rem;
  line-height: 1;
}
.home-updates__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}
.home-updates__items article {
  display: flex;
  gap: .75rem;
  min-width: 0;
  padding-right: 1rem;
  border-right: 1px solid rgba(91, 52, 30, .13);
}
.home-updates__items article:last-child { border-right: 0; }
.update-icon {
  flex: 0 0 28px;
  color: #8a3f22;
  font-weight: 900;
}
.home-updates__items strong {
  display: block;
  color: #3a2418;
  line-height: 1.05;
}
.home-updates__items p {
  margin: .16rem 0;
  color: #654d39;
  font-size: .92rem;
  line-height: 1.25;
}
.home-updates__link {
  position: relative;
  z-index: 1;
  color: #8a3f22;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1220px) {
  .home-stage__inner {
    grid-template-columns: minmax(320px, .9fr) minmax(430px, 1.1fr);
  }
  .home-story-cards,
  .home-resource-board,
  .home-updates {
    width: min(1180px, calc(100% - 2rem));
  }
  .home-story-card { grid-template-columns: 145px 1fr; }
  .home-resource-board { grid-template-columns: 1fr 1fr; }
  .home-panel--library { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .home-banner { height: clamp(190px, 38vw, 330px); }

  .home-stage { min-height: auto; }
  .home-stage__inner {
    width: min(100% - 2rem, 760px);
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-stage__copy {
    padding: 2.5rem 0 0;
  }
  .desk-collage {
    min-height: 300px;
  }
  .desk-book-one { left: 2%; top: 16%; }
  .desk-book-two { left: 10%; top: 28%; }
  .desk-library { right: 0; top: 4%; }
  .desk-portrait { left: 44%; top: 14%; }
  .desk-open-book { right: 3%; top: 42%; }
  .desk-pen { left: 25%; top: 72%; }
  .home-story-cards {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }
  .home-story-card { grid-template-columns: 220px 1fr; }
  .home-updates {
    grid-template-columns: 1fr;
  }
  .home-updates__label {
    border-right: 0;
    border-bottom: 1px solid rgba(91, 52, 30, .16);
    padding: 0 0 .75rem;
  }
  .home-updates__items { grid-template-columns: 1fr; }
  .home-updates__items article {
    border-right: 0;
    border-bottom: 1px solid rgba(91, 52, 30, .12);
    padding: 0 0 .7rem;
  }
  .home-updates__items article:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  .home-banner { height: 230px; }
  .home-banner img { object-position: 48% center; }

  .site-nav > a,
  .nav-dropdown > button {
    border-radius: 12px;
    padding: .7rem .85rem;
  }
  .site-nav > a::after,
  .nav-dropdown > button::after { display: none; }
  .home-stage__copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.2rem);
  }
  .home-stage__copy p {
    font-size: 1.14rem;
  }
  .home-stage::after { display: none; }
  .desk-collage { min-height: 260px; }
  .desk-library { width: 200px; height: 108px; }
  .desk-book { transform: scale(.72) rotate(-8deg); transform-origin: left top; }
  .desk-book-two { transform: scale(.74) rotate(-5deg); }
  .desk-portrait { left: 46%; width: 126px; }
  .desk-open-book { width: 230px; min-height: 110px; top: 48%; }
  .desk-open-book p { display: none; }
  .desk-note { display: none; }
  .desk-ink { transform: scale(.78); right: 1%; bottom: 8%; }
  .desk-pen { width: 220px; left: 17%; top: 73%; }
  .desk-flowers { display: none; }
  .home-story-cards,
  .home-resource-board,
  .home-updates {
    width: min(100% - 1rem, 760px);
  }
  .home-story-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .home-story-art { min-height: 168px; }
  .home-resource-board { grid-template-columns: 1fr; }
  .home-panel--library { grid-column: auto; }
  .learning-chip-grid,
  .library-shelf-preview { grid-template-columns: 1fr; }
  .literary-button { width: 100%; }
  .home-updates { margin-bottom: 1rem; }
}
@media (max-width: 420px) {
  .home-banner { height: 205px; }

  .home-stage__inner { width: min(100% - 1rem, 420px); }
  .home-stage__copy { padding-top: 1.6rem; }
  .home-stage__copy h1 { letter-spacing: -.06em; }
  .home-ornament { width: 180px; }
  .desk-collage { min-height: 220px; }
  .desk-library { opacity: .45; }
  .desk-book-one { left: 0; top: 20%; }
  .desk-book-two { left: 9%; top: 33%; }
  .desk-portrait { left: 52%; top: 20%; transform: scale(.85) rotate(5deg); transform-origin: left top; }
  .desk-open-book { right: 0; top: 54%; transform: scale(.82) rotate(5deg); transform-origin: right top; }
  .desk-pen { width: 190px; left: 12%; top: 78%; }
  .desk-ink { display: none; }
}

/* Hero text overlay added for the custom uploaded banner */
.home-banner img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250, 238, 216, .94) 0%, rgba(250, 238, 216, .86) 23%, rgba(250, 238, 216, .32) 42%, rgba(250, 238, 216, 0) 62%),
    radial-gradient(circle at 10% 28%, rgba(255, 250, 236, .82), transparent 19rem);
}
.home-banner::after {
  z-index: 2;
}
.home-banner__copy {
  position: absolute;
  z-index: 3;
  top: clamp(.9rem, 2vw, 1.35rem);
  left: clamp(1rem, 1.25vw, 1.7rem);
  width: min(560px, 44vw);
  color: #26180f;
}
.home-banner__copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.15rem, 5.05vw, 5.35rem);
  line-height: .86;
  letter-spacing: -.045em;
  font-weight: 700;
  color: #24150d;
  text-wrap: balance;
}
.home-banner__ornament {
  width: min(310px, 68%);
  height: 18px;
  margin: .45rem 0 .55rem;
  background:
    linear-gradient(90deg, rgba(93, 52, 28, .85), transparent 42%) left center/46% 1px no-repeat,
    linear-gradient(270deg, rgba(93, 52, 28, .85), transparent 42%) right center/46% 1px no-repeat,
    radial-gradient(circle, #a67638 0 3px, transparent 4px) center/18px 18px no-repeat;
}
.home-banner__copy p {
  max-width: 500px;
  margin: 0 0 .8rem;
  color: #2b1a10;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1rem, 1.36vw, 1.36rem);
  line-height: 1.12;
  font-weight: 600;
}
.home-banner__copy em {
  font-style: italic;
  color: #301b10;
}
.home-banner__button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 42px;
  padding: .68rem 1.1rem;
  border-radius: 6px;
  color: #fff7e8;
  background: linear-gradient(135deg, #8b3d21, #642711);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(74, 31, 15, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.home-banner__button:hover,
.home-banner__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(74, 31, 15, .28);
  filter: brightness(1.04);
  outline: none;
}
.home-banner__button-icon {
  font-size: 1rem;
  line-height: 1;
  transform: rotate(90deg);
}

@media (max-width: 980px) {
  .home-banner__copy {
    width: min(520px, 58vw);
  }
  .home-banner__copy h1 {
    font-size: clamp(2.8rem, 7vw, 4.7rem);
  }
  .home-banner__copy p {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
}
@media (max-width: 760px) {
  .home-banner {
    height: 350px;
  }
  .home-banner img {
    object-position: 60% center;
  }
  .home-banner::before {
    background:
      linear-gradient(180deg, rgba(250, 238, 216, .96) 0%, rgba(250, 238, 216, .82) 58%, rgba(250, 238, 216, .25) 100%),
      radial-gradient(circle at 8% 20%, rgba(255, 250, 236, .9), transparent 14rem);
  }
  .home-banner__copy {
    width: min(92vw, 480px);
    top: 1.1rem;
    left: 1rem;
  }
  .home-banner__copy h1 {
    font-size: clamp(3rem, 13vw, 4.35rem);
  }
  .home-banner__ornament {
    width: min(250px, 72%);
  }
  .home-banner__copy p {
    max-width: 340px;
    font-size: 1.05rem;
    line-height: 1.15;
  }
  .desktop-break {
    display: none;
  }
}
@media (max-width: 420px) {
  .home-banner {
    height: 330px;
  }
  .home-banner__copy h1 {
    font-size: clamp(2.75rem, 14vw, 3.45rem);
  }
  .home-banner__copy p {
    max-width: 310px;
    font-size: .98rem;
  }
  .home-banner__button {
    min-height: 40px;
    padding: .62rem .9rem;
    font-size: .74rem;
  }
}

/* Final hero and logo adjustment based on the supplied reference image */
.brand {
  gap: .55rem;
  align-items: center;
}
.brand-mark {
  width: 42px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #d5aa59;
  background: transparent;
  border: 0;
  border-radius: 0;
  flex: 0 0 auto;
}
.brand-feather {
  width: 42px;
  height: 54px;
  display: block;
  overflow: visible;
}
.brand-feather path:first-child {
  fill: currentColor;
  stroke: none;
}
.brand-feather path:not(:first-child) {
  fill: none;
  stroke: #f1c97b;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: .85;
}
.brand-copy {
  display: grid;
  line-height: 1;
  transform: translateY(-1px);
}
.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.42rem, 2.1vw, 1.96rem);
  font-weight: 700;
  line-height: .95;
  color: #d8ad5f;
  letter-spacing: .01em;
}
.brand-rule {
  display: block;
  width: 100%;
  height: 10px;
  margin: -1px 0 -2px;
  background:
    linear-gradient(90deg, transparent 0 2%, rgba(212, 169, 89, .82) 3% 42%, transparent 43% 57%, rgba(212, 169, 89, .82) 58% 97%, transparent 98%) center/100% 1px no-repeat,
    radial-gradient(circle, rgba(212, 169, 89, .95) 0 2.5px, transparent 3px) center/14px 10px no-repeat;
}
.brand small {
  display: block;
  color: #c79547;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .48em;
  line-height: 1;
  text-transform: uppercase;
  padding-left: .08rem;
}
.site-header {
  min-height: 84px;
  padding-top: .62rem;
  padding-bottom: .62rem;
}
.home-banner {
  height: clamp(300px, 26.02vw, 435px);
}
.home-banner img {
  object-position: center center;
}
.home-banner::before {
  background:
    linear-gradient(90deg, rgba(250, 238, 216, .66) 0%, rgba(250, 238, 216, .48) 26%, rgba(250, 238, 216, .12) 44%, rgba(250, 238, 216, 0) 62%),
    radial-gradient(circle at 13% 32%, rgba(255, 250, 236, .45), transparent 17rem);
}
.home-banner__copy {
  top: clamp(2.1rem, 3vw, 3rem);
  left: clamp(1.5rem, 9.1vw, 9.6rem);
  width: min(600px, 41vw);
}
.home-banner__copy h1 {
  font-size: clamp(3.8rem, 5.2vw, 5.55rem);
  line-height: .84;
}
.home-banner__copy p {
  max-width: 520px;
  font-size: clamp(1.06rem, 1.35vw, 1.38rem);
  line-height: 1.16;
}
.home-banner__button {
  margin-top: .35rem;
}
@media (max-width: 980px) {
  .site-header {
    min-height: 76px;
  }
  .brand-mark {
    width: 36px;
    height: 46px;
  }
  .brand-feather {
    width: 36px;
    height: 46px;
  }
  .brand strong {
    font-size: clamp(1.22rem, 3.2vw, 1.55rem);
  }
  .brand small {
    font-size: .58rem;
    letter-spacing: .38em;
  }
  .home-banner {
    height: clamp(290px, 42vw, 360px);
  }
  .home-banner__copy {
    top: 2rem;
    left: clamp(1.25rem, 5vw, 3.5rem);
    width: min(540px, 56vw);
  }
  .home-banner__copy h1 {
    font-size: clamp(3.15rem, 7vw, 4.65rem);
  }
}
@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }
  .brand {
    gap: .42rem;
  }
  .brand-mark {
    width: 30px;
    height: 40px;
  }
  .brand-feather {
    width: 30px;
    height: 40px;
  }
  .brand strong {
    font-size: 1.1rem;
  }
  .brand-rule {
    height: 8px;
  }
  .brand small {
    font-size: .5rem;
    letter-spacing: .3em;
  }
  .home-banner {
    height: 360px;
  }
  .home-banner img {
    object-position: 55% center;
  }
  .home-banner::before {
    background:
      linear-gradient(180deg, rgba(250, 238, 216, .92) 0%, rgba(250, 238, 216, .78) 56%, rgba(250, 238, 216, .18) 100%),
      radial-gradient(circle at 12% 24%, rgba(255, 250, 236, .72), transparent 14rem);
  }
  .home-banner__copy {
    top: 1.45rem;
    left: 1.05rem;
    width: min(92vw, 480px);
  }
  .home-banner__copy h1 {
    font-size: clamp(3rem, 13vw, 4.3rem);
  }
  .home-banner__copy p {
    max-width: 345px;
    font-size: 1.04rem;
  }
}
@media (max-width: 420px) {
  .home-banner {
    height: 340px;
  }
  .brand-copy {
    max-width: 210px;
  }
  .home-banner__copy h1 {
    font-size: clamp(2.65rem, 13.2vw, 3.35rem);
  }
  .home-banner__copy p {
    font-size: .96rem;
  }
}

/* Final homepage layout fix: corrected hero text placement and polished cards */
.home-banner {
  height: clamp(405px, 25vw, 470px) !important;
  overflow: visible;
  isolation: isolate;
}
.home-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(249, 237, 216, .80) 0%, rgba(249, 237, 216, .62) 27%, rgba(249, 237, 216, .18) 47%, rgba(249, 237, 216, 0) 66%),
    radial-gradient(circle at 13% 35%, rgba(255, 250, 238, .58), transparent 18rem);
}
.home-banner::after {
  z-index: 2;
  opacity: .72;
}
.home-banner__copy {
  position: absolute;
  z-index: 4;
  top: clamp(2.1rem, 3.05vw, 3.25rem) !important;
  left: clamp(1.25rem, 8.7vw, 9.6rem) !important;
  width: min(760px, 46vw) !important;
  color: #25170f;
}
.home-banner__copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.55rem, 4.85vw, 5.35rem) !important;
  line-height: .88 !important;
  letter-spacing: -.045em;
  font-weight: 700;
  color: #24150d;
}
.home-banner__copy h1 .title-line {
  display: block;
}
.home-banner__copy h1 .title-line:first-child {
  white-space: nowrap;
}
.home-banner__ornament {
  width: min(320px, 72%);
  height: 20px;
  margin: .72rem 0 .72rem;
}
.home-banner__copy p {
  max-width: 620px !important;
  margin: 0 0 .9rem;
  color: #2b1a10;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.03rem, 1.17vw, 1.24rem) !important;
  line-height: 1.18 !important;
  font-weight: 600;
}
.home-banner__button {
  position: relative;
  z-index: 5;
  margin-top: .15rem !important;
  min-height: 42px;
  padding: .68rem 1.2rem;
  border-radius: 7px;
  background: linear-gradient(180deg, #9b4527 0%, #742e18 100%);
  box-shadow: 0 13px 22px rgba(73, 31, 14, .23);
}
.home-story-cards,
.home-resource-board,
.home-updates {
  width: min(1520px, calc(100% - 3rem));
}
.home-story-cards {
  margin-top: 1.45rem !important;
  gap: 1.25rem;
  z-index: 5;
}
.home-story-card {
  min-height: 174px;
  grid-template-columns: minmax(210px, 255px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(101, 58, 32, .17);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, .97), rgba(249, 236, 214, .94));
  box-shadow: 0 18px 34px rgba(63, 34, 18, .13);
  backdrop-filter: blur(8px);
}
.home-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .42), transparent 42%),
    radial-gradient(circle at 95% 86%, rgba(152, 95, 49, .10), transparent 8rem);
}
.home-story-card::after {
  right: 1rem;
  bottom: .6rem;
  width: 98px;
  height: 98px;
  opacity: .10;
}
.home-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(63, 34, 18, .18);
  border-color: rgba(138, 63, 34, .32);
}
.home-story-art {
  margin: 0;
  min-height: 128px;
  height: 128px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(91, 52, 30, .12);
  background: #e8d0a4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 18px rgba(70, 39, 21, .12);
}
.home-story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: sepia(.14) saturate(.94) contrast(.98);
}
.home-story-card__body {
  position: relative;
  z-index: 2;
}
.home-story-card h2 {
  font-size: clamp(2.08rem, 2.35vw, 2.85rem);
  line-height: .92;
  letter-spacing: -.018em;
  margin-bottom: .48rem;
}
.home-story-card p {
  max-width: 26rem;
  color: #624d3b;
  font-size: .98rem;
  line-height: 1.45;
}
.home-story-card a {
  width: max-content;
  padding-bottom: .12rem;
  border-bottom: 1px solid rgba(138, 63, 34, .34);
  color: #8a3f22;
}
.home-resource-board {
  margin-top: 1.35rem;
  gap: 1.25rem;
}
.home-panel {
  min-height: 292px;
  padding: 1.35rem 1.45rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(101, 58, 32, .16);
  background:
    linear-gradient(135deg, rgba(255, 252, 244, .95), rgba(247, 233, 208, .92));
  box-shadow: 0 18px 34px rgba(63, 34, 18, .12);
}
.home-panel:hover {
  box-shadow: 0 23px 42px rgba(63, 34, 18, .16);
}
.home-panel__heading h2 {
  font-size: clamp(1.48rem, 1.85vw, 1.95rem);
  letter-spacing: .045em;
}
.home-panel__heading p {
  color: #6a523e;
}
.home-panel__icon {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.16), 0 8px 14px rgba(74, 35, 18, .16);
}
.home-accordion {
  border-radius: 12px;
  background: rgba(255, 255, 255, .20);
}
.home-accordion__trigger {
  min-height: 45px;
  padding: .68rem .85rem;
  font-size: .92rem;
}
.home-accordion__panel {
  font-size: .92rem;
}
.learning-chip-grid {
  gap: .72rem;
}
.learning-chip {
  min-height: 38px;
  background: rgba(240, 221, 190, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34);
}
.library-shelf-preview a {
  border-radius: 12px;
  background: rgba(255, 253, 247, .55);
}
.mini-cover {
  min-height: 70px;
  border-radius: 8px;
}
.home-updates {
  border-radius: 16px;
  margin-top: 1.25rem;
}

@media (max-width: 1180px) {
  .home-banner__copy {
    width: min(650px, 52vw) !important;
    left: clamp(1.25rem, 5vw, 4rem) !important;
  }
  .home-banner__copy h1 {
    font-size: clamp(3.1rem, 5.8vw, 4.65rem) !important;
  }
  .home-story-card {
    grid-template-columns: minmax(160px, 210px) 1fr;
  }
}
@media (max-width: 980px) {
  .home-banner {
    height: 420px !important;
  }
  .home-banner img {
    object-position: 57% center;
  }
  .home-banner__copy {
    width: min(560px, 66vw) !important;
    top: 2rem !important;
    left: 1.4rem !important;
  }
  .home-banner__copy h1 {
    font-size: clamp(3rem, 7.4vw, 4.35rem) !important;
  }
  .home-story-cards {
    grid-template-columns: 1fr;
  }
  .home-story-card {
    grid-template-columns: 240px 1fr;
  }
  .home-resource-board {
    grid-template-columns: 1fr 1fr;
  }
  .home-panel--library {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .home-banner {
    height: 445px !important;
    overflow: hidden;
  }
  .home-banner img {
    object-position: 63% center;
  }
  .home-banner::before {
    background:
      linear-gradient(180deg, rgba(250, 238, 216, .94) 0%, rgba(250, 238, 216, .79) 59%, rgba(250, 238, 216, .28) 100%),
      radial-gradient(circle at 12% 20%, rgba(255, 250, 236, .74), transparent 14rem);
  }
  .home-banner__copy {
    width: min(92vw, 520px) !important;
    top: 1.4rem !important;
    left: 1rem !important;
  }
  .home-banner__copy h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.95rem) !important;
    line-height: .91 !important;
  }
  .home-banner__copy h1 .title-line:first-child {
    white-space: normal;
  }
  .home-banner__copy p {
    max-width: 360px !important;
    font-size: 1.02rem !important;
    line-height: 1.16 !important;
  }
  .home-story-cards,
  .home-resource-board,
  .home-updates {
    width: min(100% - 1rem, 760px) !important;
  }
  .home-story-cards {
    margin-top: 1rem !important;
  }
  .home-story-card {
    grid-template-columns: 1fr;
    gap: .95rem;
    padding: .9rem;
  }
  .home-story-art {
    height: 190px;
    min-height: 190px;
  }
  .home-resource-board {
    grid-template-columns: 1fr;
  }
  .home-panel--library {
    grid-column: auto;
  }
  .library-shelf-preview {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .home-banner {
    height: 425px !important;
  }
  .home-banner__copy h1 {
    font-size: clamp(2.38rem, 12.2vw, 3.1rem) !important;
  }
  .home-banner__copy p {
    max-width: 310px !important;
    font-size: .95rem !important;
  }
  .home-banner__button {
    width: auto;
    max-width: 100%;
    min-height: 40px;
    padding: .62rem .86rem;
    font-size: .72rem;
  }
  .home-story-art {
    height: 158px;
    min-height: 158px;
  }
}

/* Story card overlay refinement: aesthetic cards, full-height images, aligned links */
.home-banner {
  height: clamp(430px, 27vw, 500px) !important;
  overflow: visible !important;
}

.home-banner__copy {
  top: clamp(2.25rem, 3vw, 3.35rem) !important;
  left: clamp(1.25rem, 8.2vw, 9.25rem) !important;
  width: min(720px, 45vw) !important;
}

.home-banner__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
}

.home-story-cards {
  position: relative;
  z-index: 8;
  margin-top: clamp(-72px, -4vw, -44px) !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.45rem);
  align-items: stretch;
}

.home-story-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(180px, 40%) minmax(0, 1fr) !important;
  min-height: 178px;
  padding: 0 !important;
  overflow: hidden;
  align-items: stretch !important;
  gap: 0 !important;
  border-radius: 18px !important;
  border: 1px solid rgba(99, 57, 31, .22) !important;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .97), rgba(248, 234, 210, .95)) !important;
  box-shadow:
    0 24px 46px rgba(57, 31, 15, .16),
    inset 0 1px 0 rgba(255, 255, 255, .58) !important;
  backdrop-filter: blur(10px);
}

.home-story-card::before {
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .38), transparent 44%),
    radial-gradient(circle at 92% 85%, rgba(159, 103, 54, .13), transparent 8rem) !important;
}

.home-story-card::after {
  right: 1rem !important;
  bottom: .6rem !important;
  opacity: .09 !important;
}

.home-story-art {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  width: 100%;
  height: 100% !important;
  min-height: 178px !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #d9bc83;
}

.home-story-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(38, 24, 15, .06), rgba(255, 246, 226, .14)),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(37, 20, 10, .10));
}

.home-story-art img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transform: none !important;
  filter: sepia(.12) saturate(.96) contrast(.98);
}

.home-story-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 1.18rem 1.35rem 1.08rem;
}

.home-story-card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2.15rem * 2);
  margin: 0 0 .58rem !important;
  font-size: clamp(2.12rem, 2.25vw, 2.72rem) !important;
  line-height: .94 !important;
  letter-spacing: -.015em;
  color: #24150d;
}

.home-story-card p {
  margin: 0 !important;
  max-width: 27rem !important;
  color: #64503e !important;
  font-size: .98rem !important;
  line-height: 1.42 !important;
}

.home-story-card a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  margin-top: auto !important;
  padding-top: .85rem;
  padding-bottom: .12rem;
  border-bottom: 1px solid rgba(138, 63, 34, .36);
  color: #8a3f22 !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.home-story-card a span {
  transform: translateY(.02rem);
  transition: transform .2s ease;
}

.home-story-card:hover a span {
  transform: translate(.25rem, .02rem);
}

.home-resource-board {
  margin-top: clamp(1.25rem, 2vw, 1.8rem) !important;
}

@media (max-width: 1180px) {
  .home-story-card {
    grid-template-columns: minmax(160px, 38%) minmax(0, 1fr) !important;
  }
  .home-story-card h2 {
    min-height: calc(2rem * 2);
    font-size: clamp(1.95rem, 2.6vw, 2.45rem) !important;
  }
}

@media (max-width: 980px) {
  .home-story-cards {
    grid-template-columns: 1fr;
    margin-top: -48px !important;
  }
  .home-story-card {
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr) !important;
    min-height: 180px;
  }
  .home-story-art {
    min-height: 180px !important;
  }
  .home-story-card h2 {
    min-height: calc(2.05rem * 2);
  }
}

@media (max-width: 760px) {
  .home-banner {
    height: 440px !important;
    overflow: hidden !important;
  }
  .home-banner__button {
    white-space: normal;
  }
  .home-story-cards {
    margin-top: 1rem !important;
    grid-template-columns: 1fr;
  }
  .home-story-card {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }
  .home-story-art {
    height: 190px !important;
    min-height: 190px !important;
  }
  .home-story-card__body {
    padding: 1.05rem 1.1rem 1.05rem;
    min-height: 190px;
  }
  .home-story-card h2 {
    min-height: calc(1.95rem * 2);
    font-size: clamp(1.9rem, 9vw, 2.45rem) !important;
  }
}

@media (max-width: 420px) {
  .home-banner {
    height: 425px !important;
  }
  .home-story-art {
    height: 165px !important;
    min-height: 165px !important;
  }
  .home-story-card__body {
    min-height: 180px;
  }
}

/* Final homepage update: one-line story titles, dynamic announcements, moved resource cards */
.home-story-cards {
  position: relative !important;
  z-index: 12 !important;
  margin-top: clamp(-58px, -3.6vw, -34px) !important;
  margin-bottom: clamp(1.3rem, 2vw, 2rem) !important;
}

.home-story-card {
  min-height: 184px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(135deg, rgba(255, 252, 242, .98), rgba(247, 232, 204, .96)) !important;
  box-shadow:
    0 26px 48px rgba(49, 26, 13, .18),
    0 3px 0 rgba(255, 255, 255, .48) inset !important;
}

.home-story-art {
  min-height: 184px !important;
  height: 100% !important;
}

.home-story-card__body {
  justify-content: stretch !important;
  min-height: 184px !important;
  padding: 1.18rem 1.28rem 1.08rem !important;
}

.home-story-card h2 {
  display: block !important;
  min-height: auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 0 .5rem !important;
  font-size: clamp(1.95rem, 2.1vw, 2.45rem) !important;
  line-height: 1 !important;
}

.home-story-card p {
  min-height: 3.9rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.home-story-card a {
  align-self: flex-start !important;
  margin-top: auto !important;
}

.announcement-board,
.resource-feature-section {
  width: min(1440px, calc(100% - 4rem));
  margin-inline: auto;
}

.announcement-board {
  position: relative;
  margin-top: .35rem;
  padding: clamp(1.1rem, 2vw, 1.55rem);
  border: 1px solid rgba(100, 58, 33, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 18%, rgba(190, 138, 60, .16), transparent 15rem),
    linear-gradient(135deg, rgba(255, 251, 242, .92), rgba(245, 229, 198, .84));
  box-shadow: 0 22px 42px rgba(54, 30, 14, .12);
  overflow: hidden;
}

.announcement-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 52, 29, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 52, 29, .035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.85), transparent 78%);
}

.announcement-board__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(100, 58, 33, .14);
}

.announcement-board__head h2,
.resource-feature-head h2 {
  margin: .1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 3.3vw, 3.55rem);
  line-height: .95;
  color: #29170e;
}

.announcement-board__head > p,
.resource-feature-head > p {
  max-width: 420px;
  margin: 0;
  color: #684e39;
  line-height: 1.45;
}

.announcement-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .95rem;
}

.announcement-card {
  position: relative;
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid rgba(103, 60, 34, .16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(249, 236, 211, .92));
  box-shadow:
    0 12px 24px rgba(54, 30, 14, .08),
    inset 0 1px 0 rgba(255,255,255,.65);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 34px rgba(54, 30, 14, .14);
}

.announcement-card::after {
  content: "";
  position: absolute;
  right: -2.8rem;
  bottom: -3.2rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(145, 91, 44, .13);
  border-radius: 50%;
}

.announcement-card__icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #8d4528;
  color: #fff7e8;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.12);
}

.announcement-card__content small {
  display: block;
  margin-bottom: .45rem;
  color: #8b6b4b;
  font-weight: 800;
  font-size: .74rem;
}

.announcement-card h3 {
  margin: 0 0 .45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 1.6vw, 1.72rem);
  line-height: 1.02;
  color: #2c190f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-card p {
  margin: 0;
  color: #5f4938;
  line-height: 1.44;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-card--empty {
  grid-column: 1 / -1;
}

.resource-feature-section {
  padding: clamp(2rem, 3vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}

.resource-feature-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.15rem;
}

.resource-feature-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -.6rem;
}

.resource-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-feature-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid rgba(101, 58, 31, .18);
  border-radius: 26px;
  background: rgba(255, 250, 239, .9);
  box-shadow: 0 18px 36px rgba(54, 30, 14, .10);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.resource-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px rgba(54, 30, 14, .16);
}

.resource-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), transparent 38%),
    radial-gradient(circle at 92% 16%, rgba(177, 123, 48, .22), transparent 8rem);
}

.resource-feature-card::after {
  content: "";
  position: absolute;
  right: -2.4rem;
  bottom: -2.7rem;
  width: 10rem;
  height: 10rem;
  opacity: .12;
  border: 16px double #8b4a2d;
  border-radius: 28px;
  transform: rotate(-14deg);
}

.resource-feature-card--teaching {
  background: linear-gradient(145deg, rgba(255, 249, 237, .94), rgba(242, 222, 190, .9));
}

.resource-feature-card--learning {
  background: linear-gradient(145deg, rgba(255, 250, 237, .94), rgba(230, 214, 166, .9));
}

.resource-feature-card--library {
  background: linear-gradient(145deg, rgba(255, 249, 238, .94), rgba(223, 200, 173, .92));
}

.resource-feature-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resource-feature-card__icon {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #7f4025;
  color: #fff5df;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.15);
}

.resource-feature-card--learning .resource-feature-card__icon { background: #806723; }
.resource-feature-card--library .resource-feature-card__icon { background: #2f1b13; }

.resource-feature-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 2.1vw, 2.45rem);
  line-height: .98;
  color: #2a170f;
}

.resource-feature-card p {
  margin: .3rem 0 0;
  color: #604938;
  line-height: 1.42;
}

.resource-feature-card ul {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  gap: .55rem;
  padding: 0;
  margin: .25rem 0 1.25rem;
}

.resource-feature-card li {
  padding: .72rem .85rem;
  border: 1px solid rgba(94, 55, 33, .14);
  border-radius: 14px;
  background: rgba(255,255,255,.36);
  color: #4f3a2c;
  font-weight: 700;
}

.resource-feature-card > a,
.story-link-list a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding: .8rem 1rem;
  border-radius: 14px;
  color: #fff8e9;
  background: linear-gradient(135deg, #954827, #643019);
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(70, 35, 18, .16);
}

.resource-feature-card--learning > a { background: linear-gradient(135deg, #92762a, #5c4719); }
.resource-feature-card--library > a { background: linear-gradient(135deg, #3b2418, #20110a); }

.story-link-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .65rem;
  margin-top: auto;
}

.story-link-list a {
  width: 100%;
  margin-top: 0;
  color: #3b2418;
  background: rgba(255,255,255,.44);
  border: 1px solid rgba(86, 49, 28, .14);
  box-shadow: none;
}

.story-link-list a:hover {
  background: rgba(255,255,255,.72);
}

.muted-text {
  color: #6c5642;
  margin-top: -.3rem;
}

@media (max-width: 1180px) {
  .announcement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resource-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resource-feature-card--library {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .home-story-cards {
    margin-top: -38px !important;
  }
  .home-story-card h2 {
    font-size: clamp(1.9rem, 4vw, 2.35rem) !important;
  }
  .announcement-board__head,
  .resource-feature-head {
    display: block;
  }
  .announcement-board__head > p,
  .resource-feature-head > p {
    margin-top: .55rem;
  }
}

@media (max-width: 760px) {
  .home-story-cards {
    margin-top: 1rem !important;
  }
  .home-story-card__body {
    min-height: 175px !important;
  }
  .home-story-card h2 {
    white-space: nowrap !important;
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
  }
  .home-story-card p {
    min-height: auto !important;
  }
  .announcement-board,
  .resource-feature-section {
    width: min(100% - 2rem, 1440px);
  }
  .announcement-grid,
  .resource-feature-grid {
    grid-template-columns: 1fr;
  }
  .resource-feature-card--library {
    grid-column: auto;
  }
  .announcement-card {
    min-height: auto;
  }
  .resource-feature-card {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .home-story-card h2 {
    font-size: clamp(1.7rem, 8vw, 2.05rem) !important;
  }
  .announcement-board,
  .resource-feature-section {
    width: min(100% - 1.25rem, 1440px);
  }
  .announcement-card {
    grid-template-columns: 1fr;
  }
}

/* Final requested polish: readable announcements, uniform resource access cards, book-cover story board */
.announcement-board {
  margin-top: clamp(1.2rem, 2vw, 2rem) !important;
  padding: clamp(1.15rem, 2.3vw, 2rem) !important;
  border-radius: 30px !important;
  border: 1px solid rgba(91, 52, 29, .22) !important;
  background:
    linear-gradient(90deg, rgba(95, 47, 26, .10) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(95, 47, 26, .08) 0 1px, transparent 1px),
    radial-gradient(circle at 92% 6%, rgba(190, 135, 58, .28), transparent 19rem),
    linear-gradient(135deg, rgba(255, 250, 239, .96), rgba(238, 215, 181, .9)) !important;
  background-size: 26px 26px, 26px 26px, auto, auto !important;
  box-shadow:
    0 26px 54px rgba(52, 29, 15, .14),
    inset 0 1px 0 rgba(255, 255, 255, .58) !important;
}

.announcement-board::before {
  background:
    radial-gradient(circle at 2rem 2rem, rgba(137, 77, 39, .13), transparent 2rem),
    linear-gradient(115deg, rgba(255, 255, 255, .38), transparent 44%) !important;
  opacity: 1 !important;
  mask-image: none !important;
}

.announcement-board__head {
  align-items: center !important;
  border-bottom: 0 !important;
  margin-bottom: clamp(1rem, 1.7vw, 1.4rem) !important;
  padding-bottom: 0 !important;
}

.announcement-board__head h2 {
  font-size: clamp(2.55rem, 4vw, 4.2rem) !important;
  letter-spacing: -.035em;
}

.announcement-board__head > p {
  max-width: 520px !important;
  padding: .85rem 1rem;
  border-left: 4px solid rgba(134, 68, 36, .55);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 253, 246, .45);
  color: #553d2d !important;
  font-weight: 700;
}

.announcement-grid--readable {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.5vw, 1.35rem) !important;
}

.announcement-card--readable {
  display: grid !important;
  grid-template-columns: 9.75rem minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: 238px !important;
  padding: 0 !important;
  border: 1px solid rgba(88, 49, 28, .18) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(249, 236, 212, .95)) !important;
  box-shadow:
    0 20px 36px rgba(48, 27, 14, .12),
    inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.announcement-card--readable::after {
  right: 1rem !important;
  bottom: 1rem !important;
  width: 7.5rem !important;
  height: 7.5rem !important;
  border-radius: 18px !important;
  border: 10px double rgba(137, 77, 39, .12) !important;
  opacity: 1 !important;
  transform: rotate(-10deg);
}

.announcement-card__meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: #fff7e7;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 218, 144, .22), transparent 7rem),
    linear-gradient(160deg, #8e4326, #4b2113) !important;
}

.announcement-card__meta::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: -9px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f7ead3;
  box-shadow: 0 4.25rem 0 #f7ead3, 0 8.5rem 0 #f7ead3;
}

.announcement-card__meta span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: .45rem .65rem;
  border: 1px solid rgba(255, 248, 231, .28);
  border-radius: 999px;
  background: rgba(255, 248, 231, .12);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.announcement-card__meta small {
  margin: 0 !important;
  color: rgba(255, 248, 231, .86) !important;
  font-size: .82rem !important;
  line-height: 1.35;
  font-weight: 800;
}

.announcement-card--readable .announcement-card__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.15rem, 1.7vw, 1.55rem) !important;
}

.announcement-card--readable h3 {
  margin: 0 0 .65rem !important;
  font-size: clamp(1.8rem, 2.35vw, 2.5rem) !important;
  line-height: .98 !important;
  color: #28160d !important;
  letter-spacing: -.02em;
  -webkit-line-clamp: 2 !important;
}

.announcement-card--readable p {
  margin: 0 !important;
  color: #4e392a !important;
  font-size: clamp(.98rem, 1vw, 1.08rem) !important;
  line-height: 1.62 !important;
  -webkit-line-clamp: 7 !important;
}

.resource-feature-section {
  padding-top: clamp(2.2rem, 3vw, 3.5rem) !important;
}

.resource-feature-head {
  margin-bottom: 1.35rem !important;
}

.resource-feature-head h2 {
  font-size: clamp(2.35rem, 3.5vw, 3.8rem) !important;
  letter-spacing: -.03em;
}

.resource-feature-grid--uniform {
  align-items: stretch !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 1.7vw, 1.4rem) !important;
}

.resource-feature-grid--uniform .resource-feature-card {
  min-height: 420px !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: 1.25rem !important;
  border-radius: 28px !important;
  border: 1px solid rgba(90, 50, 29, .20) !important;
  box-shadow:
    0 22px 40px rgba(50, 28, 14, .12),
    inset 0 1px 0 rgba(255, 255, 255, .56) !important;
}

.resource-feature-grid--uniform .resource-feature-card::after {
  width: 8rem !important;
  height: 8rem !important;
  opacity: .09 !important;
}

.resource-feature-grid--uniform .resource-feature-card__top {
  min-height: 116px;
  align-items: flex-start !important;
}

.resource-feature-grid--uniform .resource-feature-card__icon {
  width: 3.25rem !important;
  height: 3.25rem !important;
  flex-basis: 3.25rem !important;
  font-size: 1.25rem;
}

.resource-feature-grid--uniform .resource-feature-card h3 {
  min-height: 4.7rem;
  font-size: clamp(1.9rem, 2.1vw, 2.45rem) !important;
  line-height: .98 !important;
}

.resource-feature-grid--uniform .resource-feature-card p {
  color: #5d4434 !important;
  font-weight: 600;
}

.resource-feature-grid--uniform .resource-feature-card ul {
  flex: 1 1 auto;
  align-content: start;
  margin: .3rem 0 1.1rem !important;
}

.resource-feature-grid--uniform .resource-feature-card li {
  min-height: 3.1rem;
  display: flex;
  align-items: center;
  padding: .78rem .88rem !important;
  background: rgba(255, 255, 255, .42) !important;
}

.resource-feature-card__button,
.resource-feature-card > a {
  width: 100% !important;
  min-height: 52px;
  margin-top: auto !important;
  justify-content: space-between !important;
  border-radius: 16px !important;
  text-align: left;
}

.resource-feature-card--library {
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 224, 155, .25), transparent 9rem),
    linear-gradient(145deg, rgba(250, 241, 224, .98), rgba(210, 177, 137, .94)) !important;
}

.resource-feature-card--library .resource-feature-card__top {
  margin-bottom: .9rem !important;
}

.digital-book-cover {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 185px;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  margin: .25rem 0 1.15rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(45, 24, 14, .24);
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 218, 142, .25), transparent 7rem),
    linear-gradient(135deg, #5b2c1c, #21120b 72%);
  box-shadow:
    0 18px 28px rgba(43, 22, 11, .22),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.digital-book-cover::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 236, 194, .28);
  border-radius: 13px;
  pointer-events: none;
}

.digital-book-cover::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  bottom: 1rem;
  width: 3.2rem;
  height: 4.6rem;
  border-radius: 4px 9px 9px 4px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(145deg, #d3aa61, #8d5428);
  box-shadow:
    -1.05rem .55rem 0 rgba(199, 153, 82, .72),
    -2.1rem 1.1rem 0 rgba(123, 66, 35, .7);
  transform: rotate(-6deg);
}

.digital-book-cover__spine {
  background:
    linear-gradient(180deg, rgba(255, 230, 167, .22), transparent 35%),
    linear-gradient(180deg, #7b3b22, #2b160d);
  border-right: 1px solid rgba(255, 240, 207, .16);
}

.digital-book-cover__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.3rem 1.25rem 1.3rem 1rem;
  color: #fff3d6;
}

.digital-book-cover__content span {
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(255, 240, 202, .82);
}

.digital-book-cover__content strong {
  max-width: 12rem;
  margin: .55rem 0 .45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 2.4vw, 2.8rem);
  line-height: .9;
  letter-spacing: -.035em;
}

.digital-book-cover__content em {
  color: rgba(255, 235, 190, .84);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
}

@media (max-width: 1180px) {
  .resource-feature-grid--uniform {
    grid-template-columns: 1fr 1fr !important;
  }
  .resource-feature-grid--uniform .resource-feature-card--library {
    grid-column: 1 / -1 !important;
  }
  .resource-feature-grid--uniform .resource-feature-card--library .resource-feature-card__top {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .announcement-grid--readable {
    grid-template-columns: 1fr !important;
  }
  .announcement-card--readable {
    min-height: 220px !important;
  }
  .resource-feature-head {
    display: block !important;
  }
}

@media (max-width: 760px) {
  .announcement-board {
    width: min(100% - 1.25rem, 1440px) !important;
    border-radius: 22px !important;
  }
  .announcement-board__head > p {
    border-left-width: 3px;
  }
  .announcement-card--readable {
    grid-template-columns: 1fr !important;
  }
  .announcement-card__meta {
    flex-direction: row;
    align-items: center;
    padding: .9rem 1rem;
  }
  .announcement-card__meta::before {
    display: none;
  }
  .announcement-card--readable p {
    -webkit-line-clamp: 8 !important;
  }
  .resource-feature-grid--uniform {
    grid-template-columns: 1fr !important;
  }
  .resource-feature-grid--uniform .resource-feature-card,
  .resource-feature-grid--uniform .resource-feature-card--library {
    min-height: auto !important;
    grid-column: auto !important;
  }
  .resource-feature-grid--uniform .resource-feature-card__top,
  .resource-feature-grid--uniform .resource-feature-card h3 {
    min-height: auto !important;
  }
  .digital-book-cover {
    min-height: 205px;
  }
}

@media (max-width: 420px) {
  .announcement-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .digital-book-cover__content strong {
    font-size: 2.05rem;
  }
}


/* Mobile and announcement detail refinement */
.announcement-card--readable {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

.announcement-card--readable:hover h3 {
  color: #7d3a20 !important;
}

.announcement-card--readable .announcement-card__content::after {
  content: "Read full notice →";
  display: inline-flex;
  margin-top: 1rem;
  color: #874021;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.announcement-detail-hero {
  width: min(1080px, calc(100% - 4rem));
}

.announcement-detail-wrap {
  width: min(1080px, calc(100% - 4rem));
  margin: 0 auto clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

.announcement-detail-card,
.announcement-detail-side {
  position: relative;
  border: 1px solid rgba(88, 49, 28, .18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 6%, rgba(196, 145, 71, .18), transparent 12rem),
    linear-gradient(145deg, rgba(255, 253, 247, .98), rgba(247, 231, 203, .95));
  box-shadow: 0 22px 42px rgba(50, 28, 14, .12);
  overflow: hidden;
}

.announcement-detail-card {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  min-height: 380px;
}

.announcement-detail-card__stamp {
  display: grid;
  place-items: start center;
  padding-top: 1.35rem;
  color: #fff6e6;
  background: linear-gradient(160deg, #8e4326, #4b2113);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.announcement-detail-card__body {
  padding: clamp(1.45rem, 2.4vw, 2.25rem);
  color: #3d2a1d;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.75;
  white-space: normal;
}

.announcement-detail-card .btn {
  grid-column: 2;
  width: max-content;
  margin: 0 clamp(1.45rem, 2.4vw, 2.25rem) clamp(1.45rem, 2.4vw, 2.25rem);
}

.announcement-detail-side {
  padding: 1.25rem;
}

.announcement-detail-side h2 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.announcement-detail-links {
  display: grid;
  gap: .75rem;
}

.announcement-detail-links a {
  display: grid;
  gap: .25rem;
  padding: .9rem;
  border: 1px solid rgba(88, 49, 28, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .38);
  color: #4a2c1c;
}

.announcement-detail-links a:hover {
  background: rgba(255, 255, 255, .7);
}

.announcement-detail-links small {
  font-size: .78rem;
}

@media (min-width: 981px) {
  .home-story-cards {
    margin-top: clamp(-58px, -3.6vw, -34px) !important;
  }
}

@media (max-width: 980px) {
  .home-story-cards {
    margin-top: clamp(1rem, 3vw, 1.5rem) !important;
    width: min(100% - 2rem, 1440px) !important;
    margin-inline: auto !important;
  }
  .home-story-card {
    transform: none !important;
  }
  .announcement-detail-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-story-cards {
    margin-top: 1rem !important;
    width: min(100% - 1.25rem, 1440px) !important;
  }
  .home-story-card {
    border-radius: 22px !important;
  }
  .home-story-card__body {
    min-height: auto !important;
  }
  .home-story-card h2 {
    white-space: nowrap !important;
    min-height: auto !important;
    font-size: clamp(1.75rem, 7.5vw, 2.25rem) !important;
  }
  .home-story-card p {
    min-height: auto !important;
  }
  .announcement-board__head {
    display: grid !important;
    gap: .85rem !important;
  }
  .announcement-board__head > p {
    max-width: none !important;
    font-size: .95rem;
  }
  .announcement-detail-hero,
  .announcement-detail-wrap {
    width: min(100% - 1.25rem, 1080px);
  }
  .announcement-detail-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .announcement-detail-card__stamp {
    display: block;
    padding: .8rem 1rem;
    writing-mode: initial;
  }
  .announcement-detail-card .btn {
    grid-column: 1;
  }
}

/* Final spacing fix: compact resource heading and aligned notice actions */
.resource-feature-head {
  display: block !important;
  max-width: 820px !important;
  margin-bottom: clamp(.85rem, 1.4vw, 1.15rem) !important;
}

.resource-feature-head .eyebrow {
  display: block !important;
  margin: 0 0 .18rem !important;
  grid-column: auto !important;
}

.resource-feature-head h2 {
  margin: 0 !important;
  line-height: .98 !important;
}

.resource-feature-head > p {
  max-width: 680px !important;
  margin: .32rem 0 0 !important;
  line-height: 1.42 !important;
}

.announcement-grid,
.announcement-grid--readable {
  align-items: stretch !important;
}

.announcement-card--readable {
  height: 100% !important;
}

.announcement-card--readable .announcement-card__content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
}

.announcement-card--readable .announcement-card__content::after {
  margin-top: auto !important;
  padding-top: 1rem !important;
  align-self: flex-start !important;
}

@media (max-width: 760px) {
  .resource-feature-head {
    max-width: none !important;
    margin-bottom: 1rem !important;
  }
  .resource-feature-head .eyebrow {
    margin-bottom: .12rem !important;
  }
  .resource-feature-head > p {
    margin-top: .25rem !important;
  }
}

/* Mobile fix: story cards must not overlap the hero on phones and tablets. */
@media (max-width: 980px) {
  .home-story-cards,
  section.home-story-cards {
    position: relative !important;
    z-index: 1 !important;
    margin-top: clamp(1.25rem, 4vw, 2rem) !important;
    transform: none !important;
  }

  .home-story-card,
  section.home-story-cards .home-story-card {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .home-story-cards,
  section.home-story-cards {
    margin-top: 1.25rem !important;
  }
}

/* Final mobile correction: no story-card overlay on mobile, visible hero button, compact resource descriptions */
.home-story-card h2 {
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  min-height: auto !important;
}

@media (max-width: 980px) {
  .home-banner {
    margin-bottom: 0 !important;
  }
  .home-story-cards {
    margin-top: clamp(1.35rem, 4vw, 2rem) !important;
    padding-top: 0 !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
  }
  .home-story-card {
    transform: none !important;
    top: auto !important;
  }
}

@media (max-width: 760px) {
  .home-banner {
    height: 470px !important;
    overflow: hidden !important;
  }
  .home-banner__button {
    white-space: nowrap !important;
    width: max-content !important;
    max-width: calc(100vw - 2rem) !important;
    min-height: 42px !important;
    padding: .68rem 1rem !important;
    font-size: .76rem !important;
    line-height: 1 !important;
  }
  .home-story-cards {
    margin-top: 1.5rem !important;
  }
  .home-story-card h2 {
    min-height: auto !important;
    line-height: 1 !important;
  }
}

@media (max-width: 420px) {
  .home-banner {
    height: 455px !important;
  }
  .home-banner__button {
    font-size: .7rem !important;
    gap: .48rem !important;
    padding-inline: .8rem !important;
  }
}

.resource-feature-grid--uniform .resource-feature-card__top {
  min-height: auto !important;
  margin-bottom: .75rem !important;
  gap: .82rem !important;
}

.resource-feature-grid--uniform .resource-feature-card h3 {
  min-height: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.resource-feature-grid--uniform .resource-feature-card p {
  margin: .16rem 0 0 !important;
  line-height: 1.28 !important;
}

.resource-feature-grid--uniform .resource-feature-card ul {
  margin-top: .55rem !important;
}

.resource-feature-card__button,
.resource-feature-card > a {
  margin-top: auto !important;
}

/* Digital Story Library page: book-cover grid */
.library-hero {
  text-align: center;
  padding-top: clamp(3rem, 5vw, 5rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.library-hero h1 {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.library-hero p:last-child {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.story-board-library {
  width: min(100% - 4rem, 1240px);
  margin: 0 auto clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.story-board-book {
  text-align: center;
}

.story-board-book__cover {
  position: relative;
  display: block;
  width: min(100%, 250px);
  aspect-ratio: 2 / 3;
  margin: 0 auto .95rem;
  border-radius: 10px 20px 20px 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #5b2c1c, #21120b);
  border: 1px solid rgba(45, 24, 14, .32);
  box-shadow:
    0 24px 38px rgba(44, 23, 11, .22),
    10px 10px 0 rgba(87, 47, 25, .08),
    inset 10px 0 0 rgba(30, 16, 9, .24);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}

.story-board-book__cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.15rem;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 45%, transparent),
    linear-gradient(180deg, rgba(255, 231, 172, .22), transparent 40%);
  pointer-events: none;
}

.story-board-book__cover::after {
  content: "";
  position: absolute;
  inset: .75rem;
  z-index: 3;
  border: 1px solid rgba(255, 242, 208, .38);
  border-radius: 8px 15px 15px 8px;
  pointer-events: none;
}

.story-board-book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(.2) contrast(.96) saturate(.9);
}

.story-board-book__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, rgba(255,255,255,.34), transparent 32%, transparent 68%, rgba(0,0,0,.18));
  pointer-events: none;
}

.story-board-book:hover .story-board-book__cover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 48px rgba(44, 23, 11, .28),
    12px 12px 0 rgba(87, 47, 25, .08),
    inset 10px 0 0 rgba(30, 16, 9, .24);
}

.story-board-book h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1;
  color: #2a170f;
}

.story-board-book h2 a {
  color: inherit;
}

.story-board-book h2 a:hover {
  color: #874021;
}

@media (max-width: 760px) {
  .story-board-library {
    width: min(100% - 2rem, 1240px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .story-board-book__cover {
    width: min(100%, 210px);
    border-radius: 8px 16px 16px 8px;
  }

  .story-board-book h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
}

@media (max-width: 460px) {
  .story-board-library {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Unique About page design
------------------------------------------------------------------- */
.about-author-hero,
.about-scroll-section,
.about-timeline-section,
.about-legacy-panel,
.about-stories-section {
  width: min(100% - 4rem, 1240px);
  margin-inline: auto;
}

.about-author-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(2.8rem, 5vw, 4rem);
}

.about-author-hero::before {
  content: "";
  position: absolute;
  inset: 1rem -2rem auto auto;
  width: min(62vw, 760px);
  height: 380px;
  z-index: -1;
  opacity: .55;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 231, 170, .5), transparent 11rem),
    linear-gradient(115deg, rgba(122, 66, 33, .10), transparent 42%),
    url("../images/arcellana-home-banner.png") center right / cover no-repeat;
  border-radius: 36px;
  filter: sepia(.25) saturate(.85);
  box-shadow: var(--shadow-soft);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 28%, #000 100%);
}

.about-kicker {
  margin: 0 0 .4rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 900;
}

.about-author-hero h1,
.about-section-heading h2,
.about-legacy-panel h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #24150e;
  line-height: .94;
  letter-spacing: -.035em;
}

.about-author-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 7.8rem);
}

.about-life {
  display: inline-flex;
  margin: 1.1rem 0 .3rem;
  padding: .38rem .72rem;
  border: 1px solid rgba(122, 66, 33, .2);
  border-radius: 999px;
  color: #6f3a21;
  background: rgba(255, 249, 236, .78);
  font-weight: 900;
}

.about-lead {
  max-width: 680px;
  margin: .75rem 0 0;
  color: #4d3829;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.6;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.about-author-hero__card {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(85, 47, 25, .2);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 250, 239, .94), rgba(244, 223, 190, .86)),
    radial-gradient(circle at top, rgba(201, 150, 76, .18), transparent 15rem);
  box-shadow: var(--shadow);
}

.about-author-hero__card::before {
  content: "";
  position: absolute;
  inset: .8rem;
  border: 1px solid rgba(152, 101, 45, .22);
  border-radius: 28px;
  pointer-events: none;
}

.about-portrait-frame {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 1.25rem;
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(33, 20, 13, .08), rgba(33, 20, 13, .44)),
    radial-gradient(circle at 50% 28%, #e2c99e 0 17%, transparent 18%),
    linear-gradient(160deg, #f0dfbf 0%, #be8a55 58%, #402215 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 246, 224, .48);
}

.about-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 1.4rem;
  border: 1px solid rgba(255, 246, 224, .42);
  border-radius: 22px;
}

.about-portrait-seal {
  position: absolute;
  inset: 2rem 2rem auto auto;
  width: 84px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(44, 24, 14, .78);
  color: #e8c17a;
  border: 1px solid rgba(232, 193, 122, .4);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  z-index: 2;
}

.about-portrait-caption {
  position: relative;
  z-index: 2;
  color: #fff7e8;
}

.about-portrait-caption strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.about-portrait-caption span {
  display: block;
  max-width: 260px;
  margin-top: .35rem;
  color: rgba(255, 247, 232, .82);
  line-height: 1.35;
}

.about-fast-facts {
  position: relative;
  z-index: 2;
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.about-fast-facts > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: .8rem;
  align-items: center;
  padding: .85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(85, 47, 25, .14);
}

.about-fast-facts strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #7e3d22;
  font-size: 2rem;
  line-height: 1;
}

.about-fast-facts span {
  color: #5d4938;
  font-weight: 700;
  line-height: 1.35;
}

.about-scroll-section,
.about-timeline-section,
.about-stories-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.about-section-heading {
  max-width: 780px;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.about-section-heading.compact-heading {
  margin-bottom: 1.2rem;
}

.about-section-heading h2,
.about-legacy-panel h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.about-section-heading p:last-child,
.about-legacy-panel p {
  color: #5c4838;
  line-height: 1.65;
}

.about-biography-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
  align-items: stretch;
}

.about-paper-card {
  position: relative;
  min-height: 240px;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 250, 239, .92), rgba(249, 232, 204, .86)),
    radial-gradient(circle at 95% 15%, rgba(177, 118, 62, .14), transparent 12rem);
  border: 1px solid rgba(85, 47, 25, .15);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.about-paper-card::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  width: 150px;
  height: 150px;
  opacity: .12;
  border: 12px double #7e3d22;
  border-radius: 35px;
  transform: rotate(-14deg);
}

.about-main-bio {
  grid-row: span 2;
}

.about-card-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-bottom: .8rem;
  background: #7e3d22;
  color: #fff7e8;
  font-weight: 900;
}

.about-paper-card h3,
.about-timeline h3,
.about-story-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #24150e;
  line-height: 1;
}

.about-paper-card h3 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.about-paper-card p {
  color: #5e4937;
}

.about-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-timeline article {
  position: relative;
  padding: 1.2rem;
  min-height: 210px;
  border-radius: 24px;
  border: 1px solid rgba(85, 47, 25, .16);
  background: rgba(255, 249, 236, .78);
  box-shadow: var(--shadow-soft);
}

.about-timeline article::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: 1.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a8742e;
  box-shadow: 0 0 0 7px rgba(168, 116, 46, .14);
}

.about-timeline time {
  display: block;
  margin-bottom: .75rem;
  color: #884528;
  font-weight: 900;
  letter-spacing: .06em;
}

.about-timeline h3 {
  margin: 0 2rem .55rem 0;
  font-size: 1.85rem;
}

.about-timeline p {
  margin: 0;
  color: #5e4937;
}

.about-legacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 34px;
  background:
    linear-gradient(120deg, rgba(52, 29, 17, .94), rgba(112, 60, 31, .88)),
    radial-gradient(circle at 80% 30%, rgba(231, 187, 112, .3), transparent 18rem);
  color: #fff7e8;
  box-shadow: var(--shadow);
}

.about-legacy-panel .about-kicker,
.about-legacy-panel h2,
.about-legacy-panel p {
  color: #fff7e8;
}

.about-legacy-panel p {
  color: rgba(255, 247, 232, .82);
}

.about-legacy-stamp {
  padding: 1.25rem;
  border: 1px solid rgba(255, 238, 202, .24);
  border-radius: 24px;
  background: rgba(255, 248, 232, .1);
}

.about-legacy-stamp strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: #f2cc83;
}

.about-legacy-stamp span {
  display: block;
  margin: .35rem 0 .9rem;
  color: rgba(255, 247, 232, .72);
  font-weight: 900;
}

.about-story-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-story-card {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 250, 239, .88);
  border: 1px solid rgba(85, 47, 25, .16);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.about-story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.about-story-card__spine {
  background:
    linear-gradient(180deg, #2f1a10, #7b3c22 45%, #2b170e),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 231, 172, .2) 19px 20px);
}

.about-story-card__body {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 1.25rem;
}

.about-story-label {
  color: #884528;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .68rem;
  font-weight: 900;
}

.about-story-card h3 {
  margin: .35rem 0 .75rem;
  font-size: clamp(2rem, 3vw, 2.55rem);
}

.about-story-card p {
  color: #5e4937;
}

.about-story-card details {
  margin: .5rem 0 1rem;
  color: #5e4937;
}

.about-story-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.about-story-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .62rem .82rem;
  border-radius: 999px;
  background: #f0ddbf;
  border: 1px solid rgba(85, 47, 25, .18);
  color: #71351f;
  font-weight: 900;
}

.about-story-actions a:first-child {
  background: #7e3d22;
  color: #fff7e8;
}

@media (max-width: 980px) {
  .about-author-hero,
  .about-biography-grid,
  .about-legacy-panel,
  .about-story-archive {
    grid-template-columns: 1fr;
  }

  .about-author-hero::before {
    width: 100%;
    inset: 0 0 auto 0;
    height: 380px;
    opacity: .25;
    mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  }

  .about-main-bio {
    grid-row: auto;
  }

  .about-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-author-hero__card {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .about-author-hero,
  .about-scroll-section,
  .about-timeline-section,
  .about-legacy-panel,
  .about-stories-section {
    width: min(100% - 1.25rem, 1240px);
  }

  .about-author-hero {
    padding-top: 2.4rem;
  }

  .about-author-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .about-hero-actions {
    align-items: stretch;
  }

  .about-hero-actions .btn {
    width: 100%;
  }

  .about-portrait-frame {
    min-height: 300px;
  }

  .about-fast-facts > div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .about-timeline {
    grid-template-columns: 1fr;
  }

  .about-story-card__body {
    min-height: auto;
  }
}

/* ------------------------------------------------------------------
   About page spacing refinement
   Reduces large empty spaces inside article cards while keeping the layout elegant.
------------------------------------------------------------------- */
.about-scroll-section,
.about-timeline-section,
.about-stories-section {
  padding: clamp(1.8rem, 4vw, 3rem) 0;
}

.about-section-heading {
  margin-bottom: clamp(.85rem, 2vw, 1.25rem);
}

.about-section-heading p:last-child {
  margin-top: .45rem;
  margin-bottom: 0;
}

.about-biography-grid,
.about-timeline,
.about-story-archive {
  gap: .85rem;
}

.about-paper-card {
  min-height: auto;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.about-card-number {
  width: 38px;
  height: 38px;
  margin-bottom: .55rem;
  font-size: .9rem;
}

.about-paper-card h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.about-paper-card p {
  margin: .45rem 0 0;
  line-height: 1.5;
}

.about-timeline article {
  min-height: auto;
  padding: 1rem;
}

.about-timeline time {
  margin-bottom: .45rem;
}

.about-timeline h3 {
  margin: 0 1.7rem .35rem 0;
  font-size: 1.55rem;
  line-height: 1.05;
}

.about-timeline p {
  line-height: 1.45;
}

.about-legacy-panel {
  gap: 1rem;
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.about-legacy-panel p {
  margin: .55rem 0 0;
  line-height: 1.5;
}

.about-legacy-stamp {
  padding: 1rem;
}

.about-legacy-stamp span {
  margin-bottom: .55rem;
}

.about-story-card__body {
  min-height: 300px;
  padding: 1rem;
}

.about-story-card h3 {
  margin: .25rem 0 .45rem;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
}

.about-story-card p {
  margin: .35rem 0 0;
  line-height: 1.45;
}

.about-story-card details {
  margin: .45rem 0 .75rem;
}

@media (max-width: 640px) {
  .about-scroll-section,
  .about-timeline-section,
  .about-stories-section {
    padding: 1.35rem 0;
  }

  .about-paper-card,
  .about-timeline article,
  .about-story-card__body,
  .about-legacy-stamp {
    padding: .9rem;
  }

  .about-section-heading {
    margin-bottom: .75rem;
  }
}

/* ------------------------------------------------------------------
   About page Article 01 expansion with profile image
------------------------------------------------------------------- */
.about-main-bio {
  padding: clamp(1rem, 2vw, 1.3rem);
}

.about-main-bio__layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
}

.about-profile-figure {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #e8d2ab;
  border: 1px solid rgba(85, 47, 25, .2);
  box-shadow: 0 18px 32px rgba(64, 35, 19, .16);
}

.about-profile-figure::before {
  content: "";
  position: absolute;
  inset: .55rem;
  z-index: 2;
  border: 1px solid rgba(255, 246, 224, .42);
  border-radius: 18px;
  pointer-events: none;
}

.about-profile-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 13 / 14;
  object-fit: cover;
  filter: sepia(.18) saturate(.86) contrast(1.04);
}

.about-profile-figure figcaption {
  padding: .8rem .9rem .9rem;
  background:
    linear-gradient(180deg, rgba(45, 24, 14, .96), rgba(91, 49, 25, .94));
  color: #fff7e8;
}

.about-profile-figure figcaption strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.about-profile-figure figcaption span {
  display: block;
  margin-top: .25rem;
  color: rgba(255, 247, 232, .78);
  font-size: .88rem;
  line-height: 1.35;
}

.about-main-bio__text h3 {
  margin-top: .05rem;
}

.about-main-bio__text p {
  margin-top: .55rem;
}

@media (max-width: 760px) {
  .about-main-bio__layout {
    grid-template-columns: 1fr;
  }

  .about-profile-figure {
    max-width: 360px;
  }
}


/* Dedicated announcements page */
.announcement-board__head--with-link {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px) !important;
}

.announcement-board__note {
  display: grid;
  gap: .7rem;
}

.announcement-board__note p {
  max-width: 520px !important;
  margin: 0 !important;
  padding: .85rem 1rem;
  border-left: 4px solid rgba(134, 68, 36, .55);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 253, 246, .45);
  color: #553d2d !important;
  font-weight: 700;
}

.announcement-board__note a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem .85rem;
  border: 1px solid rgba(88, 49, 28, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #6f331c;
  font-weight: 900;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.announcement-board__note a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .85);
}

.announcements-page-hero,
.announcements-featured-wrap,
.announcements-archive {
  width: min(1200px, calc(100% - 4rem));
  margin-inline: auto;
}

.announcements-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
  margin-top: clamp(1.4rem, 2.6vw, 2.4rem);
  padding: clamp(1.35rem, 3vw, 2.6rem);
  border: 1px solid rgba(92, 52, 30, .18);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(191, 133, 56, .32), transparent 18rem),
    linear-gradient(135deg, rgba(255, 252, 244, .96), rgba(238, 216, 184, .92));
  box-shadow: 0 26px 56px rgba(49, 28, 15, .13);
}

.announcements-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(100, 56, 34, .08) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(100, 56, 34, .07) 0 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.announcements-page-hero__copy,
.announcements-page-hero__seal {
  position: relative;
  z-index: 1;
}

.announcements-page-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #25160e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: .82;
  letter-spacing: -.045em;
}

.announcements-page-hero__copy > p:last-child {
  max-width: 670px;
  margin: 1rem 0 0;
  color: #4b3528;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  font-weight: 600;
}

.announcements-page-hero__seal {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 240px;
  padding: 1.3rem;
  border: 1px solid rgba(81, 43, 24, .18);
  border-radius: 28px;
  color: #fff5df;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 222, 151, .25), transparent 9rem),
    linear-gradient(160deg, #8b4125, #32180f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 30px rgba(48, 24, 12, .16);
  text-align: center;
}

.announcements-page-hero__seal span {
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
}

.announcements-page-hero__seal strong {
  margin: .55rem 0 .15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 5rem;
  line-height: .9;
}

.announcements-page-hero__seal p {
  margin: 0;
  color: rgba(255, 242, 216, .83);
  font-weight: 700;
}

.announcements-featured-wrap {
  margin-top: clamp(1rem, 2vw, 1.7rem);
}

.announcements-featured-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(92, 52, 30, .20);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 253, 247, .99), rgba(246, 231, 204, .96));
  box-shadow: 0 24px 48px rgba(48, 27, 14, .13);
}

.announcements-featured-card__label {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(160deg, #8e4326, #4b2113);
  color: #fff4dd;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.announcements-featured-card > div:last-child {
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.announcements-featured-card time {
  color: #8a4425;
  font-size: .85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.announcements-featured-card h2 {
  max-width: 840px;
  margin: .35rem 0 .7rem;
  color: #29160d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: .9;
  letter-spacing: -.03em;
}

.announcements-featured-card p {
  max-width: 860px;
  margin: 0 0 1rem;
  color: #483326;
  font-size: 1.05rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcements-featured-card a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #7f3b20;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 900;
}

.announcements-archive {
  margin-top: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.announcements-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.7vw, 1.4rem);
  align-items: stretch;
}

.announcements-archive-card {
  min-height: 230px !important;
}

.announcements-empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px solid rgba(88, 49, 28, .18);
  border-radius: 24px;
  background: rgba(255, 250, 240, .88);
  box-shadow: 0 18px 34px rgba(48, 27, 14, .10);
}

.announcements-empty-state h3 {
  margin: 0 0 .35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
}

.announcements-empty-state p {
  margin: 0;
  color: #5a4334;
}

@media (max-width: 920px) {
  .announcement-board__head--with-link,
  .announcements-page-hero,
  .announcements-featured-card,
  .announcements-archive-grid {
    grid-template-columns: 1fr !important;
  }

  .announcements-page-hero__seal {
    min-height: 170px;
  }

  .announcements-featured-card__label {
    display: block;
    writing-mode: initial;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .announcements-page-hero,
  .announcements-featured-wrap,
  .announcements-archive {
    width: min(100% - 1.25rem, 1200px);
  }

  .announcements-page-hero {
    border-radius: 24px;
    padding: 1.15rem;
  }

  .announcements-page-hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }

  .announcements-featured-card,
  .announcements-archive-card {
    border-radius: 22px !important;
  }

  .announcement-board__note p {
    max-width: none !important;
  }
}

/* Announcement pages: shorter cards and newspaper-style detail page */
.announcements-page-hero {
  padding: clamp(1.15rem, 2.3vw, 2rem) !important;
}

.announcements-page-hero h1 {
  font-size: clamp(3.1rem, 6.7vw, 6.2rem) !important;
}

.announcements-page-hero__copy > p:last-child {
  max-width: 520px !important;
  margin-top: .65rem !important;
  line-height: 1.45 !important;
}

.announcements-page-hero__seal {
  min-height: 190px !important;
}

.announcements-page-hero__seal strong {
  font-size: clamp(3.6rem, 5vw, 4.4rem) !important;
}

.announcements-featured-card h2 {
  font-size: clamp(2rem, 3.4vw, 3.45rem) !important;
  line-height: .95 !important;
}

.announcements-featured-card p,
.announcements-archive-card p,
.announcement-card--readable p {
  -webkit-line-clamp: 3 !important;
  line-height: 1.5 !important;
}

.announcements-archive-card {
  min-height: 205px !important;
}

.announcements-archive .compact-heading {
  margin-bottom: 1rem !important;
}

.announcements-archive .compact-heading p:last-child {
  max-width: 440px !important;
}

.announcement-card--readable .announcement-card__content {
  display: flex !important;
  flex-direction: column !important;
}

.announcement-card--readable .announcement-card__content::after {
  margin-top: auto !important;
  padding-top: .9rem !important;
  content: "Read notice →" !important;
}

.newspaper-announcement {
  width: min(1180px, calc(100% - 4rem));
  margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(3rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.newspaper-sheet {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(70, 43, 25, .28);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(72, 44, 26, .05) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(72, 44, 26, .045) 0 1px, transparent 1px),
    radial-gradient(circle at 8% 8%, rgba(184, 132, 64, .16), transparent 12rem),
    linear-gradient(180deg, rgba(255, 253, 244, .98), rgba(240, 224, 194, .95));
  background-size: 24px 24px, 24px 24px, auto, auto;
  box-shadow:
    0 28px 60px rgba(45, 25, 13, .16),
    inset 0 1px 0 rgba(255, 255, 255, .78);
  overflow: hidden;
}

.newspaper-sheet::before,
.newspaper-sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.newspaper-sheet::before {
  inset: .75rem;
  border: 1px solid rgba(82, 49, 28, .18);
}

.newspaper-sheet::after {
  right: -4rem;
  bottom: -4.6rem;
  width: 13rem;
  height: 13rem;
  border: 18px double rgba(111, 65, 35, .10);
  border-radius: 22px;
  transform: rotate(-12deg);
}

.newspaper-masthead {
  position: relative;
  z-index: 1;
  text-align: center;
}

.newspaper-kicker {
  margin: 0 0 .45rem;
  color: #7b3b20;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.newspaper-masthead h1 {
  max-width: 900px;
  margin: 0 auto .85rem;
  color: #24150d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 6.2vw, 6.3rem);
  line-height: .86;
  letter-spacing: -.045em;
}

.newspaper-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  color: #5c4332;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.newspaper-meta span {
  padding: .42rem .7rem;
  border: 1px solid rgba(88, 49, 28, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
}

.newspaper-rule {
  position: relative;
  z-index: 1;
  height: 7px;
  margin: clamp(1rem, 2vw, 1.4rem) 0;
  border-top: 3px double rgba(64, 37, 21, .42);
  border-bottom: 1px solid rgba(64, 37, 21, .32);
}

.newspaper-copy {
  position: relative;
  z-index: 1;
  column-count: 2;
  column-gap: clamp(1.5rem, 3vw, 2.4rem);
  column-rule: 1px solid rgba(76, 45, 27, .18);
  color: #352418;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.78;
}

.newspaper-copy p {
  break-inside: avoid;
  margin: 0 0 1rem;
}

.newspaper-copy p:first-child::first-letter {
  float: left;
  padding: .1rem .42rem .05rem 0;
  color: #7d3a20;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.9rem;
  line-height: .74;
  font-weight: 700;
}

.newspaper-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(1.3rem, 2.4vw, 2rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(76, 45, 27, .22);
  color: #6a4d3a;
  font-size: .9rem;
  font-weight: 800;
}

.newspaper-back {
  color: #7c391f;
  font-weight: 900;
}

.newspaper-sidebar {
  position: sticky;
  top: 6.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(83, 48, 27, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(194, 141, 66, .18), transparent 9rem),
    linear-gradient(145deg, rgba(255, 252, 243, .96), rgba(241, 222, 190, .94));
  box-shadow: 0 20px 40px rgba(45, 25, 13, .13);
}

.newspaper-sidebar__label {
  margin: 0 0 .85rem;
  color: #2b190f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: .95;
}

.newspaper-clips {
  display: grid;
  gap: .75rem;
}

.newspaper-clips a {
  position: relative;
  display: grid;
  gap: .25rem;
  padding: .9rem;
  border: 1px solid rgba(85, 48, 28, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .42);
  color: #432819;
}

.newspaper-clips a::before {
  content: "";
  position: absolute;
  left: .85rem;
  top: -.28rem;
  width: 2.8rem;
  height: .48rem;
  border-radius: 999px;
  background: rgba(128, 83, 40, .24);
  transform: rotate(-3deg);
}

.newspaper-clips a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .68);
}

.newspaper-clips strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1;
}

.newspaper-clips small {
  color: #765742;
  font-size: .78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .newspaper-announcement {
    width: min(100% - 2rem, 1180px);
    grid-template-columns: 1fr;
  }

  .newspaper-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 680px) {
  .newspaper-announcement {
    width: min(100% - 1.25rem, 1180px);
  }

  .newspaper-sheet {
    padding: 1rem;
    border-radius: 10px;
  }

  .newspaper-masthead h1 {
    font-size: clamp(2.35rem, 14vw, 4.1rem);
  }

  .newspaper-copy {
    column-count: 1;
    font-size: 1rem;
    line-height: 1.7;
  }

  .newspaper-copy p:first-child::first-letter {
    font-size: 3.8rem;
  }
}

/* Admin dashboard redesign */
.admin-shell {
  width: min(1420px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.admin-sidebar-v2 {
  position: sticky;
  top: 5.8rem;
  min-height: calc(100vh - 7.5rem);
  padding: 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(217, 175, 100, .2), transparent 8rem),
    linear-gradient(180deg, #2b1a11 0%, #1d110b 100%);
  color: #fff1d0;
  border: 1px solid rgba(220, 181, 111, .22);
  box-shadow: 0 24px 54px rgba(32, 17, 9, .22);
  overflow: hidden;
}

.admin-sidebar-v2::after {
  content: "";
  position: absolute;
  inset: auto -45px -45px auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(220, 181, 111, .18);
  border-radius: 50%;
}

.admin-brand-v2 {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: .75rem;
  align-items: center;
  padding: .4rem .45rem 1rem;
  border-bottom: 1px solid rgba(255, 246, 226, .12);
  margin-bottom: .8rem;
}

.admin-brand-v2 span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e0b768;
  background: rgba(224, 183, 104, .13);
  border: 1px solid rgba(224, 183, 104, .28);
}

.admin-brand-v2 strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
  color: #e6c17b;
}

.admin-brand-v2 small {
  color: #cdbda1;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .67rem;
}

.admin-menu-v2 {
  display: grid;
  gap: .45rem;
}

.admin-menu-v2 a,
.admin-sidebar-actions a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .78rem .85rem;
  border-radius: 16px;
  color: #fff1d0;
  border: 1px solid transparent;
}

.admin-menu-v2 a span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 246, 226, .08);
  color: #e1ba6d;
}

.admin-menu-v2 a:hover,
.admin-menu-v2 a.active,
.admin-sidebar-actions a:hover {
  background: rgba(255, 246, 226, .1);
  border-color: rgba(224, 183, 104, .22);
  color: #f8d995;
}

.admin-sidebar-note {
  margin: 1rem 0;
  padding: .85rem;
  border-radius: 18px;
  background: rgba(255, 246, 226, .08);
  color: #d9c8ab;
  line-height: 1.4;
}

.admin-sidebar-actions {
  position: relative;
  display: grid;
  gap: .35rem;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid rgba(255, 246, 226, .12);
}

.admin-main-v2 {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.admin-hero-panel,
.admin-panel-v2,
.admin-stat-grid-v2 > article,
.admin-quick-card {
  position: relative;
  border: 1px solid rgba(95, 58, 34, .18);
  background:
    linear-gradient(135deg, rgba(255, 250, 238, .96), rgba(246, 228, 198, .88));
  box-shadow: 0 18px 40px rgba(55, 31, 16, .10);
}

.admin-hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border-radius: 30px;
  overflow: hidden;
}

.admin-hero-panel::before,
.admin-panel-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(89, 57, 34, .06) 1px, transparent 1px),
    linear-gradient(rgba(89, 57, 34, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.admin-hero-panel > *,
.admin-panel-v2 > * {
  position: relative;
}

.admin-hero-panel h1 {
  margin: .15rem 0 .35rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.admin-hero-panel p {
  max-width: 760px;
  margin: 0;
  color: #5b4635;
}

.admin-hero-card {
  min-width: 250px;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: .25rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(58, 31, 18, .95);
  color: #fff1d0;
  border: 1px solid rgba(224, 183, 104, .25);
}

.admin-hero-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8a3f22;
  color: #ffe0a0;
}

.admin-hero-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
}

.admin-hero-card small {
  color: #dac7a6;
}

.admin-stat-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.admin-stat-grid-v2 > article {
  padding: 1.1rem;
  border-radius: 24px;
  overflow: hidden;
}

.admin-stat-grid-v2 > article::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 12px double rgba(138, 63, 34, .10);
}

.admin-stat-grid-v2 span,
.admin-stat-grid-v2 small {
  display: block;
  color: #6b5644;
  font-weight: 800;
}

.admin-stat-grid-v2 strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .9;
  color: #8a3f22;
  margin: .35rem 0;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.admin-quick-card {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border-radius: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.admin-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(55, 31, 16, .16);
}

.admin-quick-card span {
  width: 42px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff8e9;
  background: #8a3f22;
  font-size: .82rem;
  font-weight: 900;
}

.admin-quick-card strong,
.admin-panel-v2 h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  color: #2b180f;
}

.admin-quick-card strong {
  font-size: 1.65rem;
}

.admin-quick-card small {
  color: #6b5644;
  line-height: 1.45;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 1rem;
}

.admin-panel-v2 {
  border-radius: 28px;
  padding: 1.1rem;
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: .85rem;
}

.admin-panel-head.compact {
  margin-bottom: .65rem;
}

.admin-panel-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  margin: 0;
}

.admin-panel-head a {
  color: #8a3f22;
  font-weight: 900;
  white-space: nowrap;
}

.admin-story-progress-list,
.admin-notice-list {
  display: grid;
  gap: .55rem;
}

.admin-story-progress-item,
.admin-notice-list a {
  display: grid;
  gap: .2rem;
  padding: .85rem;
  border-radius: 18px;
  background: rgba(255, 250, 238, .76);
  border: 1px solid rgba(95, 58, 34, .13);
}

.admin-story-progress-item {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.admin-story-progress-item strong,
.admin-notice-list strong {
  color: #2b180f;
}

.admin-story-progress-item small,
.admin-notice-list small {
  color: #705d4b;
}

.admin-story-progress-item span {
  padding: .28rem .6rem;
  border-radius: 999px;
  background: #ead7ba;
  color: #512f1e;
  font-weight: 900;
  font-size: .85rem;
}

.admin-story-progress-item a {
  color: #8a3f22;
  font-weight: 900;
}

.admin-table-wrap-v2 {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(95, 58, 34, .13);
}

.admin-table-v2 {
  min-width: 720px;
  background: rgba(255, 250, 238, .75);
}

.admin-table-v2 th {
  background: rgba(55, 28, 18, .96);
  color: #fff1d0;
  font-weight: 900;
}

.admin-table-v2 th,
.admin-table-v2 td {
  padding: .85rem;
  border-bottom: 1px solid rgba(95, 58, 34, .12);
  text-align: left;
  vertical-align: top;
}

.admin-table-v2 tr:last-child td {
  border-bottom: 0;
}

.admin-main-v2 .form-card,
.admin-main-v2 .panel {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 250, 238, .96), rgba(246, 228, 198, .88));
  border: 1px solid rgba(95, 58, 34, .18);
  box-shadow: 0 18px 40px rgba(55, 31, 16, .10);
}

.admin-main-v2 .form-card h2,
.admin-main-v2 .panel h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  margin-top: 0;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar-v2 {
    position: relative;
    top: auto;
    min-height: 0;
  }
  .admin-menu-v2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-sidebar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .admin-shell {
    width: min(100% - 1rem, 1420px);
    margin-top: 1rem;
  }
  .admin-hero-panel {
    flex-direction: column;
  }
  .admin-hero-card {
    min-width: 0;
  }
  .admin-stat-grid-v2,
  .admin-quick-grid,
  .admin-menu-v2 {
    grid-template-columns: 1fr;
  }
  .admin-story-progress-item {
    grid-template-columns: 1fr;
  }
  .admin-panel-head {
    flex-direction: column;
  }
}

/* Admin login polish */
.admin-login-page {
  position: relative;
  min-height: calc(100vh - 88px);
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 18, 10, .82), rgba(78, 43, 21, .42) 42%, rgba(248, 230, 194, .88)),
    url('/static/images/arcellana-home-banner.png') center / cover no-repeat;
}

.admin-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 16%, rgba(236, 192, 104, .24), transparent 18rem),
    radial-gradient(circle at 82% 80%, rgba(71, 38, 18, .28), transparent 28rem),
    rgba(38, 24, 15, .2);
}

.admin-login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(255, 239, 202, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 239, 202, .05) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 239, 202, .16) 1px, transparent 1.5px);
  background-size: 48px 48px, 48px 48px, 18px 18px;
}

.admin-login-wrap {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.admin-login-copy {
  color: #fff4dc;
  padding: clamp(1rem, 3vw, 2rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .36);
}

.admin-login-kicker,
.admin-login-eyebrow {
  margin: 0 0 .65rem;
  color: #f4c676;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 900;
}

.admin-login-copy h1 {
  max-width: 720px;
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: .82;
  letter-spacing: -.04em;
  color: #fff5df;
}

.admin-login-copy > p:not(.admin-login-kicker) {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 246, 222, .92);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.65;
}

.admin-login-note-card {
  width: min(100%, 430px);
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: .9rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 225, 164, .28);
  border-radius: 22px;
  background: rgba(32, 18, 10, .58);
  box-shadow: 0 22px 54px rgba(13, 8, 4, .26);
  backdrop-filter: blur(10px);
}

.admin-login-note-card span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6a85a, #8d5328);
  color: #fff5df;
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.admin-login-note-card strong {
  display: block;
  color: #ffe8b5;
  line-height: 1.2;
}

.admin-login-note-card small {
  display: block;
  margin-top: .25rem;
  color: rgba(255, 246, 222, .82);
  line-height: 1.45;
}

.admin-login-card {
  position: relative;
  display: grid;
  gap: .95rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 250, 239, .98), rgba(244, 224, 190, .94)),
    radial-gradient(circle at 12% 0%, rgba(204, 152, 76, .18), transparent 15rem);
  border: 1px solid rgba(91, 52, 30, .22);
  box-shadow:
    0 36px 90px rgba(23, 12, 6, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .55);
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(133, 80, 43, .16);
  border-radius: 24px;
  pointer-events: none;
}

.admin-login-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 190px;
  height: 190px;
  opacity: .15;
  background:
    radial-gradient(circle, transparent 36%, rgba(82, 46, 27, .5) 37% 38%, transparent 39%),
    linear-gradient(55deg, transparent 44%, rgba(82, 46, 27, .5) 45% 46%, transparent 47%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-login-seal {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: .15rem;
  background:
    radial-gradient(circle at 30% 20%, #f7d892, #a36431 68%, #3c2114 100%);
  color: #fff3d8;
  box-shadow: 0 14px 32px rgba(75, 38, 17, .2);
}

.admin-login-seal span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 236, 184, .55);
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .05em;
}

.admin-login-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  line-height: .95;
  color: #2b180f;
}

.admin-login-helper {
  margin: -.35rem 0 .25rem;
  color: #715d4b;
}

.admin-login-card label {
  display: grid;
  gap: .45rem;
  color: #3c2114;
  font-weight: 900;
}

.admin-login-card input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(91, 52, 30, .18);
  border-radius: 18px;
  background: rgba(255, 252, 244, .88);
  color: #26180f;
  padding: .85rem 1rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.admin-login-card input:focus {
  border-color: rgba(138, 63, 34, .62);
  box-shadow: 0 0 0 4px rgba(138, 63, 34, .12);
}

.admin-login-btn {
  min-height: 54px;
  width: 100%;
  margin-top: .35rem;
  justify-content: center;
  border-radius: 18px;
  letter-spacing: .06em;
  box-shadow: 0 16px 34px rgba(109, 48, 22, .22);
}

.admin-login-home {
  position: relative;
  z-index: 1;
  justify-self: center;
  color: #7f3c22;
  font-weight: 900;
  padding-top: .15rem;
}

@media (max-width: 900px) {
  .admin-login-page {
    place-items: start center;
    padding-top: 2rem;
  }
  .admin-login-wrap {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .admin-login-copy {
    padding: .5rem 0;
  }
  .admin-login-copy h1 {
    max-width: 420px;
    font-size: clamp(3rem, 15vw, 5rem);
  }
  .admin-login-note-card {
    display: none;
  }
  .admin-login-card {
    border-radius: 26px;
  }
}

@media (max-width: 520px) {
  .admin-login-page {
    min-height: calc(100vh - 64px);
    padding-inline: .85rem;
    background-position: center top;
  }
  .admin-login-copy h1 {
    line-height: .86;
  }
  .admin-login-copy > p:not(.admin-login-kicker) {
    font-size: .96rem;
  }
  .admin-login-card {
    padding: 1.15rem;
  }
  .admin-login-card::before {
    inset: 9px;
    border-radius: 20px;
  }
  .admin-login-seal {
    width: 58px;
    height: 58px;
  }
  .admin-login-seal span {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Public Teaching and Learning Materials redesign */
.materials-hero {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(1.2rem, 3vw, 2.2rem) auto 1rem;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: stretch;
  padding: clamp(1.25rem, 4vw, 2.6rem);
  border: 1px solid rgba(89, 51, 27, .16);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 248, 232, .94), rgba(247, 225, 194, .74)),
    radial-gradient(circle at 18% 18%, rgba(214, 161, 84, .32), transparent 22rem),
    radial-gradient(circle at 85% 20%, rgba(98, 52, 28, .16), transparent 20rem);
  box-shadow: 0 24px 70px rgba(63, 35, 17, .14);
}
.materials-hero::before,
.materials-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.materials-hero::before {
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(90deg, rgba(88, 52, 31, .16) 1px, transparent 1px),
    linear-gradient(rgba(88, 52, 31, .12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.materials-hero::after {
  right: -48px;
  bottom: -48px;
  width: 260px;
  height: 260px;
  border: 22px double rgba(112, 68, 35, .18);
  border-radius: 54px;
  transform: rotate(-11deg);
}
.materials-hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}
.materials-hero__copy h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  line-height: .82;
  margin: .2rem 0 .8rem;
  color: #2b170f;
  letter-spacing: -.045em;
}
.materials-hero__copy > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: #5d4937;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.72;
}
.materials-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}
.materials-hero__folio {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 1.35rem;
  border: 1px solid rgba(79, 43, 22, .18);
  border-radius: 28px;
  color: #2f1a10;
  background:
    linear-gradient(145deg, rgba(255, 249, 235, .95), rgba(239, 209, 168, .78)),
    radial-gradient(circle at 85% 15%, rgba(149, 89, 44, .16), transparent 9rem);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.44), 0 18px 40px rgba(68, 38, 19, .10);
  overflow: hidden;
}
.materials-hero__folio::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 92px;
  height: 116px;
  border: 1px solid rgba(93, 54, 30, .24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(78, 43, 25, .12), transparent 52%),
    repeating-linear-gradient(180deg, transparent 0 15px, rgba(96, 57, 32, .12) 16px 17px),
    rgba(255, 253, 241, .52);
  transform: rotate(-5deg);
}
.materials-hero__folio::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1.2rem;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px dashed rgba(117, 67, 33, .38);
  background: radial-gradient(circle, rgba(185, 128, 58, .18), transparent 64%);
}
.folio-stamp {
  align-self: flex-start;
  padding: .32rem .62rem;
  border: 1px solid rgba(93, 54, 30, .28);
  border-radius: 999px;
  background: rgba(94, 47, 24, .10);
  color: #71391e;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.materials-hero__folio strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: .9;
}
.materials-hero__folio p {
  position: relative;
  z-index: 1;
  margin: .75rem 0 0;
  color: #6b523d;
  font-weight: 700;
}
.folio-lines {
  display: grid;
  gap: .45rem;
  margin-top: 1.1rem;
}
.folio-lines span {
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 55, 31, .22), transparent);
}

.materials-toolkit {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  align-items: stretch;
}
.materials-toolkit__summary {
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid rgba(89, 51, 27, .16);
  border-radius: 24px;
  background: rgba(255, 249, 236, .78);
  box-shadow: 0 12px 34px rgba(63, 35, 17, .08);
  text-align: center;
}
.materials-toolkit__summary span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  line-height: .85;
  color: #7a371e;
  font-weight: 800;
}
.materials-toolkit__summary p {
  margin: .4rem 0 0;
  color: #6e5946;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.materials-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(170px, .85fr) minmax(180px, 1fr) auto;
  gap: .8rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(89, 51, 27, .16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 250, 238, .92), rgba(244, 224, 194, .70));
  box-shadow: 0 12px 34px rgba(63, 35, 17, .08);
}
.materials-field {
  display: grid;
  gap: .35rem;
}
.materials-field label {
  color: #60452f;
  font-size: .77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.materials-field input,
.materials-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(88, 49, 26, .20);
  border-radius: 16px;
  background: rgba(255, 253, 244, .82);
  color: #28180f;
  padding: .72rem .85rem;
  outline: none;
}
.materials-field input:focus,
.materials-field select:focus {
  border-color: rgba(138, 63, 34, .52);
  box-shadow: 0 0 0 4px rgba(138, 63, 34, .10);
}
.materials-filter__buttons {
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: flex-end;
  min-height: 46px;
}

.materials-category-strip {
  width: min(1180px, calc(100% - 2rem));
  margin: .35rem auto 1rem;
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .3rem .05rem .75rem;
  scrollbar-width: thin;
}
.materials-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .58rem .82rem;
  border: 1px solid rgba(86, 50, 27, .16);
  border-radius: 999px;
  background: rgba(255, 249, 236, .72);
  color: #49301f;
  font-size: .9rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(63, 35, 17, .07);
}
.materials-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(135, 72, 35, .12);
  color: #7b3c1e;
  font-size: .75rem;
}
.materials-chip:hover,
.materials-chip.active {
  background: #3a2115;
  color: #fff4dc;
  border-color: rgba(58, 33, 21, .70);
}
.materials-chip:hover span,
.materials-chip.active span {
  background: rgba(255, 244, 220, .18);
  color: #f5cd83;
}

.materials-board {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.2rem auto clamp(2rem, 5vw, 4rem);
  padding: clamp(1rem, 3vw, 1.4rem);
  border: 1px solid rgba(89, 51, 27, .14);
  border-radius: 30px;
  background: rgba(255, 248, 235, .58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.36), 0 18px 50px rgba(63,35,17,.08);
}
.materials-board__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .25rem .25rem .85rem;
  border-bottom: 1px solid rgba(89, 51, 27, .12);
}
.materials-board__head h2 {
  margin: .1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .95;
}
.materials-board__head p:last-child {
  max-width: 360px;
  margin: 0;
  color: #745d49;
  font-size: .96rem;
  text-align: right;
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.material-file-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid rgba(86, 49, 27, .16);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, .97), rgba(246, 226, 196, .86)),
    radial-gradient(circle at 10% 10%, rgba(210, 156, 79, .18), transparent 12rem);
  box-shadow: 0 18px 44px rgba(63, 35, 17, .10);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.material-file-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 62px rgba(63, 35, 17, .15);
  border-color: rgba(138, 63, 34, .28);
}
.material-file-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(180deg, #8a3f22, #c9964c);
}
.materials-grid--learning .material-file-card::before {
  background: linear-gradient(180deg, #806723, #c1a35a);
}
.material-file-card__ribbon {
  position: absolute;
  top: 1rem;
  right: -2.4rem;
  width: 8rem;
  padding: .22rem;
  transform: rotate(33deg);
  background: rgba(52, 29, 18, .92);
  color: #f6d9a0;
  text-align: center;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.material-file-card__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  padding-right: 2rem;
  align-items: start;
}
.material-file-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #4a2818;
  color: #f5cd83;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 22px rgba(63,35,17,.18);
}
.materials-grid--learning .material-file-card__icon {
  background: #806723;
}
.material-file-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.05rem;
  margin: .35rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: .96;
  color: #2c1a10;
}
.material-file-card > p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.2rem;
  margin: 1rem 0;
  color: #6d5542;
}
.material-meta {
  display: grid;
  gap: .65rem;
  margin: auto 0 1rem;
  padding: .82rem;
  border: 1px solid rgba(86, 49, 27, .13);
  border-radius: 18px;
  background: rgba(255,255,255,.38);
}
.material-meta div {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: baseline;
}
.material-meta dt {
  color: #7a604a;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.material-meta dd {
  margin: 0;
  color: #301c12;
  font-size: .9rem;
  font-weight: 850;
  text-align: right;
}
.material-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  margin-top: auto;
  padding: .75rem .9rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #3f2317, #7a371e);
  color: #fff4dc;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(63,35,17,.16);
}
.material-download:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #2d190f, #8a3f22);
}
.materials-grid--learning .material-download {
  background: linear-gradient(135deg, #3d3212, #806723);
}
.materials-grid--learning .material-download:hover {
  background: linear-gradient(135deg, #2f260d, #92762a);
}
.materials-empty-state {
  grid-column: 1 / -1;
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px dashed rgba(86, 49, 27, .30);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 252, 242, .92), rgba(246, 226, 196, .68));
}
.materials-empty-state__seal {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: #3a2115;
  color: #f5cd83;
  font-size: 1.5rem;
  box-shadow: 0 18px 38px rgba(63,35,17,.14);
}
.materials-empty-state h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
}
.materials-empty-state p {
  max-width: 520px;
  margin: .75rem auto 1.15rem;
  color: #6d5542;
}

@media (max-width: 1100px) {
  .materials-hero {
    grid-template-columns: 1fr;
  }
  .materials-hero__folio {
    min-height: 220px;
  }
  .materials-toolkit {
    grid-template-columns: 1fr;
  }
  .materials-filter {
    grid-template-columns: 1fr 1fr;
  }
  .materials-field--search,
  .materials-filter__buttons {
    grid-column: 1 / -1;
  }
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .materials-hero {
    width: min(100% - 1rem, 1180px);
    min-height: 0;
    padding: 1.05rem;
    border-radius: 26px;
  }
  .materials-hero__copy h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
    line-height: .84;
  }
  .materials-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .materials-hero__actions .btn {
    justify-content: center;
    width: 100%;
  }
  .materials-hero__folio {
    min-height: 190px;
    padding: 1rem;
    border-radius: 22px;
  }
  .materials-toolkit,
  .materials-category-strip,
  .materials-board {
    width: min(100% - 1rem, 1180px);
  }
  .materials-filter {
    grid-template-columns: 1fr;
    padding: .85rem;
    border-radius: 22px;
  }
  .materials-filter__buttons {
    justify-content: stretch;
  }
  .materials-filter__buttons .btn {
    flex: 1;
    justify-content: center;
  }
  .materials-board {
    padding: .85rem;
    border-radius: 24px;
  }
  .materials-board__head {
    align-items: start;
    flex-direction: column;
  }
  .materials-board__head p:last-child {
    max-width: none;
    text-align: left;
  }
  .materials-grid {
    grid-template-columns: 1fr;
  }
  .material-file-card {
    min-height: 0;
  }
  .material-file-card > p {
    min-height: 0;
    -webkit-line-clamp: 5;
  }
  .material-meta div {
    display: grid;
  }
  .material-meta dd {
    text-align: left;
  }
}

/* ------------------------------------------------------------------
   Digital Story Library: bookshelf theme
------------------------------------------------------------------- */
.bookshelf-hero,
.bookshelf-wrap {
  width: min(100% - 4rem, 1240px);
  margin-inline: auto;
}

.bookshelf-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(1.4rem, 3vw, 2.6rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(104, 64, 35, .22);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 243, 213, .85), transparent 15rem),
    linear-gradient(135deg, rgba(252, 239, 210, .96), rgba(225, 190, 132, .76)),
    linear-gradient(90deg, rgba(90, 45, 24, .09), transparent 55%);
  box-shadow: 0 24px 56px rgba(67, 36, 18, .16);
}

.bookshelf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(92, 51, 25, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 51, 25, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: multiply;
}

.bookshelf-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.bookshelf-hero__copy h1 {
  margin: .15rem 0 .7rem;
  color: #2a170f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: .86;
  letter-spacing: -.04em;
}

.bookshelf-hero__copy p:last-child {
  max-width: 540px;
  margin: 0;
  color: #634632;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.45;
}

.bookshelf-hero__display {
  position: relative;
  z-index: 2;
  min-height: 300px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(91, 49, 25, .2), rgba(91, 49, 25, .04)),
    radial-gradient(circle at 50% 10%, rgba(255, 238, 191, .72), transparent 11rem);
}

.shelf-book {
  position: absolute;
  bottom: 72px;
  width: 74px;
  height: 188px;
  border-radius: 10px 16px 16px 10px;
  border: 1px solid rgba(45, 24, 14, .32);
  box-shadow: 9px 16px 22px rgba(45, 24, 14, .18), inset 10px 0 rgba(35, 18, 10, .16);
}

.shelf-book::before {
  content: "";
  position: absolute;
  inset: 12px 14px;
  border: 1px solid rgba(255, 238, 193, .36);
  border-radius: 7px 12px 12px 7px;
}

.shelf-book::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 44px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 230, 174, .58);
  box-shadow: 0 22px rgba(255, 230, 174, .44), 0 44px rgba(255, 230, 174, .32);
}

.shelf-book--one {
  left: 34px;
  height: 198px;
  transform: rotate(-7deg);
  background: linear-gradient(160deg, #7c3824, #2c160d);
}

.shelf-book--two {
  left: 106px;
  height: 220px;
  width: 86px;
  transform: rotate(3deg);
  background: linear-gradient(160deg, #b07934, #4d2b15);
}

.shelf-book--three {
  left: 190px;
  height: 180px;
  transform: rotate(-2deg);
  background: linear-gradient(160deg, #395131, #1a2418);
}

.shelf-book--four {
  left: 260px;
  height: 210px;
  width: 92px;
  transform: rotate(5deg);
  background: linear-gradient(160deg, #8b562c, #2b160d);
}

.shelf-wood {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 48px;
  height: 28px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(60, 30, 15, .18), transparent 20%, rgba(255,255,255,.16) 45%, rgba(55, 29, 15, .2)),
    linear-gradient(180deg, #8c562e, #5c311a);
  box-shadow: 0 16px 24px rgba(45, 24, 14, .22);
}

.bookshelf-wrap {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

.bookshelf-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bookshelf-head h2 {
  margin: .1rem 0 0;
  color: #2a170f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: .92;
}

.bookshelf-head > p {
  margin: 0 0 .25rem;
  color: #7d4b2b;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
}

.bookshelf-case {
  position: relative;
  padding: clamp(1.3rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2rem) 0;
  border: 1px solid rgba(93, 50, 27, .28);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 246, 224, .76), rgba(234, 207, 158, .58)),
    radial-gradient(circle at 50% 0, rgba(255, 239, 197, .68), transparent 17rem);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 224, .56), 0 28px 58px rgba(69, 37, 18, .13);
  overflow: hidden;
}

.bookshelf-case::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background:
    linear-gradient(180deg, transparent, rgba(79, 42, 22, .06)),
    repeating-linear-gradient(90deg, rgba(95, 54, 29, .08) 0 2px, transparent 2px 32px);
  pointer-events: none;
}

.bookshelf-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  column-gap: clamp(1.1rem, 3vw, 2.2rem);
  row-gap: clamp(2.4rem, 5vw, 3.4rem);
  align-items: end;
}

.shelf-story {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: 2.35rem;
}

.shelf-story::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0;
  height: 20px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(60, 30, 15, .2), transparent 18%, rgba(255,255,255,.13) 52%, rgba(60,30,15,.2)),
    linear-gradient(180deg, #8d5a32, #573018);
  box-shadow: 0 16px 22px rgba(45, 24, 14, .2);
}

.shelf-story__cover {
  position: relative;
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 2 / 3;
  border-radius: 10px 18px 18px 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #5b2c1c, #21120b);
  border: 1px solid rgba(45, 24, 14, .36);
  box-shadow:
    0 26px 34px rgba(44, 23, 11, .22),
    10px 0 0 rgba(45, 24, 14, .13),
    inset 11px 0 0 rgba(30, 16, 9, .24);
  transform: translateY(0) rotate(-.75deg);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.shelf-story:nth-child(even) .shelf-story__cover {
  transform: translateY(0) rotate(.75deg);
}

.shelf-story__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: sepia(.18) contrast(.97) saturate(.92);
}

.shelf-story__spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.2rem;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0,0,0,.32), rgba(255,255,255,.12) 45%, transparent),
    linear-gradient(180deg, rgba(255, 231, 172, .2), transparent 40%);
  pointer-events: none;
}

.shelf-story__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, rgba(255,255,255,.34), transparent 30%, transparent 66%, rgba(0,0,0,.2));
  pointer-events: none;
}

.shelf-story__cover::after {
  content: "";
  position: absolute;
  inset: .7rem;
  z-index: 4;
  border: 1px solid rgba(255, 239, 203, .42);
  border-radius: 8px 14px 14px 8px;
  pointer-events: none;
}

.shelf-story:hover .shelf-story__cover {
  transform: translateY(-9px) rotate(0deg);
  filter: brightness(1.03);
  box-shadow:
    0 34px 48px rgba(44, 23, 11, .28),
    11px 0 0 rgba(45, 24, 14, .12),
    inset 11px 0 0 rgba(30, 16, 9, .24);
}

.shelf-story h3 {
  width: 100%;
  max-width: 230px;
  margin: .95rem auto .55rem;
  min-height: 2.15rem;
  color: #2a170f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1;
}

.shelf-story h3 a {
  color: inherit;
}

.shelf-story h3 a:hover {
  color: #874021;
}

.shelf-story__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .58rem .92rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 72, 36, .28);
  background: rgba(255, 243, 216, .75);
  color: #7d3d21;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(70, 38, 19, .09);
}

.shelf-story__action:hover {
  background: #7d3d21;
  color: #fff3d9;
  transform: translateY(-1px);
}

.bookshelf-empty {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .bookshelf-hero {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .bookshelf-hero__display {
    min-height: 230px;
  }

  .shelf-book {
    bottom: 54px;
    transform-origin: bottom center;
  }

  .shelf-book--one { left: 10%; }
  .shelf-book--two { left: 28%; }
  .shelf-book--three { left: 48%; }
  .shelf-book--four { left: 65%; }
  .shelf-wood { bottom: 34px; }

  .bookshelf-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .bookshelf-hero,
  .bookshelf-wrap {
    width: min(100% - 1rem, 1240px);
  }

  .bookshelf-hero {
    margin-top: .75rem;
    border-radius: 24px;
    padding: 1.25rem;
  }

  .bookshelf-hero__copy h1 {
    font-size: clamp(2.7rem, 12vw, 4.1rem);
  }

  .bookshelf-hero__copy p:last-child {
    font-size: 1rem;
  }

  .bookshelf-hero__display {
    min-height: 190px;
    overflow: hidden;
  }

  .shelf-book {
    width: 54px;
    height: 146px;
    bottom: 48px;
  }

  .shelf-book--two {
    width: 64px;
    height: 164px;
  }

  .shelf-book--four {
    width: 66px;
    height: 158px;
  }

  .bookshelf-wrap {
    margin-top: 1.2rem;
  }

  .bookshelf-case {
    padding: 1rem .75rem 0;
    border-radius: 24px;
  }

  .bookshelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem .85rem;
  }

  .shelf-story {
    padding-bottom: 2rem;
  }

  .shelf-story::after {
    left: 0;
    right: 0;
  }

  .shelf-story__cover {
    width: min(100%, 170px);
  }

  .shelf-story h3 {
    font-size: 1.28rem;
    min-height: 2.6rem;
  }

  .shelf-story__action {
    font-size: .62rem;
    padding-inline: .65rem;
  }
}

@media (max-width: 430px) {
  .bookshelf-grid {
    grid-template-columns: 1fr;
  }

  .shelf-story__cover {
    width: min(100%, 220px);
  }

  .shelf-story h3 {
    min-height: auto;
  }
}

/* PDF-based Digital Story Board updates */
.shelf-story__badge {
  position: absolute;
  z-index: 6;
  right: .7rem;
  bottom: .75rem;
  padding: .36rem .58rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 244, 215, .72);
  background: rgba(78, 32, 18, .9);
  color: #fff2cf;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(28, 12, 6, .25);
}

.shelf-story__badge--empty {
  background: rgba(123, 86, 52, .88);
}

.story-pdf-hero .lead {
  max-width: 760px;
}

.pdf-reader-shell {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto 4rem;
}

.pdf-reader-card,
.pdf-empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 57, 31, .18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 0%, rgba(198, 146, 72, .18), transparent 13rem),
    linear-gradient(145deg, rgba(255, 251, 238, .98), rgba(239, 219, 185, .96));
  box-shadow: 0 28px 70px rgba(53, 30, 15, .14);
}

.pdf-reader-card::before,
.pdf-empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(86, 52, 27, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 52, 27, .028) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: multiply;
}

.pdf-reader-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid rgba(97, 57, 31, .18);
}

.pdf-reader-card__head h2 {
  margin: .1rem 0 0;
  color: #2b170e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: .95;
}

.pdf-reader-card__link {
  flex: 0 0 auto;
  padding: .68rem .95rem;
  border-radius: 999px;
  background: #6f341c;
  color: #fff2d5;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pdf-reader-frame {
  position: relative;
  z-index: 1;
  min-height: 78vh;
  padding: clamp(.65rem, 1.4vw, 1rem);
  background:
    linear-gradient(90deg, rgba(64, 31, 15, .12), transparent 6%, transparent 94%, rgba(64, 31, 15, .12)),
    #2d1a11;
}

.pdf-reader-frame iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 560px;
  border: 0;
  border-radius: 18px;
  background: #f7ead3;
}

.pdf-reader-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .25rem;
  padding: 1rem clamp(1rem, 2.5vw, 1.6rem);
  border-top: 1px solid rgba(97, 57, 31, .18);
  color: #4d3321;
}

.pdf-reader-note strong {
  color: #2e1b10;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.pdf-reader-note p {
  margin: 0;
}

.pdf-empty-state {
  display: grid;
  place-items: center;
  gap: .75rem;
  min-height: 430px;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.pdf-empty-state > * {
  position: relative;
  z-index: 1;
}

.pdf-empty-state span {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 9rem;
  border-radius: 12px 20px 20px 12px;
  background: linear-gradient(145deg, #7a3920, #3d1d12);
  color: #f8dfaa;
  font-weight: 900;
  letter-spacing: .18em;
  box-shadow: 0 20px 35px rgba(52, 27, 12, .22);
}

.pdf-empty-state h2 {
  margin: .4rem 0 0;
  color: #2b170e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.pdf-empty-state p {
  max-width: 560px;
  margin: 0;
  color: #654a38;
}

.admin-pdf-help {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  border: 1px solid rgba(115, 69, 39, .18);
  border-radius: 18px;
  background: rgba(255, 244, 217, .72);
  color: #4a3020;
}

.admin-pdf-help strong {
  color: #2f1d12;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.admin-pdf-help p {
  margin: 0;
}

@media (max-width: 780px) {
  .pdf-reader-shell {
    width: min(100% - 1rem, 1180px);
  }

  .pdf-reader-card,
  .pdf-empty-state {
    border-radius: 22px;
  }

  .pdf-reader-card__head {
    align-items: start;
    flex-direction: column;
  }

  .pdf-reader-frame {
    min-height: 68vh;
  }

  .pdf-reader-frame iframe {
    height: 68vh;
    min-height: 480px;
    border-radius: 12px;
  }
}

/* Animated PDF Flipbook Reader */
.flipbook-hero .lead {
  max-width: 760px;
}

.flipbook-shell {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto clamp(3rem, 8vw, 6rem);
}

.flipbook-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid rgba(91, 55, 31, .18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 236, 184, .78), transparent 30%),
    linear-gradient(145deg, rgba(255, 250, 234, .96), rgba(230, 208, 168, .86));
  box-shadow: 0 30px 70px rgba(58, 33, 14, .22);
}

.flipbook-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(96, 58, 32, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 58, 32, .035) 1px, transparent 1px);
  background-size: 26px 26px;
  mix-blend-mode: multiply;
}

.flipbook-card > * {
  position: relative;
  z-index: 1;
}

.flipbook-card__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.flipbook-card__head h2 {
  margin: .1rem 0 .25rem;
  color: #2d190f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: .92;
}

.flipbook-card__head p:not(.eyebrow) {
  max-width: 540px;
  margin: 0;
  color: #654631;
}

.flipbook-card__link {
  flex: 0 0 auto;
  color: #7a3b20;
  font-weight: 800;
  text-decoration: none;
}

.flipbook-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(520px, 72vh, 860px);
  padding: clamp(1rem, 4vw, 2.2rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 238, 194, .62), transparent 32%),
    linear-gradient(160deg, rgba(88, 49, 24, .92), rgba(43, 25, 15, .96));
  box-shadow: inset 0 1px 0 rgba(255, 244, 212, .24), inset 0 -20px 55px rgba(0, 0, 0, .28);
}

.flipbook-book {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  perspective: 1500px;
}

.book-shadow {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: min(86vw, 780px);
  height: 48px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .42), transparent 68%);
  filter: blur(2px);
}

.book-cover-edge {
  position: absolute;
  inset: -18px -22px -24px -28px;
  border-radius: 20px 28px 28px 20px;
  background: linear-gradient(90deg, #5a2518, #8f4f29 7%, #3f1e14 9%, #7b3d22 100%);
  box-shadow: 0 24px 45px rgba(0, 0, 0, .28);
}

.book-page-stack {
  position: absolute;
  inset: -7px -13px -11px 9px;
  border-radius: 14px 24px 24px 14px;
  background: repeating-linear-gradient(0deg, #f2dfb7 0 3px, #d7bc88 3px 4px);
  opacity: .94;
}

.book-page-surface {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: min(76vw, 520px);
  min-height: 560px;
  border-radius: 13px 24px 24px 13px;
  background:
    linear-gradient(90deg, rgba(75, 40, 21, .16), transparent 7%, transparent 92%, rgba(78, 42, 23, .13)),
    #fff8ea;
  box-shadow: inset 14px 0 26px rgba(68, 39, 21, .1), inset -8px 0 26px rgba(68, 39, 21, .08);
  transform-origin: left center;
}

.book-page-surface canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px 18px 18px 8px;
  background: #fff8ea;
  box-shadow: 0 1px 0 rgba(74, 43, 24, .08);
}

.page-curl {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 44px;
  pointer-events: none;
}

.page-curl--left {
  left: 0;
  background: linear-gradient(90deg, rgba(80, 48, 27, .18), transparent);
}

.page-curl--right {
  right: 0;
  background: linear-gradient(270deg, rgba(80, 48, 27, .16), transparent);
}

.book-page-surface.turning-next {
  animation: pageTurnNext .36s ease-in-out;
}

.book-page-surface.turning-prev {
  animation: pageTurnPrev .36s ease-in-out;
}

@keyframes pageTurnNext {
  0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  45% { transform: rotateY(-18deg) translateX(16px); filter: brightness(.91); }
  100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
}

@keyframes pageTurnPrev {
  0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  45% { transform: rotateY(18deg) translateX(-12px); filter: brightness(.93); }
  100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
}

.flip-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 34%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.flip-hit--left {
  left: 0;
}

.flip-hit--right {
  right: 0;
}

.flip-hit::after {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 233, 186, .35);
  border-radius: 999px;
  background: rgba(48, 26, 14, .58);
  color: #fff0c4;
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.flip-hit--left::after {
  content: "‹";
  left: 1rem;
}

.flip-hit--right::after {
  content: "›";
  right: 1rem;
}

.flip-hit:hover::after,
.flip-hit:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.flip-hit:disabled {
  cursor: default;
  pointer-events: none;
}

.flipbook-loader {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .7rem;
  border-radius: inherit;
  background: rgba(255, 248, 234, .92);
  color: #4b2c1a;
}

.flipbook-loader[hidden] {
  display: none;
}

.flipbook-loader span {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(126, 76, 39, .25);
  border-top-color: #7a3b20;
  border-radius: 999px;
  animation: spin .85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.flipbook-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

.flip-control {
  min-height: 48px;
  border: 1px solid rgba(94, 54, 31, .26);
  border-radius: 999px;
  background: rgba(255, 244, 214, .82);
  color: #3b2113;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.flip-control:last-child {
  justify-self: end;
  padding-inline: 1.3rem;
}

.flip-control:first-child {
  justify-self: start;
  padding-inline: 1.3rem;
}

.flip-control:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #fff1c8;
  box-shadow: 0 12px 22px rgba(70, 40, 20, .14);
}

.flip-control:disabled {
  opacity: .44;
  cursor: not-allowed;
}

.flipbook-page-count {
  display: grid;
  place-items: center;
  gap: .1rem;
  color: #614126;
}

.flipbook-page-count span {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.flipbook-page-count strong {
  color: #2b180f;
  font-size: 1.18rem;
}

.flipbook-progress {
  overflow: hidden;
  height: 8px;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(84, 51, 28, .15);
}

.flipbook-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a3b20, #c88a45);
  transition: width .25s ease;
}

.flipbook-fallback {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(132, 78, 38, .24);
  border-radius: 18px;
  background: rgba(255, 247, 222, .9);
  color: #4b2c19;
}

.flipbook-card--failed .flipbook-stage,
.flipbook-card--failed .flipbook-controls,
.flipbook-card--failed .flipbook-progress {
  opacity: .35;
}

.flipbook-empty-state {
  width: min(100%, 920px);
  margin-inline: auto;
}

@media (max-width: 820px) {
  .flipbook-shell {
    width: min(100% - 1rem, 1180px);
  }

  .flipbook-card {
    padding: .85rem;
    border-radius: 24px;
  }

  .flipbook-card__head {
    align-items: start;
    flex-direction: column;
    gap: .7rem;
  }

  .flipbook-stage {
    min-height: 520px;
    padding: .8rem;
    border-radius: 22px;
  }

  .book-cover-edge {
    inset: -12px -12px -16px -16px;
  }

  .book-page-stack {
    inset: -5px -8px -9px 6px;
  }

  .book-page-surface {
    min-width: 0;
    width: 100%;
    min-height: 470px;
    border-radius: 10px 18px 18px 10px;
  }

  .flip-hit {
    width: 42%;
  }

  .flip-hit::after {
    opacity: .72;
    width: 34px;
    height: 34px;
    font-size: 1.35rem;
  }

  .flipbook-controls {
    grid-template-columns: 1fr 1fr;
  }

  .flipbook-page-count {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .flip-control:first-child,
  .flip-control:last-child {
    justify-self: stretch;
  }
}

@media (max-width: 480px) {
  .flipbook-stage {
    min-height: 460px;
  }

  .book-page-surface {
    min-height: 410px;
  }

  .book-shadow {
    bottom: -24px;
  }
}

/* Final flipbook spread view and admin story manager updates */
.admin-head--with-action {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.admin-head__note {
  margin: .25rem 0 0;
  max-width: 660px;
  color: #73543b;
}
.admin-story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.admin-story-actions form {
  margin: 0;
}
.btn.danger {
  border-color: rgba(131, 45, 28, .34);
  background: #7d2f1d;
  color: #fff3db;
}
.btn.danger:hover {
  background: #642315;
}
.admin-story-table code {
  padding: .18rem .4rem;
  border-radius: 8px;
  background: rgba(80, 48, 28, .1);
  color: #4f2d1a;
}
.admin-empty-row {
  margin: .75rem;
}
.story-editor-card {
  overflow: hidden;
}
.story-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem;
  align-items: start;
}
.story-editor-main,
.story-editor-side {
  min-width: 0;
}
.story-editor-side {
  display: grid;
  gap: 1rem;
}
.admin-upload-box {
  padding: 1rem;
  border: 1px solid rgba(96, 59, 32, .18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 248, 226, .88), rgba(239, 219, 180, .7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.admin-upload-box h2 {
  margin: 0 0 .25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #3a2113;
}
.admin-upload-box p {
  margin: 0 0 .8rem;
  color: #6d513b;
}
.admin-upload-box--pdf {
  background:
    linear-gradient(145deg, rgba(254, 241, 202, .94), rgba(214, 178, 119, .62));
}
.admin-form-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.flipbook-card.is-spread-view .flipbook-stage {
  min-height: clamp(560px, 74vh, 900px);
}
.flipbook-card.is-spread-view .flipbook-book {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 0;
  perspective: 1800px;
}
.flipbook-card.is-spread-view .book-cover-edge {
  grid-column: 1 / -1;
  grid-row: 1;
  inset: -22px -28px -30px -32px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, #5a2518, #8f4f29 4%, #3f1e14 6%, #3f1e14 50%, #32170f 51%, #7b3d22 100%);
}
.flipbook-card.is-spread-view .book-page-stack {
  grid-column: 1 / -1;
  grid-row: 1;
  inset: -9px -14px -14px 10px;
  border-radius: 22px;
}
.flipbook-card.is-spread-view .book-page-surface {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  padding: clamp(.55rem, 1.1vw, .9rem);
  display: grid;
  place-items: center;
  background: #fff8ea;
  overflow: hidden;
}
.flipbook-card.is-spread-view .book-page-surface--left {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  border-radius: 16px 4px 4px 16px;
  box-shadow:
    inset 18px 0 24px rgba(77, 45, 24, .08),
    inset -18px 0 26px rgba(62, 35, 20, .18),
    0 2px 0 rgba(70, 43, 24, .08);
  transform-origin: right center;
}
.flipbook-card.is-spread-view .book-page-surface--right {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  border-radius: 4px 16px 16px 4px;
  box-shadow:
    inset 18px 0 28px rgba(62, 35, 20, .18),
    inset -12px 0 24px rgba(77, 45, 24, .08),
    0 2px 0 rgba(70, 43, 24, .08);
  transform-origin: left center;
}
.book-gutter {
  grid-column: 2;
  grid-row: 1;
  z-index: 4;
  align-self: stretch;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(34, 18, 11, .28), rgba(255, 244, 218, .14) 44%, rgba(34, 18, 11, .26));
  box-shadow: 0 0 22px rgba(47, 25, 15, .24);
}
.flipbook-card.is-spread-view .book-page-surface canvas {
  max-width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(85, 52, 30, .12);
}
.book-page-surface--blank canvas {
  opacity: .38;
}
.page-number-label {
  position: absolute;
  bottom: .45rem;
  color: rgba(84, 52, 30, .48);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.book-page-surface--left .page-number-label {
  left: .8rem;
}
.book-page-surface--right .page-number-label {
  right: .8rem;
}
.flipbook-card.is-spread-view .flipbook-book.turning-next .book-page-surface--right {
  animation: spreadTurnNext .43s ease-in-out;
}
.flipbook-card.is-spread-view .flipbook-book.turning-prev .book-page-surface--left {
  animation: spreadTurnPrev .43s ease-in-out;
}
@keyframes spreadTurnNext {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  45% { transform: rotateY(-28deg) translateX(-8px); filter: brightness(.88); }
  100% { transform: rotateY(0deg); filter: brightness(1); }
}
@keyframes spreadTurnPrev {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  45% { transform: rotateY(28deg) translateX(8px); filter: brightness(.9); }
  100% { transform: rotateY(0deg); filter: brightness(1); }
}

@media (max-width: 820px) {
  .admin-head--with-action {
    align-items: stretch;
    flex-direction: column;
  }
  .story-editor-grid {
    grid-template-columns: 1fr;
  }
  .admin-story-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-story-actions .btn,
  .admin-story-actions form,
  .admin-story-actions button {
    width: 100%;
  }

  .flipbook-card.is-single-page {
    padding: .55rem;
    border-radius: 0;
  }
  .flipbook-card.is-single-page .flipbook-card__head {
    padding: .35rem .45rem 0;
  }
  .flipbook-card.is-single-page .flipbook-stage {
    min-height: calc(100svh - 210px);
    padding: .55rem;
    border-radius: 20px;
  }
  .flipbook-card.is-single-page .flipbook-book {
    width: 100%;
    min-height: calc(100svh - 250px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
  }
  .flipbook-card.is-single-page .book-cover-edge {
    inset: -12px -12px -16px -16px;
    border-radius: 20px;
    background: linear-gradient(90deg, #5a2518, #8f4f29 7%, #3f1e14 10%, #7b3d22 100%);
  }
  .flipbook-card.is-single-page .book-page-stack {
    inset: -5px -8px -9px 6px;
    border-radius: 16px;
  }
  .flipbook-card.is-single-page .book-page-surface--right,
  .flipbook-card.is-single-page .book-gutter {
    display: none;
  }
  .flipbook-card.is-single-page .book-page-surface--left {
    width: 100%;
    min-width: 0;
    min-height: calc(100svh - 270px);
    padding: .5rem;
    border-radius: 12px 20px 20px 12px;
    display: grid;
    place-items: center;
    transform-origin: left center;
  }
  .flipbook-card.is-single-page .book-page-surface canvas {
    max-width: 100%;
    max-height: calc(100svh - 290px);
    width: auto;
    height: auto;
  }
  .flipbook-card.is-single-page .flipbook-book.turning-next .book-page-surface--left {
    animation: mobileBookTurnNext .42s ease-in-out;
  }
  .flipbook-card.is-single-page .flipbook-book.turning-prev .book-page-surface--left {
    animation: mobileBookTurnPrev .42s ease-in-out;
  }
  @keyframes mobileBookTurnNext {
    0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
    45% { transform: rotateY(-20deg) translateX(14px); filter: brightness(.9); }
    100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  }
  @keyframes mobileBookTurnPrev {
    0% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
    45% { transform: rotateY(20deg) translateX(-10px); filter: brightness(.92); }
    100% { transform: rotateY(0deg) translateX(0); filter: brightness(1); }
  }
}

@media (max-width: 520px) {
  .flipbook-card.is-single-page .flipbook-card__head h2 {
    font-size: clamp(1.55rem, 9vw, 2.25rem);
  }
  .flipbook-card.is-single-page .flipbook-card__head p:not(.eyebrow) {
    font-size: .9rem;
  }
  .flipbook-card.is-single-page .flipbook-stage {
    min-height: calc(100svh - 190px);
  }
  .flipbook-card.is-single-page .flipbook-book {
    min-height: calc(100svh - 230px);
  }
  .flipbook-card.is-single-page .book-page-surface--left {
    min-height: calc(100svh - 250px);
  }
  .flipbook-card.is-single-page .book-page-surface canvas {
    max-height: calc(100svh - 270px);
  }
}


/* Final flipbook polish: larger desktop spread and mobile fullscreen reader */
.flipbook-shell {
  width: min(100% - 2rem, 1560px);
}

.flipbook-card.is-spread-view .flipbook-stage {
  min-height: clamp(700px, 82vh, 1080px);
  padding: clamp(1.25rem, 2.8vw, 3rem);
}

.flipbook-card.is-spread-view .flipbook-book {
  width: min(100%, 1380px);
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
}

.flipbook-card.is-spread-view .book-cover-edge {
  inset: -26px -34px -38px -38px;
}

.flipbook-card.is-spread-view .book-page-stack {
  inset: -11px -17px -18px 12px;
}

.flipbook-card.is-spread-view .book-page-surface {
  padding: clamp(.7rem, 1.15vw, 1rem);
}

.flip-control--fullscreen {
  display: none;
}

.flipbook-lock-scroll {
  overflow: hidden;
}

@media (max-width: 820px) {
  .flip-control--fullscreen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    width: 100%;
    background: #6f351d;
    color: #fff4cf;
    border-color: rgba(255, 228, 173, .35);
  }

  .flipbook-card.is-single-page.is-reader-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100svh;
    overflow: auto;
    margin: 0;
    padding: .65rem;
    border-radius: 0;
    border: 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 225, 155, .26), transparent 15rem),
      linear-gradient(160deg, #321c11, #160c08);
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-card__head {
    display: none;
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-stage {
    min-height: calc(100svh - 128px);
    padding: .45rem;
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 7%, rgba(255, 239, 197, .45), transparent 20rem),
      linear-gradient(160deg, rgba(69, 38, 21, .96), rgba(22, 12, 8, .98));
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-book {
    min-height: calc(100svh - 150px);
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .book-page-surface--left {
    min-height: calc(100svh - 170px);
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .book-page-surface canvas {
    max-height: calc(100svh - 190px);
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-controls {
    position: sticky;
    bottom: 0;
    margin-top: .55rem;
    padding: .55rem;
    border-radius: 18px;
    background: rgba(28, 15, 9, .86);
    backdrop-filter: blur(8px);
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-page-count,
  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-page-count strong,
  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-page-count span {
    color: #fff3ca;
  }

  .flipbook-card.is-single-page.is-reader-fullscreen .flipbook-progress {
    margin-top: .55rem;
    background: rgba(255, 242, 204, .18);
  }
}

@media (min-width: 821px) and (max-width: 1220px) {
  .flipbook-card.is-spread-view .flipbook-stage {
    min-height: clamp(620px, 78vh, 920px);
  }
}

/* Story board reader interaction section */
.story-discourse-section {
  width: min(100% - 2rem, 1320px);
  margin: clamp(2rem, 5vw, 4.5rem) auto clamp(3rem, 6vw, 5.5rem);
  position: relative;
}
.story-discourse-section::before {
  content: "";
  position: absolute;
  inset: -1.25rem -1rem auto -1rem;
  height: 220px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 24%, rgba(180, 113, 48, .22), transparent 12rem),
    radial-gradient(circle at 86% 0%, rgba(110, 58, 28, .16), transparent 16rem),
    linear-gradient(135deg, rgba(255, 247, 221, .78), rgba(229, 204, 158, .3));
}
.discourse-hero-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(104, 63, 32, .18);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 250, 232, .96), rgba(239, 221, 180, .92)),
    repeating-linear-gradient(0deg, rgba(96, 61, 33, .035) 0 1px, transparent 1px 12px);
  box-shadow: 0 24px 70px rgba(69, 41, 20, .16);
}
.discourse-hero-card h2 {
  margin: .1rem 0 .55rem;
  max-width: 820px;
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: .92;
  color: #3c2112;
}
.discourse-hero-card p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: #6e4b2d;
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}
.discourse-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0 clamp(1.2rem, 3vw, 2rem);
}
.discourse-stats article {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(99, 60, 33, .16);
  background: rgba(255, 247, 224, .88);
  box-shadow: 0 12px 32px rgba(69, 41, 20, .09);
}
.discourse-stats span {
  display: block;
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: #7f3e20;
}
.discourse-stats small {
  display: block;
  margin-top: .35rem;
  color: #765438;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.discourse-layout {
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
}
.response-station {
  position: sticky;
  top: 96px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border-radius: 30px;
  border: 1px solid rgba(87, 51, 28, .2);
  background:
    radial-gradient(circle at 100% 0%, rgba(188, 125, 47, .25), transparent 11rem),
    linear-gradient(160deg, rgba(71, 39, 21, .98), rgba(32, 18, 10, .98));
  color: #fff1c8;
  box-shadow: 0 24px 60px rgba(41, 22, 10, .22);
}
.response-station .eyebrow,
.response-station label span {
  color: #f2cc82;
}
.response-station h3 {
  margin: .2rem 0 .45rem;
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .96;
}
.response-station__seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: rgba(255, 238, 190, .13);
  border: 1px solid rgba(242, 204, 130, .35);
  font-size: 1.5rem;
}
.response-help {
  color: rgba(255, 242, 206, .78);
  line-height: 1.6;
}
.response-form {
  display: grid;
  gap: .8rem;
}
.response-form label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
  color: #5b3921;
}
.response-form input,
.response-form select,
.response-form textarea,
.reply-box input,
.reply-box textarea {
  width: 100%;
  border: 1px solid rgba(89, 52, 29, .22);
  border-radius: 16px;
  padding: .8rem .9rem;
  background: #fff8df;
  color: #3d2414;
  font: inherit;
  outline: none;
}
.response-station .response-form input,
.response-station .response-form select,
.response-station .response-form textarea {
  background: rgba(255, 247, 218, .96);
}
.response-form textarea,
.reply-box textarea {
  resize: vertical;
}
.discussion-column {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.featured-wall,
.discussion-board {
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border-radius: 30px;
  border: 1px solid rgba(97, 57, 31, .16);
  background:
    linear-gradient(180deg, rgba(255, 251, 236, .96), rgba(247, 232, 194, .88));
  box-shadow: 0 20px 55px rgba(69, 41, 20, .12);
}
.compact-title h3,
.compact-title h2 {
  margin: .15rem 0 0;
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1;
  color: #3e2314;
}
.featured-wall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.featured-note {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .8rem;
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 252, 239, .96), rgba(236, 210, 159, .78));
  border: 1px solid rgba(100, 58, 31, .16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.featured-note span,
.response-type,
.pending-chip,
.featured-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.featured-note span,
.response-type {
  background: #7e3e20;
  color: #fff4ce;
}
.pending-chip {
  margin-left: .35rem;
  background: #f2c96f;
  color: #4b2c15;
}
.hidden-chip {
  background: #c8b19b;
}
.featured-chip {
  margin-left: .35rem;
  background: #284b32;
  color: #f6f1d0;
}
.featured-note p {
  margin: 0;
  color: #54331c;
  line-height: 1.6;
  font-size: .98rem;
}
.featured-note small {
  color: #7e5b38;
  font-weight: 800;
}
.discussion-board__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.discussion-list {
  display: grid;
  gap: 1rem;
}
.discussion-card {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border-radius: 24px;
  border: 1px solid rgba(99, 59, 33, .16);
  background:
    linear-gradient(180deg, rgba(255, 253, 244, .96), rgba(248, 234, 201, .9));
  box-shadow: 0 14px 36px rgba(69, 41, 20, .1);
}
.discussion-card.owned-response {
  border-color: rgba(130, 78, 32, .38);
  box-shadow: 0 0 0 3px rgba(207, 157, 84, .18), 0 14px 36px rgba(69, 41, 20, .1);
}
.discussion-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.discussion-card h4,
.discussion-card h3 {
  margin: .55rem 0 0;
  color: #3f2413;
  font-size: 1.15rem;
}
.discussion-card > p {
  margin: .9rem 0;
  color: #573720;
  line-height: 1.72;
}
.discussion-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .85rem;
  border-top: 1px dashed rgba(97, 57, 31, .2);
}
.discussion-card footer span,
.discussion-card header small {
  color: #765438;
  font-weight: 700;
}
.discussion-card footer div {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.discussion-card footer a,
.discussion-card footer button,
.reply-card a {
  border: 0;
  background: transparent;
  color: #7c3d20;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.reply-box {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 18px;
  background: rgba(97, 57, 31, .07);
}
.reply-box form {
  display: grid;
  gap: .65rem;
}
.reply-thread {
  display: grid;
  gap: .65rem;
  margin-top: .9rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(126, 62, 32, .25);
}
.reply-card {
  padding: .85rem;
  border-radius: 16px;
  background: rgba(255, 249, 228, .9);
  border: 1px solid rgba(99, 59, 33, .13);
}
.reply-card strong {
  display: block;
  color: #402514;
}
.reply-card small {
  color: #7a5940;
  font-weight: 700;
}
.reply-card p {
  margin: .45rem 0;
  line-height: 1.6;
}
.discourse-empty {
  border-radius: 24px;
  background: rgba(255, 249, 228, .86);
  border: 1px dashed rgba(97, 57, 31, .28);
}
.edit-response-section,
.my-response-list {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}
.edit-response-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 28px;
  border: 1px solid rgba(97, 57, 31, .18);
  background: rgba(255, 249, 230, .92);
  box-shadow: 0 18px 45px rgba(69, 41, 20, .12);
}
.split-actions {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.admin-stat-grid-v2 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.admin-comment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 1.25rem;
}
.admin-comment-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem .9rem;
  border-radius: 999px;
  background: rgba(255, 247, 225, .85);
  border: 1px solid rgba(94, 58, 31, .17);
  color: #56331c;
  text-decoration: none;
  font-weight: 900;
}
.admin-comment-tabs a.active {
  background: #65331c;
  color: #fff2c9;
}
.admin-comment-tabs span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
}
.admin-comment-list {
  display: grid;
  gap: 1rem;
}
.admin-comment-card {
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 249, 230, .94);
  border: 1px solid rgba(94, 58, 31, .17);
  box-shadow: 0 14px 36px rgba(66, 39, 18, .1);
}
.admin-comment-card header span {
  display: inline-flex;
  padding: .24rem .55rem;
  border-radius: 999px;
  background: #7d3d20;
  color: #fff1ca;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-comment-card h2 {
  margin: .45rem 0 .15rem;
  font-size: 1.15rem;
  color: #3e2413;
}
.admin-comment-card p {
  color: #563720;
  line-height: 1.65;
}
.admin-comment-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  border-top: 1px dashed rgba(94, 58, 31, .18);
  padding-top: .75rem;
}
.danger-btn {
  background: #8b2e1f !important;
  color: #fff4d2 !important;
}
@media (max-width: 900px) {
  .discourse-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .discourse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discourse-layout {
    grid-template-columns: 1fr;
  }
  .response-station {
    position: static;
  }
  .featured-wall-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .story-discourse-section {
    width: min(100% - 1rem, 1320px);
  }
  .discourse-hero-card,
  .response-station,
  .featured-wall,
  .discussion-board {
    border-radius: 22px;
  }
  .discourse-stats {
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
  }
  .discourse-stats article {
    padding: .85rem;
  }
  .discussion-card header,
  .discussion-card footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .discussion-card footer div,
  .split-actions,
  .split-actions .btn {
    width: 100%;
  }
  .discussion-card footer div {
    justify-content: space-between;
  }
}

/* Final admin spacing and material download controls */
.admin-content-page {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 0%, rgba(224, 183, 104, .16), transparent 14rem),
    linear-gradient(135deg, rgba(255, 250, 238, .84), rgba(239, 217, 184, .72));
  border: 1px solid rgba(95, 58, 34, .16);
  box-shadow: 0 20px 46px rgba(55, 31, 16, .10);
}
.admin-content-page .admin-head {
  padding: .2rem .1rem .4rem;
}
.admin-content-page .admin-head h1 {
  margin: .15rem 0 0;
}
.admin-main-v2 .form-card,
.admin-main-v2 .panel,
.admin-content-page .form-card,
.admin-content-page .panel {
  padding: clamp(1rem, 2.4vw, 1.45rem);
}
.admin-content-page .table-wrap {
  padding: 0;
  overflow: hidden;
}
.admin-content-page .table-wrap h2 {
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1rem, 2.4vw, 1.45rem) .4rem;
}
.admin-content-page .table-wrap table {
  min-width: 760px;
}
.admin-content-page .table-wrap th,
.admin-content-page .table-wrap td {
  padding: 1rem;
  vertical-align: top;
}
.admin-file-links {
  display: grid;
  gap: .35rem;
  min-width: 150px;
}
.admin-file-links a {
  display: inline-flex;
  width: fit-content;
  padding: .42rem .65rem;
  border-radius: 999px;
  background: rgba(122, 55, 30, .1);
  color: #6f341e;
  font-weight: 900;
}
.admin-file-links small {
  color: #6d5945;
  line-break: anywhere;
}
.material-file-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: auto;
}
.material-open,
.material-download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem .85rem;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(63,35,17,.13);
}
.material-open {
  background: rgba(255, 249, 230, .82);
  border: 1px solid rgba(89, 54, 31, .2);
  color: #5b321d;
}
.material-download {
  margin-top: 0;
  background: linear-gradient(135deg, #3f2317, #7a371e);
  color: #fff4dc;
}
.material-open:hover,
.material-download:hover {
  transform: translateY(-1px);
}
.materials-grid--learning .material-download {
  background: linear-gradient(135deg, #3d3212, #806723);
}
@media (max-width: 760px) {
  .admin-content-page {
    padding: .8rem;
    border-radius: 24px;
  }
  .admin-main-v2 .form-card,
  .admin-main-v2 .panel,
  .admin-content-page .form-card,
  .admin-content-page .panel {
    padding: .95rem;
    border-radius: 22px;
  }
  .material-file-actions {
    grid-template-columns: 1fr;
  }
}

/* Final admin security, about profile, and story archive refinements */
.about-hero-profile-frame {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(27, 15, 9, .04), rgba(27, 15, 9, .58)),
    linear-gradient(160deg, #f0dfbf 0%, #be8a55 58%, #402215 100%);
}

.about-hero-profile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: sepia(.15) saturate(.9) contrast(.98);
  transform: scale(1.02);
}

.about-hero-profile-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(31, 17, 10, .78) 100%),
    radial-gradient(circle at 24% 18%, rgba(255, 235, 183, .18), transparent 12rem);
}

.about-hero-profile-frame .about-portrait-seal,
.about-hero-profile-frame .about-portrait-caption {
  z-index: 3;
}

.about-story-card__body {
  gap: .6rem;
}

.about-story-card h3 {
  margin: .05rem 0 .25rem;
}

.about-story-synopsis {
  margin: 0;
  line-height: 1.58;
}

.about-story-notes {
  margin-top: .2rem;
  padding: .85rem;
  border-radius: 18px;
  background: rgba(125, 63, 34, .08);
  border: 1px solid rgba(125, 63, 34, .14);
}

.about-story-notes strong {
  display: block;
  margin-bottom: .25rem;
  color: #7d3f22;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-story-notes p {
  margin: 0;
  line-height: 1.5;
}

.admin-login-note-card {
  grid-template-columns: 50px 1fr;
}

.admin-password-page {
  position: relative;
}

.admin-password-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.admin-password-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  overflow: hidden;
}

.admin-password-form::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -78px;
  width: 220px;
  height: 220px;
  opacity: .08;
  border: 34px double #7e3d22;
  border-radius: 50%;
}

.password-form-seal {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3c56f, #7d3f22);
  color: #fff8e8;
  font-size: 1.55rem;
  box-shadow: 0 18px 38px rgba(77, 37, 17, .18);
}

.admin-password-form label {
  display: grid;
  gap: .45rem;
  color: #372114;
  font-weight: 900;
}

.admin-password-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(91, 52, 30, .18);
  border-radius: 18px;
  background: rgba(255, 252, 244, .92);
  color: #26180f;
  padding: .85rem 1rem;
  outline: none;
}

.admin-password-form input:focus {
  border-color: rgba(138, 63, 34, .62);
  box-shadow: 0 0 0 4px rgba(138, 63, 34, .12);
}

.admin-password-note {
  min-height: 100%;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: 30px;
  border: 1px solid rgba(91, 52, 30, .16);
  background:
    linear-gradient(135deg, rgba(54, 29, 16, .94), rgba(122, 63, 34, .88)),
    radial-gradient(circle at 88% 18%, rgba(236, 190, 101, .22), transparent 10rem);
  color: #fff4dc;
  box-shadow: var(--shadow-soft);
}

.admin-password-note span {
  display: inline-flex;
  margin-bottom: .8rem;
  color: #f2c16d;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.admin-password-note h2 {
  margin: 0 0 .65rem;
  color: #fff6df;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: .95;
}

.admin-password-note p {
  margin: 0;
  color: rgba(255, 245, 220, .84);
  line-height: 1.7;
}

@media (max-width: 920px) {
  .admin-password-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-profile-frame {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .about-hero-profile-frame {
    min-height: 320px;
  }

  .about-story-notes {
    padding: .75rem;
  }
}

.about-author-hero__card .about-fast-facts > div {
  color: #3d2415;
  background: rgba(255, 248, 232, .72);
  border: 1px solid rgba(122, 63, 34, .12);
  border-radius: 18px;
  padding: .7rem;
  margin: 0;
}

.about-author-hero__card .about-fast-facts strong {
  color: #7d3f22;
}

.about-author-hero__card .about-fast-facts span {
  color: #5c4633;
  font-weight: 800;
}


/* Story Archive alignment refinement */
.about-story-synopsis {
  min-height: 7.9em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-story-notes p {
  min-height: 4.5em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-hero-profile-frame .about-portrait-caption {
  padding-top: 0;
}


/* Story Archive full text alignment update */
.about-story-card__body {
  min-height: 430px;
}

.about-story-synopsis {
  min-height: calc(1.58em * 5);
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.about-story-notes {
  min-height: calc((1.5em * 5) + 2.15rem);
}

.about-story-notes p {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

@media (max-width: 980px) {
  .about-story-card__body {
    min-height: auto;
  }

  .about-story-synopsis,
  .about-story-notes {
    min-height: unset;
  }
}
