/*
Theme Name: todoless Ollie
Theme URI: https://todoless.eu
Description: todoless visual journey child theme built on Ollie. Product-first one-page story with light/dark themes.
Author: todoless
Template: ollie
Version: 3.0.0
Text Domain: todoless-ollie
*/

/* Self-hosted brand font (no external font requests at runtime). */
@font-face {
  font-family: "Manrope";
  src: url("/wp-content/uploads/todoless/fonts/manrope-latin-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Tokens — light (default) and dark
   ============================================================ */
:root {
  color-scheme: light;
  --tl-violet: #7654F4;
  --tl-violet-strong: #6440E8;
  --tl-green: #22C55E;
  --tl-amber: #FFBA00;
  --tl-cyan: #06B6D4;
  --tl-red: #F03E3E;
  --tl-orange: #FF8904;
  --tl-blue: #2D9CFD;
  --tl-pink: #EC4899;

  --tl-bg: #F5F7FB;
  --tl-bg-alt: #ECEFF7;
  --tl-surface: #FFFFFF;
  --tl-surface-2: #F8F9FD;
  --tl-ink: #15151F;
  --tl-muted: #565B6E;
  --tl-border: rgba(21, 21, 31, 0.10);
  --tl-link: #6440E8;
  --tl-header-bg: rgba(245, 247, 251, 0.88);
  --tl-code-bg: #15151F;
  --tl-code-ink: #F1F3F9;

  /* Text-safe accent colors (WCAG AA on --tl-bg / --tl-surface) */
  --tl-t-blue: #1764C0;
  --tl-t-violet: #6440E8;
  --tl-t-green: #166534;
  --tl-t-orange: #C2410C;
  --tl-t-amber: #A16207;
  --tl-t-pink: #BE185D;

  --tl-shadow-soft: 0 18px 48px rgba(21, 21, 31, 0.10);
  --tl-shadow-device: 0 30px 70px rgba(21, 21, 31, 0.22), 0 6px 18px rgba(21, 21, 31, 0.10);
  --tl-device-bezel: #15151F;
  --tl-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Keep Ollie's global styles on our tokens (and avoid loading Mona Sans). */
  --wp--preset--color--base: var(--tl-bg);
  --wp--preset--color--main: var(--tl-ink);
  --wp--preset--font-family--primary: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wp--style--global--content-size: 820px;
  --wp--style--global--wide-size: 1180px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --tl-bg: #0E1016;
  --tl-bg-alt: #141722;
  --tl-surface: #191C27;
  --tl-surface-2: #1F2331;
  --tl-ink: #EEF0F7;
  --tl-muted: #A7ADBF;
  --tl-border: rgba(255, 255, 255, 0.11);
  --tl-link: #A996FF;
  --tl-header-bg: rgba(14, 16, 22, 0.86);
  --tl-code-bg: #07080C;
  --tl-t-blue: #6CB6FF;
  --tl-t-violet: #A996FF;
  --tl-t-green: #4ADE80;
  --tl-t-orange: #FDBA74;
  --tl-t-amber: #FCD34D;
  --tl-t-pink: #F9A8D4;
  --tl-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.35);
  --tl-shadow-device: 0 30px 70px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
  --tl-device-bezel: #2A2E3B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --tl-bg: #0E1016;
    --tl-bg-alt: #141722;
    --tl-surface: #191C27;
    --tl-surface-2: #1F2331;
    --tl-ink: #EEF0F7;
    --tl-muted: #A7ADBF;
    --tl-border: rgba(255, 255, 255, 0.11);
    --tl-link: #A996FF;
    --tl-header-bg: rgba(14, 16, 22, 0.86);
    --tl-code-bg: #07080C;
    --tl-t-blue: #6CB6FF;
    --tl-t-violet: #A996FF;
    --tl-t-green: #4ADE80;
    --tl-t-orange: #FDBA74;
    --tl-t-amber: #FCD34D;
    --tl-t-pink: #F9A8D4;
    --tl-shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.35);
    --tl-shadow-device: 0 30px 70px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.35);
    --tl-device-bezel: #2A2E3B;
  }
}

/* ============================================================
   Base
   ============================================================ */
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--tl-bg); }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--tl-ease), transform 0.35s var(--tl-ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.js [data-reveal-delay="1"] { --d: 90ms; }
html.js [data-reveal-delay="2"] { --d: 180ms; }
html.js [data-reveal-delay="3"] { --d: 270ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal], html.js [data-reveal].is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  color: var(--tl-ink);
  background: var(--tl-bg) !important;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--tl-ink); }
a { color: var(--tl-link); text-underline-offset: 0.18em; }
a:hover { color: var(--tl-ink); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline: 3px solid var(--tl-violet);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection { background: rgba(124, 92, 252, 0.25); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
:not(pre) > code { background: var(--tl-surface-2); border: 1px solid var(--tl-border); border-radius: 6px; padding: 0.1em 0.35em; color: var(--tl-ink); }

.skip-link.screen-reader-text:focus { z-index: 300; }
.tl-container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 28px); box-sizing: border-box; }
.tl-section { padding-block: clamp(56px, 8vw, 104px); }
.tl-journey [id] { scroll-margin-top: 84px; }
.tl-nowrap { white-space: nowrap; }

