@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap");

/* Generated from design/tokens.json by tools/build_css.py. Do not edit. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f6;
  --surface-2: #ececee;
  --line: #e4e4e7;
  --line-control: #8a8a92;
  --ink: #0b0b0c;
  --ink-2: #45454b;
  --muted: #6b6b73;
  --accent: #0b0b0c;
  --on-accent: #ffffff;
  --live: #c8281d;
  --success: #18763a;
  --shadow-pop: 0 8px 24px rgba(11,11,12,0.12), 0 1px 2px rgba(11,11,12,0.08);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --page-max: 1200px;
  --measure: 680px;
  --col-side: 300px;
  --thumb-feed: 72px;
  --header-h: 56px;
  --font-sans: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --surface: #161618;
    --surface-2: #202023;
    --line: #26262a;
    --line-control: #6a6a72;
    --ink: #f2f2f3;
    --ink-2: #c5c5ca;
    --muted: #9b9ba3;
    --accent: #f2f2f0;
    --on-accent: #0b0b0c;
    --live: #ff7a6e;
    --success: #5cc77c;
    --shadow-pop: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #161618;
  --surface-2: #202023;
  --line: #26262a;
  --line-control: #6a6a72;
  --ink: #f2f2f3;
  --ink-2: #c5c5ca;
  --muted: #9b9ba3;
  --accent: #f2f2f0;
  --on-accent: #0b0b0c;
  --live: #ff7a6e;
  --success: #5cc77c;
  --shadow-pop: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  color-scheme: dark;
}

/* components.css */

/* Tedroid components. Colours, spacing and radii come from tokens.css; nothing here declares a value tokens.json owns. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 150ms;
}

.td-root, .td-root * { box-sizing: border-box; }
.td-root {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.td-root a { color: inherit; text-decoration: none; }
.td-root :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

.td-meta { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.td-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Header. Phones: [menu] [logo] ........ [search] [theme] [sponsor]. Desktop: [logo] [sections] ... [search] [theme] [sponsor]. */
.td-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.td-header__inner { max-width: var(--page-max); margin: 0 auto; height: var(--header-h); padding: 0 var(--space-2) 0 var(--space-1); display: flex; align-items: center; gap: var(--space-1); }
.td-header__brand { display: flex; align-items: center; flex: none; padding: 0 var(--space-2); }
/* Logo: mark + word. Monochrome at rest (ink face, light headlights, inverted in dark mode). Hover: the lights
   flash twice and stay on, aiming at the pointer; on dark grounds the face turns black ("ignition"). */
