/* TenFourSeven Media 4.2 — canonical public authority */

/* Source: tokens.css */
/* TenFourSeven Media — Design tokens
 * Single authority layer. Layer: tokens
 * All custom properties are defined here and never redefined elsewhere.
 */

@font-face {
  font-family: "Geist Sans";
  src: url("../fonts/geist-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Sans";
  src: url("../fonts/geist-sans-italic-variable.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Surface */
  --background: #fff;
  --foreground: #14151a;
  --card: #fff;
  --card-foreground: #14151a;
  --popover: #fff;
  --popover-foreground: #14151a;
  --muted: #f2f2f0;
  --muted-foreground: #666a74;
  --primary: #333366;
  --primary-foreground: #fff;
  --secondary: #e7e8ec;
  --secondary-foreground: #14151a;
  --accent: #ececf5;
  --accent-foreground: #292956;
  --success: #147a55;
  --success-foreground: #fff;
  --warning: #9a6510;
  --warning-foreground: #fff;
  --destructive: #b42318;
  --destructive-foreground: #fff;
  --information: #1c5fae;
  --information-foreground: #fff;

  /* Borders & ring */
  --border: rgba(17, 19, 25, .11);
  --border-strong: color-mix(in srgb, #14151a 16%, transparent);
  --input: color-mix(in srgb, #14151a 16%, transparent);
  --ring: #7070a8;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(9, 12, 20, .05);
  --shadow-lg: 0 24px 70px rgba(9, 12, 20, .16);

  /* Radius */
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Layers (stacking context roles; not theme-dependent) */
  --z-behind: -1;
  --z-lift: 1;
  --z-sticky-inline: 4;
  --z-dropdown: 5;
  --z-header: 100;
  --z-overlay: 109;
  --z-modal: 110;
  --z-toast: 150;
  --z-skip-link: 1000;

  /* Layout */
  --shell: 1320px;
  --reading: 760px;
  --header: 68px;
  --gutter: clamp(20px, 3vw, 36px);

  /* Interaction target minimum */
  --control: 44px;

  /* Motion. Named from the values already in use — every distinct
   * duration/easing pair currently in the codebase, not new choices.
   * Composed at call sites, e.g.
   * transition: transform var(--duration-base) var(--ease-control); */
  --ease-standard: ease;
  --ease-control: cubic-bezier(.2, .75, .2, 1);
  --ease-drawer: cubic-bezier(.2, .7, .2, 1);
  --duration-fast: .16s;
  --duration-base: .18s;
  --duration-drawer: .22s;
  --duration-media: .35s;

  /* Typography scale (roles). Additive only — these name the values already
   * governing each role's most representative current selector (see the
   * component listed per token). No existing font-size declaration has been
   * rewired to reference these yet; adopt incrementally with visual QA
   * rather than a blanket find-and-replace. Not theme-dependent (sizes don't
   * change between light/dark), so defined once here only. */
  --text-display: clamp(2.05rem, 3vw, 3.45rem);      /* .t47-lead-story__content h1 */
  --text-article-title: clamp(2.25rem, 5vw, 5rem);   /* .t47-article-header h1 */
  --text-archive-title: clamp(2.2rem, 3.5vw, 3.2rem); /* .t47-page-header h1 */
  --text-section-heading: clamp(1.85rem, 3.2vw, 3.25rem); /* .t47-section-heading h2 */
  --text-card-title: clamp(1.02rem, 1.45vw, 1.22rem); /* .t47-story-card title */
  --text-lead: clamp(1.02rem, 1.55vw, 1.22rem);      /* .t47-article-header__dek */
  --text-body: 1rem;
  --text-prose: clamp(1rem, 1.05vw, 1.075rem);       /* .t47-prose paragraph */
  --text-label: .8rem;                                /* most common small-label size sitewide */
  --text-meta: .73rem;                                /* byline / timestamp */
  --text-caption: .72rem;                             /* helper / description text */
  --text-overline: .69rem;                            /* eyebrow, kicker, badge */
  --text-button: .84rem;                              /* .t47-button */
}

:root[data-theme="dark"] {
  --background: #090a0e;
  --foreground: #f3f4f6;
  --card: #111319;
  --card-foreground: #f3f4f6;
  --popover: #151820;
  --popover-foreground: #f3f4f6;
  --muted: #171a22;
  --muted-foreground: #999eaa;
  --primary: #c5c5e5;
  --primary-foreground: #181832;
  --secondary: #1c1f27;
  --secondary-foreground: #f3f4f6;
  --accent: #20223a;
  --accent-foreground: #f2f2ff;
  --success: #62d5a7;
  --success-foreground: #062017;
  --warning: #efbd62;
  --warning-foreground: #2b1a02;
  --destructive: #ff8277;
  --destructive-foreground: #2a0806;
  --information: #8ab4f8;
  --information-foreground: #04203f;
  --border: rgba(255, 255, 255, .105);
  --border-strong: color-mix(in srgb, #f3f4f6 18%, transparent);
  --input: color-mix(in srgb, #f3f4f6 18%, transparent);
  --ring: #a9a9d4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .52);
}

/* Source: base.css */
/* TenFourSeven Media — Base resets and defaults. Layer: base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body.admin-bar {
  --t47-admin-bar: 32px;
  scroll-padding-top: calc(var(--header) + var(--t47-admin-bar, 0px) + 24px);
}

@media (max-width: 782px) {
  body.admin-bar {
    --t47-admin-bar: 46px;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  font-variation-settings: "opsz" 16;
  letter-spacing: -.006em;
  overflow-x: clip;
}

body.t47-overlay-open {
  overflow: hidden;
}

::selection {
  background: color-mix(in srgb, var(--primary) 24%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

code,
kbd,
pre,
samp {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* Source: primitives/button.css */
/* Button primitives. Layer: primitives */

.t47-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.t47-reading {
  width: min(calc(100% - (var(--gutter) * 2)), var(--reading));
  margin-inline: auto;
}

.t47-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  stroke-width: 1.8;
}

.t47-skip-link {
  position: fixed;
  z-index: var(--z-skip-link);
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--foreground);
  color: var(--background);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.t47-skip-link:focus {
  transform: none;
}

.t47-eyebrow,
.t47-section-kicker {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: var(--text-overline);
  font-weight: 790;
  letter-spacing: .135em;
  text-transform: uppercase;
}

.t47-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 700;
}

.t47-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Button base — shared by .t47-button and .t47-icon-button */
.t47-button,
.t47-icon-button {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-base) var(--ease-control),
              background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.t47-button {
  min-height: var(--control);
  padding: 0 17px;
  gap: 8px;
  font-size: var(--text-button);
  font-weight: 720;
  letter-spacing: -.01em;
  line-height: 1;
}

.t47-button .t47-icon,
.t47-icon-button .t47-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.85;
}

.t47-button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: color-mix(in srgb, var(--primary) 76%, transparent);
}

.t47-button--primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, var(--foreground));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 18%, transparent);
}

.t47-button--secondary {
  background: var(--background);
  border-color: var(--border-strong);
  color: var(--foreground);
}

.t47-button--secondary:hover {
  background: var(--muted);
}

.t47-button:hover,
.t47-icon-button:hover {
  transform: translateY(-1px);
}

.t47-button:active,
.t47-icon-button:active {
  transform: translateY(0) scale(.98);
}

.t47-button:focus-visible,
.t47-icon-button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

/* Icon button — square control with centered icon */
.t47-icon-button {
  width: var(--control);
  height: var(--control);
  min-height: var(--control);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  border-color: var(--border);
  line-height: 1;
}

.t47-icon-button:hover {
  background: var(--muted);
}

.t47-icon-button > span {
  display: inline-grid;
  place-items: center;
}

.t47-button > span {
  display: inline-grid;
  place-items: center;
}

/* Source: primitives/badge.css */
/* Badge primitive. Layer: primitives */

.t47-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: var(--text-overline);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -.005em;
}

.t47-badge--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}

.t47-badge--review {
  color: var(--warning);
}

.t47-badge--success {
  color: var(--success);
}

/* Source: primitives/input.css */
/* Input primitives. Layer: primitives */

.t47-input,
.t47-textarea,
.t47-select {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  padding: 11px 13px;
  min-height: var(--control);
}

