/*
  RigDaily — two themes on one layout.
  Light "Newsroom": editorial base with neo-brutalist accents used sparingly.
  Dark "Signal": charcoal, thin borders, amber accent, no hard shadows.
  Components only use the tokens below; never hard-code a color in a rule.
*/

:root,
[data-theme="light"] {
    --bg: #FAF5EC;
    --surface: #FFFFFF;
    --ink: #111111;
    --ink-soft: #2E2B26;
    --muted: #6B655B;
    --rule: #E2DACB;
    --line: #111111;
    --accent: #2563EB;
    --accent-soft: #DBEAFE;
    --on-accent: #FFFFFF;
    --highlight: #BFDBFE;
    --brand-pixel: #3B82F6;
    --danger: #B3261E;

    --inverse-bg: #111111;
    --inverse-fg: #FAF5EC;
    --inverse-muted: rgba(250, 245, 236, 0.75);
    --inverse-faint: rgba(250, 245, 236, 0.55);
    --inverse-rule: rgba(250, 245, 236, 0.18);

    --shadow-color: #111111;
    --media-empty: #DBEAFE;
    --code-bg: #EFE7D6;
    --pre-bg: #111111;
    --pre-fg: #FAF5EC;
    --tag-bg: #111111;
    --tag-fg: #7FB0FF;
    --strong-bg: #111111;
    --strong-fg: #FAF5EC;
    --strong-hover: #2E2B26;
    --newsletter-bg: #DBEAFE;
    --newsletter-fg: #111111;
    --newsletter-border: #111111;
    --newsletter-shadow: 8px 8px 0 #111111;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #15171C;
    --surface: #1C1F26;
    --ink: #ECEAE4;
    --ink-soft: #C4C1B9;
    --muted: #8C929D;
    --rule: #2A2D35;
    --line: #3A3F4A;
    --accent: #5B93FF;
    --accent-soft: rgba(91, 147, 255, 0.14);
    --on-accent: #0B0D12;
    --highlight: rgba(91, 147, 255, 0.35);
    --brand-pixel: #4F8CFF;
    --danger: #FF7A70;

    --inverse-bg: #0F1115;
    --inverse-fg: #ECEAE4;
    --inverse-muted: rgba(236, 234, 228, 0.72);
    --inverse-faint: rgba(236, 234, 228, 0.5);
    --inverse-rule: #2A2D35;

    --shadow-color: transparent;
    --media-empty: #23262E;
    --code-bg: #262A33;
    --pre-bg: #0F1115;
    --pre-fg: #ECEAE4;
    --tag-bg: #5B93FF;
    --tag-fg: #0B0D12;
    --strong-bg: #5B93FF;
    --strong-fg: #0B0D12;
    --strong-hover: #7AA8FF;
    --newsletter-bg: #1C1F26;
    --newsletter-fg: #ECEAE4;
    --newsletter-border: #2A2D35;
    --newsletter-shadow: none;

    color-scheme: dark;
}

:root {
    --font-head: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --container: 1200px;
    --narrow: 720px;
    --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: calc(var(--narrow) + 2 * var(--gutter));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    background: var(--accent);
    color: var(--on-accent);
    border: 2px solid var(--line);
    padding: 8px 12px;
    font-weight: 600;
}

.skip-link:focus {
    left: 16px;
}

.muted {
    color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--shadow-color);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}

.btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--shadow-color);
}

.btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--shadow-color);
}

[data-theme="dark"] .btn {
    border-width: 1px;
}

[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn:active {
    transform: none;
    border-color: var(--muted);
}

.btn--accent {
    background: var(--accent);
    color: var(--on-accent);
}

[data-theme="dark"] .btn--accent {
    border-color: var(--accent);
}

[data-theme="dark"] .btn--accent:hover {
    background: var(--strong-hover);
    border-color: var(--strong-hover);
}

.btn--dark {
    background: var(--strong-bg);
    color: var(--strong-fg);
    border-color: var(--strong-bg);
    box-shadow: none;
}

.btn--dark:hover,
.btn--dark:active {
    transform: none;
    box-shadow: none;
    background: var(--strong-hover);
    border-color: var(--strong-hover);
}

.btn--sm {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    box-shadow: 3px 3px 0 var(--shadow-color);
}

.btn--small {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
    box-shadow: 2px 2px 0 var(--shadow-color);
}

.btn--danger {
    background: var(--surface);
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: 2px 2px 0 var(--shadow-color);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1.5px solid var(--line);
    background: var(--strong-bg);
    color: var(--strong-fg);
    cursor: pointer;
    text-decoration: none;
}

.icon-btn--ghost {
    background: transparent;
    color: var(--ink);
}

.icon-btn--ghost:hover {
    background: var(--accent-soft);
}

/* Show the icon for the theme you'd switch to. */
.theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 2px solid var(--line);
}

[data-theme="dark"] .site-header {
    border-bottom-width: 1px;
    border-bottom-color: var(--rule);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo__mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    border: 2px solid var(--line);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--on-accent);
}

[data-theme="dark"] .logo__mark {
    border-color: var(--accent);
}

.logo__text {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo__text strong {
    font-weight: 700;
}

.primary-nav ul {
    display: flex;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    display: block;
    padding: 8px 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 -3px 0 transparent;
}

.primary-nav a:hover {
    background: var(--accent-soft);
}

.primary-nav a.is-active {
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--accent);
}

