/*
Theme Name: Online Marketing Metrics
Theme URI: https://onlinemarketingmetrics.com/
Author: Online Marketing Metrics
Author URI: https://onlinemarketingmetrics.com/
Description: A fast, precise, "analytics instrument" theme purpose-built for a suite of free marketing calculators and tools. Includes a designed landing page, category hub pages, a single-tool template with related tools, article/blog layout, and full trust pages. Built for internal linking, Core Web Vitals, and Rank Math compatibility.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omm
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog
*/

/* Fonts ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* =====================================================================
   1. TOKENS
   ===================================================================== */
:root {
  /* color — white + #1C8DC1 brand */
  --ink:        #0C2230;   /* deep teal-navy: dark accents (CTAs, result chips) */
  --ink-soft:   #123140;   /* secondary dark surface */
  --text:       #0E1E2A;   /* headings / strong text */
  --body:       #3C4B56;   /* body copy on light */
  --muted:      #6A7A86;   /* secondary text */
  --canvas:     #F4FAFD;   /* page background (faint teal-white) */
  --paper:      #FFFFFF;   /* cards / surfaces */
  --line:       #E6EEF3;   /* hairline borders (teal-tinted) */
  --line-strong:#CFDDE6;

  --primary:      #1C8DC1; /* brand */
  --primary-700:  #15789F; /* hover / link text (AA on white) */
  --primary-800:  #115E7E; /* active / darker */
  --primary-600:  #1C8DC1;
  --primary-bright:#36B7E8; /* bright accent on dark surfaces */
  --primary-50:   #ECF7FC;
  --primary-100:  #D6EEF7;
  --primary-200:  #B4E0F0;

  --accent:     #1C8DC1;   /* same brand teal for highlights */
  --accent-700: #136488;
  --accent-50:  #ECF7FC;

  --pop:        #5BC8F0;   /* bright cyan for figures on dark surfaces */

  --ring:       #1C8DC1;   /* focus ring */

  /* type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* scale */
  --step-d: clamp(2.3rem, 1.55rem + 3.4vw, 3.6rem);   /* hero h1 */
  --step-1: clamp(1.7rem, 1.32rem + 1.7vw, 2.4rem);   /* h2 */
  --step-2: clamp(1.32rem, 1.18rem + 0.6vw, 1.6rem);  /* h3 */
  --step-3: 1.125rem;
  --step-b: 1.0625rem;                                 /* body */
  --step-s: 0.875rem;
  --step-xs: 0.78rem;

  /* layout */
  --wrap: 1180px;
  --wrap-narrow: 720px;
  --gutter: clamp(1.1rem, 0.6rem + 2.2vw, 2.25rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  /* shadow — layered, premium, teal-tinted */
  --shadow-xs: 0 1px 2px rgba(12,42,56,.06);
  --shadow-sm: 0 1px 2px rgba(12,42,56,.05), 0 4px 10px -4px rgba(12,42,56,.08);
  --shadow-md: 0 6px 16px -8px rgba(12,42,56,.14), 0 16px 34px -18px rgba(12,42,56,.18);
  --shadow-lg: 0 28px 64px -22px rgba(8,38,52,.30), 0 12px 26px -16px rgba(8,38,52,.16);
  --shadow-primary: 0 12px 28px -8px rgba(28,141,193,.50);
  --shadow-primary-sm: 0 6px 16px -6px rgba(28,141,193,.42);

  /* motion */
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* =====================================================================
   2. RESET / BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-b);
  line-height: 1.65;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
a { color: var(--primary-700); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 700; color: var(--text); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Tabular figures for the whole site (numbers are the brand) */
.tabular, .omm-figure, .metric__value, .stat__value {
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   3. UTILITIES
   ===================================================================== */
.omm-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.omm-narrow { max-width: var(--wrap-narrow); }
.omm-section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.omm-section--tight { padding-block: clamp(2.2rem, 1.6rem + 2vw, 3.25rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--step-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-700);
}
.eyebrow::before {
  content: ""; width: 1.4rem; height: 2px; background: var(--primary); border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 60ch; margin-bottom: clamp(1.6rem, 1rem + 2vw, 2.75rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-1); margin-top: .6rem; }
.section-head p { margin-top: .75rem; color: var(--muted); font-size: var(--step-3); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 999;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

/* graph-paper signature */
.graph-bg { position: relative; isolation: isolate; }
.graph-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(28,141,193,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,141,193,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.graph-bg--dark::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
}

/* =====================================================================
   4. BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-s);
  letter-spacing: -.01em;
  padding: .8rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-700); transform: translateY(-1px); }
.btn--ghost { background: var(--paper); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-700); transform: translateY(-1px); }
.btn--light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.2); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: .95rem 1.6rem; font-size: var(--step-3); }
.btn--block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 600;
  font-family: var(--font-display); color: var(--primary-700);
}
.textlink svg { width: 1em; height: 1em; transition: transform .15s var(--ease); }
.textlink:hover { text-decoration: none; }
.textlink:hover svg { transform: translateX(3px); }

/* =====================================================================
   5. HEADER / NAV
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; flex: 0 0 auto; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { max-height: 34px; width: auto; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-bright) 100%);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__name { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.06rem; letter-spacing: -.02em; line-height: 1.05; }
.brand__name span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; padding: 0; }
.primary-nav a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  font-weight: 500; font-size: .94rem; color: var(--body);
}
.primary-nav a:hover { background: var(--primary-50); color: var(--primary-700); text-decoration: none; }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--primary-700); background: var(--primary-50); }

.header-actions { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.header-search-toggle, .nav-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 9px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--text);
}
.header-search-toggle:hover, .nav-toggle:hover { border-color: var(--primary); color: var(--primary-700); }
.header-search-toggle svg, .nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

/* header expanding search */
.header-search {
  display: none; border-top: 1px solid var(--line); background: var(--paper);
}
.header-search.is-open { display: block; }
.header-search form { display: flex; gap: .5rem; padding-block: .9rem; }

/* mobile nav panel */
@media (max-width: 900px) {
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px);
    background: var(--paper); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s var(--ease);
    padding: 5rem 1.25rem 2rem; overflow-y: auto; z-index: 120;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .primary-nav a { padding: .85rem .75rem; border-radius: 10px; font-size: 1.02rem; }
  .nav-toggle { display: grid; }
  .primary-nav.is-open ~ .header-actions .nav-toggle .nav-toggle__open { display: none; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(14,20,36,.45); z-index: 110;
    opacity: 0; visibility: hidden; transition: opacity .2s var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* =====================================================================
   6. HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 1.8rem + 4vw, 5rem) clamp(2.75rem, 1.8rem + 4vw, 4.5rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero__copy { max-width: 36ch; }
.hero h1 { font-size: var(--step-d); margin-top: 1rem; }
.hero h1 .hl { color: var(--primary); }
.hero__sub { margin-top: 1.1rem; font-size: var(--step-3); color: var(--body); max-width: 42ch; }

.hero-search { margin-top: 1.6rem; }
.hero-search__field {
  display: flex; align-items: center; gap: .5rem; background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: .35rem .35rem .35rem .9rem;
  box-shadow: var(--shadow-sm); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.hero-search__field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); }
.hero-search__field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.hero-search__field input { flex: 1; border: 0; outline: 0; background: transparent; padding: .55rem 0; font-size: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--step-s); color: var(--muted); font-weight: 500; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* hero live calculator card (signature) */
.calc-demo {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 1.4rem; position: relative;
}
.calc-demo::after {
  content: "LIVE"; position: absolute; top: 1.4rem; right: 1.4rem;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-700); background: var(--accent-50); padding: .25rem .5rem; border-radius: 6px;
}
.calc-demo__head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.calc-demo__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; }
.calc-demo__icon svg { width: 20px; height: 20px; }
.calc-demo__title { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.02rem; }
.calc-demo__title span { display: block; font-weight: 400; font-family: var(--font-body); font-size: .8rem; color: var(--muted); letter-spacing: 0; }
.calc-field { margin-bottom: .85rem; }
.calc-field label { display: block; font-size: var(--step-xs); font-weight: 600; color: var(--muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em; }
.calc-field input {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .7rem .85rem;
  font-family: var(--font-mono); font-size: 1.05rem; background: var(--canvas);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.calc-field input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); background: var(--paper); }
.calc-result {
  margin-top: 1.1rem; padding: 1.05rem 1.1rem; border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.calc-result__label { font-size: var(--step-s); color: rgba(255,255,255,.75); }
.calc-result__value { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.calc-result__value em { color: var(--pop); font-style: normal; }

/* =====================================================================
   7. CATEGORY GRID
   ===================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cat-card {
  display: flex; flex-direction: column; gap: .85rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
  color: inherit; text-decoration: none;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); text-decoration: none; }
.cat-card__top { display: flex; align-items: center; justify-content: space-between; }
.cat-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; }
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card__count { font-family: var(--font-mono); font-size: var(--step-xs); font-weight: 700; color: var(--muted); background: var(--canvas); border: 1px solid var(--line); padding: .3rem .55rem; border-radius: 999px; }
.cat-card h3 { font-size: var(--step-2); color: var(--text); }
.cat-card__desc { color: var(--muted); font-size: var(--step-s); }
.cat-card__tools { list-style: none; padding: 0; margin-top: auto; display: flex; flex-direction: column; gap: .1rem; border-top: 1px dashed var(--line-strong); padding-top: .85rem; }
.cat-card__tools li a { display: flex; align-items: center; gap: .4rem; font-size: var(--step-s); color: var(--body); padding: .15rem 0; }
.cat-card__tools li a::before { content: "→"; color: var(--primary); font-family: var(--font-mono); }
.cat-card__tools li a:hover { color: var(--primary-700); }
.cat-card__more { font-family: var(--font-display); font-weight: 600; font-size: var(--step-s); color: var(--primary-700); display: inline-flex; align-items: center; gap: .3rem; }
.cat-card__more svg { width: 1em; height: 1em; flex: 0 0 auto; transition: transform .15s var(--ease); }
.cat-card:hover .cat-card__more svg { transform: translateX(3px); }
/* safety: any stray inline arrow inside a text link/button stays inline-sized */
.textlink svg, .tool-card__foot svg, .cat-card__more svg, .btn svg { max-width: 1.2em; max-height: 1.2em; }

/* =====================================================================
   8. TOOL CARDS (featured / archives / related)
   ===================================================================== */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tool-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tool-grid--4 { grid-template-columns: repeat(4, 1fr); }

.tool-card {
  display: flex; flex-direction: column; gap: .55rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
  position: relative; height: 100%;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.tool-card__cat { font-family: var(--font-mono); font-size: var(--step-xs); font-weight: 700; letter-spacing: .04em; color: var(--primary-700); text-transform: uppercase; }
.tool-card h3 { font-size: var(--step-2); line-height: 1.2; }
.tool-card h3 a { color: var(--text); text-decoration: none; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tool-card:hover h3 a { color: var(--primary-700); }
.tool-card__desc { color: var(--muted); font-size: var(--step-s); flex: 1; }
.tool-card__foot { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-s); color: var(--primary-700); margin-top: .25rem; }
.tool-card__foot svg { width: 1em; height: 1em; transition: transform .15s var(--ease); }
.tool-card:hover .tool-card__foot svg { transform: translateX(3px); }

/* =====================================================================
   9. VALUE BAND + METRIC BAND
   ===================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-item__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-50); color: var(--primary-700); display: grid; place-items: center; margin-bottom: 1rem; }
.value-item__icon svg { width: 24px; height: 24px; }
.value-item h3 { font-size: var(--step-2); margin-bottom: .45rem; }
.value-item p { color: var(--muted); font-size: var(--step-s); }

.metric-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.metric-band__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric-band .stat { padding: clamp(1.6rem,1rem+2vw,2.5rem); text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.metric-band .stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1; color: #fff; }
.stat__value .u { color: rgba(255,255,255,.72); }
.stat__label { margin-top: .55rem; font-size: var(--step-s); color: rgba(255,255,255,.7); }

/* =====================================================================
   10. BROWSE ALL (grouped list)
   ===================================================================== */
.browse-cols { columns: 3; column-gap: 2.25rem; }
.browse-group { break-inside: avoid; margin-bottom: 1.75rem; }
.browse-group h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .65rem; padding-bottom: .55rem; border-bottom: 2px solid var(--primary-50); }
.browse-group h3 svg { width: 18px; height: 18px; color: var(--primary-700); }
.browse-group ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .08rem; }
.browse-group a { display: block; padding: .28rem 0; font-size: var(--step-s); color: var(--body); }
.browse-group a:hover { color: var(--primary-700); padding-left: .25rem; }

/* =====================================================================
   11. BREADCRUMBS
   ===================================================================== */
.crumbs { font-size: var(--step-s); color: var(--muted); padding-block: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-700); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--line-strong); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* =====================================================================
   12. SINGLE (tool + article)
   ===================================================================== */
.single-head { padding-bottom: 1.5rem; }
.single-head .eyebrow { margin-bottom: .6rem; }
.single-head h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem); }
.single-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; margin-top: 1rem; color: var(--muted); font-size: var(--step-s); }
.single-head__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.author-chip { display: inline-flex; align-items: center; gap: .5rem; }
.author-chip__img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--primary-100); }

