:root {
  --ink: #26352f;
  --muted: #67736e;
  --paper: #f5f0e6;
  --paper-light: #fbf8f1;
  --sage: #a9b8a6;
  --deep-sage: #526b5d;
  --gold: #d9a75f;
  --line: rgba(38, 53, 47, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper-light);
  font-family: Arial, Helvetica, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.splash-active { overflow: hidden; }
.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;
}

.entry-splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  min-height: 100dvh; padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow: hidden; overscroll-behavior: none; touch-action: none;
  color: #f6f1e7; background:
    radial-gradient(circle at 78% 20%, rgba(217,167,95,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 44%, rgba(169,184,166,.13) 0 140px, transparent 141px),
    #26352f;
  animation: entry-splash-fallback 5s forwards;
}
.entry-splash::before {
  content: ""; position: absolute; width: min(62vw, 660px); aspect-ratio: 1;
  right: min(-20vw, -80px); top: 50%; transform: translateY(-50%);
  border: 1px solid rgba(217,167,95,.35); border-radius: 50%;
  box-shadow: -90px 90px 0 -89px rgba(169,184,166,.45);
}
.entry-splash::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  animation: entry-splash-progress 5s linear forwards;
}
.entry-splash-panel { position: relative; z-index: 1; width: min(860px, 100%); }
.entry-splash-mark {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 42px;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold);
  font-family: Georgia, serif; font-size: 27px;
}
.entry-splash-eyebrow {
  margin: 0 0 18px; color: var(--sage); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
}
.entry-splash-quote {
  max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 92px); line-height: 1.02; letter-spacing: -.04em;
}
.entry-splash-button {
  min-height: 44px; margin-top: 42px; padding: 11px 18px; border: 1px solid var(--sage);
  color: #f6f1e7; background: transparent; cursor: pointer; font-size: 10px;
  text-transform: uppercase; letter-spacing: .14em;
}
.entry-splash-button:hover, .entry-splash-button:focus-visible {
  color: var(--ink); background: var(--paper-light); outline: 2px solid var(--gold); outline-offset: 3px;
}
.entry-splash.is-leaving {
  animation: none; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.entry-splash.is-leaving::after { animation-play-state: paused; }
@keyframes entry-splash-progress {
  to { transform: scaleX(1); }
}
@keyframes entry-splash-fallback {
  0%, 99.9% { opacity: 1; visibility: visible; pointer-events: auto; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.site-header {
  height: 92px;
  padding: 0 clamp(24px, 6vw, 92px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px; border: 1px solid var(--deep-sage); border-radius: 50%;
  display: grid; place-items: center; font-family: Georgia, serif; font-size: 20px;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 18px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: 34px; font-size: 13px; letter-spacing: .05em; }
nav a:hover { color: var(--deep-sage); }

.hero {
  min-height: 670px;
  padding: 115px clamp(24px, 8vw, 126px) 90px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 28%, rgba(217,167,95,.2) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 38%, rgba(82,107,93,.15) 0 120px, transparent 121px),
    linear-gradient(125deg, #f7f2e8 60%, #e8e8d8);
}
.hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -80px; top: 80px;
  border: 1px solid rgba(82,107,93,.22); border-radius: 50%;
  box-shadow: -85px 95px 0 -84px var(--gold), -160px 175px 0 -159px var(--deep-sage);
}
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; color: var(--deep-sage); font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { max-width: 780px; margin: 20px 0 22px; font-size: clamp(52px, 7.2vw, 104px); line-height: .96; letter-spacing: -.045em; }
h1 em { color: var(--deep-sage); font-weight: 400; }
.hero-copy { max-width: 570px; font-family: Georgia, serif; font-size: 20px; line-height: 1.65; color: var(--muted); }
.primary-button {
  display: inline-flex; gap: 35px; align-items: center; margin-top: 24px; padding: 15px 20px;
  background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.daily-note {
  position: absolute; right: clamp(28px, 8vw, 124px); bottom: 60px; width: 325px; z-index: 2;
  padding: 25px 0 0 25px; border-top: 1px solid var(--deep-sage); border-left: 1px solid var(--deep-sage);
}
.daily-note > span, .prompt-card > span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--deep-sage); font-weight: 700; }
.daily-note blockquote { margin: 12px 0; font-family: Georgia, serif; font-size: 17px; line-height: 1.55; }
.daily-note small { color: var(--muted); }

.step-strip, .pdf-section, .notes-section, .prompt-section, footer { padding: 85px clamp(24px, 8vw, 126px); }
.step-strip { background: var(--ink); color: #f8f4ea; }
.step-strip .eyebrow { color: var(--sage); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-heading.compact { margin-bottom: 28px; }
h2 { font-size: clamp(38px, 4vw, 58px); margin: 10px 0 0; letter-spacing: -.03em; }
.text-button, .post-footer button, .prompt-card button {
  border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.step-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid rgba(255,255,255,.18); border-top: 1px solid rgba(255,255,255,.18); }
.step {
  min-height: 112px; padding: 18px; border: 0; border-right: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18); background: transparent; color: #eee9df;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  cursor: pointer; text-transform: uppercase; font-size: 10px; letter-spacing: .12em;
}
.step span { font-family: Georgia, serif; font-size: 28px; color: var(--sage); }
.step:hover, .step.active { background: var(--deep-sage); }

.pdf-section {
  min-width: 0;
  background: #eef0e8;
  padding-left: max(clamp(24px, 8vw, 126px), env(safe-area-inset-left));
  padding-right: max(clamp(24px, 8vw, 126px), env(safe-area-inset-right));
}
.section-intro { max-width: 340px; margin: 0; color: var(--muted); line-height: 1.6; font-family: Georgia, serif; }
.pdf-heading-actions {
  min-width: 0; display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; flex-wrap: wrap;
}
.pdf-search { width: min(245px, 100%); min-width: 0; }
.pdf-category-form {
  min-width: 0; display: flex; align-items: flex-end; gap: 12px; margin: 0; flex-wrap: wrap;
}
.pdf-step-select { display: flex; flex-direction: column; gap: 7px; }
.pdf-step-select span {
  color: var(--deep-sage); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
}
.pdf-step-select select {
  width: 100%; min-width: 220px; max-width: 100%; min-height: 44px;
  padding: 10px 36px 10px 12px; border: 1px solid var(--deep-sage);
  border-radius: 0; background: var(--paper-light); color: var(--ink); cursor: pointer;
}
.pdf-filter-submit {
  min-height: 44px; padding: 9px 15px; border: 1px solid var(--deep-sage);
  background: var(--deep-sage); color: #fff; cursor: pointer; font-size: 9px;
  text-transform: uppercase; letter-spacing: .1em;
}
.pdf-filter-submit:hover { background: var(--ink); }
.database-notice {
  display: flex; gap: 12px; align-items: baseline; margin-bottom: 28px; padding: 17px 20px;
  background: #fff8e8; border-left: 4px solid var(--gold); color: var(--muted); font-size: 13px;
}
.database-notice strong { color: var(--ink); white-space: nowrap; }
.pdf-table-wrap {
  width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--paper-light);
}
.pdf-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pdf-table th {
  padding: 15px 18px; color: var(--deep-sage); background: #e4e8df; border-bottom: 1px solid var(--line);
  font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .14em;
}
.pdf-table th:nth-child(1) { width: 12%; }
.pdf-table th:nth-child(2) { width: 23%; }
.pdf-table th:nth-child(3) { width: 37%; }
.pdf-table th:nth-child(4) { width: 8%; }
.pdf-table th:nth-child(5) { width: 20%; }
.pdf-row { transition: background .18s ease; }
.pdf-row:hover { background: #f3eee4; }
.pdf-row[hidden] { display: none; }
.pdf-table td { padding: 20px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pdf-table tbody tr:last-child td { border-bottom: 0; }
.pdf-document-title {
  min-width: 0; display: flex; align-items: flex-start; gap: 10px; font-family: Georgia, serif;
  font-size: 17px; line-height: 1.35; color: var(--ink);
  overflow-wrap: anywhere;
}
.pdf-document-title:hover { color: var(--deep-sage); text-decoration: underline; text-underline-offset: 3px; }
.pdf-file-badge {
  flex: 0 0 auto; margin-top: 2px; padding: 4px 5px; color: #fff; background: var(--deep-sage);
  font-family: Arial, sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .08em;
}
.pdf-description {
  color: var(--muted); font-family: Georgia, serif; font-size: 14px; line-height: 1.55;
  overflow-wrap: anywhere; word-break: normal;
}
.pdf-pages { color: var(--muted); text-align: center; }
.pdf-actions { display: flex; align-items: flex-start; gap: 10px 18px; flex-wrap: wrap; }
.pdf-actions a {
  min-height: 34px; display: inline-flex; align-items: center; font-size: 10px; text-transform: uppercase;
  letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap;
}
.pdf-empty-state {
  padding: 58px; text-align: center; color: var(--muted); background: rgba(255,255,255,.45);
  border: 1px dashed rgba(38,53,47,.25);
}

.notes-section { background: var(--paper-light); }
.search {
  display: flex; align-items: center; gap: 8px; width: 220px; border-bottom: 1px solid var(--ink); padding: 8px 3px;
}
.search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.post {
  min-height: 315px; padding: 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; transition: background .2s ease;
}
.post[hidden] { display: none; }
.post:hover { background: #f1ebde; }
.post.featured { grid-column: span 2; min-height: 350px; padding-right: 35%; background: var(--paper); position: relative; }
.post.featured::after {
  content: "01"; position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  font-family: Georgia, serif; font-size: 145px; color: rgba(82,107,93,.12);
}
.post-topline, .post-footer { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.step-pill { color: var(--deep-sage); border: 1px solid var(--sage); border-radius: 20px; padding: 5px 10px; }
.post h3 { font-size: clamp(28px, 3vw, 43px); margin: 28px 0 14px; letter-spacing: -.025em; }
.post p { color: var(--muted); font-family: Georgia, serif; line-height: 1.65; font-size: 17px; max-width: 660px; }
.post-footer { margin-top: auto; padding-top: 20px; }
.post-footer button { text-transform: uppercase; font-size: 10px; letter-spacing: .1em; }
.empty-state { padding: 70px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-top: 0; }

.prompt-section { background: #dfe5da; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: center; }
.prompt-section h2 { max-width: 570px; }
.prompt-card { background: var(--paper-light); padding: 40px; border-top: 4px solid var(--gold); box-shadow: 0 18px 45px rgba(38,53,47,.08); }
.prompt-card p { font-family: Georgia, serif; font-size: 24px; line-height: 1.5; }
.prompt-card button { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

footer { background: #202d28; color: #e9e7de; display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
footer p { margin: 0; color: #bfc8c2; line-height: 1.7; font-size: 13px; max-width: 690px; }
.footer-brand .brand-mark { border-color: var(--sage); }
.footer-brand small { color: #aebbb4; }
.privacy { grid-column: 2; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.admin-login-button { grid-column: 2; justify-self: start; padding: 12px 18px; border: 1px solid var(--sage); color: #f6f1e7; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-login-button:hover, .admin-login-button:focus-visible { background: var(--paper-light); color: var(--ink); }

.admin-page { background: var(--paper); }
.admin-shell { min-height: 100dvh; }
.admin-topbar { min-height: 92px; padding: 20px clamp(24px, 6vw, 92px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper-light); }
.admin-panel { padding: 80px clamp(24px, 8vw, 126px); }
.admin-login-panel { max-width: 820px; margin: 0 auto; padding-top: 13vh; }
.admin-panel h1 { margin: 12px 0 20px; font-size: clamp(50px, 7vw, 86px); }
.admin-panel > p, .admin-heading p { color: var(--muted); font-family: Georgia, serif; font-size: 18px; line-height: 1.6; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; margin-bottom: 42px; }
.admin-upload-form, .admin-login-form { width: min(440px, 100%); padding: 24px; border: 1px solid var(--line); background: var(--paper-light); }
.admin-login-form { margin-top: 30px; }
.admin-upload-form label, .admin-login-form label { display: block; margin-bottom: 18px; }
.admin-upload-form label span, .admin-login-form label span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.admin-upload-form input, .admin-upload-form textarea, .admin-upload-form select, .admin-login-form input { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.admin-upload-form textarea { min-height: 110px; resize: vertical; }
.admin-upload-form .primary-button, .admin-login-form .primary-button { margin-top: 4px; border: 0; cursor: pointer; }
.admin-alert { margin: 20px 0; padding: 15px 18px; border-left: 4px solid var(--gold); background: var(--paper-light); }
.admin-alert.error { border-color: #9e433a; }
.admin-alert.success { border-color: var(--deep-sage); }
.admin-document-list { border-top: 1px solid var(--line); }
.admin-document { padding: 22px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 22px; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper-light); }
.admin-document h2 { margin: 0 0 6px; font-size: 24px; }
.admin-document p { margin: 0 0 7px; color: var(--muted); font-family: Georgia, serif; line-height: 1.5; }
.admin-document small { color: var(--muted); }
.admin-document a, .delete-button { border: 0; background: transparent; cursor: pointer; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; text-decoration: underline; text-underline-offset: 4px; }
.delete-button { color: #8d3d36; }
.admin-empty { padding: 40px; color: var(--muted); text-align: center; }

@media (max-width: 1200px) and (min-width: 901px) {
  .pdf-section { padding-inline: clamp(28px, 5vw, 64px); }
  .pdf-section .section-heading { align-items: flex-start; }
  .pdf-heading-actions { max-width: 68%; gap: 16px; }
  .section-intro { flex-basis: 100%; max-width: none; }
  .pdf-table th, .pdf-table td { padding-left: 12px; padding-right: 12px; }
  .pdf-table th:nth-child(1) { width: 13%; }
  .pdf-table th:nth-child(2) { width: 24%; }
  .pdf-table th:nth-child(3) { width: 35%; }
  .pdf-table th:nth-child(4) { width: 8%; }
  .pdf-table th:nth-child(5) { width: 20%; }
  .pdf-actions { gap: 8px; }
}

@media (max-width: 900px) {
  nav { gap: 18px; }
  .hero { min-height: 760px; padding-top: 80px; }
  .daily-note { left: 24px; right: 24px; bottom: 55px; width: auto; }
  .step-grid { grid-template-columns: repeat(3, 1fr); }
  .prompt-section, footer { grid-template-columns: 1fr; }
  .privacy, .admin-login-button { grid-column: 1; }
  .admin-heading { flex-direction: column; }
  .pdf-section {
    padding-left: max(28px, env(safe-area-inset-left));
    padding-right: max(28px, env(safe-area-inset-right));
  }
  .pdf-section .section-heading { align-items: flex-start; flex-direction: column; }
  .pdf-heading-actions { width: 100%; align-items: flex-start; justify-content: flex-start; flex-direction: column; gap: 18px; }
  .section-intro { max-width: 620px; }
  .pdf-category-form { width: 100%; align-items: flex-end; }
  .pdf-step-select { flex: 1 1 230px; min-width: 0; }
  .pdf-search { flex: 2 1 280px; width: auto; }
  .pdf-table-wrap { overflow: visible; border: 0; background: transparent; }
  .pdf-table, .pdf-table tbody, .pdf-table tr, .pdf-table td { display: block; width: 100%; }
  .pdf-table { table-layout: auto; }
  .pdf-table thead { display: none; }
  .pdf-row {
    margin-bottom: 18px; padding: 10px 22px; background: var(--paper-light);
    border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(38,53,47,.05);
  }
  .pdf-row[hidden] { display: none; }
  .pdf-table td {
    display: grid; grid-template-columns: minmax(90px, 20%) minmax(0, 1fr); gap: 16px;
    padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left;
  }
  .pdf-table td:last-child { border-bottom: 0; }
  .pdf-table td::before {
    content: attr(data-label); padding-top: 3px; color: var(--deep-sage);
    font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  }
  .pdf-pages { text-align: left; }
  .pdf-actions a { min-height: 44px; }
}
@media (max-width: 620px) {
  .entry-splash {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .entry-splash-mark { width: 48px; height: 48px; margin-bottom: 32px; font-size: 23px; }
  .entry-splash-quote { font-size: clamp(40px, 14vw, 62px); }
  .entry-splash-button { width: 100%; margin-top: 34px; }
  .site-header { height: 76px; }
  nav { gap: 14px; }
  nav a:nth-child(3) { display: none; }
  h1 { font-size: 54px; }
  .hero-copy { font-size: 17px; }
  .step-strip, .notes-section, .prompt-section, footer { padding: 64px 20px; }
  .pdf-section {
    padding-top: 64px; padding-bottom: 64px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr; }
  .post.featured { grid-column: span 1; padding-right: 32px; }
  .post.featured::after { display: none; }
  .post { min-height: 330px; padding: 28px; }
  .search { width: 100%; }
  .database-notice { align-items: flex-start; flex-direction: column; }
  .pdf-category-form { align-items: stretch; }
  .pdf-step-select { flex-basis: calc(100% - 90px); }
  .pdf-filter-submit { flex: 0 0 78px; }
  .pdf-category-form .pdf-search { order: 3; flex: 1 1 100%; width: 100%; }
  .pdf-row {
    margin-bottom: 14px; padding: 8px 16px;
  }
  .pdf-table td {
    grid-template-columns: 82px minmax(0, 1fr); gap: 10px;
    padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left;
  }
  .pdf-document-title { font-size: 16px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-panel { padding: 55px 20px; }
  .admin-document { grid-template-columns: auto 1fr; }
  .admin-document > a, .admin-document > form { grid-column: 2; }
}

@media (max-width: 380px) {
  .entry-splash {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .entry-splash-quote { font-size: clamp(34px, 13vw, 48px); }
  .pdf-section {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .pdf-category-form { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .pdf-step-select, .pdf-filter-submit, .pdf-category-form .pdf-search {
    width: 100%; min-width: 0; max-width: none; flex: none; order: initial;
  }
  .pdf-filter-submit { min-height: 46px; }
  .pdf-row { padding: 6px 14px; }
  .pdf-table td { display: block; padding: 12px 0; }
  .pdf-table td::before { display: block; margin-bottom: 7px; }
  .pdf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pdf-actions a {
    justify-content: center; min-width: 0; padding: 9px 6px; border: 1px solid var(--sage);
    overflow-wrap: anywhere; white-space: normal; text-align: center;
  }
  .pdf-empty-state { padding: 38px 18px; }
}

@media (pointer: coarse) {
  .entry-splash-button { min-height: 48px; }
  .pdf-step-select select, .pdf-filter-submit, .pdf-actions a { min-height: 44px; }
  .pdf-search { min-height: 44px; }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 950px) {
  .entry-splash { place-items: start center; overflow-y: auto; }
  .entry-splash-panel { padding-block: 22px; }
  .entry-splash-mark { margin-bottom: 18px; }
  .entry-splash-quote { font-size: clamp(34px, 8vw, 54px); }
  .entry-splash-button { margin-top: 20px; }
  .pdf-section { padding-top: 44px; padding-bottom: 44px; }
  .pdf-section .section-heading { margin-bottom: 26px; }
  .pdf-row { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-splash.is-leaving { transition: none; }
  .entry-splash::after { animation-timing-function: steps(5, end); }
}