.primary-nav__hot {
    margin-right: 8px;
    padding-right: 10px;
    border-right: 1px solid var(--rule);
}

.primary-nav .nav-hot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.nav-hot__tag {
    padding: 2px 6px;
    background: var(--tag-bg);
    color: var(--tag-fg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.header-search {
    display: flex;
}

.header-search input {
    width: 150px;
    height: 38px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-right: 0;
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
}

.search-link {
    display: none;
}

/* ---------- Shared editorial pieces ---------- */

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.eyebrow.eyebrow--hot {
    display: inline-block;
    padding: 3px 8px;
    background: var(--tag-bg);
    color: var(--tag-fg);
}

.kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
}

.kicker:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.kicker--chip {
    background: var(--accent);
    color: var(--on-accent);
    padding: 3px 8px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.section {
    padding: 48px 0;
}

.section--tight {
    padding-top: 8px;
}

.section-head {
    border-top: 3px solid var(--ink);
    padding-top: 10px;
    margin-bottom: 20px;
}

[data-theme="dark"] .section-head {
    border-top: 2px solid var(--accent);
}

.section-label {
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header {
    padding: 48px 0 24px;
    max-width: 760px;
}

.page-header h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.page-header__dek {
    margin-top: 14px;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.page-header--center {
    margin: 0 auto;
    padding: 96px 0;
    text-align: center;
}

.page-header--center .btn {
    margin-top: 28px;
}

/* Headline links: a highlight grows behind the text on hover. */
.lead-story__title a,
.card__title a,
.trending__title {
    text-decoration: none;
    background-image: linear-gradient(var(--highlight), var(--highlight));
    background-size: 0 35%;
    background-position: 0 88%;
    background-repeat: no-repeat;
    transition: background-size 0.2s ease;
}

.lead-story__title a:hover,
.card__title a:hover,
.trending__title:hover {
    background-size: 100% 35%;
}

/* ---------- Homepage lead ---------- */

.lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    padding: 36px 0 48px;
    border-bottom: 1px solid var(--rule);
}

.lead-story__media,
.card__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-empty);
}

.lead-story__media {
    margin-bottom: 20px;
}

.lead-story__media img,
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lead-story__media:hover img,
.card:hover .card__media img {
    transform: scale(1.02);
}

.lead-story__title {
    margin: 14px 0 12px;
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.lead-story__dek {
    max-width: 62ch;
    margin-bottom: 14px;
    font-size: 1.125rem;
    color: var(--ink-soft);
}

.trending__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trending__list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.trending__list li:first-child {
    padding-top: 4px;
}

.trending__rank {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

[data-theme="dark"] .trending__rank {
    color: var(--accent);
}

.trending__title {
    display: inline;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.trending .kicker {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--muted);
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
}

.card {
    display: flex;
    flex-direction: column;
}

.card__body {
    padding-top: 14px;
}

.card__title {
    margin: 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.card__excerpt {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Performance hub ---------- */

.hub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin: 16px 0 0;
    padding: 48px;
    background: var(--inverse-bg);
    color: var(--inverse-fg);
}

[data-theme="dark"] .hub {
    border: 1px solid var(--rule);
}

.hub .eyebrow {
    color: var(--accent);
}

.hub h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hub__intro p:not(.eyebrow) {
    margin: 14px 0 24px;
    max-width: 46ch;
    color: var(--inverse-muted);
}

.hub__intro .btn {
    border-color: var(--accent);
    box-shadow: 4px 4px 0 var(--inverse-fg);
}

[data-theme="dark"] .hub__intro .btn {
    box-shadow: none;
}

.hub__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub__list li {
    border-top: 1px solid var(--inverse-rule);
}

.hub__list li:last-child {
    border-bottom: 1px solid var(--inverse-rule);
}

.hub__list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    text-decoration: none;
}

.hub__title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.hub__list a:hover .hub__title {
    color: var(--accent);
}

.hub__meta {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--inverse-faint);
}

/* ---------- Newsletter ---------- */

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin: 56px 0 72px;
    padding: 44px;
    background: var(--newsletter-bg);
    color: var(--newsletter-fg);
    border: 2px solid var(--newsletter-border);
    box-shadow: var(--newsletter-shadow);
}

[data-theme="dark"] .newsletter {
    border-width: 1px;
    border-top: 3px solid var(--accent);
}

.newsletter .eyebrow {
    color: inherit;
}

[data-theme="dark"] .newsletter .eyebrow {
    color: var(--accent);
}

.newsletter h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.newsletter__copy p:not(.eyebrow) {
    margin-top: 10px;
    opacity: 0.85;
}

.newsletter__form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.newsletter__row {
    display: flex;
    gap: 8px;
}

.newsletter__row input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 2px solid var(--line);
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
}

[data-theme="dark"] .newsletter__row input {
    border-width: 1px;
    background: var(--bg);
}

.newsletter__row .btn {
    height: 48px;
}

.newsletter__status {
    margin-top: 12px;
    font-weight: 600;
}

/* ---------- Listing pages ---------- */

.page-search {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    max-width: 560px;
}

.page-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
}

