/* ==========================================================================
   NovaByte Press — Design System
   Colors, type, and components used across every page.
   Edit values here and the whole site follows.
   ========================================================================== */

:root {
  /* Brand palette (from the Website Master Blueprint) */
  --navy-deep:  #0B1F33;
  --blue:       #1F4E79;
  --blue-tint:  #E9EFF6;
  --green:      #2E7D32;
  --green-tint: #EAF3EB;
  --gold:       #D4A017;
  --gold-tint:  #FBF4DC;
  --orange:     #E67E22;
  --orange-tint:#FDEFE2;
  --purple:     #6B3FA0;
  --purple-tint:#F1EBF8;
  --slate:      #44546A;
  --gray-light: #F4F6F8;
  --gray-line:  #DFE4EA;
  --white:      #FFFFFF;

  /* Type */
  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 4px rgba(11,31,51,.05), 0 12px 32px rgba(11,31,51,.07);
  --shadow-sm: 0 1px 2px rgba(11,31,51,.06), 0 4px 12px rgba(11,31,51,.05);
  --maxw: 1140px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 var(--s-2); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* Keyboard focus stays visible everywhere. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--s-2);
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* Hidden from sight, still read by screen readers. Use this for form
   labels — never .skip-link, which is only for the skip-to-content link. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- Layout -- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.section { padding: var(--s-6) 0; }
.section--tint { background: var(--gray-light); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: var(--s-4); }
.section-head p { color: var(--slate); font-size: 1.05rem; margin-bottom: 0; }
.section--navy .section-head p { color: rgba(255,255,255,.75); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-1);
  display: block;
}

.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy-deep);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.nav__links { display: flex; align-items: center; gap: var(--s-3); }
.nav__links a {
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--blue); }

/* The "Free resources" call-to-action in the navigation.
   `.nav__links a` (specificity 0-1-1) outranks `.btn--primary` (0-1-0), so the
   button inherited slate text on a navy background and was hard to read.
   These scoped rules win the cascade and restore white text with a gold hover. */
.nav__links a.btn--primary {
  color: var(--white);
  font-weight: 700;
  background: var(--blue);
  padding: .6rem 1.15rem;
  border: 2px solid transparent;
}
.nav__links a.btn--primary:hover,
.nav__links a.btn--primary:focus-visible,
.nav__links a.btn--primary[aria-current="page"] {
  color: var(--navy-deep);
  background: var(--gold);
  border-color: var(--gold);
}
.nav__links a.btn--primary:focus-visible {
  outline: 3px solid var(--navy-deep);
  outline-offset: 2px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: .45rem .6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--navy-deep);
}

/* --------------------------------------------------------- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #17395a; box-shadow: var(--shadow-sm); }

.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #c0900f; }

.btn--outline {
  background: transparent;
  border-color: var(--gray-line);
  color: var(--navy-deep);
}
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

.btn--onnavy {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--onnavy:hover { border-color: var(--gold); color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Not-yet-available actions. Rendered as <span>, not <a>, so there is
   nothing to click and nothing for a screen reader to announce as a link. */
.btn--pending {
  background: var(--gray-light);
  border-color: var(--gray-line);
  color: var(--slate);
  cursor: default;
}
.btn--pending:hover { transform: none; }

.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 5px;
  background: var(--gold-tint);
  color: #7a5c07;
  border: 1px solid rgba(212,160,23,.35);
  white-space: nowrap;
}
.badge--soon { background: var(--gray-light); color: var(--slate); border-color: var(--gray-line); }