/* ============================================================
   Header
   ============================================================ */
header.wp-block-template-part:has(.tl-site-header),
.wp-block-template-part:has(.tl-site-header) {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--tl-header-bg);
  border-bottom: 1px solid var(--tl-border);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.tl-site-header { padding: 10px clamp(16px, 3vw, 28px); }
.tl-site-header .tl-header-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto !important;
  min-width: 0;
}
.tl-brand { flex: 0 0 auto; }
.tl-logo-link { display: inline-flex; align-items: center; gap: 9px; color: var(--tl-ink); text-decoration: none; min-height: 44px; }
.tl-logo-link:hover { color: var(--tl-ink); }
.tl-logo-img { display: block; width: 36px; height: 36px; }
.tl-logo-wordmark { font-size: 20px; font-weight: 750; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.tl-main-nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.tl-nav-link {
  color: var(--tl-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 999px;
}
.tl-nav-link:hover { color: var(--tl-ink); background: var(--tl-surface-2); }
.tl-header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.tl-theme-toggle, .tl-gh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--tl-border);
  background: var(--tl-surface);
  color: var(--tl-ink);
  font: inherit;
  font-weight: 750;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}
.tl-theme-toggle:hover, .tl-gh-link:hover { border-color: var(--tl-violet); color: var(--tl-ink); }
.tl-theme-toggle .tl-icon-sun { display: none; }
:root[data-theme="dark"] .tl-theme-toggle .tl-icon-sun { display: block; }
:root[data-theme="dark"] .tl-theme-toggle .tl-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tl-theme-toggle .tl-icon-sun { display: block; }
  :root:not([data-theme="light"]) .tl-theme-toggle .tl-icon-moon { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.tl-cta, .tl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none !important;
  transition: background 0.2s var(--tl-ease), transform 0.2s var(--tl-ease), box-shadow 0.2s var(--tl-ease), border-color 0.2s;
}
.tl-cta { background: var(--tl-violet-strong); color: #fff !important; box-shadow: 0 10px 26px rgba(100, 64, 232, 0.32); border: 0; }
.tl-cta:hover { background: #5531DA; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(100, 64, 232, 0.4); color: #fff !important; }
.tl-btn-ghost { background: var(--tl-surface); color: var(--tl-ink) !important; border: 1.5px solid var(--tl-border); }
.tl-btn-ghost:hover { border-color: var(--tl-ink); transform: translateY(-1px); }
.tl-cta-lg { padding: 0.95rem 1.5rem; font-size: 1.06rem; min-height: 52px; }
.tl-cta .tl-arrow { transition: transform 0.2s var(--tl-ease); }
.tl-cta:hover .tl-arrow { transform: translateX(3px); }
.tl-cta-header { padding: 0.6rem 1.05rem; font-size: 0.95rem; box-shadow: none; }

/* ============================================================
   Generic page content (about / privacy / docs)
   ============================================================ */
.tl-page-shell { padding: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 32px); }
.wp-block-post-content { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.wp-block-post-content > * { margin-block-start: 1.1rem; }
.wp-block-post-content h1, .wp-block-post-content h2, .wp-block-post-content h3, .wp-block-post-content h4 { color: var(--tl-ink); letter-spacing: -0.03em; }
.wp-block-post-content h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.wp-block-post-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 2.2rem; }
.wp-block-post-content h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.wp-block-post-content p, .wp-block-post-content li { color: var(--tl-muted); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.72; }
.wp-block-post-content strong { color: var(--tl-ink); }
.wp-block-post-content pre, .wp-block-post-content pre.wp-block-code {
  overflow-x: auto; padding: 1rem 1.15rem; border-radius: 16px; background: var(--tl-code-bg); color: var(--tl-code-ink); box-shadow: var(--tl-shadow-soft);
}
.wp-block-post-content pre code { background: none; border: 0; color: inherit; padding: 0; }
.wp-block-post-content code { font-size: 0.92rem; line-height: 1.6; }
.wp-block-post-content figure.wp-block-image img { border-radius: 18px; box-shadow: var(--tl-shadow-soft); background: #fff; }
.wp-block-post-content ul, .wp-block-post-content ol { padding-left: 1.4rem; }
.wp-block-post-content .wp-element-button {
  border: 0; border-radius: 999px; color: #fff; background: var(--tl-violet-strong); font-weight: 800; padding: 0.8rem 1.3rem; text-decoration: none;
}
.wp-block-post-content .wp-element-button:hover { background: #5531DA; color: #fff; }
.tl-page-shell .wp-block-columns { gap: clamp(18px, 2.8vw, 28px); }
.tl-page-shell .wp-block-column {
  background: var(--tl-surface); border: 1px solid var(--tl-border); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--tl-shadow-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.tl-site-footer { padding: 0 clamp(16px, 3vw, 32px) clamp(28px, 4vw, 48px); border-top: 1px solid var(--tl-border); background: var(--tl-bg-alt); }
.tl-footer-inner { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(32px, 4vw, 48px); max-width: 1180px; margin-inline: auto !important; }
.tl-footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.tl-footer-brandblock .tl-logo-img { width: 32px; height: 32px; }
.tl-footer-tagline { margin: 12px 0 4px; color: var(--tl-ink); font-weight: 800; letter-spacing: -0.02em; }
.tl-footer-europe { margin: 0; color: var(--tl-muted); font-size: 0.95rem; }
.tl-footer-col { margin: 0; }
.tl-footer-h { margin: 0 0 10px; font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tl-muted); font-weight: 800; }
.tl-footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.tl-footer-col a { display: inline-block; padding: 6px 0; color: var(--tl-ink); text-decoration: none; font-weight: 650; }
.tl-footer-col a:hover { color: var(--tl-link); text-decoration: underline; }
.tl-footer-fineprint { margin: 0; padding-top: 18px; border-top: 1px solid var(--tl-border); color: var(--tl-muted); font-size: 0.9rem; }

/* ============================================================
   Journey — shared pieces
   ============================================================ */
.tl-journey h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; margin: 0 0 1.2rem; text-wrap: balance; }
.tl-journey h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 1rem; text-wrap: balance; }
.tl-journey h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.tl-journey p { font-size: clamp(16.5px, 1.15vw, 18.5px); line-height: 1.6; }
.tl-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0.9rem;
  font-size: 0.82rem !important; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tl-t-violet);
}
.tl-kicker-blue { color: var(--tl-t-blue); }
.tl-kicker-violet { color: var(--tl-t-violet); }
.tl-kicker-green { color: var(--tl-t-green); }
.tl-kicker-orange { color: var(--tl-t-orange); }
.tl-kicker-amber { color: var(--tl-t-amber); }
.tl-kicker-pink { color: var(--tl-t-pink); }
.tl-kicker-muted { color: var(--tl-muted); }
.tl-step-tag { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: #fff; font-size: 0.8rem; letter-spacing: 0; }
.tl-bg-blue { background: #1D6FE0; }
.tl-bg-violet { background: var(--tl-violet); }
.tl-bg-green { background: #15803D; }
.tl-bg-orange { background: #C2410C; }
.tl-bg-amber { background: #B45309; }
.tl-lede { max-width: 640px; color: var(--tl-muted); margin: 0 0 1.2rem; }
.tl-lede strong { color: var(--tl-ink); }
.tl-lede-center { margin-inline: auto; text-align: center; }
.tl-head-center { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.tl-head-center h2 { margin-inline: auto; max-width: 18em; }
.tl-cap { margin: 0; padding: 12px 4px 0; color: var(--tl-muted); font-size: 0.92rem !important; font-weight: 650; text-align: center; line-height: 1.45 !important; }
.tl-cap strong { color: var(--tl-ink); }

/* Phone device frame — real app screenshots */
.tl-device { margin: 0; }
.tl-device img {
  display: block; width: 100%; height: auto; aspect-ratio: 390 / 844;
  border-radius: clamp(18px, 2.4vw, 30px);
  border: clamp(5px, 0.7vw, 8px) solid var(--tl-device-bezel);
  box-shadow: var(--tl-shadow-device);
  background: #F5F7FB;
  box-sizing: border-box;
}
/* Cropped screenshot card */
.tl-shot { margin: 0; }
.tl-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 18px; border: 1px solid var(--tl-border);
  box-shadow: var(--tl-shadow-soft); background: #F5F3FF;
}

.tl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.tl-split-rev > .tl-split-visual { order: -1; }
.tl-split-copy, .tl-split-visual { min-width: 0; }
.tl-ticks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 12px; }
.tl-ticks li { position: relative; padding-left: 34px; color: var(--tl-muted); line-height: 1.55; font-size: 1.02rem; }
.tl-ticks li strong { color: var(--tl-ink); }
.tl-ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ============================================================
   Hero
   ============================================================ */
.tl-hero { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(118, 84, 244, 0.10), transparent 70%),
    radial-gradient(40rem 24rem at 5% 0%, rgba(45, 156, 253, 0.08), transparent 70%);
}
.tl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tl-hero-copy { min-width: 0; }
.tl-subhead { margin: 0 0 1.6rem; font-size: clamp(18px, 1.5vw, 21px) !important; line-height: 1.55 !important; color: var(--tl-muted); max-width: 33em; }
.tl-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.tl-cta-row-center { justify-content: center; }
.tl-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.tl-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--tl-muted); font-size: 0.93rem; font-weight: 700; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.tl-hero-visual { min-width: 0; }
.tl-phone-fan { position: relative; width: min(100%, 560px); aspect-ratio: 560 / 520; margin-inline: auto; }
.tl-phone-fan .tl-device { position: absolute; top: 0; }
.tl-device-center { left: 50%; width: 46%; transform: translateX(-50%); z-index: 3; }
.tl-device-left { left: 2%; width: 37%; top: 9% !important; transform: rotate(-6deg); z-index: 1; }
.tl-device-right { right: 2%; width: 37%; top: 9% !important; transform: rotate(6deg); z-index: 2; }
.tl-device-left img, .tl-device-right img { filter: saturate(0.95); }
.tl-phone-fan .tl-device img { aspect-ratio: auto; height: auto; }
.tl-phone-fan::after { /* fade the bottom of the fan so phones don't look cut */
  content: ""; position: absolute; inset: auto -4% -1px -4%; height: 26%; z-index: 4;
  background: linear-gradient(to bottom, transparent, var(--tl-bg) 92%);
  pointer-events: none;
}
.tl-phone-fan { overflow: hidden; }
.tl-hero-note { margin: 6px 0 0; text-align: center; color: var(--tl-muted); font-size: 0.85rem !important; font-weight: 650; }

/* Signature flow */
.tl-flow {
  display: flex; align-items: stretch; justify-content: center; gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
}
.tl-flow-step {
  flex: 1 1 0; max-width: 230px; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n t" "n s";
  column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--tl-surface); border: 1px solid var(--tl-border); box-shadow: 0 6px 18px rgba(21,21,31,0.05);
  color: var(--tl-ink); text-decoration: none; transition: transform 0.2s var(--tl-ease), border-color 0.2s;
}
.tl-flow-step:hover { transform: translateY(-2px); border-color: var(--tl-violet); color: var(--tl-ink); }
.tl-flow-n { grid-area: n; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; font-weight: 800; }
.tl-flow-step strong { grid-area: t; font-size: 1rem; }
.tl-flow-step small { grid-area: s; color: var(--tl-muted); font-size: 0.86rem; font-weight: 600; }
.tl-flow-arrow { align-self: center; color: var(--tl-muted); font-weight: 800; }

/* ============================================================
   Capture (Brain Dump)
   ============================================================ */
.tl-capture { background: var(--tl-bg-alt); }
.tl-dump { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 1.6rem 0 0.4rem; padding: 18px 18px 64px; border-radius: 22px; background: var(--tl-surface); border: 1px dashed var(--tl-border); max-width: 420px; }
.tl-thought {
  display: inline-block; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 0.98rem;
  background: var(--tl-surface-2); border: 1px solid var(--tl-border); color: var(--tl-ink);
  transform: translateX(var(--x)) rotate(var(--r));
  transition: transform 0.7s var(--tl-ease), background 0.4s, border-color 0.4s;
  transition-delay: calc(var(--i) * 110ms + 200ms);
}
.tl-dump.is-visible .tl-thought { transform: none; background: #EAF2FF; border-color: rgba(45, 127, 249, 0.35); color: #15151F; }
.tl-dump-into {
  position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px; border-radius: 12px; background: #1D6FE0; color: #fff; font-weight: 800; font-size: 0.95rem;
}
.tl-point { margin: 0.8rem 0 0; font-weight: 800; color: var(--tl-ink); }
.tl-device-solo { width: min(320px, 78vw); margin-inline: auto; }

/* ============================================================
   Organize
   ============================================================ */
.tl-morph-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.tl-morph-flow { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.tl-plain-card {
  display: flex; align-items: center; gap: 12px; width: min(100%, 470px); box-sizing: border-box;
  padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(21,21,31,0.08);
  box-shadow: var(--tl-shadow-soft); color: #15151F; font-size: 1.1rem; font-weight: 600;
}
.tl-plain-ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #D4D7E1; flex: none; }
.tl-morph-label { margin: 10px 0 0; color: var(--tl-muted); font-size: 0.95rem !important; font-weight: 700; }
.tl-morph-arrow { font-size: 1.6rem; color: var(--tl-violet); margin: 4px 0 8px; font-weight: 800; }
.tl-shot-card { width: min(100%, 470px); }
.tl-attr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-attr-list li {
  display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "i t" "i s"; column-gap: 12px;
  padding: 10px 14px; border-radius: 16px; background: var(--tl-surface); border: 1px solid var(--tl-border);
}
.tl-attr-ico { grid-area: i; align-self: center; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.tl-attr-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-attr-list strong { grid-area: t; font-size: 1rem; }
.tl-attr-list span:not(.tl-attr-ico) { grid-area: s; color: var(--tl-muted); font-size: 0.93rem; line-height: 1.4; }
.tl-detail-row { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: clamp(18px, 3vw, 32px); margin-top: clamp(32px, 5vw, 56px); }

/* ============================================================
   Focus (Sprint)
   ============================================================ */
.tl-focus { background: var(--tl-bg-alt); }
.tl-underline { background: linear-gradient(transparent 70%, rgba(34, 197, 94, 0.45) 70%); padding: 0 0.08em; }
.tl-storyboard { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(18px, 3.5vw, 48px); }
.tl-storyboard li { position: relative; min-width: 0; }
.tl-storyboard li + li::before {
  content: "→"; position: absolute; left: calc(clamp(18px, 3.5vw, 48px) / -2); top: 42%; transform: translate(-50%, -50%);
  color: var(--tl-t-green); font-weight: 800; font-size: 1.5rem;
}
.tl-sb-cap { margin: 16px 0 0; text-align: center; color: var(--tl-muted); font-size: 0.97rem !important; line-height: 1.5 !important; }
.tl-sb-cap strong { display: block; color: var(--tl-ink); font-size: 1.05rem; }
.tl-sb-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #16A34A; color: #fff; font-weight: 800; font-size: 0.85rem; margin-bottom: 6px; }
.tl-equation { margin: clamp(32px, 5vw, 52px) auto 0; text-align: center; font-weight: 700; color: var(--tl-muted); }
.tl-eq { display: inline-block; padding: 3px 12px; border-radius: 999px; color: #fff; font-weight: 800; }
.tl-eq-blue { background: #1D6FE0; }
.tl-eq-green { background: #15803D; }
.tl-eq-sep { margin: 0 10px; }

/* ============================================================
   Family
   ============================================================ */
.tl-family-visual { position: relative; display: flex; justify-content: flex-start; padding-bottom: 210px; }
.tl-shot-tall { width: min(330px, 70vw); }
.tl-shot-tall img { border-radius: 26px; }
.tl-shot-float { position: absolute; right: 0; bottom: 0; width: min(300px, 62vw); }
.tl-shot-float .tl-cap { background: var(--tl-surface); border: 1px solid var(--tl-border); border-radius: 12px; padding: 8px 10px; margin-top: 8px; }

/* ============================================================
   Everyday
   ============================================================ */
.tl-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: clamp(28px, 6vw, 88px); }
.tl-duo-item { min-width: 0; text-align: center; }
.tl-duo-item .tl-device { width: min(300px, 78vw); margin: 0 auto 22px; }
.tl-duo-item p { color: var(--tl-muted); margin: 0.5rem 0 0; }
.tl-mini-flow { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; padding: 0; counter-reset: mf; }
.tl-mini-flow li { counter-increment: mf; padding: 5px 10px; border-radius: 999px; background: var(--tl-surface); border: 1px solid var(--tl-border); font-size: 0.86rem; font-weight: 750; color: var(--tl-ink); }
.tl-mini-flow li::before { content: counter(mf) " · "; color: var(--tl-t-pink); }

/* ============================================================
   Control (dark band in both themes)
   ============================================================ */
.tl-control { background: #12131B; color: #EEF0F7; border-block: 1px solid rgba(255, 255, 255, 0.06); }
.tl-control h2, .tl-control h3 { color: #fff; }
.tl-control .tl-lede, .tl-control p { color: #B5BACB; }
.tl-control .tl-kicker-amber { color: #FCD34D; }
.tl-control .tl-lede em { color: #fff; font-style: normal; font-weight: 800; }
.tl-host-diagram { display: grid; grid-template-columns: 1fr 56px 1.3fr 56px 1fr; align-items: center; gap: 8px; max-width: 980px; margin: 0 auto clamp(32px, 5vw, 48px); }
.tl-hd-col { padding: 18px; border-radius: 20px; background: #1B1D28; border: 1px solid rgba(255,255,255,0.10); text-align: center; }
.tl-hd-title { margin: 0 0 8px; color: #fff !important; font-weight: 800; font-size: 1rem !important; }
.tl-hd-sub { margin: -4px 0 10px; font-size: 0.85rem !important; }
.tl-hd-server { border: 2px solid #7C5CFC; background: linear-gradient(180deg, #221E3A, #1B1D28); box-shadow: 0 20px 50px rgba(124, 92, 252, 0.25); }
.tl-hd-people { list-style: none; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.tl-hd-people li { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.tl-hd-people li:nth-child(1) { background: #0F9F8F; } .tl-hd-people li:nth-child(2) { background: #8B5CF6; }
.tl-hd-people li:nth-child(3) { background: #A855F7; } .tl-hd-people li:nth-child(4) { background: #EA580C; }
.tl-hd-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-hd-stack li { padding: 8px 10px; border-radius: 10px; background: rgba(124, 92, 252, 0.18); color: #E9E5FF; font-weight: 700; font-size: 0.92rem; }
.tl-hd-crossed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-hd-crossed li { padding: 6px 8px; color: #9095A8; text-decoration: line-through; text-decoration-color: #F87171; text-decoration-thickness: 2px; font-weight: 700; font-size: 0.92rem; }
.tl-hd-link span { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #22C55E, #7C5CFC); position: relative; }
.tl-hd-link span::before, .tl-hd-link span::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: #22C55E; transform: translateY(-50%); }
.tl-hd-link span::before { left: -2px; } .tl-hd-link span::after { right: -2px; background: #7C5CFC; }
.tl-hd-link-cut span { background: repeating-linear-gradient(90deg, #F87171 0 6px, transparent 6px 11px); }
.tl-hd-link-cut span::before, .tl-hd-link-cut span::after { display: none; }
.tl-proof-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1080px; }
.tl-proof-grid li { padding: 18px; border-radius: 18px; background: #1B1D28; border: 1px solid rgba(255,255,255,0.10); }
.tl-proof-grid p { margin: 0; font-size: 0.95rem !important; }
.tl-control-note { max-width: 760px; margin: 24px auto 0; text-align: center; font-size: 0.93rem !important; }

/* ============================================================
   Open source
   ============================================================ */
.tl-repo-card {
  display: grid; gap: 12px; padding: clamp(22px, 3vw, 30px); border-radius: 24px; text-decoration: none;
  background: var(--tl-surface); border: 1px solid var(--tl-border); box-shadow: var(--tl-shadow-soft); color: var(--tl-ink);
  transition: transform 0.2s var(--tl-ease), border-color 0.2s;
}
.tl-repo-card:hover { transform: translateY(-3px); border-color: var(--tl-violet); color: var(--tl-ink); }
.tl-repo-top { display: flex; align-items: center; gap: 12px; }
.tl-repo-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.tl-repo-desc { color: var(--tl-muted); }
.tl-repo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-repo-tags span { padding: 4px 10px; border-radius: 999px; background: var(--tl-surface-2); border: 1px solid var(--tl-border); font-size: 0.82rem; font-weight: 750; }
.tl-repo-go { color: var(--tl-link); font-weight: 800; }
.tl-europe { margin: 18px 0 0; text-align: center; font-weight: 800; color: var(--tl-ink); }

/* ============================================================
   Install
   ============================================================ */
.tl-install { background: var(--tl-bg-alt); }
.tl-req { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 1rem 0 0; padding: 0; }
.tl-req li { padding: 7px 14px; border-radius: 999px; background: var(--tl-surface); border: 1px solid var(--tl-border); font-weight: 700; font-size: 0.92rem; color: var(--tl-ink); }
.tl-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 14px; max-width: 860px; }
.tl-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 20px; background: var(--tl-surface); border: 1px solid var(--tl-border); }
.tl-step-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: #fff; font-weight: 800; }
.tl-step-body { min-width: 0; }
.tl-step-body h3 { margin: 6px 0 10px !important; }
.tl-step-note { margin: 8px 0 0; color: var(--tl-muted); font-size: 0.98rem !important; }
.tl-code { position: relative; border-radius: 14px; background: var(--tl-code-bg); }
.tl-code pre { margin: 0; padding: 14px 84px 14px 16px; overflow-x: auto; color: var(--tl-code-ink); font-size: 0.9rem; line-height: 1.6; }
.tl-code code { background: none; border: 0; padding: 0; color: inherit; white-space: pre; }
.tl-copy {
  position: absolute; top: 8px; right: 8px; min-height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18); background: #2A2D3A; color: #fff; font: inherit; font-weight: 750; font-size: 0.85rem;
}
.tl-copy:hover { background: #3A3E50; }
.tl-install-cta { margin-top: clamp(28px, 4vw, 40px); text-align: center; }
.tl-install-sub { margin: 12px 0 0; color: var(--tl-muted); font-size: 0.95rem !important; }

/* ============================================================
   Vision + final
   ============================================================ */
.tl-roadmap { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1080px; }
.tl-roadmap li { padding: 20px; border-radius: 20px; background: var(--tl-surface); border: 1px solid var(--tl-border); }
.tl-roadmap p { margin: 0; color: var(--tl-muted); font-size: 0.95rem !important; }
.tl-badge-next, .tl-badge-now { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.tl-badge-next { background: var(--tl-surface-2); color: var(--tl-muted); border: 1px dashed var(--tl-border); }
.tl-badge-now { background: rgba(22, 163, 74, 0.14); color: var(--tl-t-green); }
.tl-vision-link { text-align: center; margin: 24px 0 0; font-weight: 800; }
.tl-final { text-align: center; background:
  radial-gradient(40rem 20rem at 50% 0%, rgba(118, 84, 244, 0.14), transparent 70%); }
.tl-final-inner { display: flex; flex-direction: column; align-items: center; }
.tl-final-logo { width: 64px; height: 64px; margin-bottom: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .tl-nav-link { padding-inline: 8px; }
  .tl-gh-text { display: none; }
}
@media (max-width: 1023px) {
  .tl-hero-grid { grid-template-columns: 1fr; }
  .tl-hero-copy { text-align: center; }
  .tl-subhead, .tl-hero-copy .tl-lede { margin-inline: auto; }
  .tl-cta-row, .tl-trust { justify-content: center; }
  .tl-hero h1 { margin-inline: auto; }
  .tl-morph-grid { grid-template-columns: 1fr; }
  .tl-attr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-proof-grid, .tl-roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-host-diagram { grid-template-columns: 1fr; max-width: 420px; }
  .tl-hd-link { height: 36px; display: flex; justify-content: center; }
  .tl-hd-link span { width: 3px; height: 100%; }
  .tl-hd-link span::before { left: 50%; top: 0; transform: translate(-50%, 0); }
  .tl-hd-link span::after { left: 50%; right: auto; top: auto; bottom: 0; transform: translate(-50%, 0); }
  .tl-hd-link-cut span { background: repeating-linear-gradient(180deg, #F87171 0 6px, transparent 6px 11px); }
  .tl-main-nav { display: none; }
}
@media (max-width: 860px) {
  .tl-split { grid-template-columns: 1fr; }
  .tl-split-rev > .tl-split-visual { order: 0; }
  .tl-split-copy { max-width: 640px; margin-inline: auto; }
  .tl-dump { margin-inline: auto; }
  .tl-footer-cols { grid-template-columns: 1fr 1fr; }
  .tl-footer-brandblock { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .tl-section { padding-block: 56px; }
  .tl-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tl-flow-arrow { display: none; }
  .tl-flow-step { max-width: none; padding: 12px; column-gap: 10px; }
  .tl-flow-n { width: 30px; height: 30px; border-radius: 10px; }
  .tl-flow-step small { font-size: 0.8rem; }
  .tl-storyboard { grid-template-columns: minmax(0, 300px); }
  .tl-storyboard li + li::before { content: "↓"; left: 50%; top: calc(clamp(18px, 3.5vw, 48px) / -2); }
  .tl-storyboard li + li { margin-top: 18px; }
  .tl-detail-row { grid-template-columns: minmax(0, 1fr); }
  .tl-duo { grid-template-columns: minmax(0, 1fr); }
  .tl-attr-list { grid-template-columns: 1fr; }
  .tl-proof-grid, .tl-roadmap { grid-template-columns: 1fr; }
  .tl-family-visual { flex-direction: column; align-items: center; padding-bottom: 0; gap: 18px; }
  .tl-shot-float { position: static; width: min(330px, 86vw); }
  .tl-eq-sep { display: block; height: 6px; overflow: hidden; color: transparent; }
  .tl-step { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .tl-step-badge { width: 34px; height: 34px; border-radius: 11px; }
  .tl-code pre { padding-right: 16px; padding-top: 48px; font-size: 0.84rem; }
}
@media (max-width: 560px) {
  .tl-site-header { padding: 8px 12px; }
  .tl-header-actions { gap: 6px; }
  .tl-hide-sm { display: none; }
  .tl-logo-wordmark { font-size: 18px; }
  .tl-logo-img { width: 32px; height: 32px; }
  .tl-cta-row .tl-cta, .tl-cta-row .tl-btn-ghost { width: 100%; }
  .tl-trust { gap: 6px 14px; }
  .tl-trust li { font-size: 0.86rem; }
  .tl-footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .tl-logo-wordmark { display: none; }
}

.tl-docs-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Desktop >=1200px: render the subnav as a single row like before the fix.
   The docs content column is narrower than the row, so let the nav box size
   to its content (max-content) - it fits inside the viewport at >=1200px and
   the overflow-x:auto fallback above still contains anything wider. */
@media (min-width: 1200px) {
  .tl-docs-subnav {
    width: max-content;
    max-width: calc(100vw - 48px);
  }
}

/* ============================================================
   Reference page: keep the Swagger shell inside the docs column.
   If Swagger UI content (opblock/table/model) is wider than the
   docs layout it scrolls inside the shell instead of pushing the
   page into horizontal overflow at 390/768.
   ============================================================ */
.tl-swagger-shell {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tl-swagger-shell .swagger-ui .opblock,
.tl-swagger-shell .swagger-ui table,
.tl-swagger-shell .swagger-ui pre {
  max-width: 100%;
}@media (max-width: 767px) {
  .tl-storyboard { grid-template-columns: minmax(0, 250px); }
}
.tl-cta-header { gap: 0; }
.tl-cta-header .tl-hide-sm { white-space: pre; }
.tl-sb-tag { margin: 0 0 10px; text-align: center; font-size: 0.85rem !important; font-weight: 800; }
.tl-sb-tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.tl-sb-tag-blue { color: var(--tl-t-blue); }
.tl-sb-tag-green { color: var(--tl-t-green); }
.tl-sb-tag-violet { color: var(--tl-t-violet); }
.tl-code pre { padding-top: 46px; padding-right: 16px; }

/* QA fixes */
.wp-site-blocks > main.tl-journey { margin-block-start: 0; }
.tl-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-code code { white-space: inherit; }
.tl-copy { min-height: 44px; min-width: 64px; top: 4px; right: 4px; }
.tl-code pre { padding-top: 52px; }
.tl-roadmap a, .tl-vision-link a { display: inline-block; padding-block: 11px; }
@media (max-width: 767px) { .tl-footer-col a { padding: 11px 0; } }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================================================
   Wordmark: same typeface/weight as the app logo (Inter 600).
   Tiny subset (t,o,d,l,e,s) of Inter — SIL Open Font License 1.1.
   ============================================================ */
@font-face {
  font-family: "todoless wordmark";
  src: url("/wp-content/uploads/todoless/fonts/inter-600-wordmark.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
.tl-logo-wordmark { font-family: "todoless wordmark", Inter, ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.tl-logo-link { gap: 8px; }

/* Attribute legend (mirrors the app's action bar) */
.tl-attr-wrap { min-width: 0; }
.tl-attr-title { margin: 0 0 12px; font-size: 0.82rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tl-muted); }
.tl-attr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tl-attr-list li, .tl-attr-mini li, .tl-vis-list li { grid-template-areas: "i t" "i q" "i s"; align-items: start; }
.tl-attr-list em { grid-area: q; font-style: normal; font-weight: 700; color: var(--c); font-size: 0.86rem; filter: saturate(1.1); }
:root[data-theme="dark"] .tl-attr-list em { filter: brightness(1.5); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-attr-list em { filter: brightness(1.5); } }
.tl-attr-list li span:not(.tl-attr-ico) { font-size: 0.88rem; }
.tl-attr-ico { align-self: start !important; }
.tl-attr-mini, .tl-vis-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.tl-attr-mini li, .tl-vis-list li {
  display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "i t" "i s"; column-gap: 12px;
  padding: 10px 14px; border-radius: 16px; background: var(--tl-surface); border: 1px solid var(--tl-border);
}
.tl-attr-mini strong, .tl-vis-list strong { grid-area: t; }
.tl-attr-mini span:not(.tl-attr-ico), .tl-vis-list span:not(.tl-attr-ico) { grid-area: s; color: var(--tl-muted); font-size: 0.92rem; line-height: 1.45; }
.tl-vis-list em { font-style: normal; color: var(--tl-ink); font-weight: 650; }
.tl-grocery-item { margin-top: 18px; }
.tl-duo-p { margin-bottom: 0; }

/* Label visibility */
.tl-vis { margin-top: clamp(40px, 6vw, 72px); }
.tl-vis-title { text-align: center; font-size: clamp(22px, 2.6vw, 30px) !important; margin-bottom: 24px !important; }
.tl-vis-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 460px); justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px); }
.tl-vis-list li { padding: 14px 16px; }
.tl-vis-list strong { font-size: 1.05rem; }
.tl-vis-sub { text-align: center; color: var(--tl-muted); font-weight: 700; margin: clamp(28px, 4vw, 44px) 0 18px; }
.tl-views { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; align-items: start; gap: clamp(14px, 2.5vw, 28px); }
@media (max-width: 1023px) {
  .tl-attr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tl-attr-list { grid-template-columns: 1fr; }
  .tl-vis-grid, .tl-views { grid-template-columns: minmax(0, 340px); }
}
/* Organize: flow on top, the full action-bar legend underneath */
.tl-morph-grid { grid-template-columns: 1fr; justify-items: center; }
.tl-attr-wrap { width: 100%; }
.tl-attr-title { text-align: center; }
.tl-attr-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tl-attr-list li { grid-template-columns: 1fr; grid-template-areas: "i" "t" "q" "s"; row-gap: 2px; padding: 14px; }
.tl-attr-list .tl-attr-ico { margin-bottom: 8px; }
@media (max-width: 1023px) { .tl-attr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .tl-attr-list { grid-template-columns: 1fr; }
  .tl-attr-list li { grid-template-columns: 40px 1fr; grid-template-areas: "i t" "i q" "i s"; }
  .tl-attr-list .tl-attr-ico { margin-bottom: 0; }
}
.tl-attr-mini li { padding: 8px 12px; }
.tl-attr-list em { color: var(--tl-ink) !important; filter: none !important; }

/* Docs sub-navigation as a compact chip bar inside the content column */
.wp-block-post-content .tl-docs-subnav {
  width: auto !important; max-width: var(--wp--style--global--content-size) !important; margin-inline: auto !important;
  display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; font-size: 0 !important; color: transparent;
}
.tl-docs-subnav a {
  font-size: 0.88rem; font-weight: 700; text-decoration: none; padding: 7px 12px; border-radius: 999px;
  background: var(--tl-surface); border: 1px solid var(--tl-border); color: var(--tl-ink); min-height: 20px;
}
.tl-docs-subnav a:hover { border-color: var(--tl-violet); color: var(--tl-ink); }
.tl-docs-subnav a[aria-current="page"] { background: var(--tl-violet-strong); border-color: var(--tl-violet-strong); color: #fff; }
