/* ==========================================================================
   Anti-Plagiarism.org
   --------------------------------------------------------------------------
    1. Fonts            8. Example viewer      14. Questions
    2. Colours          9. Sections            15. Contact
    3. Base            10. Service tiles       16. Footer
    4. Helpers         11. Steps               17. Motion
    5. Buttons         12. What we do          18. Forced colours, print
    6. Header          13. Prices
    7. Hero

   Light theme: white page, navy bands, azure accents.
   Dark theme: navy page. The example document and the message card stay
   light in both themes, like paper.
   ========================================================================== */


/* 1. Fonts ---------------------------------------------------------------- */

/* Site voice: Atkinson Hyperlegible Next, drawn by the Braille Institute for
   readers with low vision. One variable file covers every weight. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* A system font resized to the same proportions, so text does not jump
   when the real font arrives. */
@font-face {
  font-family: "Atkinson Fallback";
  src: local("Arial"), local("Roboto"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 99.6%;
  ascent-override: 98.8%;
  descent-override: 31.7%;
  line-gap-override: 0%;
}

/* The student's paper: Times New Roman where the device has it,
   otherwise Tinos, which has identical proportions. */
@font-face {
  font-family: "Manuscript";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"),
       url("../fonts/tinos-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manuscript";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"),
       url("../fonts/tinos-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* 2. Colours -------------------------------------------------------------- */

:root {
  /* Fixed colours */
  --navy: #071d3a;
  --navy-deep: #041327;
  --azure: #1a8cff;
  --azure-soft: #5cb0ff;
  --action: #0a5fd1;
  --action-hover: #084fb0;
  --hl-yellow: #ffe45c;
  --hl-pink: #ffb3d0;
  --hl-blue: #a8d5ff;
  --hl-green: #9ce9b4;
  --pen: #0a5fd1;
  --paper-text: #0b1a2e;
  --paper-text-2: #4a5b72;
  --paper-line: #d5e2f3;

  /* Theme: light. The page colours. */
  --page-surface: #fff;
  --page-tint: #f2f7ff;
  --page-tint-2: #e4efff;
  --page-card: #fff;
  --page-text: #0b1a2e;
  --page-text-2: #4a5b72;
  --page-line: #d5e2f3;
  --page-link: #0a5fd1;
  --page-icon: #0a5fd1;
  --page-btn-bg: #0a5fd1;
  --page-btn-bg-hover: #084fb0;
  --page-btn-text: #fff;
  --page-btn-icon: #fff;
  --page-ring: #0a5fd1;
  --page-shadow: 0 1px 2px rgb(7 29 58 / 0.06), 0 14px 32px -20px rgb(7 29 58 / 0.32);
  --band-bg: var(--navy);
  color-scheme: light;

  /* What each part of the page uses. The navy bands override these. */
  --surface: var(--page-surface);
  --tint: var(--page-tint);
  --tint-2: var(--page-tint-2);
  --card: var(--page-card);
  --text: var(--page-text);
  --text-2: var(--page-text-2);
  --line: var(--page-line);
  --link: var(--page-link);
  --icon: var(--page-icon);
  --btn-bg: var(--page-btn-bg);
  --btn-bg-hover: var(--page-btn-bg-hover);
  --btn-text: var(--page-btn-text);
  --btn-icon: var(--page-btn-icon);
  --ring: var(--page-ring);
  --mark-tile: var(--azure);
  --mark-quote: #fff;

  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-paper: "Manuscript", "Times New Roman", Times, "Liberation Serif", serif;

  --wrap: 76rem;
  --gutter: min(clamp(1.25rem, 4vw, 2.5rem), 6vw);
  --header-h: 4.25rem;
  --section-pad: clamp(4rem, 9vw, 7rem);
}

/* Theme: dark. Written twice on purpose: once for visitors whose device is
   set to dark, once for visitors who chose it with the button. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-surface: #0a1830;
    --page-tint: #0d1d38;
    --page-tint-2: #15294a;
    --page-card: #11223f;
    --page-text: #e9eef8;
    --page-text-2: #a9b7cc;
    --page-line: #22385c;
    --page-link: #7cc0ff;
    --page-icon: #7cc0ff;
    --page-btn-bg: #3b9bff;
    --page-btn-bg-hover: #63b0ff;
    --page-btn-text: #041327;
    --page-btn-icon: #041327;
    --page-ring: #7cc0ff;
    --page-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 32px -20px rgb(0 0 0 / 0.65);
    --band-bg: #061327;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page-surface: #0a1830;
  --page-tint: #0d1d38;
  --page-tint-2: #15294a;
  --page-card: #11223f;
  --page-text: #e9eef8;
  --page-text-2: #a9b7cc;
  --page-line: #22385c;
  --page-link: #7cc0ff;
  --page-icon: #7cc0ff;
  --page-btn-bg: #3b9bff;
  --page-btn-bg-hover: #63b0ff;
  --page-btn-text: #041327;
  --page-btn-icon: #041327;
  --page-ring: #7cc0ff;
  --page-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 32px -20px rgb(0 0 0 / 0.65);
  --band-bg: #061327;
  color-scheme: dark;
}

/* Navy bands: white text, white buttons. */
.hero,
.page-hero,
.rules,
.contact,
.price-panel,
.site-footer,
.site-header.is-over-band {
  --text: #fff;
  --text-2: #c3d2e8;
  --line: rgb(255 255 255 / 0.16);
  --link: #9fd0ff;
  --icon: var(--azure-soft);
  --btn-bg: #fff;
  --btn-bg-hover: #e4efff;
  --btn-text: var(--navy);
  --btn-icon: #1faa52;
  --ring: #fff;
  color: var(--text);
}

.price-panel {
  --text-2: #e6efff;
}

/* Paper: the example document, the notes, the message card and the
   "what we do" card look the same in both themes. */
.viewer,
.composer,
.rules__card--do {
  --text: var(--paper-text);
  --text-2: var(--paper-text-2);
  --line: var(--paper-line);
  --link: var(--action);
  --icon: var(--action);
  --tint-2: #e4efff;
  --btn-bg: var(--action);
  --btn-bg-hover: var(--action-hover);
  --btn-text: #fff;
  --btn-icon: #fff;
  --ring: var(--action);
  color: var(--text);
}


/* 3. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--page-surface);
  color: var(--page-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

h1, h2, h3, p, ul, ol, figure, fieldset {
  margin: 0;
}

h1, h2, h3 {
  color: inherit;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

p {
  text-wrap: pretty;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

@media (hover: hover) {
  a:hover {
    text-decoration-thickness: 0.16em;
  }
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

svg {
  flex: none;
}

fieldset {
  min-inline-size: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: #bfe0ff;
  color: #0b1a2e;
}


/* 4. Helpers -------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), var(--wrap));
  margin-inline: auto;
}

/* Anything marked hidden stays hidden, whatever its class says */
[hidden] {
  display: none !important;
}

/* Visually hidden, still read by screen readers */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Controls that need JavaScript stay hidden without it */
html:not(.js) .js-only {
  display: none !important;
}

.sprite {
  position: absolute;
}

.mark-tile {
  fill: var(--mark-tile);
}

.mark-quote {
  fill: var(--mark-quote);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid #fff;
  outline-offset: -6px;
}


/* 5. Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 26px -16px rgb(4 19 39 / 0.65);
  transition: background-color 0.15s, box-shadow 0.15s;
}

.button__icon {
  color: var(--btn-icon);
}

@media (hover: hover) {
  .button:hover {
    background: var(--btn-bg-hover);
    box-shadow: 0 16px 32px -16px rgb(4 19 39 / 0.75);
  }
}

.button--large {
  min-height: 3.75rem;
  padding-inline: 1.75rem;
  font-size: 1.125rem;
}

/* Narrow phones: keep the label on one line. */
@media (max-width: 23.99rem) {
  .button,
  .button--large {
    padding-inline: 1.125rem;
    font-size: 1rem;
  }
}

.button--compact {
  min-height: 2.75rem;
  padding: 0.375rem 1.125rem;
  font-size: 1rem;
  box-shadow: none;
}

.button--wide {
  width: 100%;
}


/* 6. Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page-surface);
  color: var(--text);
  box-shadow: 0 1px 0 var(--page-line), 0 10px 30px -22px rgb(4 19 39 / 0.45);
  transition: background-color 0.2s, box-shadow 0.2s;
}

/* While the header sits on the navy band at the top it takes the band's colour. */
.site-header.is-over-band {
  background: var(--band-bg);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  color: inherit;
  font-size: min(1.1875rem, 5vw);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  margin: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .site-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 0.12em;
  }
}

.site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--azure);
  text-decoration-thickness: 0.18em;
  text-underline-offset: 0.35em;
}

.theme-toggle,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: min(2.75rem, 13vw);
  min-height: min(2.75rem, 13vw);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
}