/* ----------------------------------------------------------- Cards ----- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: var(--s-3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); font-size: .95rem; margin-bottom: 0; }

.card__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: var(--s-2);
  background: var(--blue-tint);
}
.card__icon--green  { background: var(--green-tint); }
.card__icon--gold   { background: var(--gold-tint); }
.card__icon--purple { background: var(--purple-tint); }
.card__icon--orange { background: var(--orange-tint); }

.card__meta {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .5rem;
}

/* Accent bar cards, echoing the book's callout boxes. */
.callout {
  border-left: 5px solid var(--blue);
  background: var(--blue-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--s-3);
}
.callout--gold   { border-color: var(--gold);   background: var(--gold-tint); }
.callout--green  { border-color: var(--green);  background: var(--green-tint); }
.callout--purple { border-color: var(--purple); background: var(--purple-tint); }
.callout--orange { border-color: var(--orange); background: var(--orange-tint); }
.callout h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.callout p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ Hero ----- */
.hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--s-6) 0;
  position: relative;
  overflow: hidden;
}
/* A faint byte-grid: the "one byte at a time" idea, kept very quiet. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,160,23,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,23,.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,.8);
  max-width: 52ch;
  margin-bottom: var(--s-3);
}
.hero__tagline {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-2);
}

/* Compact hero for interior pages */
.pagehead {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--s-5) 0 var(--s-4);
}
.pagehead h1 { color: var(--white); margin-bottom: .6rem; }
.pagehead p {
  color: rgba(255,255,255,.78);
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ------------------------------------------------------- Book layout -- */
.book-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.book-cover {
  background: linear-gradient(160deg, var(--navy-deep), var(--blue));
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-3);
  text-align: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.book-cover__series {
  font-family: var(--font-head);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
}
.book-cover__title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .7rem;
}
.book-cover__sub {
  font-size: .87rem;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  margin-bottom: var(--s-3);
}
.book-cover__rule {
  width: 46px; height: 3px;
  background: var(--gold);
  margin: 0 auto var(--s-3);
  border-radius: 2px;
}
.book-cover__author {
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 600;
}

/* Chapter list — the numbers are real sequence, so they carry meaning. */
.toc { list-style: none; padding: 0; margin: 0; }
.toc__part {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--s-3) 0 .4rem;
  border-bottom: 1px solid var(--gray-line);
  margin-bottom: .4rem;
}
.toc__item {
  display: flex;
  gap: var(--s-2);
  padding: .5rem 0;
  align-items: baseline;
}
.toc__num {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--slate);
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}
.toc__title { font-size: .98rem; }

/* --------------------------------------------------- Resource filter -- */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: var(--s-4);
}
.filterbar button {
  font-family: var(--font-head);
  font-size: .87rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all .12s ease;
}
.filterbar button:hover { border-color: var(--blue); color: var(--blue); }
.filterbar button[aria-pressed="true"] {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.resource-card { display: flex; flex-direction: column; height: 100%; }
/* [hidden] must beat the display rule above, or filtering does nothing. */
[hidden] { display: none !important; }
.resource-card .card__foot {
  margin-top: auto;
  padding-top: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
}
.chapter-tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-tint);
  padding: .22rem .55rem;
  border-radius: 5px;
  white-space: nowrap;
}
.empty-note {
  color: var(--slate);
  font-style: italic;
  padding: var(--s-3) 0;
}

/* ------------------------------------------------------- Newsletter --- */
.signup {
  display: flex;
  gap: var(--s-1);
  max-width: 480px;
  margin-top: var(--s-3);
}
.signup input {
  flex: 1;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
}
.signup input::placeholder { color: rgba(255,255,255,.5); }
.signup input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.13);
}
.form-note {
  margin-top: var(--s-2);
  font-size: .88rem;
  min-height: 1.4em;
}
.form-note--ok   { color: var(--green); }
.form-note--err  { color: var(--orange); }
/* The navy band needs lighter tints to stay legible. */
.section--navy .form-note--ok  { color: #7FD18A; }
.section--navy .form-note--err { color: #FFB4A2; }
.form-note--standing { opacity: .85; }

/* ----------------------------------------------------------- Footer --- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.68);
  padding: var(--s-5) 0 var(--s-3);
  font-size: .93rem;
}
/* Footer column headings use h2 for correct document outline, but keep the
   small uppercase look they had as h4. */
.footer h4, .footer .footer-h {
  color: var(--white);
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 var(--s-2);
  line-height: 1.2;
}
.footer a { color: rgba(255,255,255,.68); text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: none; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer__bottom {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: space-between;
  font-size: .86rem;
}

/* -------------------------------------------------------- Utilities --- */
.lede { font-size: 1.1rem; color: var(--slate); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s-4); }
.prose h3 { margin-top: var(--s-3); }
.stack > * + * { margin-top: var(--s-2); }
.center { text-align: center; }
.mt-3 { margin-top: var(--s-3); }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------- Responsive - */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .book-layout { grid-template-columns: 1fr; }
  .book-cover { position: static; max-width: 340px; }

  /* The full menu no longer fits on one line below this width, so it
     collapses into the toggle here rather than at 700px. */
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    padding: var(--s-2) var(--s-3) var(--s-3);
    box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .7rem 0; border-bottom: 1px solid var(--gray-line); }
  .nav__links .btn { margin-top: var(--s-2); text-align: center; border-bottom: none; }
  .nav__links a.btn--primary { display: block; padding: .85rem 1.15rem; }
}

