/*
Theme Name: Trustline
Theme URI: https://example.com/trustline
Author: Trustline Studio
Author URI: https://example.com
Description: Trust Ledger — a calm, audit-document design for cautious brand-review editorial content (regulated-vertical guides: licence checks, bonus terms, payment caveats, verification steps). Verdict panels read like certificate stamps, rating boxes read like ledger sheets, and a muted traffic-light signal system (verified / partial / unverified) runs through every callout. No page builder, no SEO plugin required — all SEO logic lives in the theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trustline
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready

Design card
------------
Composition   : Single reading column with a right-hand sticky rail on pages
                that have enough headings for a TOC (breadcrumbs + TOC +
                "related in this section"); the front page (hub) keeps its
                own two-column hero. A dedicated "explore this section"
                block auto-lists sibling/child pages using native WP page
                hierarchy — no manual interlinking markup needed from the
                theme's side, since the imported content already carries
                its own hand-written editorial links.
Header        : Single clean layout — logo left, primary nav right, a thin
                "editorial guide, not an operator" disclaimer strip above it.
Palette       : Warm paper background, ink-navy text, one ledger-navy accent
                for links/brand, plus a muted three-state traffic-light
                signal system (verified / partial / unverified) used
                throughout verdict panels, rating boxes and scorecards.
Typography    : A serif (Source Serif 4) for headlines — evokes a printed
                report rather than a marketing page — IBM Plex Sans for body
                copy, IBM Plex Mono for status stamps, ledger labels and
                numeric data.
Cards         : 1px hairline border, small 10px radius (an "official
                document" corner, not zero, not fully rounded), no shadow at
                rest, a soft lift shadow on hover — restrained throughout.
Motif         : Certificate-style dashed inner rule on the verdict panel,
                monospace bracket-stamp labels ([VERIFIED] / [PARTIAL] /
                [UNVERIFIED]), ledger-sheet row dividers on rating boxes and
                tables.

IMPORTANT — this theme's compatibility architecture is different from its
sibling themes (Matchline / Oddsline, built for a different content family).
------------------------------------------------------------------------------
Those themes import content that ships its own per-page <style> block
printed after the theme's stylesheet, so their CSS had to avoid ever tying
in specificity with that incoming content stylesheet.

This content family (brand/regulated-vertical review guides) ships NO
per-page stylesheet and NO inline styles at all — every page in the family
uses one FIXED, shared set of semantic class names (hero-grid, verdict-panel,
rating-box, table-wrap, split-section, cards/three/four, info-box,
check-list, numbered-list, route-map, eyebrow, lead, hero-actions, hero-card,
plus native <details>/<summary> for FAQs). Those class names are a stable
content contract for this whole family, not one-off per-import styling, so
this theme owns them directly and styles them as first-class components —
no specificity-avoidance strategy needed here, no !important anywhere.
Only this theme's OWN new chrome (shell, nav, breadcrumbs, TOC rail,
pagination, related block, footer) is prefixed "tsl-" — content classes are
used exactly as the content contract defines them, unprefixed.
*/

/* ============================================================
   1) FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   2) DESIGN TOKENS (all prefixed --tsl-)
   ============================================================ */
:root{
  --tsl-paper:#f7f4ec;
  --tsl-surface:#ffffff;
  --tsl-surface-raised:#fbf9f3;
  --tsl-ink:#1b2430;
  --tsl-ink-muted:#58626e;
  --tsl-ink-faint:#8b939c;
  --tsl-line:#ddd6c6;
  --tsl-line-strong:#c7bea8;
  --tsl-accent:#2c4a6e;
  --tsl-accent-ink:#ffffff;
  --tsl-accent-wash:#e4eaf1;

  --tsl-verified:#2f6d4f;
  --tsl-verified-bg:#e6f0e9;
  --tsl-verified-line:#bcd7c4;
  --tsl-partial:#93641d;
  --tsl-partial-bg:#f5ecd8;
  --tsl-partial-line:#dfc78e;
  --tsl-unverified:#a13d34;
  --tsl-unverified-bg:#f5e2df;
  --tsl-unverified-line:#e0b3ac;

  --tsl-font-head:"Source Serif 4",Georgia,"Times New Roman",serif;
  --tsl-font-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --tsl-font-mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Consolas,monospace;

  --tsl-shell-width:1240px;
  --tsl-read-width:760px;
  --tsl-radius:10px;
  --tsl-radius-lg:20px;
  --tsl-shadow:0 2px 10px rgba(27,36,48,.06);
  --tsl-shadow-hover:0 10px 28px rgba(27,36,48,.10);
}