/* Small screens: the navigation opens as a panel under the header.
   It uses the browser's own popover, so Escape and a tap outside close it. */
@media (max-width: 59.99rem) {
  .site-nav {
    --ring: var(--page-ring);
    position: fixed;
    inset: calc(var(--header-h) + 0.5rem)
      calc(var(--gutter) + env(safe-area-inset-right, 0px))
      auto
      calc(var(--gutter) + env(safe-area-inset-left, 0px));
    width: auto;
    /* On short screens (a phone held sideways) the panel scrolls. */
    max-height: calc(100vh - var(--header-h) - 1rem);
    max-height: calc(100dvh - var(--header-h) - 1rem);
    margin: 0;
    padding: 0.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--page-line);
    border-radius: 1.25rem;
    background: var(--page-card);
    color: var(--page-text);
    box-shadow: 0 30px 60px -24px rgb(4 19 39 / 0.55);
  }

  .site-nav::backdrop {
    background: rgb(4 19 39 / 0.55);
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a,
  .theme-toggle {
    justify-content: flex-start;
    width: 100%;
    min-height: 3.25rem;
    padding-inline: 1rem;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .theme-toggle {
    border-top: 1px solid var(--page-line);
    border-radius: 0 0 0.75rem 0.75rem;
  }

  .header-cta__text {
    display: none;
  }

  .header-cta {
    width: min(2.75rem, 13vw);
    min-height: min(2.75rem, 13vw);
    padding: 0;
  }

  /* Browsers without popover support: leave the panel out.
     Every link is repeated in the footer. */
  @supports not selector(:popover-open) {
    .site-nav,
    .menu-button {
      display: none;
    }
  }
}

@media (min-width: 29rem) and (max-width: 59.99rem) {
  .header-cta__text {
    display: inline;
  }

  .header-cta {
    width: auto;
    padding: 0.375rem 1.125rem;
  }
}

/* Wide screens: the same navigation sits in the header row. */
@media (min-width: 60rem) {
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: auto;
    height: auto;
    margin: 0 0.5rem 0 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
    color: inherit;
  }

  .theme-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-button {
    display: none;
  }
}