.td-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.td-logo__mark { display: block; flex: none; }
.td-logo__face { fill: var(--ink); stroke: transparent; stroke-width: 6; transition: fill .3s ease, stroke .3s ease; }
.td-logo__lights { fill: var(--logo-light); stroke: var(--logo-light); transition: fill .25s ease, stroke .25s ease; }
.td-logo__glow { fill: #fff; stroke: #fff; opacity: 0; transition: opacity .35s ease; }
.td-logo__aim { transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.td-logo__word { position: relative; top: .05em; font: 700 20px/1 var(--font-sans); letter-spacing: -.035em; } /* optical centring, as Tedroid */
.td-logo__tld { font-weight: 500; color: var(--muted); letter-spacing: -.02em; transition: color .3s ease; }
.td-logo.is-lit .td-logo__face { fill: #0b0b0c; stroke: var(--logo-ring); }
.td-logo.is-lit .td-logo__lights { fill: #fff; stroke: #fff; }
.td-logo.is-lit .td-logo__glow { opacity: .85; }
.td-logo.is-lit .td-logo__tld { color: var(--ink); }
.td-logo.is-flash .td-logo__glow { animation: cl-flash .7s ease-out; }
@keyframes cl-flash { 0% { opacity: 0; } 14% { opacity: 1; } 30% { opacity: .1; } 46% { opacity: 1; } 100% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .td-logo__face, .td-logo__lights, .td-logo__glow, .td-logo__aim { transition: none; } .td-logo.is-flash .td-logo__glow { animation: none; } }
.td-header__nav { display: none; gap: var(--space-5); flex: 1; min-width: 0; margin-left: var(--space-5); }
.td-header__nav a { position: relative; font-size: 15px; line-height: var(--header-h); font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.td-header__nav a[aria-current="page"] { color: var(--ink); }
.td-header__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.td-header__actions { display: flex; align-items: center; gap: 0; flex: none; margin-left: auto; }
.td-header__sponsor { margin-left: var(--space-1); flex: none; }
.td-icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-full); border: 0; background: transparent; color: var(--ink);
  cursor: pointer; transition: background-color var(--dur-fast) ease, transform 120ms var(--ease-out); touch-action: manipulation; }
.td-icon-btn:active { transform: scale(.94); }
.td-icon-btn svg { width: 20px; height: 20px; }
.td-theme-icon--sun { display: none; }
[data-theme="dark"] .td-theme-icon--sun { display: block; }
[data-theme="dark"] .td-theme-icon--moon { display: none; }
@media (min-width: 1024px) {
  .td-header__inner { padding: 0 var(--space-4); gap: var(--space-2); }
  .td-header__brand { padding: 0; }
  .td-header__nav { display: flex; }
  .td-header__menu-btn { display: none; }
}

/* Search sheet: opens under the header on every page, live results while typing. */
.td-search-sheet { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 11; background: var(--bg);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms; }
.td-search-sheet[data-open] { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.td-search-sheet__inner { max-width: var(--measure); margin: 0 auto; padding: var(--space-4); }
.td-search-sheet form { display: flex; gap: var(--space-2); }
.td-search-sheet input { flex: 1; min-width: 0; height: 48px; padding: 0 var(--space-4); font: 400 17px/24px var(--font-sans); color: var(--ink); background: var(--surface);
  border: 1px solid transparent; border-radius: var(--radius-full); }
.td-search-sheet input:focus { outline: 2px solid var(--accent); outline-offset: 0; background: var(--bg); }
.td-search-results { margin-top: var(--space-3); }
.td-search-results .td-feed-item:last-child { border-bottom: 0; }
.td-search-hint { padding: var(--space-3) 0; color: var(--muted); font-size: 14px; }
.td-search-all { display: block; margin-top: var(--space-2); padding: var(--space-3) 0; font-weight: 600; color: var(--accent); }
.td-backdrop { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.32); opacity: 0; visibility: hidden; transition: opacity 120ms ease, visibility 0s linear 120ms; }
.td-backdrop[data-open] { opacity: 1; visibility: visible; transition: opacity 200ms var(--ease-out); }

/* Mobile section menu: opens under the header. Enter 200ms ease-out, exit 120ms. */
.td-menu { position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); bottom: 0; z-index: 9; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain; padding: var(--space-3) var(--space-4) var(--space-7);
  opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms; }
.td-menu[data-open] { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.td-menu a:not(.td-social__btn) { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
.td-menu a.td-menu__sub { padding-left: var(--space-4); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.td-menu__pages { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.td-menu .td-menu__pages a { border: 0; padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
@media (min-width: 1024px) { .td-menu { display: none; } }

/* Feed */
.td-day { margin: var(--space-6) 0 var(--space-2); }
.td-day:first-child { margin-top: 0; }
.td-feed-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.td-feed-item__thumb { width: var(--thumb-feed); height: var(--thumb-feed); flex: none; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface); }
.td-feed-item__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.td-feed-item__title { font-size: 17px; line-height: 23px; font-weight: 500; color: var(--ink); text-wrap: pretty; overflow-wrap: anywhere; }
.td-feed-item--article .td-feed-item__title { font-weight: 600; }
@media (min-width: 1024px) { .td-feed-item__thumb { width: 88px; height: 88px; } }

/* Günün seçilmişləri */
.td-picks { background: var(--surface); border-radius: var(--radius-md); padding: var(--space-4); }
.td-picks__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); }
.td-picks ol { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.td-picks li { counter-increment: pick; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.td-picks li:first-child { border-top: 0; }
.td-picks li::before { content: counter(pick); font-size: 22px; line-height: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.td-picks__title { font-size: 17px; line-height: 23px; font-weight: 600; overflow-wrap: anywhere; }
/* Phones: same five picks, titles only, so the feed starts on the first screen. */
@media (max-width: 1023px) {
  .td-picks { padding: var(--space-3) var(--space-4); }
  .td-picks li { grid-template-columns: 20px minmax(0, 1fr); padding: var(--space-2) 0; }
  .td-picks li::before { font-size: 17px; line-height: 22px; }
  .td-picks__title { font-size: 16px; line-height: 22px; }
  .td-picks .td-meta, .td-picks br { display: none; }
}

/* Məqalələr card */
.td-card { display: flex; flex-direction: column; gap: var(--space-2); }
.td-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); background: var(--surface); }
.td-card__title { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.td-card--compact .td-card__title { font-size: 18px; line-height: 24px; }

/* Article */
.td-article { max-width: var(--measure); margin: 0 auto; }
.td-crumbs { display: flex; gap: var(--space-2); }
.td-crumbs a { color: var(--muted); }
.td-article__title { margin: var(--space-3) 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.015em; text-wrap: pretty; overflow-wrap: anywhere; }
@media (min-width: 768px) { .td-article__title { font-size: 40px; line-height: 44px; letter-spacing: -.02em; } }
.td-article__lead { margin: 0 0 var(--space-4); font-size: 20px; line-height: 30px; color: var(--ink-2); }
.td-article__meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.td-prose { font-size: 17px; line-height: 28px; overflow-wrap: break-word; }
@media (min-width: 768px) { .td-prose { font-size: 18px; line-height: 30px; } }
.td-prose p { margin: 0 0 var(--space-4); }
.td-prose h2 { margin: var(--space-6) 0 var(--space-3); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.td-prose h3 { margin: var(--space-5) 0 var(--space-2); font-size: 18px; line-height: 24px; font-weight: 600; }
.td-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.td-prose ul, .td-prose ol { padding-left: var(--space-5); margin: 0 0 var(--space-4); }
.td-prose blockquote { margin: var(--space-5) 0; padding-left: var(--space-4); border-left: 2px solid var(--ink); }

/* Article blocks */
.td-media, .media-block { margin: var(--space-5) 0; }
.td-media img, .media-block img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); background: var(--surface); }
.td-media figcaption, .media-block figcaption { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.td-callout { margin: var(--space-5) 0; padding: var(--space-4); background: var(--surface); border-radius: var(--radius-md); font-weight: 500; }
.td-post-link { display: flex; gap: var(--space-3); align-items: center; margin: var(--space-5) 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); }
.td-post-link img { width: 96px; height: 64px; flex: none; object-fit: cover; border-radius: var(--radius-sm); }
.td-post-link__title { font-size: 16px; line-height: 22px; font-weight: 600; min-width: 0; }
.td-prose a.td-video__poster { text-decoration: none; }

/* YouTube: poster with a play button; the player (youtube-nocookie) replaces it on click. */
.td-video { margin: var(--space-5) 0; }
.td-video__poster, .td-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.td-video .td-video__poster img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.td-video__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.35), transparent 40%); }
.td-video__play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(11, 11, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; transition: transform .2s ease, background .2s ease; }
.td-video__play svg { width: 30px; height: 30px; margin-left: 4px; }
.td-video__brand { position: absolute; z-index: 1; left: var(--space-3); bottom: var(--space-3); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.9); }
.td-video__poster:hover .td-video__play, .td-video__poster:focus-visible .td-video__play { transform: scale(1.08); background: #0b0b0c; }
.td-video__poster:hover img { transform: scale(1.02); }
@media (max-width: 520px) { .td-video__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .td-video__play svg { width: 26px; height: 26px; } }
.td-video__brand { display: inline-flex; align-items: center; gap: 6px; }
.td-video__brand svg { width: 14px; height: 14px; }
/* TikTok, Reels and Shorts keep their phone shape instead of being letterboxed into 16:9. */
.td-video--vertical { width: min(100%, 360px); margin-inline: auto; }
.td-video--vertical .td-video__poster, .td-video--vertical iframe { aspect-ratio: 9 / 16; border-radius: var(--radius-lg); }
.td-video--instagram iframe { aspect-ratio: 9 / 17; background: #fff; }
.td-video__blank { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: radial-gradient(120% 80% at 50% 25%, #2a2a2f, #0b0b0c 70%); }
.td-video__blank svg { width: 30%; max-width: 120px; margin-top: -45%; opacity: .1; }

/* Gallery: one photo at a time, never cropped. Swipe or scroll natively; arrows, counter and thumbnails on top. */
.td-gallery { margin: var(--space-5) 0; }
.td-gallery__stage { position: relative; }
.td-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  border-radius: var(--radius-md); background: var(--surface); outline: none; }
.td-gallery__track::-webkit-scrollbar { display: none; }
.td-gallery__track:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.td-gallery__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; scroll-snap-align: center; scroll-snap-stop: always; }
.td-gallery .td-gallery__slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; cursor: zoom-in; }
.td-gallery__nav, .td-gallery__expand { position: absolute; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: #0b0b0c; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.td-gallery__nav svg, .td-gallery__expand svg { width: 20px; height: 20px; }
.td-gallery__expand { top: var(--space-3); right: var(--space-3); width: 36px; height: 36px; }
.td-gallery__expand svg { width: 16px; height: 16px; }
.td-gallery__nav--prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.td-gallery__nav--next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
.td-gallery__stage:hover .td-gallery__nav, .td-gallery__stage:hover .td-gallery__expand, .td-gallery__nav:focus-visible, .td-gallery__expand:focus-visible { opacity: 1; }
.td-gallery .td-gallery__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .td-gallery__nav { display: none; } .td-gallery__expand { opacity: 1; } }
.td-gallery__bar { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.td-gallery__count { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.td-gallery__thumbs { display: flex; gap: var(--space-2); margin-top: var(--space-3); padding: 2px; overflow-x: auto; scrollbar-width: none; }
.td-gallery__thumbs::-webkit-scrollbar { display: none; }
.td-gallery__thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); opacity: .5; cursor: pointer; transition: opacity .2s ease, box-shadow .2s ease; }
.td-gallery .td-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.td-gallery__thumb:hover { opacity: .85; }
.td-gallery__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }

/* Full-screen gallery */
.td-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.td-lightbox::backdrop { background: #000; }
.td-lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.td-lightbox__track::-webkit-scrollbar { display: none; }
.td-lightbox__slide { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; height: 100%; padding: 64px var(--space-4); box-sizing: border-box; scroll-snap-align: center; scroll-snap-stop: always; }
.td-lightbox__slide img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.td-lightbox__top { position: absolute; z-index: 1; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4);
  font: 500 14px/20px var(--font-sans); color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.td-lightbox__caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); font: 400 14px/20px var(--font-sans); color: rgba(255,255,255,.85); text-align: center; }
