:root {
  --hgm-ink: #211c18;
  --hgm-muted: rgba(33, 28, 24, 0.62);
  --hgm-line: rgba(33, 28, 24, 0.16);
  --hgm-paper: #fffaf3;
  --hgm-cream: #f4eee4;
  --hgm-accent: #a83b2f;
  --hgm-navy: #0d3547;
}

html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { overflow-x: clip; background: var(--hgm-paper); color: var(--hgm-ink); }
* { box-sizing: border-box; }
a { text-underline-offset: 0.18em; }
img { max-width: 100%; height: auto; }
.hgm-wrap { width: min(calc(100% - 40px), 1180px); margin-inline: auto; }
.hgm-main { min-height: 50vh; padding-block: clamp(48px, 7vw, 96px); }
.hgm-main--full { padding-block: 0; }
.hgm-main--full > .wp-block-post-content { margin: 0; }

body {
  --hgm-site-header-height: 84px;
}

body .wp-site-blocks {
  padding-top: var(--hgm-site-header-height);
}

.hgm-site-header-shell {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--hgm-line);
  background: rgba(255, 250, 243, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.admin-bar .hgm-site-header-shell {
  top: 32px;
}

.hgm-site-header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: transparent;
}

.hgm-site-header__inner {
  width: min(calc(100% - 40px), 1180px);
  max-width: none !important;
  min-height: var(--hgm-site-header-height);
  margin-inline: auto !important;
  padding-inline: 0;
  gap: 28px;
}
.hgm-site-brand { display: inline-flex; flex-direction: column; color: var(--hgm-ink); text-decoration: none; line-height: 1; }
.hgm-site-brand__name { font-size: 1.08rem; font-weight: 900; letter-spacing: -0.04em; }
.hgm-site-brand__name span { margin-left: 0.16rem; color: var(--hgm-accent); font-size: 0.5em; vertical-align: top; }
.hgm-site-brand__latin { margin-top: 0.34rem; color: var(--hgm-muted); font-size: 0.5rem; font-weight: 800; letter-spacing: 0.16em; }
.hgm-site-nav { flex: 1 1 auto; }
.hgm-site-nav .wp-block-navigation-item__content { font-size: 0.83rem; font-weight: 800; text-decoration: none; }
.hgm-site-header__cta { display: inline-flex; gap: 0.65rem; align-items: center; min-height: 48px; padding-inline: 0.9rem; border-bottom: 1px solid var(--hgm-ink); color: var(--hgm-ink); font-size: 0.84rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.hgm-site-header__cta span { color: var(--hgm-accent); }

.hgm-page { margin: 0; }
.hgm-eyebrow, .hgm-kicker { margin: 0; color: var(--hgm-accent); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; }
.hgm-subhero { padding: clamp(64px, 9vw, 128px) 0; background: linear-gradient(135deg, #fffdf9 0%, #f4eee4 100%); }
.hgm-subhero__grid, .hgm-image-split { display: grid; gap: clamp(36px, 7vw, 90px); align-items: center; }
.hgm-subhero__title, .hgm-section-title { margin: 0.32em 0 0; font-size: clamp(2.8rem, 6vw, 5.6rem); font-weight: 900; letter-spacing: -0.075em; line-height: 0.98; text-wrap: balance; }
.hgm-section-title--moderate { font-size: clamp(2.4rem, 4.5vw, 4.3rem); }
.hgm-lead { max-width: 48rem; margin: 1.25rem 0 0; font-size: clamp(1.08rem, 1.7vw, 1.35rem); font-weight: 750; line-height: 1.75; }
.hgm-copy { max-width: 48rem; margin: 1rem 0 0; color: var(--hgm-muted); line-height: 1.9; }
.hgm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hgm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.85rem 1.25rem; border: 1px solid var(--hgm-line); border-radius: 999px; font-weight: 800; text-decoration: none; }
.hgm-button--primary { border-color: var(--hgm-navy); background: var(--hgm-navy); color: #fff; }
.hgm-button--secondary { background: #fffaf3; color: var(--hgm-ink); }
.hgm-section { padding: clamp(64px, 9vw, 124px) 0; }
.hgm-section--tight { padding: clamp(52px, 7vw, 96px) 0; }
.hgm-section-head { max-width: 66rem; margin-bottom: clamp(28px, 5vw, 56px); }
.hgm-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--hgm-line); border-radius: 24px; background: var(--hgm-line); }
.hgm-card { min-width: 0; padding: clamp(24px, 4vw, 40px); background: #fffdf9; }
.hgm-card--accent { background: var(--hgm-accent); color: #fff; }
.hgm-card h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.25; }
.hgm-card p { margin: 0.8rem 0 0; color: var(--hgm-muted); line-height: 1.8; }
.hgm-card--accent p { color: rgba(255,255,255,.8); }
.hgm-card__num { display: block; margin-bottom: 1rem; color: var(--hgm-accent); font-size: 0.72rem; font-weight: 900; letter-spacing: .12em; }
.hgm-card--accent .hgm-card__num { color: rgba(255,255,255,.72); }
.hgm-card__image { display: block; width: min(100%, 240px); margin: 1.5rem auto 0; }
.hgm-image-split__visual { display: grid; place-items: center; }
.hgm-image-split__visual img, .hgm-subhero__visual img { max-height: 560px; object-fit: contain; }
.hgm-check-list, .hgm-steps, .hgm-fact-list { display: grid; gap: 0; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hgm-check-list li, .hgm-steps li, .hgm-fact-list li { padding: 1rem 0; border-bottom: 1px solid var(--hgm-line); }
.hgm-steps li strong, .hgm-steps li span, .hgm-fact-list li strong, .hgm-fact-list li span { display: block; }
.hgm-steps li span, .hgm-fact-list li span { margin-top: .35rem; color: var(--hgm-muted); line-height: 1.8; }
.hgm-version-grid { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--hgm-line); border-radius: 22px; background: var(--hgm-line); }
.hgm-version-card { display: grid; gap: .4rem; padding: 1.4rem; background: #fffdf9; }
.hgm-version-card span { color: var(--hgm-muted); font-size: .82rem; }
.hgm-safe-panel { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--hgm-line); border-radius: 26px; background: var(--hgm-cream); }
.hgm-details { border-top: 1px solid var(--hgm-line); }
.hgm-details summary { padding: 1.25rem 0; font-weight: 850; cursor: pointer; }
.hgm-details__body { padding: 0 0 1.4rem; color: var(--hgm-muted); }
.hgm-action-strip { display: grid; overflow: hidden; border: 1px solid var(--hgm-line); border-radius: 22px; }
.hgm-action-strip__item { display: grid; gap: .3rem; padding: 1.5rem; border-bottom: 1px solid var(--hgm-line); color: var(--hgm-ink); text-decoration: none; }
.hgm-action-strip__item:last-child { border-bottom: 0; }
.hgm-action-strip__item span { color: var(--hgm-accent); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.hgm-action-strip__item strong { font-size: 1.12rem; }
.hgm-action-strip__item em { color: var(--hgm-muted); font-size: .86rem; font-style: normal; }

.hgm-site-footer {
  width: 100vw;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  border-top: 1px solid var(--hgm-line);
  background: linear-gradient(135deg, #f4eee4 0%, #fffaf3 72%);
}
.hgm-site-footer__inner {
  width: min(calc(100% - 40px), 1180px);
  max-width: none !important;
  margin-inline: auto !important;
  padding-block: clamp(58px, 7vw, 88px) clamp(26px, 4vw, 42px);
}
.hgm-site-footer__eyebrow, .hgm-site-footer__label { margin: 0; color: var(--hgm-accent); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.hgm-site-footer__lead { gap: clamp(30px, 6vw, 84px); margin: .85rem 0 clamp(38px, 5vw, 58px); }
.hgm-site-footer__title { margin: 0; font-size: clamp(2.6rem, 4vw, 3.8rem); font-weight: 900; letter-spacing: -.065em; line-height: .98; }
.hgm-site-footer__title a { color: inherit; text-decoration: none; }
.hgm-site-footer__tagline { margin: .9rem 0 0; color: var(--hgm-muted); font-size: clamp(.96rem, 1.2vw, 1.06rem); }
.hgm-site-footer__aside { margin: 0; color: rgba(33,28,24,.48); font-size: .8rem; line-height: 1.75; }
.hgm-site-footer__rule { margin: 0 0 clamp(28px, 4vw, 42px); border-color: var(--hgm-line); }
.hgm-site-footer__nav { gap: clamp(28px, 5vw, 64px); margin-bottom: clamp(34px, 5vw, 54px); }
.hgm-site-footer__nav p { margin: .7rem 0 0; color: var(--hgm-muted); font-size: .86rem; line-height: 2; }
.hgm-site-footer__nav a { color: var(--hgm-ink); text-decoration: none; }
.hgm-site-footer__cta-column { display: flex; align-items: flex-start; justify-content: flex-end; }
.hgm-site-footer__cta { display: inline-flex; gap: .7rem; align-items: center; min-height: 50px; padding: .8rem 1rem; border-top: 1px solid var(--hgm-ink); border-bottom: 1px solid var(--hgm-ink); font-weight: 900; }
.hgm-site-footer__rule--small { margin-bottom: 16px; }
.hgm-site-footer__bottom { color: rgba(33,28,24,.42); font-size: .74rem; }
.hgm-site-footer__bottom p { margin: 0; }

.hgm-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  display: grid;
  grid-template-columns: 36px auto;
  gap: 10px;
  align-items: center;
  min-width: 146px;
  min-height: 60px;
  padding: 9px 18px 9px 10px;
  border: 2px solid var(--hgm-ink);
  border-radius: 18px 13px 19px 10px / 15px 18px 13px 11px;
  background: #fffaf3;
  color: var(--hgm-ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) rotate(-1deg);
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 6px 7px 0 var(--hgm-accent);
  cursor: pointer;
}
.hgm-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0) rotate(-1deg); }
.hgm-back-to-top:hover,
.hgm-back-to-top:focus-visible { transform: translateY(-2px) rotate(-1deg); box-shadow: 7px 9px 0 var(--hgm-accent); }
.hgm-back-to-top > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--hgm-navy); color: #fff; font-size: 1rem; font-weight: 900; }
.hgm-back-to-top strong { font-size: .84rem; font-weight: 900; white-space: nowrap; }
.hgm-back-to-top em { position: absolute; top: -10px; right: 8px; padding: 2px 6px; border-radius: 999px; background: var(--hgm-accent); color: #fff; font-size: .56rem; font-style: normal; font-weight: 900; letter-spacing: .04em; }

@media (min-width: 760px) {
  .hgm-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgm-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hgm-version-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hgm-action-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hgm-action-strip__item { border-right: 1px solid var(--hgm-line); border-bottom: 0; }
  .hgm-action-strip__item:last-child { border-right: 0; }
}
@media (min-width: 960px) {
  .hgm-subhero__grid, .hgm-image-split { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
}
@media (max-width: 900px) {
  .hgm-site-header__cta { display: none; }
  .hgm-site-nav { justify-content: flex-end; }
}
@media (max-width: 782px) {
  body.admin-bar .hgm-site-header-shell { top: 46px; }
}
@media (max-width: 600px) {
  body.admin-bar .hgm-site-header-shell { top: 0; }
}
@media (max-width: 700px) {
  body { --hgm-site-header-height: 72px; }
  html { scroll-padding-top: 88px; }
  .hgm-wrap, .hgm-site-header__inner, .hgm-site-footer__inner { width: min(calc(100% - 28px), 1180px); }
  .hgm-site-footer__lead { display: block; }
  .hgm-site-footer__aside { margin-top: 1rem; }
  .hgm-site-footer__cta-column { justify-content: flex-start; }
  .hgm-site-footer__title { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .hgm-back-to-top { right: 14px; bottom: 14px; min-width: 138px; min-height: 56px; padding: 8px 15px 8px 9px; }
  .hgm-back-to-top > span { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* v0.1.17: Full-width shared shells. Header remains fixed at the viewport top. */
body .wp-site-blocks > .hgm-site-header-shell,
body .wp-site-blocks > .hgm-site-footer-shell,
body .hgm-site-header-shell,
body .hgm-site-footer-shell {
  max-width: none !important;
}

.hgm-site-footer-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body .hgm-site-header__inner,
body .hgm-site-footer__inner {
  max-width: none !important;
}
