/* Free tools landing page (/tools/, built by tools-source/build.py from the HUB entry in tools-source/pages.py).
   Everything is scoped under .tlh and loaded only on that page. Colours are custom properties: the charcoal values follow the
   site's tokens (home.css), and html[data-theme="light"] (set by /theme.js before the first paint) swaps them for the light
   palette, so this file is deliberately not in scripts/build-light-theme.py's SOURCES. The photographic hero and the studio
   photo keep their dark overlays in both themes. Body text is lighter than the site's #939898 muted grey for contrast on the
   charcoal surfaces (#aeb3b1 is about 7:1 on #2a2d2d). */
.tlh{--t-bg:#222424;--t-surface:#2a2d2d;--t-line:#373a3a;--t-ink:#dcdede;--t-body:#aeb3b1;--t-meta:#9a9f9e;--t-gold:#c5a77b;--t-diagram:#c9b994;--t-diagram-bg:#1d2020;--t-deep:#1a1c1c;--t-on:#dcdede;--t-on-ink:#161818;--t-shadow:0 18px 40px rgba(0,0,0,.28);color:var(--t-ink)}
html[data-theme="light"] .tlh{--t-bg:#f5f3ef;--t-surface:#fff;--t-line:#e2ded6;--t-ink:#222424;--t-body:#4f5353;--t-meta:#5d6161;--t-gold:#86693f;--t-diagram:#7a6748;--t-diagram-bg:#f1ede5;--t-deep:#ebe7e0;--t-on:#222424;--t-on-ink:#f5f3ef;--t-shadow:0 18px 40px rgba(60,48,30,.12)}
html[data-theme="light"] .tlh-studio{--t-gold:#7a6040} /* audit 9 October 2026: gold text on the deeper band reads 4.15:1 at #86693f, 4.77:1 at this */
.tlh *{box-sizing:border-box}
.tlh h1,.tlh h2,.tlh h3,.tlh p{margin:0}
.tlh a{color:inherit;text-decoration:none}
.tlh a:focus-visible,.tlh button:focus-visible,.tlh-skip:focus-visible{outline:2px solid var(--t-gold);outline-offset:4px;border-radius:6px}
.tlh-hero a:focus-visible{outline-color:#e7d3ae}
.tlh-skip{position:absolute;left:16px;top:-80px;z-index:60;background:#def29b;color:#161818;padding:12px 16px;border-radius:6px;font-size:14px;text-decoration:none}
.tlh-skip:focus{top:12px}
.tlh-wrap{width:min(1280px,calc(100% - clamp(44px,8vw,128px)));margin:0 auto}
@media(prefers-reduced-motion:no-preference){html:has(.tlh){scroll-behavior:smooth}}
html:has(.tlh){scroll-padding-top:20px}

/* breadcrumb */
.tlh-crumbs{font-size:12px;color:var(--t-meta);padding:22px 0}
.tlh-crumbs a{color:var(--t-meta)}.tlh-crumbs a:hover{color:var(--t-gold)}
.tlh-crumbs span[aria-hidden]{margin:0 9px;color:var(--t-gold)}

/* eyebrow */
.tlh-eyebrow{display:block;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:500;color:var(--t-gold)}

/* hero: the photograph stays dark in both themes */
.tlh-hero{position:relative;min-height:540px;isolation:isolate;overflow:hidden;border-radius:12px;color:#edeeee;background:#232525}
.tlh-hero picture,.tlh-hero picture img{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.tlh-hero picture img{object-fit:cover;object-position:66% 52%}
.tlh-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(14,17,16,.95),rgba(14,17,16,.7) 43%,rgba(14,17,16,.05) 80%),linear-gradient(0deg,rgba(14,17,16,.86),transparent 62%)}
.tlh-hero-copy{padding:64px 5% 88px;max-width:680px}
.tlh-hero .tlh-eyebrow{color:#e3d2b3}
.tlh-hero .tlh-eyebrow:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#def29b;margin:0 11px 2px 0}
.tlh-hero h1{font-weight:400;font-size:clamp(40px,4.6vw,64px);letter-spacing:-.035em;line-height:1.1;margin:22px 0 20px;color:#f4f2ea}
.tlh-hero h1 em,.tlh h2 em{font-family:inherit;font-style:normal;font-weight:400}
.tlh-hero h1 em{color:#dcc39d}
.tlh-hero-copy p{font-size:16px;line-height:1.75;color:#d5d8d8;max-width:390px}
.tlh-actions{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin-top:30px}
.tlh-cta{display:inline-flex;gap:26px;align-items:center;justify-content:space-between;min-height:48px;padding:14px 20px;border-radius:6px;background:#def29b;color:#161818!important;font-size:14px;font-weight:500;transition:transform .2s,background-color .2s}
.tlh-cta span{font-size:20px;line-height:1}
.tlh-cta:hover{background:#e7f6b6;transform:translateY(-2px)}
.tlh-textlink{display:inline-block;font-size:14px;padding:12px 0 6px;border-bottom:1px solid #b5b8b8;color:#edeeee}
.tlh-textlink:hover{color:#e3d2b3;border-color:#e3d2b3}
.tlh-caption{position:absolute;left:5%;bottom:26px;font-size:11px;letter-spacing:.22em;color:#c3c5c5}
.tlh-spots{list-style:none;margin:0;padding:0}
.tlh-spot{position:absolute;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px 8px 8px;border:1px solid rgba(255,255,255,.28);border-radius:30px;background:rgba(18,24,21,.82);color:#e9ebeb;font-size:13px;transition:transform .2s,background-color .2s}
.tlh-spot b{width:26px;height:26px;border:1px solid rgba(214,226,190,.6);border-radius:50%;display:grid;place-items:center;color:#def29b;font-size:15px;font-weight:400}
.tlh-spot:hover{background:rgba(40,52,44,.92);transform:translateY(-3px)}
.tlh-spot1{top:22%;right:22%}.tlh-spot2{top:52%;right:5%}.tlh-spot3{bottom:15%;right:20%}

/* three pathways (JavaScript only: they set the filter) */
.tlh-paths{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px;border:1px solid var(--t-line);border-radius:10px;overflow:hidden;background:var(--t-bg)}
.tlh-paths button{font:inherit;color:var(--t-ink);background:none;border:0;border-right:1px solid var(--t-line);text-align:left;padding:22px 24px;display:flex;align-items:center;gap:18px;cursor:pointer;min-height:44px;transition:background-color .2s}
.tlh-paths button:last-child{border-right:0}
.tlh-paths button:hover{background:var(--t-surface)}
.tlh-paths .tlh-num{font-size:11px;letter-spacing:.18em;color:var(--t-gold)}
.tlh-paths small{display:block;font-size:11px;letter-spacing:.14em;color:var(--t-gold)}
.tlh-paths strong{display:block;font-size:15px;font-weight:500;margin-top:5px}
.tlh-paths .tlh-arrow{margin-left:auto;color:var(--t-gold)}

/* sections */
.tlh-section{padding-top:88px}
.tlh-head{margin-bottom:28px;max-width:760px}
.tlh h2{font-size:clamp(30px,3.2vw,42px);font-weight:400;letter-spacing:-.03em;line-height:1.18;margin:12px 0 14px;color:var(--t-ink)}
.tlh h2 em{color:var(--t-gold)}
.tlh h2:focus{outline:none}
.tlh h2:focus-visible{outline:2px solid var(--t-gold);outline-offset:6px}
.tlh-head p{font-size:16px;line-height:1.7;color:var(--t-body)}

/* filters */
.tlh-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 24px}
.tlh-filters button{font:inherit;font-size:14px;color:var(--t-ink);background:transparent;border:1px solid var(--t-line);border-radius:999px;padding:10px 18px;min-height:44px;cursor:pointer;transition:border-color .2s,background-color .2s}
.tlh-filters button:hover{border-color:var(--t-gold)}
.tlh-filters button[aria-pressed="true"]{background:var(--t-on);color:var(--t-on-ink);border-color:var(--t-on)}
.tlh-count{margin-left:auto;font-size:13px;color:var(--t-meta)}

/* tool cards */
.tlh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tlh-tool{display:flex;flex-direction:column;border:1px solid var(--t-line);background:var(--t-surface);border-radius:12px;overflow:hidden;transition:transform .25s,border-color .25s,box-shadow .25s}
.tlh-tool:hover,.tlh-tool:focus-visible{transform:translateY(-3px);border-color:var(--t-gold);box-shadow:var(--t-shadow)}
.tlh [hidden]{display:none!important}
.tlh-art{position:relative;height:210px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 60% 50%,rgba(199,185,148,.07),transparent 70%),var(--t-diagram-bg);color:var(--t-diagram);overflow:hidden;border-bottom:1px solid var(--t-line)}
.tlh-art svg{width:100%;height:100%;padding:14px 0;transition:transform .3s}
.tlh-tool:hover .tlh-art svg,.tlh-tool:focus-visible .tlh-art svg{transform:scale(1.035)}
.tlh-art-label,.tlh-art-index{position:absolute;left:20px;font-size:11px;letter-spacing:.16em;color:var(--t-diagram)}
.tlh-art-label{top:16px}.tlh-art-index{bottom:14px}
.tlh-copy{padding:24px;flex:1;display:flex;flex-direction:column;align-items:flex-start}
.tlh-tool h3{font-size:22px;font-weight:500;letter-spacing:-.02em;line-height:1.3;margin:10px 0;color:var(--t-ink)}
.tlh-tool p{font-size:15px;line-height:1.7;color:var(--t-body);margin-bottom:22px}
.tlh-action{margin-top:auto;display:flex;width:100%;justify-content:space-between;align-items:center;font-size:14px;color:var(--t-ink);border-top:1px solid var(--t-line);padding-top:16px}
.tlh-action span{color:var(--t-gold);font-size:18px}
.tlh-featured{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr}
.tlh-featured .tlh-art{height:auto;min-height:320px;border-bottom:0;border-right:1px solid var(--t-line)}
.tlh-featured .tlh-art svg{padding:30px;max-width:640px}
.tlh-featured .tlh-copy{padding:40px;justify-content:center}
.tlh-featured h3{font-size:clamp(26px,2.4vw,32px);max-width:360px}
.tlh-featured p{max-width:360px;font-size:16px}
.tlh-featured .tlh-action{max-width:360px;margin-top:8px}

/* studio feature and the two complementary links */
.tlh-studio{display:grid;grid-template-columns:1fr 1.05fr;border:1px solid var(--t-line);border-radius:12px;overflow:hidden;background:var(--t-deep)}
.tlh-studio-copy{padding:52px 48px}
.tlh-studio-copy p{color:var(--t-body);font-size:16px;line-height:1.75;max-width:380px}
.tlh-studio-cta{display:inline-flex;gap:26px;align-items:center;min-height:48px;margin-top:28px;padding:14px 20px;border-radius:6px;background:#c5a77b;color:#161818!important;font-size:14px;font-weight:500;transition:transform .2s,background-color .2s}
.tlh-studio-cta:hover{background:#d3b78c;transform:translateY(-2px)}
.tlh-studio-cta span{font-size:20px;line-height:1}
.tlh-studio-photo{position:relative;min-height:380px;background:#232525}
.tlh-studio-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% 50%}
.tlh-studio-photo span{position:absolute;left:24px;bottom:24px;background:rgba(18,24,21,.88);color:#efe9dd;padding:14px 18px;font-size:11px;letter-spacing:.12em;border-radius:4px}
.tlh-extras{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0 88px}
.tlh-extra{display:flex;gap:22px;align-items:center;padding:24px 26px;border:1px solid var(--t-line);border-radius:12px;background:var(--t-surface);transition:border-color .2s,transform .2s}
.tlh-extra:hover,.tlh-extra:focus-visible{border-color:var(--t-gold);transform:translateY(-2px)}
.tlh-symbol{font-family:inherit;color:var(--t-gold);font-size:28px;line-height:1}
.tlh-extra h3{font-size:18px;font-weight:500;color:var(--t-ink)}
.tlh-extra p{font-size:14px;color:var(--t-body);margin-top:6px;line-height:1.6}
.tlh-extra .tlh-arrow{margin-left:auto;color:var(--t-gold)}

/* tablet */
@media(max-width:1050px){
  .tlh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tlh-hero-copy{padding-right:150px;max-width:600px}
  .tlh-hero h1{font-size:clamp(40px,5vw,50px)}
  .tlh-spot{right:4%!important}.tlh-spot1{top:18%}.tlh-spot2{top:44%}.tlh-spot3{bottom:18%}
  .tlh-featured .tlh-copy{padding:30px}
  .tlh-paths button{padding:20px 16px;gap:12px}
  .tlh-paths strong{font-size:14px}
  .tlh-studio-copy{padding:36px 32px}
}
/* phone: the floating callouts become ordinary links under the copy */
@media(max-width:680px){
  .tlh-crumbs{padding:16px 0}
  .tlh-hero{min-height:0;padding-bottom:26px}
  .tlh-hero picture img{object-position:64% center}
  .tlh-hero:before{background:linear-gradient(90deg,rgba(14,17,16,.92),rgba(14,17,16,.5)),linear-gradient(0deg,rgba(14,17,16,.94),transparent)}
  .tlh-hero-copy{padding:40px 24px 22px;max-width:none}
  .tlh-hero h1{font-size:clamp(36px,10.5vw,42px);letter-spacing:-.03em}
  .tlh-hero-copy p{font-size:15px}
  .tlh-actions{gap:14px;margin-top:24px}
  .tlh-spots{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px}
  .tlh-spot{position:static;font-size:13px}
  .tlh-caption{position:static;padding:20px 24px 0;font-size:11px;letter-spacing:.16em}
  .tlh-paths{grid-template-columns:1fr}
  .tlh-paths button{border-right:0;border-bottom:1px solid var(--t-line);padding:16px 20px}
  .tlh-paths button:last-child{border-bottom:0}
  .tlh-section{padding-top:52px}
  .tlh-count{width:100%;margin:6px 0 0}
  .tlh-grid{grid-template-columns:1fr;gap:18px}
  .tlh-featured{display:flex;flex-direction:column}
  .tlh-featured .tlh-art{min-height:230px;border-right:0;border-bottom:1px solid var(--t-line)}
  .tlh-featured .tlh-art svg{padding:14px}
  .tlh-featured .tlh-copy{padding:24px}
  .tlh-art{height:200px}
  .tlh-studio{grid-template-columns:1fr}
  .tlh-studio-copy{padding:30px 24px}
  .tlh-studio-photo{min-height:240px}
  .tlh-extras{grid-template-columns:1fr;margin-bottom:52px}
  .tlh-extra{padding:20px;gap:16px}
}
@media(max-width:360px){
  .tlh-hero-copy{padding:34px 20px 20px}
  .tlh-spots{padding:0 20px}.tlh-caption{padding-left:20px;padding-right:20px}
  .tlh-cta{gap:14px}
  .tlh-filters button{padding:10px 14px}
}
@media(prefers-reduced-motion:reduce){
  .tlh *,.tlh *:before,.tlh *:after{transition:none!important;animation:none!important}
  .tlh-tool:hover,.tlh-tool:focus-visible,.tlh-tool:hover .tlh-art svg,.tlh-tool:focus-visible .tlh-art svg,.tlh-spot:hover,.tlh-cta:hover,.tlh-studio-cta:hover,.tlh-extra:hover,.tlh-extra:focus-visible{transform:none}
}
/* Outrank the site-wide element rules (home.css "h1 + p", and the generated theme-light.css button reset, whose
   :not(:is(.hero…) *) guard adds class-level specificity). html[data-theme] matches both themes. */
html[data-theme] .tlh .tlh-hero-copy p{color:#d5d8d8}
html[data-theme] .tlh .tlh-filters button{color:var(--t-ink);background:transparent;border:1px solid var(--t-line)}
html[data-theme] .tlh .tlh-filters button:hover{border-color:var(--t-gold)}
html[data-theme] .tlh .tlh-filters button[aria-pressed="true"]{background:var(--t-on);color:var(--t-on-ink);border-color:var(--t-on)}
html[data-theme] .tlh .tlh-paths button{color:var(--t-ink);background:none;border:0;border-right:1px solid var(--t-line)}
html[data-theme] .tlh .tlh-paths button:last-child{border-right:0}
html[data-theme] .tlh .tlh-paths button:hover{background:var(--t-surface)}
@media(max-width:680px){html[data-theme] .tlh .tlh-paths button{border-right:0;border-bottom:1px solid var(--t-line)}html[data-theme] .tlh .tlh-paths button:last-child{border-bottom:0}}

/* SEO, 9 October 2026: the eyebrow is part of the h1 (descriptive words for search) */
.tlh-hero h1{margin-top:0}.tlh-hero h1 .h1-kicker{line-height:normal;margin:0 0 22px}
