@font-face {
  font-family: Fraunces;
  src: url("fonts/fraunces.9a1814381455.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.7c87a648293f.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --navy: #101e38;
  --night: #091b3d;
  --ivory: #f1ecdc;
  --paper: #fdfbf6;
  --ochre: #cd901f;
  --muted: #566074;
  --line: #ddd9ce;
  --serif: Fraunces, Georgia, serif;
  --sans: "DM Sans", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 42vw;
  height: 450px;
  border-radius: 0 0 0 100%;
  background: var(--ivory);
  opacity: 0.42;
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 650;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.65rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.65;
  max-width: 66ch;
}
svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
img {
  max-width: 100%;
}
button {
  color: inherit;
}
a:hover {
  text-decoration-color: var(--ochre);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(1200px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header.has-account {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  justify-self: start;
}
.brand-title {
  font: 650 1.85rem/1.1 var(--serif);
  letter-spacing: -0.035em;
}
.brand-signature {
  border-left: 1px solid var(--ochre);
  padding: 3px 0 3px 20px;
  font-size: 0.91rem;
  line-height: 1.35;
}
.header-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1.2px solid currentColor;
  border-radius: 999px;
  color: #a45b00;
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
}
.header-help::after {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.header-help:hover,
.header-help[aria-current] {
  background: var(--ivory);
}
.header-help svg {
  width: 20px;
  height: 20px;
}
.account-menu {
  position: relative;
  justify-self: end;
}
.account-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.89rem;
  white-space: nowrap;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu summary::marker {
  content: "";
}
.account-menu summary svg {
  width: 26px;
  height: 26px;
  padding: 0;
}
.account-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 20px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 26px #101e3815;
}
.account-name {
  font-weight: 600;
}
.account-email {
  font-size: 0.82rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-panel form {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 10px;
}
.account-panel button {
  width: 100%;
  min-height: 44px;
  text-align: left;
  color: var(--navy);
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 10px 0;
  font-size: 0.9rem;
}
.account-panel button:hover {
  text-decoration: underline;
}
.home-screen {
  background: #f3f0e9;
}
.home-screen::before {
  display: none;
}
.home-screen .app-shell {
  width: min(1200px, calc(100% - 48px));
  min-height: calc(100dvh - 48px);
  margin: 24px auto;
  border: 1px solid #e0dbd0;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 3px 12px #101e380a;
}
.home-screen .site-header {
  border-radius: 20px 20px 0 0;
  border-bottom-color: transparent;
}
.page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 40px 32px 64px;
  flex: 1;
}
.home-content {
  width: 100%;
  padding: 34px 36px 40px;
}
.small-label {
  display: block;
  font: 500 0.85rem/1.4 var(--sans);
  color: var(--muted);
  margin-bottom: 15px;
}
.site-footer {
  width: min(1040px, 100%);
  padding: 20px 32px 36px;
  margin: auto auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}
.site-footer a {
  padding: 8px 0;
}
.site-footer a:hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.button svg {
  width: 19px;
  height: 19px;
}
.primary {
  background: var(--navy);
  color: #fff;
}
.primary:hover {
  background: #233857;
}
.outline {
  background: transparent;
  border-color: var(--navy);
}
.outline:hover {
  background: var(--ivory);
}
.ivory {
  background: var(--ivory);
  color: var(--navy);
}
.ivory:hover {
  background: #fff;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 0.88rem;
  margin-bottom: 26px;
}
.back-link:hover {
  text-decoration: underline;
}
.underlined {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.greeting {
  position: relative;
  isolation: isolate;
  min-height: 210px;
  padding: 24px 0 28px;
  margin-bottom: 20px;
}
.greeting h1 {
  max-width: min(72%, 22ch);
  margin-bottom: 30px;
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
}
.greeting p {
  font-size: 1.05rem;
  max-width: 58ch;
}
.path-drawing {
  width: 230px;
  height: 130px;
  color: var(--ochre);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}
.section-heading h2 {
  flex-shrink: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.15;
}
.section-rule {
  height: 1px;
  min-width: 24px;
  background: var(--ochre);
  flex: 1;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
}
.filters a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 38px;
  padding: 6px 22px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.2;
  background: transparent;
}
.filters a::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}
.filters a[aria-current] {
  border-color: transparent;
  background: linear-gradient(135deg, #b06300, #a45b00);
  color: #fff;
  font-weight: 700;
}
.filters a:not([aria-current]):hover {
  background: var(--ivory);
}
.resource-list {
  display: grid;
  gap: 14px;
}
.resource-card {
  display: grid;
  grid-template-columns: clamp(180px, 28%, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 180px;
  padding: 14px;
  border: 1px solid #e5c69e;
  border-radius: 18px;
  background: linear-gradient(120deg, #fffdf8, #faf6ee);
}
.resource-card-image {
  width: 100%;
  height: 156px;
  object-fit: cover;
  object-position: 88% center;
  border-radius: 12px;
}
.resource-card-content {
  min-width: 0;
}
.resource-card-content h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.resource-card-content h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.resource-card-metadata {
  margin-top: 6px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--navy);
}
.resource-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 7px;
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--navy);
}
.resource-card-open {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 112px;
  min-height: 42px;
  margin-right: 6px;
  padding: 7px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b06300, #a45b00);
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}
.resource-card-open::after {
  content: "";
  position: absolute;
  inset: -1px 0;
}
.resource-card-open:hover {
  background: #975400;
}
.home-screen:not(.document-screen) .site-footer {
  width: calc(100% - 72px);
  max-width: none;
  padding: 18px 0 22px;
  border-top: 1px solid var(--ochre);
  color: var(--navy);
}
.empty-state {
  padding: 42px 24px 54px;
  text-align: center;
  background: #f6f2e8;
  border-radius: 16px;
}
.empty-state svg {
  width: 170px;
  height: 100px;
  color: var(--ochre);
  margin-bottom: 22px;
}
.empty-state h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.empty-state p {
  margin: 0 auto;
  color: var(--muted);
}
.empty-state .button {
  margin-top: 20px;
}
.access-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 28px;
}
.stack-form {
  display: grid;
  gap: 20px;
  margin: 30px 0 20px;
}
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 550;
  margin-bottom: 9px;
}
.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #babdbf;
  border-radius: 8px;
  padding: 13px 15px;
  background: #fff;
  color: var(--navy);
  font-size: 1rem;
}
.field input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
}
.form-note {
  font-size: 0.82rem !important;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
}
.stack-form .button {
  width: 100%;
  min-height: 50px;
}
.errorlist {
  list-style: none;
  padding: 12px 15px;
  border-left: 3px solid #9f3333;
  background: #fff1ee;
  color: #7f2424;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 8px 0;
}
.paper {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefb;
}
.narrow {
  max-width: 650px;
  margin: 20px auto;
}
.paper h1 {
  margin-bottom: 25px;
}
.paper p + p {
  margin-top: 18px;
}
.paper > .button {
  margin-top: 26px;
}
.code-field input {
  font-size: 1.7rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.introduction {
  font-size: 1rem;
  line-height: 1.7;
}
.introduction p + p {
  margin-top: 14px;
}
.document-heading {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 30px;
}
.document-heading > div {
  max-width: 650px;
}
.document-heading h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}
.document-heading > .button {
  margin-top: 30px;
}
.pdf-viewer {
  width: 100%;
  height: 75vh;
  min-height: 450px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.help-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.help-option {
  min-width: 0;
  padding: 24px;
  background: linear-gradient(135deg, #fbf6eb, #fdfbf6);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.help-label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 999px;
  background: #fbe6bd;
  font-weight: 650;
  line-height: 1.35;
}
.help-option h2 {
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ochre);
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  line-height: 1.12;
}
.help-option p {
  font-size: 1rem;
  line-height: 1.5;
}
.help-call-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
}
.help-call-actions .button {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 1.05rem;
  white-space: normal;
}
.help-call-actions .button svg {
  width: 24px;
  height: 24px;
}
.help-call-actions .primary {
  background: linear-gradient(120deg, #183b52, var(--night));
}
.help-call-actions .primary:hover {
  background: #233857;
}
.help-option--emergency {
  border: 2px solid var(--ochre);
  padding: 23px;
  background: linear-gradient(135deg, #fff1d7, #fdf9ef);
}
.help-option--emergency .help-label {
  background: #ffdfa1;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.help-notes {
  margin-top: 36px;
}
.help-notes p {
  max-width: none;
  font-size: 0.94rem;
  line-height: 1.5;
}
.help-notes p + p {
  margin-top: 20px;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 32px 0 15px;
}
.prose p {
  font-size: 0.95rem;
  color: var(--muted);
}
@media (min-width: 1400px) {
  .audio-landscape {
    height: 490px;
    background-position: center 48%;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 10px 16px;
    min-height: 64px;
    gap: 12px;
  }
  .brand-title {
    font-size: 1.38rem;
    white-space: nowrap;
  }
  .brand-signature {
    font-size: 0.7rem;
  }
  .header-help {
    flex-direction: row;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    font-size: 0.75rem;
  }
  .header-help::after {
    inset: -7px 0;
  }
  .header-help svg {
    width: 17px;
    height: 17px;
  }
  .account-menu summary {
    flex-direction: row;
    gap: 6px;
    padding: 0;
    font-size: 0.76rem;
  }
  .account-menu summary svg {
    width: 23px;
    height: 23px;
    padding: 0;
  }
  .page {
    padding: 24px 22px 40px;
  }
  .site-footer {
    padding: 24px 22px 32px;
  }

  .home-screen .app-shell {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .home-screen .site-header {
    border-radius: 0;
  }
  .home-content {
    padding: 16px 18px 30px;
  }
  .greeting {
    min-height: 150px;
    padding: 14px 0 18px;
    margin-bottom: 10px;
  }
  .greeting h1 {
    font-size: 2.2rem;
    max-width: min(72%, 12ch);
    line-height: 0.98;
    margin-bottom: 30px;
  }
  .greeting-name {
    display: block;
    overflow-wrap: anywhere;
  }
  .greeting p {
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: min(76%, 30ch);
  }
  .section-heading {
    gap: 18px;
  }
  .section-heading h2 {
    font-size: 1.75rem;
  }
  .filters {
    gap: 12px;
    margin: 8px 0 14px;
  }
  .filters a {
    min-width: 74px;
    min-height: 32px;
    padding: 4px 16px;
    font-size: 0.875rem;
  }
  .filters a::after {
    inset: -6px 0;
  }
  .resource-list {
    gap: 10px;
  }
  .resource-card {
    grid-template-columns: 40% minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: start;
    gap: 4px 12px;
    min-height: 156px;
    padding: 10px;
    border-radius: 15px;
  }
  .resource-card-image {
    grid-column: 1;
    grid-row: 1 / -1;
    height: auto;
    aspect-ratio: 1.1;
    border-radius: 10px;
  }
  .resource-card-content {
    grid-column: 2;
    grid-row: 1;
  }
  .resource-card-content h3 {
    font-size: 1.2rem;
    line-height: 1.08;
  }
  .resource-card-metadata {
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .resource-card-description {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.2;
  }
  .resource-card-open {
    grid-column: 2;
    grid-row: 2;
    min-width: 82px;
    min-height: 32px;
    margin-right: 0;
    padding: 5px 16px;
    font-size: 0.92rem;
  }
  .resource-card-open::after {
    inset: -6px 0;
  }
  .home-screen:not(.document-screen) .site-footer {
    width: calc(100% - 36px);
    padding: 13px 0 18px;
    font-size: 0.78rem;
    gap: 12px;
  }
  .empty-state {
    padding: 32px 20px 40px;
  }
  .empty-state h3 {
    font-size: 1.55rem;
  }
  .empty-state p {
    font-size: 0.9rem;
  }
  .stack-form {
    margin-top: 24px;
  }
  .paper {
    padding: 28px 24px;
    border-radius: 12px;
  }
  .narrow {
    margin: 10px auto;
  }
  .paper h1 {
    font-size: 2.15rem;
  }
  .document-heading {
    flex-direction: column;
    gap: 16px;
  }
  .document-heading h1 {
    font-size: 2.15rem;
  }
  .document-heading > .button {
    margin-top: 0;
  }
  .pdf-viewer {
    height: 65vh;
    min-height: 420px;
  }
  .help-options {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .help-option {
    padding: 18px;
    gap: 12px;
    border-radius: 14px;
  }
  .help-option--emergency {
    padding: 17px;
  }
  .help-label {
    padding: 3px 12px;
    font-size: 0.9rem;
  }
  .help-option h2 {
    font-size: 1.55rem;
    padding-bottom: 12px;
  }
  .help-option p {
    font-size: 0.94rem;
    line-height: 1.45;
  }
  .help-call-actions {
    gap: 10px;
    padding-top: 2px;
  }
  .help-call-actions .button {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 0.96rem;
  }
  .help-call-actions .button svg {
    width: 22px;
    height: 22px;
  }
  .help-notes {
    margin-top: 22px;
  }
  .help-notes p {
    font-size: 0.9rem;
  }
  .help-notes p + p {
    margin-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
body {
  overflow-x: clip;
}
.document-heading > .document-actions {
  max-width: none;
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.print-pages {
  display: none;
}
@media (max-width: 1000px) {
  .document-heading {
    flex-direction: column;
    gap: 20px;
  }
  .document-heading > .document-actions {
    margin-top: 0;
  }
}
@media print {
  @page {
    size: auto;
    margin: 8mm;
  }
  body.printing {
    display: block;
    background: #fff;
    color: #000;
    margin: 0;
    padding: 0;
  }
  body.printing::before {
    display: none;
  }
  body.printing > * {
    display: none !important;
  }
  body.printing > .print-pages {
    display: block !important;
  }
  .print-sheet {
    break-after: page;
    page-break-after: always;
  }
  .print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .print-sheet img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 270mm;
    object-fit: contain;
  }
}
.document-page {
  width: 100%;
  padding: 24px 36px 32px;
}
.document-topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}
.document-topbar nav {
  flex-shrink: 0;
}
.document-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.document-back svg {
  width: 22px;
  height: 22px;
}
.document-back:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.document-topbar-rule {
  height: 1px;
  background: var(--ochre);
  flex: 1;
}
.document-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.document-actions .button {
  padding: 10px 20px;
  min-height: 46px;
}
.document-actions svg {
  width: 22px;
  height: 22px;
}
.document-screen .site-footer {
  width: 100%;
  padding: 22px 36px;
  border-top: 1px solid var(--ochre);
}
.pdf-reader {
  border: 1px solid #d5cfc2;
  border-radius: 16px;
  overflow: hidden;
  background: #eee9de;
}
.pdf-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: #f7f1e5;
  border-bottom: 1px solid var(--line);
}
.pdf-pagination,
.pdf-zoom {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}
.pdf-page-count {
  white-space: nowrap;
  text-align: center;
}
.pdf-page-compact {
  display: none;
}
.pdf-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #cdc6b9;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.87rem;
  font-weight: 550;
}
.pdf-toolbar button svg {
  width: 18px;
  height: 18px;
}
.pdf-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pdf-toolbar button:not(:disabled):hover {
  background: #fff;
  border-color: var(--ochre);
}
.pdf-zoom {
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid #d8c7a4;
}
.pdf-zoom button {
  font-size: 1.4rem;
  border-color: transparent;
  background: transparent;
}
.pdf-zoom-icon {
  width: 20px;
  height: 20px;
  margin-inline: 2px;
}
.pdf-status {
  padding: 24px;
  max-width: none;
  font-size: 0.93rem;
}
.pdf-surface {
  padding: 20px 16px;
  overflow: auto;
}
.pdf-surface canvas {
  display: block;
  max-width: none;
  margin: 0 auto;
  background: white;
  box-shadow: 0 2px 9px #101e3814;
}
.pdf-text-version {
  padding: 20px 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.pdf-text-version summary {
  cursor: pointer;
  min-height: 44px;
  line-height: 44px;
  font-size: 0.9rem;
}
.pdf-text-version div {
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 1.1rem;
  padding: 16px 0;
}
.document-note {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .document-page {
    padding: 12px 18px 24px;
  }
  .document-topbar {
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
  }
  .document-back {
    gap: 6px;
    font-size: 0.84rem;
  }
  .document-back svg {
    width: 18px;
    height: 18px;
  }
  .document-topbar-rule {
    display: none;
  }
  .document-actions {
    gap: 8px;
  }
  .document-actions .button {
    width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  .document-action-label {
    display: none;
  }
  .document-screen .site-footer {
    padding: 20px 18px;
  }
  .pdf-reader {
    border-radius: 12px;
  }
  .pdf-toolbar {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
  }
  .pdf-pagination {
    gap: 4px;
    min-width: 0;
  }
  .pdf-toolbar button {
    padding: 8px;
  }
  .pdf-navigation-label {
    display: none;
  }
  .pdf-page-count {
    min-width: 42px;
    font-size: 0.8rem;
  }
  .pdf-page-compact {
    display: inline;
  }
  .pdf-page-count [data-pdf-pages] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .pdf-zoom {
    flex-shrink: 0;
    padding-left: 5px;
    gap: 0;
  }
  .pdf-zoom-icon {
    width: 18px;
    height: 18px;
    margin-inline: 0;
  }
  .pdf-surface {
    padding: 16px;
  }
}
@media (max-width: 380px) {
  .document-page {
    padding-inline: 16px;
  }
}

@media (max-width: 1000px) {
  .app-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .brand-signature {
    border: 0;
    padding: 0;
  }
}
@media (max-width: 380px) {
  .brand-title {
    font-size: 1.28rem;
  }
  .brand-signature {
    font-size: 0.67rem;
  }
  .site-header {
    padding-inline: 12px;
    gap: 8px;
  }
}

/* Audio — Carnet clair (version B validée). */
.audio-breadcrumb {
  margin-bottom: 16px;
}
.listening-guidance {
  margin-top: 8px;
  border: 1px solid #c9bea9;
  border-radius: 16px;
  background: #f7f1e566;
}
.listening-guidance summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  min-height: 58px;
  font: 650 1.35rem/1.3 var(--serif);
  list-style: none;
  cursor: pointer;
}
.listening-guidance summary::-webkit-details-marker {
  display: none;
}
.listening-guidance summary::marker {
  content: "";
}
.listening-guidance summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.listening-guidance summary::after {
  content: "";
  width: 11px;
  height: 11px;
  margin: -5px 3px 0;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.listening-guidance[open] summary::after {
  transform: rotate(225deg);
  margin-top: 6px;
}
.listening-guidance > div {
  padding: 4px 24px 24px;
  border-top: 1px solid var(--line);
}
.listening-guidance p {
  font-size: 0.98rem;
  line-height: 1.7;
}
.listening-guidance p + p {
  margin-top: 18px;
}
.audio-player {
  margin-top: 22px;
  padding: 28px 28px 22px;
  border: 1px solid #d7cfc0;
  border-radius: 18px;
  background: linear-gradient(120deg, #f8f0e2, #fbf6ec);
}
.audio-player audio {
  width: 100%;
  margin: 12px 0;
}
.enhanced-audio {
  display: none;
}
.play-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  margin: 0 0 20px;
}
.play-button {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  padding: 0;
  border: 1px solid var(--night);
  border-radius: 50%;
  color: var(--ivory);
  background: linear-gradient(145deg, #193753, var(--night));
}
.play-button:hover {
  background: #233d5a;
}
.play-button svg {
  width: 64px;
  height: 64px;
}
.skip-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
  color: var(--navy);
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.skip-button:hover {
  background: #eadfc955;
}
.skip-button svg {
  width: 64px;
  height: 64px;
  position: absolute;
  inset: 0;
}
.skip-button span {
  position: relative;
  display: block;
  font-size: 1.2rem;
  margin-top: 8px;
  font-weight: 650;
}
.audio-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.audio-progress output {
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.audio-seek {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 44px;
  background: transparent;
  cursor: pointer;
  margin: 0;
  accent-color: var(--ochre);
}
.audio-seek::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: #e6d8bc;
}
.audio-seek::-moz-range-track {
  height: 5px;
  border-radius: 99px;
  background: #e6d8bc;
}
.audio-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7.5px;
  border: 1px solid #b97d17;
  border-radius: 50%;
  background: var(--ochre);
}
.audio-seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 1px solid #b97d17;
  border-radius: 50%;
  background: var(--ochre);
}
.audio-seek:disabled {
  opacity: 0.45;
  cursor: default;
}
.player-feedback {
  font-size: 0.9rem;
  color: #873d23;
  margin-top: 12px;
}
.player-feedback:empty {
  display: none;
}
.audio-attention {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
}
.audio-attention > svg {
  width: 22px;
  height: 22px;
  color: #a66e12;
}
.audio-attention p {
  min-width: 0;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.5;
  max-width: 90ch;
}
.after-listening {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--ochre);
}
.after-listening h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.after-listening p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 90ch;
}
.after-listening p + p {
  margin-top: 16px;
}
.audio-screen .site-footer {
  border-top-color: var(--ochre);
}
@media (max-width: 760px) {
  .audio-breadcrumb {
    margin-bottom: 8px;
  }
  .listening-guidance {
    border-radius: 13px;
  }
  .listening-guidance summary {
    font-size: 1.12rem;
    min-height: 54px;
    padding: 14px 16px;
    gap: 12px;
  }
  .listening-guidance > div {
    padding: 12px 16px 20px;
  }
  .listening-guidance p {
    font-size: 0.94rem;
  }
  .audio-player {
    margin-top: 16px;
    padding: 18px 16px 10px;
    border-radius: 16px;
  }
  .play-controls {
    gap: 28px;
    margin-bottom: 6px;
  }
  .play-button {
    width: 80px;
    height: 80px;
  }
  .play-button svg {
    width: 44px;
    height: 44px;
  }
  .skip-button {
    width: 56px;
    height: 56px;
  }
  .skip-button svg {
    width: 56px;
    height: 56px;
  }
  .skip-button span {
    font-size: 1.05rem;
    margin-top: 7px;
  }
  .audio-progress {
    gap: 10px;
  }
  .audio-progress output {
    font-size: 0.8rem;
  }
  .audio-attention {
    gap: 8px;
    margin-top: 8px;
  }
  .audio-attention > svg {
    width: 20px;
    height: 20px;
  }
  .audio-attention p {
    font-size: 0.85rem;
  }
  .after-listening {
    margin-top: 24px;
    padding-top: 18px;
  }
  .after-listening h2 {
    font-size: 1.65rem;
  }
  .after-listening p {
    font-size: 0.94rem;
    line-height: 1.6;
  }
}

/* Bandeau partagé des pages intérieures : décor sous les textes HTML. */
.resource-hero {
  position: relative;
  isolation: isolate;
  min-height: 260px;
  padding: 24px 0 28px;
  margin-bottom: 18px;
}
.resource-hero h1 {
  max-width: min(64%, 23ch);
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  overflow-wrap: break-word;
}
.resource-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
}
.resource-hero-subtitle,
.resource-hero-duration {
  display: inline-block;
  padding: 4px 15px;
  border-radius: 999px;
  background: #f6e7c8;
  font-weight: 650;
  font-size: 0.96rem;
  line-height: 1.4;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.resource-hero-introduction {
  margin-top: 16px;
}
.resource-hero-introduction p {
  max-width: 80ch;
  font-size: 1rem;
  line-height: 1.55;
}
.resource-hero-introduction p + p {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .resource-hero {
    min-height: 0;
    padding: 16px 0 20px;
    margin-bottom: 14px;
  }
  .resource-hero h1 {
    max-width: min(72%, 10ch);
    font-size: 2.05rem;
    line-height: 1.06;
  }
  .resource-hero-meta {
    margin-top: 12px;
    gap: 8px;
  }
  .resource-hero-subtitle,
  .resource-hero-duration {
    padding: 3px 12px;
    font-size: 0.86rem;
  }
  .resource-hero-introduction {
    margin-top: 14px;
  }
  .resource-hero-introduction p {
    font-size: 0.94rem;
    line-height: 1.5;
  }
}
@media (max-width: 380px) {
  .resource-hero h1 {
    font-size: 1.85rem;
  }
}

/* Fonds complets Imagen : une seule image pour le décor et l’illustration. */
.illustrated-header {
  --header-background-height: 280px;
}
.illustrated-header--home {
  --header-background: url("images/headers/home-v1.3df1029f738c.webp");
}
.illustrated-header--pdf {
  --header-background: url("images/headers/pdf-v1.5e7232ffbec3.webp");
}
.illustrated-header--audio {
  --header-background: url("images/headers/audio-v1.7476ae50c32b.webp");
}
.illustrated-header--help {
  --header-background: url("images/headers/help-v1.e680c103db55.webp");
}
.illustrated-header--privacy {
  --header-background: url("images/headers/home-v1.3df1029f738c.webp");
}
.illustrated-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px -36px;
  background-image: var(--header-background);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto var(--header-background-height);
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 12px,
    #000 calc(100% - 24px),
    transparent
  );
  pointer-events: none;
}
@media (max-width: 760px) {
  .illustrated-header {
    --header-background-height: 200px;
  }
  .illustrated-header::before {
    inset-inline: -18px;
  }
}
@media (max-width: 380px) {
  .illustrated-header::before {
    inset-inline: -16px;
  }
}

.interior-breadcrumb .document-topbar-rule {
  display: block;
}
.interior-breadcrumb {
  column-gap: 16px;
}
.resource-hero--help .resource-hero-introduction {
  max-width: 64%;
}
@media (max-width: 760px) {
  .resource-hero--help .resource-hero-introduction {
    max-width: 62%;
  }
}

/* Connexion A : le chemin et le formulaire évolutif sur le même papier. */
.auth-screen .app-shell {
  max-width: 1040px;
  overflow: clip;
}
.auth-screen .site-header {
  position: static;
  padding: 20px 36px;
}
.auth-screen .app-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.auth-screen .brand-signature {
  padding: 0;
  border: 0;
}
.auth-page {
  width: 100%;
  padding: 0;
}
.auth-hero {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  padding: 38px 36px 36px;
}
.auth-hero::before {
  inset: 0;
}
.auth-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  line-height: 1.04;
}
.auth-hero p {
  max-width: min(65%, 37ch);
  margin-top: 16px;
  font-size: 1.15rem;
  line-height: 1.4;
}
.auth-panel {
  width: min(100%, 692px);
  margin: 0 auto;
  padding: 24px 36px 40px;
}
.auth-instruction {
  font-size: 1rem;
  line-height: 1.5;
}
.auth-code-instruction strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.auth-code-validity {
  margin: 6px 0 20px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.auth-delivery {
  margin-top: 20px;
  text-align: center;
}
.auth-delivery h2 {
  font: 600 0.95rem/1.4 var(--sans);
  letter-spacing: normal;
}
.auth-delivery .auth-delivery-note {
  margin-top: 8px;
}
.auth-form {
  gap: 20px;
  margin: 24px 0 18px;
}
.auth-form .field label {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 12px;
}
.auth-form .field input {
  background: transparent;
  border-color: #8794a8;
  border-radius: 10px;
}
.auth-form .button {
  font-size: 1.05rem;
  background: linear-gradient(120deg, #153650, var(--night));
}
.auth-form .button:hover {
  background: #233857;
}
.auth-note,
.auth-invite {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: none;
}
.auth-invite {
  margin-top: 18px;
  font-style: italic;
}
.auth-delivery-note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.auth-change-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.auth-form .code-field > label {
  font: 650 1.35rem/1.2 var(--serif);
}
.otp-digits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto repeat(
      3,
      minmax(0, 1fr)
    );
  align-items: center;
  gap: 10px;
  max-width: 420px;
}
.auth-form .otp-digits input {
  min-width: 0;
  height: 54px;
  padding: 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 8px;
}
.otp-digits > span {
  font-size: 1.2rem;
}
.remember-choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
}
.remember-choice input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--navy);
}
.remember-choice p {
  padding-left: 30px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.auth-feedback {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .auth-screen .site-header {
    padding: 16px 20px;
  }
  .auth-page {
    padding: 0;
  }
  .auth-hero {
    min-height: 250px;
    padding: 20px 20px 116px;
  }
  .auth-hero::before {
    inset: 0;
    background-position: right bottom;
    background-size: auto 180px;
  }
  .auth-hero h1 {
    font-size: 2.1rem;
    max-width: 17ch;
  }
  .auth-hero p {
    max-width: 30ch;
    font-size: 1rem;
    margin-top: 12px;
  }
  .auth-panel {
    padding: 8px 20px 28px;
  }
  .auth-instruction {
    font-size: 0.96rem;
  }
  .auth-form {
    gap: 18px;
    margin-top: 20px;
  }
  .auth-form .field label {
    font-size: 1rem;
  }
  .auth-form .code-field > label {
    font-size: 1.3rem;
  }
  .otp-digits {
    gap: 6px;
  }
  .auth-form .otp-digits input {
    min-height: 48px;
    height: 48px;
  }
  .auth-note,
  .auth-invite {
    text-align: left;
    font-size: 0.86rem;
  }
  .remember-choice label {
    font-size: 0.9rem;
  }
}

/* Phrase du jour : paysage bleu de la maquette, texte conservé en HTML. */
.daily-inspiration {
  --inspiration-padding-x: 32px;
  --inspiration-padding-y: 24px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  margin: 0 -12px 24px;
  padding: var(--inspiration-padding-y) var(--inspiration-padding-x);
  border-radius: 18px;
  color: #fff;
  background-color: var(--night);
  background-image:
    linear-gradient(
      to bottom,
      rgb(9 27 61 / 0) 0%,
      rgb(9 27 61 / 40%) 20%,
      rgb(0 10 30 / 90%) 100%
    ),
    url("images/daily-inspiration-v1.f8a3ac58e275.webp");
  background-size: cover;
  background-position: center 55%;
}
.daily-inspiration blockquote {
  margin: 0;
  min-width: 0;
}
.daily-inspiration blockquote p {
  max-width: 80%;
  font: 650 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--serif);
  color: #fff;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .daily-inspiration {
    min-height: 106px;
    margin: 0 -8px 18px;
    --inspiration-padding-x: 20px;
    --inspiration-padding-y: 18px;
    border-radius: 14px;
  }
  .daily-inspiration blockquote p {
    font-size: 1.45rem;
    line-height: 1.12;
  }
}

.inspiration-explanation-area {
  position: relative;
  margin-top: 12px;
}
.inspiration-explanation {
  margin-top: 0;
  max-width: 75ch;
  font: 400 1rem/1.5 var(--sans);
  color: #fff;
}
@media (max-width: 760px) {
  .inspiration-explanation-area {
    margin-top: 10px;
  }
  .inspiration-explanation {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}
