.pdf-page { color: var(--text); }
.pdf-header { max-width: 1040px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pdf-header a { color: var(--text); text-decoration: none; font-size: 14px; }
.pdf-header .pdf-brand { font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; }
.pdf-main { width: min(1040px, calc(100% - 40px)); margin: 38px auto 72px; }
.pdf-intro { margin-bottom: 28px; }
.pdf-page-title { font-size: clamp(2.1rem, 6vw, 2.6rem); line-height: 1.12; max-width: none; margin: 0 0 32px; }
.pdf-intro p { color: var(--subtext); font-size: 16px; line-height: 1.6; margin: 0; max-width: 470px; }
.pdf-tool { background: var(--surface); border-radius: var(--radius-large); box-shadow: var(--quiet-ring), var(--shadow-soft); padding: 28px; }
.pdf-tool__intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -12px 0 12px; }
.pdf-tool__art { width: 112px; height: 112px; object-fit: contain; flex: none; }
.pdf-tool__eyebrow { margin: 0 0 7px; font-size: 12px; line-height: 1.5; color: #47654f; }
.pdf-tool__heading { margin: 0; font-size: 18px; font-weight: 600; }
.pdf-difficulty { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.pdf-difficulty legend { font-size: 13px; color: var(--subtext); padding: 0; margin-bottom: 10px; }
.pdf-difficulty__options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 5px; background: #eeebf6; border-radius: 16px; }
.pdf-difficulty label { position: relative; cursor: pointer; min-width: 0; }
.pdf-difficulty input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pdf-difficulty span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.pdf-difficulty input:checked + span { color: #fff; background: #65439b; box-shadow: var(--shadow-pill); }
.pdf-difficulty input:focus-visible + span { outline: 3px solid var(--accent-blue); outline-offset: 3px; }
.pdf-download, .pdf-secondary, .pdf-paper select { font: inherit; }
.pdf-download { width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: #167d3e; color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: var(--shadow-pill); }
.pdf-download:hover { background: #106632; }
.pdf-page button:disabled { opacity: .55; cursor: wait; }
.pdf-page a:focus-visible, .pdf-page button:focus-visible, .pdf-page summary:focus-visible, .pdf-page select:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 4px; }
.pdf-note { font-size: 12px; color: var(--subtext); line-height: 1.6; margin: 12px 0 0; text-align: center; }
.pdf-status { min-height: 22px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.pdf-status:empty { min-height: 0; margin: 0; }
.pdf-status[data-variant="error"] { color: #b42318; }
.pdf-status[data-variant="success"] { color: #117b37; }
.pdf-options { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--grid-thin); }
.pdf-options summary { cursor: pointer; font-size: 14px; color: var(--subtext); }
.pdf-options__content { display: grid; gap: 12px; margin-top: 20px; }
.pdf-paper { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.pdf-paper select { padding: 10px 14px; border: 1px solid var(--grid-thin); border-radius: 12px; color: var(--text); background: var(--surface); }
.pdf-secondary { min-height: 44px; border-radius: 12px; border: 1px solid var(--grid-thin); background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; }
.pdf-secondary:hover { background: var(--bg); }
.pdf-support { margin-top: 40px; }
.pdf-support h2 { font-family: "Playfair Display", Georgia, serif; font-size: 25px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 12px; }
.pdf-support h3 { font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.pdf-support p { color: var(--subtext); font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
.pdf-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.pdf-links a { font-size: 14px; color: var(--text); text-underline-offset: 4px; line-height: 1.6; }
@media (max-width: 480px) {
  .pdf-header { padding: 20px; flex-wrap: wrap; gap: 12px; }
  .pdf-header .pdf-brand { font-size: 20px; }
  .pdf-main { margin-top: 20px; }
  .pdf-tool { padding: 22px 18px; border-radius: 24px; }
  .pdf-difficulty span { font-size: 13px; }
  .pdf-tool__art { width: 88px; height: 88px; }
  .pdf-tool__eyebrow { max-width: 155px; }
}

.pdf-download-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 580px); gap: 64px; align-items: start; }
.pdf-download-panel { min-width: 0; }
.pdf-preview { margin: 0; text-align: center; }
.pdf-preview img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #e2e4e7; box-shadow: 0 12px 32px rgba(23,25,28,.09); }
.pdf-preview figcaption { margin-top: 14px; color: var(--subtext); font-size: 12px; line-height: 1.5; }
.pdf-support { max-width: 580px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .pdf-download-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 580px; margin: 0 auto; }
  .pdf-preview img { width: auto; height: 230px; max-width: 100%; margin: 0 auto; }
  .pdf-preview figcaption { margin-top: 10px; }
}