.t47-input:focus,
.t47-textarea:focus,
.t47-select:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent);
  outline: 0;
}

.t47-input[aria-invalid="true"],
.t47-textarea[aria-invalid="true"],
.t47-select[aria-invalid="true"] {
  border-color: var(--destructive);
}

.t47-field label {
  display: block;
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 750;
}

.t47-field__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t47-field__description,
.t47-form-note {
  margin: 6px 0 0;
  color: var(--muted-foreground);
  font-size: var(--text-caption);
}

.t47-field__error {
  margin: 6px 0 0;
  color: var(--destructive);
  font-size: var(--text-caption);
  font-weight: 700;
}

/* Source: primitives/dialog.css */
/* Dialog primitive (search dialog). Layer: primitives */

.t47-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--foreground);
  overflow: auto;
}

.t47-dialog::backdrop {
  background: rgba(0, 0, 0, .54);
  backdrop-filter: blur(5px);
}

.t47-dialog__surface {
  border: 1px solid var(--border);
  border-radius: inherit;
  background: var(--popover);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.t47-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.t47-dialog__header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.t47-command-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 7px;
  background: var(--background);
}

.t47-command-search > svg {
  margin-left: 6px;
  color: var(--muted-foreground);
  flex: none;
}

.t47-command-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--foreground);
  outline: 0;
}

.t47-command-suggestions {
  margin-top: 18px;
}

.t47-command-suggestions h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-foreground);
}

.t47-command-suggestions__list {
  display: grid;
}

.t47-command-suggestions__list a {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--border);
  text-underline-offset: 4px;
}

.t47-command-suggestions__list span {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.t47-command-suggestions__list strong {
  font-size: .88rem;
}

.t47-dialog__hint {
  margin: 12px 0 0;
  color: var(--muted-foreground);
  font-size: .75rem;
}

/* Source: primitives/drawer.css */
/* Drawer primitive (mobile nav). Layer: primitives */

.t47-drawer-overlay {
  position: fixed;
  z-index: var(--z-overlay);
  inset: 0;
  background: rgba(0, 0, 0, .52);
}

.t47-drawer {
  position: fixed;
  z-index: var(--z-modal);
  inset: 0 0 0 auto;
  width: min(390px, 94vw);
  height: 100dvh;
  padding: calc(22px + env(safe-area-inset-top)) calc(22px + env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) 22px;
  background: var(--popover);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(104%);
  transition: transform var(--duration-drawer) var(--ease-drawer);
  border-left: 1px solid var(--border);
}

.t47-drawer[data-open="true"] {
  transform: none;
}

.t47-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t47-drawer__nav {
  display: grid;
  margin-top: 28px;
}

.t47-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding-inline: 8px;
  border-radius: 9px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.t47-drawer__nav a:hover,
.t47-drawer__nav a[aria-current="page"] {
  background: var(--muted);
}

.t47-drawer__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted-foreground);
  font-size: var(--text-label);
}

/* Source: primitives/empty-state.css */
/* Empty state primitive. Layer: primitives */

.t47-empty {
  max-width: 680px;
  margin: 60px auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  text-align: center;
}

.t47-empty__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--muted);
  color: var(--primary);
}

.t47-empty h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: .5rem;
}

.t47-empty p {
  font-size: clamp(.9rem, 1.5vw, 1rem);
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto;
}

.t47-empty__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

/* Source: primitives/pagination.css */
/* Pagination primitive. Layer: primitives */

.t47-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 30px 0;
}

.t47-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: var(--control);
  height: var(--control);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .78rem;
  font-weight: 700;
}

.t47-pagination .current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}

/* Source: primitives/media.css */
/* Media primitives. Layer: primitives */

.t47-lead-story__media img,
.t47-story-card__media img,
.t47-story-row__media img,
.t47-hero-rail__media img,
.t47-review-card__media img,
.t47-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-media) var(--ease-standard);
}

.t47-lead-story:hover img,
.t47-story-card:hover img,
.t47-story-row:hover img {
  transform: scale(1.018);
}

.t47-media__image {
  display: block;
}

/* Fallback media (shown when no featured image)
 * No baked text titles or repetitive editorial badge.
 * Topic-specific gradients provide visual variety.
 */