/* Without JavaScript, a menu opened on a small screen stays open when the
   window widens. Hide that copy so it can't cover the page; the first click
   anywhere closes it. (A separate rule, because older Safari drops any rule
   that names :popover-open.) */
@media (min-width: 60rem) {
  .site-nav:popover-open {
    visibility: hidden;
  }
}


/* 7. Hero ----------------------------------------------------------------- */

.hero {
  /* How far the example document reaches below the navy band */
  --overlap: clamp(8rem, 16vw, 15rem);
  position: relative;
  isolation: isolate;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  background: var(--page-surface);
}

.hero__band {
  position: absolute;
  inset: 0 0 var(--overlap) 0;
  z-index: -1;
  overflow: hidden;
  background: var(--band-bg);
}

/* Graph paper, fading out towards the bottom */
.hero__band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.055) 1px, transparent 1px);
  background-position: center top;
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
}

/* A blue light from the top right */
.hero__band::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -18%;
  width: min(75vw, 62rem);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(26 140 255 / 0.4), rgb(26 140 255 / 0.1) 60%, transparent);
}

.hero ::selection,
.page-hero ::selection,
.rules ::selection,
.contact ::selection,
.price-panel ::selection {
  background: var(--azure-soft);
  color: var(--navy-deep);
}

.hero h1 {
  font-size: clamp(2.25rem, max(6.6vw, min(11vw, 2.5rem)), 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

@media (min-width: 37.5rem) {
  .hero h1 span {
    display: block;
  }
}

.hero__sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 62rem) {
  .hero__sub {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

.hero__lead {
  max-width: 38em;
  color: var(--text-2);
  font-size: clamp(1.1875rem, 1.05rem + 0.65vw, 1.375rem);
  line-height: 1.5;
}

.hero__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  justify-items: start;
}

.hero__meta {
  color: var(--text-2);
  font-size: 1rem;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
}

.hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.hero__facts svg {
  margin-top: 0.1em;
  color: var(--azure-soft);
}


/* 8. Example viewer ------------------------------------------------------- */

.review {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

.review__head {
  max-width: 46rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.review__intro {
  margin-top: 0.75rem;
  color: var(--text-2);
}

/* A document window: toolbar on top, the page and the notes below.
   Its own layer keeps it clearly above the navy band behind it. */
.viewer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #e8eff9;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 24px 48px -24px rgb(2 10 24 / 0.45),
    0 60px 120px -48px rgb(2 10 24 / 0.6);
}

.viewer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--paper-line);
  background: #fff;
}

.viewer__file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.viewer__file svg {
  color: var(--action);
}

/* Two-way switch: flagged draft / after you revise */
.switch__options {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 0.25rem;
  border: 1px solid var(--paper-line);
  border-radius: 1.75rem;
  background: #f2f7ff;
}

.switch label {
  position: relative;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

.switch input:checked + span {
  background: var(--action);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgb(10 95 209 / 0.9);
}

/* Keyboard focus ring. The plain :focus rule is for older Safari, which has
   no :focus-visible; newer browsers then hide it again for mouse and touch. */
.switch input:focus + span {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}

.switch input:focus:not(:focus-visible) + span {
  outline: none;
}

/* Narrow phones: keep both options on one line. */
@media (max-width: 23.99rem) {
  .viewer__bar {
    padding-inline: 0.75rem;
  }

  .switch span {
    padding-inline: 0.625rem;
    font-size: 0.875rem;
  }
}

.review__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(0.875rem, 3vw, 2rem);
}

@media (min-width: 60rem) {
  .review__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1.75rem;
    align-items: start;
  }
}

/* The sheet of paper */
.sheet {
  padding: clamp(1.5rem, 4.5vw, 3rem) clamp(1.25rem, 5vw, 3.5rem) clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: 0.25rem;
  background: #fff;
  color: var(--paper-text);
  box-shadow: 0 1px 2px rgb(7 29 58 / 0.12), 0 18px 36px -22px rgb(7 29 58 / 0.5);
  font-family: var(--font-paper);
  font-size: 1.0625rem;
  line-height: 1.85;
}

@media (min-width: 48rem) {
  .sheet {
    font-size: 1.1875rem;
    line-height: 2;
  }
}