.td-lightbox__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.td-lightbox__btn:hover { background: rgba(255,255,255,.22); }
.td-lightbox__btn svg { width: 22px; height: 22px; }
.td-lightbox__nav { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); }
.td-lightbox__nav--prev { left: var(--space-4); }
.td-lightbox__nav--next { right: var(--space-4); }
.td-lightbox__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .td-lightbox__nav { display: none; } }

.td-sources { margin-top: var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--muted); }
.td-sources a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* Badges and chips */
.td-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; padding: 0 var(--space-2); border-radius: var(--radius-sm);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--surface); color: var(--muted); }
.td-badge--live { color: var(--live); }
.td-badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.td-badge--updated { background: transparent; padding: 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.td-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line-control);
  font-size: 14px; font-weight: 500; color: var(--ink); background: var(--bg); transition: background-color var(--dur-fast) ease; }
/* Selected chip (the section you are on): filled ink, like a pressed button; hover does not change it. */
.td-chips .td-chip[aria-current="page"], .td-chips .td-chip[aria-current="page"]:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Buttons */
.td-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md);
  font: 500 15px/20px var(--font-sans); cursor: pointer; border: 1px solid var(--line-control); background: var(--bg); color: var(--ink);
  transition: background-color var(--dur-fast) ease, transform 120ms var(--ease-out); touch-action: manipulation; user-select: none; }
.td-btn:active { transform: scale(.97); }
.td-btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.td-btn--block { width: 100%; }