@media (max-width: 700px) {
  :root { --s-5: 3rem; --s-6: 3.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .signup { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card--link:hover, .btn:hover { transform: none; }
}

/* ==========================================================================
   Resource cards: secondary download formats
   ========================================================================== */
.card__alt {
  font-size: .82rem;
  color: var(--slate);
  padding-top: .55rem;
  margin-bottom: 0;
}
.card__alt a { color: var(--blue); font-weight: 700; }
.card__alt a:hover { color: var(--navy-deep); }

/* ==========================================================================
   Certificate generator (certificate.html)
   The sheet is built at a fixed 1050x742, an A4 landscape ratio, then scaled
   to fit its container. Fixed dimensions keep every proportion identical
   whether it is previewed on a phone or sent to a printer.
   ========================================================================== */
.cert-form, .contact-form { max-width: 34rem; }
.cert-form .field, .contact-form .field { margin-bottom: var(--s-3); }
.cert-form label, .contact-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy-deep);
  margin-bottom: .4rem;
}
.cert-form input[type="text"],
.cert-form input[type="date"],
.cert-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .7rem .85rem;
  border: 2px solid var(--gray-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-deep);
}
.cert-form input:focus, .cert-form select:focus,
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field--check label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .95rem;
  color: var(--slate);
  cursor: pointer;
}
.field--check input { margin-top: .2rem; flex: none; width: 1.1rem; height: 1.1rem; }
.field__err {
  color: var(--orange);
  font-size: .85rem;
  font-weight: 700;
  margin: .4rem 0 0;
}

.cert-stage { width: 100%; overflow: hidden; }
.cert-sheet {
  width: 1050px;
  height: 742px;
  transform-origin: top left;
  background: var(--white);
  border: 1px solid var(--gray-line);
  box-shadow: var(--shadow);
  padding: 20px;
}
.cert-sheet__inner {
  height: 100%;
  border: 3px solid var(--navy-deep);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  padding: 34px 60px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cert-logo { width: 62px; height: 62px; display: block; margin: 0 auto .5rem; }
.cert-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin: 0;
}
.cert-series {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: .2rem 0 0;
}
.cert-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  color: var(--navy-deep);
  margin: 1.1rem 0 0;
}
.cert-rule { width: 96px; height: 4px; background: var(--gold); margin: .85rem 0 1.1rem; }
.cert-intro { font-style: italic; color: var(--slate); font-size: 1rem; margin: 0; }
.cert-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.15rem;
  line-height: 1.15;
  color: var(--blue);
  margin: .5rem 0 .6rem;
  padding: 0 1rem .5rem;
  border-bottom: 2px solid var(--gray-line);
  max-width: 78%;
  word-break: break-word;
}
.cert-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--navy-deep);
  max-width: 82%;
  margin: .5rem 0 0;
}
.cert-body strong { color: var(--blue); }
.cert-motto {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  margin: .55rem 0 0;
}

.cert-foot {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.cert-foot__col { text-align: left; min-width: 210px; }
.cert-foot__col--right { text-align: right; }
.cert-ref-label {
  font-family: var(--font-head);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 .2rem;
}
.cert-ref {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
}
.cert-seal {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gold-tint);
}
.cert-seal span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--navy-deep);
}
.cert-seal small { font-size: .58rem; color: var(--slate); letter-spacing: .06em; }

.cert-tagline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--gold);
  margin: .9rem 0 0;
}
.cert-disclaimer {
  font-size: .62rem;
  line-height: 1.5;
  color: var(--slate);
  max-width: 88%;
  margin: .45rem 0 0;
}

.cert-actions { margin-top: var(--s-3); }

/* -------------------------------------------------------- Printing ----- */
@media print {
  @page { size: A4 landscape; margin: 0; }

  .cert-hide-print, .nav, .footer, .skip-link { display: none !important; }

  body { background: var(--white); }
  main, .section, .wrap, .cert-preview-section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    background: var(--white) !important;
  }

  /* 1050px scaled to the 1122px width of A4 landscape at 96dpi. */
  .cert-stage { height: 794px !important; overflow: hidden; }
  .cert-sheet {
    transform: scale(1.0686) !important;
    box-shadow: none;
    border: none;
  }
}

/* Textareas need an explicit family: browsers default them to monospace. */
.contact-form textarea {
  font-family: var(--font-body);
  line-height: 1.6;
  resize: vertical;
  min-height: 8rem;
}
.contact-form button[disabled] { opacity: .6; cursor: progress; }