.single-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(1.5rem, 1rem + 2.5vw, 3.25rem); align-items: start; }
.single-layout--wide { grid-template-columns: minmax(0,1fr); } /* tools: full width for calculators */

/* prose: styles the calculator content + supporting copy */
.prose { font-size: var(--step-b); color: var(--body); }
.prose > * + * { margin-top: 1.05rem; }
.prose h2 { font-size: var(--step-1); margin-top: 2.4rem; }
.prose h3 { font-size: var(--step-2); margin-top: 1.8rem; }
.prose h4 { font-size: 1.05rem; margin-top: 1.4rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .75rem !important; }
.prose p { line-height: 1.7; }
.prose a { color: var(--primary-700); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: var(--primary-100); }
.prose a:hover { text-decoration-color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-block: .35rem; line-height: 1.6; }
.prose ul li::marker { color: var(--primary); }
.prose blockquote { border-left: 3px solid var(--primary); background: var(--primary-50); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; color: var(--text); font-size: 1.05rem; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--canvas); border: 1px solid var(--line); padding: .12em .4em; border-radius: 6px; color: var(--primary-700); }
.prose pre { background: var(--ink); color: #E8EBF5; padding: 1.1rem 1.25rem; border-radius: 12px; overflow:auto; }
.prose pre code { background: none; border: 0; color: inherit; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-s); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--canvas); font-family: var(--font-display); color: var(--text); }
.prose tr:last-child td { border-bottom: 0; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
/* emphasise numbers inside content */
.prose b, .prose strong { font-variant-numeric: tabular-nums; }

/* sidebar */
.tool-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.1rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.aside-card__title { font-family: var(--font-display); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .9rem; }
.aside-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.aside-links a { display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem; border-radius: 9px; font-size: var(--step-s); color: var(--body); }
.aside-links a:hover { background: var(--primary-50); color: var(--primary-700); }
.aside-links svg { width: 15px; height: 15px; color: var(--primary); flex: 0 0 auto; }
.aside-cta { background: linear-gradient(150deg, var(--ink), var(--ink-soft)); color: #fff; border: 0; }
.aside-cta .aside-card__title { color: rgba(255,255,255,.6); }
.aside-cta p { color: rgba(255,255,255,.8); font-size: var(--step-s); margin-bottom: 1rem; }

/* share row */
.share-row { display: flex; align-items: center; gap: .6rem; padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.share-row__label { font-size: var(--step-s); color: var(--muted); font-weight: 600; }
.share-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--body); background: var(--paper); }
.share-btn:hover { border-color: var(--primary); color: var(--primary-700); transform: translateY(-1px); }
.share-btn svg { width: 17px; height: 17px; }

/* related */
.related { background: var(--paper); border-top: 1px solid var(--line); }

/* =====================================================================
   13. ARCHIVE / HUB
   ===================================================================== */
.archive-hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.archive-hero__inner { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem); max-width: 56ch; }
.archive-hero h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); margin-top: .8rem; }
.archive-hero__desc { margin-top: 1rem; color: var(--body); font-size: var(--step-3); }
.archive-hero__count { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: var(--step-s); font-weight: 700; color: var(--primary-700); background: var(--primary-50); padding: .4rem .8rem; border-radius: 999px; }

