/*
Theme Name: ThisTracks
Template: generatepress
Author: ThisTracks
Description: ThisTracks child theme — professional, rugged, outdoorsy. Deep pine + moss + terracotta on warm paper.
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#f4f0e6; --surface:#fff; --ink:#1f261d; --muted:#5e6b5a;
  --forest:#163a29; --forest-2:#1f5236; --moss:#4f7a5b;
  --clay:#bd6b3c; --clay-dark:#a4582f; --line:#e3dbc9; --sand:#ece5d5; --gold:#b8893e;
  --shadow:0 1px 2px rgba(20,30,20,.06),0 8px 24px rgba(20,30,20,.06); --radius:14px;
}

/* ---- base ---- */
body,.entry-content{font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg)}
body{font-size:17px;line-height:1.65}
h1,h2,h3,h4,h5,.entry-title{font-family:Bitter,Georgia,serif !important;color:var(--forest);line-height:1.2}
.entry-title{font-weight:800}
a{color:var(--forest-2)}
a:hover{color:var(--clay)}
.entry-content a{text-decoration:underline}
.separate-containers .inside-article,.one-container .site-content{background:var(--surface)}

/* ---- header / nav ---- */
.site-header{background:var(--forest) !important}
.site-title a,.main-title a{font-family:Bitter !important;font-weight:800;color:#fff !important}
.site-description{color:#bfd0bb !important}
.main-navigation,.main-navigation ul ul{background:var(--forest) !important}
.main-navigation .main-nav ul li a{color:#d8e2d6 !important;font-weight:600}
.main-navigation .main-nav ul li a:hover,.main-navigation .main-nav ul li.current-menu-item a{color:#fff !important;background:rgba(255,255,255,.06) !important}
.navigation-search input,.main-navigation .search-form input{background:#fff}
/* logo sized to the text, not massive */
.site-header .site-logo img,.site-logo img,.header-image,.navigation-branding img{max-height:46px !important;width:auto !important}

/* ---- buttons ---- */
button,.button,input[type=submit],.wp-block-button__link,.generate-back-to-top{
  background-color:var(--clay) !important;border-color:var(--clay) !important;color:#fff !important;
  border-radius:10px !important;font-weight:600;font-family:Inter}
button:hover,.button:hover,input[type=submit]:hover,.wp-block-button__link:hover{background-color:var(--clay-dark) !important}

/* ---- article / archive cards ---- */
.separate-containers .inside-article{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.entry-meta{color:var(--muted);font-size:.85rem}
.posted-on,.byline{color:var(--muted)}
.post-image img{border-radius:10px}
.entry-content h2{margin-top:1.6em;border-bottom:2px solid var(--sand);padding-bottom:.2em}
blockquote{border-left:4px solid var(--moss);background:var(--sand);border-radius:0 8px 8px 0}

/* ── HTML sitemap page ([tt_sitemap]) ─────────────────────────────── */
.tt-smcount{color:var(--moss);font-size:.95rem;margin:6px 0 14px}
.tt-sitemap{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:26px 34px;margin:8px 0 28px}
.tt-smgroup h2{font-family:Bitter,serif;font-size:1.02rem;margin:0 0 10px;padding-bottom:7px;border-bottom:2px solid var(--clay)}
.tt-smgroup h2 a{text-decoration:none;color:var(--forest)}
.tt-smgroup h2 .n{color:var(--gold);font-weight:400;font-size:.82em}
.tt-smgroup ul{list-style:none;margin:0;padding:0}
.tt-smgroup li{margin:0 0 7px;line-height:1.4;font-size:.94rem}
.tt-smgroup li a{color:var(--forest-2);text-decoration:none}
.tt-smgroup li a:hover{color:var(--clay);text-decoration:underline}

/* category chips */
.entry-terms,.tt-chip{display:inline-block;font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:var(--forest-2);background:var(--sand);border:1px solid var(--line);border-radius:999px;padding:.28em .7em}

/* ---- breadcrumbs ---- */
.tt-crumbs{font-size:.85rem;color:var(--muted);margin-bottom:14px}
.tt-crumbs a{color:var(--moss);text-decoration:none}

/* ---- gear blocks (used in articles) ---- */
.tt-gear,.tt-pick{border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.tt-gear{padding:18px;margin:26px 0}
.tt-pick{display:flex;gap:16px;align-items:center;padding:14px;margin:14px 0}
.tt-gear .tag,.tt-gear>p:first-child{font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--clay);margin:0 0 4px}
.tt-gear img,.tt-pick img{border-radius:8px;border:1px solid var(--line);object-fit:cover}
.tt-gear .tt-pick{border:0;box-shadow:none;background:transparent;padding:0;margin:10px 0 0}
.tt-gear img,.tt-gear .tt-pick img{width:92px;height:92px;flex:none}
.tt-gear a,.tt-pick a{color:var(--clay);font-weight:700;text-decoration:none}
.tt-gear .price{color:var(--forest);font-weight:700;white-space:nowrap}
.tt-disc{font-size:.76rem;color:var(--muted);font-style:italic;margin:12px 0 0}

/* ---- byline + editorial components (used in rewritten articles) ---- */
.tt-byline{color:var(--muted);font-size:.95rem;margin-bottom:1.4em}
.callout{background:var(--sand);border:1px solid var(--line);border-left:4px solid var(--clay);
  border-radius:0 10px 10px 0;padding:16px 20px;margin:26px 0}
.callout h4{margin:0 0 .4em;font-size:1.05rem;color:var(--forest)}
.callout p:last-child,.callout ul:last-child{margin-bottom:0}
.tt-key{background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--moss);
  border-radius:8px;padding:16px 20px;margin:24px 0;box-shadow:var(--shadow)}
.tt-key h4{margin:0 0 .5em;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--moss)}
.tt-key ul{margin:0;padding-left:1.15em}
.tt-key li{margin:.25em 0}

/* ---- related posts ---- */
.tt-related{margin:42px 0 10px}
.tt-related h3{font-size:1.4rem;margin-bottom:18px}
.tt-related .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tt-related .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .12s}
.tt-related .card:hover{transform:translateY(-3px)}
.tt-related .card img{aspect-ratio:3/2;object-fit:cover;width:100%}
.tt-related .card .b{padding:14px 16px 18px}
.tt-related .card h4{font-size:1.02rem;margin:.3em 0 0}
.tt-related .card a{text-decoration:none}
@media(max-width:768px){.tt-related .grid{grid-template-columns:1fr}}

/* ---- track bar ---- */
.tt-trackbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);
  border-top:4px solid var(--gold);border-radius:12px;padding:14px 18px;box-shadow:var(--shadow);margin:18px 0}
.tt-trackbar .lbl{font-size:.74rem;text-transform:uppercase;letter-spacing:.1em;color:var(--gold);font-weight:800}
.tt-trackbar .nav{margin-left:auto;display:flex;gap:10px}
.tt-trackbar .nav a{font-size:.85rem;font-weight:600;border:1px solid var(--line);border-radius:8px;padding:.4em .7em;text-decoration:none}
.tt-trackbar .nav a.next{background:var(--clay);color:#fff;border-color:var(--clay)}

/* ---- footer ---- */
.site-footer,.footer-widgets,.site-info{background:var(--forest) !important;color:#cdd8c9}
.site-footer a,.footer-widgets a{color:#cdd8c9}
.site-footer a:hover{color:#fff}
.footer-widgets .widget-title{color:#fff}

/* ---- sidebar widgets ---- */
.sidebar .widget{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}
.widget-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}

/* ===== HOME PAGE ===== */
body.home .entry-header,body.home .entry-title,body.home .page-hero{display:none !important}
body.home .inside-article{background:transparent;border:0;box-shadow:none;padding:0}
body.home .entry-content{margin-top:0}
.tt-hero{background:linear-gradient(180deg,rgba(13,30,20,.72),rgba(13,30,20,.86)),url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1600&q=80') center/cover;border-radius:16px;color:#fff;padding:62px 36px;text-align:center;margin:8px 0 46px}
.tt-hero h1{color:#fff !important;font-size:2.7rem;max-width:18ch;margin:0 auto .3em}
.tt-hero p{color:#dfe8da;font-size:1.18rem;max-width:56ch;margin:0 auto 1.5em}
.tt-search{display:flex;max-width:560px;margin:0 auto;background:#fff;border-radius:12px;padding:6px;box-shadow:var(--shadow)}
.tt-search input[type=search]{flex:1;border:0;outline:0;padding:.8em 1em;font-size:1.05rem;font-family:Inter;color:var(--ink);background:transparent}
.tt-search button{flex:none}
.tt-eyebrow{font-weight:700;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--clay);text-align:center;margin-bottom:.2em}
.tt-h2{text-align:center;font-size:2rem;margin:.1em 0 1.3em}
.tt-secn{margin:48px 0}
.tt-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.tt-tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);text-decoration:none;display:block;transition:transform .12s,border-color .12s}
.tt-tile:hover{transform:translateY(-4px);border-color:var(--moss)}
.tt-tile .ic{width:46px;height:46px;border-radius:11px;background:var(--sand);color:var(--forest-2);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.tt-tile h3{margin:0 0 .25em;font-size:1.14rem}
.tt-tile p{margin:0;color:var(--muted);font-size:.92rem}
.tt-tile .ex{display:inline-block;margin-top:12px;color:var(--clay);font-weight:700;font-size:.8rem;letter-spacing:.04em}
.tt-paths{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.tt-pathcard{background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--gold);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);text-decoration:none;display:block}
.tt-pathcard .m{font-size:.82rem;color:var(--muted);font-weight:600}
.tt-pathcard h3{margin:.3em 0}
.tt-pathcard .go{color:var(--clay);font-weight:700;font-size:.9rem}
/* pillar icon badge on articles */
.tt-pillaricon{display:inline-flex;width:26px;height:26px;vertical-align:middle;color:var(--forest-2);margin-right:6px}
.tt-pillaricon svg{width:100%;height:100%}
@media(max-width:900px){.tt-tiles{grid-template-columns:repeat(2,1fr)}.tt-paths{grid-template-columns:1fr}.tt-hero h1{font-size:2rem}.tt-hero{padding:44px 20px}}

/* ===== REFINEMENTS v2 ===== */
/* header tighter + search */
.site-header .inside-header{padding-top:8px !important;padding-bottom:8px !important}
.main-navigation .inside-navigation{display:flex;align-items:center}
.main-navigation .main-nav{display:flex;align-items:center}
.tt-navsearch{display:flex;align-items:center;margin-left:auto;background:#fff;border-radius:9px;overflow:hidden;height:38px;border:1px solid rgba(255,255,255,.15)}
.tt-navsearch input{border:0;outline:0;background:transparent;padding:0 .7em;font-family:Inter;font-size:.9rem;width:190px;color:var(--ink)}
.tt-navsearch button{border:0;background:var(--clay);color:#fff;width:40px;cursor:pointer;font-size:.95rem;align-self:stretch}

/* images sized appropriately */
.entry-content img{max-width:100%;height:auto}
.single .post-image img,.single .featured-image img,.single-post .featured-image img{width:100%;max-height:420px;object-fit:cover;border-radius:12px;margin-bottom:6px}
.archive .post-image img,.blog .post-image img,.category .post-image img,.search .post-image img,.tag .post-image img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px}

/* full-bleed home hero + tighter sections */
body.home{overflow-x:hidden}
body.home .site-content .content-area,body.home .inside-article{max-width:100%}
.tt-hero{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);width:100vw;max-width:100vw;border-radius:0;padding:72px 6vw}
.tt-secn{max-width:1140px;margin:44px auto}

/* category / archive pages — tighter */
.archive .inside-article,.blog .inside-article,.category .inside-article,.search .inside-article,.tag .inside-article{padding:16px !important;margin-bottom:18px}
.archive .entry-title,.blog .entry-title,.category .entry-title{font-size:1.2rem;margin:.3em 0 .2em}
.archive .entry-meta,.blog .entry-meta{margin-top:6px}
.page-header,.category .page-header,.archive .page-header{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px 28px;box-shadow:var(--shadow);margin-bottom:26px}
.page-header .page-title,h1.page-title{margin:0;font-size:2rem}
.tt-archicon{display:inline-flex;width:34px;height:34px;color:var(--forest-2);vertical-align:middle;margin-right:10px}
.tt-archicon svg{width:100%;height:100%}

/* single article — tighter, mockup-like */
.single .entry-content{max-width:760px}
.single .entry-header{max-width:760px}
.single .entry-title{font-size:2.3rem}

/* left-justified home (per mockup) */
.tt-hero{text-align:left;padding:66px 0}
.tt-herowrap{max-width:1140px;margin:0 auto;padding:0 22px}
.tt-hero h1{margin:0 0 .3em;max-width:20ch}
.tt-hero p{margin:0 0 1.4em}
.tt-search{margin:0}
.tt-eyebrow,.tt-h2{text-align:left}
.tt-hero .tt-eyebrow{margin-bottom:.5em}

/* ===== ARTICLE SIDEBAR + TRACK BAR + FEATURED ===== */
.tt-swidget{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px;margin-bottom:22px}
.tt-swidget h4{font-size:.76rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);margin:0 0 12px;font-family:Inter}
.tt-swidget .search-form,.tt-swidget form{display:flex;gap:6px}
.tt-swidget input[type=search]{flex:1;border:1px solid var(--line);border-radius:8px;padding:.5em .7em;font-family:Inter}
.tt-toc{list-style:none;margin:0;padding:0;counter-reset:l;max-height:380px;overflow-y:auto}
.tt-toc li{counter-increment:l;padding:8px 0;font-size:.9rem;border-bottom:1px solid var(--line);display:flex;gap:9px;align-items:flex-start}
.tt-toc li:last-child{border-bottom:0}
.tt-toc li::before{content:counter(l);flex:none;background:var(--sand);color:var(--forest-2);font-weight:700;width:22px;height:22px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:.74rem;margin-top:1px}
.tt-toc li.cur{font-weight:700}
.tt-toc li.cur::before{background:var(--gold);color:#fff}
.tt-toc a{text-decoration:none;color:var(--ink)}
.tt-toc li.cur a{color:var(--forest)}
/* featured cards (home) */
.tt-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tt-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);text-decoration:none;transition:transform .12s;display:block}
.tt-card:hover{transform:translateY(-4px)}
.tt-card img{width:100%;aspect-ratio:3/2;object-fit:cover}
.tt-card .b{padding:15px 17px 18px}
.tt-card h3{font-size:1.08rem;margin:.4em 0 .2em}
.tt-card .by{font-size:.8rem;color:var(--muted)}
@media(max-width:900px){.tt-cards{grid-template-columns:1fr}}

/* ===== FOOTER (mockup) + HOME TIGHTEN ===== */
.tt-footer{background:var(--forest);padding:50px 0 28px}
.tt-fwrap{max-width:1140px;margin:0 auto;padding:0 22px;display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:30px}
.tt-footer .fcol h4{color:#fff;font-size:1rem;margin:0 0 .7em;font-family:Bitter}
.tt-footer .fcol a{color:#cdd8c9;display:block;padding:3px 0;font-size:.92rem;text-decoration:none}
.tt-footer .fcol a:hover{color:#fff}
.tt-footer .brand .fbrand{display:flex;align-items:center;gap:10px;font-family:Bitter;font-weight:800;font-size:1.3rem;color:#fff;margin-bottom:10px}
.tt-footer .brand p{color:#a9b8a5;font-size:.92rem;max-width:36ch;margin:0}
.site-footer .site-info,.site-info{background:var(--forest) !important;text-align:center;font-size:.82rem;color:#9fb09c;padding:15px 22px;border-top:1px solid rgba(255,255,255,.12)}
.site-info a{color:#cdd8c9}
@media(max-width:900px){.tt-fwrap{grid-template-columns:1fr 1fr}}
/* tighten home */
.tt-secn{margin:34px auto}
.tt-hero{padding:56px 0}
.tt-h2{margin:0 0 1em}
/* full-bleed alt section (Learning Paths) + kill underlines on home cards */
.tt-alt{background:var(--sand);width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
/* Learning Paths inner content must align to the SAME edges as the other home sections (no extra indent) */
.tt-alt .tt-secn{max-width:1140px;margin:0 auto;padding:42px 0}
@media(max-width:1180px){.tt-alt .tt-secn{padding-left:30px;padding-right:30px}}
.tt-tile,.tt-tile *,.tt-pathcard,.tt-pathcard *,.tt-card,.tt-card *{text-decoration:none !important}
/* hide the old default footer widget areas (Categories / Email us) — our custom footer replaces them */
.footer-widgets,.footer-bar{display:none !important}

/* ===== BOOT-PRINT LOGO + HEADER CLEANUP ===== */
.tt-bootlogo a{display:inline-flex;align-items:center;gap:11px;text-decoration:none}
.tt-boots{height:26px;width:auto}
.tt-wordmark{font-family:Bitter;font-weight:800;font-size:1.32rem;color:#fff}
.main-title a,.site-title a{display:inline-flex;align-items:center}
.main-title a::before,.site-title a::before{content:"";display:inline-block;width:38px;height:32px;margin-right:11px;vertical-align:-10px;background:url("../../uploads/2026/07/thistracks-boots-v4.png") left center/contain no-repeat}
/* remove the line/border between the top bar and the hero */
.site-header,.main-navigation,.inside-navigation,.navigation-clone,.sticky-navigation-container{border:0 !important;box-shadow:none !important}
body.home .tt-hero{margin-top:0}
/* keep the nav + search right-aligned in the header row */
.main-navigation{margin-left:auto;background:transparent !important}
.inside-navigation{display:flex;align-items:center;gap:14px}

/* ===== ARTICLE ON PAPER BG + SIDEBAR CLEANUP ===== */
.single .inside-article{background:transparent !important;border:0 !important;box-shadow:none !important;padding-left:0;padding-right:0}
.single .entry-content,.single .entry-header{background:transparent}
/* hide leftover default sidebar widgets (Search, Read by Category) — our injected content replaces them */
.sidebar .widget{display:none !important}
/* related topics list */
.tt-rellist{list-style:none;margin:0;padding:0}
.tt-rellist li{padding:7px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.tt-rellist li:last-child{border-bottom:0}
.tt-rellist a{text-decoration:none;color:var(--ink)}
.tt-rellist a:hover{color:var(--clay)}

/* single-post order: breadcrumb -> title + author -> track bar -> image -> content -> related */
.single .inside-article{display:flex;flex-direction:column}
.single .inside-article > *{order:5}
.single .tt-crumbs{order:0}
.single .entry-header{order:1}
.single .inside-article > .tt-byline{order:2}
.single .tt-trackbar{order:3;margin-top:0}
.single .post-image,.single .featured-image{order:4;margin:6px 0 20px}
.single .entry-content{order:6}
.single .tt-related{order:7}

/* site-main margin + full-width "Keep exploring" band (like Learning Paths) */
.separate-containers .site-main{margin:0 !important}
.single .tt-related{background:var(--sand);width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);margin-top:44px;padding:44px max(22px,calc(50vw - 560px)) 40px}
.single .tt-related h3{max-width:1120px;margin-left:auto;margin-right:auto}
.single .tt-related .grid{max-width:1120px;margin-left:auto;margin-right:auto}

/* ---- single post cleanup + layout alignment ---- */
/* remove BOTH the top "date by author" and the bottom "Categories" footer (both are .entry-meta) */
.single .entry-meta{display:none !important}
/* remove the redundant previous/next post links (the track bar + Keep exploring already cover this) */
.single .post-navigation,.single .paging-navigation,.single .nav-below,.single .entry-footer{display:none !important}

/* the content wrapper had NO container, so it ran full-width while the header is a 1200 grid-container.
   constrain it to the same 1200 centered container so the top bar and the article line up. */
.site-content#content{max-width:1200px;margin-left:auto;margin-right:auto}
/* breadcrumb aligned to that same 1200 container, with the header's 30px side padding */
.tt-crumbs-bar{max-width:1200px;margin:0 auto;padding:12px 30px 0}
@media(max-width:768px){.tt-crumbs-bar{padding:12px 20px 0}}

/* top bar content uses the EXACT same 1200 container + 30px padding as every page's content,
   so the header lines up edge-to-edge with the article instead of sitting narrower */
.inside-header{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:30px !important;padding-right:30px !important}
/* header nav: menu to the LEFT (right after the logo), search all the way to the RIGHT.
   the nav's own inner grid-container was capping + padding it narrower than the article. */
.site-header .main-navigation{flex:1 1 auto}
.main-navigation .inside-navigation{max-width:none !important;width:100%;padding-left:0 !important;padding-right:0 !important;justify-content:space-between;align-items:center}
.main-navigation .main-nav{order:1}
.tt-navsearch{order:2;margin-left:auto}

/* the byline sits directly under the title, small like a normal "By ..." credit */
.single .inside-article > .tt-byline{margin:.2em 0 1.5em;color:var(--muted);font-size:.85rem}

/* tighten the gap between the featured image and the article body */
.single .entry-content{margin-top:0}
.single .entry-content > *:first-child{margin-top:0}

/* category archive sidebar: compact gear card + active sub-topic highlight */
.tt-sidegear .tt-pick{border:0;box-shadow:none;background:transparent;padding:0;margin:10px 0 0;gap:12px;align-items:flex-start}
.tt-sidegear .tt-pick img{width:58px;height:58px;flex:none}
.tt-sidegear .price{color:var(--forest);font-weight:700}
.tt-sidegear .tt-disc{font-size:.72rem;margin-top:8px}
.tt-rellist li.cur > a{color:var(--clay);font-weight:700}

/* uniform right gutter so the path block and image share the same width and clear the sidebar */
.single .inside-article > *:not(.tt-related){margin-right:40px}
.single .featured-image{max-width:none !important;margin-left:0}
@media(max-width:768px){.single .inside-article > *:not(.tt-related){margin-right:0}}

/* ===== v3: full-width pages, white search icon, category/search image grid ===== */

/* all static pages sit on the paper background with no white card (Topics, Learning Paths, About, Privacy...) */
.page .inside-article{background:transparent !important;border:0 !important;box-shadow:none !important}

/* white magnifier icon in the top bar */
.tt-navsearch button{color:#fff !important}
.tt-navsearch button svg{width:18px;height:18px;display:block}

/* ---- category + search results: compact image grid, like the home featured guides ---- */
.category .site-main,.search .site-main{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;align-items:start}
.category .site-main > .page-header,.category .site-main > .taxonomy-description,
.category .site-main > .paging-navigation,.category .site-main > nav,
.search .site-main > .page-header,.search .site-main > .paging-navigation,.search .site-main > nav{grid-column:1 / -1}

.category article,.search article{margin:0 !important}
.category .inside-article,.search .inside-article{
  display:flex;flex-direction:column;padding:0 !important;margin:0 !important;height:100%;
  background:var(--surface) !important;border:1px solid var(--line) !important;border-radius:var(--radius) !important;
  box-shadow:var(--shadow) !important;overflow:hidden;transition:transform .12s}
.category .inside-article:hover,.search .inside-article:hover{transform:translateY(-4px)}
.category .post-image,.search .post-image{order:0;margin:0}
.category .post-image img,.search .post-image img{
  width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:0;display:block;max-height:none;margin:0}
.category .entry-header,.search .entry-header{order:1;padding:14px 16px 15px}
.category .entry-title,.search .entry-title{font-size:1.04rem;line-height:1.28;margin:0}
.category .entry-title a,.search .entry-title a{text-decoration:none}
.category .tt-cardbyline,.search .tt-cardbyline{padding:0;margin:6px 0 0}
.category .tt-cardbyline .tt-byline,.search .tt-cardbyline .tt-byline{margin:0;font-size:.78rem;color:var(--muted)}
/* hide the WP date/author meta and the excerpt on the cards */
.category .entry-meta,.search .entry-meta{display:none !important}
.category .entry-summary,.search .entry-summary,.category .entry-content,.search .entry-content{display:none !important}

/* archive title: no white box; matches the article title (Bitter 2.3rem, 800) with top breathing room; pillar icon smaller and AFTER the title; the description wraps to a full-width line UNDER the title */
.category .page-header,.search .page-header,.archive .page-header{
  background:transparent !important;border:0 !important;box-shadow:none !important;
  padding:26px 0 6px !important;margin:0 0 22px !important;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.category .page-title,.search .page-title,.archive .page-title{order:0;margin:0;font-size:2.3rem;font-weight:800}
.tt-archicon{order:1;width:26px;height:26px;margin:0}
.category .page-header .taxonomy-description,.search .page-header .taxonomy-description,.archive .page-header .taxonomy-description{order:3;flex-basis:100%;width:100%;margin:6px 0 0}
/* byline date reads like a real author credit */
.tt-bydate{color:var(--muted)}
.category .taxonomy-description,.search .taxonomy-description{margin:0 0 16px;color:var(--muted)}

@media(max-width:520px){.category .site-main,.search .site-main{grid-template-columns:1fr}}

/* ===== v4: header padding, category gutter, course syllabus ===== */

/* drop GP's 20px 40px header padding; align the top bar to the article's 30px edge, tight vertically */
.site-header .inside-header{padding:6px 30px !important}

/* category grid needs the same gutter to the sidebar that the single-article content has */
.category #primary,.category .content-area{padding-right:40px}
@media(max-width:768px){.category #primary,.category .content-area{padding-right:0}}

/* ---- Learning Paths as a course syllabus / ordered lesson flow (left-justified, full width) ---- */
.tt-courses{max-width:1140px;margin:0}
.tt-courses-lead{color:var(--muted);margin:0 0 22px;font-size:1.02rem}
/* consistent small intro under every category title */
.tt-catintro{font-size:.95rem;color:var(--muted);margin:0;font-weight:400}
.tt-course{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}
.tt-course > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:16px;padding:20px 22px}
.tt-course > summary::-webkit-details-marker{display:none}
.tt-course > summary::after{content:"+";margin-left:4px;font-size:1.5rem;line-height:1;color:var(--muted);flex:none}
.tt-course[open] > summary::after{content:"\2212"}
.tt-course > summary .ic{width:46px;height:46px;border-radius:12px;background:var(--sand);color:var(--forest-2);display:flex;align-items:center;justify-content:center;flex:none}
.tt-course > summary .ic svg{width:24px;height:24px}
.tt-course .ct{flex:1}
.tt-course .cn{display:block;font-family:Bitter;font-weight:800;font-size:1.28rem;color:var(--forest)}
.tt-course .cd{display:block;color:var(--muted);font-size:.9rem;margin-top:2px}
.tt-course .cm{flex:none;font-size:.74rem;font-weight:800;color:var(--clay);text-transform:uppercase;letter-spacing:.06em}
.tt-flow{list-style:none;margin:0;padding:4px 24px 18px;position:relative}
.tt-flow::before{content:"";position:absolute;left:36px;top:14px;bottom:32px;width:2px;background:var(--line)}
.tt-flow li{position:relative;padding-left:40px}
.tt-flow li a{display:block;padding:11px 0;text-decoration:none;border-bottom:1px solid var(--sand)}
.tt-flow li:last-child a{border-bottom:0}
.tt-flow .st{position:absolute;left:0;top:10px;width:26px;height:26px;border-radius:50%;background:var(--sand);color:var(--forest-2);font-weight:700;font-size:.78rem;display:flex;align-items:center;justify-content:center;z-index:1}
.tt-flow li:first-child .st{background:var(--gold);color:#fff}
.tt-flow .ll{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:var(--clay);font-weight:800}
.tt-flow .lname{display:block;color:var(--ink);font-weight:600;line-height:1.35}
.tt-flow li a:hover .lname{color:var(--clay)}

/* ===== v5: course modules, level badges, progress bars, lesson checkboxes ===== */
.tt-course .cmeta{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
.tt-course .lvl{font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--forest-2);background:var(--sand);border:1px solid var(--line);border-radius:999px;padding:.25em .7em;white-space:nowrap}
.tt-startcourse{border:2px solid var(--gold)}
/* progress bar */
.tt-progress{display:flex;align-items:center;gap:12px;padding:0 24px 12px}
.tt-progress .track{flex:1;height:7px;background:var(--sand);border-radius:999px;overflow:hidden}
.tt-progress .bar{height:100%;width:0;background:var(--gold);transition:width .25s}
.tt-progress .ptext{flex:none;font-size:.72rem;color:var(--muted);font-weight:700;white-space:nowrap}
/* modules (chapters) */
.tt-module{padding:0 24px}
.tt-module .mh{font-family:Inter;font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--forest-2);margin:16px 0 4px;padding-top:14px;border-top:1px solid var(--line)}
.tt-module:first-child .mh{border-top:0;padding-top:2px;margin-top:2px}
.tt-module .mnum{color:var(--clay);font-weight:800}
.tt-module .tt-flow{padding:2px 0 8px}
.tt-module .tt-flow::before{left:12px}
/* collapsible module chapters (first open, rest show just the title) */
.tt-module > summary.mh{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px}
.tt-module > summary.mh::-webkit-details-marker{display:none}
.tt-module > summary.mh::after{content:"+";margin-left:auto;color:var(--muted);font-size:1.15rem;line-height:1;font-weight:400}
.tt-module[open] > summary.mh::after{content:"\2212"}
.tt-module > summary.mh:hover{color:var(--clay)}
/* lesson rows: link + checkbox, with a done state */
.tt-flow li{position:relative;display:flex;align-items:center;gap:12px;padding-left:40px}
.tt-flow li .lrow{flex:1;min-width:0;display:block;padding:11px 0;text-decoration:none;border-bottom:1px solid var(--sand)}
.tt-flow li:last-child .lrow{border-bottom:0}
.tt-flow li .lrow:hover .lname{color:var(--clay)}
.tt-flow .st{top:50%;transform:translateY(-50%)}
.tt-flow li:first-child .st{background:var(--sand);color:var(--forest-2)}
.tt-flow li.tt-start .st{background:var(--gold);color:#fff}
.tt-check{flex:none;width:19px;height:19px;cursor:pointer;accent-color:var(--moss)}
.tt-flow li.done .lname{color:var(--muted);text-decoration:line-through}
.tt-flow li.done .st{background:var(--moss);color:#fff;font-size:0}
.tt-flow li.done .st::after{content:"\2713";font-size:.82rem}

/* Learning Paths: goal vs subject sections + cross-pillar scenario tracks */
.tt-secthead{margin:38px 0 16px;padding-top:26px;border-top:2px solid var(--line)}
.tt-secthead:first-of-type{border-top:0;padding-top:0;margin-top:4px}
.tt-secthead h2{font-family:Bitter,serif;font-weight:800;color:var(--forest);font-size:1.62rem;line-height:1.15;margin:0 0 5px}
.tt-secthead p{color:var(--muted);margin:0;font-size:.98rem;max-width:760px}
.tt-scenario:not(.tt-startcourse){border-left:4px solid var(--clay)}
.tt-scenario:not(.tt-startcourse) > summary .ic{background:#efdccf;color:var(--clay-dark)}
@media(max-width:600px){.tt-secthead h2{font-size:1.4rem}}

/* ============ Mobile pass ============ */
@media(max-width:768px){
  /* tighter page gutters */
  .inside-header{padding-left:18px !important;padding-right:18px !important}
  .site-header .inside-header{padding:6px 18px !important}
  /* header can wrap; keep the search box from overflowing next to the logo/toggle */
  .main-navigation .inside-navigation{flex-wrap:wrap;gap:8px}
  .tt-navsearch{flex:1 1 150px;max-width:240px;height:36px}
  .tt-navsearch input{width:100%;min-width:0}
  /* long category/topic titles shouldn't dominate the screen */
  .page-title{font-size:1.9rem !important}
  /* course + scenario cards */
  .tt-courses{max-width:100%}
  .tt-course > summary{gap:12px;padding:15px 16px}
  .tt-course > summary .ic{width:38px;height:38px}
  .tt-course > summary .ic svg{width:20px;height:20px}
  .tt-course .cn{font-size:1.1rem}
  .tt-course .cd{font-size:.83rem}
  .tt-course .cmeta{flex-direction:row;align-items:center;gap:8px}
  .tt-course .lvl{font-size:.58rem;padding:.2em .55em}
  /* flow lists: pull the timeline in so lesson text has room */
  .tt-flow{padding:4px 14px 16px}
  .tt-flow li{padding-left:34px}
  .tt-flow::before{left:29px}
  .tt-flow .st{width:22px;height:22px;font-size:.72rem}
  .tt-flow .lname{font-size:.95rem}
  /* article path bar: let prev/next drop to their own row */
  .tt-trackbar{gap:8px 12px}
  .tt-trackbar .nav{margin-left:0;width:100%}
  .tt-trackbar .nav a.next{margin-left:auto}
}
@media(max-width:600px){
  .tt-fwrap{grid-template-columns:1fr}
  .main-title a::before,.site-title a::before{width:30px;height:26px;margin-right:8px;vertical-align:-8px}
}
@media(max-width:440px){
  /* on the narrowest phones, drop the long level badge; keep the lesson count */
  .tt-course .cmeta .lvl{display:none}
  .tt-navsearch{max-width:200px}
}

/* ---- technical diagrams (inline SVG in post content) ---- */
.tt-diagram{margin:30px 0;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow-x:auto}
.tt-diagram svg{display:block;width:100%;height:auto;min-width:460px;max-width:100%}
.tt-diagram figcaption{margin-top:12px;font-size:.86rem;line-height:1.5;color:var(--muted);border-top:1px solid var(--line);padding-top:10px}
.tt-diagram .d-label{font-family:Inter,system-ui,sans-serif;font-size:13px;fill:var(--ink)}
.tt-diagram .d-small{font-family:Inter,system-ui,sans-serif;font-size:11px;fill:var(--muted)}
.tt-diagram .d-title{font-family:Bitter,Georgia,serif;font-size:15px;font-weight:700;fill:var(--forest)}
.tt-diagram .d-dim{font-family:Inter,system-ui,sans-serif;font-size:11.5px;fill:var(--clay-dark);font-weight:600}
.tt-diagram .d-brick{fill:var(--sand);stroke:var(--muted);stroke-width:1.5}
.tt-diagram .d-insul{fill:none;stroke:var(--moss);stroke-width:1.2;stroke-dasharray:3 2.5}
.tt-diagram .d-mass{fill:#e6dcc6;stroke:var(--muted);stroke-width:1.5}
.tt-diagram .d-void{fill:var(--surface)}
.tt-diagram .d-flame{fill:var(--clay);opacity:.85}
.tt-diagram .d-flow{fill:none;stroke:var(--clay);stroke-width:2.2}
.tt-diagram .d-air{fill:none;stroke:var(--moss);stroke-width:2;stroke-dasharray:5 3}
.tt-diagram .d-rule{stroke:var(--clay-dark);stroke-width:1}
/* table styling for the spec tables in the build guide */
.entry-content table.tt-spec{width:100%;border-collapse:collapse;margin:22px 0;font-size:.94rem}
.entry-content table.tt-spec th,.entry-content table.tt-spec td{border:1px solid var(--line);padding:8px 10px;text-align:left}
.entry-content table.tt-spec th{background:var(--sand);font-family:Bitter,Georgia,serif;color:var(--forest)}
.entry-content table.tt-spec tr:nth-child(even) td{background:#faf7f0}