.chip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 28px;
    border-bottom: 1px solid var(--rule);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.chip:hover {
    background: var(--accent-soft);
}

.chip.is-active {
    background: var(--strong-bg);
    border-color: var(--strong-bg);
    color: var(--strong-fg);
}

.chip__count {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.75;
}

.result-count {
    margin: 20px 0 24px;
    font-size: 14px;
    color: var(--muted);
}

.empty-state {
    padding: 40px 0;
    max-width: 52ch;
}

.empty-state h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--ink-soft);
}

/* ---------- Article ---------- */

.article__header {
    padding-top: 40px;
    padding-bottom: 28px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.article__title {
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.article__dek {
    margin-top: 16px;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.article__meta {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
}

.article__meta span:first-child {
    font-weight: 600;
    color: var(--ink);
}

.article__media {
    max-width: calc(1040px + 2 * var(--gutter));
    margin: 0 auto 36px;
}

.article__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.prose {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.prose > * + * {
    margin-top: 1.25em;
}

.prose h1,
.prose h2 {
    margin-top: 2.2em;
    font-size: 1.65rem;
    color: var(--ink);
}

.prose > h1:first-child,
.prose > h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1.8em;
    font-size: 1.3rem;
    color: var(--ink);
}

.prose strong {
    color: var(--ink);
}

.prose a {
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    font-weight: 500;
    color: var(--ink);
}

.prose a:hover {
    background: var(--accent-soft);
}

.prose ul,
.prose ol {
    padding-left: 1.4em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose img {
    border: 1px solid var(--rule);
}

.prose blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--rule);
    font-size: 1.2rem;
    color: var(--ink);
}

.prose code {
    padding: 2px 6px;
    background: var(--code-bg);
    font-size: 0.9em;
}

.prose pre {
    padding: 18px 20px;
    overflow-x: auto;
    background: var(--pre-bg);
    color: var(--pre-fg);
    font-size: 0.9rem;
}

.prose pre code {
    padding: 0;
    background: none;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--rule);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
}

.prose th {
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--inverse-bg);
    color: var(--inverse-fg);
}

[data-theme="dark"] .site-footer {
    border-top: 1px solid var(--rule);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.logo--inverse .logo__text {
    color: var(--inverse-fg);
}

.site-footer__brand p {
    max-width: 46ch;
    margin-top: 16px;
    font-size: 15px;
    color: var(--inverse-muted);
}

.site-footer__brand .disclaimer {
    margin-top: 12px;
    font-size: 13px;
    color: var(--inverse-faint);
}

.site-footer__col h2 {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__col li + li {
    margin-top: 10px;
}

.site-footer__col a {
    font-size: 15px;
    text-decoration: none;
    color: var(--inverse-muted);
}

.site-footer__col a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-footer__bottom {
    padding-bottom: 28px;
    font-size: 13px;
    color: var(--inverse-faint);
}

.site-footer__bottom p {
    padding-top: 20px;
    border-top: 1px solid var(--inverse-rule);
}

/* ---------- Admin ---------- */

.admin {
    padding-bottom: 64px;
}

.admin h1 {
    font-size: 2rem;
}

.admin__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    margin-bottom: 1.5rem;
}

.admin__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.admin-tabs {
    padding-bottom: 20px;
    border-bottom: 0;
}

.flash {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--on-accent);
    border: 2px solid var(--line);
    font-weight: 600;
}

.flash.flash--preview {
    margin-top: 24px;
}

.eyebrow.eyebrow--spaced {
    margin-top: 14px;
}

.inline-form {
    display: inline;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 2px solid var(--line);
}

[data-theme="dark"] .admin-table {
    border-width: 1px;
}