.t47-fallback-media {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: clamp(14px, 2.4vw, 26px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, #fff 14%, transparent), transparent 24%),
    linear-gradient(135deg, #34346b 0%, #20254b 52%, #11172f 100%);
  color: #fff;
}

.t47-fallback-media::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: var(--z-behind);
  background:
    repeating-linear-gradient(118deg, transparent 0 54px, rgba(255,255,255,.075) 55px 56px),
    radial-gradient(circle at 70% 12%, rgba(0,0,0,.4) 0 16%, transparent 16.3%);
  transform: rotate(-2deg);
}

/* No ::after with baked text — removed per P1-C remediation */

.t47-fallback-media > span {
  position: relative;
  max-width: 80%;
  font-size: clamp(.62rem, 1vw, .8rem);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: .12em;
}

/* Topic-specific fallback gradients (no text labels) */
.t47-fallback-media[data-topic="gaming"] {
  background: linear-gradient(135deg, #49326c, #20274b 54%, #10152b);
}
.t47-fallback-media[data-topic="gadget"] {
  background: linear-gradient(135deg, #225d68, #263d5e 58%, #11182e);
}
.t47-fallback-media[data-topic="pc-hardware"] {
  background: linear-gradient(135deg, #63451e, #353853 55%, #11172c);
}
.t47-fallback-media[data-topic="artificial-intelligence"] {
  background: linear-gradient(135deg, #333c85, #292a62 56%, #12162e);
}
.t47-fallback-media[data-topic="software"],
.t47-fallback-media[data-topic="technology"] {
  background: linear-gradient(135deg, #28565e, #303566 56%, #11162e);
}

/* Client-side broken-image substitution — last resort */
.t47-fallback-media--runtime::before {
  content: none;
}

.t47-fallback-media--runtime::after {
  content: none;
}

/* Source: primitives/toast.css */
/* Toast primitive. Layer: primitives */

.t47-toast-region {
  position: fixed;
  z-index: var(--z-toast);
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.t47-toast {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--popover);
  box-shadow: var(--shadow-lg);
  padding: 11px 14px;
  font-size: .82rem;
  font-weight: 650;
}

.t47-toast[data-tone="success"] {
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
}

.t47-toast[data-tone="error"] {
  border-color: color-mix(in srgb, var(--destructive) 40%, var(--border));
}

/* Source: components/header.css */
/* Site header component. Layer: components */

.t47-site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 91%, transparent);
  backdrop-filter: blur(22px) saturate(1.35);
}

.admin-bar .t47-site-header {
  top: 32px;
}

.t47-site-header[data-scrolled="true"] {
  box-shadow: 0 10px 30px rgba(10, 12, 20, .055);
}

:root[data-theme="dark"] .t47-site-header[data-scrolled="true"] {
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.t47-site-header__inner {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.t47-site-header__brand {
  display: flex;
  align-items: center;
  min-height: var(--control);
  flex: none;
  color: var(--primary);
}

/* Brand */
.t47-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  font-weight: 850;
  letter-spacing: -.045em;
}

.t47-brand__icon,
.t47-brand__wordmark {
  display: inline-flex;
  align-items: center;
}

.t47-brand__icon,
.t47-brand__icon .t47-brand__image {
  width: 34px;
  height: 34px;
}

.t47-brand__wordmark .t47-brand__image {
  width: 132px;
  height: auto;
}

.t47-brand__image {
  display: block;
  object-fit: contain;
  object-position: left center;
}

.t47-brand__image--dark {
  display: none;
}

:root[data-theme="dark"] .t47-brand__image--light {
  display: none;
}

:root[data-theme="dark"] .t47-brand__image--dark {
  display: block;
}

.t47-brand--compact .t47-brand__wordmark {
  display: none;
}

.t47-brand--compact,
.t47-brand--compact .t47-brand__icon,
.t47-brand--compact .t47-brand__image {
  width: 32px;
  height: 32px;
}

/* Header actions - improved spacing and consistency */
.t47-site-header__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Primary nav - improved button styling and consistency */
.t47-primary-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-inline: auto;
}

.t47-primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  padding-inline: 10px;
  border-radius: 9px;
  color: var(--muted-foreground);
  font-size: var(--text-label);
  font-weight: 650;
  letter-spacing: -.012em;
  text-underline-offset: 4px;
  transition: all var(--duration-fast) var(--ease-standard);
}

.t47-primary-nav__link:hover,
.t47-primary-nav__link[aria-current="page"] {
  background: var(--muted);
  color: var(--foreground);
}

.t47-primary-nav__link[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Search trigger - improved styling */
.t47-search-trigger {
  width: auto;
  min-width: 166px;
  justify-content: flex-start;
  padding-inline: 13px;
  gap: 9px;
  background: var(--background);
  border-radius: 9px;
  transition: all var(--duration-fast) var(--ease-standard);
}

.t47-search-trigger__label {
  color: var(--muted-foreground);
  font-size: var(--text-label);
}

.t47-search-trigger kbd {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--muted-foreground);
  font-size: .7rem;
  background: var(--muted);
}

/* Menu trigger - improved visibility */
.t47-menu-trigger {
  display: none;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
  .t47-site-header__inner {
    gap: clamp(8px, 1.5vw, 20px);
  }
  
  .t47-primary-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--background);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 8px;
    margin-inline: 0;
  }
  
  .t47-primary-nav__link {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }
  
  .t47-menu-trigger {
    display: block;
    min-height: var(--control);
    width: var(--control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    transition: all var(--duration-fast) var(--ease-standard);
  }
  
  .t47-menu-trigger:hover {
    background: var(--muted);
    color: var(--foreground);
  }
}

/* Source: components/navigation.css */
/* Navigation components. Layer: components */

.t47-site-header__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Primary nav */
.t47-primary-nav {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-inline: auto;
}

.t47-primary-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  padding-inline: 10px;
  border-radius: 9px;
  color: var(--muted-foreground);
  font-size: var(--text-label);
  font-weight: 650;
  letter-spacing: -.012em;
  text-underline-offset: 4px;
}

.t47-primary-nav__link:hover,
.t47-primary-nav__link[aria-current="page"] {
  background: var(--muted);
  color: var(--foreground);
}

.t47-primary-nav__link[aria-current="page"] {
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Search trigger */
.t47-search-trigger {
  width: auto;
  min-width: 166px;
  justify-content: flex-start;
  padding-inline: 13px;
  gap: 9px;
  background: var(--background);
}

.t47-search-trigger__label {
  color: var(--muted-foreground);
  font-size: var(--text-label);
}

.t47-search-trigger kbd {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--muted-foreground);
  font-size: .7rem;
  background: var(--muted);
}

.t47-menu-trigger {
  display: none;
}

/* Topic navigation */
.t47-topic-nav {
  display: flex;
  gap: 22px;
  overflow: auto;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.t47-topic-nav a {
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  padding: 5px 0;
  color: var(--muted-foreground);
  font-size: .78rem;
  font-weight: 700;
}

.t47-topic-nav a:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Archive topic nav (pill style) */
.t47-topic-nav--archive {
  margin-top: 26px;
  padding: 0;
  border-bottom: 0;
  gap: 8px;
}

.t47-topic-nav--archive a {
  min-height: var(--control);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
}

.t47-topic-nav--archive a:hover,
.t47-topic-nav--archive a[aria-current="page"] {
  text-decoration: none;
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* Sidebar links */
.t47-sidebar-links {
  display: grid;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.t47-sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: .86rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.t47-sidebar-links a:hover,
.t47-sidebar-links a[aria-current="page"] {
  color: var(--foreground);
}

/* Source: components/story-card.css */
/* Story card component. Layer: components */

.t47-story-card,
.t47-review-card,
.t47-archive-lead {
  transition: border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.t47-story-card:hover,
.t47-review-card:hover,
.t47-archive-lead:hover {
  transform: translateY(-2px);
}

.t47-review-card:hover,
.t47-archive-lead:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: var(--shadow-sm);
}

.t47-story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.t47-story-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--muted);
}

.t47-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: 15px;
}

.t47-story-card__title {
  margin: 9px 0;
  font-size: var(--text-card-title);
  line-height: 1.23;
  letter-spacing: -.022em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.t47-story-card__excerpt {
  margin: 0;
  color: var(--muted-foreground);
  font-size: .84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t47-story-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-size: .78rem;
  font-weight: 750;
  width: max-content;
  color: var(--primary);
}

/* Source: components/story-row.css */
/* Story row component. Layer: components */

.t47-story-stream {
  border-top: 1px solid var(--border);
}

.t47-story-row {
  display: grid;
  grid-template-columns: clamp(176px, 22vw, 240px) minmax(0, 1fr);
  gap: clamp(18px, 2.7vw, 30px);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.t47-story-row__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--muted);
}

.t47-story-row__title {
  margin: 8px 0 7px;
  font-size: clamp(1.08rem, 1.6vw, 1.36rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.t47-story-row__excerpt {
  margin: 0;
  color: var(--muted-foreground);
  font-size: .88rem;
  line-height: 1.55;
  max-width: 68ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.t47-story-row__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: .74rem;
}

.t47-story-row__footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--foreground);
  font-weight: 700;
}

/* Meta row */
.t47-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 7px;
  color: var(--muted-foreground);
  font-size: .68rem;
  line-height: 1.35;
}

.t47-meta__format {
  color: var(--primary);
  font-weight: 800;
}

.t47-meta a,
.t47-hero-rail__item h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Source: components/hero-rail.css */
/* Hero rail component. Layer: components */

.t47-hero-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(18px, 3vw, 34px);
  margin-top: clamp(30px, 5vw, 56px);
  padding: clamp(20px, 3vw, 28px) 0 0;
  border-top: 1px solid var(--border);
}

.t47-rail-heading {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-foreground);
}

.t47-hero-rail__item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
}

.t47-hero-rail__item + .t47-hero-rail__item {
  border-left: 1px solid var(--border);
  padding-left: clamp(18px, 3vw, 34px);
}

.t47-hero-rail__media {
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  overflow: hidden;
  background: var(--muted);
}

.t47-hero-rail__item h2,
.t47-hero-rail__item h3 {
  margin: 7px 0 0;
  font-size: clamp(.9rem, 1.1vw, 1.02rem);
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Source: components/article-header.css */
/* Article header components. Layer: components */

.t47-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  min-height: 28px;
}

.t47-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.t47-article-header {
  max-width: 1040px;
  margin: clamp(22px, 4vw, 42px) auto 30px;
  text-align: left;
}

.t47-article-header__signals {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.t47-article-header h1 {
  margin: 18px 0 16px;
  max-width: 20ch;
  font-size: var(--text-article-title);
  line-height: .99;
  letter-spacing: -.058em;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

.t47-article-header__dek {
  max-width: 68ch;
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--text-lead);
  line-height: 1.62;
  overflow-wrap: break-word;
}

/* Byline & author */
.t47-article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  max-width: none;
  margin: 28px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.t47-author-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.t47-author-chip img {
  border-radius: 50%;
}

.t47-author-chip strong,
.t47-author-chip span:not(.t47-author-chip__avatar) {
  display: block;
}

.t47-author-chip__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: .88rem;
  font-weight: 850;
  flex: none;
}

.t47-author-chip span,
.t47-article-byline__dates {
  color: var(--muted-foreground);
  font-size: var(--text-meta);
}

.t47-article-byline__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Article hero */
.t47-article-hero {
  width: min(calc(100% - (var(--gutter) * 2)), 1240px);
  margin: clamp(28px, 5vw, 54px) auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--muted);
  aspect-ratio: 16 / 9;
  box-shadow: 0 1px 0 var(--border);
  isolation: isolate;
}

.t47-article-hero figcaption {
  padding: 10px 14px;
  color: var(--muted-foreground);
  font-size: var(--text-meta);
}

/* Source: components/article-prose.css */
/* Article prose component. Layer: components */

.t47-prose {
  font-size: var(--text-prose);
  line-height: 1.82;
}

.t47-prose > *:first-child {
  margin-top: 0;
}

.t47-prose h2 {
  margin: 2.15em 0 .7em;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.038em;
}

.t47-prose h3 {
  margin: 1.9em 0 .6em;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.t47-prose p,
.t47-prose ul,
.t47-prose ol {
  margin: 0 0 1.25em;
}

.t47-prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent);
  text-underline-offset: 3px;
}