.other-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.other-cats a { font-size: var(--step-s); font-weight: 600; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--body); background: var(--paper); }
.other-cats a:hover { border-color: var(--primary); color: var(--primary-700); text-decoration: none; }

/* =====================================================================
   14. PAGINATION
   ===================================================================== */
.omm-pagination { margin-top: 2.5rem; }
.omm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.omm-pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper);
  font-family: var(--font-mono); font-weight: 700; font-size: .9rem; color: var(--body);
}
.omm-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary-700); text-decoration: none; }
.omm-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* =====================================================================
   15. PAGE TEMPLATE
   ===================================================================== */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-block: clamp(2.25rem,1.6rem+2.5vw,3.5rem); }
.page-hero h1 { font-size: clamp(2rem,1.5rem+2.2vw,2.9rem); }

/* =====================================================================
   16. SEARCH FORM
   ===================================================================== */
.search-form { display: flex; gap: .5rem; width: 100%; }
.search-form input[type="search"] {
  flex: 1; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: .7rem .9rem; background: var(--canvas);
}
.search-form input[type="search"]:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100); background:var(--paper); }

/* live filter (homepage / all tools) */
.filter-empty { display: none; text-align: center; color: var(--muted); padding: 2rem 0; }
.is-hidden { display: none !important; }

