/* ARTICLE — hero
   Frame 2064:5929 (1440 x 2182). Hero spans y 72 -> 412. */
.article-hero {
  position: relative;
  min-height: 340px;
  padding: 68px var(--pad-x) 0;
}

.article-hero__title {
  margin-top: 12px;
  max-width: 620px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h1);
  line-height: 1.2;
  /* Titles short enough to nearly fit one line drop their last word alone onto
     the second, which reads as a mistake at this size. */
  text-wrap: balance;
  /* A German compound can outgrow this column on its own —
     „Datenschutzerklärung" does at 60px. Without a hyphenation point the
     global `overflow-wrap: break-word` on headings splits it mid-syllable and
     silently drops the hyphen. */
  hyphens: auto;
  letter-spacing: -0.002em;
  color: var(--color-dark);
}

.article-hero__note {
  position: absolute;
  top: 226px;
  right: 5.55%;
  width: 41.47%;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-light);
}

.article-hero__arrow {
  position: absolute;
  left: 42.33%;
  top: 207px;
}

.exhibit__image--mobile {
  display: none;
}
.exhibit__image--desk {
  display: block;
}
/* PRIMER CALLOUT
   Block spans y 1042 -> 1303. */
.primer {
  min-height: 261px;

  padding: 48px 29px 48px 26px;
  border-left: 3px solid var(--color-brown);
}

.primer__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--color-dark);
}

.primer__text {
  margin-top: 14px;
  max-width: 1185px;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-light);
}

.primer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 23px;
  padding-inline: 13px;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.primer__cta:hover {
  background: var(--color-navy-hover);
}

/* ARTICLE PROSE
   Block spans y 1307 -> 1821. */
.prose {
  border-top: 1px solid #eae4dd;

  padding: 34px 29px 88px 27px;
}

.prose p,
.prose h2,
.prose h3 {
  max-width: 1180px;
}

.prose p {
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-light);
}

.prose p + p {
  margin-top: 20px;
}

.prose h2 {
  margin-top: 49px;
  font-size: 26px;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  color: var(--color-dark);
}

.prose h2 + p {
  margin-top: 12px;
}

/* The privacy policy names one recipient per subsection, so h3 sits inside an h2
   section and has to read as subordinate to it rather than as a second h2. */
.prose h3 {
  margin-top: 28px;
  font-size: 19px;
  font-weight: var(--fw-medium);
  line-height: 1.3;
  color: var(--color-dark);
}

.prose h3 + p {
  margin-top: 8px;
}

/* The global reset strips link affordances; body copy needs them back. */
.prose a {
  color: var(--color-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-rust-hover);
}

@media (max-width: 1311px) {
  .article-hero {
    display: grid;
    grid-template-columns: 1fr minmax(0, 42%);
    column-gap: 44px;
    align-items: start;
    min-height: 0;
    padding-bottom: 52px;
  }

  .article-hero .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .article-hero__title {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }

  .article-hero__note {
    position: static;
    grid-column: 2;
    grid-row: 2;
    width: auto;
    margin-top: 14px;
  }

  .article-hero__arrow {
    display: none;
  }
}
@media (max-width: 1100px) {
  .drivers__right {
    display: none;
  }
}
@media (max-width: 900px) {
  .article-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 30px;
    padding-bottom: 59px;
  }

  .article-hero__note {
    grid-column: 1;
    grid-row: 3;
    margin-top: 35px;
    max-width: 530px;
  }

  .primer {
    min-height: 0;
    padding-block: 32px;
  }

  .article-hero__arrow {
    display: block;
    top: 120px;
    left: 90%;
    rotate: -30deg;
    transform: scaleX(-1);
  }

  .prose {
    padding-block: 32px 56px;
  }

  .prose h2 {
    margin-top: 34px;
    font-size: 22px;
  }

  .prose h3 {
    margin-top: 22px;
    font-size: 17px;
  }

  .exhibit__image--mobile {
    display: block;
  }
  .exhibit__image--desk {
    display: none;
  }
  .exhibit__foot-article-page span {
    color: var(--color-white) !important;
  }
}

@media (max-width: 600px) {
  .article-hero h1,
  .article-hero p {
    width: 80%;
  }
  .article-hero__arrow {
    left: 269px;
    top: 115px;
  }
}

@media (max-width: 480px) {
  .article-hero__title {
    font-size: 36px;
    width: 100% !important;
  }
  .article-hero__note,
  .prose p,
  .primer__text {
    font-size: var(--fs-sm) !important;
    line-height: 150% !important;
    width: 100% !important;
    color: var(--color-light);
  }

  .primer__title {
    font-size: 18px;
  }

  /* The label is long enough to need two lines on a narrow phone, so the button
     grows instead of holding the 42px of the wide layout. */
  .primer__cta {
    height: auto;
    min-height: 42px;
    padding-block: 8px;
    text-align: center;
  }

  .primer {
    padding: 35px 29px 35px 16px;
  }
  .prose {
    padding: 34px 20px 48px 20px;
  }

  .primer__text {
    margin-top: 7px;
  }

  .prose h2 + p {
    margin-top: 17px;
  }

  .prose p + p {
    margin-top: 15px;
  }
}