.t47-prose img,
.t47-prose figure {
  border-radius: 13px;
}

.t47-prose table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
}

.t47-prose th,
.t47-prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
}

.t47-prose pre {
  overflow: auto;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: #0d0f15;
  color: #eef0f5;
}

/* Source: components/article-sidebar.css */
/* Article sidebar components. Layer: components */

.t47-article-sidebar {
  position: sticky;
  top: calc(var(--header) + 22px);
  display: grid;
  gap: 14px;
}

.t47-article-sidebar > section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 17px;
  box-shadow: none;
}

.t47-article-sidebar h2 {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* TOC card */
.t47-toc-card ol {
  margin: 0;
  padding-left: 20px;
}

.t47-toc-card a {
  color: var(--muted-foreground);
  font-size: .76rem;
}

.t47-toc-card a[aria-current="true"],
.t47-toc-card a[aria-current="location"] {
  color: var(--primary);
  font-weight: 800;
}

/* Definition-list metadata (context card, guide brief, review summary) */
.t47-context-card dl,
.t47-guide-brief dl,
.t47-review-summary dl {
  margin: 0;
}

.t47-context-card dt,
.t47-guide-brief dt,
.t47-review-summary dt {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
}

.t47-context-card dd,
.t47-guide-brief dd,
.t47-review-summary dd {
  margin: 2px 0 12px;
  font-size: .82rem;
  font-weight: 700;
}

.t47-guide-brief dd:last-child,
.t47-review-summary dd:last-child {
  margin-bottom: 0;
}

/* Why panel */
.t47-why-panel {
  margin: 0 0 2rem;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 74%, transparent);
}

.t47-why-panel p:last-child {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.65;
}

/* Disclosure */
.t47-disclosure {
  color: var(--muted-foreground);
  font-size: .78rem;
}

/* Related section */
.t47-related-section {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.t47-related-stories {
  margin: 28px 0;
}

.t47-discussion-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Source: components/share.css */
/* Share component. Layer: components */

.t47-share-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.t47-share-actions .t47-button {
  min-height: var(--control);
  padding: 0 14px;
  font-size: var(--text-label);
}

.t47-share-menu {
  position: relative;
}

.t47-share-menu summary {
  list-style: none;
}

.t47-share-menu summary::-webkit-details-marker {
  display: none;
}

.t47-share-menu > summary {
  line-height: 1;
}

.t47-share-menu > summary > span {
  display: inline-grid;
  place-items: center;
}

.t47-share-menu__content {
  position: absolute;
  z-index: var(--z-dropdown);
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--popover);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.t47-share-menu__content a {
  display: block;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: var(--text-label);
}

.t47-share-menu__content a:hover {
  background: var(--muted);
}

/* Source: components/comments.css */
/* Comments component. Layer: components */

.t47-comments-area__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.t47-comments-area__header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.t47-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.t47-comment-list .comment {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.t47-comment-list .comment-body {
  display: block;
}

.t47-comment-list .avatar {
  border-radius: 50%;
}

.t47-comment-list .children {
  margin-left: 24px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.t47-comments-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-comments-empty__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
}

.t47-comments-empty h3,
.t47-comments-empty p {
  margin: 0;
}

.t47-comments-empty p {
  color: var(--muted-foreground);
  font-size: var(--text-label);
}

.t47-comment-form-card {
  margin-top: 25px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-comment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.t47-comment-form > * {
  margin: 0;
}

.t47-comment-form .comment-reply-title,
.t47-comment-form .t47-form-note,
.t47-field--full,
.t47-comment-form .form-submit,
.t47-comment-form .comment-form-cookies-consent {
  grid-column: 1 / -1;
}

.t47-comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.t47-comment-form .submit {
  justify-self: start;
  min-width: 160px;
}

.t47-comment-form[aria-busy="true"] {
  opacity: .72;
}

.t47-comment-form [aria-invalid="true"] {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--destructive) 14%, transparent);
}

.t47-field--full {
  grid-column: 1 / -1;
}

/* Honeypot */
.t47-comment-company {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Source: components/footer.css */
/* Footer component. Layer: components */

.t47-site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(46px, 7vw, 78px) 0 24px;
  background: var(--muted);
}

.t47-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(130px, .65fr));
  gap: clamp(30px, 5vw, 68px);
}

.t47-site-footer__brand p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: .82rem;
  line-height: 1.65;
}

.t47-site-footer nav h2 {
  margin: 0 0 9px;
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: .11em;
}

.t47-site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  color: var(--muted-foreground);
  font-size: var(--text-label);
}

.t47-site-footer a:hover {
  color: var(--foreground);
}

.t47-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: var(--text-caption);
}

.t47-site-footer__bottom p {
  margin: 0;
}

/* Source: components/editorial-formats.css */
/* Editorial format components (format-specific layouts). Layer: components */

/* Latest page */
.t47-latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .48fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 3.75rem);
}

.t47-latest-stream__summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.t47-latest-stream__summary h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.t47-latest-stream__summary span,
.t47-sidebar-note {
  color: var(--muted-foreground);
  font-size: .78rem;
}

.t47-latest-sidebar .t47-sidebar-panel {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

/* Review archive */
.t47-format-archive > .t47-shell {
  padding-block: clamp(2rem, 4vw, 3.75rem);
}

.t47-review-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
}

.t47-review-card {
  grid-column: span 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-review-card:first-child {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.t47-review-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.t47-review-card:first-child .t47-review-card__media {
  aspect-ratio: auto;
  min-height: 100%;
}

.t47-review-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.t47-review-card:first-child .t47-review-card__body {
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.t47-review-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.t47-review-card__product {
  margin: .9rem 0 0;
  color: var(--primary);
  font-size: var(--text-meta);
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.t47-review-card h2 {
  margin: .75rem 0 .65rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.t47-review-card:first-child h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.t47-review-card__body > p:not(.t47-review-card__product, .t47-review-card__verdict, .t47-disclosure) {
  color: var(--muted-foreground);
}

.t47-review-card__facts {
  display: grid;
  gap: .7rem;
  margin: 1rem 0 0;
}

.t47-review-card__facts > div {
  display: grid;
  grid-template-columns: minmax(92px, .34fr) minmax(0, 1fr);
  gap: .8rem;
  padding-top: .65rem;
  border-top: 1px solid var(--border);
}

.t47-review-card__facts dt {
  color: var(--muted-foreground);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.t47-review-card__facts dd {
  margin: 0;
  font-size: var(--text-label);
}

.t47-review-card__verdict {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--accent);
  font-size: .86rem;
}

.t47-review-card__meta {
  margin-top: auto;
  padding-top: 1rem;
}

.t47-badge--status-preview,
.t47-badge--status-first-look,
.t47-badge--status-not-final {
  color: var(--warning);
}

.t47-badge--status-hands-on,
.t47-badge--status-review,
.t47-badge--status-long-term-review {
  color: var(--success);
}

/* Guide archive */
.t47-guide-archive-list {
  counter-reset: guide;
  border-top: 1px solid var(--border);
}

.t47-guide-archive-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) var(--control);
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--border);
}

.t47-guide-archive-item__number {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -.05em;
}

.t47-guide-archive-item__body h2 {
  margin: .55rem 0 .6rem;
  max-width: 900px;
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.t47-guide-archive-item__body > p {
  max-width: 820px;
  color: var(--muted-foreground);
}

.t47-guide-archive-item__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 1rem 0 0;
}

.t47-guide-archive-item__details > div {
  display: grid;
  grid-template-columns: minmax(92px, .34fr) minmax(0, 1fr);
  gap: .8rem;
  padding-top: .65rem;
  border-top: 1px solid var(--border);
}

.t47-guide-archive-item__details dt {
  color: var(--muted-foreground);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.t47-guide-archive-item__details dd {
  margin: 0;
  font-size: var(--text-label);
}

/* Explainers */
.t47-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.t47-explainer-card {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-explainer-card__media {
  min-height: 100%;
  background: var(--muted);
}

.t47-explainer-card__media img,
.t47-explainer-card__media .t47-fallback-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t47-explainer-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.t47-explainer-card h2 {
  margin: .75rem 0 .6rem;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.t47-explainer-card__body > p {
  color: var(--muted-foreground);
}

.t47-explainer-card__why {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 74%, transparent);
  font-size: .86rem;
}

.t47-explainer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* Source: compositions/home.css */
/* Homepage composition. Layer: compositions */

.t47-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-block: clamp(28px, 3vw, 42px) clamp(38px, 6vw, 72px);
}

.t47-lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
}

.t47-lead-story__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--muted);
  isolation: isolate;
}