.sheet ::selection {
  background: var(--paper-text);
  color: #fff;
}

.sheet__running {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #5b6779;
  font-size: 0.875rem;
  line-height: 1.2;
}

.sheet__heading {
  font-weight: 700;
}

.sheet__text {
  text-indent: 2.25em;
  text-wrap: wrap;
}

.sheet__key {
  margin-top: 1.25rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--paper-line);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* A flagged passage: a stroke of highlighter behind the words */
.flag {
  --hl: var(--hl-yellow);
  padding-block: 0.1em;
  border-radius: 0.14em;
  background: linear-gradient(var(--hl), var(--hl)) 0 50% / 100% 100% no-repeat;
  color: inherit;
}

.flag--ai,
.note--ai {
  --hl: var(--hl-blue);
}

.flag--ok,
.note--ok {
  --hl: var(--hl-green);
}

.flag--copied,
.note--copied {
  --hl: var(--hl-yellow);
}

.flag--cite,
.note--cite {
  --hl: var(--hl-pink);
}

.flag.is-active {
  text-decoration-line: underline;
  text-decoration-color: var(--paper-text);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.26em;
}

/* The numbered tag at the end of a passage, and on its note */
.flag__ref,
.note__num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--paper-text);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
  text-indent: 0;
}

.flag__ref {
  position: relative;
  margin-inline: 0.3em 0.1em;
  vertical-align: 0.12em;
  text-decoration: none;
}

/* Keeps a tag on the same line as the last word of its passage */
.nb {
  white-space: nowrap;
}

/* Enlarges the tap area of the tag without moving the text */
.flag__ref::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
}

.flag__ref:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}

/* What the student added or rewrote, shown in pen */
.sheet ins {
  color: var(--pen);
  text-decoration-line: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

/* Which version is showing */
.review[data-view="draft"] .only-revised,
.review[data-view="revised"] .only-draft {
  display: none;
}

.review[data-view="revised"] .flag:not(.flag--ok):not(.flag--ai) {
  background-image: none;
}

/* The notes, like comments beside a document */
.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
}

/* Between phone and desktop the notes sit two by two under the sheet. */
@media (min-width: 40rem) and (max-width: 59.99rem) {
  .notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note {
  padding: 0.875rem 1.125rem 1rem 1.375rem;
  border-radius: 0.875rem;
  outline: 2px solid transparent;
  outline-offset: 0;
  background: #fff;
  color: var(--paper-text);
  box-shadow: inset 5px 0 0 var(--hl), 0 1px 2px rgb(7 29 58 / 0.1), 0 10px 24px -18px rgb(7 29 58 / 0.4);
  font-size: 1rem;
  line-height: 1.5;
  scroll-margin: calc(var(--header-h) + 1rem) 0 1rem;
  transition: outline-color 0.15s;
}

.note.is-active,
.note:target {
  outline-color: var(--action);
}

.note__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  font-weight: 700;
}

.note__type {
  padding: 0.05em 0.4em;
  border-radius: 0.25em;
  background: var(--hl);
}


/* 9. Sections ------------------------------------------------------------- */

.section {
  padding-block: var(--section-pad);
}

.section--tint {
  background: var(--tint);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head p {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* Heading on the left, content on the right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .split__head {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
  }
}

.split__head p {
  max-width: 30em;
  margin-top: 1rem;
  color: var(--text-2);
}


/* 10. Service tiles ------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem 3rem;
  margin: 0;
}

@media (min-width: 40rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tile__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: var(--tint-2);
  color: var(--icon);
}

.tile h3 {
  margin-top: 1rem;
}

.tile p {
  max-width: 34em;
  margin-top: 0.5rem;
  color: var(--text-2);
}

/* Guidance: the same content as cards on the tinted band */
.tiles--cards {
  gap: 1rem;
}

.tiles--cards .tile {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--page-shadow);
}

@media (min-width: 72rem) {
  .tiles--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* 11. Steps --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 0;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }
}

.step {
  position: relative;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px -12px rgb(10 95 209 / 0.9);
}

.step h3 {
  margin-top: 1.25rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--text-2);
}

/* Four in a row, joined by a line */
@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(1.5rem - 1px);
    left: 3.75rem;
    right: -1.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
  }
}


/* 12. What we do, what we don't ------------------------------------------- */

.rules {
  background:
    radial-gradient(48rem 30rem at 0% 100%, rgb(26 140 255 / 0.2), transparent 70%),
    var(--band-bg);
}

.rules__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
}

@media (min-width: 60rem) {
  .rules__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

.rules__head p {
  max-width: 30em;
  margin-top: 1rem;
  color: var(--text-2);
}

.rules__lists {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 40rem) {
  .rules__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rules__card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 1.25rem;
}

.rules__card--do {
  background: #fff;
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.7);
}

.rules__card--dont {
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.05);
}