.admin-table th,
.admin-table td {
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table th {
    border-bottom: 2px solid var(--line);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table__title a {
    font-weight: 600;
    text-decoration: none;
}

.admin-table__title a:hover {
    text-decoration: underline;
}

.admin-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--line);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-pill--published {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.status-pill--pending_review {
    background: var(--strong-bg);
    color: var(--strong-fg);
    border-color: var(--strong-bg);
}

.status-pill--scheduled {
    background: var(--accent-soft);
}

.status-pill--draft {
    background: var(--rule);
}

.status-pill--rejected {
    color: var(--danger);
    border-color: var(--danger);
}

.ai-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0.05rem 0.4rem;
    border: 1px dashed var(--muted);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

.review-panel {
    margin-bottom: 1.5rem;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--rule);
    max-width: 760px;
}

.review-panel h2 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.review-panel ul {
    margin: 0 0 12px;
    padding-left: 1.2em;
    font-size: 0.9rem;
}

.review-panel a {
    word-break: break-all;
}

.review-panel__notes {
    font-size: 0.95rem;
    white-space: pre-wrap;
    color: var(--ink-soft);
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 760px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    padding: 0.6rem 0.7rem;
    border: 2px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
    border-width: 1px;
}

.field textarea {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.field--inline {
    flex: 0 0 auto;
}

.field__hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
}

.admin-cover-preview {
    max-width: 260px;
    border: 1px solid var(--rule);
}

.reject-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    max-width: 760px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.reject-form .field {
    flex: 1 1 320px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    .site-header__inner {
        flex-wrap: wrap;
        gap: 12px 20px;
        padding-top: 12px;
    }

    .primary-nav {
        order: 3;
        margin: 0 calc(-1 * var(--gutter));
        padding: 0 var(--gutter);
        width: calc(100% + 2 * var(--gutter));
        overflow-x: auto;
        border-top: 1px solid var(--rule);
        scrollbar-width: none;
    }

    .primary-nav ul {
        padding: 4px 0;
    }

    .lead {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 860px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hub,
    .newsletter {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 28px;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .header-search {
        display: none;
    }

    .search-link {
        display: inline-flex;
    }

    .logo__text {
        font-size: 18px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    [data-theme="light"] .newsletter {
        box-shadow: 5px 5px 0 var(--shadow-color);
    }

    .newsletter__row,
    .page-search {
        flex-direction: column;
    }

    .newsletter__row input,
    .page-search input {
        flex: none;
    }

    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    /* Keep logo, search and theme on one row; signup lives at the end of every page. */
    .site-header__actions .btn--accent {
        display: none;
    }
}

@media (max-width: 340px) {
    .logo__text {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* ======================================================================
   Studio (admin) screens
   ====================================================================== */

.admin h1 .status-pill {
    vertical-align: middle;
    margin-left: 8px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.stat:hover {
    border-color: var(--line);
}

.stat__value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat__label {
    font-size: 13px;
    color: var(--muted);
}

.stat--alert {
    border-color: var(--accent);
    box-shadow: inset 0 3px 0 var(--accent);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-bottom: 28px;
}

.panel {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--rule);
    min-width: 0;
}

.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.panel__head h2 {
    font-size: 1.05rem;
}

.panel__head a {
    font-size: 13px;
    color: var(--muted);
}

.panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
}

.panel__title {
    font-weight: 600;
    text-decoration: none;
}

.panel__title:hover {
    text-decoration: underline;
}

.panel__meta,
.panel__when {
    font-size: 13px;
    color: var(--muted);
}

.panel__when {
    flex-basis: 100%;
}

.panel__empty {
    font-size: 14px;
    color: var(--muted);
}

/* Schedule */

.schedule-day {
    margin-bottom: 28px;
}

.schedule-day__title {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--line);
    font-size: 1.1rem;
}

[data-theme="dark"] .schedule-day__title {
    border-bottom: 1px solid var(--rule);
}

.schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.schedule-list li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}

.schedule-list__time {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
}

.schedule-list__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* Connector */

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
}

.copy-row__value {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    background: var(--code-bg);
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
}

.token-reveal {
    margin-bottom: 24px;
    border-color: var(--accent);
    box-shadow: inset 0 3px 0 var(--accent);
}

.token-reveal h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.token-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.token-form .field {
    flex: 1 1 220px;
}

.tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-list li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
}

.tool-list code {
    font-weight: 600;
}

/* Login */

.login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px var(--gutter);
}

.login__card {
    width: 100%;
    max-width: 400px;
    padding: 32px 28px;
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: 8px 8px 0 var(--shadow-color);
}

[data-theme="dark"] .login__card {
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent);
}

.login__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.login__card h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.login__notice {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--accent-soft);
    font-size: 14px;
    font-weight: 600;
}

.login__notice--error {
    color: var(--danger);
    background: transparent;
    border: 1px solid var(--danger);
}

.login__submit {
    width: 100%;
    margin-top: 4px;
}

/* ======================================================================
   Article extras
   ====================================================================== */

.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: 3px;
    pointer-events: none;
}

