/* Heaven's Gate Funeral Home
 *
 * Base rules are the <helmet> block from the source design, verbatim.
 * Below them, the design's per-element `style-hover` attributes are expressed as
 * classes. Because the elements they apply to carry inline styles, each hover
 * declaration needs `!important` to win the cascade — that is what reproduces the
 * design's hover behaviour, not a shortcut.
 */

/* ------------------------------------------------- base (from <helmet>) */

* { box-sizing: border-box; }
body { margin: 0; background: #faf9f6; -webkit-font-smoothing: antialiased; }

/* The nav dropdown panels are `min-width: 232px`, absolutely positioned at the left
 * edge of their menu item. On a phone the right-hand menus start past the halfway
 * mark, so those panels stick out ~100px beyond the viewport and the page scrolls
 * sideways — even while the panels are hidden, because `visibility: hidden` still
 * takes up layout. `clip` removes the sideways scroll without creating a scroll
 * container, so the sticky header keeps working (`hidden` would break it). */
html { overflow-x: clip; }
section[id], footer[id] { scroll-margin-top: 96px; }
a { color: #0f7a68; text-decoration: none; }
a:hover { color: #0a5a4d; }
@keyframes cwFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes cwDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ------------------------------------------------------ editorial scale */
/* The original comp used large display type at every turn. Funeral care needs
 * warmth and clarity, so display type is reserved for the page thesis and held
 * to a calmer scale everywhere else. Inline values come from the generated
 * templates, therefore these intentional adjustments use !important. */

#app h1 {
  font-size: clamp(36px, 3.8vw, 48px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.015em;
}

#app h2[style*="font-size: 42px"],
#app h2[style*="font-size: 40px"] { font-size: 34px !important; }

#app h2[style*="font-size: 38px"] { font-size: 32px !important; }
#app h2[style*="font-size: 34px"] { font-size: 30px !important; }

#app[data-page="services"] [id="top"] > div {
  min-height: 430px !important;
}

#app[data-page="services"] [id="top"] h1 { max-width: 13.5ch !important; }
#app[data-page="services"] [id="top"] p { font-size: 20px !important; }

#app[data-page="about"] [id="top"] h1 { max-width: 15ch !important; }
#app[data-page="privacy"] [id="top"] h1 { max-width: 18ch !important; }

/* ------------------------------------------- hover states (`style-hover`) */

.hg-menu-item:hover { background: #f6f4ef !important; color: #0f7a68 !important; }
.hg-ghost-teal:hover { background: #dff6f1 !important; }
.hg-solid-teal:hover { background: #3bb49c !important; }
.hg-outline-dark:hover { border-color: #5ec9b4 !important; }
.hg-outline-light:hover { border-color: #5ec9b4 !important; }
.hg-nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px 10px;
  border: 1px solid #d9d4c9;
  background: #ffffff;
  color: #0f7a68;
  cursor: pointer;
}

.hg-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hg-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hg-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hg-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hg-service-card:hover { background: #f6f4ef !important; }
.hg-service-icon-shell {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #0f7a68;
  background: #eff9f6;
  border: 1px solid #bfe8df;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .56);
}
.hg-service-icon { display: block; width: 27px; height: 27px; }
.hg-service-card:hover .hg-service-icon-shell { background: #dff6f1; }
.hg-footer-link:hover { color: #0f7a68 !important; }
.hg-form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------- accessibility control */
/* A small, first-party control makes the accessibility statement easy to find
 * without covering the page or pretending to replace accessible source code. */
.hg-a11y-widget {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 80;
  font-family: 'Mulish', Helvetica, Arial, sans-serif;
}

.hg-a11y-fab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid #08302a;
  border-radius: 999px;
  background: #0f7a68;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(8, 48, 42, .2);
  cursor: pointer;
  font: 700 14px/1 inherit;
  letter-spacing: .02em;
}

.hg-a11y-fab:hover { background: #0a5a4d; }
.hg-a11y-icon { width: 23px; height: 23px; flex: 0 0 auto; }

.hg-a11y-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(314px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #d9d4c9;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(61, 55, 47, .2);
}

.hg-a11y-panel[hidden] { display: none; }
.hg-a11y-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.hg-a11y-panel h2 { margin: 0; color: #473f35; font: 500 25px/1.12 'Newsreader', Georgia, serif; }
.hg-a11y-close { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #d9d4c9; background: #faf9f6; color: #3d372f; cursor: pointer; font: 400 24px/1 'Mulish', Helvetica, Arial, sans-serif; }
.hg-a11y-close:hover { background: #dff6f1; }
.hg-a11y-intro { margin: 10px 0 17px; color: #6b6459; font-size: 14px; line-height: 1.5; }
.hg-a11y-options { display: grid; gap: 8px; }
.hg-a11y-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 12px 13px; border: 1px solid #d9d4c9; background: #faf9f6; color: #3d372f; cursor: pointer; font: 600 14px/1.35 inherit; text-align: left; }
.hg-a11y-option:hover, .hg-a11y-option[aria-pressed="true"] { border-color: #0f7a68; background: #eff9f6; }
.hg-a11y-state { width: 18px; height: 18px; flex: 0 0 auto; border: 1px solid #9a9084; border-radius: 50%; background: #ffffff; }
.hg-a11y-option[aria-pressed="true"] .hg-a11y-state { border-color: #0f7a68; background: #0f7a68; box-shadow: inset 0 0 0 4px #ffffff; }
.hg-a11y-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #e6e2d9; }
.hg-a11y-panel-foot a { color: #0f7a68; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hg-a11y-reset { border: 0; padding: 3px 0; background: transparent; color: #6b6459; cursor: pointer; font: 600 13px/1.3 inherit; text-decoration: underline; text-underline-offset: 3px; }

html.hg-a11y-large #app p,
html.hg-a11y-large #app li,
html.hg-a11y-large #app label,
html.hg-a11y-large #app input,
html.hg-a11y-large #app textarea,
html.hg-a11y-large #app button,
html.hg-a11y-large #app a { font-size: calc(1em + 2px) !important; }

html.hg-a11y-contrast body { background: #ffffff !important; }
html.hg-a11y-contrast #app [style*="background: #faf9f6"],
html.hg-a11y-contrast #app [style*="background:#faf9f6"] { background: #ffffff !important; }
html.hg-a11y-contrast #app [style*="color: #6b6459"],
html.hg-a11y-contrast #app [style*="color:#6b6459"] { color: #29251f !important; }
html.hg-a11y-contrast #app [style*="color: #574f45"],
html.hg-a11y-contrast #app [style*="color:#574f45"] { color: #201c18 !important; }
html.hg-a11y-contrast #app a { text-decoration: underline; text-underline-offset: 3px; }
html.hg-a11y-contrast #app :focus-visible { outline-color: #000000; }

/* ------------------------------------------------------- language prompt */

.hg-language-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  padding: 20px;
}

.hg-language-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 40, 34, .48);
  backdrop-filter: blur(3px);
}

.hg-language-card {
  position: relative;
  width: min(100%, 450px);
  background: #faf9f6;
  border: 1px solid #e6e2d9;
  box-shadow: 0 24px 70px rgba(38, 33, 27, .2);
  padding: 38px 38px 30px;
  text-align: center;
}

.hg-language-kicker {
  color: #0f7a68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0;
  text-transform: uppercase;
}

.hg-language-card h2 {
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
  margin: 14px 0 0;
}

.hg-language-card h2 span { color: #6b6459; font-size: .76em; }

.hg-language-copy {
  color: #6b6459;
  font-size: 16px;
  line-height: 1.55;
  margin: 18px auto 0;
  max-width: 34ch;
}

.hg-language-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.hg-language-choices button {
  border: 1.5px solid #5ec9b4;
  background: #5ec9b4;
  color: #08302a;
  cursor: pointer;
  font: 700 15px/1.2 inherit;
  min-height: 52px;
  padding: 14px 12px;
}

.hg-language-choices button + button {
  background: #ffffff;
  color: #3d372f;
}

.hg-language-choices button:hover { background: #3bb49c; }
.hg-language-choices button + button:hover { background: #dff6f1; }

.hg-language-later {
  background: none;
  border: 0;
  color: #7c7466;
  cursor: pointer;
  font: 600 13px/1.3 inherit;
  margin-top: 22px;
  padding: 6px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------- home hero */

.hg-home-hero-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(250, 249, 246, .3), rgba(250, 249, 246, .04) 58%, rgba(61, 55, 47, .06)),
    url('/assets/images/home-hero-vietnamese-family.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ----------------------------------------------------------- about page */

.hg-team-portrait {
  min-height: 350px;
  display: grid;
  place-items: end center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(223, 246, 241, .86), rgba(234, 230, 218, .92)),
    repeating-linear-gradient(135deg, #dceae4 0 14px, #e6f0eb 14px 28px);
}

.hg-team-portrait span {
  max-width: 24ch;
  padding-top: 14px;
  border-top: 1px solid rgba(71, 63, 53, .28);
  color: #55736a;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .11em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.hg-team-grid {
  width: 100%;
}

.hg-team-card {
  width: 100%;
  max-width: 446px;
  justify-self: center;
}

.hg-team-photo {
  display: block;
  width: 100%;
  height: clamp(300px, 28vw, 360px);
  object-fit: cover;
  object-position: center 20%;
  background: #d9d4c9;
}

.hg-home-about-photo {
  display: block;
  width: 100%;
  min-height: 300px;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  background: #d9d4c9;
}

.hg-services-photo {
  background-color: #d9d4c9;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hg-services-photo--hero {
  min-height: 510px;
  background-image: url('/assets/images/services-reception.webp');
}

.hg-services-photo--support {
  min-height: 400px;
  background-image: url('/assets/images/services-coordination.webp');
  background-position: center 34%;
}

/* ---------------------------------------------------------- privacy policy */

.hg-policy-layout {
  display: grid;
  grid-template-columns: minmax(205px, .42fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
}

.hg-policy-contact {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  padding: 24px 0 25px 22px;
  border-left: 2px solid #5ec9b4;
}

.hg-policy-contact > span,
.hg-policy-effective {
  color: #0f7a68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.35;
  margin: 0;
  text-transform: uppercase;
}

.hg-policy-contact h2 {
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

.hg-policy-contact p {
  color: #6b6459;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.hg-policy-contact a {
  color: #3d372f;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hg-policy-effective { margin: 0 0 28px; color: #7c7466; }
.hg-policy-sections { border-top: 1px solid #d9d4c9; }

.hg-policy-section {
  border-bottom: 1px solid #d9d4c9;
  padding: 28px 0 30px;
}

.hg-policy-section h2 {
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.hg-policy-section p {
  color: #4a4339;
  font-size: 16px;
  line-height: 1.72;
  margin: 12px 0 0;
  text-wrap: pretty;
}

.hg-policy-note {
  background: #eff9f6;
  border-left: 2px solid #5ec9b4;
  margin-top: 34px;
  padding: 20px 22px;
}

.hg-policy-note p {
  color: #3d372f;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ------------------------------------------------------------------ blog */
/* Long-form reading is class-styled, like the policy pages, so articles written as
 * plain copy in assets/js/posts/ need no inline styles of their own. */

.hg-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.hg-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: #cfc5b5;
  font-size: 14px;
  line-height: 1.45;
}

.hg-breadcrumb li + li::before { content: '/'; margin-right: 8px; color: #9a9084; }
.hg-breadcrumb a { color: #f6f2ea; text-decoration: underline; text-decoration-color: rgba(246, 242, 234, .45); text-underline-offset: 3px; }
.hg-breadcrumb a:hover { color: #7ddbc9; }

.hg-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.hg-post-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hg-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e6e2d9;
  padding: 30px 28px 28px;
  transition: border-color 150ms ease, background 150ms ease;
}

.hg-post-card-body { display: flex; flex: 1; flex-direction: column; }
.hg-post-card:hover { border-color: #5ec9b4; background: #fdfdfb; }
.hg-post-card:focus-within { border-color: #0f7a68; }

.hg-post-card-kicker {
  margin: 0;
  color: #0f7a68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hg-post-card-title {
  margin: 14px 0 0;
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.hg-post-card-title a { color: inherit; }
.hg-post-card-title a::after { content: ''; position: absolute; inset: 0; }
.hg-post-card-title a:hover { color: #0f7a68; }

.hg-post-card-excerpt {
  margin: 12px 0 24px;
  color: #574f45;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hg-post-card-meta { margin: auto 0 0; color: #7c7466; font-size: 14px; line-height: 1.5; }

.hg-post-card-cta {
  align-self: start;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 2px solid #5ec9b4;
  color: #3d372f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hg-post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 24px 64px;
  align-items: end;
  background: #dff6f1;
  border-color: #5ec9b4;
  padding: 48px 48px 44px;
  margin-bottom: 24px;
}

.hg-post-card--featured:hover { background: #d6f2ec; }
.hg-post-card--featured .hg-post-card-title { font-size: 40px; line-height: 1.1; }
.hg-post-card--featured .hg-post-card-excerpt { margin-top: 0; font-size: 18px; color: #4a4339; }

.hg-blog-list { max-width: 1240px; margin: 0 auto; padding: 72px 32px 92px; }

.hg-post-meta { margin: 26px 0 0; color: #cfc5b5; font-size: 15px; line-height: 1.5; }

.hg-post-lang-note { max-width: 1240px; margin: 0 auto; padding: 32px 32px 0; }

.hg-post-lang-note p {
  margin: 0;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e6e2d9;
  border-left: 2px solid #5ec9b4;
  color: #3d372f;
  font-size: 16px;
  line-height: 1.55;
}

.hg-post-section { max-width: 1240px; margin: 0 auto; padding: 72px 32px 0; }

.hg-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  grid-template-areas: "main aside";
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.hg-post-main { grid-area: main; min-width: 0; max-width: 720px; }
.hg-post-aside { grid-area: aside; position: sticky; top: 112px; display: grid; gap: 24px; }

.hg-post-toc { border-left: 2px solid #5ec9b4; padding: 4px 0 4px 20px; }

.hg-post-toc-label {
  margin: 0 0 14px;
  color: #0f7a68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* The contents list is a <details> so it can fold away on phones (site.js closes it
 * there). On wider screens it is always open and the summary is just a label. */
.hg-post-toc summary { display: block; list-style: none; cursor: default; pointer-events: none; }
.hg-post-toc summary::-webkit-details-marker { display: none; }

.hg-post-toc ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.hg-post-toc a { color: #574f45; font-size: 15px; line-height: 1.4; }
.hg-post-toc a:hover { color: #0f7a68; }

.hg-post-help { background: #473f35; color: #f6f2ea; padding: 26px 24px; }
.hg-post-help p { margin: 10px 0 20px; color: #e3dacb; font-size: 15px; line-height: 1.55; }
.hg-post-help .hg-post-help-title { margin: 0; color: #f6f2ea; font: 500 24px/1.2 'Newsreader', Georgia, serif; }

.hg-post-help a,
.hg-post-cta-actions a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.hg-post-help a,
.hg-post-cta-actions a.hg-solid-teal { background: #5ec9b4; color: #08302a; }

.hg-post-body { color: #4a4339; font-size: 18px; line-height: 1.75; }
.hg-post-body > :first-child { margin-top: 0; }
.hg-post-body p { margin: 0 0 22px; text-wrap: pretty; }
.hg-post-body strong { color: #3d372f; font-weight: 700; }
.hg-post-body a { color: #0f7a68; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hg-post-body a:hover { color: #0a5a4d; }

.hg-post-body h2 {
  margin: 56px 0 16px;
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.18;
  scroll-margin-top: 110px;
  text-wrap: balance;
}

.hg-post-body h3 {
  margin: 34px 0 10px;
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.hg-post-body ul,
.hg-post-body ol { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.hg-post-body ul > li { position: relative; padding-left: 24px; }

.hg-post-body ul > li::before {
  content: '';
  position: absolute;
  top: .72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ec9b4;
}

.hg-post-body ol { counter-reset: hg-step; }
.hg-post-body ol > li { position: relative; min-height: 32px; padding-left: 46px; counter-increment: hg-step; }

.hg-post-body ol > li::before {
  content: counter(hg-step);
  position: absolute;
  top: .12em;
  left: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #8acdbf;
  border-radius: 50%;
  background: #eff9f6;
  color: #0f7a68;
  font: 500 16px/1 'Newsreader', Georgia, serif;
}

.hg-post-note { margin: 32px 0; padding: 20px 24px; background: #eff9f6; border-left: 2px solid #5ec9b4; }
.hg-post-note p { margin: 0; color: #3d372f; font-size: 17px; line-height: 1.65; }
.hg-post-note .hg-post-note-title { margin-bottom: 6px; font-weight: 700; }

.hg-post-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: center;
  margin-top: 52px;
  padding: 32px 32px;
  background: #dff6f1;
}

.hg-post-cta p { margin: 8px 0 0; color: #4a4339; font-size: 16px; line-height: 1.6; }
.hg-post-cta .hg-post-cta-title { margin: 0; color: #473f35; font: 500 26px/1.2 'Newsreader', Georgia, serif; }
.hg-post-cta-actions { display: grid; gap: 10px; min-width: 230px; }
.hg-post-cta-actions a.hg-outline-dark { border: 1.5px solid #473f35; color: #3d372f; font-weight: 600; }

.hg-post-related { max-width: 1240px; margin: 0 auto; padding: 92px 32px; }

.hg-post-related h2 {
  margin: 0 0 32px;
  color: #473f35;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
}

.hg-notfound-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }

.hg-notfound-links a {
  display: inline-block;
  padding: 14px 20px;
  border: 1.5px solid #5ec9b4;
  color: #3d372f;
  font-size: 15px;
  font-weight: 600;
}

.hg-notfound-links a:hover { background: #dff6f1; }

html.hg-a11y-contrast .hg-post-body,
html.hg-a11y-contrast .hg-post-card-excerpt,
html.hg-a11y-contrast .hg-post-toc a,
html.hg-a11y-contrast .hg-post-cta p { color: #201c18; }
html.hg-a11y-contrast .hg-post-card-meta { color: #29251f; }

/* ------------------------------------------------------------- keyboard */
/* Focus rings are invisible until a keyboard is used, so they leave the
 * design untouched while keeping the page operable without a mouse. */

.hg-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  background: #08302a;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(8, 48, 42, .25);
}

.hg-skip-link:focus { transform: translateY(0); color: #ffffff; }
:focus-visible { outline: 3px solid #0f7a68; outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline-color: #08302a; }

@media (max-width: 820px) {
  .hg-topbar {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hg-topbar > span { width: 100%; }
  .hg-topbar > div { gap: 12px !important; }

  .hg-site-header {
    gap: 12px !important;
    padding: 12px 20px !important;
  }

  .hg-header-main { gap: 14px !important; width: 100%; }
  .hg-brand-mark { width: 36px; height: 36px; }
  .hg-brand-copy > span:first-child { font-size: 22px !important; }
  html.hg-js .hg-nav-toggle { display: block; margin-left: auto; }
  html.hg-js .hg-main-nav { display: none !important; width: 100%; flex-basis: 100%; gap: 0 !important; font-size: 14px !important; margin-top: 8px; }
  html.hg-js .hg-main-nav[data-open="true"] { display: flex !important; }
  .hg-main-nav [data-menu-label] { padding: 7px 8px !important; }
  .hg-header-actions { width: 100%; }
  .hg-header-actions a { flex: 1 1 180px; text-align: center; }

  .hg-policy-layout { grid-template-columns: 1fr; gap: 36px; }
  .hg-policy-contact { position: static; max-width: 510px; }
  .hg-licensing-grid { grid-template-columns: 1fr !important; gap: 28px !important; }

  #app h1 { font-size: clamp(34px, 8.2vw, 42px) !important; }

  #app > main > section:not(#top),
  #app > section:not(#top) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  [id="top"] > div:not(.hg-home-hero-photo) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  [id="top"] > div[style*="grid-template-columns: minmax(0, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  #app[data-page="services"] [id="top"] > div > div:first-child {
    padding: 54px 20px !important;
  }

  .hg-home-hero-photo {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 280px;
    background-position: 74% center;
  }

  .hg-team-portrait { min-height: 285px; }
  .hg-services-photo--hero { min-height: 320px; }
  .hg-services-photo--support { min-height: 280px; }

  [id="top"] > div[style*="grid-template-columns: minmax(0, 1.25fr)"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding-top: 62px !important;
    padding-bottom: 66px !important;
  }

  [id="our-story"] > div,
  [id="our-values"] > div > div {
    grid-template-columns: 1fr !important;
  }

  [id="our-team"] > div > div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  .hg-team-card {
    max-width: 420px;
  }

  .hg-team-photo {
    height: 320px;
  }

  [id="our-services"] > div,
  [id="our-services"] + section > div {
    grid-template-columns: 1fr !important;
  }

  #guides { padding-left: 20px !important; padding-right: 20px !important; }
  .hg-blog-list { padding: 48px 20px 72px; }
  .hg-post-card--featured { grid-template-columns: 1fr; gap: 12px; padding: 32px 26px 30px; }
  .hg-post-card--featured .hg-post-card-title { font-size: 30px; }
  .hg-post-grid--two { grid-template-columns: 1fr; }
  .hg-post-lang-note { padding: 24px 20px 0; }
  .hg-post-section { padding: 36px 20px 0; }
  .hg-post-layout { grid-template-columns: 1fr; grid-template-areas: "aside" "main"; gap: 32px; }
  .hg-post-aside { position: static; }
  .hg-post-help { display: none; }
  .hg-post-toc { border: 1px solid #e6e2d9; border-left: 2px solid #5ec9b4; background: #ffffff; padding: 0; }
  .hg-post-toc summary { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 15px 18px; cursor: pointer; pointer-events: auto; }
  .hg-post-toc summary::after { content: '+'; color: #0f7a68; font-size: 22px; font-weight: 400; letter-spacing: 0; line-height: 1; }
  .hg-post-toc details[open] summary::after { content: '\2212'; }
  .hg-post-toc ol { padding: 0 18px 18px; }
  .hg-post-body { font-size: 17px; }
  .hg-post-body h2 { margin-top: 44px; font-size: 28px; }
  .hg-post-cta { grid-template-columns: 1fr; padding: 28px 22px; }
  .hg-post-cta-actions { min-width: 0; }
  .hg-post-related { padding: 72px 20px; }
}

@media (max-width: 500px) {
  .hg-a11y-widget { right: 16px; }
  .hg-a11y-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .hg-a11y-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .hg-a11y-panel { width: min(314px, calc(100vw - 32px)); }
  .hg-topbar { font-size: 12px !important; }
  .hg-topbar > div { align-items: flex-start !important; flex-direction: column; }
  .hg-site-header { padding: 11px 16px !important; }
  .hg-header-main { display: block !important; }
  .hg-header-main { display: flex !important; align-items: center; }
  .hg-main-nav { margin-top: 10px; }
  .hg-main-nav [data-menu-label] { padding: 7px 7px !important; }
  .hg-header-actions { gap: 8px !important; }
  .hg-header-actions a { flex-basis: 0; padding: 11px 8px !important; font-size: 12px !important; }
  #app[data-page="home"] [id="top"] > div:not(.hg-home-hero-photo) > div {
    padding: 30px 22px !important;
  }
  .hg-policy-contact { padding-left: 18px; }
  .hg-policy-section h2 { font-size: 26px; }
  .hg-policy-section p { font-size: 16px; }
  .hg-language-card { padding: 30px 22px 24px; }
  .hg-language-card h2 { font-size: 31px; }
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
