/*
Theme Name:   HelpMeLogin
Theme URI:    https://www.helpmelogin.net/
Description:  Child theme for GeneratePress. Supplies the site shell — header, navigation, breadcrumbs, footer and home page — in the same visual language the HML Suite plugin already uses for article bodies. The plugin owns everything inside the article; this owns everything around it. Deactivating the plugin degrades appearance, never readability; the same is true here.
Author:       HelpMeLogin
Template:     generatepress
Version:      1.1.0
Text Domain:  hml-child
*/

/* ═══════════════════════════════════════════════════════════════════════
   TOKENS

   Copied deliberately, not invented. These are the same values the plugin
   sets in assets/hml.css. The plugin only loads its stylesheet on pages
   that use its components, so the shell cannot rely on it being there —
   but the two must never drift. If a token changes there, change it here.
   ═══════════════════════════════════════════════════════════════════════ */
:root{
  --paper:#FBFAF7;
  --card:#FFFFFF;
  --carbon:#16161A;
  --ink-mid:#5C5C66;
  --ink-soft:#8A8A94;
  --signal:#C8322B;
  --signal-bg:#FDF4F3;
  --verified:#2F6E4F;
  --verified-bg:#F1F7F3;
  --rule:#DEDBD2;
  --rule-soft:#EDEBE4;

  --f-head:'Archivo',system-ui,-apple-system,sans-serif;
  --f-body:'Inter Tight',system-ui,-apple-system,sans-serif;
  --f-data:'JetBrains Mono',ui-monospace,'SF Mono',monospace;

  --w-page:64rem;      /* shell gutter — wider than the 42rem text column */
  --r:3px;
  --hdr:60px;
}

html{background:var(--paper)}
body{background:var(--paper);color:var(--carbon);font-family:var(--f-body)}

/* GeneratePress renders its own header and footer. We replace both. The
   remove_action() calls in functions.php are the real mechanism; these two
   rules are the safety net for the case where GP renames a callback. */
body.hml-shell #masthead,
body.hml-shell .site-footer{display:none !important}

body.hml-shell .site-content{padding-top:0}

/* ═══ SKIP LINK ══════════════════════════════════════════════════════ */
.hml-skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--carbon);
  color:#fff;padding:.7rem 1.1rem;font:600 .85rem/1 var(--f-body);border-radius:0 0 var(--r) 0}
.hml-skip:focus{left:0}

/* ═══ HEADER ═════════════════════════════════════════════════════════ */
/* NOT sticky, on purpose. AdSense Auto Ads places an anchor unit at the top of
   the viewport; a sticky header lands in the same space, the two stack on
   mobile, and Google treats overlapping sticky elements as an intrusive
   interstitial. A reference site is read top to bottom anyway — the nav is
   needed on arrival and on the way out, not in between. */
.hml-hdr{position:relative;z-index:100;background:var(--card);
  border-bottom:1px solid var(--rule)}
.hml-hdr-in{max-width:var(--w-page);margin:0 auto;padding:0 1.25rem;
  min-height:var(--hdr);display:flex;align-items:center;gap:1.5rem}

.hml-brand{display:inline-flex;align-items:baseline;gap:.45rem;text-decoration:none;
  font:700 1.06rem/1 var(--f-head);letter-spacing:-.03em;color:var(--carbon);white-space:nowrap}
.hml-brand:hover{text-decoration:none}
.hml-brand .dot{width:7px;height:7px;border-radius:50%;background:var(--signal);
  display:inline-block;transform:translateY(-1px);flex:0 0 auto}

.hml-nav{margin-left:auto;display:flex;align-items:center;gap:.15rem}
.hml-nav a{font:500 .875rem/1 var(--f-body);color:var(--ink-mid);text-decoration:none;
  padding:.55rem .7rem;border-radius:var(--r);white-space:nowrap;transition:color .12s,background .12s}
.hml-nav a:hover{color:var(--carbon);background:var(--rule-soft);text-decoration:none}
.hml-nav a[aria-current="page"],.hml-nav a.is-active{color:var(--carbon);font-weight:600}

