﻿:root {
  --brief-ink: #171d1a;
  --brief-muted: #56615b;
  --brief-bg: #f6f7f4;
  --brief-surface: #eef1ed;
  --brief-white: #ffffff;
  --brief-line: #cbd4ce;
  --brief-green: #246a49;
  --brief-green-dark: #174b34;
  --brief-green-soft: #dcebe2;
  --brief-focus: #075fb7;
}

html { scroll-behavior: smooth; }
body { color: var(--brief-ink); }
body.themh-home main {
  display: block !important;
  gap: 0 !important;
}
body.themh-home main > .section-shell {
  margin-block: 0 !important;
  padding-block: 0 !important;
}
body.themh-home main > :is(.hero-shell, .section-shell) + :is(.hero-shell, .section-shell) {
  margin-top: 96px !important;
}
body.themh-home main > #about + #contact,
body.themh-home main > #contact {
  margin-top: 96px !important;
}
body :focus-visible { outline: 3px solid var(--brief-focus) !important; outline-offset: 3px !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 10px 14px; color: #fff; background: #111; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.themh-navbar { grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr) !important; width: min(100% - 32px, 1180px) !important; padding: 0 !important; justify-content: stretch !important; justify-items: stretch !important; align-items: center !important; gap: 16px !important; }
.themh-navbar__brand {
  grid-column: 1;
  justify-self: start !important;
  width: 44px;
  height: 52px;
  margin-left: -40px;
  justify-content: flex-start !important;
  overflow: hidden;
  transition: width 420ms cubic-bezier(.22, 1, .36, 1);
  will-change: width;
}
.themh-navbar__brand:is(:hover, :focus-visible, :focus-within) {
  width: 145px;
}
.themh-navbar__brand-logo {
  display: block;
  flex: 0 0 145px;
  width: 145px;
  max-width: none !important;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}
.themh-navbar__links { grid-column: 2; justify-self: center !important; }
.themh-navbar > .themh-navbar__calendar { grid-column: 3; justify-self: end !important; }

.themh-navbar__link[data-nav-tooltip],
.themh-navbar__button[data-nav-tooltip] {
  position: relative;
}

.themh-navbar__link[data-nav-tooltip]::after,
.themh-navbar__button[data-nav-tooltip]::after {
  content: attr(data-nav-tooltip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: 600 0.75rem/1.2 "Inter", sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.themh-navbar__link[data-nav-tooltip]:is(:hover, :focus-visible)::after,
.themh-navbar__button[data-nav-tooltip]:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.themh-home .hero-copy-new h1 { font-size: clamp(2.75rem, 5.4vw, 5.4rem) !important; line-height: .96 !important; }
body.themh-home .rotating-hero-title { width: 100%; }
body.themh-home .hero-title-fixed { display: block; white-space: nowrap; font-size: .8em; }
body.themh-home .hero-title-rotator { display: block; width: 100%; max-width: 100%; height: 1.05em; overflow: hidden; box-sizing: border-box; }
body.themh-home .hero-title-changing { display: block; width: max-content; max-width: 100%; white-space: nowrap; transform: translateY(0); transform-origin: left center; opacity: 1; transition: transform 320ms ease, opacity 260ms ease; will-change: transform, opacity; }
body.themh-home .hero-title-changing.is-leaving { transform: translateY(-110%); opacity: 0; }
body.themh-home .hero-title-changing.is-resetting { transition: none !important; }
body.themh-home .hero-title-changing.is-entering { transform: translateY(110%); opacity: 0; }
body.themh-home .hero-eyebrow { color: var(--brief-green-dark) !important; }
body.themh-home .hero-actions-new .btn-primary,
body.themh-home #audience-cta,
body.themh-home .final-platform-cta .btn-primary { color: #000 !important; background: #f2f2f2 !important; border-color: #f2f2f2 !important; }
body.themh-home .hero-actions-new .btn-primary:hover,
body.themh-home #audience-cta:hover,
body.themh-home .final-platform-cta .btn-primary:hover { color: #000 !important; background: #f2f2f2 !important; border-color: #f2f2f2 !important; filter: brightness(.96); }
body.themh-home .hero-trust-line { max-width: 68ch; margin: 18px 0 0; color: var(--brief-muted) !important; font-size: .92rem; }
body.themh-home .trust-strip { display: block; margin-top: 18px; border: 1px solid var(--brief-line); border-radius: 16px; overflow: hidden; background: var(--brief-surface); }
body.themh-home .trust-strip-track { display: flex; width: max-content; animation: trust-strip-scroll 18s linear infinite; will-change: transform; }
body.themh-home .trust-strip-group { display: flex; flex: none; align-items: center; }
body.themh-home .trust-strip span { min-width: 290px; padding: 14px 52px; text-align: center; white-space: nowrap; font: 700 .82rem/1.3 Inter, sans-serif; border-right: 1px solid var(--brief-line); }
@keyframes trust-strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.themh-home #tools .tool-panel > .trust-strip { width: 100%; margin: 20px 0 0; }
body.themh-home #tools .tool-panel-title,
body.themh-home #tools .tool-panel > .trust-strip,
body.themh-home #tools .tool-panel > .trust-strip .trust-strip-track,
body.themh-home #tools .tool-panel > .trust-strip .trust-strip-group,
body.themh-home #tools .tool-panel > .trust-strip span {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
body.themh-home #tools .tool-panel > .trust-strip {
  border-radius: 0 !important;
}
body.themh-home #tools .tool-card {
  flex-basis: calc(((100% - 64px) / 5) - 5px) !important;
  min-width: 195px !important;
  min-height: 350px !important;
}
@media (max-width: 1100px) {
  body.themh-home #tools .tool-card {
    flex-basis: calc(min(78vw, 300px) - 5px) !important;
  }
}
@media (max-width: 760px) {
  body.themh-home #tools .tool-card {
    min-height: 310px !important;
  }
}

/* Hiring Stories: one full-width process image above a centered 2x2 text grid. */
body.themh-home #stories .stories-panel.stories-panel--split {
  overflow: visible !important;
}
body.themh-home #stories .stories-mosaic {
  --story-gap: 16px;
  --story-row: clamp(92px, 7.5vw, 110px);
  --story-side: calc(var(--story-row) + var(--story-row) + var(--story-gap));
  grid-template-columns:
    var(--story-side)
    repeat(2, minmax(0, 1fr))
    var(--story-side) !important;
  grid-template-rows:
    repeat(2, auto)
    repeat(2, var(--story-row)) !important;
  grid-template-areas:
    "b b b b"
    "b b b b"
    "e a c h"
    "e f g h" !important;
  min-height: 0 !important;
  gap: var(--story-gap) !important;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  overflow: visible;
}
body.themh-home #stories .story-mosaic-tile {
  position: relative;
  z-index: 1;
  border: 1px solid #f2f2f2 !important;
  background: #f2f2f2 !important;
  box-shadow:
    8px 8px 14px #c4c4c4,
    -8px -8px 14px #ffffff !important;
  filter:
    drop-shadow(5px 5px 5px rgba(160, 160, 160, .42))
    drop-shadow(-5px -5px 5px #ffffff) !important;
}
body.themh-home #stories .story-mosaic-tile--b {
  aspect-ratio: 3.5 / 1;
}
body.themh-home #stories .story-mosaic-tile--b img {
  object-fit: cover !important;
  object-position: center;
}
body.themh-home #stories .story-mosaic-tile--e,
body.themh-home #stories .story-mosaic-tile--h {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: center;
  justify-self: stretch;
  max-width: none;
  background: #f2f2f2 !important;
}
body.themh-home #stories .story-mosaic-tile--e img,
body.themh-home #stories .story-mosaic-tile--h img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}
body.themh-home #stories .stories-mosaic-more {
  top: calc(100% - var(--story-side) - var(--story-gap)) !important;
  width: clamp(88px, 9vw, 108px) !important;
  padding: 12px !important;
  font-size: .82rem !important;
  box-shadow: 7px 7px 16px #c4c4c4, -7px -7px 16px #fff !important;
}
body.themh-home #stories .story-mosaic-tile--a,
body.themh-home #stories .story-mosaic-tile--c,
body.themh-home #stories .story-mosaic-tile--f,
body.themh-home #stories .story-mosaic-tile--g {
  padding: clamp(14px, 1.5vw, 20px) !important;
  border-radius: 14px;
}
body.themh-home #stories .story-mosaic-tile--a,
body.themh-home #stories .story-mosaic-tile--c {
  align-items: flex-start;
}
body.themh-home #stories .story-mosaic-tile--a {
  padding-right: clamp(54px, 5vw, 68px) !important;
}
body.themh-home #stories .story-mosaic-tile--c {
  padding-left: clamp(54px, 5vw, 68px) !important;
}
body.themh-home #stories .story-mosaic-tile--a h3,
body.themh-home #stories .story-mosaic-tile--c h3,
body.themh-home #stories .story-mosaic-tile--f h3,
body.themh-home #stories .story-mosaic-tile--g h3 {
  max-width: none;
  font-size: clamp(.88rem, 1.25vw, 1.18rem) !important;
}
body.themh-home .audience-reset { min-height: 44px; margin-top: 12px; }
body.themh-home .tool-card .tool-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
body.themh-home .tool-card .tool-meta span { padding: 4px 7px; border: 1px solid var(--brief-line); border-radius: 999px; font: 700 .68rem/1 Inter, sans-serif; }
body.themh-home .final-platform-cta { display: grid; gap: 16px; padding: clamp(26px,4vw,48px); border-radius: 28px; color: #fff; background: var(--brief-green-dark); }
body.themh-home .final-platform-cta h2 { margin: 0; max-width: 780px; color: #fff !important; }
body.themh-home .final-platform-cta .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
body.themh-home .final-platform-cta .btn-secondary { color: #fff !important; border-color: #a9c9b8 !important; background: transparent !important; }

.site-policy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 16px; font-size: .82rem; }
.site-policy-links a { color: inherit; text-underline-offset: 3px; }
.page-policy { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.page-policy h1 { font: 900 clamp(2.2rem,6vw,4.5rem)/1 Inter, sans-serif; letter-spacing: -.055em; }
.page-policy h2 { margin-top: 42px; font: 800 1.55rem/1.2 Inter, sans-serif; }
.page-policy p, .page-policy li { max-width: 70ch; line-height: 1.7; }
.page-policy .policy-meta { color: var(--brief-muted); }

@media (max-width: 900px) {
  body.themh-home .trust-strip span { min-width: 240px; padding-inline: 38px; }
}

@media (max-width: 620px) {
  .themh-navbar { grid-template-columns: minmax(48px, 1fr) auto minmax(28px, 1fr) !important; width: calc(100% - 16px) !important; gap: 4px !important; }
  .themh-navbar__brand { width: 30px; height: 36px; margin-left: -40px; }
  .themh-navbar__brand:is(:hover, :focus-visible, :focus-within) { width: 101px; }
  .themh-navbar__brand-logo { flex-basis: 101px; width: 101px; height: 36px; max-width: none !important; }
  .themh-navbar__links { gap: 2px !important; width: auto !important; }
  .themh-navbar__link, .themh-navbar__button { width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; }
  body.themh-home .hero-primary { min-height: 0 !important; }
  body.themh-home .hero-title-fixed { font-size: clamp(.5em, 10.5vw, .72em); }
  body.themh-home .hero-copy-new h1 span { white-space: normal !important; }
  body.themh-home .trust-strip span { min-width: 210px; padding-inline: 30px; }
  body.themh-home #stories .stories-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto repeat(3, 110px) !important;
    grid-template-areas:
      "b b"
      "a c"
      "e h"
      "f g" !important;
    min-height: 0 !important;
  }
  body.themh-home #stories .story-mosaic-tile--a,
  body.themh-home #stories .story-mosaic-tile--c {
    padding: 12px !important;
  }
  body.themh-home #stories .stories-mosaic-more {
    top: calc(100% - 330px) !important;
    width: 78px !important;
    font-size: .62rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body.themh-home .trust-strip-track { animation: none !important; }
}

.policy-dialog {
  width: min(920px, calc(100% - 24px));
  height: min(820px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #000;
  border-radius: 18px;
  background: #f2f2f2;
  color: #000;
  overflow: hidden;
}

.policy-dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
.policy-dialog__panel { display: grid; grid-template-rows: auto 1fr; height: 100%; background: #f2f2f2; }
.policy-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #000; background: #f2f2f2; }
.policy-dialog__header h2 { margin: 0; color: #000; font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 800; }
.policy-dialog__close { width: 44px; height: 44px; border: 1px solid #000; border-radius: 50%; background: #f2f2f2; color: #000; font: 700 1.5rem/1 "Inter", sans-serif; cursor: pointer; }
.policy-dialog__frame { width: 100%; height: 100%; border: 0; background: #f2f2f2; }

.policy-library,
.policy-library__content,
.policy-library .policy-section { background: #f2f2f2 !important; color: #000 !important; }
.policy-library__content { width: min(100% - 32px, 760px); margin: 0 auto; padding: 32px 0 80px; }
.policy-library :where(h1, h2, h3, p, li, a, strong) { color: #000 !important; }
.policy-library :where(h1, h2, h3, strong) { font-family: "Inter", sans-serif; }
.policy-library :where(p, li, a) { font-family: "Poppins", sans-serif; line-height: 1.65; }
.policy-library__header { padding-bottom: 32px; }
.policy-library__header .section-kicker {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}
.policy-library .policy-section { padding: 32px 0; border-top: 1px solid #000; scroll-margin-top: 24px; }
.policy-library .policy-section h2 { margin-top: 0; }

/* Site-wide raised surfaces: consistent two-colour neumorphic depth. */
:root {
  --site-neu-dark: #c4c4c4;
  --site-neu-light: #ffffff;
  --site-neu-border: #f2f2f2;
  --site-neu-shadow:
    8px 8px 14px var(--site-neu-dark),
    -8px -8px 14px var(--site-neu-light);
  --site-neu-filter:
    drop-shadow(5px 5px 5px rgba(160, 160, 160, .42))
    drop-shadow(-5px -5px 5px var(--site-neu-light));
}

body :is(
  .card,
  .resource-card,
  .resource-library-card,
  .blog-card,
  .blog-featured-card,
  .blog-more-card,
  .story-card,
  .tool-card,
  .panel-card,
  .tax-card,
  .results-card,
  .score-card,
  .setup-card,
  .stats-card,
  .tips-card,
  .optimizer-card,
  .overall-progress-card,
  .quick-stat-card,
  .stat-card-modern,
  .harbour-card,
  .privacy-card,
  .timer-panel-card,
  .contact-card,
  .contact-info-card,
  .contact-faq-card,
  .about-panel,
  .audience-panel,
  .resource-modal-box,
  .info-box,
  .compare-box,
  .chart-box,
  .credit-box,
  .result-box,
  .summary-box,
  .final-payable-box,
  .summary-stat,
  .overall-stat-item,
  .stat-item,
  .insight-item,
  .glossary-item,
  .qa-item,
  .option-block,
  .rewrite-item,
  .details-summary,
  .email-output,
  .preview-panel,
  .decision-content,
  .recommendations-section,
  .feedback-section,
  .chart-section,
  .search-filter-section,
  .weekly-review-banner,
  .reward-banner,
  .upload-zone,
  .story-mosaic-tile
) {
  border-color: var(--site-neu-border) !important;
  box-shadow: var(--site-neu-shadow) !important;
  filter: var(--site-neu-filter) !important;
}

/* About content sits directly in the main About surface, without nested boxes. */
body.themh-home #about .about-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Keep the homepage Blog library card on the site's light-grey surface. */
body.themh-home #insights .blog-more-card,
body.themh-home #insights .blog-more-card:hover,
body.themh-home #insights .blog-more-card:focus-visible,
body.themh-home #insights .blog-more-card::before,
body.themh-home #insights .blog-more-card::after {
  background-color: #f2f2f2 !important;
  background-image: none !important;
}

.social-link img,
.themh-footer.sitewide-footer .social-link img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  object-fit: contain !important;
}

.site-svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  object-fit: contain;
  vertical-align: -0.14em;
}

body.themh-home #about .about-id-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* OfferWise: keep controls direct on the main panel without backing strips. */
body.themh-home.tool-offerwise .decision-content > .panel-header,
body.themh-home.tool-offerwise .decision-content > #factorCategories,
body.themh-home.tool-offerwise .decision-content .category-priority-strip,
body.themh-home.tool-offerwise .decision-content > .action-buttons {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body.themh-home.tool-offerwise .decision-content > .panel-header::before,
body.themh-home.tool-offerwise .decision-content > .panel-header::after,
body.themh-home.tool-offerwise .decision-content > #factorCategories::before,
body.themh-home.tool-offerwise .decision-content > #factorCategories::after,
body.themh-home.tool-offerwise .decision-content .category-priority-strip::before,
body.themh-home.tool-offerwise .decision-content .category-priority-strip::after,
body.themh-home.tool-offerwise .decision-content > .action-buttons::before,
body.themh-home.tool-offerwise .decision-content > .action-buttons::after {
  content: none !important;
  display: none !important;
}

body.themh-home.tool-offerwise .decision-content > .panel-header > h2 {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body.themh-home.tool-offerwise .decision-content > .panel-header > h2::before,
body.themh-home.tool-offerwise .decision-content > .panel-header > h2::after {
  content: none !important;
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 12px 16px;
  color: #fff;
  background: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