/* Ads */
.td-sponsor { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.td-sponsor__brand { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.td-sponsor__brand img { height: 18px; width: auto; }
.td-native { display: flex; gap: var(--space-3); padding: var(--space-3); margin: var(--space-3) 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.td-native img { width: 120px; height: 80px; flex: none; object-fit: cover; border-radius: var(--radius-sm); }
.td-native__body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.td-ad-slot { display: grid; place-items: center; background: var(--surface); border-radius: var(--radius-md); color: var(--muted); }
.td-ad-slot--sidebar { width: var(--col-side); height: 600px; max-width: 100%; }
.td-ad-slot--inline { width: 100%; aspect-ratio: 16 / 5; margin: var(--space-5) 0; }

/* Hover lives behind a fine pointer so touch screens never get stuck hover states. */
@media (hover: hover) and (pointer: fine) {
  .td-header__nav a:hover, .td-menu a:hover { color: var(--ink); }
  .td-icon-btn:hover { background: var(--surface-2); }
  .td-feed-item:hover .td-feed-item__title, .td-picks li:hover .td-picks__title, .td-card:hover .td-card__title, .td-post-link:hover .td-post-link__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .td-chip:hover, .td-btn:hover, .td-sponsor-mark:hover { background: var(--surface-2); }
  .td-btn--primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  .td-btn, .td-icon-btn, .td-chip, .td-menu, .td-menu[data-open], .td-search-sheet, .td-search-sheet[data-open], .td-backdrop { transition: none; transform: none; }
  .td-btn:active, .td-icon-btn:active { transform: none; }
}

/* Sponsor mark (header and feed header): a quiet pill so it reads as a tappable placement. */
.td-sponsor-mark { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 40px; padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full); background: var(--surface); color: var(--ink); line-height: 1; transition: background-color var(--dur-fast) ease, transform 120ms var(--ease-out); }
.td-sponsor-mark:active { transform: scale(.97); }
.td-sponsor-mark__label { font-size: 10px; line-height: 12px; font-weight: 500; color: var(--muted); }
.td-sponsor-mark__name { font-size: 14px; line-height: 16px; font-weight: 700; letter-spacing: .18em; padding-left: .18em; }
.td-sponsor-mark img { height: 16px; width: auto; }
@media (max-width: 1023px) {
  .td-header .td-sponsor-mark { min-height: 36px; padding: 2px var(--space-3); }
  .td-header .td-sponsor-mark__name { font-size: 12px; letter-spacing: .14em; padding-left: .14em; }
}

/* Section header with an optional sponsor, the iXBT pattern */
.td-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.td-section-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }

/* Native card mark when the advertiser sent no image */
.td-native__mark { width: 120px; height: 80px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 700; letter-spacing: .18em; }

/* Banner creative. `a.` raises specificity over `.td-root a { color: inherit }`. */
a.td-creative, .td-creative { position: relative; display: flex; overflow: hidden; border-radius: var(--radius-md); background: var(--creative-bg, #0b0b0c); color: #ffffff; }
.td-creative__label { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.7); }
.td-creative__copy { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2); padding: var(--space-5); }
.td-creative__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.td-creative__title { font-size: 34px; line-height: 38px; font-weight: 700; letter-spacing: -.02em; }
.td-creative__text { font-size: 16px; line-height: 22px; color: rgba(255,255,255,.85); max-width: 32ch; }
.td-creative__cta { align-self: flex-start; margin-top: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); background: #ffffff; color: #0b0b0c; font-size: 14px; font-weight: 600; }
/* Sidebar 300x600: fitted visual on top, copy/CTA at the bottom of the same dark ground. */
.td-creative--sidebar { flex-direction: column; justify-content: space-between; width: var(--col-side); max-width: 100%; height: 600px; }
.td-creative--sidebar .td-creative__visual { width: 100%; height: auto; max-height: 400px; object-fit: contain; object-position: top center !important; }
.td-creative--sidebar .td-creative__copy { flex: 1; justify-content: flex-end; }
.td-creative--sidebar.td-creative--has-media .td-creative__title { font-size: 28px; line-height: 32px; }
.td-creative--sidebar:not(.td-creative--has-media) { justify-content: flex-end; }
.td-creative--sidebar .td-creative__title { font-size: 44px; line-height: 46px; }
/* Inline: copy left, visual right. */
/* Rail beside an article: 160×600, 300×600 from 1400px. Visual fitted on the ink ground, copy below. */
.td-creative--rail { flex-direction: column; justify-content: center; width: 160px; height: 600px; }
.td-creative--rail .td-creative__visual { width: 100%; height: auto; max-height: 360px; object-fit: contain; object-position: top center !important; }
.td-creative--rail .td-creative__copy { padding: var(--space-4); gap: var(--space-1); }
.td-creative--rail:not(.td-creative--has-media) .td-creative__title { font-size: 24px; line-height: 28px; }
.td-creative--rail .td-creative__eyebrow { font-size: 11px; letter-spacing: .16em; }
.td-creative--rail .td-creative__title { font-size: 22px; line-height: 26px; }
.td-creative--rail .td-creative__text { font-size: 13px; line-height: 18px; }
.td-creative--rail .td-creative__cta { padding: 6px 12px; font-size: 13px; }
.td-creative--rail .td-creative__label { top: var(--space-2); right: var(--space-2); }
@media (min-width: 1400px) {
  .td-creative--rail { width: 300px; }
  .td-creative--rail .td-creative__visual { max-height: 400px; }
  .td-creative--rail .td-creative__copy { padding: var(--space-5); gap: var(--space-2); }
  .td-creative--rail .td-creative__title { font-size: 28px; line-height: 32px; }
  .td-creative--rail:not(.td-creative--has-media) .td-creative__title { font-size: 40px; line-height: 44px; }
  .td-creative--rail .td-creative__text { font-size: 15px; line-height: 21px; }
}

/* Inline (at least 680×213 in articles; the home and section billboards ask for 300): the copy sets the height,
   the visual fills the right 42% of whatever that is, so a two-line title never pushes the button out. */
.td-creative--inline { width: 100%; min-height: 213px; margin: var(--space-5) 0; }
.td-creative--inline .td-creative__copy { width: 100%; justify-content: center; }
.td-creative--inline.td-creative--has-media .td-creative__copy { width: 58%; }
.td-creative--inline .td-creative__visual { position: absolute; top: 0; right: 0; width: 42%; height: 100%; object-fit: cover; }
.td-creative--inline .td-creative__title { font-size: 28px; line-height: 32px; }
@media (max-width: 520px) {
  .td-creative--inline { flex-direction: column; }
  .td-creative--inline.td-creative--has-media .td-creative__copy { width: 100%; }
  .td-creative--inline .td-creative__visual { position: static; order: 2; width: 100%; height: 200px; }
}
/* Banners inside article text must not inherit prose link styling. */
.td-prose a.td-creative, .td-prose a.td-creative * { color: #ffffff; text-decoration: none; }
.td-prose a.td-creative .td-creative__cta { color: #0b0b0c; }
.td-prose a.td-creative .td-creative__text, .td-prose a.td-creative .td-creative__eyebrow { color: rgba(255,255,255,.85); }

/* Social: follow links and share row. Round 36px buttons on `surface`, icons in `ink`. */
.td-social, .td-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.td-social__btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--radius-full); border: 0; background: var(--surface); color: var(--ink);
  cursor: pointer; transition: background-color var(--dur-fast) ease, transform 120ms var(--ease-out); touch-action: manipulation; }
.td-social__btn:active { transform: scale(.94); }
.td-social__btn svg { width: 16px; height: 16px; }
.td-share-row .td-label { margin-right: var(--space-1); }
.td-share-native { display: none; }
.td-has-native-share .td-share-native { display: grid; }
@media (hover: hover) and (pointer: fine) { .td-social__btn:hover { background: var(--surface-2); } }


/* site.css */
/* Page layout for the public site. Component styles live in components.css (from the Design System). */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
:root { --logo-light: #e7e7e4; --logo-ring: rgba(11, 11, 12, 0); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-light: #0b0b0c; --logo-ring: rgba(255, 255, 255, .22); } }
:root[data-theme="dark"] { --logo-light: #0b0b0c; --logo-ring: rgba(255, 255, 255, .22); }
.td-skip { position: absolute; left: -9999px; }
.td-skip:focus { left: var(--space-4); top: var(--space-2); z-index: 20; background: var(--bg); padding: var(--space-2) var(--space-3); }

.td-wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-4); }
.td-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-5) var(--space-7); }
.td-home__side, .td-home__ads { display: none; }
.td-home__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.td-section-title { margin: 0 0 var(--space-2); }

