/* ============================================
   Page-specific layout
   ============================================ */

/* ---------- Home hub — toggle sits inside the cream page ---------- */

.home-toggle {
  padding: var(--space-24) var(--page-gutter) var(--space-32);
  display: flex;
  justify-content: center;
}

.home-panel {
  padding-block-end: var(--space-40);
}

.home-panel__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--page-gutter);
}

.home-grid {
  display: grid;
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}

.home-grid:last-child { margin-bottom: 0; }

.home-grid--top { grid-template-columns: 1fr 1fr; }
.home-grid--bottom { grid-template-columns: repeat(3, 1fr); }
.home-grid--apps { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .home-grid--top,
  .home-grid--bottom,
  .home-grid--apps {
    grid-template-columns: 1fr;
  }
}

.hub-card--wide .hub-card__thumb {
  aspect-ratio: 16 / 9;
}

/* Brand Guide tab — compact so all 5 cards fit on one screen */
#tab-guide .hub-card {
  padding: var(--space-16) var(--space-20);
  gap: var(--space-12);
}
#tab-guide .hub-card__thumb {
  aspect-ratio: 2 / 1;
}
#tab-guide .hub-card--wide .hub-card__thumb {
  aspect-ratio: 24 / 9;
}
#tab-guide .home-grid { gap: var(--space-16); margin-bottom: var(--space-16); }
#tab-guide .home-grid:last-child { margin-bottom: 0; }

/* ---------- Generic 2-col split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Content page shell ---------- */

.content {
  padding: var(--space-40) 0 var(--space-80);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 72px;   /* breathing room between top-level sections */
}

/* ---------- Section header (used on every content page) ---------- */

.sec-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);   /* breathing room between title and description */
  margin-bottom: var(--space-20);
}

.sec-head__title {
  /* H3 · Figtree Bold 30/36 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin: 0;
}

.sec-head__desc {
  /* Body · Figtree Regular 18/22 */
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  max-width: 70ch;
}

.sec-head--check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-12);
}

.sec-head__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.sec-head__check--do { background: #2d9d5f; }
.sec-head__check--dont { background: var(--color-brand-red); }

.sec-head--check .sec-head__title {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Logos page ---------- */

.spec-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.spec-card__thumb {
  background: var(--color-light-grey);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20);
  position: relative;
}

/* Larger Primary Logo card — taller thumb + bigger padding */
.spec-card--large .spec-card__thumb {
  aspect-ratio: 21 / 9;
  padding: var(--space-32);
}

.spec-card__thumb img {
  max-width: 65%;
  max-height: 85%;
  object-fit: contain;
}

.spec-card__label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 4px;
}

.spec-grid {
  display: grid;
  gap: var(--space-16);
}

.spec-grid--2 { grid-template-columns: 1fr 1fr; }
.spec-grid--3 { grid-template-columns: repeat(3, 1fr); }
.spec-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .spec-grid--3, .spec-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .spec-grid--2, .spec-grid--3, .spec-grid--4 { grid-template-columns: 1fr; }
}

/* Coloured background tiles — outer colour bg holds an inner bordered box + label */

.bg-tile {
  border-radius: var(--radius-md);
  padding: var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.bg-tile__frame {
  /* inner rounded rectangle — border matches the owl colour, transparent fill */
  border: 1.5px solid currentColor;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
}

.bg-tile__frame img { max-width: 50%; max-height: 75%; object-fit: contain; }

/* Invert a dark PNG owl to white so we can reuse the same asset on dark backgrounds */
.owl-inverted { filter: brightness(0) invert(1); }

.bg-tile__label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentColor;
  padding-bottom: 2px;
}

/* Light-bg tiles: dark inner border + dark label */
/* Pale tile carries a soft shadow so it separates from the pale page background */
.bg-tile--pale  { background: var(--color-brand-pale);  color: var(--color-brand-dark-blue); box-shadow: var(--shadow-m); }
.bg-tile--beige { background: var(--color-brand-beige); color: var(--color-brand-dark-blue); }
.bg-tile--mint  { background: var(--color-brand-mint);  color: var(--color-brand-dark-blue); }
.bg-tile--pink  { background: var(--color-brand-pink);  color: var(--color-brand-dark-blue); }
.bg-tile--honey { background: var(--color-brand-honey); color: var(--color-brand-dark-blue); }