/* =====================================================================
   17. 404 / NO RESULTS
   ===================================================================== */
.notice-block { text-align: center; max-width: 540px; margin-inline: auto; padding-block: clamp(3rem,2rem+4vw,5rem); }
.notice-block__code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(3.5rem,2rem+8vw,6rem); color: var(--primary); line-height: 1; }
.notice-block h1 { font-size: var(--step-1); margin-top: 1rem; }
.notice-block p { color: var(--muted); margin-top: .75rem; }
.notice-block .search-form { max-width: 420px; margin: 1.6rem auto 0; }

/* =====================================================================
   18. FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; align-items: start; padding-block: clamp(3.25rem, 2.6rem + 2.4vw, 4.75rem) clamp(2.25rem, 1.9rem + 1.4vw, 3rem); }
.footer-brand .brand { align-items: flex-start; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: var(--step-s); max-width: 32ch; color: rgba(255,255,255,.6); }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; font-family: var(--font-display); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: var(--step-s); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; font-size: var(--step-s); color: rgba(255,255,255,.55); }
.footer-bottom__legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* =====================================================================
   19. RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .cat-grid, .tool-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid--4 { grid-template-columns: repeat(2,1fr); }
  .browse-cols { columns: 2; }
  .metric-band__inner { grid-template-columns: repeat(2,1fr); }
  .metric-band .stat:nth-child(2) { border-right: 0; }
  .metric-band .stat:nth-child(1), .metric-band .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .single-layout { grid-template-columns: minmax(0,1fr); }
  .tool-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .tool-aside > * { flex: 1 1 280px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: none; }
  .calc-demo { max-width: 460px; }
}
@media (max-width: 560px) {
  .cat-grid, .tool-grid, .value-grid, .tool-grid--4, .tool-grid--2 { grid-template-columns: 1fr; }
  .browse-cols { columns: 1; }
  .metric-band__inner { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-trust { gap: .6rem 1.1rem; }
}

/* =====================================================================
   20. A11Y
   ===================================================================== */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tool-card:hover, .cat-card:hover, .btn:hover { transform: none; }
}