.td-tabs { display: flex; gap: var(--space-2); }
.td-tabs a { flex: 1; text-align: center; height: 40px; line-height: 40px; border-radius: var(--radius-md); background: var(--surface); font: 500 15px/40px var(--font-sans); color: var(--ink-2); }
.td-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.td-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.td-more-row { margin-top: var(--space-5); }

.td-page-title { margin: var(--space-5) 0 var(--space-2); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.015em; }
.td-article-page { padding-block: var(--space-6) var(--space-7); }
.td-article .td-media:first-of-type { margin-top: var(--space-5); }
.td-hero { margin: var(--space-5) 0 0; }
.td-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); background: var(--surface); }
.td-prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 var(--space-4); }
.td-prose td, .td-prose th { border: 1px solid var(--line); padding: var(--space-2) var(--space-3); }
.td-prose img { max-width: 100%; height: auto; }
.td-prose details { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-3); }
.td-prose summary { font-weight: 600; cursor: pointer; }
.td-embed-link { margin: var(--space-5) 0; }
.td-embed-link a { display: block; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-weight: 500; }
.td-embed-video-file video { width: 100%; border-radius: var(--radius-md); }

.td-footer { border-top: 1px solid var(--line); padding-block: var(--space-6) var(--space-7); margin-top: var(--space-7); }
.td-footer__grid { display: grid; gap: var(--space-5); }
.td-footer__brand { justify-self: start; }
.td-footer__brand .td-logo__word { font-size: 23px; }
.td-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 15px; font-weight: 500; }
.td-footer__links a { color: var(--ink-2); }
.td-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.td-footer__legal a { color: var(--muted); margin-right: var(--space-4); }
.td-related { max-width: var(--measure); margin: var(--space-7) auto 0; }
.td-related__grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .td-related__grid { grid-template-columns: 1fr 1fr; } }
.td-subcats { margin-top: var(--space-3); }
.td-search { display: flex; gap: var(--space-2); margin: var(--space-3) 0 var(--space-5); }
.td-search input { flex: 1; min-width: 0; height: 44px; padding: 0 var(--space-3); font: 400 16px/20px var(--font-sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.td-empty { padding: var(--space-6) 0; color: var(--ink-2); }

/* Article rails: the page widens so a banner fits each side of the 680px column. */
.td-rail { display: none; }
@media (min-width: 1120px) {
  .td-article-page { max-width: 1440px; }
  .td-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)) minmax(0, 1fr); column-gap: var(--space-6); align-items: start; }
  .td-article-layout .td-article { width: 100%; }
  .td-rail { display: flex; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .td-rail--left { justify-content: flex-end; }
  .td-rail--right { justify-content: flex-start; }
}

/* Desktop: three columns. Kept last so it overrides the phone-first rules above. */
@media (min-width: 1024px) {
  .td-home { grid-template-columns: var(--col-side) minmax(0, 1fr) var(--col-side); }
  /* The feed is the page's main column: a hairline card makes that readable at a glance. */
  .td-home__main { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
  .td-home__side { display: flex; flex-direction: column; gap: var(--space-5); }
  .td-home__ads { display: flex; flex-direction: column; gap: var(--space-6); }
  .td-home--two { grid-template-columns: minmax(0, 1fr) var(--col-side); }
  .td-home--two .td-home__side { display: none; }
  .td-tabs { display: none; }
}

.td-article__share { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.td-article__share--end { margin-top: var(--space-6); border-top: 1px solid var(--line); }
.td-article__meta { border-bottom: 0; padding-bottom: 0; margin-bottom: var(--space-2); }
.td-article__meta a { color: var(--ink-2); }

/* Static pages */
.td-page-body h2 { margin-top: var(--space-6); }
.td-page-body .td-social { margin: var(--space-3) 0 var(--space-5); }
.td-embed-map { position: relative; margin: var(--space-4) 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.td-embed-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms */
.td-contact { margin: var(--space-4) 0 var(--space-6); }
.td-form { display: grid; gap: var(--space-4); }
.td-field { display: grid; gap: var(--space-1); }
.td-field label { font-size: 15px; font-weight: 600; }
.td-field input, .td-field textarea { width: 100%; padding: var(--space-3); font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.td-field textarea { resize: vertical; }
.td-field__error { margin: 0; font-size: 14px; color: var(--live); }
.td-form .td-btn { justify-self: start; }
.td-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cookie notice */
.td-cookie { position: fixed; left: var(--space-4); right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); z-index: 12;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); font-size: 14px; line-height: 20px; }
.td-cookie p { margin: 0; color: var(--ink-2); }
.td-cookie a { color: var(--accent); text-decoration: underline; }
.td-cookie .td-btn { height: 36px; padding: 0 var(--space-4); flex: none; }


/* carlife.css */
/* carlife.az: the Tedroid design system with a photo-first layout. Cars are seen, not listed:
   big pictures on the front page, titles on the photos where the picture carries the story. */
:root { --page-max: 1280px; --cl-gap: 20px; --cl-scrim: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.82) 100%); }

/* ---- section rhythm ---- */
.cl-block { display: flex; flex-direction: column; gap: var(--space-4); padding-block: var(--space-6) 0; }
.cl-head { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; }
.cl-head h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.02em; }
.cl-more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.cl-more::after { content: "→"; transition: transform .2s ease; }
.cl-head .td-sponsor-mark { margin-left: var(--space-2); }
.cl-head .td-sponsor-mark + .cl-more { margin-left: auto; }