#tsl-shell.tsl-variant-dark{
  --tsl-paper:#151a20;
  --tsl-surface:#1c222a;
  --tsl-surface-raised:#212832;
  --tsl-ink:#eef0ee;
  --tsl-ink-muted:#a1a9b2;
  --tsl-ink-faint:#727b85;
  --tsl-line:#333c46;
  --tsl-line-strong:#454f5b;
  --tsl-accent:#7fa8d6;
  --tsl-accent-ink:#101418;
  --tsl-accent-wash:#22354a;
  --tsl-verified:#6ec397;
  --tsl-verified-bg:#1c3327;
  --tsl-verified-line:#2f5b41;
  --tsl-partial:#e0b45a;
  --tsl-partial-bg:#3a2e14;
  --tsl-partial-line:#6b551f;
  --tsl-unverified:#e08b80;
  --tsl-unverified-bg:#3a201d;
  --tsl-unverified-line:#6b3730;
  --tsl-shadow:0 2px 10px rgba(0,0,0,.3);
  --tsl-shadow-hover:0 10px 28px rgba(0,0,0,.4);
}

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

/* ============================================================
   3) SHELL
   ============================================================ */
#tsl-shell{
  background:var(--tsl-paper);
  color:var(--tsl-ink);
  font-family:var(--tsl-font-body);
  font-size:1rem;
  line-height:1.65;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
#tsl-shell img{max-width:100%;height:auto;}
#tsl-shell :focus-visible{outline:3px solid var(--tsl-accent);outline-offset:2px;}

.tsl-skip-link{
  position:absolute;left:-9999px;top:0;z-index:9999;
  background:var(--tsl-accent);color:var(--tsl-accent-ink);
  padding:.8em 1.2em;font-family:var(--tsl-font-mono);font-weight:600;font-size:.85rem;text-decoration:none;
}
.tsl-skip-link:focus{left:1rem;top:1rem;}

.tsl-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ============================================================
   4) DISCLAIMER STRIP + HEADER (#tsl-site-header)
   ============================================================ */
#tsl-disclaimer-strip{
  background:var(--tsl-ink);
  color:#d7dce2;
  font-family:var(--tsl-font-mono);
  font-size:.72rem;
  letter-spacing:.03em;
  text-align:center;
  padding:.45em 1rem;
}
#tsl-disclaimer-strip strong{color:#fff;}

#tsl-site-header{
  border-bottom:1px solid var(--tsl-line);
  background:var(--tsl-surface);
  position:sticky;top:0;z-index:40;
}
#tsl-site-header .tsl-header-row{
  max-width:var(--tsl-shell-width);margin:0 auto;padding:1.1rem 1.5rem;
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
}
#tsl-site-header .tsl-brand{display:inline-flex;align-items:baseline;gap:.55em;text-decoration:none;color:var(--tsl-ink);}
#tsl-site-header .tsl-brand img{display:block;height:36px;width:auto;}
#tsl-site-header .tsl-brand .tsl-brand-name{font-family:var(--tsl-font-head);font-weight:700;font-size:1.35rem;letter-spacing:-.01em;}
#tsl-site-header .tsl-brand .tsl-brand-strap{font-family:var(--tsl-font-mono);font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--tsl-ink-faint);}

