/*
 * Patient information pages for the four screening packages, in the Morton & Partners look.
 *
 * Tokens and rules come from the Website CI Guide for Developers, section 7: Navy #00355a for headings and
 * primary buttons, Blue #04216d for hover, Slate #646567 for body text, Ice and Light Grey for surfaces,
 * Sky only as an accent on navy, Raleway throughout, radii 13 / 15 and 55px buttons. The sheets are long
 * reading pages, so body text keeps Slate but is set a little larger and looser than the app's.
 * Written for a phone first; the wider layout is a min-width addition. Everything is driven from the
 * custom properties below.
 */

@font-face{font-family:'Raleway';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/raleway/raleway-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Raleway';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/raleway/raleway-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  color-scheme: light;
  --navy: #00355a; /* headings, buttons, footer band */
  --blue: #04216d; /* button hover */
  --sky: #50c5ff; /* accent on navy only */
  --ice: #e2f0f7; /* "In plain terms" box */
  --ice-line: #c3dcea;
  --grey: #f4f4f4; /* radiation and safety box */
  --border: #d9d9d9;
  --green: #1f7a4f; /* Benefits heading */
  --check: #2ba46a;
  --amber-ink: #8a6400; /* Limitations heading */
  --amber: #d89a2b;
  --ink: #646567; /* body text: Slate */
  --muted: #646567; /* Slate */
  --band-text: #b3c0ce;
  --gradient: radial-gradient(at center, #2477a7 0%, #00355a 100%);
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 13px; z-index: 10; font-weight: 700; }
.skip:focus { left: 8px; }

/* Header: the logo, the product name beside it, the kind of page on the right */
.band { background: #fff; border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.band-in { max-width: 920px; margin: 0 auto; padding: 10px 16px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--navy); text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand .sep { display: none; width: 1px; height: 28px; background: var(--border); }
.brand-name { display: none; flex-direction: column; font-weight: 700; font-size: 15px; letter-spacing: .4px; line-height: 1.15; color: var(--navy); }
.brand-tag { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-top: 2px; line-height: 1.3; white-space: nowrap; }
.band-label { display: none; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy); text-align: right; }

/* Page */
main { max-width: 920px; margin: 0 auto; padding: 14px 16px 8px; }
.crumb { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; margin-bottom: 6px; }
.crumb:hover { text-decoration: underline; text-underline-offset: 4px; }

.title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; color: var(--navy); font-weight: 700; text-wrap: balance; }
.subtitle { margin: 8px 0 0; color: var(--navy); font-weight: 700; font-size: 16px; line-height: 1.4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 55px; padding: 0 32px;
  background: var(--navy); color: #fff;
  font: 700 15px/1 var(--font); text-decoration: none;
  border-radius: 13px; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--blue); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--navy); }
.btn-ghost:hover { background: #fff; border-color: var(--navy); }

.plain {
  margin: 22px 0 6px; padding: 18px 20px;
  background: var(--ice); border: 1px solid var(--ice-line); border-radius: 15px;
  color: var(--navy);
}
.plain p { margin: 0; }

h2 {
  margin: 32px 0 12px; padding-bottom: 8px;
  font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid var(--navy);
}
h2.benefits { color: var(--green); border-bottom-color: var(--green); }
h2.limits { color: var(--amber-ink); border-bottom-color: var(--amber-ink); }

p { margin: 0 0 12px; text-wrap: pretty; }

ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { position: relative; padding-left: 26px; margin: 0 0 9px; }
ul.list li::before { position: absolute; left: 4px; top: 0; font-weight: 700; }
ul.bullets li::before { content: "\2022"; color: var(--navy); }
ul.checks li::before { content: "\2713"; color: var(--check); left: 3px; }
ul.cautions li::before { content: "!"; color: var(--amber); font-weight: 700; left: 8px; }

.safety {
  margin: 26px 0 0; padding: 16px 20px;
  background: var(--grey); border: 1px solid var(--border); border-radius: 15px;
  color: var(--muted); font-size: 14.5px;
}
.safety p { margin: 0; }
.safety strong { color: var(--navy); }

.refs-intro { margin: 0 0 12px; font-style: italic; color: var(--muted); font-size: 14.5px; }
ol.refs { margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
ol.refs li { margin: 0 0 10px; padding-left: 4px; overflow-wrap: anywhere; }
ol.refs a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
ol.refs a:hover { color: var(--blue); }
.disclaimer { margin: 18px 0 0; font-style: italic; color: var(--muted); font-size: 14.5px; }

/* Onward links */
.more { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); }
.more h2 { margin-top: 0; }
.chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 20px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.chips a:hover { background: var(--ice); border-color: var(--navy); }
.cta { display: flex; flex-direction: column; align-items: stretch; gap: 16px; margin: 0 0 6px; padding: 20px; background: var(--ice); border: 1px solid var(--ice-line); border-radius: 15px; }
.cta p { margin: 0; font-weight: 700; color: var(--navy); }

/* Footer: the practice's details on navy */
footer { margin-top: 32px; background: var(--navy); background-image: var(--gradient); }
.foot-in { max-width: 920px; margin: 0 auto; padding: 22px 16px calc(26px + env(safe-area-inset-bottom)); font-size: 14px; line-height: 1.7; color: var(--band-text); }
.foot-in a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .band-in { padding: 10px 24px; }
  .brand .sep { display: block; }
  .brand-name { display: flex; }
  .band-label { display: block; }
  main { padding: 22px 24px 8px; }
  h1 { font-size: 36px; }
  .subtitle { font-size: 18px; }
  .title-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  h2 { font-size: 16px; }
  .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 26px; }
  .foot-in { padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  .band { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plain, .safety { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .crumb, .more, .skip { display: none; }
  footer { background: none; }
  .foot-in { color: var(--muted); }
  .foot-in a { color: var(--navy); }
  body { font-size: 11pt; }
  h2, .plain, .safety, ol.refs li { break-inside: avoid; }
}