.t47-lead-story__content {
  padding: 0;
  min-width: 0;
}

.t47-lead-story__content h1 {
  margin: 14px 0 13px;
  max-width: 16ch;
  font-size: var(--text-display);
  line-height: 1.015;
  letter-spacing: -.052em;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

.t47-lead-story__content > p {
  max-width: 62ch;
  margin-bottom: 0;
  font-size: clamp(.96rem, 1.05vw, 1.05rem);
  line-height: 1.5;
  color: var(--muted-foreground);
}

.t47-lead-story__footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: .76rem;
}

/* Section heading */
.t47-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.t47-section-heading h2 {
  margin: 0;
  font-size: var(--text-section-heading);
  line-height: 1.02;
  letter-spacing: -.045em;
}

/* Home stream */
.t47-home-stream {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .72fr);
  gap: clamp(42px, 6vw, 76px);
  padding-block: var(--t47-section);
  border-top: 1px solid var(--border);
}

.t47-home-stream__rail {
  border-top: 0;
  padding-top: 0;
  border-left: 1px solid var(--border);
  padding-left: clamp(28px, 4vw, 44px);
}

/* Sidebar panel */
.t47-sidebar-panel {
  position: sticky;
  top: calc(var(--header) + 26px);
}

/* Ranked list */
.t47-ranked-list {
  border-top: 1px solid var(--border);
}

.t47-ranked-story {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.t47-ranked-story__index {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -.05em;
}

.t47-ranked-story h3 {
  margin: 5px 0 0;
  font-size: .94rem;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Editorial module */
.t47-editorial-module {
  padding: var(--t47-section) 0;
  border-top: 1px solid var(--border);
}

.t47-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.t47-editorial-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Guide list */
.t47-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--border);
}

.t47-guide-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) var(--control);
  align-items: start;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.t47-guide-item__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--primary);
  font-weight: 850;
}

.t47-guide-item h3 {
  margin: 4px 0;
  font-size: var(--text-body);
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.t47-guide-item p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--text-label);
}

.t47-guide-item__action {
  display: grid;
  place-items: center;
  width: var(--control);
  height: var(--control);
  border: 1px solid var(--border);
  border-radius: 9px;
}

/* Trust panel */
.t47-trust-panel {
  position: relative;
  margin: clamp(34px, 5vw, 62px) auto clamp(54px, 8vw, 96px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--card)), var(--card));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.t47-trust-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.t47-trust-panel__copy {
  position: relative;
  z-index: var(--z-lift);
}

.t47-trust-panel h2 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--text-section-heading);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.t47-trust-panel p {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted-foreground);
  line-height: 1.62;
}

.t47-trust-panel__actions {
  position: relative;
  z-index: var(--z-lift);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.t47-trust-panel__actions .t47-button {
  width: 100%;
  min-height: 48px;
}

/* Source: compositions/archive.css */
/* Archive composition. Layer: compositions */

.t47-page-header {
  padding-block: clamp(42px, 5.5vw, 76px) clamp(34px, 4.5vw, 60px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--muted) 38%, var(--background)), var(--background));
}

.t47-page-header .t47-shell {
  display: grid;
  align-content: center;
  gap: 0;
}

.t47-page-header h1 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--text-archive-title);
  line-height: 1.05;
  letter-spacing: -.055em;
  text-wrap: pretty;
  overflow-wrap: normal;
  word-break: normal;
}

.t47-page-header p:not(.t47-section-kicker) {
  max-width: 62ch;
  margin-top: 18px;
  font-size: clamp(.96rem, 1.15vw, 1.08rem);
  line-height: 1.58;
}

.t47-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .48fr);
  gap: clamp(42px, 6vw, 76px);
  padding-block: clamp(34px, 5vw, 68px);
}

.t47-archive-sidebar {
  align-self: start;
  border-left: 1px solid var(--border);
  padding-left: clamp(24px, 4vw, 40px);
}

.t47-archive-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.t47-archive-lead__media {
  min-height: 320px;
  background: var(--muted);
  isolation: isolate;
}

.t47-archive-lead__media img,
.t47-archive-lead__media .t47-fallback-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t47-archive-lead__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.t47-archive-lead__content h2 {
  margin: .7rem 0 .8rem;
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.t47-archive-lead__content > p {
  color: var(--muted-foreground);
}

/* Search controls */
.t47-search-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
  max-width: 1040px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.t47-search-controls .t47-field label {
  display: block;
  margin-bottom: 5px;
}

/* Format filter */
.t47-format-filter,
.t47-format-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.t47-format-filter a,
.t47-format-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control);
  padding: 0 .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  font-size: .78rem;
  font-weight: 750;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.t47-format-filter a:hover,
.t47-format-filter a[aria-current="page"],
.t47-format-switcher a:hover,
.t47-format-switcher a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: var(--accent);
  color: var(--foreground);
}

/* Search page */
.t47-search-page > .t47-shell {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.t47-search-results {
  border-top: 1px solid var(--border);
}

.t47-search-results__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.t47-search-results__heading h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.t47-search-results__heading span {
  color: var(--muted-foreground);
  font-size: .78rem;
}

/* Source: compositions/article.css */
/* Article composition. Layer: compositions */

.t47-article-page {
  padding: 28px 0 var(--t47-section);
}

.t47-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(250px, 320px);
  justify-content: center;
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.t47-article-footer {
  margin-top: 52px;
}

/* Source: compositions/institutional.css */
/* Institutional page composition. Layer: compositions */

/* Contact panel. Markup comes from ten4seven-core's [t4s_contact_form]
   shortcode, which adds the t47-* classes styled here via a do_shortcode_tag
   filter (T4S_Institutional_Presentation). The plugin's own inline styles for
   this form never reach the frontend — the theme deregisters the handle they
   attach to — so these rules are the only styling the form receives. */

.t47-contact-panel {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
}

.t47-contact-panel__intro {
  max-width: 62ch;
}

.t47-contact-panel__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.t47-contact-panel__intro p:last-child {
  margin-bottom: 0;
  color: var(--muted-foreground);
}

.t47-contact-form {
  position: relative;
  margin-top: 2rem;
}

.t47-contact-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.t47-contact-form .t47-field {
  display: grid;
  gap: .45rem;
  margin: 0;
}

.t47-contact-form .t47-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.t47-contact-form .t47-field label span {
  color: var(--muted-foreground);
  font-size: var(--text-caption);
  font-weight: 600;
}

.t47-contact-form .t47-field small {
  color: var(--muted-foreground);
  font-size: var(--text-caption);
}

.t47-contact-form .t4s-form-field--message {
  margin-top: 1rem;
}

.t47-contact-form textarea.t47-textarea {
  min-height: 190px;
  resize: vertical;
}

/* Honeypot: visually hidden but still reachable, never display:none. */
.t47-comment-company {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.t47-contact-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: .7rem;
  margin: 1.25rem 0 0;
  color: var(--muted-foreground);
  font-size: .82rem;
}

.t47-contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: .2rem;
}

.t47-contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.t47-contact-form__actions p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted-foreground);
  font-size: .75rem;
}

@media (max-width: 767px) {
  .t47-contact-panel {
    border-radius: var(--radius-lg);
  }

  .t47-contact-form__fields {
    grid-template-columns: 1fr;
  }

  .t47-contact-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .t47-contact-form__actions .t47-button {
    width: 100%;
  }
}

/* Source: compositions/software.css */
/* Software directory composition. Layer: compositions */

/* Archive grid */
.t47-software-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.t47-software-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-software-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}

.t47-software-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.t47-software-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .6rem;
}

.t47-software-card__publisher {
  margin: .5rem 0 0;
  color: var(--muted-foreground);
  font-size: var(--text-meta);
  font-weight: 700;
}

.t47-software-card__version {
  margin: auto 0 0;
  padding-top: .9rem;
  color: var(--muted-foreground);
  font-size: var(--text-caption);
}