#tsl-site-header .tsl-nav{display:flex;}
#tsl-site-header .tsl-nav ul{list-style:none;display:flex;gap:1.7rem;margin:0;padding:0;}
#tsl-site-header .tsl-nav .tsl-nav__link{
  font-family:var(--tsl-font-body);font-weight:600;font-size:.92rem;color:var(--tsl-ink);
  text-decoration:none;padding:.3em .05em;border-bottom:2px solid transparent;
}
#tsl-site-header .tsl-nav .tsl-nav__link:hover,
#tsl-site-header .tsl-nav .tsl-nav__link:focus-visible{color:var(--tsl-accent);border-bottom-color:var(--tsl-accent);}
#tsl-site-header .tsl-nav .sub-menu{list-style:none;margin:0;padding:.4rem 0;position:absolute;background:var(--tsl-surface);border:1px solid var(--tsl-line);border-radius:var(--tsl-radius);min-width:210px;display:none;flex-direction:column;box-shadow:var(--tsl-shadow-hover);}
#tsl-site-header .tsl-nav li{position:relative;}
#tsl-site-header .tsl-nav li:hover > .sub-menu,
#tsl-site-header .tsl-nav li:focus-within > .sub-menu{display:flex;}
#tsl-site-header .tsl-nav .sub-menu .tsl-nav__link{padding:.55em 1rem;display:block;border:none;}
#tsl-site-header .tsl-nav .sub-menu .tsl-nav__link:hover{background:var(--tsl-accent-wash);}

#tsl-site-header .tsl-burger{
  display:none;align-items:center;justify-content:center;flex-direction:column;gap:5px;
  width:42px;height:42px;border:1px solid var(--tsl-line-strong);border-radius:var(--tsl-radius);
  background:transparent;cursor:pointer;padding:0;
}
#tsl-site-header .tsl-burger span{display:block;width:20px;height:2px;background:var(--tsl-ink);}
@media (max-width:900px){
  #tsl-site-header .tsl-nav{display:none;}
  #tsl-site-header .tsl-burger{display:inline-flex;}
}

#tsl-mobile-drawer{
  position:fixed;inset:0 0 0 auto;width:min(86vw,340px);background:var(--tsl-surface);
  border-left:1px solid var(--tsl-line);transform:translateX(100%);transition:transform .25s ease;
  z-index:60;padding:1.25rem 1.5rem;overflow-y:auto;
}
#tsl-mobile-drawer.tsl-is-open{transform:translateX(0);}
#tsl-mobile-drawer ul{list-style:none;margin:0;padding:0;}
#tsl-mobile-drawer li{border-bottom:1px solid var(--tsl-line);}
#tsl-mobile-drawer .tsl-nav__link{display:block;padding:.85em 0;font-weight:600;color:var(--tsl-ink);text-decoration:none;}
#tsl-mobile-drawer .tsl-drawer-close{border:1px solid var(--tsl-line-strong);border-radius:var(--tsl-radius);background:none;width:36px;height:36px;font-size:1.1rem;cursor:pointer;margin-bottom:1rem;color:var(--tsl-ink);}
#tsl-drawer-overlay{position:fixed;inset:0;background:rgba(20,24,29,.55);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:55;}
#tsl-drawer-overlay.tsl-is-open{opacity:1;pointer-events:auto;}

/* ============================================================
   5) LAYOUT
   ============================================================ */