.checklist {
  margin: 1rem 0 0;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-block: 0.75rem;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.checklist__icon {
  margin-top: 0.1em;
}

.rules__card--do .checklist__icon {
  color: #138a43;
}

.rules__card--dont .checklist__icon {
  color: #ff8fb4;
}


/* 13. Prices -------------------------------------------------------------- */

.price-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem 3rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #0a5fd1 0%, #0846a3 100%);
  box-shadow: 0 40px 80px -44px rgb(8 70 163 / 0.85);
}

.price-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -55%;
  right: -12%;
  width: min(36rem, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgb(92 176 255 / 0.32), transparent);
}

@media (min-width: 60rem) {
  .price-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Phones: the panel runs edge to edge, with a full-width button */
@media (max-width: 39.99rem) {
  .price-panel {
    margin-inline: calc(-1 * var(--gutter));
    padding: 2.25rem var(--gutter);
    border-radius: 0;
  }

  .price-panel .button {
    width: 100%;
    padding-inline: 1rem;
    font-size: 1.0625rem;
  }
}

@media (max-width: 23.99rem) {
  .price-panel .button {
    font-size: 1rem;
  }
}

.price-panel__lead {
  max-width: 30em;
  margin-top: 1rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.price-panel__lead + p {
  max-width: 34em;
  margin-top: 0.75rem;
  color: var(--text-2);
}


/* 14. Questions ----------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.qa {
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--page-shadow);
}

.qa summary {
  --pad: 1.125rem;
  position: relative;
  display: block;
  padding: var(--pad) 4rem var(--pad) 1.25rem;
  border-radius: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .qa summary:hover {
    color: var(--link);
  }
}

/* Plus sign in a circle that turns into a cross when the answer is open */
.qa summary::after {
  content: "";
  position: absolute;
  top: calc(var(--pad) - 0.15rem);
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--icon), var(--icon)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--icon), var(--icon)) center / 2px 0.75rem no-repeat,
    var(--tint-2);
}

.qa[open] summary::after {
  rotate: 45deg;
}

.qa__body {
  max-width: 40em;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-2);
}


/* 15. Contact ------------------------------------------------------------- */

.contact {
  background:
    radial-gradient(48rem 30rem at 100% 0%, rgb(26 140 255 / 0.2), transparent 70%),
    var(--band-bg);
}

.contact .split__head .contact__number {
  margin-top: 1.5rem;
  color: var(--text);
  font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Two-column layout: keep the number on one line. */
@media (min-width: 60rem) {
  .contact .split__head .contact__number {
    white-space: nowrap;
  }
}

.contact__number a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

.contact .split__head .contact__number + p {
  margin-top: 0.5rem;
}

/* The message writer is a white card in both themes. */
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-self: start;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7);
}

.chips legend,
.field label,
.preview__label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 700;
}

.field__optional {
  color: var(--text-2);
  font-weight: 400;
}

.chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  padding: 0.5625rem 1rem;
  border: 2px solid #b9cce6;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.chip input:checked + span {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
}

.chip input:focus + span {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}

.chip input:focus:not(:focus-visible) + span {
  outline: none;
}

.field input {
  width: 11.5rem;
  max-width: 100%;
  min-height: 2.875rem;
  padding: 0.5rem 0.875rem;
  border: 2px solid #b9cce6;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--paper-text);
  color-scheme: light;
}

.preview__bubble {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: 1rem 1rem 0.25rem 1rem;
  background: #dcf8c6;
  line-height: 1.45;
  white-space: pre-line;
}


/* 16. Footer -------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--navy-deep);
  font-size: 1rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 2rem;
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  }
}

.site-footer__brand p {
  max-width: 22em;
  margin-top: 1rem;
  color: var(--text-2);
}

.site-footer__nav ul {
  display: grid;
  gap: 0.125rem;
  margin: 0;
}

.site-footer__nav a,
.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.site-footer__contact a {
  font-weight: 700;
}

.site-footer__contact p + p {
  color: var(--text-2);
}

/* Three-column layout: keep each link on one line. */
@media (min-width: 48rem) {
  .site-footer__nav a,
  .site-footer__contact a {
    white-space: nowrap;
  }
}

.site-footer__legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-footer__legal p {
  max-width: 46em;
}

@media (min-width: 48rem) {
  .site-footer__legal {
    grid-column: 1 / -1;
  }
}


/* 17. Motion -------------------------------------------------------------- */

@keyframes flag-draw {
  from {
    background-size: 0% 100%;
  }
  to {
    background-size: 100% 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* The one staged moment on the page: when the document scrolls into view,
     the highlighter runs across each flagged passage in turn. */
  .js .review:not(.is-drawn) .flag {
    background-size: 0% 100%;
  }

  .js .review.is-drawn .flag {
    animation: flag-draw 0.7s cubic-bezier(0.3, 0.1, 0.2, 1) both;
  }

  #flag-1 { animation-delay: 0.15s; }
  #flag-2 { animation-delay: 0.6s; }
  #flag-3 { animation-delay: 1.05s; }
  #flag-4 { animation-delay: 1.5s; }

  /* Switching between draft and revision cross-fades the document. */
  .sheet {
    view-transition-name: review-sheet;
  }

  .notes {
    view-transition-name: review-notes;
  }

  ::view-transition-group(review-sheet),
  ::view-transition-group(review-notes) {
    animation-duration: 0.3s;
  }

  /* Changing theme: the new colours open in a circle from the button. */
  .theme-switching .sheet,
  .theme-switching .notes {
    view-transition-name: none;
  }

  .theme-switching::view-transition-old(root),
  .theme-switching::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
  }

  .qa summary::after {
    transition: rotate 0.2s;
  }

  /* Answers open and close smoothly where the browser can animate to "auto". */
  @supports (interpolate-size: allow-keywords) {
    .qa {
      interpolate-size: allow-keywords;
    }

    .qa::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete;
    }

    .qa[open]::details-content {
      block-size: auto;
    }
  }
}