/* Support-status badge tints (distinct slugs from editorial review status) */
.t47-badge--status-active {
  color: var(--success);
}

.t47-badge--status-maintenance {
  color: var(--warning);
}

.t47-badge--status-discontinued {
  color: var(--destructive);
}

/* Detail header */
.t47-software-header {
  padding-top: clamp(20px, 3vw, 32px);
}

.t47-software-header__signals {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.t47-software-header h1 {
  margin: 14px 0 6px;
  max-width: 22ch;
  font-size: var(--text-article-title);
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: pretty;
}

.t47-software-header__publisher {
  margin: 0;
  color: var(--muted-foreground);
  font-size: var(--text-lead);
  font-weight: 700;
}

.t47-software-header__dek {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--muted-foreground);
  font-size: var(--text-lead);
  line-height: 1.55;
}

/* Detail layout */
.t47-software-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .38fr);
  gap: clamp(28px, 4vw, 48px);
  padding-block: clamp(24px, 4vw, 40px) clamp(56px, 8vw, 96px);
}

.t47-software-main {
  min-width: 0;
}

.t47-software-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--muted);
  margin-bottom: 1.75rem;
}

.t47-software-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.t47-software-facts {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-software-facts__block h2 {
  margin: 0 0 .4rem;
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-foreground);
}

.t47-software-facts__block p {
  margin: 0;
  font-size: var(--text-prose);
  line-height: 1.6;
}

/* Official download panel (primary action; sits above general context) */
.t47-official-download-panel {
  display: grid;
  gap: .6rem;
}

.t47-official-download-panel__cta {
  width: 100%;
  justify-content: center;
}

.t47-official-download-panel .t47-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-label);
}

/* Utility risk-tier badges (R0-R3, see class-utility-meta-boxes.php) */
.t47-badge--risk-r0,
.t47-badge--risk-r1 {
  color: var(--success);
}

.t47-badge--risk-r2 {
  color: var(--warning);
}

.t47-badge--risk-r3 {
  color: var(--destructive);
}

/* Checksum display */
.t47-utility-checksum {
  display: grid;
  gap: 4px;
  margin-top: .4rem;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--muted);
}

.t47-utility-checksum__label {
  font-size: var(--text-caption);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.t47-utility-checksum__value {
  overflow-wrap: anywhere;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: var(--text-caption);
}

/* Source: utilities.css */
/* Utility layer. Layer: utilities */

/* Ad slots */
.t47-ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100px;
  margin: 26px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 65%, transparent);
}

.t47-ad-slot--sidebar {
  min-height: 250px;
}

.t47-ad-slot__label {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.t47-ad-slot:empty,
.t47-ad-slot:has(.t47-ad-slot__content:empty),
.t47-ad-slot[data-ad-empty="true"] {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Editorial content components */
.t47-card__header {
  padding: 18px 18px 0;
}

.t47-card__content {
  padding: 18px;
}

.t47-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.t47-alert,
.t47-key-facts,
.t47-vendor-claim,
.t47-verdict,
.t47-pros-cons,
.t47-spec-table {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.t47-alert {
  padding: 18px;
  border-left: 3px solid var(--primary);
}

.t47-alert__title {
  margin: 0 0 6px;
  font-size: var(--text-body);
}

.t47-editorial-analysis {
  margin: 30px 0;
  padding: 22px;
  border-left: 3px solid var(--primary);
  background: var(--muted);
}

.t47-editorial-analysis__tag {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.t47-sources-list,
.t47-update-history {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.t47-step-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.t47-step-list > li {
  counter-increment: steps;
  position: relative;
  padding: 0 0 24px 46px;
}

.t47-step-list > li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 800;
}

.t47-article-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Date divider */
.t47-date-divider {
  position: sticky;
  z-index: var(--z-sticky-inline);
  top: var(--header);
  margin: 0;
  padding: 1.15rem 0 .7rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 94%, transparent);
  backdrop-filter: blur(12px);
  color: var(--muted-foreground);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Compact spacing utility */
.t47-compact-spacing {
  padding-block: clamp(0.75rem, 1.5vw, 1rem);
}

/* Source: uiux-quick-fixes.css */
/* UI/UX Quick Fixes - Addressing scaling, button, icon, and header issues */

/* 2. Fix button inconsistencies */
.t47-button {
  min-height: var(--control);
  padding: 0 16px;
  gap: 7px;
  font-size: .82rem;
  font-weight: 720;
  letter-spacing: -.01em;
}

.t47-button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: color-mix(in srgb, var(--primary) 76%, transparent);
}

.t47-button--primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, var(--foreground));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 15%, transparent);
}

.t47-button--secondary {
  background: var(--background);
  border-color: var(--border-strong);
  color: var(--foreground);
}

.t47-button--secondary:hover {
  background: var(--muted);
}

/* 3. Fix icon alignment issues */
.t47-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke-width: 1.8;
}

.t47-button .t47-icon,
.t47-icon-button .t47-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.85;
}

/* 4. Fix double header menus and active states */
.t47-primary-nav {
  gap: 4px; /* Increased gap for better separation */
  margin-inline: auto;
}

.t47-primary-nav__link {
  min-height: var(--control);
  padding-inline: 12px;
  border-radius: 7px;
  color: var(--muted-foreground);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -.012em;
  text-underline-offset: 4px;
}

.t47-primary-nav__link:hover,
.t47-primary-nav__link[aria-current="page"] {
  background: var(--muted);
  color: var(--foreground);
}

.t47-primary-nav__link[aria-current="page"] {
  position: relative;
  box-shadow: inset 0 0 0 1px var(--border);
}

.t47-primary-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* 5. Fix unbalanced scales across layouts */
.t47-archive-layout {
  gap: clamp(32px, 5vw, 60px); /* Reduced gap from 76px to 60px */
  padding-block: clamp(28px, 4.5vw, 60px); /* Reduced padding */
}

.t47-archive-sidebar {
  padding-left: clamp(20px, 3.5vw, 32px); /* Reduced padding */
}

.t47-archive-lead {
  border-radius: var(--radius-lg); /* Reduced from xl to lg */
  margin-bottom: 1.5rem; /* Reduced margin */
}

.t47-archive-lead__media {
  min-height: 280px; /* Reduced from 320px */
}

.t47-archive-lead__content {
  padding: clamp(1.2rem, 3.5vw, 2.5rem); /* Reduced padding */
}

/* 6. Fix topic navigation pill styling */
.t47-topic-nav--archive a {
  min-height: calc(var(--control) - 4px); /* Slightly smaller */
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: .76rem;
  font-weight: 750;
}

.t47-topic-nav--archive a:hover,
.t47-topic-nav--archive a[aria-current="page"] {
  text-decoration: none;
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* 7. Fix search controls spacing */
.t47-search-controls {
  gap: 12px; /* Reduced gap */
  max-width: 980px; /* Reduced max width */
  margin-top: 20px; /* Reduced margin */
  padding-top: 16px; /* Reduced padding */
}

/* 8. Fix format filter buttons */
.t47-format-filter a,
.t47-format-switcher a {
  min-height: calc(var(--control) - 2px);
  padding: 0 .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  font-size: .76rem;
  font-weight: 750;
}

.t47-format-filter a:hover,
.t47-format-filter a[aria-current="page"],
.t47-format-switcher a:hover,
.t47-format-switcher a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: var(--accent);
  color: var(--foreground);
}

/* 9. Fix sidebar links */
.t47-sidebar-links a {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: .84rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.t47-sidebar-links a:hover,
.t47-sidebar-links a[aria-current="page"] {
  color: var(--foreground);
}

/* 10. Fix mobile responsive improvements */
@media (max-width: 768px) {
  .t47-page-header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem); /* Further reduced for mobile */
  }
  
  .t47-archive-layout {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
    padding-block: clamp(24px, 4vw, 48px);
  }
  
  .t47-archive-sidebar {
    border-left: 0;
    padding-left: 0;
    margin-top: 2rem;
  }
  
  .t47-primary-nav {
    gap: 2px;
  }
  
  .t47-primary-nav__link {
    padding: 10px;
    font-size: .76rem;
  }
  
  .t47-search-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }
}