/* entrance (respects reduced motion via above) */
@keyframes omm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: omm-rise .6s var(--ease) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }

/* =====================================================================
   THEME SKIN v2 — white + #1C8DC1, premium depth
   ===================================================================== */
::selection { background: var(--primary-100); color: var(--primary-800); }
* { scrollbar-color: var(--primary-200) transparent; }

/* sticky header — premium, gains depth once scrolled */
.site-header {
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(12,42,56,.04), 0 12px 30px -14px rgba(12,42,56,.20);
}
.admin-bar .site-header { top: 32px; }
@media (max-width:782px){ .admin-bar .site-header { top: 46px; } }
.brand img { max-height: 40px; width: auto; }

/* premium primary buttons */
.btn--primary {
  background: linear-gradient(165deg, #23A0D6 0%, #1683B4 55%, #136F97 100%);
  box-shadow: var(--shadow-primary-sm), inset 0 1px 0 rgba(255,255,255,.18);
  border-color: transparent;
}
.btn--primary:hover {
  background: linear-gradient(165deg, #2BA8DD 0%, #1683B4 55%, #115E7E 100%);
  box-shadow: var(--shadow-primary), inset 0 1px 0 rgba(255,255,255,.20);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost { box-shadow: var(--shadow-xs); }
.btn--ghost:hover { box-shadow: var(--shadow-sm); }

/* hero — soft brand glow + deeper card */
.hero {
  background:
    radial-gradient(58% 48% at 80% -8%, rgba(28,141,193,.15), transparent 70%),
    radial-gradient(48% 58% at -2% 105%, rgba(28,141,193,.07), transparent 62%);
}
.calc-demo { box-shadow: var(--shadow-lg); }

/* premium cards + soft teal icon chips */
.cat-card, .tool-card, .aside-card { box-shadow: var(--shadow-sm); }
.cat-card:hover, .tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.cat-card__icon, .value-item__icon {
  background: linear-gradient(155deg, var(--primary-50), #D6EEF7);
  box-shadow: inset 0 0 0 1px rgba(28,141,193,.12);
}

/* metric band — show off the brand teal */
.metric-band { background: linear-gradient(135deg, #1C8DC1 0%, #1378A1 60%, #0F6385 100%); box-shadow: var(--shadow-lg); }
.metric-band .stat { border-right-color: rgba(255,255,255,.16); }
.metric-band .stat:nth-child(1), .metric-band .stat:nth-child(2) { border-bottom-color: rgba(255,255,255,.16) !important; }
.stat__label { color: rgba(255,255,255,.92); font-weight: 500; }

/* light premium footer (renders your custom logo cleanly) */
.site-footer {
  background: linear-gradient(180deg, #F3FAFD 0%, #EAF4F9 100%);
  color: var(--body);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 22px 44px -40px rgba(12,42,56,.30);
}
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--primary-700); }
.footer-brand .brand__name { color: var(--text) !important; }
.footer-brand p { color: var(--muted); }
.footer-col h4 { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom__legal { color: var(--primary-700); }
.footer-brand img { max-height: 48px; width: auto; }

/* prose links */
.prose a { text-decoration-color: var(--primary-200); }