/* Dark-bg tiles: white inner border + white label */
.bg-tile--blue  { background: var(--color-brand-blue);      color: var(--color-white); }
.bg-tile--red   { background: var(--color-brand-red);       color: var(--color-white); }
.bg-tile--dark  { background: var(--color-brand-dark-blue); color: var(--color-white); }

/* Don't cards — Logos page uses a 3 × 2 grid */
.dont-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

@media (max-width: 800px) { .dont-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .dont-grid { grid-template-columns: 1fr; } }

.dont-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  position: relative;
}

.dont-card__media {
  background: var(--color-light-grey);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-16);
}

.dont-card__media img { max-width: 80%; max-height: 90%; object-fit: contain; }

.dont-card__x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-brand-red);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.dont-card__label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 2px;
}

/* ---------- Typography page ---------- */

.font-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-24) var(--space-32);
  box-shadow: var(--shadow-s);
}

/* Font name sits inside the card */
.font-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--text-brand);
  margin: 0 0 var(--space-16);
}

/* Link inside the font title — underline on hover */
.font-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size var(--dur-med) var(--ease-out);
  padding-bottom: 2px;
}

.font-title a:hover,
.font-title a:focus-visible {
  background-size: 100% 2px;
}

.font-title a:focus-visible {
  outline: 3px solid var(--color-brand-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.font-title--figtree {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}

.font-specimen--display {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.font-specimen--body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1;
  color: var(--text-primary);
  word-break: break-word;
}

.font-specimen p { margin: 0; }
.font-specimen p + p { margin-top: var(--space-8); }

.weight-table {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-20) var(--space-32);
  box-shadow: var(--shadow-s);
}

.weight-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-16);
  align-items: baseline;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-light-grey);
}

.weight-row:last-child { border-bottom: 0; }

.weight-row__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.weight-row__sample {
  /* Body · 18px · matches the weight it's demonstrating */
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
}

.title-samples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-top: var(--space-16);
}

.title-sample {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-32) var(--space-24) var(--space-16);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: center;
  text-align: center;
}

.title-sample__box {
  background: var(--color-soft-blue);
  border-radius: var(--radius-sm);
  padding: var(--space-32) var(--space-24);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.title-sample__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  color: var(--text-brand);
}

.title-sample__label {
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .title-samples { grid-template-columns: 1fr; }
}

.pairing-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-32);
  box-shadow: var(--shadow-s);
}

.pairing-card__display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--text-brand);
  margin-bottom: var(--space-16);
}

.pairing-card__lead {
  /* Body Bold · 18/22 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  margin-bottom: var(--space-16);
}

.pairing-card__body {
  /* Body Regular · 18/22 · looser leading for reading */
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-reading);
  color: var(--text-secondary);
  max-width: 65ch;
}

.scale-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-24) var(--space-32);
  box-shadow: var(--shadow-s);
}

.scale-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-24);
  align-items: baseline;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-light-grey);
}

.scale-row:last-child { border-bottom: 0; }

.scale-row__meta { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.35; }
.scale-row__meta strong { display: block; font-size: 0.85rem; color: var(--text-primary); font-weight: 700; margin-bottom: 2px; }

.scale-row__sample {
  color: var(--text-primary);
  line-height: 1;
}

.scale-row--display .scale-row__sample { font-family: var(--font-display); font-size: 2.25rem; }
.scale-row--h1 .scale-row__sample { font-family: var(--font-body); font-weight: 700; font-size: 1.9rem; }
.scale-row--h2 .scale-row__sample { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; }
.scale-row--h3 .scale-row__sample { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; }
.scale-row--body .scale-row__sample { font-family: var(--font-body); font-weight: 400; font-size: 1rem; line-height: 1.4; }
.scale-row--caption .scale-row__sample { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; }

@media (max-width: 640px) {
  .scale-row, .weight-row { grid-template-columns: 1fr; gap: 4px; }
}

.type-donts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

@media (max-width: 800px) {
  .type-donts { grid-template-columns: 1fr; }
}

.type-donts .dont-card__media {
  background: var(--color-light-grey);
  padding: var(--space-20);
  aspect-ratio: 4 / 3;
}

/* ---------- Colours page ---------- */

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

@media (max-width: 800px) { .swatch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .swatch-grid { grid-template-columns: 1fr; } }