.hml-search{position:relative;flex:0 0 auto}
.hml-search form{display:flex;align-items:center}
.hml-search input{font:400 .85rem/1 var(--f-body);color:var(--carbon);background:var(--card);
  border:1px solid var(--rule);border-radius:var(--r);padding:.5rem .65rem;width:8.5rem;
  transition:width .18s,border-color .12s}
.hml-search input:focus{width:13rem;outline:none;border-color:var(--carbon)}
.hml-search input::placeholder{color:var(--ink-soft)}

.hml-burger{display:none;margin-left:auto;background:none;border:1px solid var(--rule);
  border-radius:var(--r);padding:.45rem .6rem;cursor:pointer;color:var(--carbon);
  font:600 .8rem/1 var(--f-body)}

@media(max-width:900px){
  .hml-burger{display:block}
  .hml-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--card);
    border-bottom:1px solid var(--rule);flex-direction:column;align-items:stretch;
    padding:.4rem .75rem .8rem;gap:0;box-shadow:0 12px 24px -18px rgba(0,0,0,.35)}
  .hml-nav.open{display:flex}
  .hml-nav a{padding:.8rem .5rem;border-bottom:1px solid var(--rule-soft)}
  .hml-nav a:last-child{border-bottom:none}
  .hml-search{order:-1;margin-left:auto}
  .hml-search input{width:7rem}
  .hml-search input:focus{width:9rem}
}

/* ═══ BREADCRUMBS ════════════════════════════════════════════════════
   The plugin already emits BreadcrumbList schema, so Google can read the
   hierarchy. Until now a human could not see it. .crumb is the plugin's
   own class, so this markup picks up its styling for free. */
.hml-crumb-wrap{max-width:var(--w-page);margin:0 auto;padding:1.4rem 1.25rem 0}

/* ═══ CONTENT FRAME ══════════════════════════════════════════════════ */
body.hml-shell .site-content .content-area{padding-top:.25rem}

/* ═══ FOOTER ═════════════════════════════════════════════════════════ */
.hml-foot{margin-top:5rem;background:var(--card);border-top:2px solid var(--carbon);
  font-family:var(--f-body)}
.hml-foot-in{max-width:var(--w-page);margin:0 auto;padding:3rem 1.25rem 0;
  display:grid;grid-template-columns:repeat(4,1fr);gap:2.25rem}
@media(max-width:820px){.hml-foot-in{grid-template-columns:repeat(2,1fr);gap:2rem}}
@media(max-width:460px){.hml-foot-in{grid-template-columns:1fr}}

.hml-foot h2{font:600 .74rem/1 var(--f-head);letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-soft);margin:0 0 .95rem}
.hml-foot ul{list-style:none;margin:0;padding:0}
.hml-foot li{margin:0 0 .5rem}
.hml-foot a{font-size:.88rem;color:var(--ink-mid);text-decoration:none;line-height:1.45}
.hml-foot a:hover{color:var(--carbon);text-decoration:underline;text-underline-offset:3px}

.hml-foot-note{max-width:var(--w-page);margin:0 auto;padding:2.5rem 1.25rem 2.75rem}
.hml-foot-note .rule{border:0;border-top:1px dashed var(--rule);margin:0 0 1.5rem}
.hml-foot-note p{font-size:.8rem;line-height:1.6;color:var(--ink-mid);margin:0 0 .7rem;max-width:52rem}
.hml-foot-note p:last-child{margin-bottom:0}
.hml-foot-note strong{color:var(--carbon);font-weight:600}
.hml-foot-note .stamp{font-family:var(--f-data);font-size:.74rem;color:var(--ink-soft);
  letter-spacing:-.01em}

/* ═══ HOME ═══════════════════════════════════════════════════════════ */
.hml-home{max-width:var(--w-page);margin:0 auto;padding:0 1.25rem}
.hml-hero{padding:3.5rem 0 2.75rem;border-bottom:1px solid var(--rule)}
.hml-hero h1{font:700 clamp(2rem,5vw,3rem)/1.08 var(--f-head);letter-spacing:-.035em;
  margin:0 0 1.1rem;max-width:20ch}