#main-content{max-width:var(--tsl-shell-width);margin:0 auto;padding:2.2rem 1.5rem 4rem;width:100%;flex:1;}
#tsl-page-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:3rem;align-items:start;}
#tsl-page-grid.tsl-no-sidebar{display:block;}
.tsl-primary{min-width:0;}
@media (max-width:960px){#tsl-page-grid{grid-template-columns:1fr;}}

/* Reading-width constraint applied directly to narrow/typographic elements
   only (not via a wildcard on every direct child — an ID-scoped wildcard
   would out-specificity the max-width:none overrides the wide components
   below rely on to break out to the full column width, regardless of
   source order). Wide components simply have no max-width rule at all, so
   they naturally fill the column. */
.tsl-primary > article > p,
.tsl-primary > article > h1,
.tsl-primary > article > h2,
.tsl-primary > article > h3,
.tsl-primary > article > ul:not(.cards):not(.check-list):not(.numbered-list),
.tsl-primary > article > ol:not(.cards):not(.check-list):not(.numbered-list){
  max-width:var(--tsl-read-width);
}

/* ============================================================
   6) BREADCRUMBS
   ============================================================ */
#tsl-breadcrumbs{max-width:var(--tsl-shell-width);margin:0 auto;padding:1.1rem 1.5rem 0;}
#tsl-breadcrumbs .tsl-crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:.4em;margin:0;padding:0;font-family:var(--tsl-font-mono);font-size:.76rem;color:var(--tsl-ink-faint);}
#tsl-breadcrumbs .tsl-crumbs li:not(:last-child)::after{content:"/";margin-left:.4em;color:var(--tsl-line-strong);}
#tsl-breadcrumbs .tsl-crumbs a{color:var(--tsl-ink-muted);text-decoration:none;}
#tsl-breadcrumbs .tsl-crumbs a:hover{color:var(--tsl-accent);}
#tsl-breadcrumbs .tsl-crumbs [aria-current="page"]{color:var(--tsl-ink);}

/* ============================================================
   7) ENTRY HEADER
   ============================================================ */
#tsl-entry-header{margin:1.3rem 0 1.6rem;}
#tsl-entry-header .tsl-eyebrow{display:inline-block;font-family:var(--tsl-font-mono);font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--tsl-accent);margin-bottom:.6em;}
#tsl-entry-header .tsl-entry-title{font-family:var(--tsl-font-head);font-weight:700;font-size:clamp(1.9rem,4vw,2.7rem);line-height:1.15;margin:0 0 .5em;color:var(--tsl-ink);max-width:900px;}
.tsl-meta-row{display:flex;flex-wrap:wrap;gap:1.1em;font-family:var(--tsl-font-mono);font-size:.76rem;color:var(--tsl-ink-muted);padding-top:.8em;border-top:1px solid var(--tsl-line);}
.tsl-meta-row .tsl-meta-item{display:inline-flex;align-items:center;gap:.4em;}
.tsl-meta-row .tsl-meta-item a{color:var(--tsl-ink-muted);text-decoration:none;}
.tsl-meta-row .tsl-meta-item a:hover{color:var(--tsl-accent);}

#tsl-featured-figure{margin:0 0 1.6rem;}
#tsl-featured-figure img{width:100%;height:auto;display:block;border-radius:var(--tsl-radius-lg);border:1px solid var(--tsl-line);}

/* ============================================================
   8) TOC RAIL
   ============================================================ */
#tsl-sidebar{position:sticky;top:90px;}
.tsl-sidebar-box{background:var(--tsl-surface);border:1px solid var(--tsl-line);border-radius:var(--tsl-radius-lg);padding:1.2rem 1.3rem;}
.tsl-toc{font-size:.9rem;}
.tsl-toc .tsl-toc__title{font-family:var(--tsl-font-mono);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;color:var(--tsl-ink-faint);margin:0 0 .8em;}
.tsl-toc ol,.tsl-toc ol ol{list-style:none;margin:0;padding:0;}
.tsl-toc li{margin:0;}
.tsl-toc .tsl-toc__link{display:block;padding:.3em 0;color:var(--tsl-ink-muted);text-decoration:none;border-left:2px solid transparent;padding-left:.6em;margin-left:-.6em;}
.tsl-toc .tsl-toc__link:hover,.tsl-toc .tsl-toc__link:focus-visible,.tsl-toc .tsl-toc__link.tsl-is-active{color:var(--tsl-ink);border-left-color:var(--tsl-accent);}
.tsl-toc ol ol{padding-left:1em;}

/* ============================================================
   9) CONTENT CLASS CONTRACT — styled directly, no specificity
      games needed (see file header note).
   ============================================================ */
.tsl-entry-content, .entry-content{max-width:var(--tsl-read-width);}

h1,h2,h3{font-family:var(--tsl-font-head);line-height:1.2;margin:1.6em 0 .6em;color:var(--tsl-ink);}
h1{font-size:clamp(1.9rem,4vw,2.7rem);}
h2{font-size:clamp(1.4rem,2.6vw,1.9rem);}
h3{font-size:1.15rem;font-family:var(--tsl-font-body);font-weight:700;}
p{margin:0 0 1.1em;}
a{color:var(--tsl-accent);}
figcaption{color:var(--tsl-ink-faint);font-size:.86rem;margin-top:.6em;}

.eyebrow{display:inline-block;color:var(--tsl-accent);font-family:var(--tsl-font-mono);font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:.76rem;margin-bottom:.5em;}
.lead{font-size:clamp(1.02rem,1.6vw,1.18rem);color:var(--tsl-ink-muted);}

.hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:2.4rem;align-items:center;margin-bottom:2.2rem;max-width:none;}
.hero-grid .hero-copy{max-width:none;}
@media (max-width:880px){.hero-grid{grid-template-columns:1fr;}}
.hero-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.4rem;}
.hero-actions a{display:inline-flex;align-items:center;padding:.7em 1.1em;border:1px solid var(--tsl-accent);border-radius:999px;text-decoration:none;font-weight:600;font-size:.92rem;background:var(--tsl-surface);color:var(--tsl-accent);}
.hero-actions a:first-child{background:var(--tsl-accent);color:var(--tsl-accent-ink);}
.hero-card{margin:0;background:var(--tsl-surface);padding:.9rem;border:1px solid var(--tsl-line);border-radius:var(--tsl-radius-lg);box-shadow:var(--tsl-shadow);max-width:none;}
.hero-card img{border-radius:calc(var(--tsl-radius-lg) - .4rem);}

