/* Ordering App pages (/ordering-app, /request, /guide, /license), built by scripts/build_ordering_app.py.
   Own file on purpose: style.css is never appended to. Uses the tokens from style.css. */

.oa { max-width: 860px; }   /* sits inside section.block, which supplies the padding */
.oa h2 { font-size: var(--fs-4); font-weight: 500; margin: 52px 0 14px; scroll-margin-top: 100px; }
.oa h2:first-child { margin-top: 0; }
.oa h3 { font-size: var(--fs-2); font-weight: 500; margin: 32px 0 10px; scroll-margin-top: 100px; }
.oa p, .oa li { line-height: 1.7; }
.oa ul, .oa ol { padding-left: 22px; }
.oa li { margin: 0 0 8px; }
.oa code { font-size: .92em; background: var(--bg-soft); padding: 1px 5px; overflow-wrap: anywhere; }
.oa pre { background: var(--bg-soft); padding: 14px 16px; overflow-x: auto; font-size: var(--fs--1); line-height: 1.55; }
.oa pre code { background: none; padding: 0; }
.oa .lede { font-size: var(--fs-2); line-height: 1.6; color: var(--ink); margin: 0 0 22px; }
.oa-updated { margin: 0; font-size: var(--fs--1); color: var(--muted); }
.oa .oa-updated { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
section.block.oa-foot { padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line); }

/* Callouts: a left rule, no box shadow or radius */
.oa .note { border-left: 3px solid var(--blue); background: var(--bg-tint); padding: 12px 16px; margin: 18px 0; }
.oa .note.warn { border-left-color: #b54708; }
.oa .note p:last-child { margin-bottom: 0; }

/* Tables */
.oa table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: var(--fs-0); }
.oa th, .oa td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.oa th { font-size: var(--fs--2); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.oa .table-scroll { overflow-x: auto; }

/* Step list on the landing page */
.oa .steps { counter-reset: step; list-style: none; padding: 0; }
.oa .steps li { counter-increment: step; position: relative; padding: 0 0 0 46px; margin: 0 0 18px; }
.oa .steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; line-height: 30px; text-align: center; background: var(--navy); color: #fff; font-family: var(--font-display); }

/* Three-up cards */
.oa .oa-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 18px 0; }
.oa .oa-cards > div { border-top: 2px solid var(--line); padding-top: 12px; }
.oa .oa-cards h3 { margin: 0 0 6px; font-size: var(--fs-1); }
.oa .oa-cards p { margin: 0; font-size: var(--fs-0); color: var(--muted); }

/* Table of contents on the guide */
.oa .toc { columns: 2 260px; column-gap: 32px; background: var(--bg-tint); padding: 16px 20px 8px; margin: 0 0 12px; }
.oa .toc a { display: block; padding: 2px 0 6px; break-inside: avoid; }

/* Screenshots */
.oa-shot { margin: 18px 0 26px; }
.oa-shot img { max-width: 100%; max-height: 640px; width: auto; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 2px 10px rgba(19,26,43,.07); }   /* same treatment as /manuscript-tools; never upscaled; screenshots are 2x, so they downscale sharp */
.oa-shot a:hover img { border-color: var(--blue); }
.oa-shot figcaption { font-size: var(--fs--1); color: var(--muted); margin-top: 6px; }
.oa-shot-missing div { border: 1.5px dashed var(--line); padding: 34px 16px; text-align: center; color: var(--muted); font-size: var(--fs--1); background: var(--bg-tint); }