.read-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 40px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.share__label {
    margin-right: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.share__btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

[data-theme="dark"] .share__btn {
    border-width: 1px;
}

.share__btn:hover {
    background: var(--accent-soft);
}

/* ======================================================================
   Responsive additions: tablets and phones
   ====================================================================== */

@media (max-width: 1200px) {
    /* Hint that the section strip scrolls sideways. */
    .primary-nav {
        -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
        mask-image: linear-gradient(to right, #000 88%, transparent);
    }

    .primary-nav a {
        padding: 12px;
    }
}

@media (max-width: 1000px) {
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 120px;
    }

    .site-header__inner {
        min-height: 60px;
        gap: 8px 12px;
        padding-top: 8px;
    }

    .logo__mark {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .site-header__actions {
        gap: 8px;
    }

    .admin-header__site {
        display: none;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    /* News-app list: thumbnail left, headline right. */
    .card-grid {
        gap: 0;
    }

    .card {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0;
        border-bottom: 1px solid var(--rule);
    }

    .card:first-child {
        padding-top: 0;
    }

    .card__media {
        align-self: start;
    }

    .card__body {
        padding-top: 0;
    }

    .card__title {
        margin: 4px 0 6px;
        font-size: 1.05rem;
    }

    .card__excerpt {
        display: none;
    }

    .lead {
        padding-top: 20px;
        gap: 28px;
    }

    .lead-story__title {
        font-size: 1.75rem;
    }

    .hub,
    .newsletter {
        margin-left: calc(-1 * var(--gutter));
        margin-right: calc(-1 * var(--gutter));
        padding: 28px var(--gutter);
    }

    [data-theme="light"] .newsletter {
        box-shadow: none;
        border-left: 0;
        border-right: 0;
    }

    .page-header {
        padding-top: 28px;
    }

    .article__header {
        padding-top: 24px;
    }

    .article__dek {
        font-size: 1.1rem;
    }

    .article__media {
        padding: 0;
    }

    .prose {
        font-size: 1.0625rem;
    }

    .prose table {
        display: block;
        overflow-x: auto;
    }

    .btn,
    .share__btn {
        min-height: 44px;
    }

    /* Admin */
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin__bar {
        padding-top: 1.25rem;
    }

    .admin__actions .btn {
        flex: 1 1 100%;
    }

    .admin-table--cards,
    .admin-table--cards tbody,
    .admin-table--cards tr,
    .admin-table--cards td {
        display: block;
        width: 100%;
    }

    .admin-table--cards {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .admin-table--cards thead {
        display: none;
    }

    .admin-table--cards tr {
        margin-bottom: 12px;
        padding: 12px 14px;
        background: var(--surface);
        border: 1px solid var(--rule);
    }

    .admin-table--cards td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border: 0;
    }

    .admin-table--cards td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .admin-table--cards td.admin-table__title {
        display: block;
        font-size: 1rem;
    }

    .admin-table--cards td.admin-table__title::before {
        display: none;
    }

    .admin-table--cards .admin-table__actions {
        justify-content: flex-start;
        padding-top: 10px;
    }

    .schedule-list li {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .schedule-list li .btn {
        grid-column: 2;
        justify-self: start;
    }

    .tool-list li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* ======================================================================
   Color and visuals: category colors, home sections, article blocks
   (tables, callouts, pull quotes, charts, captioned photos).
   ====================================================================== */

:root,
[data-theme="light"] {
    --cat-news: #C8312B;
    --cat-hardware: #1F5FD1;
    --cat-performance: #A35E00;
    --cat-guides: #17804A;
    --cat-gaming: #7444DA;
    --on-cat: #FFFFFF;
    --chart-bar: #3D3A34;
    --chart-hi: #F2B705;
    --chart-track: #EFE8DA;
}

[data-theme="dark"] {
    --cat-news: #FF7B72;
    --cat-hardware: #79A8FF;
    --cat-performance: #FFB547;
    --cat-guides: #5FD08F;
    --cat-gaming: #B99BFF;
    --on-cat: #15171C;
    --chart-bar: #8C929D;
    --chart-hi: #5B93FF;
    --chart-track: #262A33;
}

.cat--news { --cat: var(--cat-news); }
.cat--hardware { --cat: var(--cat-hardware); }
.cat--performance { --cat: var(--cat-performance); }
.cat--guides { --cat: var(--cat-guides); }
.cat--gaming { --cat: var(--cat-gaming); }

/* Kickers carry the section color with a small square. */
.kicker,
.trending .kicker {
    color: var(--cat, var(--ink));
}

.kicker::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    background: var(--cat, var(--accent));
    vertical-align: 1px;
}

.kicker--chip {
    background: var(--cat, var(--accent));
    color: var(--on-cat);
}

.kicker--chip::before {
    display: none;
}

.article .breadcrumbs a:last-child {
    color: var(--cat, var(--muted));
}

/* Cards: a section-colored bar grows under the image on hover. */
.card__media,
.lead-story__media {
    position: relative;
}

.card__media::before,
.lead-story__media::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 0;
    height: 4px;
    background: var(--cat, var(--accent));
    transition: width 0.3s ease;
}

.card:hover .card__media::before,
.lead-story:hover .lead-story__media::before {
    width: 100%;
}

/* No cover yet: a section-colored panel instead of a blank box. */
.card__media--empty {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, var(--cat, var(--accent)), color-mix(in srgb, var(--cat, var(--accent)) 50%, #000));
}

.card__media-label {
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-family: var(--font-head);
    font-size: clamp(14px, 2vw, 22px);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

/* Trending: small thumbnails make the rail scannable. */
.trending__list li.has-thumb {
    grid-template-columns: 36px minmax(0, 1fr) 96px;
}

.trending__thumb {
    display: block;
    align-self: start;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-empty);
}

.trending__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Spotlight on the hot topic. */
.spotlight {
    padding: 36px 0 8px;
}

.spotlight__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
}

[data-theme="dark"] .spotlight__head {
    border-bottom-color: var(--accent);
}

.spotlight__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.spotlight__more {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.spotlight__more:hover {
    text-decoration: underline;
}

.card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
}

.card-grid--4 .card__title {
    font-size: 1.1rem;
}

.card-grid--4 .card__excerpt {
    display: none;
}

/* Browse by section: colored tiles. */
.section-tiles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--cat);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.section-tile:hover {
    background: color-mix(in srgb, var(--cat) 9%, var(--surface));
    transform: translateY(-2px);
}

.section-tile__name {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cat);
}

.section-tile__desc {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink-soft);
}

/* ---------- Article blocks ---------- */

.prose blockquote {
    padding: 4px 0 4px 22px;
    background: none;
    border: 0;
    border-left: 4px solid var(--accent);
    font-size: 1.15rem;
    font-style: italic;
}

/* Tables: spec sheets and comparisons. */
.prose table {
    background: var(--surface);
    border: 1px solid var(--rule);
    font-variant-numeric: tabular-nums;
}

.prose thead th {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg);
}

.prose tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--bg) 55%, var(--surface));
}