/* verdict panel — certificate-style stamp */
.verdict-panel{
  display:grid;grid-template-columns:1fr 320px;gap:2rem;
  padding:1.9rem 2rem;margin:0 0 2rem;
  background:var(--tsl-surface);
  border:1px solid var(--tsl-line-strong);
  border-radius:var(--tsl-radius-lg);
  position:relative;
  max-width:none;
}
.verdict-panel::before{
  content:"";position:absolute;inset:10px;
  border:1px dashed var(--tsl-line-strong);
  border-radius:calc(var(--tsl-radius-lg) - 6px);
  pointer-events:none;
}
.verdict-panel h2{margin-top:0;}
@media (max-width:820px){.verdict-panel{grid-template-columns:1fr;}}

.rating-box{background:var(--tsl-surface-raised);border:1px solid var(--tsl-line);border-radius:var(--tsl-radius);padding:1.2rem;}
.rating-box dl{margin:0;}
.rating-box dl div{display:flex;justify-content:space-between;gap:1rem;padding:.7em 0;border-bottom:1px dashed var(--tsl-line);font-family:var(--tsl-font-mono);font-size:.84rem;}
.rating-box dl div:last-child{border-bottom:0;}
.rating-box dt{font-weight:600;color:var(--tsl-ink-muted);}
.rating-box dd{margin:0;text-align:right;font-weight:600;}
/* signal-state colouring: match on the dd text via data attribute the theme
   injects during the_content filtering (see inc/signal-states.php) so
   "Verified"/"Not verified"/"Observed"/"Verify before use" style rows get a
   coloured chip without the imported content needing to know theme classes. */
.rating-box dd[data-tsl-signal="verified"]{color:var(--tsl-verified);}
.rating-box dd[data-tsl-signal="partial"]{color:var(--tsl-partial);}
.rating-box dd[data-tsl-signal="unverified"]{color:var(--tsl-unverified);}