/* 11. Fix icon button consistency */
.t47-icon-button {
  width: var(--control);
  height: var(--control);
  min-height: var(--control);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  border-color: var(--border);
  line-height: 1;
}

.t47-icon-button:hover {
  background: var(--muted);
}

.t47-icon-button > span {
  display: inline-grid;
  place-items: center;
}

/* 12. Fix search trigger styling */
.t47-search-trigger {
  width: auto;
  min-width: 154px;
  justify-content: flex-start;
  padding-inline: 12px;
  gap: 8px;
  background: var(--background);
  border-radius: 7px;
  transition: all var(--duration-fast) var(--ease-standard);
}

.t47-search-trigger__label {
  color: var(--muted-foreground);
  font-size: .78rem;
}

.t47-search-trigger kbd {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted-foreground);
  font-size: .68rem;
  background: var(--muted);
}

/* 13. Fix brand consistency */
.t47-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  font-weight: 850;
  letter-spacing: -.045em;
}

.t47-brand__icon,
.t47-brand__icon .t47-brand__image {
  width: 32px;
  height: 32px;
}

.t47-brand__wordmark .t47-brand__image {
  width: 120px;
  height: auto;
}

/* 14. Fix overall layout balance */
.t47-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin-inline: auto;
}

.t47-reading {
  width: min(calc(100% - (var(--gutter) * 2)), var(--reading));
  margin-inline: auto;
}

/* 15. Fix text link consistency */
.t47-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
}

.t47-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 16. Fix skip link styling */
.t47-skip-link {
  position: fixed;
  z-index: var(--z-skip-link);
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--foreground);
  color: var(--background);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .82rem;
}

.t47-skip-link:focus {
  transform: none;
}

/* 17. Fix section kicker consistency */
.t47-eyebrow,
.t47-section-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: .67rem;
  font-weight: 790;
  letter-spacing: .135em;
  text-transform: uppercase;
}

/* Source: responsive.css */
/* Responsive Consolidation - Eliminating Cascade Fragmentation and Fixing 496px Layout Collapse
 * ==============================================================================
 * This file consolidates responsive rules from multiple sources into a single canonical layer
 * to eliminate cascade fragmentation and ensure proper responsive behavior.
 */