.hml-hero p{font-size:1.06rem;line-height:1.6;color:var(--ink-mid);margin:0;max-width:46rem}
.hml-hero .lede-strong{color:var(--carbon)}

.hml-counts{display:flex;flex-wrap:wrap;gap:2.25rem;margin:2rem 0 0;padding:0;list-style:none}
.hml-counts li{font-family:var(--f-data);font-size:.8rem;color:var(--ink-soft);line-height:1.4}
.hml-counts b{display:block;font-family:var(--f-head);font-size:1.5rem;font-weight:700;
  color:var(--carbon);letter-spacing:-.02em}

.hml-sec{padding:3rem 0 0}
.hml-sec > h2{font:700 1.35rem/1.2 var(--f-head);letter-spacing:-.025em;margin:0 0 .4rem}
.hml-sec > p.sub{font-size:.94rem;color:var(--ink-mid);margin:0 0 1.6rem;max-width:44rem}

.hml-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(15.5rem,1fr));gap:1rem;
  list-style:none;margin:0;padding:0}
.hml-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--r);
  transition:border-color .14s,transform .14s}
.hml-card:hover{border-color:var(--carbon);transform:translateY(-2px)}
.hml-card a{display:block;padding:1.15rem 1.2rem;text-decoration:none;height:100%}
.hml-card b{display:block;font:600 1rem/1.3 var(--f-head);color:var(--carbon);
  letter-spacing:-.015em;margin-bottom:.35rem}
.hml-card span{display:block;font-size:.86rem;line-height:1.5;color:var(--ink-mid)}

.hml-brands{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;margin:0;padding:0}
.hml-brands a{display:inline-block;padding:.5rem .85rem;background:var(--card);
  border:1px solid var(--rule);border-radius:var(--r);font-size:.87rem;font-weight:500;
  color:var(--ink-mid);text-decoration:none;transition:border-color .12s,color .12s}
.hml-brands a:hover{border-color:var(--carbon);color:var(--carbon)}

.hml-stance{margin:3.25rem 0 0;padding:1.75rem 1.75rem;background:var(--verified-bg);
  border-left:2px solid var(--verified);border-radius:0 var(--r) var(--r) 0}
.hml-stance h2{font:600 .74rem/1 var(--f-head);letter-spacing:.09em;text-transform:uppercase;
  color:var(--verified);margin:0 0 .8rem}
.hml-stance p{font-size:.94rem;line-height:1.65;margin:0 0 .8rem;max-width:48rem}
.hml-stance p:last-child{margin-bottom:0}

/* ═══ SEARCH RESULTS + 404 ═══════════════════════════════════════════ */
.hml-plain{max-width:var(--w-page);margin:0 auto;padding:3rem 1.25rem 0}
.hml-plain h1{font:700 clamp(1.7rem,4vw,2.3rem)/1.12 var(--f-head);letter-spacing:-.03em;margin:0 0 .6rem}
.hml-plain > p{color:var(--ink-mid);margin:0 0 2rem}
.hml-results{list-style:none;margin:0;padding:0;border-top:2px solid var(--carbon)}
.hml-results li{border-bottom:1px solid var(--rule-soft)}
.hml-results a{display:block;padding:1rem .2rem;text-decoration:none;transition:padding .12s}
.hml-results a:hover{padding-left:.5rem}
.hml-results b{display:block;font:600 1rem/1.35 var(--f-head);color:var(--carbon);margin-bottom:.2rem}
.hml-results span{display:block;font-size:.86rem;color:var(--ink-mid);line-height:1.5}
.hml-results .path{font-family:var(--f-data);font-size:.76rem;color:var(--ink-soft)}

@media(prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}

/* ═══════════════════════════════════════════════════════════════════════
   v1.1 — BRANDS PANEL, RICHER HOME
   Five section links is not navigation for eleven hundred pages. The panel
   puts every brand hub one click from every page without a second nav bar
   riding along on every scroll.
   ═══════════════════════════════════════════════════════════════════════ */

