/* ==========================================================================
   Resource Hub child — skin. The hub's components in the client's design system.

   Loads last: after the main theme's CSS (inc/config.php → styles) and the hub's
   css/*.css. `html:root` outranks the `:root` the hub prints inline (#rh-brand),
   so these win regardless of order.

   Per client you edit ONLY:
     1. CLIENT TOKENS  — map each token to the client's own CSS variable or a hex value
     3. CHROME FIXES   — only if the main-site header/footer needs help under the hub's CSS
   Sections 2 and 4 are the same for every client.
   ========================================================================== */

/* ===== 1. CLIENT TOKENS — map each to the client's own CSS variable, e.g. var(--brand-red), or a hex ===== */
/* Find them in the main theme's CSS (:root{…} variables, button/heading rules). Placeholders = a neutral navy/gold. */
/* TorHoerman Law: values from the main theme's assets/css/site-header.css / site-footer.css. */
html:root{
  --c-brand:#7F333D;           /* THL maroon: CTA buttons, links, active states */
  --c-brand-hover:#6A2A33;
  --c-brand-strong:#44181E;    /* dark maroon (the theme's pressed / deep shade) */
  --c-brand-soft:#F5EAEB;
  --c-brand-line:#E2C4C8;
  --c-on-brand:#fff;
  --c-accent:#F4CF3E;          /* THL gold (stars, highlights) */
  --c-accent-hover:#FFCA1E;
  --c-on-accent:#1F2124;
  --c-ink:#1F2124;             /* headings */
  --c-text:#333;               /* body copy */
  --c-muted:#464646;
  --c-page:#fff;
  --c-card:#fff;
  --c-sunken:#F4F4F4;
  --c-warm:#FFFAF7;            /* the theme's warm off-white surface */
  --c-warm-soft:#FFFAF7;
  --c-warm-line:#EADFD8;
  --c-warm-ink:#44181E;
  --c-dark:#1F2124;            /* dark panel */
  --c-line:#D9D9D9;
  --c-line-strong:#CECECE;
  --c-font-head:"Merriweather Sans",sans-serif;
  --c-font-body:"Open Sans",sans-serif;
  --c-head-weight:700;
  --c-head-case:none;
  --c-head-track:0;
  --c-radius:100px;            /* the theme's pill buttons */
  --c-radius-lg:10px;
  --c-shadow-sm:0 1px 2px rgba(0,0,0,.06);
  --c-shadow-md:0 6px 18px rgba(0,0,0,.10);
  --c-shadow-brand:0 8px 22px rgba(127,51,61,.28);
  --c-headoff:108px;           /* fixed 90px main header + 18px */
}

/* ===== 2. Hub variables from the tokens (same for every client) ===== */
html:root{
  --rh-font:var(--c-font-body);        /* set the hub's font setting to "system": the main theme loads the fonts */
  --rh-line:var(--c-line);
  --rh-soft:var(--c-sunken);
  --rh-shadow:var(--c-shadow-md);
  --rh-shadow-sm:var(--c-shadow-sm);
  --rh-accent-grad:var(--c-brand);     /* flat colour, no gradients */
  --rh-btn-grad:var(--c-brand);
  --rh-accent-soft:var(--c-brand-soft);
  --rh-accent-line:var(--c-brand-line);
  --rh-muted:var(--c-muted);
  --rh-headoff:var(--c-headoff);
}
body.rh-child{background:var(--c-page);color:var(--c-text)}

/* ===== 3. CHROME FIXES — only if the main-site header/footer needs help under the hub's base.css ===== */
/* Check the header/footer on desktop AND mobile after setup. Typical fixes (STOR needed the first two):
   .site-header svg,.site-footer svg{max-width:none}        icons in flex buttons collapse (base.css: svg{max-width:100%})
   @media (max-width:400px){.site-header .x{display:none}}   a rule the main site keeps in a page-specific stylesheet
   .site-header a{color:inherit}                              base.css colours bare links with the brand colour        */

/* THL: the main header is position:fixed and transparent at the top of the page (white logo and links over each
   page's dark banner), white once pinned. Hub pages start light, so the header's top state gets the dark panel the
   main pages show behind it, and the page starts below it. The pinned (scrolled) state is untouched. */