.swatch {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.swatch__chip {
  height: 110px;
  width: 100%;
  border-radius: var(--radius-sm);
}

.swatch__body { padding: 0 var(--space-8) var(--space-8); }

.swatch__name {
  /* Body Bold · 18/22 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}

.swatch__vals {
  display: grid;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  line-height: 1.35;
}

.swatch__val {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: baseline;
}

.swatch__val dt {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-size: 1rem;
}

.swatch__val dd { margin: 0; font-size: 1rem; }

/* Click-to-copy value */
.copy-val {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;   /* keeps digit widths even in a proportional font */
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast), color var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: inherit;
  line-height: 1.2;
  text-align: left;
  margin-left: -8px;
  font-weight: 500;
}

.copy-val:hover {
  background: var(--color-soft-blue);
  border-color: rgba(2, 86, 255, 0.15);
}

.copy-val:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 1px;
}

.copy-val__icon {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.copy-val:hover .copy-val__icon,
.copy-val:focus-visible .copy-val__icon { opacity: 0.5; }

.copy-val.is-copied {
  background: var(--color-brand-mint);
  border-color: rgba(45, 157, 95, 0.4);
  color: #0a4d2f;
}

.copy-val.is-copied .copy-val__icon { opacity: 1; color: #0a4d2f; }

/* Live toast feedback (single, at bottom of screen) */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-brand-dark-blue);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-toast svg { width: 16px; height: 16px; }

/* Contrast table */

.a11y-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-s);
  padding: var(--space-32);
}

.a11y-card__title {
  /* H4 · Figtree Bold 28/34 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin: 0 0 var(--space-12);
}

.a11y-card__desc {
  /* italic caption under the title */
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-24);
}

/* Rows list — no table header, just clean rows */
.a11y-list {
  display: flex;
  flex-direction: column;
}

.a11y-row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 0.8fr 1.2fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-light-grey);
  font-family: var(--font-body);
  font-size: 1rem;
}

.a11y-row:last-child { border-bottom: 0; }

.a11y-cell {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.a11y-chip {
  display: inline-block;
  width: 34px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.a11y-ratio {
  font-weight: 700;
  color: var(--text-primary);
}

.a11y-badges {
  display: inline-flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Pass / fail pill — soft green / soft red */
.a11y-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.a11y-pill--pass { background: #d6f4dd; color: #148a3a; }
.a11y-pill--fail { background: #fde0e0; color: #d92626; }

@media (max-width: 800px) {
  .a11y-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 8px;
  }
  .a11y-ratio { grid-column: 1 / -1; padding-top: 4px; }
  .a11y-badges { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Usage rules */

.usage-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-16);
}

@media (max-width: 800px) { .usage-rules { grid-template-columns: 1fr; } }

.usage-rule {
  border-radius: var(--radius-md);
  padding: var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  text-align: center;
  /* Body Bold · Figtree 18/22 · matches Figma spec */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  box-shadow: var(--shadow-s);
}

/* DO — high-contrast, on-brand pairings */
.usage-rule--white-on-blue { background: var(--color-brand-blue); color: var(--color-white); }
.usage-rule--dark-on-light { background: var(--color-brand-light-blue); color: var(--color-brand-dark-blue); }
.usage-rule--blue-on-beige { background: var(--color-brand-beige); color: var(--color-brand-blue); }

/* DON'T — illustrates the failure mode of each rule */
.usage-rule--low-contrast { background: var(--color-white); color: var(--color-brand-mint); }         /* mint text on white — visibly low contrast */
.usage-rule--off-brand    { background: var(--color-brand-pale); color: #a020f0; }                    /* purple = off-brand */
.usage-rule--no-contrast  { background: var(--color-brand-pink); color: rgba(255, 255, 255, 0.7); }   /* washed-out on pink */

/* Colour don'ts */
.colour-donts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

@media (max-width: 900px) { .colour-donts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .colour-donts { grid-template-columns: 1fr; } }

.colour-dont {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.colour-dont__x {
  /* Outlined red circle with X inside, top-left */
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-red);
  background: transparent;
  color: var(--color-brand-red);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.colour-dont__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;  /* ~17px · Body Bold, close to Figma spec */
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin: 0;
}

.colour-dont__body {
  font-family: var(--font-body);
  font-size: 1rem;       /* 16px · description */
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;               /* pushes example to the bottom */
}

/* Per-card example element */
.colour-dont__example {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.colour-dont__example--pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: #ececec;
  color: rgba(0, 0, 0, 0.35);
  font-size: 0.875rem;
  font-weight: 500;
}

.colour-dont__example--cta {
  /* Demonstrates the clash: black text on brand blue — visibly poor contrast */
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-brand-blue);
  color: var(--color-black);
  font-size: 0.9rem;
  font-weight: 700;
}

.colour-dont__dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.colour-dont__mark {
  color: var(--color-brand-red);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------- Imagery page ---------- */

.img-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-16);
}

@media (max-width: 900px) { .img-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .img-row { grid-template-columns: 1fr; } }

.img-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.img-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-light-grey);
}

.img-card__media img { width: 100%; height: 100%; object-fit: cover; }

.img-card--r-sm .img-card__media { border-radius: 8px; }
.img-card--r-md .img-card__media { border-radius: 16px; }
.img-card--r-lg .img-card__media { border-radius: 24px; }
.img-card--r-circle .img-card__media { border-radius: 999px; aspect-ratio: 4/3; }

.img-card__label {
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 4px 4px;
}

/* Dropshadow grid — larger 2x2 */

.shadow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

@media (max-width: 700px) { .shadow-grid { grid-template-columns: 1fr; } }

.shadow-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.shadow-card__media {
  /* Assets already have the drop shadow baked in — show the PNG as-is */
  aspect-ratio: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.shadow-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.shadow-card__label {
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 4px 4px;
}

/* Imagery don'ts */

.img-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}

@media (max-width: 700px) { .img-donts { grid-template-columns: 1fr; } }

.img-dont {
  background: var(--color-white);
  border: 1px solid var(--color-brand-red);
  border-radius: var(--radius-md);
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-16);
  align-items: center;
}