.hml-nav .hml-more{display:inline-flex;align-items:center;gap:.3rem;background:none;border:0;
  font:500 .875rem/1 var(--f-body);color:var(--ink-mid);padding:.55rem .7rem;border-radius:var(--r);
  cursor:pointer;font-family:var(--f-body)}
.hml-nav .hml-more:hover{color:var(--carbon);background:var(--rule-soft)}
.hml-nav .hml-more svg{width:9px;height:9px;transition:transform .15s}
.hml-nav .hml-more[aria-expanded="true"]{color:var(--carbon);background:var(--rule-soft)}
.hml-nav .hml-more[aria-expanded="true"] svg{transform:rotate(180deg)}

.hml-panel{display:none;border-top:1px solid var(--rule-soft);background:var(--paper)}
.hml-panel.open{display:block}
.hml-panel-in{max-width:var(--w-page);margin:0 auto;padding:1.5rem 1.25rem 1.75rem}
.hml-panel h2{font:600 .72rem/1 var(--f-head);letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-soft);margin:0 0 .9rem}
.hml-panel ul{list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5rem,1fr));gap:.15rem .75rem}
.hml-panel a{display:block;padding:.42rem .35rem;font-size:.875rem;color:var(--ink-mid);
  text-decoration:none;border-radius:var(--r)}
.hml-panel a:hover{color:var(--carbon);background:var(--card)}

@media(max-width:900px){
  .hml-nav .hml-more{width:100%;justify-content:space-between;padding:.8rem .5rem;
    border-bottom:1px solid var(--rule-soft)}
  .hml-panel-in{padding:1rem 1.25rem 1.4rem}
  .hml-panel ul{grid-template-columns:repeat(auto-fill,minmax(8rem,1fr))}
}

/* ── home: brand statement ─────────────────────────────────────────── */
.hml-hero .kicker{font-family:var(--f-data);font-size:.74rem;letter-spacing:.02em;
  color:var(--ink-soft);margin:0 0 1rem;text-transform:uppercase}
.hml-hero h1{max-width:24ch}
.hml-hero .lede{font-size:1.12rem;line-height:1.55;color:var(--carbon);margin:0 0 1.1rem;
  max-width:46rem;font-weight:500}
.hml-hero .sub2{font-size:1rem;line-height:1.65;color:var(--ink-mid);margin:0;max-width:46rem}

/* ── home: the promise strip ───────────────────────────────────────── */
.hml-promise{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem;
  margin:0;padding:2.5rem 0;border-bottom:1px solid var(--rule);list-style:none}
@media(max-width:760px){.hml-promise{grid-template-columns:1fr;gap:1.5rem;padding:2rem 0}}
.hml-promise li{padding-left:1rem;border-left:2px solid var(--rule)}
.hml-promise b{display:block;font:600 .95rem/1.3 var(--f-head);color:var(--carbon);
  letter-spacing:-.015em;margin-bottom:.4rem}
.hml-promise span{display:block;font-size:.9rem;line-height:1.6;color:var(--ink-mid)}

/* ── home: brand columns ───────────────────────────────────────────── */
.hml-brandcols{columns:4;column-gap:2rem;list-style:none;margin:0;padding:0}
@media(max-width:900px){.hml-brandcols{columns:3}}
@media(max-width:620px){.hml-brandcols{columns:2}}
.hml-brandcols li{break-inside:avoid;margin:0 0 .1rem}
.hml-brandcols a{display:block;padding:.4rem .3rem;font-size:.9rem;color:var(--ink-mid);
  text-decoration:none;border-radius:var(--r)}
.hml-brandcols a:hover{color:var(--carbon);background:var(--card)}

/* ── home: closing note ────────────────────────────────────────────── */
.hml-closing{margin:3.5rem 0 0;padding:2rem 0 0;border-top:1px solid var(--rule)}
.hml-closing h2{font:700 1.2rem/1.25 var(--f-head);letter-spacing:-.02em;margin:0 0 .9rem}
.hml-closing p{font-size:.96rem;line-height:1.7;color:var(--ink-mid);margin:0 0 .9rem;max-width:48rem}
.hml-closing p:last-child{margin-bottom:0}
.hml-closing strong{color:var(--carbon);font-weight:600}
