/* Catalog and deck pages of the presentation library (internal and public).
   Loaded after theme/fonts.css and theme/tokens.css, whose --ts-* brand
   tokens every rule here builds on. Big headings use the display face
   (Archivo Expanded Black), headings and interface text Archivo, and
   longer reading text Noto Serif. */

:root {
  --site-bg: var(--ts-near-white);
  --site-surface: var(--ts-white);
  --site-text: var(--ts-near-black);
  --site-muted: color-mix(in srgb, var(--ts-gray) 70%, var(--ts-near-black));
  --site-link: var(--ts-blue-dark);
  --site-accent: var(--ts-blue);
  --site-border: color-mix(in srgb, var(--ts-navy) 13%, var(--ts-white));
  --site-border-strong: color-mix(in srgb, var(--ts-navy) 24%, var(--ts-white));
  --site-tint: color-mix(in srgb, var(--ts-blue) 9%, var(--ts-white));
  --site-tint-strong: color-mix(in srgb, var(--ts-blue) 18%, var(--ts-white));
  --site-on-dark-soft: color-mix(in srgb, var(--ts-white) 78%, var(--ts-blue));
  --site-warning-bg: #fdf3e1;
  --site-warning-text: #7a4a00;
  --site-radius: 12px;
  --site-radius-small: 8px;
  --site-shadow: 0 1px 2px rgb(0 34 71 / 6%), 0 6px 20px rgb(0 34 71 / 7%);
  --site-shadow-hover: 0 2px 4px rgb(0 34 71 / 8%), 0 14px 32px rgb(0 34 71 / 13%);
  --site-max: 1200px;
  --site-gutter: clamp(16px, 4vw, 40px);
}

/* --- Base ------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--site-bg);
  color: var(--site-text);
  font-family: var(--ts-font-sans);
  font-size: 1rem;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ts-navy);
  line-height: 1.2;
}

p {
  margin: 0;
}

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

a:hover {
  color: var(--ts-navy);
}

code,
kbd {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

kbd {
  display: inline-block;
  padding: 0.05em 0.4em;
  border: 1px solid var(--site-border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--site-surface);
  color: var(--ts-navy);
}

:focus-visible {
  outline: 3px solid var(--ts-blue);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

.muted {
  color: var(--site-muted);
}

.small {
  font-size: 0.85rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: var(--site-radius-small);
  background: var(--ts-white);
  color: var(--ts-navy);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* --- Header and footer ------------------------------------------------ */

.site-header {
  background: var(--ts-navy);
  color: var(--ts-white);
  border-bottom: 4px solid var(--ts-blue);
}

/* The brand name wraps first; only when the badge still does not fit (a
   window below about 370px, or 400% zoom) does the Internal badge drop
   under the brand instead of running off the page. */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 76px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  flex: 1 1 0;
  max-width: max-content;
  align-items: center;
  gap: 1.1rem;
  color: var(--ts-white);
  text-decoration: none;
}

.brand:hover {
  color: var(--ts-white);
}

.brand__logo {
  display: block;
  width: auto;
  height: 46px;
}