/* The menu panel fades in on small screens. */
@media (prefers-reduced-motion: no-preference) and (max-width: 59.99rem) {
  .site-nav {
    opacity: 0;
    translate: 0 -0.5rem;
    transition: opacity 0.16s, translate 0.16s, overlay 0.16s allow-discrete, display 0.16s allow-discrete;
  }

  .site-nav:popover-open {
    opacity: 1;
    translate: 0 0;
  }

  @starting-style {
    .site-nav:popover-open {
      opacity: 0;
      translate: 0 -0.5rem;
    }
  }
}


/* 18. Forced colours, print ----------------------------------------------- */

@media (forced-colors: active) {
  .button,
  .chip span,
  .switch span,
  .note,
  .composer,
  .sheet,
  .viewer,
  .qa,
  .tiles--cards .tile,
  .rules__card,
  .price-panel {
    border: 2px solid CanvasText;
  }

  .flag,
  .note__type {
    background: Mark;
    color: MarkText;
    forced-color-adjust: none;
  }

  .flag__ref,
  .note__num,
  .step__num {
    border: 1px solid CanvasText;
  }

  .chip input:checked + span,
  .switch input:checked + span {
    background: Highlight;
    color: HighlightText;
    forced-color-adjust: none;
  }

  /* The plus/cross on each question is drawn with gradients, which forced
     colours would otherwise remove. */
  .qa summary::after {
    forced-color-adjust: none;
    background:
      linear-gradient(CanvasText, CanvasText) center / 0.75rem 2px no-repeat,
      linear-gradient(CanvasText, CanvasText) center / 2px 0.75rem no-repeat;
  }

  .checklist__icon,
  .hero__facts svg,
  .tile__icon {
    color: CanvasText;
  }
}

