body.is-documents-route {
  --doc-ink: #3c3452;
  --doc-copy: #665f71;
  --doc-paper: #fff;
  --doc-warm: #fff5eb;
  --doc-line: #e8e1da;
  --doc-link: #644a83;
  --doc-radius: 24px;
  --doc-space: clamp(48px, 6.5vw, 96px);
  margin: 0;
  background: var(--doc-paper);
  color: var(--doc-ink);
  font: 400 16px/1.55 Onest, system-ui, sans-serif;
}

.documents-page .container { width: var(--playmax-content-width); max-width: none; margin-inline: auto; }
.documents-page :is(h1, h2, h3, h4, p, figure, dl, dd, ul, ol) { margin: 0; }
.documents-page :is(ul, ol) { padding: 0; list-style: none; }
.documents-page :is(h1, h2, h3) { color: var(--doc-ink); font-family: Nunito, system-ui, sans-serif; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.documents-page h4 { color: var(--doc-ink); font: 700 17px/1.28 Onest, system-ui, sans-serif; }
.documents-page p { color: var(--doc-copy); }
.documents-page :is(a, button):focus-visible { outline: 3px solid var(--doc-link); outline-offset: 3px; }
.documents-page img { display: block; max-width: 100%; height: auto; }
.doc-symbols { position: absolute; overflow: hidden; }
.doc-section:focus { outline: none; }
.doc-warm { background: var(--doc-warm); }

/* Use the storefront header with the approved documents layout. */
.is-documents-route .site-header { background: #fff; border-color: var(--doc-line); }
body.is-documents-route :is(.header-inner, .site-footer) { width: var(--playmax-content-width); max-width: none; margin-inline: auto; }
.is-documents-route .header-inner { height: auto; min-height: 73px; padding: 0; grid-template: auto / auto minmax(0, 1fr) auto; gap: clamp(14px, 3vw, 40px); }
.is-documents-route .header-inner > * { grid-area: auto; }
.is-documents-route .brand { width: 126px; }
.is-documents-route .brand img { height: auto; }
.is-documents-route .desktop-nav { justify-content: center; gap: clamp(10px, 2vw, 30px); }
.is-documents-route .desktop-nav a { padding: 10px 0; color: var(--doc-copy); font-size: 14px; font-weight: 650; }
.is-documents-route .desktop-nav a:hover, .is-documents-route .site-footer a:hover { color: var(--doc-link); text-decoration: underline; }
.is-documents-route .header-actions > .button { min-height: 50px; padding: 10px 20px; border-color: transparent; box-shadow: none; background: var(--doc-ink); font-size: 14px; font-weight: 700; line-height: 1.3; }
.is-documents-route .header-actions > .button:hover { background: #504367; transform: none; }
.is-documents-route .menu-button,
.is-documents-route :is(#playmax-companion, .companion-track, .companion-footer-call) { display: none; }

.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-action { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 50px; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.3; }
.doc-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-primary { color: #fff; background: var(--doc-ink); }
.doc-primary:hover { color: #fff; background: #504367; }
.doc-outline { color: var(--doc-ink); background: var(--doc-paper); border-color: #ddd4c9; border-radius: 16px; }
.doc-outline:hover { color: var(--doc-ink); border-color: var(--doc-link); }
.doc-small { min-height: 44px; padding: 8px 14px; border-radius: 12px; }

.doc-hero { padding-block: clamp(44px, 6vw, 86px) clamp(36px, 4.4vw, 64px); }
.doc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 6vw, 88px); }
.documents-page .doc-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.doc-kicker::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 16px; border-radius: 50%; background: #d7837b; box-shadow: 12px 0 #edd47e, 24px 0 #9bbd8b; }
.doc-hero h1 { font-size: clamp(37px, 5vw, 74px); text-wrap: balance; }
.doc-hero-copy > p:not(.doc-kicker) { max-width: 59ch; margin-top: 16px; }
.doc-hero-copy .doc-hero-lead { font-size: clamp(16px, 1.55vw, 22px); }
.doc-hero-copy .doc-actions { margin-top: 25px; }
.documents-page .hero-documents { position: relative; width: min(100%, 500px); aspect-ratio: 1.15; margin-inline: auto; }
.hero-sheet { position: absolute; width: 54%; border-radius: 10px; box-shadow: 0 13px 32px rgba(60, 52, 82, .15); }
.hero-mark { left: 4%; top: 12%; transform: rotate(-7deg); }
.hero-declaration { right: 0; top: 10%; transform: rotate(6deg); }
.hero-certificate { left: 25%; top: 0; transform: rotate(-1deg); }
.hero-doc-badge { position: absolute; left: 13%; bottom: 4%; display: flex; align-items: center; gap: 9px; border-radius: 16px; padding: 8px 12px; background: #fff; box-shadow: 0 9px 27px rgba(60, 52, 82, .18); font-size: 14px; font-weight: 700; line-height: 1.25; }
.hero-doc-badge b { padding: 9px 7px; border-radius: 9px; background: var(--doc-ink); color: #fff; font-size: 12px; }

.doc-facts, .doc-tests, .doc-timeline, .doc-card-grid, .doc-registry-numbers, .doc-parties { display: grid; gap: 12px; }
.documents-page .doc-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 3.7vw, 54px); }
.doc-facts li, .doc-tests li, .doc-timeline li, .doc-file-card, .doc-parties > div, .doc-steps li { border: 1px solid var(--doc-line); border-radius: var(--doc-radius); background: #fff; }
.doc-facts li { padding: 17px 20px; }
.doc-facts b, .doc-facts span { display: block; }
.doc-facts b { margin-bottom: 4px; font: 800 34px/1 Nunito, system-ui, sans-serif; }
.doc-facts span { color: var(--doc-copy); font-size: 14px; }

.doc-section { padding-block: var(--doc-space); scroll-margin-top: 92px; }
.doc-section-head { margin-bottom: clamp(25px, 3.1vw, 46px); }
.doc-section-head h2 { font-size: clamp(31px, 4vw, 56px); text-wrap: balance; }
.doc-section-head h2 + p { max-width: 66ch; margin-top: 15px; font-size: clamp(16px, 1.3vw, 19px); }
.certificate-card { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); gap: clamp(22px, 4vw, 58px); align-items: start; padding: clamp(18px, 3vw, 42px); border: 1px solid var(--doc-line); border-radius: 32px; }
.certificate-preview button, .doc-thumbnail { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.certificate-preview button { position: relative; }
.certificate-preview img { width: 100%; border-radius: 10px; box-shadow: 0 14px 32px rgba(60, 52, 82, .14); }
.certificate-preview span { position: absolute; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 999px; background: var(--doc-ink); color: #fff; font-size: 13px; font-weight: 650; }
.certificate-preview button:hover span { background: #504367; }
.certificate-copy { min-width: 0; }
.documents-page .doc-date { display: table; margin-bottom: 10px; padding: 4px 11px; border-radius: 99px; background: #e3f2e9; color: #235c42; font-size: 13px; font-weight: 700; }
.documents-page .doc-number { display: table; max-width: 100%; padding: 6px 10px; border-radius: 9px; background: var(--doc-warm); color: var(--doc-ink); font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.certificate-copy > .doc-number { font-size: clamp(14px, 1.35vw, 19px); }
.documents-page .certificate-details { margin: 18px 0; padding: 0 clamp(14px, 1.7vw, 23px); border: 1px solid var(--doc-line); border-radius: 22px; }
.certificate-details div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); gap: 8px 14px; padding-block: 12px; }
.certificate-details div + div { border-top: 1px solid var(--doc-line); }
.certificate-details dt { color: var(--doc-copy); }
.certificate-details dd { font-weight: 650; overflow-wrap: anywhere; }
.documents-page .doc-note { margin-top: 16px; padding: 13px 16px; border-radius: 14px; background: var(--doc-warm); }
.doc-note a, .doc-steps a, .doc-timeline button { color: var(--doc-link); text-decoration: underline; text-underline-offset: .18em; }

.doc-tests { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.doc-tests li, .doc-timeline li { padding: clamp(16px, 1.6vw, 23px); }
.doc-tests h3 { margin-top: 12px; font-size: 18px; overflow-wrap: anywhere; }
.doc-tests p, .doc-timeline p, .doc-file-card p:not(.doc-card-label) { margin-top: 6px; }
.doc-tests .doc-number { margin-top: 10px; font-size: 12px; }
.test-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #f9e5e4; color: #873d39; }
.test-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-tests li:nth-child(2) .test-icon { background: #f8ebd7; color: #78532b; }
.doc-tests li:nth-child(3) .test-icon { background: #f9f1cb; color: #705610; }
.doc-tests li:nth-child(4) .test-icon { background: #e6f1e1; color: #3b6131; }
.doc-tests li:nth-child(5) .test-icon { background: #eee9f6; color: #5c437f; }
.documents-page .doc-subtitle { margin-block: clamp(32px, 4.5vw, 64px) 20px; font-size: clamp(24px, 2.6vw, 34px); }
.doc-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doc-timeline time { display: block; margin-bottom: 6px; color: var(--doc-link); font-weight: 700; font-size: 14px; }
.doc-timeline li > button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; padding: 0; border: 0; background: transparent; text-align: left; font-size: 14px; font-weight: 650; cursor: pointer; }
.doc-timeline p { overflow-wrap: anywhere; font-size: 14px; }
.doc-timeline .timeline-result { border-color: var(--doc-ink); background: var(--doc-ink); }
.timeline-result h4 { color: #fff; }
.timeline-result :is(p, time) { color: #eee6f5; }

.doc-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-file-card { display: grid; grid-template-columns: minmax(68px, 30%) minmax(0, 1fr); gap: clamp(12px, 1.7vw, 24px); align-items: start; padding: clamp(15px, 1.65vw, 24px); }
.doc-file-card img { width: 100%; border-radius: 13px; box-shadow: 0 9px 23px rgba(60, 52, 82, .12); }
.doc-file-card h3 { margin-top: 5px; font-size: clamp(19px, 2vw, 27px); overflow-wrap: anywhere; }
.documents-page .doc-card-label { font-size: 12px; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.doc-file-card .doc-action { margin-top: 12px; }
button.doc-action { cursor: pointer; }

body:has(.document-viewer[open]) { overflow: hidden; }
.document-viewer {
  width: min(94vw, 840px);
  max-width: none;
  max-height: 92dvh;
  padding: clamp(10px, 2vw, 20px);
  background: #fff;
  color: var(--doc-ink);
}
.document-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.document-viewer .dialog-head { margin: 0; gap: 8px; }
.documents-page .document-viewer h2 { font-size: clamp(16px, 2.2vw, 25px); }
.document-viewer-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.document-viewer-actions .icon-button { width: 44px; min-width: 44px; height: 44px; padding: 0; }
.document-viewer-actions .doc-action { padding-inline: 10px; font-size: 13px; }
.document-viewer-scan {
  min-height: 0;
  max-height: 75dvh;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 10px;
  background: #f6f3f1;
}
.document-viewer-scan img { width: auto; max-width: 100%; max-height: 75dvh; margin-inline: auto; border-radius: 0; }
.document-viewer-scan.is-zoomed img { width: 1050px; max-width: none; max-height: none; margin: 0; }
.document-viewer-pages { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; }
.document-viewer-pages[hidden] { display: none; }
.document-viewer-pages button:disabled { opacity: .5; cursor: default; }

.doc-verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(18px, 4vw, 56px); }
.doc-steps { display: grid; gap: 10px; }
.doc-steps li { display: flex; gap: 14px; padding: 15px 17px; }
.doc-steps li > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--doc-ink); color: #fff; font-size: 15px; font-weight: 700; }
.doc-steps h3 { font-size: 18px; }
.doc-steps p { margin-top: 4px; }
.registry-example { overflow: hidden; border: 1px solid var(--doc-line); border-radius: var(--doc-radius); background: #f9f7f5; }
.registry-bar { display: flex; align-items: center; gap: 18px; padding: 10px 15px; background: #f1ede8; }
.registry-bar span { flex: 0 0 6px; height: 6px; margin-right: 20px; border-radius: 50%; background: #c9bdb1; box-shadow: 10px 0 #c9bdb1, 20px 0 #c9bdb1; }
.registry-bar b { flex: 1; padding: 4px 10px; border-radius: 7px; background: #fff; font-size: 13px; color: var(--doc-copy); }
.registry-content { display: grid; gap: 11px; padding: clamp(12px, 1.6vw, 22px); }
.registry-links { display: flex; flex-wrap: wrap; gap: 6px; }
.registry-links a, .registry-search a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 700; }
.registry-links a { border: 1px solid #d4dbe9; background: #eaf0fb; color: #294371; }
.registry-search { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 7px 8px 7px 11px; border: 1px solid #aab9d5; border-radius: 10px; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
.registry-search a { background: #294d91; color: #fff; }
.registry-result { padding: 10px 12px; border: 1px solid var(--doc-line); border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.registry-result p { font-size: 14px; }
.registry-example figcaption { padding: 11px 15px; border-top: 1px solid var(--doc-line); background: #fff; color: var(--doc-copy); font-size: 13px; }
.documents-page .doc-registry-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.doc-registry-numbers li { padding: 12px 16px; border-radius: 16px; background: var(--doc-warm); overflow-wrap: anywhere; }
.doc-registry-numbers span, .doc-registry-numbers b { display: block; }
.doc-registry-numbers span { color: var(--doc-copy); font-size: 13px; }

.doc-support { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: var(--doc-space); padding: clamp(21px, 3vw, 42px); border-radius: 32px; background: var(--doc-ink); }
.doc-support h3 { color: #fff; font-size: clamp(23px, 2.7vw, 36px); }
.doc-support p { max-width: 57ch; margin-top: 8px; color: #f1eaf6; }
.doc-support .doc-action { flex-shrink: 0; border-radius: 999px; }
.documents-page .doc-parties { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.doc-parties > div { padding: 13px 18px; border-radius: 16px; font-size: 14px; }
.doc-parties dt { font-weight: 700; }
.doc-parties dd { margin-top: 4px; color: var(--doc-copy); overflow-wrap: anywhere; }

/* The shared footer keeps the same links on every storefront route. */
.site-footer .footer-brand img { display: none; }
.is-documents-route .site-footer { min-height: 0; grid-template-columns: 1fr 2fr; gap: 32px; padding-block: clamp(30px, 4vw, 58px); border-color: var(--doc-line); }
.is-documents-route .site-footer .footer-brand span { display: none; }
.is-documents-route .site-footer .footer-brand img { display: block; width: 126px; height: auto; }
.is-documents-route .site-footer p { max-width: 30ch; margin-top: 12px; color: var(--doc-copy); }
.is-documents-route .site-footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; }
.is-documents-route .site-footer nav a { min-height: 28px; color: var(--doc-ink); font-size: 14px; font-weight: 650; }
.is-documents-route .site-footer a[aria-current="page"] { color: var(--doc-link); }

@media (max-width: 1030px) {
  .is-documents-route .desktop-nav { gap: 14px; }
  .doc-tests { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 790px) {
  .is-documents-route .header-inner { grid-template-columns: auto minmax(0, 1fr); row-gap: 0; padding-top: 9px; }
  .is-documents-route .header-actions > .button { min-height: 44px; padding-inline: 14px; }
  .is-documents-route .desktop-nav { grid-area: 2 / 1 / 3 / -1; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; }
  .is-documents-route .desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .doc-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-hero h1, .doc-section-head h2 { text-wrap: wrap; }
  .doc-hero h1 { max-width: 14ch; }
  .documents-page .hero-documents { width: min(100%, 420px); }
  .documents-page .doc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 15px; }
  .certificate-card, .doc-card-grid, .doc-verify-grid { grid-template-columns: minmax(0, 1fr); }
  .certificate-preview { max-width: 440px; }
  .doc-section { scroll-margin-top: 107px; }
}

@media (max-width: 560px) {
  .is-documents-route .brand, .is-documents-route .site-footer .footer-brand img { width: 108px; }
  .is-documents-route .header-actions > .button { font-size: 12px; }
  .is-documents-route .desktop-nav { gap: 18px; }
  .doc-kicker { letter-spacing: .09em; }
  .hero-doc-badge { left: 9%; bottom: 0; font-size: 12px; }
  .hero-doc-badge b { padding: 7px 6px; }
  .doc-facts li { padding: 14px 15px; }
  .doc-facts b { font-size: 28px; }
  .doc-tests, .doc-timeline, .documents-page .doc-registry-numbers, .documents-page .doc-parties { grid-template-columns: minmax(0, 1fr); }
  .certificate-card { border-radius: 24px; }
  .certificate-details div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .doc-support { flex-wrap: wrap; border-radius: 24px; }
  .doc-support .doc-action { flex-shrink: 1; }
  .is-documents-route .site-footer, .is-documents-route .site-footer nav { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .is-documents-route .site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
}