/* SPECIMEN TILES
   The nine-fact exhibit: the plan as written, and the same company once every
   uncertain input is allowed to move. */
.specimen {
  /* home.css sets this on .exhibit; the specimen is a sibling exhibit shape,
     so it declares the same rule colour for its own head and foot. */
  --exhibit-rule: #b3ada1;
  background: var(--color-cream);
}

.specimen__head {
  display: flex;
  align-items: center;
  height: 63px;
  font-family: var(--font-inter);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-dark);
  border-bottom: 1.07px solid var(--exhibit-rule);
}

.specimen__head-left {
  flex: 1;
  padding-inline: var(--pad-card);
}

.specimen__head-right {
  width: 23.24%;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: var(--pad-card);
  border-left: 1px solid var(--exhibit-rule);
}

.specimen__body {
  padding: 29px var(--pad-card) 40px;
}

.specimen__title {
  font-size: 38.59px;
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: -0.003em;
  color: var(--color-dark);
}

/* the subtitle is the only element that changes with the state switch,
   so it carries the reading instruction for whichever state is showing */
.specimen__sub {
  margin-top: 13px;
  min-height: 21px;
  font-family: var(--font-inter);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--color-light);
}

/* ---- state switch ---- */

.specimen__switch {
  display: inline-flex;
  margin-top: 22px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
}

.specimen__switch-btn {
  height: 40px;
  padding-inline: 18px;
  font-family: var(--font-inter);
  font-size: var(--fs-sm);
  color: var(--color-light);
  transition: background var(--transition-fast);
}

.specimen__switch-btn + .specimen__switch-btn {
  border-left: 1px solid var(--color-border-strong);
}

.specimen__switch-btn[aria-pressed="true"] {
  background: var(--color-brown);
  color: var(--color-bg);
}

/* The switch does nothing without JS, so it stays hidden until the script
   claims it. The page ships the plan state; a <noscript> block on the article
   flips it to the wobbled one, which is the half that carries the argument. */
.specimen__switch {
  display: none;
}

.specimen.is-interactive .specimen__switch {
  display: inline-flex;
}

/* ---- grid ---- */

/* 1px gap over a rule-coloured backdrop draws the hairlines between
   cells without doubling borders where two cells meet */
.specimen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 26px;
  background: var(--color-border-strong);
  border: 1px solid var(--color-border-strong);
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 22px 24px 20px;
  background: var(--color-bg);
}

.tile__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-light);
}

/* marks the tiles that stop holding still in the second state */
.tile__dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--color-brown);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.specimen[data-state="wobble"] .tile--soft .tile__dot {
  opacity: 1;
}

.tile__value {
  margin-top: 14px;
  font-size: 25px;
  font-weight: var(--fw-medium);
  line-height: 1.15;
  letter-spacing: -0.003em;
  color: var(--color-dark);
}

.tile__stamp {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 9px;
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brown);
  border: 1px solid var(--color-brown);
  rotate: -4deg;
  vertical-align: middle;
}

.tile__note {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-inter);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-light);
}

/* ---- range strip ---- */

.tile__range {
  --at: 50%; /* where the likeliest value sits on the track */
  margin-top: 14px;
}

.tile__track {
  position: relative;
  height: 3px;
  background: var(--color-border-strong);
}

/* a marker means one value is likelier than its neighbours */
.tile__marker {
  position: absolute;
  top: -3px;
  left: var(--at);
  width: 3px;
  height: 9px;
  background: var(--color-brown);
  transform: translateX(-50%);
}

/* a filled track means the opposite: every value in the span is equally
   likely, so there is no point on it to single out */
.tile__track--flat {
  background: var(--color-brown);
  opacity: 0.5;
}

.tile__ends {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-inter);
  font-size: 11px;
  color: var(--color-light);
}

/* the middle label names the marked value, so it has to sit under the
   marker rather than in the middle of the track */
.tile__ends span:nth-child(2) {
  position: absolute;
  left: var(--at);
  transform: translateX(-50%);
  white-space: nowrap;
}

/* ---- state visibility ---- */

.specimen[data-state="plan"] .is-wobble,
.specimen[data-state="wobble"] .is-plan {
  display: none;
}

/* ---- foot + provenance ---- */

.specimen__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* the provenance line wraps to four lines at phone width, so the 63px is a
     floor rather than a ceiling — as a fixed height it spilled onto the Source
     block below */
  min-height: 63px;
  padding: 25px 38px;
  font-family: var(--font-inter);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-light);
  border-top: 1px solid var(--exhibit-rule);
}

.specimen__brand {
  font-family: var(--font-base);
  font-size: 23.58px;
  line-height: 1;
  color: var(--color-dark);
}

@media (max-width: 900px) {
  .specimen__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specimen__head-right {
    display: none;
  }
  .specimen__title {
    font-size: 28px;
  }
  .tile__value {
    font-size: 21px;
  }
}

@media (max-width: 560px) {
  .specimen__grid {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 0;
  }
  /* one column is narrower than a desktop cell, and the three labels
     under a full-width band run into each other at 11px */
  .tile__ends {
    font-size: 10px;
  }
}