.brand__name {
  padding-left: 1.1rem;
  border-left: 1px solid rgb(255 255 255 / 35%);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header__badge {
  padding: 0.25rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  color: var(--ts-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 4rem;
  background: var(--ts-navy);
  color: var(--site-on-dark-soft);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.site-footer a {
  color: var(--ts-white);
}

.site-footer__company {
  color: var(--ts-white);
  font-weight: 600;
}

/* --- Hero bands --------------------------------------------------------- */

.hero,
.deck-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% -20%, rgb(26 154 215 / 30%) 0, rgb(26 154 215 / 0%) 55%),
    linear-gradient(165deg, var(--ts-navy) 0%, var(--ts-navy) 60%, var(--ts-blue-dark) 130%);
  color: var(--ts-white);
}

.hero__inner {
  padding-top: clamp(2.25rem, 5vw, 3.75rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.hero__eyebrow {
  margin-bottom: 0.9rem;
  color: var(--site-on-dark-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title,
.deck-hero__title {
  max-width: 22ch;
  color: var(--ts-white);
  font-family: var(--ts-font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  letter-spacing: -0.005em;
  line-height: 1.08;
}

.hero__lead {
  max-width: 60ch;
  margin-top: 1.1rem;
  color: var(--site-on-dark-soft);
  font-family: var(--ts-font-serif);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.stats__item {
  min-width: 7.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--site-radius-small);
  background: rgb(255 255 255 / 6%);
}

.stats dt {
  color: var(--site-on-dark-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.15rem 0 0;
  color: var(--ts-white);
  font-family: var(--ts-font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.deck-hero .wrap {
  padding-top: 1.6rem;
  padding-bottom: clamp(2rem, 5vw, 3.2rem);
}

.deck-hero__title {
  max-width: 30ch;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.deck-hero__subtitle {
  max-width: 60ch;
  margin-top: 0.8rem;
  color: var(--site-on-dark-soft);
  font-family: var(--ts-font-serif);
  font-size: 1.1rem;
}

.deck-hero__chips,
.deck-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.deck-hero__chips {
  margin: 1.4rem 0 0.9rem;
}

.deck-hero__meta {
  margin-top: 1.2rem;
}

.deck-hero__id {
  color: var(--site-on-dark-soft);
}

.breadcrumb a {
  color: var(--site-on-dark-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a::before {
  content: "\2190\00a0";
}

.breadcrumb a:hover {
  color: var(--ts-white);
  text-decoration: underline;
}

/* --- Badges, chips and status labels ------------------------------------ */

.chip,
.badge,
.status,
.tag-pill,
.review-flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.chip {
  padding: 0.15rem 0.6rem;
  background: var(--site-tint);
  color: var(--ts-blue-dark);
}

.badge {
  padding: 0.2rem 0.65rem;
  background: var(--site-tint);
  color: var(--ts-navy);
}

.badge--pdh {
  background: var(--ts-blue);
  color: var(--ts-navy);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chip--on-dark,
.badge--on-dark {
  background: rgb(255 255 255 / 12%);
  color: var(--ts-white);
}

.status {
  padding: 0.18rem 0.65rem;
  border: 1px solid transparent;
}

.status--published {
  background: var(--ts-blue-dark);
  color: var(--ts-white);
}

.status--review {
  background: var(--site-tint-strong);
  color: var(--ts-navy);
}

.status--draft {
  background: #ebebea;
  color: var(--ts-near-black);
}

.status--public {
  border-color: var(--ts-blue-dark);
  color: var(--ts-blue-dark);
}

.status--pending {
  border-color: var(--site-border-strong);
  border-style: dashed;
  color: var(--site-muted);
}

.status--private {
  border-color: var(--site-border-strong);
  color: var(--site-muted);
}

.deck-hero .status--public,
.deck-hero .status--pending,
.deck-hero .status--private {
  border-color: rgb(255 255 255 / 45%);
  color: var(--ts-white);
}

.review-flag {
  padding: 0.15rem 0.6rem;
  background: var(--site-warning-bg);
  color: var(--site-warning-text);
}

.tag-pill {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--site-border-strong);
  color: var(--site-muted);
}

.tag-pill--technical {
  border-color: var(--ts-blue-dark);
  color: var(--ts-blue-dark);
}

.tag-pill--sales {
  background: var(--ts-navy);
  border-color: var(--ts-navy);
  color: var(--ts-white);
}

/* --- Buttons ---------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-small);
  background: var(--site-surface);
  color: var(--ts-navy);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.button:hover {
  border-color: var(--ts-blue-dark);
  color: var(--ts-blue-dark);
}

.button--primary {
  border-color: var(--ts-blue-dark);
  background: var(--ts-blue-dark);
  color: var(--ts-white);
}

.button--primary:hover {
  border-color: var(--ts-navy);
  background: var(--ts-navy);
  color: var(--ts-white);
}

.button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--site-link);
  padding-left: 0;
  padding-right: 0;
}

.button--quiet:hover {
  border-color: transparent;
  text-decoration: underline;
}

.button--small {
  padding: 0.38rem 0.75rem;
  font-size: 0.85rem;
}

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

.button[disabled] {
  border-color: var(--site-border);
  background: #ebebea;
  color: var(--site-muted);
  cursor: not-allowed;
}

/* --- Catalog layout ----------------------------------------------------- */

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .catalog:not(.catalog--empty) {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  /* The panel stays in view while the results scroll; when it is taller
     than the window it scrolls on its own, so every facet, Clear filters
     and a focused checkbox can be reached. */
  .catalog__filters {
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border-radius: var(--site-radius);
  }
}

.filters {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
}

.filters[hidden] {
  display: none;
}

.filters__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ts-navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--site-border-strong);
  border-radius: var(--site-radius-small);
  background: var(--site-bg);
  color: var(--site-text);
  font: inherit;
}

.filters__input:focus {
  border-color: var(--ts-blue-dark);
  background: var(--site-surface);
}

.facet {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.facet__legend {
  margin-bottom: 0.4rem;
  padding: 0;
  color: var(--ts-navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facet__option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.55rem;
  padding: 0.28rem 0;
  font-size: 0.92rem;
  cursor: pointer;
}

.facet__option input {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  accent-color: var(--ts-blue-dark);
}

.facet__count {
  min-width: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--site-bg);
  color: var(--site-muted);
  font-size: 0.75rem;
  line-height: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.filters__reset {
  justify-self: start;
}

.filters__toggle {
  display: none;
}

@media (max-width: 899px) {
  .filters__toggle {
    display: inline-flex;
  }

  .filters:not(.filters--open) .facet,
  .filters:not(.filters--open) .filters__reset {
    display: none;
  }
}

.results__count {
  margin-bottom: 1rem;
  color: var(--site-muted);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  border: 1px solid var(--site-border);
  border-top: 4px solid var(--ts-blue);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card[hidden] {
  display: none;
}

.card:hover {
  box-shadow: var(--site-shadow-hover);
  transform: translateY(-2px);
}

.card:focus-within {
  outline: 3px solid var(--ts-blue);
  outline-offset: 2px;
}

.card--draft {
  border-top-color: var(--ts-gray);
}

.card--review {
  border-top-color: var(--ts-blue-dark);
}

.card--published {
  border-top-color: var(--ts-blue);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  padding: 1.25rem 1.35rem 1.2rem;
}

.card__status,
.card__chips,
.card__review {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card__title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
}

.card__link {
  color: var(--ts-navy);
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--site-radius);
}

.card__link:focus-visible {
  outline: none;
}

.card:hover .card__link {
  color: var(--ts-blue-dark);
}

.card__subtitle {
  color: var(--site-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.card__abstract {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  color: var(--site-text);
  font-family: var(--ts-font-serif);
  font-size: 0.92rem;
  line-height: 1.6;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--site-border);
  color: var(--site-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.card__length::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.4rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  vertical-align: -0.05em;
}

.card__makers {
  margin-left: auto;
  font-weight: 500;
}

.no-matches,
.empty-state {
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--site-border-strong);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  color: var(--site-muted);
  text-align: center;
}

.no-matches[hidden] {
  display: none;
}

.no-matches .button {
  margin-top: 0.5rem;
}

.empty-state__title {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

/* --- Deck pages ------------------------------------------------------- */

.deck-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 900px) {
  .deck-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
  }
}

.section {
  margin-top: 2.5rem;
}

.deck-layout .section:first-child,
.deck-main > .section:first-child {
  margin-top: 0;
}

.section__title {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--site-border);
  font-size: 1.3rem;
  font-weight: 700;
}

.section__subtitle {
  margin: 1.6rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
}

.prose {
  max-width: 68ch;
  font-family: var(--ts-font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose--pre {
  white-space: pre-line;
  font-size: 0.98rem;
}

.objectives {
  max-width: 68ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: objective;
}

.objectives li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.6rem;
  border-bottom: 1px solid var(--site-border);
  font-family: var(--ts-font-serif);
  line-height: 1.6;
  counter-increment: objective;
}

.objectives li::before {
  content: counter(objective);
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--site-tint);
  color: var(--ts-blue-dark);
  font-family: var(--ts-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.75rem;
  text-align: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--site-border-strong);
  border-radius: 999px;
  background: var(--site-surface);
  font-size: 0.88rem;
}

.panel {
  padding: 1.35rem;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel--accent {
  border-top: 4px solid var(--ts-blue);
}

.panel__title {
  margin-bottom: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.formats {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.formats__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--site-border-strong);
}

.formats__label {
  font-weight: 600;
}

.formats__minutes {
  color: var(--site-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pdh-note {
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--ts-blue);
  background: var(--site-tint);
  font-size: 0.92rem;
}

.facts {
  margin: 0;
}

.facts__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--site-border);
  font-size: 0.92rem;
}

.facts__row:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--site-muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.date {
  white-space: nowrap;
}

.date--stale {
  color: var(--site-warning-text);
  font-weight: 600;
}

.hint {
  margin-top: 0.9rem;
  color: var(--site-muted);
  font-size: 0.9rem;
}

/* --- Tables ----------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: var(--site-shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.table thead th {
  background: var(--ts-navy);
  color: var(--ts-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--ts-blue) 3%, var(--ts-white));
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody th {
  min-width: 13rem;
  font-weight: 600;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.actions__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.table .cite {
  min-width: 12rem;
  color: var(--site-muted);
  font-family: var(--ts-font-serif);
  font-size: 0.85rem;
}

/* A hidden slide's outline row keeps full-contrast text (fading it with
   opacity took the muted text below 4.5:1). It is set apart instead by a
   plain band, italics and a dashed "hidden" badge like the pending status. */
.table tbody tr.is-hidden > :is(th, td) {
  background: var(--site-bg);
  font-style: italic;
}

.table tbody tr.is-hidden :is(code, .tag-pill) {
  font-style: normal;
}

.table tbody tr.is-hidden > :first-child {
  box-shadow: inset 4px 0 0 var(--site-border-strong);
}

.table tr.is-hidden th .muted {
  display: inline-flex;
  align-items: center;
  margin-top: 0.3rem;
  padding: 0.05rem 0.55rem;
  border: 1px dashed var(--site-muted);
  border-radius: 999px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.variant-label {
  display: block;
  color: var(--ts-navy);
}

.variant-name,
.slide-id {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--site-muted);
  font-weight: 400;
}

.slide-id {
  display: block;
}

.variant-shared {
  display: block;
  margin-top: 0.25rem;
  color: var(--site-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.check {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
}

.check--ok {
  color: var(--ts-blue-dark);
}

.check--short {
  color: var(--site-warning-text);
}

.source-name {
  display: block;
  overflow-wrap: anywhere;
}

.source-meta {
  display: block;
  margin-top: 0.2rem;
  color: var(--site-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.source-link {
  margin-right: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Small screens, motion and print ----------------------------------- */

@media (max-width: 599px) {
  .brand__logo {
    height: 36px;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .facts__row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (max-width: 767px) {
  /* Variants as stacked cards below the width the table needs (about
     600px of table), so Present, Print view and PDF are in view without
     swiping it sideways. The column heads stay for screen readers; each
     number cell shows its own label (data-label). */
  .table--variants,
  .table--variants tbody {
    display: block;
  }

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

  .table--variants tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 0.75rem;
    padding: 0.9rem;
    border-bottom: 1px solid var(--site-border);
  }

  .table--variants tbody tr:last-child {
    border-bottom: 0;
  }

  .table--variants tbody th,
  .table--variants td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .table--variants tbody th,
  .table--variants td:not(.num) {
    grid-column: 1 / -1;
  }

  .table--variants td.num {
    text-align: left;
  }

  .table--variants td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--site-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

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

  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .hero,
  .deck-hero {
    background: none;
    color: var(--ts-black);
  }

  .brand__logo,
  .catalog__filters,
  .skip-link,
  .site-footer {
    display: none;
  }

  .hero__title,
  .deck-hero__title,
  .hero__lead,
  .deck-hero__subtitle {
    color: var(--ts-black);
  }

  .card,
  .panel,
  .table-wrap {
    box-shadow: none;
  }
}