/* 1180px — Search trigger collapses to icon */
@media (max-width: 1180px) {
  .t47-search-trigger {
    min-width: var(--control);
    width: var(--control);
    padding: 0;
  }

  .t47-search-trigger__label,
  .t47-search-trigger kbd {
    display: none;
  }

  .t47-lead-story {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .t47-lead-story__content h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* 1080px — Nav collapses to drawer, stacked layouts */
@media (max-width: 1080px) {
  .t47-primary-nav {
    display: none;
  }

  .t47-menu-trigger {
    display: inline-flex;
  }

  .t47-home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .t47-lead-story {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .t47-hero-rail {
    border-left: 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0 0;
  }

  .t47-hero-rail .t47-rail-heading {
    grid-column: 1 / -1;
  }

  .t47-hero-rail__item {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 0;
    border: 0;
  }

  .t47-home-stream {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .t47-home-stream__rail {
    border-top: 1px solid var(--border);
    padding-top: 28px;
  }

  .t47-ranked-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .t47-article-layout {
    grid-template-columns: 1fr;
  }

  .t47-sidebar-panel,
  .t47-article-sidebar {
    position: static;
  }

  .t47-article-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .t47-review-grid,
  .t47-editorial-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .t47-site-footer__grid {
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 24px;
  }

  .t47-search-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .t47-search-controls .t47-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 820px — Tablet - Critical breakpoint for proper layout flow */
@media (max-width: 820px) {
  :root {
    --header: 56px;
    --gutter: 18px;
  }

  .t47-site-header__inner {
    gap: 8px;
  }

  .t47-site-header__brand .t47-brand {
    width: auto;
    height: 36px;
    gap: 8px;
  }

  .t47-site-header__brand .t47-brand__icon,
  .t47-site-header__brand .t47-brand__icon .t47-brand__image {
    width: 28px;
    height: 28px;
  }

  .t47-site-header__brand .t47-brand__wordmark {
    display: inline-flex;
    width: auto;
    height: auto;
  }

  .t47-site-header__brand .t47-brand__wordmark .t47-brand__image {
    width: 102px;
    height: auto;
  }

  .t47-site-header__actions {
    gap: 5px;
  }

  .t47-home-hero {
    padding: 22px 0 34px;
  }

  .t47-lead-story {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .t47-lead-story__media {
    aspect-ratio: 16 / 10;
  }

  .t47-lead-story__content {
    padding-top: 0;
  }

  .t47-lead-story__content h1 {
    margin: 9px 0 7px;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .t47-lead-story__content > p {
    display: block;
    max-width: 850px;
    color: var(--muted-foreground);
    font-size: .94rem;
    line-height: 1.5;
  }

  .t47-lead-story__footer {
    margin-top: 12px;
    padding-top: 11px;
  }

  .t47-hero-rail {
    display: block;
    padding-top: 14px;
  }

  .t47-hero-rail__item {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
  }

  .t47-home-stream {
    gap: 34px;
    padding: 42px 0;
  }

  .t47-story-row {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 0;
  }

  .t47-story-row__title {
    font-size: .98rem;
  }

  .t47-story-row__excerpt {
    display: none;
  }

  .t47-story-row__footer span {
    display: none;
  }

  .t47-editorial-grid,
  .t47-editorial-grid--four,
  .t47-review-grid,
  .t47-guide-list {
    grid-template-columns: 1fr;
  }

  .t47-editorial-module {
    padding: 44px 0;
  }

  .t47-trust-panel {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .t47-page-header {
    padding: 1.75rem 0 1.25rem;
  }

  .t47-page-header h1 {
    font-size: clamp(1.85rem, 8.5vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .t47-page-header p {
    margin: 13px 0 0;
    color: var(--muted-foreground);
    font-size: 1rem;
  }

  .t47-article-page {
    padding-top: 20px;
  }

  .t47-article-header {
    margin-top: 14px;
    margin-bottom: 20px;
  }

  .t47-article-header h1 {
    margin: 17px 0 14px;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .t47-article-byline {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 18px;
    padding-block: 12px;
  }

  .t47-article-byline__dates {
    gap: 8px;
  }

  .t47-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-block: 12px 0;
  }

  .t47-share-actions > * {
    width: 100%;
    min-height: 44px;
  }

  .t47-article-hero {
    aspect-ratio: 4 / 3;
    margin-bottom: 24px;
  }

  .t47-story-row__media,
  .t47-story-card__media,
  .t47-review-card__media {
    aspect-ratio: 4 / 3;
  }

  .t47-article-layout {
    gap: 30px;
  }

  .t47-article-sidebar {
    grid-template-columns: 1fr;
  }

  .t47-prose {
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .t47-comment-form {
    grid-template-columns: 1fr;
  }

  .t47-comment-form>* {
    grid-column: 1;
  }

  .t47-comment-form-card {
    padding: 16px;
  }

  .t47-comment-list .children {
    margin-left: 8px;
    padding-left: 12px;
  }

  .t47-site-footer {
    padding-top: 32px;
  }

  .t47-site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .t47-site-footer__brand {
    grid-column: 1 / -1;
  }

  .t47-site-footer__bottom {
    flex-direction: column;
    margin-top: 22px;
  }

  .t47-dialog__surface {
    padding: 17px;
  }

  .t47-command-search {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .t47-command-search input {
    min-height: 42px;
  }

  .t47-command-search .t47-button {
    width: 100%;
  }

  .t47-command-suggestions__list a {
    grid-template-columns: 1fr auto;
  }

  .t47-command-suggestions__list a>span {
    display: none;
  }

  .t47-empty {
    padding: 24px 18px;
  }

  .t47-error-hero__actions,
  .t47-empty__actions {
    flex-direction: column;
  }

  .t47-error-hero__actions .t47-button,
  .t47-empty__actions .t47-button {
    width: 100%;
  }

  .t47-search-controls {
    grid-template-columns: 1fr;
  }

  .t47-search-controls .t47-button {
    width: 100%;
  }
}

/* 620px — Mobile narrow - Ensure proper one-column flow */
@media (max-width: 620px) {
  :root {
    --header: 56px;
    --gutter: 16px;
    --t47-section: 52px;
  }

  .t47-site-header__inner {
    gap: 6px;
  }

  .t47-site-header__brand .t47-brand {
    width: auto;
    height: 36px;
    gap: 8px;
  }

  .t47-site-header__brand .t47-brand__icon,
  .t47-site-header__brand .t47-brand__icon .t47-brand__image {
    width: 28px;
    height: 28px;
  }

  .t47-site-header__brand .t47-brand__wordmark {
    display: inline-flex;
    width: auto;
    height: auto;
  }

  .t47-site-header__brand .t47-brand__wordmark .t47-brand__image {
    width: 102px;
    height: auto;
  }

  .t47-site-header__actions {
    gap: 5px;
  }

  .t47-search-trigger {
    display: inline-flex;
    min-width: var(--control);
    width: var(--control);
    padding: 0;
  }

  .t47-search-trigger__label,
  .t47-search-trigger kbd {
    display: none;
  }

  .t47-icon-button {
    width: var(--control);
    height: var(--control);
    min-height: var(--control);
  }

  .t47-home-hero {
    padding: 18px 0 28px;
  }

  .t47-lead-story__media {
    aspect-ratio: 16 / 10;
  }

  .t47-lead-story__content h1 {
    margin: 9px 0 7px;
    font-size: clamp(1.85rem, 10vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .t47-lead-story__content > p {
    display: block;
    max-width: 850px;
    color: var(--muted-foreground);
    font-size: .94rem;
    line-height: 1.5;
  }

  .t47-lead-story__footer {
    margin-top: 12px;
    padding-top: 11px;
  }

  .t47-section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .t47-section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .t47-text-link {
    font-size: .78rem;
  }

  .t47-story-row {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 12px;
    padding-block: 18px;
  }

  .t47-story-row__title {
    font-size: 1rem;
    line-height: 1.23;
  }

  .t47-story-row__excerpt {
    display: none;
  }

  .t47-story-row__footer span {
    display: none;
  }

  .t47-ranked-list {
    display: block;
  }

  .t47-editorial-grid,
  .t47-guide-list {
    grid-template-columns: 1fr;
  }

  .t47-story-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 18px;
    border-bottom: 1px solid var(--border);
  }

  .t47-story-card__media {
    aspect-ratio: 4 / 3;
  }

  .t47-story-card__body {
    padding-top: 0;
  }

  .t47-story-card__excerpt {
    display: none;
  }

  .t47-story-card__link {
    padding-top: 9px;
  }

  .t47-guide-item {
    grid-template-columns: 38px minmax(0, 1fr) 34px;
  }

  .t47-guide-item p {
    display: none;
  }

  .t47-trust-panel {
    padding: 24px;
  }

  .t47-trust-panel h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .t47-trust-panel__actions {
    grid-template-columns: 1fr;
  }

  .t47-page-header {
    padding-block: 34px 28px;
  }

  .t47-page-header h1 {
    font-size: clamp(1.85rem, 10vw, 2.75rem);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .t47-page-header p:not(.t47-section-kicker) {
    margin-top: 13px;
    font-size: .93rem;
  }

  .t47-article-header h1 {
    font-size: clamp(2rem, 10.5vw, 3.25rem);
    max-width: none;
  }

  .t47-article-byline {
    align-items: flex-start;
    flex-direction: column;
  }

  .t47-share-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .t47-share-actions > * {
    width: 100%;
  }

  .t47-article-sidebar {
    grid-template-columns: 1fr;
  }

  .t47-related-section .t47-editorial-grid--four {
    grid-template-columns: 1fr;
  }

  .t47-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .t47-site-footer__brand {
    grid-column: auto;
  }

  .t47-breadcrumb span:last-child,
  .t47-breadcrumb span:nth-last-child(2) {
    display: none;
  }

  .t47-article-header {
    margin-top: 14px;
    margin-bottom: 20px;
  }

  .t47-article-header h1 {
    margin: 17px 0 14px;
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .t47-article-byline {
    margin-top: 18px;
    padding-block: 12px;
  }

  .t47-share-actions {
    margin-block: 12px 0;
  }

  .t47-article-hero {
    margin-bottom: 24px;
  }

  .t47-comment-form-card {
    padding: 16px;
  }

  .t47-editorial-grid--four {
    grid-template-columns: 1fr;
  }
}

/* 430px — Extra narrow - Ensure content fits */
@media (max-width: 430px) {
  .t47-brand__wordmark .t47-brand__image {
    width: 94px;
  }

  .t47-lead-story__content h1 {
    font-size: clamp(1.82rem, 10.7vw, 2.65rem);
  }

  .t47-story-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .t47-story-row .t47-meta time,
  .t47-story-row .t47-meta > span[aria-hidden="true"]:last-of-type {
    display: none;
  }

  .t47-story-card {
    grid-template-columns: 1fr;
  }

  .t47-share-actions {
    grid-template-columns: 1fr;
  }

  .t47-site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* 320px — Mobile - Final safety breakpoint */
@media (max-width: 320px) {
  .t47-shell,
  .t47-reading {
    width: min(calc(100% - 20px), var(--shell));
  }

  .t47-site-header__inner {
    gap: 4px;
  }

  .t47-site-header__brand .t47-brand__icon,
  .t47-site-header__brand .t47-brand__icon .t47-brand__image {
    width: 24px;
    height: 24px;
  }

  .t47-site-header__brand .t47-brand__wordmark .t47-brand__image {
    width: 80px;
  }

  .t47-site-header__actions {
    gap: 4px;
  }

  .t47-icon-button {
    width: 40px;
    height: 40px;
  }

  .t47-lead-story__content h1 {
    font-size: clamp(1.75rem, 12vw, 2.35rem);
  }

  .t47-section-heading h2 {
    font-size: clamp(1.6rem, 10vw, 2.15rem);
  }

  .t47-story-row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    padding-block: 16px;
  }

  .t47-story-row__title {
    font-size: .95rem;
  }

  .t47-page-header h1 {
    font-size: clamp(1.75rem, 12vw, 2.5rem);
  }

  .t47-article-header h1 {
    font-size: clamp(1.75rem, 12vw, 2.15rem);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .t47-button,
  .t47-icon-button,
  .t47-media__image,
  .t47-drawer,
  .t47-editorial-grid .t47-story-card,
  .t47-review-card,
  .t47-archive-lead {
    transition: none !important;
  }
}

/* Archive-specific responsive fixes */
@media (max-width: 768px) {
  .t47-archive-layout {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
    padding-block: clamp(24px, 4vw, 48px);
  }

  .t47-archive-sidebar {
    border-left: 0;
    padding-left: 0;
    margin-top: 2rem;
  }

  .t47-primary-nav {
    gap: 2px;
  }

  .t47-primary-nav__link {
    padding: 10px;
    font-size: .76rem;
  }

  .t47-search-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }
}

/* Header fixes for 320-496px range */
@media (max-width: 496px) {
  .t47-site-header__brand {
    margin-right: auto;
  }

  .t47-site-header__actions {
    gap: 4px;
  }

  .t47-icon-button {
    min-width: 44px;
    min-height: 44px;
  }

  .t47-search-trigger {
    min-width: 44px;
    width: 44px;
  }

  .t47-menu-trigger {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Ensure proper active state hierarchy */
.t47-primary-nav__link[aria-current="page"] {
  position: relative;
}

.t47-primary-nav__link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Fix topic navigation pills */
.t47-topic-nav--archive a {
  min-height: calc(var(--control) - 4px);
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  font-size: .76rem;
  font-weight: 750;
}

.t47-topic-nav--archive a:hover,
.t47-topic-nav--archive a[aria-current="page"] {
  text-decoration: none;
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* Fix text wrapping for proper readability */
h1, h2, h3, h4, p {
  word-break: normal;
  overflow-wrap: break-word;
}

/* Ensure minimum touch targets */
.t47-icon-button,
.t47-search-trigger,
.t47-menu-trigger {
  min-width: 44px;
  min-height: 44px;
}

/* Fix header search label visibility */
@media (max-width: 496px) {
  .t47-search-trigger__label {
    display: none;
  }
}

/* Archive sidebar collapse on mobile (>= 768px query above already
   removes the border/left-rail; sidebar content remains visible). */