.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--tsl-line);border-radius:var(--tsl-radius-lg);background:var(--tsl-surface);max-width:none;}
.table-wrap table{min-width:640px;margin:0;}
table{width:100%;border-collapse:collapse;}
th,td{padding:.95rem 1.1rem;text-align:left;vertical-align:top;border-bottom:1px solid var(--tsl-line);font-size:.92rem;}
th{background:var(--tsl-surface-raised);font-family:var(--tsl-font-mono);font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:var(--tsl-ink-muted);}
tr:last-child td{border-bottom:0;}

.split-section{display:grid;grid-template-columns:1fr .82fr;gap:2.2rem;align-items:center;margin:2.4rem 0;max-width:none;}
.split-section.reverse{grid-template-columns:.82fr 1fr;}
.split-section > *{max-width:none;}
@media (max-width:880px){.split-section,.split-section.reverse{grid-template-columns:1fr;}}

.check-list,.numbered-list{padding-left:1.3rem;max-width:var(--tsl-read-width);}
.check-list{list-style:none;padding-left:0;}
.check-list li{position:relative;padding-left:1.7rem;margin:.6em 0;}
.check-list li::before{content:"✓";position:absolute;left:0;top:.05em;color:var(--tsl-verified);font-weight:700;}
.numbered-list{counter-reset:tsl-step;list-style:none;}
.numbered-list li{position:relative;padding-left:2.1rem;margin:.7em 0;counter-increment:tsl-step;}
.numbered-list li::before{content:counter(tsl-step);position:absolute;left:0;top:0;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--tsl-accent-wash);color:var(--tsl-accent);font-family:var(--tsl-font-mono);font-size:.76rem;font-weight:700;display:flex;align-items:center;justify-content:center;}

.info-box{background:var(--tsl-surface-raised);border-left:4px solid var(--tsl-accent);border-radius:0 var(--tsl-radius) var(--tsl-radius) 0;padding:1.3rem 1.4rem;max-width:var(--tsl-read-width);}
.info-box h3{margin-top:0;}

.cards{display:grid;gap:1.1rem;margin-top:1.4rem;max-width:none;}
.cards.three{grid-template-columns:repeat(3,1fr);}
.cards.four{grid-template-columns:repeat(4,1fr);}
.cards article{background:var(--tsl-surface);border:1px solid var(--tsl-line);border-radius:var(--tsl-radius);padding:1.3rem;box-shadow:var(--tsl-shadow);transition:box-shadow .15s ease,transform .15s ease;}
.cards article:hover{box-shadow:var(--tsl-shadow-hover);transform:translateY(-2px);}
.cards article h3{margin-top:0;}
@media (max-width:880px){.cards.three,.cards.four{grid-template-columns:1fr;}}

.route-map{padding:1.8rem 2rem;border-radius:var(--tsl-radius-lg);background:var(--tsl-surface-raised);border:1px solid var(--tsl-line);max-width:none;}

details{background:var(--tsl-surface);border:1px solid var(--tsl-line);border-radius:var(--tsl-radius);padding:0;margin:.8rem 0;max-width:var(--tsl-read-width);overflow:hidden;}
details summary{cursor:pointer;font-weight:700;padding:.95em 1.1em;list-style:none;position:relative;padding-right:2.4em;}
details summary::-webkit-details-marker{display:none;}
details summary::after{content:"+";position:absolute;right:1.1em;top:50%;transform:translateY(-50%);color:var(--tsl-accent);font-family:var(--tsl-font-mono);font-weight:700;}
details[open] summary::after{content:"\2212";}
details > p{padding:0 1.1em 1.1em;margin:0;color:var(--tsl-ink-muted);border-top:1px solid var(--tsl-line);padding-top:.9em;}

/* ============================================================
   10) SIGNAL CHIPS (verified/partial/unverified) — used inline
       by inc/signal-states.php's the_content filter wherever the
       imported copy states an explicit status word.
   ============================================================ */