body.rh-child{padding-top:88px}                                   /* header bottom edge: 90px tall at top:-2px … */
@media (max-width:767px){body.rh-child{padding-top:60px}html:root{--c-headoff:78px}} /* … 60px on phones (79px at top:9px on tablets = 88) */
body.rh-child #thl-hdr:not(.is-pinned){background-color:var(--c-dark)}
body.rh-child.admin-bar #thl-hdr{top:32px}
@media (max-width:782px){body.rh-child.admin-bar #thl-hdr{top:46px}}
body.rh-child #thl-hdr svg,body.rh-child #thl-footer svg{max-width:none}

/* ===== 4. Components (same for every client — tokens only) ===== */

/* The hub's accent stripes, bars and watermarks: off (flat cards). On mobile the parent makes the
   closing CTA position:static, so its absolutely-placed watermark would escape onto the first screen. */
.rh-card:before,.rh-toc:before,.rh-mtoc:before,.rh-tldr:before,.rh-note:before,.rh-hero-img:before,
.rh-inline-cta:before,.rh-body .ll-inline-cta:before,.rh-arch-cta:before,.rh-arch-author:before,
.rh-body blockquote:before,.rh-meta:after,.rh-share:after,.rh-arch-ph:after,
.rh-cta .wm,.rh-arch-cta .wm{display:none}

/* type: the client's headline voice */
.rh-title,.rh-arch-h1,.rh-hub-hero h1,.rh-hub-h2,.rh-hub-sub,.rh-body h2,.rh-body h3,
.rh-cta h3,.rh-why h3,.rh-inline-cta h4,.rh-body .ll-inline-cta h3,.rh-body .ll-inline-cta h4,
.rh-arch-cta-t h2,.rh-arch-empty h1,.rh-arch-empty h2,.rh-arch-author-body h2,
.rh-hub-topic-title,.rh-arch-card-title{
  font-family:var(--c-font-head);font-weight:var(--c-head-weight);text-transform:var(--c-head-case);letter-spacing:var(--c-head-track)
}
.rh-title{font-size:clamp(28px,3.6vw,40px);line-height:1.06;color:var(--c-ink)}
.rh-arch-h1{font-size:clamp(30px,4.2vw,48px);line-height:1.04;color:var(--c-ink)}
.rh-hub-h2,.rh-hub-h2 a{color:var(--c-ink)!important}
.rh-hub-h2 a:hover{color:var(--c-brand)!important}
.rh-body h2{font-size:24px;line-height:1.15;color:var(--c-ink)}
.rh-body h3{font-size:18px;line-height:1.25;color:var(--c-ink)}
.rh-arch-card-title{font-size:17px;line-height:1.22}
.rh-arch-card-title a{color:var(--c-ink)!important}
.rh-arch-card-title a:hover{color:var(--c-brand)!important}
.rh-hub-featured .rh-arch-card-title{font-size:18px}
.rh-hub-track .rh-arch-card-title{font-size:15px}
.rh-arch-hero .rh-arch-card-title{font-size:clamp(20px,2.4vw,26px)}
.rh-why h3,.rh-cta h3{font-size:19px;line-height:1.15}

/* eyebrows / kickers / labels: tracked uppercase overline in the brand colour (no pills) */
.rh-eyebrow,.rh-arch-eyebrow,.rh-tldr h4{
  background:none;color:var(--c-brand);padding:0;border-radius:0;
  font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase
}
.rh-arch-kicker,.rh-card-h,.rh-toc-head b{font-weight:700;letter-spacing:.14em}
.rh-arch-kicker{color:var(--c-brand)}

/* buttons */
.rh-btn,.rh-post .ll-btn,.rh-body .wp-block-button__link{
  background:var(--c-brand);color:var(--c-on-brand);border:2px solid transparent;border-radius:var(--c-radius);
  font-family:var(--c-font-body);font-weight:700;font-size:15px;line-height:1;padding:13px 22px;box-shadow:none
}
.rh-btn:hover,.rh-post .ll-btn:hover,.rh-body .wp-block-button__link:hover{
  background:var(--c-brand-hover);color:var(--c-on-brand);transform:none;box-shadow:var(--c-shadow-brand)
}
.rh-post .rh-btn,.rh-post .rh-btn:hover,.rh-arch .rh-btn{color:var(--c-on-brand)}
/* ghost = outline button on dark/brand surfaces */
.rh-btn.ghost,.rh-post .ll-btn.ghost{background:transparent;border:2px solid rgba(255,255,255,.6);color:#fff}
.rh-btn.ghost:hover,.rh-post .ll-btn.ghost:hover{background:rgba(255,255,255,.1);box-shadow:none;color:#fff}
/* on brand-coloured panels: the accent button */
.rh-cta .rh-btn:not(.ghost),.rh-arch-cta .rh-btn:not(.ghost){background:var(--c-accent);color:var(--c-on-accent)}
.rh-cta .rh-btn:not(.ghost):hover,.rh-arch-cta .rh-btn:not(.ghost):hover{background:var(--c-accent-hover);color:var(--c-on-accent);box-shadow:none}

/* article */
.rh-post a{color:var(--c-brand)}
.rh-body a{text-decoration:underline;text-underline-offset:2px}
.rh-body a:hover{color:var(--c-brand-strong)}
.rh-crumbs a:hover,.rh-arch-crumbs a:hover{color:var(--c-brand)}
.rh-byline b{color:var(--c-ink)}
.rh-avatar{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c-brand)}
.rh-tldr,.rh-note{background:var(--c-warm-soft);border:1px solid var(--c-warm-line);border-radius:var(--c-radius)}
.rh-tldr p,.rh-note p{color:var(--c-text)}
.rh-body ol li:before{background:var(--c-brand);box-shadow:none}
.rh-body blockquote{background:var(--c-warm-soft);color:var(--c-text);border:1px solid var(--c-warm-line);border-radius:var(--c-radius);font-style:italic;font-weight:500}
.rh-body blockquote p{color:var(--c-text)}
.rh-body th{background:var(--c-dark);border-bottom:2px solid var(--c-brand)}
.rh-body tr:nth-child(even) td{background:var(--c-page)}
.rh-body details.rh-faq{border-radius:var(--c-radius)}
.rh-body details.rh-faq summary{color:var(--c-ink)}
/* in-article CTA (hub-injected + pipeline .ll-inline-cta): a warm band */
.rh-inline-cta,.rh-body .ll-inline-cta{background:var(--c-warm);color:var(--c-text);border:0;box-shadow:none;border-radius:var(--c-radius-lg)}
.rh-inline-cta h4,.rh-body .ll-inline-cta h3,.rh-body .ll-inline-cta h4{color:var(--c-ink)}
.rh-inline-cta p,.rh-body .ll-inline-cta p{color:var(--c-muted)}
.rh-body .ll-inline-cta .ll-btn.ghost{border-color:var(--c-dark);color:var(--c-ink)}
.rh-body .ll-inline-cta .ll-btn.ghost:hover{background:color-mix(in srgb,var(--c-ink) 6%,transparent);color:var(--c-ink)}
/* search field */
.rh-search input{border:1px solid var(--c-line-strong);border-radius:var(--c-radius);background:var(--c-card);color:var(--c-text)}
.rh-search input:focus{border-color:var(--c-brand);outline:none;box-shadow:0 0 0 3px var(--c-brand-line)}
.rh-share a:hover{background:var(--c-brand)}

/* sidebar: top CTA = brand panel, closing CTA = dark panel */
.rh-card{border-radius:var(--c-radius-lg)}
.rh-cta{background:var(--c-brand);border:0}
.rh-cta.rh-cta-bottom{background:var(--c-dark)}
.rh-cta.rh-cta-bottom .rh-btn:not(.ghost){background:var(--c-brand);color:var(--c-on-brand)}
.rh-cta.rh-cta-bottom .rh-btn:not(.ghost):hover{background:var(--c-brand-hover);color:var(--c-on-brand)}
.rh-cta p{color:rgba(255,255,255,.92)}
.rh-trust{border-top-color:rgba(255,255,255,.22)}
.rh-trust b.rh-stars{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:var(--c-accent)}
.rh-stat{background:var(--c-warm);border:0}
.rh-stat b{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;
  color:var(--c-brand);font-family:var(--c-font-head);font-weight:var(--c-head-weight);text-transform:var(--c-head-case)}
.rh-stat small{color:var(--c-muted)}
.rh-why-link{color:var(--c-brand)}
.rh-toc-head b,.rh-mtoc-h{color:var(--c-ink)}
.rh-toc a.active{color:var(--c-ink)}

/* archives + hub */
.rh-arch-card{border-radius:var(--c-radius-lg)}
.rh-arch-card:hover{box-shadow:var(--c-shadow-md)}
.rh-arch-pill{background:var(--c-accent);color:var(--c-on-accent)!important;font-weight:700;letter-spacing:.08em}
.rh-arch-ph{background:var(--c-warm)}
.rh-arch-ph-label{color:var(--c-warm-ink)}
.rh-arch-fpill{color:var(--c-ink)!important;border-color:var(--c-line-strong)}
.rh-arch-fpill:hover{border-color:var(--c-brand);box-shadow:none}
.rh-arch-fpill.active{background:var(--c-brand);color:var(--c-on-brand)!important}
.rh-arch-pager a,.rh-arch-pager span{color:var(--c-ink)}
.rh-arch-pager a:hover{border-color:var(--c-brand)}
.rh-arch-empty{background:var(--c-card);border-radius:var(--c-radius-lg)}
.rh-arch-empty h1,.rh-arch-empty h2{color:var(--c-ink)}
.rh-arch-cta{background:var(--c-brand);border:0;box-shadow:none;border-radius:var(--c-radius-lg)}
.rh-arch-cta .rh-arch-kicker{color:var(--c-accent)}
.rh-arch-cta-t p{color:rgba(255,255,255,.92)}
.rh-arch-author{background:var(--c-dark);border:0}
.rh-arch-author .rh-arch-kicker,.rh-arch-author-body .cred{color:var(--c-accent)}
/* hub home hero (a photo hero keeps the hub's dark overlay) */
.rh-hub-hero{background:var(--c-brand)}
.rh-hub-hero-pill{background:none;padding:0;color:var(--c-accent);font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.rh-hub-hero h1{line-height:1.02}
.rh-hub-hero h1 span{background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor;color:var(--c-accent)}
.rh-hub-hero-text{color:rgba(255,255,255,.92)}
.rh-hub-hero .rh-btn:not(.ghost){background:#fff;color:var(--c-brand)}
.rh-hub-hero .rh-btn:not(.ghost):hover{background:var(--c-sunken);color:var(--c-brand-strong);box-shadow:none}
.rh-hub-topic{border-radius:var(--c-radius-lg)}
.rh-hub-topic-title{color:var(--c-ink)}
.rh-hub-pin:after{background:var(--c-brand)}
.rh-hub-section-head{border-top-color:var(--c-line-strong)}

/* Sidebar CTA card: THL mark with white lettering on the maroon/dark card (Brad, 2026-11-12) */
.rh-cta .mark{content:url(../assets/THL-mark-maroon-white.png)}
/* The card already has its own phone link under the buttons: hide the second (call) button there only */
.rh-side .rh-cta a.rh-btn.ghost{display:none!important}

/* Multi-line boxes: the pill radius clipped text, so they take the card radius (Brad, 2026-11-12) */
.rh-tldr,.rh-note,.rh-body blockquote,.rh-body details.rh-faq{border-radius:var(--c-radius-lg)}

/* Legally Reviewed / Fact-Checked accordions, as on the main site's legal guides (2026-11-16) */
.rh-review{margin:40px 0 28px;border-bottom:1px solid #dcdcdc}
.rh-review details{border-top:1px solid #dcdcdc;padding:0 4px}
.rh-review summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:22px 0;font-weight:700;font-size:1.05rem;color:var(--c-ink)}
.rh-review summary::-webkit-details-marker{display:none}
.rh-review summary::after{content:"";border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid currentColor;margin-left:16px}
.rh-review details[open] summary::after{border-top:0;border-bottom:7px solid currentColor}
.rh-review p{margin:0 0 24px;line-height:1.65}

/* Longer author line (Tor Hoerman bio): keep the photo left of the text instead of wrapping below it (2026-11-16) */
.rh-byline{flex:1 1 0;min-width:0}