/* ---- grids ---- */
.cl-grid { display: grid; gap: var(--cl-gap); }
.cl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-grid--feature { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
.cl-grid--feature .cl-card--feature { grid-row: span 2; }
/* Only two reviews: the pair splits the row evenly instead of leaving a hole. */
.cl-grid--feature:not(:has(> :nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cl-grid--feature:not(:has(> :nth-child(3))) .cl-card--feature { grid-row: auto; }
.cl-stack { display: flex; flex-direction: column; gap: var(--cl-gap); }
.cl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
.cl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); }

/* ---- card ---- */
.cl-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; color: var(--ink); text-decoration: none; }
.cl-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-md); background: var(--surface); }
.cl-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cl-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cl-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.cl-eyebrow > span:first-child { color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.cl-eyebrow time { font-weight: 500; font-variant-numeric: tabular-nums; }
.cl-card__title { font-size: 17px; line-height: 23px; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.cl-card__lead { font-size: 15px; line-height: 22px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-card__play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11, 11, 12, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; }
.cl-card__play svg { width: 18px; height: 18px; margin-left: 2px; }

/* Feature card: the large one in a section. */
.cl-card--feature .cl-card__media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.cl-card--feature .cl-card__title { font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -.02em; }

/* Overlay card: the title sits on the photo. Text is always white on a dark scrim, in both themes. */
.cl-card--overlay { gap: 0; }
.cl-card--overlay .cl-card__media { aspect-ratio: auto; height: 100%; min-height: 220px; border-radius: var(--radius-lg); }
.cl-card--overlay .cl-card__media::after { content: ""; position: absolute; inset: 0; background: var(--cl-scrim); }
.cl-card--overlay .cl-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--space-4) var(--space-4) var(--space-4); color: #fff; }
.cl-card--overlay .cl-eyebrow, .cl-card--overlay .cl-eyebrow > span:first-child { color: rgba(255, 255, 255, .86); }
.cl-card--overlay .cl-card__lead { color: rgba(255, 255, 255, .82); }
.cl-card--overlay .cl-card__play { left: auto; right: 14px; top: 14px; bottom: auto; }

/* Row card: small photo beside the title, for practical lists. */
.cl-card--row { flex-direction: row; align-items: center; gap: var(--space-4); padding-block: var(--space-4); border-top: 1px solid var(--line); }
.cl-card--row .cl-card__media { flex: none; width: 120px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.cl-card--row .cl-card__title { font-size: 16px; line-height: 22px; }

@media (hover: hover) and (pointer: fine) {
  .cl-card:hover .cl-card__media img { transform: scale(1.035); }
  .cl-card:hover .cl-card__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
  .cl-card--overlay:hover .cl-card__title { text-decoration-color: rgba(255, 255, 255, .7); }
  .cl-more:hover { color: var(--ink); }
  .cl-more:hover::after { transform: translateX(3px); }
}

/* ---- front page mosaic: lead (2 columns x 2 rows) + four tiles ---- */
.cl-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(440px, 46vw, 600px); padding-top: var(--space-5); }
.cl-mosaic__lead { grid-row: span 2; }
.cl-mosaic__lead .cl-card__body { padding: var(--space-6); gap: 10px; max-width: 760px; }
.cl-mosaic__lead .cl-card__title { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.cl-mosaic__lead .cl-card__lead { font-size: 16px; line-height: 24px; -webkit-line-clamp: 2; max-width: 60ch; }
.cl-mosaic__tile .cl-card__title { font-size: 16px; line-height: 21px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-mosaic .cl-card__media { min-height: 0; }

/* ---- dark band (video) ---- */
.cl-band { margin-top: var(--space-7); padding-block: var(--space-2) var(--space-7); background: #0b0b0c; color: #f2f2f3; }
.cl-band .cl-head h2 { color: #fff; }
.cl-band .cl-more { color: rgba(255, 255, 255, .72); }
.cl-band .cl-more:hover { color: #fff; }
.cl-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; outline: none; }
.cl-rail::-webkit-scrollbar { display: none; }
.cl-rail:focus-visible { box-shadow: 0 0 0 2px #fff; border-radius: var(--radius-lg); }
.cl-card--reel { scroll-snap-align: start; }
.cl-card--reel .cl-card__media { aspect-ratio: 9 / 16; min-height: 0; height: auto; }
.cl-card--reel .cl-card__title { font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-card--reel .cl-card__play { left: 14px; right: auto; top: 14px; }

/* ---- versus ---- */
.cl-card--versus .cl-card__media { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
.cl-card--versus .cl-card__body::before { content: "VS"; align-self: flex-start; display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px;
  border-radius: 50%; background: #fff; color: #0b0b0c; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.cl-card--versus .cl-card__title { font-size: 20px; line-height: 26px; font-weight: 700; }

/* ---- billboard ---- */
.cl-billboard { padding-top: var(--space-7); }

/* ---- article page: header at reading width, then the photo wide ---- */
.cl-article-head { padding-bottom: 0; }
.cl-article-head .td-article__share { border-bottom: 0; padding-bottom: 0; }
.cl-hero { max-width: 1200px; margin: var(--space-5) auto var(--space-6); }
.cl-hero > img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: cover; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--surface); }
.cl-hero figcaption { margin-top: var(--space-2); font-size: 13px; color: var(--muted); }
.cl-after { max-width: 1200px; margin-inline: auto; padding-top: var(--space-7); }
@media (max-width: 640px) { .cl-hero { margin-inline: calc(-1 * var(--space-4)); } .cl-hero > img, .cl-hero--video > .td-video .td-video__poster, .cl-hero--video > .td-video iframe { border-radius: 0; } }

/* ---- category and "all stories" pages ---- */
.cl-page-head { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-6); }
.cl-page-head h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.cl-page-head p { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 24px; }
.cl-page-lead { padding-top: var(--space-5); }
.cl-page-lead .cl-card--overlay .cl-card__media { height: clamp(320px, 38vw, 520px); }
.cl-page-lead .cl-card__body { padding: var(--space-6); max-width: 820px; }
.cl-page-lead .cl-card__title { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.cl-pager { display: flex; justify-content: center; padding-top: var(--space-7); }

/* Archive grids: day headings and a banner row span the whole grid. */
.cl-grid__day { grid-column: 1 / -1; margin: var(--space-4) 0 calc(-1 * var(--space-2)); padding-top: var(--space-3); border-top: 1px solid var(--line);
  font: 600 13px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cl-grid__day:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.cl-grid__ad { grid-column: 1 / -1; }
.cl-grid__ad .td-creative, .cl-billboard .td-creative { width: 100%; }
.cl-grid__ad .td-creative--inline, .cl-billboard .td-creative--inline { min-height: 300px; margin: 0; }
.cl-grid__ad .td-creative--inline .td-creative__copy, .cl-billboard .td-creative--inline .td-creative__copy { padding: var(--space-6); }
.cl-grid__ad .td-creative--inline .td-creative__title, .cl-billboard .td-creative--inline .td-creative__title { font-size: 34px; line-height: 38px; }

/* Home "Son xəbərlər": photo cards plus a timed stream (and the 300×600) in a side column. */
.cl-latest { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--cl-gap); align-items: start; }
/* The side column takes exactly the height of the cards beside it (contain: size keeps it from setting the row
   height), so neither column leaves an empty strip: the stream shows what fits, the 300×600 sits at the bottom. */
.cl-latest__side { contain: size; align-self: stretch; display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.cl-latest__ad { flex: none; }
.cl-stream { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.cl-stream__clip { flex: 1 1 auto; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.cl-stream__day { margin: var(--space-4) 0 var(--space-1); font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-stream ol { list-style: none; margin: 0; padding: 0; }
.cl-stream li + li { border-top: 1px solid var(--line); }
.cl-stream li a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-2); padding: 10px 0; color: var(--ink); text-decoration: none; }
.cl-stream time { font: 500 13px/20px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.cl-stream span { font: 500 15px/20px var(--font-sans); letter-spacing: -.005em; }
.cl-stream > .cl-more { flex: none; display: inline-flex; margin-top: var(--space-2); }
@media (hover: hover) and (pointer: fine) { .cl-stream li a:hover span { text-decoration: underline; text-underline-offset: 3px; } }
.cl-band .td-sponsor-mark, .cl-cinema .td-sponsor-mark { background: rgba(255,255,255,.08); color: #fff; }
.cl-cinema__sponsor { margin-top: var(--space-3); }

/* Video page: a dark "cinema" under the light header, phone-shaped tiles, follow buttons for the platforms. */
.cl-cinema { background: #0b0b0c; color: #f5f5f7; padding: var(--space-6) 0 var(--space-8); --muted: #a1a1a6; }
.cl-cinema__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-5); }
.cl-cinema__head h1 { margin: 0; font: 700 44px/1.05 var(--font-sans); letter-spacing: -.03em; color: #fff; }
.cl-cinema__head p { margin: var(--space-2) 0 0; max-width: 56ch; color: #a1a1a6; font-size: 16px; line-height: 24px; }
.cl-cinema__empty { color: #a1a1a6; }
.cl-follow { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cl-follow__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: 600 14px/1 var(--font-sans); text-decoration: none; transition: background .2s ease; }
.cl-follow__btn svg { width: 16px; height: 16px; }
.cl-follow__btn:hover { background: rgba(255,255,255,.18); }
.cl-follow__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cl-reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cl-cinema .cl-card--overlay { color: #fff; }
.cl-cinema .cl-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cl-cinema .td-btn { background: #fff; color: #0b0b0c; }

/* Post page: a phone-shaped video stands on a stage lit by its own blurred cover. */
.cl-hero--video .td-video { margin: 0; }
.cl-hero--video > .td-video:not(.td-video--vertical) .td-video__poster, .cl-hero--video > .td-video:not(.td-video--vertical) iframe { border-radius: var(--radius-lg); }
.cl-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: clamp(16px, 3vw, 36px) var(--space-4) var(--space-4); border-radius: var(--radius-lg); overflow: hidden; background: #0b0b0c; }
.cl-stage__glow { position: absolute; inset: -60px; z-index: -1; background-size: cover; background-position: center; filter: blur(48px) saturate(1.3) brightness(.5); }
.cl-stage .td-video--vertical { width: min(100%, 380px); }
.cl-stage .td-video--vertical .td-video__poster, .cl-stage .td-video--vertical iframe { box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.cl-stage .cl-stage__open { font: 500 13px/1 var(--font-sans); color: rgba(255,255,255,.75); text-decoration: none; }
.cl-stage .cl-stage__open:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* In-page viewer: player in the middle, story beside it (below it on phones), ↑/↓ to the next video. */
.cl-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,9,.96); color: #fff; overflow: hidden; }
.cl-viewer::backdrop { background: rgba(0,0,0,.6); }
.cl-viewer[open] { display: flex; align-items: center; justify-content: center; gap: var(--space-6); }
.cl-viewer__frame { flex: none; width: min(1100px, calc(100vw - 480px)); aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000 center / cover no-repeat; }
.cl-viewer__frame.is-vertical { width: auto; height: calc(100dvh - 48px); max-width: calc(100vw - 32px); aspect-ratio: 9 / 16; }
.cl-viewer__frame.is-instagram { background-color: #fff; }
.cl-viewer__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.cl-viewer__info { flex: 0 1 300px; align-self: flex-end; padding-bottom: var(--space-6); }
.cl-viewer__meta { margin: 0 0 var(--space-2); font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #a1a1a6; }
.cl-viewer__title { margin: 0; font: 700 22px/28px var(--font-sans); letter-spacing: -.015em; text-wrap: balance; }
.cl-viewer__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.cl-viewer__links a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--font-sans); text-decoration: none; }
.cl-viewer .cl-viewer__read { background: #fff; color: #0b0b0c; }
.cl-viewer .cl-viewer__open { background: rgba(255,255,255,.12); color: #fff; }
.cl-viewer__controls { position: absolute; top: var(--space-4); right: var(--space-4); bottom: var(--space-4); display: flex; flex-direction: column; justify-content: space-between; align-items: center; pointer-events: none; }
.cl-viewer__steps { display: flex; flex-direction: column; gap: var(--space-2); margin-block: auto; }
.cl-viewer__btn { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.cl-viewer__btn svg { width: 22px; height: 22px; }
.cl-viewer__btn:hover { background: rgba(255,255,255,.22); }
.cl-viewer__btn:disabled { opacity: .3; cursor: default; }
.cl-viewer__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1023px) {
  .cl-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .cl-mosaic__lead { grid-column: 1 / -1; grid-row: auto; }
  .cl-mosaic__lead .cl-card__media { aspect-ratio: 4 / 3; height: auto; }
  .cl-mosaic__tile .cl-card__media { aspect-ratio: 1 / 1; height: auto; }
  .cl-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cl-rail { grid-auto-columns: 200px; }
  .cl-reels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-latest { grid-template-columns: minmax(0, 1fr); }
  .cl-latest__side { contain: none; }
  .cl-stream__clip { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .cl-latest__ad { display: none; }
  .cl-viewer[open] { flex-direction: column; justify-content: flex-start; gap: 0; }
  .cl-viewer__frame, .cl-viewer__frame.is-vertical { width: 100vw; height: auto; max-width: none; flex: 1 1 auto; min-height: 0; border-radius: 0; aspect-ratio: auto; }
  .cl-viewer__frame:not(.is-vertical) { flex: none; aspect-ratio: 16 / 9; margin-top: auto; }
  .cl-viewer__info { flex: none; align-self: stretch; padding: var(--space-4) 72px var(--space-5) var(--space-4); }
  .cl-viewer__title { font-size: 18px; line-height: 24px; }
}
@media (max-width: 640px) {
  :root { --cl-gap: 24px; }
  .cl-mosaic { gap: 10px; padding-top: var(--space-4); }
  .cl-mosaic__lead .cl-card__body { padding: var(--space-4); }
  .cl-mosaic__tile .cl-card__body { padding: 12px; }
  .cl-mosaic__tile .cl-card__title { font-size: 14px; line-height: 19px; }
  .cl-mosaic__tile .cl-eyebrow time { display: none; }
  .cl-grid--3, .cl-grid--2, .cl-list { grid-template-columns: minmax(0, 1fr); }
  .cl-grid--feature { grid-template-columns: minmax(0, 1fr); }
  .cl-grid--feature .cl-card--feature { grid-row: auto; }
  .cl-card--feature .cl-card__title { font-size: 22px; line-height: 28px; }
  .cl-card--row .cl-card__media { width: 96px; }
  .cl-rail { grid-auto-columns: 160px; margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); scroll-padding-inline: var(--space-4); }
  .cl-head h2 { font-size: 21px; }
  /* Seven round buttons fit a 375px phone once the word label steps aside;
     the first button is the share glyph itself. */
  .cl-article-head .td-share-row .td-label { display: none; }
  .cl-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cl-cinema { padding-top: var(--space-5); }
  .cl-cinema__head h1 { font-size: 34px; }
  .cl-stage { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .cl-card__media img, .cl-more::after { transition: none; } }

/* Footer: carlife.az with its maker line under it. */
.cl-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.td-root a.cl-maker { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--font-sans); color: var(--muted); text-decoration: none; }
.td-root a.cl-maker:hover { color: var(--ink); }
.cl-maker svg { flex: none; }

/* Header: an all-lowercase wordmark sits on its baseline, so the section links share that baseline
   (2.5px lower than Tedroid's centring); the padding keeps the active underline on the header edge. */
@media (min-width: 1024px) { .td-header__nav a { padding-top: 5px; line-height: calc(var(--header-h) - 5px); } }

/* Article blocks: "Texniki göstəricilər" sheet and Auto Versus. Higher specificity than the generic .td-prose table. */
.td-prose .td-specs, .td-prose .td-versus { margin: var(--space-6) 0; }
.td-specs { border-top: 2px solid var(--ink); }
.td-specs__title { padding: var(--space-3) 0 var(--space-2); font: 600 12px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.td-prose .td-specs table, .td-prose .td-versus table { display: table; width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.td-prose .td-specs th, .td-prose .td-specs td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 16px; line-height: 22px; vertical-align: top; }
.td-prose .td-specs th { width: 45%; padding-right: var(--space-4); text-align: left; font-weight: 400; color: var(--ink-2); }
.td-prose .td-specs td { text-align: right; font-weight: 600; color: var(--ink); }

.td-versus__cars { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: var(--space-4); }
.td-versus__car { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.td-versus__car:last-child { text-align: right; }
.td-prose .td-versus__car img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); margin: 0; }
.td-versus__car strong { font-size: 18px; line-height: 24px; letter-spacing: -.01em; text-wrap: balance; }
.td-versus__vs { align-self: center; display: grid; place-items: center; min-width: 56px; height: 56px; padding: 0 12px; border-radius: 28px; background: var(--ink); color: var(--bg); font: 800 16px/1 var(--font-sans); letter-spacing: .04em; }
.td-versus__score { font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-prose .td-versus table { margin-top: var(--space-4); }
.td-prose .td-versus th, .td-prose .td-versus td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 8px; font-size: 15px; line-height: 21px; text-align: center; vertical-align: top; }
.td-prose .td-versus thead th { padding-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.td-prose .td-versus tbody th { width: 30%; padding-left: 0; text-align: left; font-weight: 400; color: var(--ink-2); }
.td-prose .td-versus td { width: 35%; color: var(--ink-2); }
.td-prose .td-versus td.is-win { font-weight: 700; color: var(--ink); background: var(--surface); }
.td-prose .td-versus td.is-win::after { content: " ✓"; }
.td-versus__verdict { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); font-size: 16px; line-height: 24px; color: var(--ink); }
@media (max-width: 640px) {
  .td-versus__cars { gap: var(--space-2); }
  .td-versus__car strong { font-size: 15px; line-height: 20px; }
  .td-versus__vs { min-width: 44px; height: 44px; font-size: 13px; }
  .td-prose .td-versus th, .td-prose .td-versus td { padding: 10px 4px; font-size: 14px; }
}


/* --- AdService (.partner-box / .partner-card) adapter styles --- */
.partner-box:not(.td-sponsor-mark) { width: 100%; }
.partner-type-image a { display: block; border-radius: var(--radius-md); overflow: hidden; }
.partner-type-image img { width: 100%; height: auto; display: block; }
.partner-card-link, .partner-card-feed-link {
  position: relative;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--partner-bg, var(--surface));
  color: var(--partner-color, #fff);
  overflow: hidden;
  border: 1px solid var(--line);
}
.partner-card-horizontal .partner-card-link {
  grid-template-columns: minmax(140px, 38%) 1fr;
  align-items: center;
}
.partner-card-vertical .partner-card-link {
  min-height: 420px;
  align-content: space-between;
}
.partner-card-badge, .partner-card-feed-badge {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .28);
  color: rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.partner-card-media img, .partner-card-feed-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.partner-card-content, .partner-card-feed-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.partner-card-brand, .partner-card-feed-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}
.partner-card-title, .partner-card-feed-title {
  font-size: 20px;
  line-height: 25px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.partner-card-desc {
  font-size: 14px;
  line-height: 20px;
  opacity: .88;
}
.partner-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0b0b0c;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .partner-card-horizontal .partner-card-link { grid-template-columns: 1fr; }
}
