/* INBOX-349054 (Megan's Request Free Printed Books handoff, 2026-11-27): the request page redesign. Ported from the approved
   preview (QDCM-Request-Free-Books-Interactive-Preview.html, final cascade only: no orbit ring, plinth, page edge or cover
   border, as her notes ask). Loaded only by request-a-copy.html; shared.css is not loaded here. Navigation and footer are
   copies of qd-about.css's (the same as the Home, Give, Papers, Study and About pages). The form, its validation and the
   request itself stay in qd-book-request.js. */
:root { --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --serif: Georgia, "Times New Roman", serif; --navy: #0b1c32; --deep: #081525; --ivory: #f7f3e9; --white: #fffdf8; --gold: #f0c675; --ochre: #805918; --ink: #132640; --muted: #49596e; --rule: #e3d9c7; }
body.qd-request { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.qd-request *, .qd-request *::before, .qd-request *::after { box-sizing: border-box; }
.qd-request [hidden] { display: none !important; }
html { scroll-behavior: smooth; }
:where(.qd-request) p, :where(.qd-request) h1, :where(.qd-request) h2, :where(.qd-request) dl, :where(.qd-request) dd { margin: 0; }
.qd-request a { color: inherit; text-underline-offset: .22em; }
:where(.qd-request) button, :where(.qd-request) select, :where(.qd-request) input { font: inherit; }
:where(.qd-request) button, :where(.qd-request) summary { cursor: pointer; }
.qd-request img { display: block; max-width: 100%; }
.qd-request :focus-visible { outline: 3px solid #4789cc; outline-offset: 3px; }
.site-bar :focus-visible, .masthead :focus-visible, .foot-band :focus-visible { outline-color: #f5c67a; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 4px; background: var(--gold); color: #14243b; font-weight: 800; font-size: 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.wrap { width: min(100% - clamp(36px, 10.4vw, 168px), 1800px); margin-inline: auto; }
.qd-request .page { width: min(calc(100% - 2 * clamp(18px, 6vw, 112px)), 1340px); margin-inline: auto; }
.eyebrow { color: var(--ochre); font-weight: 820; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; margin-bottom: 8px; }
.qd-request h1, .qd-request h2 { font-family: Georgia, "Times New Roman", serif; line-height: 1.06; letter-spacing: -.042em; font-weight: 500; }

/* ---- Navigation: the redesigned home page's, on a solid navy bar (same as qd-study.css / qd-give.css) ---- */
.site-bar { background: #0b192b; color: #f5eee2; position: relative; z-index: 2; border-bottom: 1px solid #e9bd742e; }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px Georgia, serif; color: #fff; white-space: nowrap; text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand small { display: block; color: #f9db9e; font: 750 9px/1.2 var(--sans); letter-spacing: .16em; margin-top: 4px; text-transform: uppercase; }
.nav nav { display: flex; gap: clamp(12px, 2.05vw, 35px); align-items: center; justify-content: flex-end; flex: 1; font-size: 13px; font-weight: 680; color: #edf6ff; }
.nav nav a { white-space: nowrap; padding: 7px 1px; border-bottom: 1px solid transparent; text-decoration: none; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav nav a[aria-current="page"] { border-bottom-color: #f3ca7e; }
.nav nav a.nav-app-link { padding: 6px 13px; border-radius: 4px; border: 1px solid #f1c775; color: #101d31; background: #f1c775; }

/* ---- Banner: title and intro beside the two covers, a soft moving light behind them, Pause Motion ---- */
.masthead { isolation: isolate; overflow: hidden; color: #fff; border-bottom: 3px solid #c79a4d;
  background: radial-gradient(ellipse at 75% 20%, #314864 0, transparent 52%), radial-gradient(ellipse at 80% 89%, #352b25, transparent 53%), linear-gradient(115deg, #081525 7%, #102640 66%, #0b1b2e); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4.1rem); min-height: 390px; padding-block: 1.45rem; }
.return { display: inline-block; text-decoration: none; color: #e3eafa; font-size: .82rem; margin-bottom: 19px; padding-block: 4px; }
.return:hover { color: var(--gold); text-decoration: underline; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.55rem, 5.3vw, 5.4rem); }
.hero h1 span { color: var(--gold); }
.intro { color: #e0e8f4; font-size: clamp(.93rem, 1.55vw, 1.12rem); max-width: 49ch; margin-top: 14px; }
.book-exhibit { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: clamp(15px, 3.2vw, 44px); min-height: 340px; padding: 1.25rem clamp(1rem, 4vw, 3rem) .6rem; }
.book-atmosphere { position: absolute; inset: -9% -7%; width: 114%; height: 115%; pointer-events: none; z-index: -2; opacity: .72; animation: book-atmo 13s ease-in-out infinite alternate; }
.book-signal { pointer-events: none; position: absolute; inset: 1% -7% 17%; z-index: -1; opacity: .26; mix-blend-mode: screen; animation: book-signal-pass 7.4s ease-in-out infinite;
  background: radial-gradient(ellipse at 56% 59%, #78c2ed53, transparent 45%), linear-gradient(112deg, transparent 33%, #f8cc7740 50%, #67b6e01f 55%, transparent 68%); }
.book-display { margin: 0; min-width: 0; display: grid; justify-items: center; grid-template-rows: 1fr auto; gap: .76rem; align-self: stretch; align-items: end; text-align: center; }
.book-object { position: relative; align-self: center; width: min(100%, 205px); transform: rotate(-10deg) translateY(-3px); animation: book-appear .62s ease-out both; }
.book-display:last-child .book-object { transform: rotate(10deg) translateY(8px); animation-delay: .09s; }
.book-object img { width: 100%; height: auto; border: 0; border-radius: 4px 8px 8px 4px; box-shadow: 9px 17px 43px #030d1dc7; object-fit: contain; }
.book-display figcaption { min-width: 0; padding-top: .4rem; line-height: 1.25; color: #fff4de; }
.book-display figcaption span { display: block; color: #edc985; font-weight: 800; text-transform: uppercase; font-size: .67rem; letter-spacing: .13em; margin-bottom: .29rem; }
.book-display figcaption strong { display: block; font: normal clamp(.84rem, 1.42vw, 1.18rem)/1.18 Georgia, serif; }
.book-select { display: block; margin: .65rem auto 0; padding: .31rem .68rem; min-height: 36px; border: 1px solid #e9be7480; border-radius: 7px; background: #101e31db; color: #ffe4b0; font-weight: 700; font-size: .76rem; white-space: nowrap; }
.book-select:hover, .is-chosen .book-select { background: #ebc67e; color: #102137; }
.book-motion-toggle { position: absolute; z-index: 2; right: 2px; top: -8px; color: #e1eaf5; background: #0a192bcc; border: 1px solid #bfc9d045; border-radius: 7px; padding: .28rem .51rem; min-height: 30px; font-size: .68rem; letter-spacing: .015em; }
.book-motion-toggle:hover { border-color: #e9be74; color: #fff3d5; }
.book-exhibit.is-paused, .book-exhibit.is-paused * { animation-play-state: paused !important; }
@keyframes book-atmo { from { transform: scale(.98) translateX(-1%); } to { transform: scale(1.1) translateX(2%); } }
@keyframes book-signal-pass { 0%, 100% { transform: translateX(-12%); opacity: .13; } 50% { transform: translateX(11%); opacity: .46; } }
@keyframes book-appear { from { opacity: .2; translate: 0 13px; } to { opacity: 1; translate: none; } }

/* ---- The chosen book beside the form ---- */
.contents { display: grid; grid-template-columns: minmax(240px, .62fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 56px); padding: clamp(27px, 4vw, 60px) 0; }
.book-card, .form-shell { border: 1px solid var(--rule); border-radius: 17px; overflow: hidden; background: var(--white); box-shadow: 0 14px 34px #1326400b; }
.cover-stage { position: relative; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at center, #34526d, #142e49 66%, #11233b); min-height: 170px; }
.cover-stage img { width: auto; height: clamp(175px, 20vw, 255px); object-fit: contain; border-radius: 4px 6px 6px 4px; box-shadow: 4px 12px 22px #040e1d8a; }
.book-info { padding: clamp(17px, 2.5vw, 30px); }
.book-info h2 { font-size: clamp(1.62rem, 2.75vw, 2.6rem); }
.book-info > p:not(.eyebrow) { margin-top: 8px; color: var(--muted); font-size: .94rem; }
.digital { border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 12px; font-size: .86rem; }
.digital > p { font-weight: 770; }
.digital a { display: block; color: #194775; font-weight: 650; margin-top: 5px; padding-block: 3px; }
.swap { border: 0; background: transparent; color: #194775; font-weight: 730; text-align: left; padding: 9px 0 4px; margin-top: 6px; }
.swap:hover { text-decoration: underline; }

/* ---- The request form (the live form: qd-book-request.js) ---- */
.form-shell { padding: clamp(19px, 3.5vw, 42px); border-top: 3px solid #c69b52; scroll-margin-top: 25px; }
.form-shell h2 { font-size: clamp(1.92rem, 3.65vw, 3.28rem); }
.form-intro { color: var(--muted); margin: 9px 0 16px; }
.br-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 12px; }
.br-field label { font-size: .88rem; font-weight: 720; }
.br-field input, .br-field select { background: #fff; border: 1px solid #b6c1cd; border-radius: 8px; color: #122640; padding: 8px 11px; min-height: 44px; width: 100%; }
/* The book list: drawn the same in every browser (Safari's own control ignores the height). overflow: hidden stops WebKit sizing
   it by the chosen option's full text (the Study Center page's sideways-scroll gotcha). */
.br-field select { -webkit-appearance: none; appearance: none; overflow: hidden; text-overflow: ellipsis; padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23122640' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; }
.br-field [aria-invalid="true"] { border-color: #a92739; box-shadow: 0 0 0 1px #a92739; }
.br-hint, .br-fine { font-size: .79rem; color: var(--muted); }
.br-fine { margin-top: 12px; }
.br-fine a { color: #194775; }
.br-error { font-size: .84rem; font-weight: 700; color: #a92739; }
.br-status { margin: 0 0 14px; padding: 11px 13px; border-radius: 9px; border: 1px solid #e3a3ab; background: #fbeef0; color: #8c1d2e; font-weight: 700; }
.br-closed { margin: 0 0 14px; padding: 11px 13px; border-radius: 9px; border: 1px solid #e2c98f; background: #fbf3df; color: #5f3f0d; font-weight: 700; }
.br-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.br-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.br-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; font-weight: 780; text-decoration: none; }
.br-btn-primary { background: var(--gold); color: #13223a; }
.br-btn-primary:hover { background: #ffd78c; }
.br-btn-primary:disabled { opacity: .5; }
.br-btn-secondary { background: transparent; border-color: #9cae9f; color: var(--ink); }
.br-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.success { background: #f0f5f1; border: 1px solid #c2d5c6; border-radius: 12px; padding: 18px; }
.success h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.success h2:focus { outline: none; }
.success h2:focus-visible { outline: 3px solid #4789cc; outline-offset: 3px; }
/* Review must-fix: a long email address in the confirmation wraps instead of being cut off on phones. */
.success p { overflow-wrap: anywhere; }
.success dl { margin: 11px 0; }
.success dl div { display: grid; grid-template-columns: minmax(45px, .27fr) 1fr; gap: 8px; overflow-wrap: anywhere; padding: 6px; border-bottom: 1px solid #d3e3d7; }
.success dt { font-weight: 750; }
.success .br-hint { margin-top: 8px; }
.success .br-actions { margin-top: 13px; }

/* ---- What happens next ---- */
.next { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: clamp(17px, 4vw, 51px); border-top: 1px solid var(--rule); padding: 24px 0 45px; }
.next h2 { font-size: clamp(1.7rem, 3.1vw, 2.7rem); }
.next ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.next li { display: flex; align-items: start; gap: 9px; background: #fff9; border: 1px solid var(--rule); border-radius: 10px; padding: 12px; }
.next li > span { font-size: .68rem; background: #f7e6bf; padding: 5px 7px; border-radius: 100%; color: #6b4411; font-weight: 850; }
.next li p { color: var(--muted); font-size: .86rem; margin-top: 4px; }

/* ---- Footer: the redesigned home page's, plus the social links (same as qd-study.css / qd-papers.css) ---- */
.foot-band { background: #081426; color: #fff7eb; }
.foot { padding-block: 22px 18px; color: #b9c9db; font-size: 11px; border-top: 1px solid #3b5065; }
.foot-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.foot-name { font: 700 17px Georgia, serif; color: #f5ecd8; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.foot-links a { margin-left: 7px; padding: 2px 0; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.np-status { margin: 10px 0 0; color: #9fb0c6; font-size: 11px; line-height: 1.5; max-width: 95ch; }
.foot-social { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.foot-social a { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border: 1px solid #7e6746; border-radius: 4px; }
.foot-social img { width: 17px; height: 17px; border-radius: 3px; }

/* ---- Responsive (the preview's breakpoints, plus the home page's for the navigation) ---- */
/* Eleven links since Resources joined the navigation (INBOX-349061): the 13 px row keeps a 16 px gap up to 1280 px, the
   12 px row an 8 px gap up to 1080 px, and up to 1020 px the links take their own row under the brand (it scrolls
   sideways on phones). Measured in Chromium and WebKit, the eleven fit beside the brand on the home page from 1242 px
   (13 px, the wide gap), 1136 (13 px, 16 px gap), 1051 (12 px, 12 px gap) and 1006 (12 px, 8 px gap); 1228, 1126,
   1041 and 997 on the other pages. */
@media (max-width: 1280px) {
  .nav nav { gap: 16px; }
}
@media (max-width: 1160px) {
  .nav nav { gap: 12px; }
  .nav nav a { font-size: 12px; }
}
@media (max-width: 1080px) {
  .nav nav { gap: 8px; }
}
@media (max-width: 1020px) {
  .nav { justify-content: flex-start; display: block; height: auto; padding-block: 10px; }
  .nav nav { overflow: auto; justify-content: flex-start; margin: 2px -6px 0; padding: 6px 6px 8px; scrollbar-width: thin; gap: 9px; }
  .nav nav a { padding-block: 12px; }
  .nav nav a.nav-app-link { padding-block: 10px; }
  .nav .brand img { height: 29px; width: 29px; }
}
@media (max-width: 760px) {
  /* Phones: the banner copy above the covers, and the chosen book's card above the form */
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: .25rem; padding-block: 1.1rem .9rem; }
  .hero h1 { font-size: clamp(2.15rem, 7.8vw, 3.55rem); }
  .intro { max-width: 56ch; }
  .book-exhibit { min-height: 0; width: min(100%, 495px); margin-inline: auto; padding: 1.65rem .8rem .4rem; gap: 1.05rem; }
  .book-atmosphere { height: 116%; }
  .book-object { width: min(79%, 140px); }
  .book-display { gap: .5rem; }
  .book-display figcaption { padding-top: 0; }
  .book-display figcaption span { font-size: .59rem; }
  .book-motion-toggle { top: 0; }
  .contents { grid-template-columns: minmax(0, 1fr); }
  .book-card { display: grid; grid-template-columns: minmax(86px, .40fr) 1fr; }
  .cover-stage { min-height: 0; padding: 11px; }
  .cover-stage img { height: auto; max-height: 155px; }
  .book-info { padding: 14px; }
  .book-info .eyebrow { font-size: .65rem; }
  .book-info h2 { font-size: 1.36rem; }
  .book-info > p:not(.eyebrow) { font-size: .83rem; }
  .digital { margin-top: 9px; padding-top: 8px; font-size: .79rem; }
  .swap { font-size: .79rem; }
  .next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .foot-links a { margin: 0 12px 0 0; padding: 6px 0; }
}
@media (max-width: 450px) {
  .return { font-size: .73rem; margin-bottom: 11px; }
  .hero .eyebrow { font-size: .6rem; }
  .next ol { grid-template-columns: minmax(0, 1fr); }
  .br-btn-primary { width: 100%; }
}
@media (pointer: coarse) {
  .foot-social a { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .book-atmosphere, .book-signal, .book-object { animation: none !important; }
  .book-motion-toggle { display: none; }
}