.tsl-signal-chip{display:inline-flex;align-items:center;gap:.4em;font-family:var(--tsl-font-mono);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.25em .6em;border-radius:999px;white-space:nowrap;}
.tsl-signal-chip--verified{background:var(--tsl-verified-bg);color:var(--tsl-verified);border:1px solid var(--tsl-verified-line);}
.tsl-signal-chip--partial{background:var(--tsl-partial-bg);color:var(--tsl-partial);border:1px solid var(--tsl-partial-line);}
.tsl-signal-chip--unverified{background:var(--tsl-unverified-bg);color:var(--tsl-unverified);border:1px solid var(--tsl-unverified-line);}

/* ============================================================
   11) RELATED-IN-SECTION BLOCK
   ============================================================ */
#tsl-related{margin:3rem 0 0;padding-top:1.8rem;border-top:1px solid var(--tsl-line);max-width:none;}
#tsl-related .tsl-section-title{font-family:var(--tsl-font-head);font-weight:700;font-size:1.3rem;margin:0 0 1.2rem;}
#tsl-related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.3rem;}
.tsl-card{display:flex;flex-direction:column;border:1px solid var(--tsl-line);border-radius:var(--tsl-radius);background:var(--tsl-surface);overflow:hidden;transition:box-shadow .15s ease,transform .15s ease;}
.tsl-card:hover{box-shadow:var(--tsl-shadow-hover);transform:translateY(-2px);}
.tsl-card .tsl-card__media{display:block;aspect-ratio:16/10;overflow:hidden;}
.tsl-card .tsl-card__media img{width:100%;height:100%;object-fit:cover;display:block;}
.tsl-card .tsl-card__body{padding:1rem 1.1rem 1.1rem;display:flex;flex-direction:column;gap:.4rem;flex:1;}
.tsl-card .tsl-card__eyebrow{font-family:var(--tsl-font-mono);font-weight:600;font-size:.66rem;text-transform:uppercase;letter-spacing:.08em;color:var(--tsl-accent);}
.tsl-card .tsl-card__title{font-family:var(--tsl-font-head);font-weight:700;font-size:1.05rem;line-height:1.3;margin:0;position:relative;}
.tsl-card .tsl-card__title a{color:var(--tsl-ink);text-decoration:none;}
.tsl-card .tsl-card__title a::after{content:"";position:absolute;inset:0;}

/* ============================================================
   12) PAGINATION / AUTHOR BIO / EMPTY NOTICE
   ============================================================ */
.tsl-pagination{display:flex;justify-content:space-between;gap:1rem;margin:2.4rem 0 0;padding-top:1.4rem;border-top:1px solid var(--tsl-line);font-size:.88rem;max-width:var(--tsl-read-width);}
.tsl-pagination .tsl-pagination__link,.tsl-pagination .tsl-pagination__disabled{color:var(--tsl-ink);text-decoration:none;padding:.5em .9em;border:1px solid var(--tsl-line);border-radius:var(--tsl-radius);}
.tsl-pagination .tsl-pagination__link:hover{border-color:var(--tsl-accent);color:var(--tsl-accent);}
.tsl-pagination .tsl-pagination__disabled{color:var(--tsl-ink-faint);}

.tsl-author-bio{display:flex;gap:1rem;align-items:center;max-width:var(--tsl-read-width);margin:2.4rem 0 0;padding-top:1.4rem;border-top:1px solid var(--tsl-line);font-size:.86rem;color:var(--tsl-ink-muted);}
.tsl-empty-notice{border:1px dashed var(--tsl-line-strong);border-radius:var(--tsl-radius);padding:2rem;text-align:center;font-size:.9rem;color:var(--tsl-ink-muted);margin:1.5rem 0;}

/* ============================================================
   13) FOOTER (#tsl-site-footer)
   ============================================================ */