.prose td:first-child {
    font-weight: 600;
    color: var(--ink);
}

/* Callouts. */
.prose .callout {
    --callout: var(--ink);
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 5px solid var(--callout);
    font-size: 1rem;
    line-height: 1.65;
}

.callout > * + * {
    margin-top: 0.75em;
}

.prose .callout ul,
.prose .callout ol {
    margin: 0;
}

.callout__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--callout);
}

.prose .callout--takeaways {
    --callout: var(--ink);
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
    border-left-color: var(--accent);
}

.callout--takeaways .callout__label::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--accent);
}

.prose .callout--tip { --callout: var(--cat-guides); }
.prose .callout--note { --callout: var(--cat-hardware); }
.prose .callout--warning { --callout: var(--cat-news); }

.prose .callout--verdict {
    --callout: var(--accent);
    background: var(--inverse-bg);
    color: var(--inverse-fg);
    border: 0;
    border-left: 5px solid var(--accent);
}

.callout--verdict strong,
.callout--verdict a {
    color: var(--inverse-fg);
}

.callout--verdict .callout__label {
    font-size: 15px;
}

/* Pull quotes. */
.prose .pullquote {
    margin: 2.2em 0;
    padding: 4px 0 4px 26px;
    border-left: 5px solid var(--accent);
}

.prose .pullquote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.prose .pullquote blockquote::before {
    content: "\201C";
    display: block;
    height: 0.55em;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--accent);
}

.pullquote figcaption {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.pullquote figcaption::before {
    content: "\2014\00a0";
}

/* Captioned photos. */
.prose .article-figure {
    margin: 2em 0;
}

.prose .article-figure img {
    width: 100%;
    height: auto;
    border: 0;
    background: var(--media-empty);
}

.article-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
    line-height: 1.5;
}

.article-figure__caption {
    color: var(--ink-soft);
}

.article-figure__credit {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Bar charts. */
.prose .chart {
    margin: 2em 0;
    padding: 22px 24px 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
}

.chart__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 18px;
}