/* Print: black on white in either theme. */
@media print {
  :root:root {
    --page-surface: #fff;
    --page-tint: #fff;
    --page-tint-2: #eee;
    --page-card: #fff;
    --page-text: #000;
    --page-text-2: #333;
    --page-line: rgb(0 0 0 / 0.3);
    --band-bg: #fff;
    color-scheme: light;
  }

  .hero,
  .rules,
  .contact,
  .price-panel,
  .site-footer {
    --text: #000;
    --text-2: #333;
    --line: rgb(0 0 0 / 0.3);
    --link: #0a5fd1;
    --icon: #000;
    --btn-bg: #fff;
    --btn-text: #000;
    --btn-icon: #000;
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .hero__band,
  .price-panel::before,
  .site-header,
  .switch,
  .composer .js-only,
  .skip-link {
    display: none !important;
  }

  .site-footer a,
  .site-footer__legal,
  .checklist__icon,
  .hero__facts svg {
    color: #000 !important;
  }

  .button {
    border: 1px solid #000;
    box-shadow: none;
  }

  .viewer {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  /* Print every highlight, even if the page was never scrolled to it. */
  .flag {
    background-size: 100% 100% !important;
    animation: none !important;
  }

  .section,
  .hero {
    padding-block: 1.5rem;
  }
}


/* ==========================================================================
   19. Multi-page site (added November 2026)
   --------------------------------------------------------------------------
   19.1 Chinese pages        19.6 Articles and guides   19.11 Reviews
   19.2 Language menu        19.7 Services page         19.12 Consent notice
   19.3 Inner-page hero      19.8 Timeline              19.13 Footer
   19.4 Breadcrumbs          19.9 Link cards            19.14 Forced colours
   19.5 Prose                19.10 Notices and panels
   ========================================================================== */

/* 19.1 Chinese pages: CJK system fonts after the Latin face, more leading,
   no negative tracking (it crowds Han characters). */
:root:lang(zh) {
  --font-sans: "Atkinson Hyperlegible Next", "Atkinson Fallback", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-paper: "Manuscript", "Times New Roman", "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
}

:lang(zh) body {
  line-height: 1.75;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
  letter-spacing: 0;
  line-height: 1.3;
}

:lang(zh) .hero h1 {
  line-height: 1.18;
}

/* Each half of the Chinese headline keeps to its own line on every screen */
:lang(zh) .hero h1 span {
  display: block;
}

/* 19.2 Language menu ------------------------------------------------------ */

.lang {
  position: relative;
}

.lang > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.lang > summary::-webkit-details-marker {
  display: none;
}

.lang__list {
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  border: 1px solid var(--page-line);
  border-radius: 1rem;
  background: var(--page-card);
  color: var(--page-text);
}

.lang__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.lang__list a[aria-current] {
  background: var(--page-tint-2);
  font-weight: 800;
}

@media (hover: hover) {
  .lang__list a:hover {
    background: var(--page-tint);
  }
}

.lang__code {
  color: var(--page-text-2);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 60rem) {
  .lang__list {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 30;
    min-width: 12.5rem;
    box-shadow: 0 30px 60px -24px rgb(4 19 39 / 0.55);
  }
}

@media (max-width: 59.99rem) {
  .lang > summary {
    justify-content: flex-start;
    width: 100%;
    min-height: 3.25rem;
    padding-inline: 1rem;
    border-top: 1px solid var(--page-line);
    border-radius: 0;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .lang__list {
    margin: 0.25rem 0 0.5rem;
    border: 0;
    background: var(--page-tint);
  }
}

/* 19.3 Inner-page hero: the same navy band and graph paper, shorter --------- */

.page-hero {
  --overlap: 0px;
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(2.75rem, 6vw, 4.5rem);
  background: var(--band-bg);
}

.page-hero h1 {
  max-width: 24ch;
  font-size: clamp(2.125rem, 1.45rem + 3vw, 3.875rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.page-hero__lead {
  max-width: 40em;
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: clamp(1.125rem, 1.04rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}

.page-hero__meta {
  margin-top: 1.5rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.page-hero .hero__actions {
  margin-top: 1.75rem;
}

/* 19.4 Breadcrumbs -------------------------------------------------------- */

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.6;
}

.crumbs a {
  color: inherit;
}

.crumbs [aria-current] {
  color: var(--text);
  font-weight: 600;
}

/* 19.5 Prose -------------------------------------------------------------- */

.prose {
  max-width: 42rem;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.prose h3 {
  margin-top: 1.8em;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--icon);
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  margin-inline: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--line);
  color: var(--text-2);
}

/* The quick answer at the top of a guide: a stroke of highlighter, the site's mark */
.callout {
  padding: 1.25rem 1.5rem 1.375rem 1.75rem;
  border-radius: 1rem;
  background: var(--tint);
  box-shadow: inset 6px 0 0 var(--hl-yellow);
}

.callout__title {
  margin-bottom: 0.375rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px var(--line);
}

.data-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--tint);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.swatch {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.5rem;
  border-radius: 3px;
  vertical-align: -0.1em;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
}

.sources {
  font-size: 0.9375rem;
}

.sources li + li {
  margin-top: 0.35em;
}

/* 19.6 Articles and guides: contents on the side, one reading column -------- */

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .article {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 4rem;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 3rem);
    overflow-y: auto;
  }
}

.toc__title {
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 0.375rem 0 0.375rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a[aria-current] {
  border-left-color: var(--azure);
  color: var(--text);
  font-weight: 700;
}

@media (hover: hover) {
  .toc a:hover {
    color: var(--text);
  }
}

.byline {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* 19.7 Services page: heading on the left, detail on the right ------------- */

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 3rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.service:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 60rem) {
  .service {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.service__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.service__head h2 {
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.service__body > * + * {
  margin-top: 1rem;
}

.service__body p {
  max-width: 40em;
}

.service__body .checklist {
  margin-top: 1.25rem;
}

.more-link {
  display: inline-flex;
  font-weight: 700;
}

/* 19.8 Timeline: numbered steps down the page ----------------------------- */

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 46rem;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding-bottom: 2.25rem;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3.25rem;
  bottom: 0.25rem;
  left: calc(1.5rem - 1px);
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.timeline .step__num {
  grid-row: span 2;
}

.timeline h3 {
  padding-top: 0.6rem;
}

.timeline p {
  margin-top: 0.5rem;
  color: var(--text-2);
}

/* 19.9 Link cards: where to go next --------------------------------------- */

.link-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 0;
}

@media (min-width: 44rem) {
  .link-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.375rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--page-shadow);
  color: var(--text);
  text-decoration: none;
}

.link-card__title {
  color: var(--link);
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.link-card__text {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .link-card:hover .link-card__title {
    text-decoration-thickness: 0.16em;
  }
}

.section__foot {
  margin-top: 2rem;
}

/* 19.10 Notices and panels ------------------------------------------------ */

.notice {
  display: flex;
  gap: 0.875rem;
  max-width: 46rem;
  padding: 1.125rem 1.25rem;
  border-radius: 1rem;
  background: var(--tint);
  color: var(--text);
}

.notice svg {
  margin-top: 0.15em;
  color: var(--icon);
}

.notice p {
  color: var(--text-2);
}

.price-panel .hero__actions {
  justify-items: start;
}

.price-panel .price-panel__alt {
  color: var(--text);
  font-weight: 700;
}

.list-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 48rem) {
  .list-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--page-shadow);
}

.panel h2,
.panel h3 {
  font-size: 1.375rem;
  line-height: 1.2;
}

.panel .checklist__icon {
  color: var(--icon);
}

.contact-lines {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-lines dt {
  font-weight: 700;
}

.contact-lines dd {
  margin: 0.125rem 0 0;
  color: var(--text-2);
}

.faq-group + .faq-group {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.faq-group h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

/* 19.11 Reviews ----------------------------------------------------------- */

.stars {
  display: inline-flex;
  gap: 0.125rem;
  color: #e8a000;
  vertical-align: -0.15em;
}

.stars .is-empty {
  color: var(--line);
}

.rating-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--page-shadow);
}

@media (min-width: 44rem) {
  .rating-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.rating-summary__score {
  font-size: clamp(3rem, 2.4rem + 3vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rating-summary__count {
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 1rem;
}

.rating-bars {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  max-width: 28rem;
}

.rating-bars li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9375rem;
}

.rating-bars__track {
  height: 0.625rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tint-2);
}

.rating-bars__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #e8a000;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

@media (min-width: 52rem) {
  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A review looks like a note in the margin of a paper */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem 1.375rem 1.375rem 1.625rem;
  border-radius: 1rem;
  background: var(--card);
  box-shadow: inset 5px 0 0 var(--hl-yellow), var(--page-shadow);
}

.review-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.review-card__date {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.review-card__text {
  line-height: 1.55;
}

.review-card__who {
  margin-top: auto;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.review-card__who strong {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--tint-2);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.empty-state {
  max-width: 40rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px dashed var(--line);
  border-radius: 1.25rem;
}

.empty-state h2 {
  font-size: 1.375rem;
  line-height: 1.25;
}

.empty-state p {
  margin-top: 0.75rem;
  color: var(--text-2);
}

.empty-state .button {
  margin-top: 1.25rem;
}

.review-more {
  margin-top: 1.5rem;
}

.button--quiet {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 2px currentColor;
}

@media (hover: hover) {
  .button--quiet:hover {
    background: var(--tint);
    box-shadow: inset 0 0 0 2px currentColor;
  }
}

/* 19.12 Consent notice: asks once, two equal choices ----------------------- */

.consent {
  position: fixed;
  right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  z-index: 60;
  max-width: 34rem;
  margin-left: auto;
  padding: 1.25rem 1.25rem 1.375rem;
  border: 1px solid var(--page-line);
  border-radius: 1.25rem;
  background: var(--page-card);
  color: var(--page-text);
  box-shadow: 0 30px 60px -20px rgb(4 19 39 / 0.55);
  --btn-bg: var(--page-btn-bg);
  --btn-bg-hover: var(--page-btn-bg-hover);
  --btn-text: var(--page-btn-text);
  --link: var(--page-link);
  --ring: var(--page-ring);
}

.consent[hidden] {
  display: none;
}

.consent__title {
  font-weight: 800;
}

.consent p {
  margin-top: 0.375rem;
  color: var(--page-text-2);
  font-size: 1rem;
  line-height: 1.5;
}

.consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 1rem;
}

.consent .button {
  min-height: 2.875rem;
  padding-inline: 1rem;
  font-size: 1rem;
  box-shadow: none;
}

.consent .button--quiet {
  color: var(--page-link);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* 19.13 Footer: brand, three groups of links, languages ------------------- */

.site-footer__inner {
  grid-template-columns: minmax(0, 1fr);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .footer-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer-nav h2 {
  margin-bottom: 0.625rem;
  color: var(--text-2);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-nav ul {
  display: grid;
  gap: 0.125rem;
  margin: 0;
}

.footer-nav a,
.footer-nav .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: #fff;
  line-height: 1.3;
  text-align: left;
}

.site-footer__contact {
  margin-top: 1.25rem;
}

.site-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-weight: 700;
}

/* 19.14 Forced colours ---------------------------------------------------- */

@media (forced-colors: active) {
  .link-card,
  .panel,
  .review-card,
  .rating-summary,
  .consent,
  .callout,
  .notice,
  .lang__list {
    border: 2px solid CanvasText;
  }

  .stars,
  .rating-bars__fill {
    forced-color-adjust: none;
    color: CanvasText;
    background: CanvasText;
  }

  .stars {
    background: none;
  }
}

@media print {
  .page-hero {
    --text: #000;
    --text-2: #333;
    background: none !important;
    color: #000 !important;
  }

  .consent,
  .lang,
  .toc {
    display: none !important;
  }
}

/* 19.15 Small additions -------------------------------------------------- */

@media (min-width: 64rem) {
  .tiles--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tile h3 a {
  color: inherit;
  text-decoration-color: var(--line);
  text-decoration-thickness: 0.1em;
}

@media (hover: hover) {
  .tile h3 a:hover {
    text-decoration-color: currentColor;
  }
}

.service .checklist__icon,
.panel .checklist__icon {
  color: var(--icon);
}

.panel .checklist {
  margin-top: 1rem;
}

.panel__note {
  margin-top: 1.25rem;
  color: var(--text-2);
}

.panel__action {
  margin-top: 1.25rem;
}

.review-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Example reviews in the preview (?demo=1) */
.badge--example {
  background: var(--hl-yellow);
  color: #0b1a2e;
}

.demo-note {
  max-width: 46rem;
  margin-bottom: 1.5rem;
}