/* Landing page bands (layout="sections"), modelled on /manuscript-tools */
.oa-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.oa-lede { font-size: var(--fs-2); line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.oa-body { font-size: var(--fs-0); line-height: 1.7; color: var(--ink); margin: 0 0 22px; }
.oa-note { margin: 18px 0 0; font-size: var(--fs--1); color: var(--muted); max-width: 540px; }
.oa-small { font-size: var(--fs--1); color: var(--muted); margin: 0; }
.oa-features { list-style: none; padding: 0; margin: 0; }
.oa-features li { padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-0); line-height: 1.55; color: var(--muted); }
.oa-features li:last-child { border-bottom: 1px solid var(--line); }
.oa-features li > strong:first-child { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.oa-wide { margin: 44px 0 0; }
.oa-wide .oa-shot { margin: 0; }
.oa-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; padding: 34px 0; margin: 0; border-top: 1px solid var(--line); }
.oa-row:first-of-type { margin-top: 10px; }
.oa-row .oa-shot { margin: 0; justify-self: start; }
.oa-text h3, .oa-h3 { font-family: var(--font-body); font-size: var(--fs-1); font-weight: 600; color: var(--ink); margin: 3px 0 8px; }
.oa-h3 { margin-top: 22px; }
.oa-h3:first-child { margin-top: 3px; }
.oa-text p, .oa-two p { margin: 0 0 12px; font-size: var(--fs-0); line-height: 1.7; }
.oa-two { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.oa-steps { list-style: none; counter-reset: oa; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.oa-steps > li { counter-increment: oa; margin: 0; }
.oa-steps .oa-text { position: relative; padding-top: 46px; }
.oa-steps .oa-text::before { content: counter(oa); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: var(--fs--1); display: flex; align-items: center; justify-content: center; }
.oa-cta-after { margin-top: 30px; }
.oa-rule { border-left: 3px solid var(--blue); background: var(--bg-tint); padding: 14px 18px; margin: 34px 0 0; max-width: 860px; }
.oa-rule p { margin: 0; font-size: var(--fs-0); line-height: 1.65; }
.oa-table { width: 100%; border-collapse: collapse; font-size: var(--fs-0); background: #fff; border: 1px solid var(--line); margin: 0 0 14px; }
.oa-table th, .oa-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.oa-table th { background: var(--bg-soft); font-weight: 600; font-size: var(--fs--1); color: var(--ink); letter-spacing: normal; text-transform: none; }
.oa-table td:first-child { font-weight: 600; white-space: nowrap; }

.oa-row.oa-row-first { border-top: 0; padding-top: 0; margin-top: 0; }
.oa-row .section-title.minor { margin: 0 0 14px; }
.oa-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 6px 0 10px; align-items: start; }
.oa-pair .oa-shot { margin: 0; }
.oa-pair .oa-shot img { max-height: 620px; }

/* Custom Slack emoji row on the guide */
.oa-emoji { display: flex; flex-wrap: wrap; gap: 24px; margin: 12px 0 22px; }
.oa-emoji figure { margin: 0; text-align: center; }
.oa-emoji img { width: 56px; height: 56px; display: block; margin: 0 auto 4px; }
.oa-emoji figcaption { font-size: var(--fs--1); color: var(--muted); }

/* Request form: reuses .contact-form for inputs, adds selects, checkboxes and fieldsets */
.oa-form { max-width: 680px; }
.oa-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 4px; margin: 0 0 8px; }
.oa-form legend { font-family: var(--font-display); font-size: var(--fs-2); padding: 0 8px 0 0; color: var(--ink); }
.oa-form .hint { font-size: var(--fs--1); color: var(--muted); margin: -4px 0 12px; text-transform: none; letter-spacing: normal; }
.oa-form select { width: 100%; padding: 9px 8px; margin-top: 4px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; font: inherit; font-size: var(--fs-1); color: var(--ink); text-transform: none; letter-spacing: normal; }
.oa-form select:focus { outline: 0; border-bottom-color: var(--blue); }
.oa-form .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 4px 0 14px; }
.oa-form label.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: normal; font-size: var(--fs-0); color: var(--ink); margin: 0 0 10px; }
.oa-form label.check input { width: auto; margin: 5px 0 0; flex: none; }
.oa-form .agree { background: var(--bg-tint); padding: 14px 16px 4px; margin: 6px 0 16px; }
.oa-form .duke { display: none; }
.oa-form.show-duke .duke { display: block; }

@media (max-width: 900px) {
  .oa-top, .oa-row, .oa-two, .oa-pair { grid-template-columns: 1fr; gap: 28px; }
  .oa-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .oa-steps { grid-template-columns: 1fr; }
  .oa-table td:first-child { white-space: normal; }
  .oa .oa-cards { grid-template-columns: 1fr; }
  .oa-form .checks { grid-template-columns: 1fr; }
  .oa-form .row2 { grid-template-columns: 1fr; gap: 0; }
}

/* Screenshot lightbox (ordering-lightbox.js) */
.oa-shot a { cursor: zoom-in; }
.oa-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(13,18,30,.88); display: flex; align-items: center; justify-content: center; padding: 48px 16px 16px; cursor: zoom-out; }
.oa-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.4); background: #fff; }
.oa-lightbox-close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 40px; cursor: pointer; }
.oa-lightbox-close:hover, .oa-lightbox-close:focus { background: rgba(255,255,255,.3); outline: none; }

/* Key phrases on the main page: bold + underline, and underline only */
.oa-page .oa-hl { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(0,51,160,.45); }
.oa-page .oa-ul { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(0,51,160,.45); }

/* "And a lot of little things." list */
.oa-page .oa-list { columns: 2 320px; column-gap: 40px; padding-left: 1.1em; margin: 8px 0 0; }
.oa-page .oa-list li { break-inside: avoid; margin: 0 0 12px; }
.oa-page .oa-after-list { margin-top: 18px; }

/* Duke card in "Not just for Duke." */
.oa-page .oa-card { background: var(--bg-tint, #f4f6fb); border: 1px solid var(--line, #e3e7ef); border-radius: 8px; overflow: hidden; }
.oa-page .oa-card-img { display: block; width: 100%; height: 160px; object-fit: cover; }
.oa-page .oa-card p { margin: 0; padding: 18px 20px 20px; }

/* Request form spacing (2026-11-07): boxed fields, labels close to their field, hints attached to the field above */
.oa-form { max-width: none; }                                                     /* same width as the intro and the note above it */
.oa-form fieldset { padding: 22px 0 6px; margin: 0 0 6px; }
.oa-form legend { margin-bottom: 4px; }
.oa-form .row2 { gap: 0 20px; }
.oa-form label { margin: 0 0 18px; }
.oa-form input:not([type=checkbox]), .oa-form select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: var(--fs-0); line-height: 1.4; }
.oa-form input:not([type=checkbox]):focus, .oa-form select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 51, 160, .12); }
.oa-form label:has(+ .hint) { margin-bottom: 6px; }                               /* a hint sits right under its field */
.oa-form .hint { margin: 0 0 18px; line-height: 1.5; }
.oa-form label.check { margin: 0 0 12px; }
.oa-form .agree { padding: 16px 18px 6px; border-radius: 6px; }