.chart__title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.chart__hint {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.prose .chart__rows {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.prose .chart__row {
    display: grid;
    grid-template-columns: minmax(96px, 28%) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.chart__label {
    font-weight: 600;
    color: var(--ink);
}

.chart__track {
    display: block;
    background: var(--chart-track);
}

.chart__svg {
    display: block;
    width: 100%;
    height: 16px;
}

.chart__bar {
    fill: var(--chart-bar);
}

.is-highlight .chart__bar {
    fill: var(--chart-hi);
}

.chart__value {
    min-width: 4.5em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    color: var(--ink);
}

.chart__source {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}

/* Studio: photo insert and block cheat sheet. */
.image-insert {
    margin: 0;
    padding: 14px 16px;
    border: 1px dashed var(--rule);
}

.image-insert legend {
    padding: 0 6px;
    font-weight: 600;
}

.image-insert__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.image-insert__row input[type="text"] {
    flex: 1 1 180px;
    padding: 8px 10px;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.image-insert__status {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.blocks-help summary {
    cursor: pointer;
    font-weight: 600;
}

.blocks-help pre {
    margin-top: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    background: var(--pre-bg);
    color: var(--pre-fg);
    font-size: 13px;
    line-height: 1.5;
}

@media (min-width: 960px) {
    /* Photos break out of the reading column a little. */
    .prose .article-figure {
        margin-left: -64px;
        margin-right: -64px;
    }
}

@media (max-width: 1000px) {
    .section-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .section-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .section-tile {
        padding: 14px;
    }

    .section-tile__desc {
        display: none;
    }

    .card-grid--4 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trending__list li.has-thumb {
        grid-template-columns: 28px minmax(0, 1fr) 84px;
    }

    .prose .callout,
    .prose .chart {
        padding: 16px;
    }

    .prose .chart__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 12px;
    }

    .chart__track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .card__media-label {
        left: 8px;
        bottom: 6px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-tile:hover {
        transform: none;
    }
}

/* The opening hook reads as a lead paragraph. */
.article__body.prose > p:first-child {
    font-size: 1.3rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--ink);
}

@media (max-width: 640px) {
    .article__body.prose > p:first-child {
        font-size: 1.15rem;
    }
}

/* ---------- Studio: Source Radar ---------- */

.radar-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 8px 0 16px;
}

.radar-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.radar-filters select,
.radar-filters input,
.radar-add input,
.radar-add select,
.media-form input[type="text"],
.media-form input[type="url"],
.media-form select {
    padding: 8px 10px;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.radar-filters__q {
    flex: 1 1 220px;
}

.radar-count {
    font-size: 13px;
    margin-bottom: 8px;
}

.radar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.radar-item {
    --kind: var(--muted);
    padding: 16px 0 16px 16px;
    border-bottom: 1px solid var(--rule);
    border-left: 4px solid var(--kind);
}

.radar-item--official { --kind: var(--cat-guides); }
.radar-item--leaks { --kind: var(--cat-news); }
.radar-item--video { --kind: var(--cat-gaming); }
.radar-item--press { --kind: var(--cat-hardware); }

.radar-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    color: var(--muted);
}

.radar-kind {
    padding: 2px 7px;
    background: var(--kind);
    color: var(--on-cat);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.radar-item__title {
    display: block;
    margin: 6px 0 4px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
}

.radar-item__title:hover {
    text-decoration: underline;
}

.radar-item__summary {
    max-width: 80ch;
    font-size: 14px;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.radar-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.radar-add {
    margin: 8px 0 24px;
    padding: 16px;
    border: 1px dashed var(--rule);
}

.radar-add h2 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.radar-add__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.radar-add__url {
    flex: 1 1 280px;
}

.radar-feed-url {
    display: block;
    font-size: 12px;
    word-break: break-all;
}

.radar-status {
    display: block;
    font-size: 12px;
    color: var(--cat-guides);
}

.radar-status--bad {
    color: var(--danger);
}

tr.is-disabled {
    opacity: 0.55;
}

.status-pill--queued {
    background: var(--accent);
    color: var(--on-accent);
}

.status-pill--ignored {
    background: var(--rule);
    color: var(--muted);
}

.status-pill--drafted {
    background: var(--cat-guides);
    color: var(--on-cat);
}

/* ---------- Studio: Press images ---------- */

.media-form {
    margin: 8px 0 28px;
    padding: 18px;
    border: 1px dashed var(--rule);
}

.media-form h2 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.media-form__grid {
    display: grid;
    gap: 14px;
    margin: 12px 0;
}

.media-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.media-form__preview {
    max-height: 220px;
    width: auto;
    border: 1px solid var(--rule);
}

.media-form__confirm {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 4px 0 14px;
    font-size: 14px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.media-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--rule);
}

.media-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-empty);
}

.media-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card__thumb--logo {
    display: grid;
    place-items: center;
    padding: 18px;
    background: repeating-conic-gradient(var(--rule) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px;
}

.media-card__thumb--logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-card__body {
    padding: 12px 14px 6px;
    font-size: 14px;
}

.media-card__kind {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.media-card__title {
    margin: 2px 0 4px;
    font-weight: 600;
    color: var(--ink);
}

.media-card__credit,
.media-card__size,
.media-card__source {
    font-size: 13px;
}

.media-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px 14px;
    margin-top: auto;
}

@media (max-width: 640px) {
    .media-form__fields {
        grid-template-columns: 1fr;
    }

    .radar-item {
        padding-left: 12px;
    }
}

.media-form__confirm.field {
    flex-direction: row;
}

.media-form__confirm input {
    width: auto;
    margin-top: 3px;
}

/* Images carry width/height attributes (no layout jump); keep their CSS-driven shape. */
.article__media img,
.prose .article-figure img {
    height: auto;
}

/* Cover credit (required for Creative Commons photos). */
.article__media-credit {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-align: right;
}

.article__media-credit a {
    color: inherit;
    text-decoration: none;
}

.article__media-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .article__media-credit {
        padding: 0 var(--gutter);
        text-align: left;
    }
}

/* Header search: one field, icon inside, accent ring on focus (replaces the boxed input + filled button). */
.site-header .header-search {
    display: flex;
    align-items: center;
    width: 230px;
    height: 38px;
    padding-left: 12px;
    border: 1px solid var(--rule);
    background: var(--surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .site-header .header-search {
    border-color: #343843;
    background: #1C1F26;
}

.site-header .header-search:hover {
    border-color: var(--muted);
}

.site-header .header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.site-header .header-search input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}

.site-header .header-search input::placeholder {
    color: var(--muted);
}

.site-header .header-search input:focus-visible {
    outline: none;
}

.site-header .header-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.site-header .header-search .icon-btn {
    flex: none;
    width: 38px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--muted);
    transition: color 0.15s ease;
}

.site-header .header-search .icon-btn:hover,
.site-header .header-search:focus-within .icon-btn {
    color: var(--ink);
}

.site-header .header-search .icon-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
}

@media (max-width: 1200px) {
    .site-header .header-search {
        width: 190px;
    }
}

@media (max-width: 640px) {
    .site-header .header-search {
        display: none;
    }
}

/* ---------- Trust pages, author, consent ---------- */

.info-page .page-header {
    padding-bottom: 8px;
}

.info-page .prose {
    padding-bottom: 56px;
}

.info-page .prose ul {
    padding-left: 1.2em;
}

.contact-email {
    font-size: 1.25rem;
    font-weight: 600;
}

.byline a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.byline a:hover {
    text-decoration: underline;
}

.author-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 88px;
    height: 88px;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 700;
}

.author-avatar--sm {
    width: 56px;
    height: 56px;
    font-size: 26px;
}

.author-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.author-links,
.author-box__links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.author-box {
    display: flex;
    gap: 18px;
    margin: 40px 0 8px;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.author-box__name {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
}

.author-box__name a {
    color: var(--ink);
    text-decoration: none;
}

.author-box__role {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.author-box__bio {
    margin-top: 6px;
    font-size: 15px;
    color: var(--ink-soft);
}

.site-footer__inner {
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
}

.footer-link-btn {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    opacity: 0.85;
}

.footer-link-btn:hover {
    text-decoration: underline;
}

.consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 18px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--rule);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    font-size: 14px;
}

.consent[hidden] {
    display: none;
}

.consent p {
    flex: 1 1 320px;
}