.img-dont__thumb {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 6px;
}

.img-dont__thumb img { width: 100%; height: 100%; object-fit: cover; }

.img-dont__title {
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px */
  font-weight: 700;
  color: var(--color-brand-red);
  margin: 0 0 4px;
}

.img-dont__body {
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Icons page ---------- */

.icons-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-24);
}

.icons-header__intro { max-width: 60ch; }
.icons-header__intro h2 {
  /* H3 · Figtree Bold 30/36 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin: 0 0 var(--space-12);
}
.icons-header__intro p {
  /* Body · 18/22 */
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin: 0;
}

.icons-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 6px 10px 6px 18px;
  box-shadow: var(--shadow-s);
}

.icons-controls__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.color-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}

.color-chip:hover { transform: scale(1.1); }
.color-chip.is-active { border-color: var(--color-brand-dark-blue); }

.color-chip--blue { background: var(--color-brand-blue); }
.color-chip--dark { background: var(--color-brand-dark-blue); }
.color-chip--light { background: var(--color-brand-light-blue); border-color: rgba(0, 0, 0, 0.08); }
.color-chip--red { background: var(--color-brand-red); }

.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);   /* Matches Figma layout: 8 × 2 = 16, 8 × N for larger sets */
  gap: var(--space-12);
}

@media (max-width: 900px) { .icon-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 720px) { .icon-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .icon-grid { grid-template-columns: repeat(3, 1fr); } }

.icon-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-12) var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  box-shadow: var(--shadow-s);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

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

.icon-card__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-soft-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.icon-card__thumb img { width: 24px; height: 24px; object-fit: contain; }

.icon-card__name {
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  text-align: center;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.2;
}

.icon-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-40);
  color: var(--text-secondary);
}

.icon-library-bar {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-20) var(--space-24);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
}

.icon-library-bar__text h3 {
  /* Body Bold · 18/22 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  margin: 0 0 var(--space-12);
}

.icon-library-bar__text p {
  /* Body · 18/22 */
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin: 0;
  max-width: 60ch;
}

/* ---------- Social Templates page ---------- */

.social-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.social-section-title {
  /* H4 · Figtree Bold 28/34 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  color: var(--text-primary);
  margin: 0;
}

.social-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.social-card__media {
  background: var(--color-soft-blue);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.social-card__media img { max-width: 100%; max-height: 100%; object-fit: contain; }

.social-card__media--square { aspect-ratio: 1/1; }
.social-card__media--portrait { aspect-ratio: 4/5; }
.social-card__media--wide { aspect-ratio: 16/9; }

.social-card__caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px · card descriptions */
  font-weight: 600;
  color: var(--text-primary);
}

/* Split rows for LinkedIn Lives + Single Post, Testimonials, Information Post */

.social-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

@media (max-width: 800px) { .social-2col { grid-template-columns: 1fr; } }