#tsl-site-footer{margin-top:auto;background:var(--tsl-ink);color:#c7cdd4;}
#tsl-site-footer .tsl-footer-row{max-width:var(--tsl-shell-width);margin:0 auto;padding:2.6rem 1.5rem 1.8rem;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;}
#tsl-site-footer .tsl-footer-title{font-family:var(--tsl-font-mono);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:#9fb0c2;margin:0 0 .8em;}
#tsl-site-footer p{color:#c7cdd4;font-size:.85rem;line-height:1.6;margin:0 0 .6em;}
#tsl-site-footer ul{list-style:none;margin:0;padding:0;}
#tsl-site-footer li{margin:.3em 0;}
#tsl-site-footer a{color:#dbe0e6;text-decoration:none;font-size:.85rem;}
#tsl-site-footer a:hover{color:#fff;}
#tsl-site-footer .tsl-compliance-notice{max-width:var(--tsl-shell-width);margin:0 auto;padding:0 1.5rem 1.6rem;font-size:.78rem;color:#9aa3ad;border-top:1px solid #2c3540;padding-top:1.2rem;}
#tsl-site-footer .tsl-footer-bottom{max-width:var(--tsl-shell-width);margin:0 auto;padding:1rem 1.5rem 2rem;font-family:var(--tsl-font-mono);font-size:.7rem;color:#7d8890;}
@media (max-width:800px){#tsl-site-footer .tsl-footer-row{grid-template-columns:1fr 1fr;}}
@media (max-width:480px){#tsl-site-footer .tsl-footer-row{grid-template-columns:1fr;}}

/* ============================================================
   14) BACK TO TOP / 404 / SITEMAP
   ============================================================ */
#tsl-back-to-top{
  position:fixed;right:1.5rem;bottom:1.5rem;width:44px;height:44px;border-radius:50%;
  border:1px solid var(--tsl-line-strong);background:var(--tsl-surface);color:var(--tsl-ink);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(8px);box-shadow:var(--tsl-shadow-hover);
  transition:opacity .2s ease,transform .2s ease,border-color .2s ease;z-index:45;
}
#tsl-back-to-top.tsl-is-visible{opacity:1;visibility:visible;transform:translateY(0);}
#tsl-back-to-top:hover{border-color:var(--tsl-accent);color:var(--tsl-accent);}

#tsl-404{max-width:var(--tsl-read-width);margin:3rem auto;text-align:center;}
#tsl-404 .tsl-404-code{font-family:var(--tsl-font-mono);font-weight:700;font-size:.85rem;letter-spacing:.25em;color:var(--tsl-accent);}
#tsl-404 h1{margin:.3em 0;}
#tsl-404 .tsl-404-subtitle{font-family:var(--tsl-font-mono);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--tsl-ink-muted);margin:2rem 0 0;}
#tsl-404 .tsl-404-list{list-style:none;margin:.8rem 0 0;padding:0;text-align:left;display:inline-block;}
#tsl-404 .tsl-404-list li{border-bottom:1px solid var(--tsl-line);}
#tsl-404 .tsl-404-list a{display:block;padding:.7em 0;color:var(--tsl-ink);text-decoration:none;}
#tsl-404 .tsl-404-list a:hover{color:var(--tsl-accent);}

.tsl-sitemap-tree{max-width:var(--tsl-read-width);}
.tsl-sitemap-tree ul{list-style:none;margin:0 0 0 1.1rem;padding:0;border-left:1px solid var(--tsl-line);}
.tsl-sitemap-tree > ul{margin-left:0;border-left:none;}
.tsl-sitemap-tree li{margin:.15em 0;padding-left:1rem;}
.tsl-sitemap-tree .tsl-sitemap-link{color:var(--tsl-ink);text-decoration:none;}
.tsl-sitemap-tree .tsl-sitemap-link:hover{color:var(--tsl-accent);}
.tsl-sitemap-section-title{font-family:var(--tsl-font-mono);font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:.74rem;color:var(--tsl-ink-muted);margin:1.8rem 0 .6rem;}
.tsl-sitemap-section-title:first-child{margin-top:0;}

/* ============================================================
   15) PRINT
   ============================================================ */
@media print{
  #tsl-site-header,#tsl-disclaimer-strip,#tsl-back-to-top,#tsl-mobile-drawer,#tsl-drawer-overlay,#tsl-site-footer{display:none;}
}