.consent__actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 860px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .author-header {
        flex-direction: column;
        gap: 14px;
    }

    .author-avatar {
        width: 64px;
        height: 64px;
        font-size: 30px;
    }
}

.info-page .prose > h2:first-child {
    margin-top: 1.4em;
}

/* ---------- Article layout with sidebar (Phase 3) ---------- */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    max-width: calc(1100px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.article-layout__main {
    min-width: 0;
    max-width: var(--narrow);
}

/* Photos stay inside the column when there's a sidebar next to them. */
.article-layout .prose .article-figure {
    margin-left: 0;
    margin-right: 0;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-self: start;
    position: sticky;
    top: 88px;
}

.side-tabs__list {
    display: flex;
    border-bottom: 2px solid var(--ink);
}

[data-theme="dark"] .side-tabs__list {
    border-bottom-color: var(--accent);
}

.side-tabs__list [role="tab"] {
    flex: 1;
    padding: 10px 4px;
    border: 0;
    background: none;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.side-tabs__list [role="tab"][aria-selected="true"] {
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.side-tabs__list [role="tab"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-list[hidden] {
    display: none;
}

.side-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.side-list__rank {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--cat, var(--ink));
}

.side-list__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.side-list__kicker {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cat, var(--muted));
}

.side-list__title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.side-list__link:hover .side-list__title {
    text-decoration: underline;
}

.side-list__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-empty);
}

.side-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-box {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--rule);
    font-size: 14px;
}

.side-box p + p,
.side-box p + .btn {
    margin-top: 10px;
}

.side-box__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
}

.side-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-links li {
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
}

.side-links a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.35;
}

.side-links a:hover {
    text-decoration: underline;
}

.side-box__more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
}

.side-box--newsletter {
    border-left: 4px solid var(--accent);
}

@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: calc(var(--narrow) + 2 * var(--gutter));
        gap: 40px;
    }

    .article-sidebar {
        position: static;
    }
}

@media (min-width: 1101px) {
    /* With a sidebar the article column is left-aligned in the layout. */
    .article__header.container--narrow {
        max-width: calc(1100px + 2 * var(--gutter));
    }

    .article__header.container--narrow > * {
        max-width: var(--narrow);
    }
}

/* Studio stats */
.stats-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    font-size: 1rem;
}

.stats-panels > * + * {
    margin-top: 0;
}

.stats-panels .chart {
    margin: 0;
}

.stats-chart {
    grid-column: 1 / -1;
}

.stats-days.chart__rows {
    gap: 4px;
}

.stats-days .chart__row {
    grid-template-columns: 52px minmax(0, 1fr) 3.5em;
    font-size: 12px;
}

.stats-days .chart__svg {
    height: 10px;
}

.stats-table h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

@media (max-width: 860px) {
    .stats-panels {
        grid-template-columns: 1fr;
    }
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 40px 0 8px;
    font-size: 14px;
    font-weight: 600;
}

.pagination__pages {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination__page,
.pagination__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--rule);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

a.pagination__page:hover,
a.pagination__step:hover {
    border-color: var(--ink);
}

.pagination__page.is-current {
    background: var(--strong-bg);
    border-color: var(--strong-bg);
    color: var(--strong-fg);
}

.pagination__step.is-disabled {
    opacity: 0.4;
}

.pagination__gap {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 4px;
    color: var(--muted);
}

.more-link {
    margin-top: 32px;
    text-align: center;
}

@media (max-width: 640px) {
    .pagination__pages {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Logo: chip mark (image) ---------- */
.logo__mark--chip,
[data-theme="dark"] .logo__mark--chip {
    display: block;
    background: none;
    border: 0;
    border-radius: 8px;
    object-fit: contain;
}

/* ---------- Fixed ad spots (AdSense) ---------- */
/* Invisible until Google fills them, so nothing looks broken before approval or with blockers. */
.ad-slot {
    margin: 32px 0;
    text-align: center;
}

.ad-slot__unit {
    display: block;
}

.ad-slot p.ad-slot__label {
    display: none;
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted, #777);
}

.ad-slot:has(ins[data-ad-status="filled"]) p.ad-slot__label {
    display: block;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.ad-slot:has(ins[data-ad-status="unfilled"]) {
    margin: 0;
}

/* ---------- RSS page ---------- */
.rss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Push notification prompt ---------- */
.push-prompt {
    max-width: 560px;
}

.push-toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 60;
    transform: translateX(-50%);
    margin: 0;
    padding: 10px 16px;
    max-width: calc(100% - 32px);
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.push-toast[hidden] {
    display: none;
}

.push-test {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 16px 0 8px;
}

/* ---------- Brand wordmark: "RigDaily" with a blue pixel as the dot of the i ---------- */
.wordmark {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 27px;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.wordmark__i {
    position: relative;
    display: inline-block;
}

.wordmark__i::after {
    content: "";
    position: absolute;
    left: calc(50% + 0.04em);
    top: 0.085em;
    width: 0.2em;
    height: 0.2em;
    background: var(--brand-pixel, #3B82F6);
    transform: translateX(-50%);
}

.wordmark__suffix {
    margin-left: 0.35em;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--muted);
}

.logo--inverse .wordmark {
    color: var(--inverse-fg);
}

@media (max-width: 640px) {
    .wordmark {
        font-size: 23px;
    }
}
