/* Default theme base styles. Brand-neutral; values from the ht-tokens palette.
   theme_config overrides arrive as --hm-* custom properties on :root. */
/* Fonts are self-hosted (SIL OFL 1.1, see fonts/OFL.txt); no third-party requests. */
@font-face { font-family: "Geist"; src: url("/theme/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/theme/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* shiro / sumi palette. Colour is scarce: shu (red) is only the mark and the primary CTA. */
  --hm-shu: #c23b22;
  --hm-shu-dark: #a02f1a;
  --hm-sumi: #141417;
  --hm-hai: #66666c;
  --hm-label: #6e6e73;
  --hm-hair: #e6e6e6;
  --hm-shiro: #fafaf8;
  --hm-kinu: #e4e3de;
  --hm-kasumi: #f4f3ef;
  --hm-sumi-soft: #2a2a2f;

  --ht-fg: var(--hm-text);
  --ht-fg-muted: var(--hm-hai);
  --ht-line: var(--hm-hair);
  --ht-surface: var(--hm-bg);
  --ht-surface-2: var(--hm-shiro);

  /* theme_config overrides land on these. --hm-primary colours the primary CTA only. */
  --hm-primary: var(--hm-shu);
  --hm-bg: #ffffff;
  --hm-text: var(--hm-sumi);
  --hm-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hm-font-heading: var(--hm-font);
  --hm-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hm-font-kanji: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", "Meiryo", sans-serif;
  --hm-radius-sm: 6px;
  --hm-radius-md: 10px;
  --hm-radius-lg: 16px;
  --hm-container: 75rem;
  --color-brand: var(--hm-primary);
  --hm-focus: var(--hm-sumi);
  color-scheme: light;
}

/* Dark mode is opt-in: light is the default whatever the OS prefers, and the
   header toggle sets data-theme="dark" on <html> (remembered in localStorage).
   The inline token style only carries values the owner chose (never the stock
   defaults), so a site that sets its own background or text colour wins here by
   being emitted after this sheet. */
:root[data-theme="dark"] {
  --hm-sumi: #ececea;
  --hm-sumi-soft: #d4d4d0;
  --hm-hai: #a3a3a8;
  --hm-label: #8a8a90;
  --hm-hair: #2c2c31;
  --hm-shiro: #1b1b1f;
  --hm-kinu: #2f2f35;
  --hm-kasumi: #1e1e22;
  --hm-bg: #111114;
  --hm-focus: #fafaf8;
  --ht-surface-2: var(--hm-shiro);
  color-scheme: dark;
}
[data-theme="dark"] .hm-tok--k { color: #b9a6f0; }
[data-theme="dark"] .hm-tok--s { color: #8fcf9d; }
[data-theme="dark"] .hm-tok--c { color: #77777e; }
[data-theme="dark"] .hm-cta--dark { background: #26262b; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; /* short pages keep the footer at the bottom */
  margin: 0;
  overflow-x: clip; /* alignfull/alignwide use 100vw, which includes a classic scrollbar */
  background: var(--hm-bg);
  color: var(--hm-text);
  font-family: var(--hm-font);
  font-size: 1rem;
  line-height: 1.6;
  font-kerning: normal;
  font-feature-settings: "rlig" 1, "calt" 0, "ss11" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--hm-font-heading); font-weight: 450; line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.06em; }
h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 3px; border-radius: 2px; }
code, kbd, pre, samp { font-family: var(--hm-font-mono); }
img, svg, video { max-width: 100%; height: auto; }
picture { display: contents; }

.hm-container { width: 100%; max-width: var(--hm-container); margin: 0 auto; padding: 0 1.5rem; }

.hm-skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ht-fg); color: var(--hm-bg); padding: 0.5rem 1rem;
}
.hm-skip:focus { left: 0.5rem; top: 0.5rem; }
main { flex: 1 0 auto; }
main:focus { outline: none; } /* focus target of the skip link, not a control */
.hm-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sections: hairline separated bands. */
.hm-section { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--hm-hair); }
.hm-section:first-child { border-top: 0; }

/* Buttons: pill, shu fill for the primary CTA, hairline outline for the rest. */
.hm-btn {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0 1.1rem; border-radius: 999px;
  background: var(--hm-primary); color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 500; line-height: 1.2;
  border: 1px solid var(--hm-primary); transition: background 0.15s, border-color 0.15s, filter 0.15s;
}
.hm-btn:hover { filter: brightness(0.88); }

/* Header + nav */
.hm-header {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--hm-hair);
  background: color-mix(in srgb, var(--hm-bg) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.hm-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.hm-logo { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.65rem; color: var(--hm-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; }
.hm-logo__mark { font-family: var(--hm-font-kanji); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; text-transform: none; color: var(--hm-shu); }
.hm-logo img { display: block; }
.hm-nav-wrap { margin-left: auto; }
.hm-nav { position: relative; font-size: 0.875rem; }
.hm-nav__toggle { cursor: pointer; list-style: none; padding: 0.4rem 0.2rem; font-weight: 500; color: var(--hm-hai); }
.hm-nav__toggle::-webkit-details-marker { display: none; }
.hm-nav__list, .hm-nav__sub { list-style: none; margin: 0; padding: 0; }
.hm-nav__list {
  position: absolute; right: 0; top: 100%; min-width: 14rem; z-index: 50;
  background: var(--hm-bg); border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md); padding: 0.5rem;
}
.hm-nav__list a { display: block; padding: 0.35rem 0.5rem; color: var(--hm-hai); text-decoration: none; }
.hm-nav__list a:hover { color: var(--hm-text); background: var(--ht-surface-2); border-radius: var(--hm-radius-sm); }
.hm-nav__sub { padding-left: 0.75rem; }
.hm-nav__toggle:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }
/* Mobile: a scrim behind the open menu. The header's backdrop-filter makes it the
   containing block of fixed children, so this covers the viewport only while the
   sticky header is at the top, which it always is. z-index -1 keeps it under the header content. */
@media (max-width: 47.99rem) {
  .hm-nav[open]::before { content: ""; position: fixed; z-index: -1; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.35); }
}
.hm-nav a[aria-current="page"], .hm-footer a[aria-current="page"] { color: var(--hm-text); font-weight: 500; }

@media (min-width: 48rem) {
  .hm-nav > summary { display: none; }
  .hm-nav::details-content { content-visibility: visible; display: contents; } /* no-JS: list shows without [open] */
  .hm-nav > .hm-nav__list { display: flex; }
  .hm-nav > .hm-nav__list {
    position: static; border: 0; padding: 0; min-width: 0; background: transparent; gap: 1.75rem; align-items: center;
  }
  .hm-header__cta { min-height: 2.125rem; padding: 0 0.9rem; font-size: 0.8125rem; }
  .hm-nav__list > li { position: relative; }
  .hm-nav__sub {
    display: none; position: absolute; left: 0; top: 100%; min-width: 12rem; padding: 0.5rem;
    background: var(--hm-bg); border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md);
  }
  .hm-nav__list > li:hover > .hm-nav__sub, .hm-nav__list > li:focus-within > .hm-nav__sub { display: block; }
}

/* Menu item styling declared in theme.json ("menu"). Classes sit on the link, the
   plain-text span or the footer heading; :is() keeps them above the list rules. */
.hm-nav__list :where(li) > span { display: block; padding: 0.35rem 0.5rem; color: var(--hm-hai); }
:is(a, span, p).hm-nav__item--default { font-weight: 400; }
:is(a, span, p).hm-nav__item--button {
  display: inline-block; padding: 0.4rem 0.9rem; border-radius: var(--hm-radius-sm);
  background: var(--hm-primary); color: var(--hm-bg); font-weight: 500;
}
.hm-nav__sub .hm-nav__item--button { margin-top: 0.25rem; }
:is(a, span, p).hm-nav__item--button:hover { background: var(--hm-shu-dark); color: var(--hm-bg); }
:is(a, span, p).hm-nav__item--link { text-decoration: underline; text-underline-offset: 0.2em; }
:is(a, span, p).hm-nav__item--muted { color: var(--hm-label); font-weight: 400; }
:is(a, span, p).hm-nav-color--accent { color: var(--hm-primary); }
:is(a, span, p).hm-nav-color--ink { color: var(--hm-text); }
:is(a, span, p).hm-nav-color--muted { color: var(--hm-label); }
:is(a, span, p).hm-nav-color--danger { color: var(--hm-shu-dark); }
/* A button keeps its fill: a colour class on a button recolours the fill (never the text, which
   would match the primary fill) and the label is white on the red fills, the page background on ink and muted (both flip with the dark set). */
:is(a, span, p).hm-nav__item--button.hm-nav-color--accent { background: var(--hm-primary); color: #ffffff; }
:is(a, span, p).hm-nav__item--button.hm-nav-color--ink { background: var(--hm-text); color: var(--hm-bg); }
:is(a, span, p).hm-nav__item--button.hm-nav-color--muted { background: var(--hm-label); color: var(--hm-bg); }
:is(a, span, p).hm-nav__item--button.hm-nav-color--danger { background: var(--hm-shu-dark); color: #ffffff; }
/* The plain button darkens on hover (rule above); a coloured one has the same specificity and comes later, so it needs its own hover. */
:is(a, span, p).hm-nav__item--button[class*="hm-nav-color--"]:hover { filter: brightness(0.9); }
.hm-nav__badge {
  display: inline-block; margin-left: 0.35em; padding: 0 0.4em; border: 1px solid var(--hm-hair);
  border-radius: var(--hm-radius-sm); font-size: 0.6875rem; font-weight: 500; line-height: 1.5; vertical-align: middle;
}
.hm-nav__badge--new { background: var(--hm-primary); border-color: var(--hm-primary); color: var(--hm-bg); }
.hm-nav__badge--beta { color: var(--hm-hai); }
.hm-nav__list [data-icon]::after, .hm-footer [data-icon]::after, .hm-menu [data-icon]::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 0.3em; vertical-align: -0.1em;
  background: currentColor; mask: var(--hm-menu-icon) center / contain no-repeat;
}
[data-icon="arrow"] { --hm-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
[data-icon="external"] { --hm-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v6H4V6h6'/%3E%3C/svg%3E"); }
[data-icon="doc"] { --hm-menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v4h4'/%3E%3C/svg%3E"); }
@media (max-width: 47.99rem) { li:has(> .hm-show-desktop), .hm-show-desktop { display: none; } }
@media (min-width: 48rem) { li:has(> .hm-show-mobile), .hm-show-mobile { display: none; } }

/* Footer */
.hm-footer { border-top: 1px solid var(--hm-hair); background: var(--hm-bg); padding: 3rem 0 2.25rem; color: var(--hm-hai); font-size: 0.8125rem; }
.hm-footer a { color: var(--hm-hai); text-decoration: none; }
.hm-footer a:hover { color: var(--hm-text); }
.hm-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.hm-footer__title { color: var(--hm-text); font-weight: 500; margin-bottom: 0.5rem; }
.hm-footer ul { list-style: none; margin: 0; padding: 0; }
.hm-footer li { margin: 0.25rem 0; }
.hm-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem !important; }
.hm-footer__legal { margin: 0; }

/* Errors */
.hm-error { padding: 6rem 0; text-align: center; }
.hm-error__code { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); margin-bottom: 0.5rem; }

/* Sanitised html / rich-text bodies */
.hm-html-body { line-height: 1.7; }
.hm-html-body > :first-child { margin-top: 0; }
.hm-html-body > :last-child { margin-bottom: 0; }
.hm-html-body h2 { margin-top: 2em; }
.hm-html-body h3 { margin-top: 1.5em; }
.hm-html-body ul, .hm-html-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.hm-html-body li { margin: 0.25em 0; }
.hm-html-body blockquote { margin: 1.5em 0; padding: 0 1em; border-left: 3px solid var(--ht-line); color: var(--ht-fg-muted); }
.hm-html-body pre, .hm-html-body code { font-family: var(--hm-font-mono); font-size: 0.9em; }
.hm-html-body pre { background: var(--ht-surface-2); border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md); padding: 1rem; overflow-x: auto; }
.hm-html-body :not(pre) > code { background: var(--ht-surface-2); padding: 0.1em 0.35em; border-radius: var(--hm-radius-sm); }
.hm-html-body table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.hm-html-body th, .hm-html-body td { border: 1px solid var(--ht-line); padding: 0.5rem 0.75rem; text-align: left; }
.hm-html-body details { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md); padding: 0.75rem 1rem; margin: 0.75rem 0; }
.hm-html-body summary { cursor: pointer; font-weight: 600; }
.hm-html-body hr { border: 0; border-top: 1px solid var(--ht-line); margin: 2em 0; }
.hm-html-body img { border-radius: var(--hm-radius-md); }

.hm-prose, .hm-html-body { color: var(--hm-hai); }

/* Light/dark toggle in the header: invisible until the head script wires it up. It keeps its box meanwhile
   (visibility, not display), so showing it does not push the nav sideways (layout shift). */
.hm-theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 2.125rem; height: 2.125rem; padding: 0;
  border: 1px solid var(--hm-hair); border-radius: 999px; background: transparent; color: var(--hm-hai); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.hm-theme-toggle[hidden] { display: inline-grid; visibility: hidden; }
.hm-theme-toggle:hover { color: var(--hm-text); border-color: var(--hm-text); }
.hm-theme-toggle:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }
.hm-theme-toggle svg { width: 1rem; height: 1rem; }
.hm-theme-toggle__sun, [data-theme="dark"] .hm-theme-toggle__moon { display: none; }
[data-theme="dark"] .hm-theme-toggle__sun { display: block; }

@media (max-width: 47.99rem) {
  .hm-header__inner { gap: 0.75rem; }
  .hm-logo { letter-spacing: 0.18em; gap: 0.5rem; }
}

/* Shared section partials: section-head, code-panel. */
.hm-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.hm-section-head__eyebrow { margin: 0 0 1rem; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-section-head__heading { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.hm-section-head__subheading { margin: 0; color: var(--hm-hai); font-size: 1.0625rem; line-height: 1.6; }
.hm-frame { min-width: 0; max-width: 100%; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); background: var(--hm-kasumi); overflow: hidden; }
.hm-frame__bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--hm-hair); background: var(--hm-shiro); font-family: var(--hm-font-mono); font-size: 0.75rem; color: var(--hm-hai); }
.hm-frame__dots { display: inline-flex; gap: 0.35rem; }
.hm-frame__dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--hm-kinu); }
.hm-frame__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hm-text); }
.hm-frame__meta { flex-shrink: 0; margin-left: auto; white-space: nowrap; color: var(--hm-label); }
.hm-frame .hm-code { max-width: 100%; } /* long lines scroll inside the card instead of being clipped */
.hm-code { margin: 0; padding: 1.25rem; overflow-x: auto; font-size: 0.8125rem; line-height: 1.65; color: var(--hm-sumi-soft); tab-size: 2; }
.hm-code code { font-family: inherit; white-space: pre; }
.hm-tok--k { color: #5b4a8a; }
.hm-tok--s { color: #3f6e4a; }
.hm-tok--c { color: #9a9a9f; }
.hm-outs { display: flex; flex-wrap: wrap; gap: 1px; margin: 1rem 0 0; background: var(--hm-hair); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); overflow: hidden; }
.hm-outs > div { flex: 1 1 8rem; padding: 0.75rem 1rem; background: var(--hm-bg); }
.hm-outs dt { font-family: var(--hm-font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-label); }
.hm-outs dd { margin: 0.25rem 0 0; font-size: 0.9375rem; }
@media (max-width: 960px) { .hm-section-head { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; } }

/* Blog layouts: single post, archive, taxonomy, author and search. */

/* Listing header (archive, taxonomy, author, search) */
.hm-listing { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 6rem); }
.hm-listing__header { margin-bottom: 2.5rem; }
.hm-listing__eyebrow { margin: 0 0 0.75rem; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-listing__title { margin: 0 0 0.5rem; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.hm-listing__lede { margin: 0 0 1.25rem; color: var(--hm-hai); font-size: 1.0625rem; }
.hm-empty { color: var(--hm-hai); padding: 2rem 0; }
.hm-author-head { display: flex; align-items: flex-start; gap: 1.5rem; }
.hm-author-head .hm-listing__lede { margin-bottom: 0; }

/* Cards */
.hm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2rem 1.75rem; align-items: start; } /* start: a short, imageless card is not stretched to the tallest in its row */
.hm-card { display: flex; flex-direction: column; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); background: var(--hm-bg); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.hm-card:hover { border-color: var(--hm-kinu); transform: translateY(-2px); }
.hm-card:focus-within { border-color: var(--hm-hai); }
.hm-card__media { display: block; aspect-ratio: 16 / 9; background: var(--hm-kasumi); overflow: hidden; }
.hm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-card__body { display: flex; flex-direction: column; padding: 1.25rem 1.375rem 1.375rem; }
.hm-card__cat { margin: 0 0 0.5rem; font-family: var(--hm-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-card__title { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.hm-card__title a { text-decoration: none; }
.hm-card__title a:hover { text-decoration: underline; }
.hm-card__excerpt { margin: 0 0 1rem; color: var(--hm-hai); font-size: 0.9375rem; }
.hm-card .hm-meta { margin: 0; }

/* Meta line: author, date, reading time */
.hm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin: 0 0 1.5rem; font-size: 0.8125rem; color: var(--hm-label); }
.hm-meta a { color: var(--hm-hai); text-decoration: none; }
.hm-meta a:hover { color: var(--hm-text); text-decoration: underline; }
.hm-meta__author { display: inline-flex; align-items: center; gap: 0.5rem; }
.hm-avatar { border-radius: 50%; object-fit: cover; background: var(--hm-kasumi); }
.hm-avatar--sm { width: 1.5rem; height: 1.5rem; }
.hm-avatar--lg { width: 4.5rem; height: 4.5rem; flex: none; }

/* Term chips */
.hm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.hm-chip { display: inline-block; padding: 0.2rem 0.75rem; border: 1px solid var(--hm-hair); border-radius: 999px; font-size: 0.8125rem; color: var(--hm-hai); text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.hm-chip:hover { border-color: var(--hm-hai); color: var(--hm-text); }

/* Single post */
.hm-article { max-width: 46rem; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hm-article__title { margin: 0 0 1rem; font-size: clamp(2.25rem, 5vw, 3.5rem); }
.hm-article__lede { margin: 0 0 1.25rem; font-size: 1.25rem; line-height: 1.5; color: var(--hm-hai); }
.hm-article__image { margin: 0 -1.5rem 2.5rem; }
.hm-article__image img { display: block; width: 100%; border-radius: var(--hm-radius-lg); }
.hm-article__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hm-hair); }
.hm-entry { font-size: 1.0625rem; line-height: 1.75; color: var(--hm-text); overflow-wrap: break-word; }
.hm-entry > :first-child { margin-top: 0; }
.hm-entry h2 { margin: 2em 0 0.6em; font-size: clamp(1.5rem, 3vw, 2rem); }
.hm-entry h3 { margin: 1.75em 0 0.5em; }
.hm-entry a { color: var(--hm-primary); }
.hm-entry pre { overflow-x: auto; padding: 1rem; background: var(--hm-kasumi); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); font-size: 0.875rem; }
.hm-entry :not(pre) > code { padding: 0.1em 0.35em; background: var(--hm-kasumi); border-radius: var(--hm-radius-sm); font-size: 0.9em; }
.hm-entry img { border-radius: var(--hm-radius-md); }
.hm-entry hr { border: 0; border-top: 1px solid var(--hm-hair); margin: 2.5em 0; }
.hm-page-body { padding-top: 3rem; padding-bottom: 3rem; max-width: 48rem; }

/* Author box and related posts */
.hm-author-box { display: flex; align-items: flex-start; gap: 1rem; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); background: var(--hm-kasumi); }
.hm-author-box p { margin: 0; }
.hm-author-box .hm-meta { margin: 0; }
.hm-author-box .hm-author-bio { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--hm-hai); }
.hm-related { padding-top: 2rem; padding-bottom: 5rem; border-top: 1px solid var(--hm-hair); }
.hm-related__title { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Pagination */
.hm-pagination { margin-top: 3rem; }
.hm-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.hm-pagination a, .hm-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.75rem; border: 1px solid var(--hm-hair); border-radius: 999px; font-size: 0.875rem; color: var(--hm-hai); text-decoration: none; }
.hm-pagination span { border: 0; min-width: 1.5rem; padding: 0; }
.hm-pagination a:hover { border-color: var(--hm-hai); color: var(--hm-text); }
.hm-pagination a[aria-current="page"] { background: var(--hm-text); border-color: var(--hm-text); color: var(--hm-bg); }

/* Search form */
.hm-search { display: flex; gap: 0.75rem; margin: 1.5rem 0 1rem; max-width: 36rem; }
.hm-search .hm-btn { flex: none; }
.hm-search__input { flex: 1 1 auto; min-width: 0; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--hm-kinu); border-radius: 999px; background: var(--hm-bg); color: var(--hm-text); font: inherit; }
.hm-search__input:focus-visible { border-color: var(--hm-text); }

@media (max-width: 47.99rem) {
  .hm-article__image { margin-inline: -1.5rem; }
  .hm-article__image img { border-radius: 0; }
}

/* Changelog archive (archive-release layout) */
.hm-changelog__release { scroll-margin-top: 5rem; padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--hm-hair); }
.hm-changelog__release:target { background: var(--hm-kasumi); box-shadow: -1rem 0 0 var(--hm-kasumi), 1rem 0 0 var(--hm-kasumi); border-radius: var(--hm-radius-sm); }
.hm-changelog__version { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0 0 1rem; font-size: 1.5rem; }
.hm-changelog__date { margin-left: auto; font-size: 0.9375rem; font-weight: 400; }
.hm-changelog__channel { font-weight: 400; }
.hm-changelog__yanked { font-weight: 400; border-color: var(--hm-shu); color: var(--hm-shu); }
.hm-changelog__summary { margin: 0 0 1rem; color: var(--hm-hai); }
.hm-changelog__group { margin: 1.25rem 0 0.5rem; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hm-hai); }
.hm-changelog__list { margin: 0; padding-left: 1.25rem; line-height: 1.6; }
.hm-changelog__list li + li { margin-top: 0.25rem; }
@media (max-width: 40rem) {
  .hm-changelog__version { font-size: 1.25rem; }
  .hm-changelog__date { margin-left: 0; flex-basis: 100%; }
}
.hm-changelog__crumbs, .hm-changelog__jump, .hm-changelog__majors { margin: 0 0 1rem; }
.hm-changelog__older { margin: 2rem 0 0.75rem; font-size: 1.25rem; }

/* Floating contact link: one fixed link, text is its name. */
.hm-contact-float {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 15; /* under the sticky header (20), so an open menu and its scrim cover it */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--hm-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.hm-contact-float--bottom-right { right: calc(1rem + env(safe-area-inset-right)); }
.hm-contact-float--bottom-left { left: calc(1rem + env(safe-area-inset-left)); }
/* The consent "Cookie settings" button owns the bottom-left corner: stack above it. */
body:has(.hm-consent-reopen) .hm-contact-float--bottom-left { bottom: calc(4rem + env(safe-area-inset-bottom)); }
/* Reserve room so the link never covers the last content or a focused control. */
html:has(.hm-contact-float) { scroll-padding-bottom: 5rem; }
body:has(.hm-contact-float) { padding-bottom: 5rem; }
.hm-contact-float:hover { filter: brightness(0.88); }
.hm-contact-float:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; box-shadow: 0 0 0 3px var(--hm-primary), 0 0 0 6px #fff; }
@media print { .hm-contact-float { display: none; } }

/* cssc: Committed Solar Solutions.
   Bundled after the default theme's base.css, so this file sets the tokens and
   restyles the default markup it keeps (hm-prose, listings, forms) as well as
   this theme's own (cs-* classes). Light only, like the old site.
   Fonts: Figtree (body) and Montserrat (headings), SIL OFL 1.1, self-hosted. */

@font-face { font-family: "Figtree"; src: url("/theme/assets/fonts/figtree/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/theme/assets/fonts/figtree/figtree-latin-wght-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/theme/assets/fonts/montserrat/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --cs-copy: 1.0625rem;              /* 17px running text */
  --cs-copy-lg: 1.125rem;            /* 18px intros and long reads */
  /* brand */
  --hm-primary: #1f9c34;            /* green; Theme > Colours and fonts replaces it */
  --cs-green: var(--hm-primary);
  --cs-green-dark: color-mix(in srgb, var(--cs-green) 82%, #000);
  --cs-green-pale: #e6f4ea;
  --cs-orange: #f79b24;
  --cs-orange-2: #f4c64a;
  --cs-orange-text: #e07f0a;        /* orange for text on white */
  --cs-grad: linear-gradient(90deg, var(--cs-orange), var(--cs-orange-2));
  --cs-yellow: #f5e100;
  --cs-navy: #0b1650;
  --cs-heading: #2b2b2b;
  --cs-muted: #4b5058;
  --cs-line: #e7e8ea;
  --cs-near: #fafafa;

  --hm-bg: #ffffff;
  --hm-text: #333333;
  --hm-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --hm-font-heading: "Montserrat", var(--hm-font);
  --hm-radius-sm: 4px;
  --hm-radius-md: 6px;
  --hm-radius-lg: 10px;
  --hm-container: 75rem;

  /* the default theme's names, so the sections and listings it still draws follow along */
  --hm-sumi: var(--hm-text);
  --hm-hai: var(--cs-muted);
  --hm-label: var(--cs-muted);
  --hm-hair: var(--cs-line);
  --hm-shiro: var(--cs-near);
  --hm-kasumi: var(--cs-near);
  --hm-shu: var(--hm-primary);
  --hm-focus: #0b57d0;

  --cs-gap: clamp(1rem, 4vw, 2rem);
  --cs-section: clamp(3.5rem, 8vw, 6.5rem);
  --cs-shadow: 0 10px 30px rgba(20, 30, 40, .10);
  --cs-top-h: 11rem;                /* room the top bar and header take over a photo */
  color-scheme: light;
}

body.cs-body { font-size: var(--cs-copy); line-height: 1.65; color: var(--hm-text); }
.cs-body h1, .cs-body h2, .cs-body h3, .cs-body h4 { font-family: var(--hm-font-heading); color: var(--cs-heading); line-height: 1.2; letter-spacing: 0; font-weight: 700; }
.cs-body a { color: var(--cs-green-dark); }
.cs-body :focus-visible { outline: 3px solid var(--hm-focus); outline-offset: 2px; }
.cs-wrap { width: min(100% - 2 * var(--cs-gap), var(--hm-container)); margin-inline: auto; }
.cs-body .hm-section { padding: 0; border-top: 0; }
main { flex: 1 0 auto; }

/* ---- buttons ---- */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.9rem; padding: .7rem 1.6rem; border: 0; border-radius: 3px; font: 500 1.05rem/1.2 var(--hm-font); text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s, box-shadow .15s; }
.cs-body .cs-btn--orange { background: var(--cs-grad); color: #fff; }
.cs-body .cs-btn--white { background: #fff; color: #222; }
.cs-btn--pill { border-radius: 999px; padding-inline: 2rem; }
.cs-btn--wide { min-width: 15rem; }
.cs-btn:hover { filter: brightness(1.05); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transform: translateY(-1px); }
.cs-play { width: 1rem; height: 1rem; color: var(--cs-green); }

/* ---- top bar and header (float over the first photo) ---- */
.cs-top { position: absolute; inset: 0 0 auto; z-index: 40; }
.cs-topbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 1rem 2.5rem; padding-block: 1.6rem 1.2rem; }
.cs-body .cs-topbar a { display: inline-flex; align-items: center; gap: .6rem; color: #1b1b1b; text-decoration: none; }
.cs-topbar__email { font-size: .95rem; font-weight: 500; }
.cs-topbar__email svg { width: 1.3rem; height: 1.3rem; }
.cs-topbar__phone { font: 700 1.75rem/1 var(--hm-font-heading); letter-spacing: .01em; }
.cs-topbar__phone-icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--cs-green); color: #fff; }
.cs-topbar__phone-icon svg { width: 1.25rem; height: 1.25rem; }
.cs-topbar a:hover span:last-child { text-decoration: underline; }

.cs-header__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 6.4rem; padding: .6rem 1rem .6rem 1rem; background: #fff; border-radius: 3px; box-shadow: var(--cs-shadow); }
.cs-brand { display: inline-flex; flex: none; align-items: center; color: var(--cs-heading); text-decoration: none; font: 700 1.1rem var(--hm-font-heading); }
.cs-brand img { display: block; width: auto; height: 4.6rem; }

.cs-menu { flex: 1 1 auto; }
.cs-menu > summary { list-style: none; }
.cs-menu > summary::-webkit-details-marker { display: none; }
.cs-nav__list, .cs-nav__sub { list-style: none; margin: 0; padding: 0; }
.cs-nav__item { position: relative; }
.cs-body .cs-nav a, .cs-nav__toggle { color: #444; text-decoration: none; font: 400 1.12rem/1.3 var(--hm-font); }
.cs-nav__toggle { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; cursor: pointer; }
.cs-chev { width: .8rem; height: .8rem; transition: transform .15s; }
.cs-nav__item.is-open > .cs-nav__toggle .cs-chev, .cs-nav__item.is-open > .cs-nav__caret .cs-chev { transform: rotate(180deg); }
.cs-body .cs-nav a[aria-current="page"], .cs-body .cs-nav a:hover, .cs-nav__toggle:hover { color: var(--cs-orange-text); }

/* desktop: one row, flyout submenus */
@media (min-width: 62.01rem) {
  .cs-menu > summary { display: none; }
  .cs-menu::details-content { content-visibility: visible; display: contents; }
  .cs-nav { display: flex; align-items: center; height: 100%; }
  .cs-nav__list { display: flex; flex: 1; justify-content: space-evenly; align-items: center; gap: .25rem 1rem; }
  .cs-nav__list > .cs-nav__item { display: flex; align-items: center; gap: .3rem; padding-block: 1.4rem; }
  .cs-nav__cta { display: none !important; }
  .cs-nav__sub { position: absolute; top: 100%; left: -1rem; min-width: 16rem; padding: .5rem 0; background: #fff; border-top: 3px solid var(--cs-orange); border-radius: 0 0 4px 4px; box-shadow: var(--cs-shadow); display: none; z-index: 5; }
  .cs-nav__sub .cs-nav__sub { top: -.5rem; left: 100%; border-top: 0; border-left: 3px solid var(--cs-orange); border-radius: 0 4px 4px 0; }
  .cs-nav__sub .cs-nav__item { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem 0 0; }
  .cs-nav__sub a, .cs-nav__sub .cs-nav__toggle { display: block; padding: .55rem 1.2rem; font-size: 1rem; }
  .cs-nav__sub .cs-nav__caret { padding: .4rem; }
  .cs-nav__sub .cs-nav__caret .cs-chev { transform: rotate(-90deg); }
  .cs-nav__item--parent:hover > .cs-nav__sub,
  .cs-nav__item--parent.is-open > .cs-nav__sub { display: block; }
  html:not(.cs-js) .cs-nav__item--parent:focus-within > .cs-nav__sub { display: block; }
  .cs-header__cta { flex: none; min-height: 3.4rem; padding-inline: 1.9rem; font-size: 1.25rem; font-weight: 400; }
}

/* narrow: burger opens a panel under the bar */
@media (max-width: 62rem) {
  :root { --cs-top-h: 8.5rem; }
  .cs-topbar__inner { justify-content: space-between; gap: .5rem 1rem; padding-block: .6rem; flex-wrap: wrap; }
  .cs-topbar__email { font-size: .82rem; }
  .cs-topbar__email svg { width: 1.05rem; height: 1.05rem; }
  .cs-topbar__phone { font-size: 1.15rem; }
  .cs-topbar__phone-icon { width: 1.9rem; height: 1.9rem; }
  .cs-topbar__phone-icon svg { width: 1rem; height: 1rem; }
  .cs-header__bar { position: relative; min-height: 4.4rem; padding: .45rem .75rem; justify-content: space-between; flex-wrap: wrap; }
  .cs-brand img { height: 3.2rem; }
  .cs-header__cta { display: none !important; }
  .cs-menu { flex: none; order: 2; }
  .cs-menu__toggle { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .4rem .8rem; border: 1px solid var(--cs-line); border-radius: 3px; cursor: pointer; font-weight: 600; color: var(--cs-heading); }
  .cs-menu__bars, .cs-menu__bars::before, .cs-menu__bars::after { display: block; width: 1.25rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
  .cs-menu__bars::before { position: absolute; top: -6px; }
  .cs-menu__bars::after { position: absolute; top: 6px; }
  .cs-menu[open] .cs-menu__bars { background: transparent; }
  .cs-menu[open] .cs-menu__bars::before { top: 0; transform: rotate(45deg); }
  .cs-menu[open] .cs-menu__bars::after { top: 0; transform: rotate(-45deg); }
  .cs-nav { position: absolute; left: 0; right: 0; top: 100%; margin-top: .4rem; padding: .75rem 1rem 1.25rem; background: #fff; border-radius: 3px; box-shadow: var(--cs-shadow); max-height: calc(100dvh - 10rem); overflow-y: auto; }
  .cs-nav__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--cs-line); }
  .cs-nav__item > a, .cs-nav__item > .cs-nav__toggle:not(.cs-nav__caret) { flex: 1; padding: .8rem .25rem; }
  .cs-nav__caret { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; }
  .cs-nav__sub { flex-basis: 100%; padding-left: 1rem; border-left: 3px solid var(--cs-orange); margin-bottom: .5rem; }
  .cs-nav__sub .cs-nav__item:last-child { border-bottom: 0; }
  .cs-js .cs-nav__sub { display: none; }
  .cs-js .cs-nav__item.is-open > .cs-nav__sub { display: block; }
  .cs-nav__cta { display: flex; margin-top: 1rem; width: 100%; }
}

/* ---- page banner (inner pages) ---- */
.cs-banner { position: relative; display: grid; place-items: center; min-height: clamp(22rem, 40vw, 36rem); padding: calc(var(--cs-top-h) + 1.5rem) 0 3rem; color: #fff; background: #3c6fa8; overflow: hidden; isolation: isolate; }
.cs-banner--slim { min-height: 0; padding-bottom: 2rem; }
.cs-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cs-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(55, 110, 175, .78) 0%, rgba(150, 140, 110, .55) 50%, rgba(240, 145, 30, .8) 100%); }
.cs-banner__body { text-align: center; }
.cs-body .cs-banner__title { margin: 0; color: #fff; font: 700 clamp(2rem, 4.6vw, 3.6rem)/1.15 var(--hm-font-heading); text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.cs-banner__title--home { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }

/* ---- page body ---- */
.cs-page { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--cs-near); }
.cs-page--after { background: #fff; }
.cs-meta { max-width: 52rem; margin: 0 auto 1.5rem; color: var(--cs-muted); font-size: .95rem; }
.cs-meta span::before { content: "·"; margin: 0 .5rem; }
.cs-prose { position: relative; max-width: 52rem; margin-inline: auto; font-size: 1.06rem; }
.cs-prose--dup > h1:first-child { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cs-prose > :first-child { margin-top: 0; }
.cs-prose h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cs-prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 2.2em; }
.cs-prose h3 { font-size: 1.35rem; margin-top: 2em; }
.cs-prose h4 { font-size: 1.15rem; }
.cs-prose img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 2px; }
.cs-prose p:has(> img:only-child) { margin-block: 2rem; }
.cs-prose .has-text-align-center { text-align: center; }
.cs-prose .has-text-align-right { text-align: right; }
.cs-prose a { color: #1e88c8; }
.cs-prose strong { color: var(--cs-heading); }
.cs-prose .btn, .cs-prose a.btn { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .7rem 2rem; border-radius: 999px; background: var(--cs-grad); color: #fff; text-decoration: none; }
.cs-prose .click-to-popup { display: none; }   /* the old site's e-book popup trigger */

/* ---- hero ---- */
.cs-hero { position: relative; display: flex; align-items: center; min-height: clamp(34rem, 56vw, 49rem); padding: calc(var(--cs-top-h) + 2rem) 0 7.5rem; overflow: hidden; isolation: isolate; background: #4d6f96; color: #fff; }
.cs-hero picture { display: contents; }
.cs-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cs-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 20, 35, var(--cs-veil)) 0%, rgba(10, 20, 35, calc(var(--cs-veil) * .55)) 55%, rgba(10, 20, 35, 0) 85%), linear-gradient(180deg, rgba(10, 20, 35, .25) 0%, rgba(10, 20, 35, 0) 30%); }
.cs-hero--light { --cs-veil: .3; }
.cs-hero--medium { --cs-veil: .5; }
.cs-hero--strong { --cs-veil: .68; }
.cs-hero__body { position: relative; }
.cs-hero__stack { width: min(100%, 40rem); text-align: center; }
.cs-body .cs-hero__title { margin: 0; color: #fff; font-family: var(--hm-font-heading); font-weight: 700; line-height: 1.02; text-shadow: 0 3px 18px rgba(0, 0, 0, .35); }
.cs-hero__line { display: block; font-size: clamp(2rem, 4vw, 3.2rem); }
.cs-hero__line--b { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; }
.cs-hero__big { display: flex; align-items: center; justify-content: center; gap: .3em; margin: .08em 0; color: var(--cs-yellow); font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.cs-hero__big::before, .cs-hero__big::after { content: ""; flex: 0 0 .9em; height: .08em; min-height: 3px; background: var(--cs-yellow); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.cs-body .cs-hero__sub { margin: 1.4rem auto 0; max-width: 30rem; color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; line-height: 1.45; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.cs-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.cs-hero__actions .cs-btn { min-width: 13rem; min-height: 3rem; font-size: 1.15rem; }

/* ---- logo row: a see-through strip at the foot of the hero, or a plain row ---- */
.cs-logos--strip { background: rgba(255, 255, 255, .88); }
.hm-section--cssc_hero + .hm-section--cssc_logos .cs-logos--strip { position: relative; z-index: 2; margin-top: -6.9rem; }
.cs-logos__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 2.5rem; padding-block: 1.1rem; }
.cs-logos__heading { margin: 0; color: #111; font: 600 1.15rem var(--hm-font-heading); }
.cs-logos__list { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; list-style: none; margin: 0; padding: 0; }
.cs-logos__list img { display: block; width: auto; height: 4.6rem; object-fit: contain; }
.cs-logos--row { padding-block: 3rem; }
.cs-logos--row .cs-logos__inner { flex-direction: column; align-items: stretch; }
.cs-logos--row .cs-logos__heading { font-weight: 500; text-transform: uppercase; letter-spacing: .02em; font-size: 1.2rem; }
.cs-logos--row .cs-logos__list { justify-content: center; gap: 1.5rem 2.5rem; }
.cs-logos--row .cs-logos__list img { height: 3.2rem; max-width: 9.5rem; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.cs-logos--row .cs-logos__list a:hover img, .cs-logos--row .cs-logos__list img:hover { filter: none; opacity: 1; }
.cs-rule { display: flex; align-items: center; gap: 1.25rem; text-align: center; }
.cs-rule::before, .cs-rule::after { content: ""; flex: 1; height: 1px; background: var(--cs-line); }

/* ---- welcome ---- */
.cs-welcome { display: grid; gap: 2rem; align-items: center; padding-block: var(--cs-section); }
.cs-welcome--split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.cs-body .cs-welcome__heading { margin: 0 0 1.75rem; }
.cs-welcome__kicker { display: block; color: var(--cs-orange); font: 300 clamp(2.6rem, 5.4vw, 4.4rem)/1.05 var(--hm-font-heading); letter-spacing: -.01em; }
.cs-welcome__title { display: block; margin-top: .3rem; color: var(--cs-heading); font: 700 clamp(1.5rem, 3vw, 2.4rem)/1.15 var(--hm-font-heading); text-transform: uppercase; }
.cs-welcome__body { color: #222; font-size: var(--cs-copy-lg); line-height: 1.75; }
.cs-welcome__actions { margin: 2.25rem 0 0; }
.cs-welcome__arc { color: var(--cs-green-pale); }
.cs-welcome__arc svg { display: block; width: 100%; max-width: 22rem; margin-inline: auto; }
.cs-welcome__media img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* ---- icon cards ---- */
.cs-icards { position: relative; padding-block: 2rem var(--cs-section); overflow: hidden; isolation: isolate; }
.cs-icards--photo { min-height: 46rem; padding-bottom: clamp(18rem, 32vw, 30rem); background: radial-gradient(120% 80% at 85% 100%, #eef5f9 0%, #f7fafc 50%, #fff 75%); }
.cs-icards__photo { position: absolute; left: 0; bottom: 0; width: min(68%, 58rem); height: auto; z-index: -1; }
.cs-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.cs-body .cs-head__title { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
.cs-head__sub { margin: .75rem 0 0; color: var(--cs-muted); font-size: 1.1rem; }
.cs-icards__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.cs-icard { position: relative; text-align: center; }
.cs-icard__icon { display: inline-grid; place-items: center; }
.cs-icard__icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-body .cs-icard__title { margin: 1rem 0 .75rem; font-weight: 500; font-size: 1.55rem; color: var(--cs-heading); }
.cs-icard__title a { color: inherit; text-decoration: none; }
.cs-icard__text { margin: 0; color: #222; font-size: var(--cs-copy); line-height: 1.7; }
.cs-icards--cards .cs-icard { padding: 4.25rem 1.75rem 2.25rem; background: #fff; box-shadow: 0 6px 30px rgba(30, 40, 50, .08); text-align: left; }
.cs-icards--cards .cs-icard::after { content: ""; position: absolute; top: 0; right: 0; width: 2.4rem; height: 2.4rem; border-top: 1px solid var(--cs-orange); border-right: 1px solid var(--cs-orange); }
.cs-icards--cards .cs-icard__icon { position: absolute; top: -2.3rem; left: 50%; translate: -50% 0; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--cs-green); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--cs-green); }
.cs-icards--cards .cs-icard__icon .cs-icon { width: 2.6rem; height: 2.6rem; stroke-width: 1.5; }
.cs-icards--cards .cs-icard__icon img { width: 2.6rem; height: 2.6rem; filter: brightness(0) invert(1); }
.cs-icards--cards .cs-icard__title { text-align: center; }
.cs-icards--cards .cs-icards__list { padding-top: 2.5rem; row-gap: 4.5rem; }
@media (min-width: 62rem) {
  .cs-icards--cards .cs-icards__list { grid-template-columns: repeat(3, 1fr); align-items: start; padding-inline: 2rem; }
  .cs-icards--cards .cs-icard:nth-child(3n+2) { margin-top: 6rem; }
  .cs-icards--cards .cs-icard:nth-child(3n) { margin-top: 12rem; }
}
.cs-icards--plain { padding-top: var(--cs-section); }
.cs-icards--plain .cs-icard__icon { width: 5.5rem; height: 5.5rem; color: var(--cs-green); }
.cs-icards--plain .cs-icard__icon .cs-icon { width: 100%; height: 100%; stroke-width: 1; }
.cs-icards--plain .cs-icard__title { position: relative; padding-top: 1.25rem; margin-top: 1.25rem; font-size: 1.45rem; }
.cs-icards--plain .cs-icard__title::before { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 3.5rem; height: 2px; background: var(--cs-orange-2); }
.cs-icards--plain .cs-icard__text { color: var(--cs-muted); }

/* ---- bands (cta) ---- */
.cs-band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.cs-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cs-body .cs-band__headline { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 700; }
.cs-band__eyebrow { margin: 0 0 .4rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.cs-band__sub { margin-top: .6rem; font-size: 1.1rem; font-weight: 600; }
.cs-band__sub > :first-child { margin-top: 0; } .cs-band__sub > :last-child { margin-bottom: 0; }
.cs-band__actions { margin: 0; }
.cs-band--green { background: var(--cs-green); color: #fff; }
.cs-body .cs-band--green .cs-band__headline { color: #fff; }
.cs-band--green .cs-btn--white { color: var(--cs-green-dark); }
.cs-band--navy { background: var(--cs-navy); color: #fff; text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.cs-band--navy .cs-band__inner { flex-direction: column; justify-content: center; }
.cs-body .cs-band--navy .cs-band__headline { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cs-band--navy .cs-band__sub { max-width: 36rem; margin-inline: auto; }
.cs-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cs-band--navy::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 50% 50%, rgba(5, 10, 70, .92) 0%, rgba(8, 18, 80, .82) 55%, rgba(10, 25, 90, .55) 100%); }
.cs-band--plain { background: var(--cs-near); }

/* ---- testimonials ---- */
.cs-quotes { padding-block: var(--cs-section); background: linear-gradient(180deg, #f3f4f4, #fafafa); text-align: center; }
.cs-quotes__mark { display: block; width: 3.6rem; height: auto; margin: 0 auto 1.5rem; color: #2b8a3a; }
.cs-quotes__list { display: grid; gap: 3rem; list-style: none; margin: 0; padding: 0; }
.cs-quotes--grid .cs-quotes__list { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); text-align: left; }
.cs-quote figure { position: relative; max-width: 44rem; margin: 0 auto; padding: 1.5rem 2.75rem; }
.cs-quote figure::before, .cs-quote figure::after { content: ""; position: absolute; width: 2.6rem; height: 2.6rem; }
.cs-quote figure::before { right: 0; top: 0; border-top: 1px solid var(--cs-orange-2); border-right: 1px solid var(--cs-orange-2); }
.cs-quote figure::after { left: 0; bottom: 0; border-bottom: 1px solid var(--cs-orange-2); border-left: 1px solid var(--cs-orange-2); }
.cs-quote__name { margin-bottom: 1.25rem; color: var(--cs-heading); font: 400 1.6rem/1.3 var(--hm-font-heading); }
.cs-quote__role { display: block; margin-top: .25rem; color: var(--cs-muted); font: .95rem var(--hm-font); }
.cs-quote__text { margin: 0; color: #222; font-size: var(--cs-copy-lg); line-height: 1.75; }
.cs-quote__more { margin: 1rem 0 0; }
.cs-body .cs-quote__more a { color: var(--cs-green-dark); font-weight: 600; }

/* ---- project grid ---- */
.cs-gallery { padding-block: var(--cs-section); }
.cs-gallery__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.cs-gallery__item { overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(30, 40, 50, .08); }
.cs-gallery__item > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cs-gallery__cap { padding: 1.1rem 1.25rem 1.3rem; border-top: 3px solid var(--cs-green); }
.cs-body .cs-gallery__title { margin: 0 0 .4rem; font-size: 1.15rem; font-weight: 600; }
.cs-gallery__title a { color: inherit; text-decoration: none; }
.cs-gallery__details { list-style: none; margin: 0; padding: 0; color: var(--cs-muted); font-size: .95rem; }
@media (min-width: 62rem) { .cs-gallery__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.cs-gallery__actions { margin: 2.5rem 0 0; text-align: center; }

/* ---- inner-page sections (rebuilt from the old WPBakery rows) ---- */
.cs-bg--near { background: var(--cs-near); }
.cs-bg--white { background: #fff; }
.cs-head--bar .cs-head__title::after { content: ""; display: block; width: 4.5rem; height: 2px; margin: 1.1rem auto 0; background: var(--cs-orange); }
.cs-head__intro { margin-top: 1.75rem; color: #333; font-size: var(--cs-copy-lg); line-height: 1.7; }
.cs-head__intro > :first-child, .cs-rich > :first-child { margin-top: 0; }
.cs-head__intro > :last-child, .cs-rich > :last-child { margin-bottom: 0; }
.cs-rich p { margin: 0 0 1.1em; }
.cs-rich a { color: #1e88c8; }
.cs-rich strong { color: var(--cs-heading); }
.cs-rich ul, .cs-rich ol { padding-left: 1.25rem; }

/* text + photo */
.cs-split { padding-block: clamp(3rem, 6vw, 5rem); }
.cs-split__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.cs-split__inner--flip .cs-split__media { order: -1; }
.cs-split__inner--solo { grid-template-columns: minmax(0, 52rem); justify-content: center; }
.cs-body .cs-split__title { margin: 0 0 2.25rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.3; }
.cs-split__title::after { content: ""; display: block; width: 4.5rem; height: 2px; margin-top: 1rem; background: var(--cs-orange); }
.cs-split__body { color: #222; font-size: var(--cs-copy-lg); line-height: 1.75; }
.cs-split__actions { margin: 2rem 0 0; }
.cs-split__media img { display: block; width: 100%; height: auto; max-height: 40rem; object-fit: cover; }

/* text block */
.cs-text { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cs-text__col { max-width: none; }
.cs-text--narrow .cs-text__body, .cs-text--center .cs-text__body { margin-inline: auto; }
.cs-text--narrow .cs-text__col { max-width: 52rem; margin-inline: auto; }
.cs-text--center { text-align: center; }
.cs-text--center .cs-text__col { max-width: 52rem; margin-inline: auto; }
.cs-body .cs-text__title { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 500; }
.cs-text__body { max-width: 46rem; color: #222; font-size: var(--cs-copy-lg); line-height: 1.75; }

/* logo / icon rows */
.cs-feats { padding-block: clamp(3rem, 6vw, 5rem); }
.cs-feats__list { list-style: none; margin: 0 auto; padding: 0; max-width: 68rem; }
.cs-feat { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: center; padding-block: 1.25rem; }
.cs-feat--noimg { grid-template-columns: minmax(0, 1fr); }
.cs-feat__media { display: grid; place-items: center; align-self: stretch; padding: 1rem 2rem 1rem 0; border-right: 1px solid var(--cs-line); }
.cs-feat__media img { display: block; width: auto; max-width: 9.5rem; max-height: 6.5rem; object-fit: contain; }
.cs-feat__text { padding: .75rem 0 .75rem 3rem; }
.cs-feat--noimg .cs-feat__text { padding-left: 0; }
.cs-body .cs-feat__title { margin: 0 0 .8rem; font-size: 1.3rem; }
.cs-feat__body { max-width: 44rem; color: #222; font-size: var(--cs-copy); line-height: 1.75; }
.cs-feats__closing { max-width: 46rem; margin: 3rem auto 0; text-align: center; font-size: var(--cs-copy-lg); }

/* product groups */
.cs-products { padding-block: clamp(3rem, 6vw, 5rem); }
.cs-products__group + .cs-products__group { margin-top: 3.5rem; }
.cs-body .cs-products__title { margin: 0 0 2rem; font: 500 1.05rem/1.3 var(--hm-font); text-transform: uppercase; letter-spacing: .04em; color: #222; }
.cs-products__list { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.cs-product { flex: 1 1 0; min-width: min(100%, 9.5rem); display: flex; }
.cs-product__card { display: grid; place-items: center; width: 100%; min-height: 12rem; padding: 1rem; background: #fff; box-shadow: 0 6px 24px rgba(30, 40, 50, .09); transition: box-shadow .2s, transform .2s; }
a.cs-product__card:hover { box-shadow: 0 10px 30px rgba(30, 40, 50, .16); transform: translateY(-2px); }
.cs-product__card img { display: block; width: auto; max-width: 100%; max-height: 22rem; object-fit: contain; }
.cs-product__name { font-weight: 600; color: var(--cs-heading); }

/* numbered steps */
.cs-steps { padding-block: clamp(3rem, 6vw, 5rem); }
.cs-steps__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4rem; max-width: 60rem; margin-inline: auto; }
.cs-steps__list { list-style: none; margin: 0; padding: 0; }
.cs-step { position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.6rem; align-items: center; min-height: 6.5rem; }
.cs-step + .cs-step::before { content: ""; position: absolute; left: 2.25rem; top: -1rem; height: 2rem; width: 2px; translate: -1px 0; background: var(--cs-green); }
.cs-step__num { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--cs-green); color: #fff; font: 300 2.1rem/1 var(--hm-font-heading); }
.cs-body .cs-step__title { margin: 0 0 .3rem; font-size: 1.3rem; font-weight: 500; }
.cs-step__body { margin: 0; color: var(--cs-muted); font-size: 1rem; }

/* icon cards: grid style (orange round icons, white cards) */
.cs-icards--grid { padding-block: clamp(3rem, 6vw, 5rem); }
.cs-icards--grid .cs-icards__list { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.75rem; }
.cs-icards--grid .cs-icard { padding: 2.25rem 1.6rem 2.5rem; background: #fff; box-shadow: 0 6px 30px rgba(30, 40, 50, .07); text-align: left; }
.cs-icards--grid .cs-icard__icon { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--cs-grad); color: #fff; }
.cs-icards--grid .cs-icard__icon .cs-icon { width: 2.6rem; height: 2.6rem; }
.cs-icards--grid .cs-icard__icon img { width: 2.6rem; height: 2.6rem; filter: brightness(0) invert(1); }
.cs-body .cs-icards--grid .cs-icard__title { margin: 1.5rem 0 .7rem; font-size: 1.12rem; font-weight: 600; }
.cs-icards--grid .cs-icard__text { color: var(--cs-muted); font-size: var(--cs-copy); }
@media (min-width: 62rem) {
  .cs-icards--grid .cs-icards__list { display: flex; flex-wrap: wrap; justify-content: center; }
  .cs-icards--grid .cs-icard { flex: 0 1 calc((100% - 2 * 1.75rem) / 3); }
}
.cs-mask { display: block; width: 2.7rem; height: 2.7rem; background: currentColor; -webkit-mask: var(--cs-m) center / contain no-repeat; mask: var(--cs-m) center / contain no-repeat; }
.cs-mask--pre-approval { --cs-m: url("/theme/assets/img/icons/pre-approval.svg"); }
.cs-mask--solar-panel { --cs-m: url("/theme/assets/img/icons/solar-panel.svg"); }
.cs-mask--certificate { --cs-m: url("/theme/assets/img/icons/certificate.svg"); }
.cs-mask--cec { --cs-m: url("/theme/assets/img/icons/cec.svg"); }
.cs-mask--commission { --cs-m: url("/theme/assets/img/icons/commission.svg"); }

/* testimonials: list style */
.cs-qlist { padding-block: clamp(3rem, 6vw, 5rem); background: var(--cs-near); }
.cs-qlist__list { display: grid; gap: 2rem; list-style: none; margin: 0 auto; padding: 0; max-width: 68rem; }
.cs-qcard { padding: 2.25rem 2.5rem; background: #fff; box-shadow: 0 8px 34px rgba(30, 40, 50, .08); }
.cs-qcard__fig { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; align-items: center; margin: 0; }
.cs-qcard__who { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.cs-qcard__mark { width: 3rem; height: auto; color: #2b8a3a; margin-bottom: .4rem; }
.cs-qcard__name { color: #8d9399; font: 600 1.15rem/1.3 var(--hm-font-heading); text-transform: uppercase; letter-spacing: .02em; }
.cs-qcard__org { color: var(--cs-heading); font-weight: 700; font-size: .92rem; line-height: 1.35; }
.cs-stars { display: inline-flex; gap: .1rem; }
.cs-stars svg { width: 1.05rem; height: 1.05rem; color: #d9dcdf; }
.cs-stars svg.is-on { color: #f5b301; }
.cs-qcard__text { margin: 0; padding: .4rem 0 .4rem 2rem; border-left: 2px solid var(--cs-orange-2); color: #3d4248; font-style: italic; font-size: var(--cs-copy); line-height: 1.7; }
.cs-qcard__more { margin: 1rem 0 0; text-align: right; }

/* project portfolio */
.cs-projects { padding-block: clamp(3rem, 6vw, 5rem); background: var(--cs-near); }
.cs-projects__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 80rem) { .cs-projects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cs-pcard { position: relative; display: flex; }
.cs-pcard__link { display: flex; flex-direction: column; width: 100%; background: #fff; box-shadow: 0 6px 24px rgba(30, 40, 50, .08); color: inherit; text-decoration: none; transition: box-shadow .2s, translate .2s; }
.cs-pcard__link:hover, .cs-pcard__link:focus-visible { box-shadow: 0 12px 32px rgba(30, 40, 50, .16); translate: 0 -2px; }
.cs-pcard__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #cfd8e0; }
.cs-pcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cs-pcard__link:hover .cs-pcard__media img, .cs-pcard__link:focus-visible .cs-pcard__media img { transform: scale(1.04); }
.cs-pcard__count { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; border-radius: 1rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.4; }
.cs-pcard__count svg { width: .95rem; height: .95rem; }
.cs-pcard__cap { display: block; flex: 1; padding: 1rem 1.15rem 1.15rem; border-top: 3px solid var(--cs-green); }
.cs-pcard__title { display: block; color: var(--cs-heading); font: 600 1.08rem/1.3 var(--hm-font-heading); }
.cs-pcard__details { display: flex; flex-wrap: wrap; gap: .15rem .5rem; margin-top: .4rem; color: var(--cs-muted); font-size: .93rem; }
.cs-pcard__detail + .cs-pcard__detail::before { content: "\00b7"; margin-right: .5rem; color: var(--cs-orange); font-weight: 700; }
.cs-pview { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: clamp(.5rem, 3vw, 2.5rem); }
.cs-pview:target, .cs-pview:has(:target), .cs-pview.is-open { display: grid; }
.cs-pview__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 24, .82); }
.cs-pview__box { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); width: min(100%, 72rem); max-height: 100%; overflow: auto; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.cs-pview__close { position: absolute; top: .5rem; right: .5rem; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #fff; color: #222; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.cs-pview__close svg { width: 1.3rem; height: 1.3rem; }
.cs-pview__media { min-width: 0; background: #111; }
.cs-pview__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0; scrollbar-width: thin; }
.cs-pview__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.cs-pview__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-pview__thumbs { display: flex; gap: .4rem; overflow-x: auto; list-style: none; margin: 0; padding: .5rem; background: #111; }
.cs-pview__thumbs a { display: block; width: 4.5rem; height: 3.2rem; opacity: .6; outline-offset: -2px; }
.cs-pview__thumbs a:hover, .cs-pview__thumbs a:focus-visible, .cs-pview__thumbs a.is-on { opacity: 1; }
.cs-pview__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-pview__info { padding: 3rem 2rem 2rem; }
.cs-body .cs-pview__title { margin: 0 0 1.25rem; font-size: 1.5rem; }
.cs-pview__details { list-style: none; margin: 0; padding: 0; }
.cs-pview__details li { padding: .55rem 0; border-bottom: 1px solid var(--cs-line); }
.cs-pview__video { margin: 1.75rem 0 0; }
.cs-pview__video .cs-play { color: #fff; }
html:has(.cs-pview:target), html:has(.cs-pview.is-open) { overflow: hidden; }

@media (max-width: 62rem) {
  .cs-split__inner { grid-template-columns: 1fr; }
  .cs-split__inner--flip .cs-split__media { order: 0; }
  .cs-feat { grid-template-columns: 7rem minmax(0, 1fr); }
  .cs-feat__media { padding-right: 1.25rem; }
  .cs-feat__media img { max-width: 5.5rem; max-height: 4.5rem; }
  .cs-feat__text { padding-left: 1.5rem; }
  .cs-steps__cols { grid-template-columns: 1fr; }
  .cs-steps__list + .cs-steps__list .cs-step:first-child::before { content: ""; position: absolute; left: 2.25rem; top: -1rem; height: 2rem; width: 2px; translate: -1px 0; background: var(--cs-green); }
  .cs-qcard { padding: 1.75rem 1.5rem; }
  .cs-qcard__fig { grid-template-columns: 1fr; gap: 1.25rem; }
  .cs-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .cs-pcard__cap { padding: .75rem .85rem .9rem; }
  .cs-pcard__title { font-size: .98rem; }
  .cs-pcard__details { font-size: .85rem; flex-direction: column; }
  .cs-pcard__detail + .cs-pcard__detail::before { content: none; }
  .cs-pview__box { grid-template-columns: 1fr; }
  .cs-pview__info { padding: 1.5rem 1.25rem 1.75rem; }
}
@media (max-width: 34rem) {
  .cs-products__list { gap: 1rem; }
  .cs-product { flex-basis: calc(50% - .5rem); }
  .cs-product__card { min-height: 9rem; }
  .cs-feat { grid-template-columns: 1fr; }
  .cs-feat__media { justify-content: start; padding: 0 0 .75rem; border-right: 0; }
  .cs-feat__text { padding: 0; }
}

/* ---- footer ---- */
.cs-footer { position: relative; padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(9rem, 18vw, 15rem); border-top: 1px solid var(--cs-line); background: #fff; color: #333; overflow: hidden; isolation: isolate; }
/* The photo is drawn whole, full width at the bottom, like the old site's
   background (1400x315, so 22.5% of the width tall). It is never cropped: its top
   fades to transparent, and a crop would cut that fade into a hard line, so the
   footer is at least as tall as the photo (min-height) on very wide screens. */
.cs-footer { min-height: 23vw; }
.cs-footer__photo { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; z-index: -1; pointer-events: none; }
.cs-footer__grid { display: grid; grid-template-columns: 4rem 1.35fr 1fr 1fr; gap: 2.5rem 3rem; }
.cs-footer__mark img { display: block; width: 4rem; height: auto; margin-top: 3.1rem; }
.cs-body .cs-footer__title { margin: 0 0 1.25rem; font-size: 1.55rem; font-weight: 700; color: var(--cs-heading); }
.cs-footer__contact, .cs-footer__links { list-style: none; margin: 0; padding: 0; }
.cs-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1rem; font-size: 1rem; }
.cs-footer__contact svg { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .1rem; }
.cs-body .cs-footer a { color: #333; text-decoration: none; }
.cs-body .cs-footer a:hover { color: var(--cs-orange-text); text-decoration: underline; }
.cs-footer__links li { position: relative; padding-left: 1rem; margin-bottom: .55rem; }
.cs-footer__links li::before { content: ""; position: absolute; left: 0; top: .6em; width: .4rem; height: .4rem; border: 1px solid var(--cs-orange); border-radius: 50%; }
.cs-social { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.cs-body a.cs-social__link { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #3b5998; color: #fff; }
.cs-body a.cs-social__link:hover { color: #fff; filter: brightness(1.1); }
.cs-social__link svg { width: 1.25rem; height: 1.25rem; }
.cs-social__link--facebook { background: #3b5998 !important; }
.cs-social__link--linkedin { background: #0a77b5 !important; }
.cs-social__link--youtube { background: #b0373c !important; }
.cs-social__link--instagram { background: #4b57a6 !important; }
.cs-social__link--other { background: var(--cs-green) !important; }
.cs-footer__legal { position: relative; margin-top: 2.5rem; font-size: .9rem; color: #555; }
.cs-footer__legal p { margin: 0; }
.cs-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.cs-footer__credit { padding: .3rem .85rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.cs-body .cs-footer .cs-footer__credit a { color: #14701f; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cs-body .cs-footer .cs-footer__credit a:hover, .cs-body .cs-footer .cs-footer__credit a:focus-visible { color: #0f5418; }
@media (max-width: 62rem) {
  .cs-footer__grid { grid-template-columns: 1fr 1fr; }
  .cs-footer__mark { display: none; }
  .cs-footer__col--contact { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  .cs-footer__grid { grid-template-columns: 1fr; }
}

/* ---- the default listings, search and 404 under the slim banner ---- */
.hm-listing, .hm-error { padding-block: 3rem 4rem; }
.cs-body .hm-btn { background: var(--cs-grad); color: #fff; border: 0; border-radius: 999px; }
.cs-body .hm-card__title a { color: var(--cs-heading); }

/* ---- narrow screens ---- */
@media (max-width: 62rem) {
  .cs-welcome--split { grid-template-columns: 1fr; }
  .cs-welcome__arc { display: none; }
  .cs-hero { min-height: 0; padding-bottom: 8.5rem; }
  .cs-hero__stack { margin-inline: auto; }
  .cs-hero::after { background: rgba(10, 20, 35, var(--cs-veil)); }
  .hm-section--cssc_hero + .hm-section--cssc_logos .cs-logos--strip { margin-top: -6rem; }
  .cs-logos__inner { justify-content: center; gap: .5rem 1.5rem; padding-block: .9rem; }
  .cs-logos--strip .cs-logos__heading { flex-basis: 100%; text-align: center; font-size: 1rem; }
  .cs-logos--strip .cs-logos__list img { height: 3.2rem; }
  .cs-icards--photo { padding-bottom: 16rem; }
  .cs-icards__photo { width: 100%; }
  .cs-band__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 30rem) {
  .cs-hero__actions .cs-btn { min-width: 0; flex: 1 1 100%; }
  .cs-quote figure { padding-inline: 1.5rem; }
}

/* =====================================================================
   v1 design layer. One system over the whole site: rounded cards, pill
   buttons, soft layered shadows, bigger type, darker photo veils, two
   colours (green brand, orange action). Later rules here win over the
   section styles above at equal specificity.
   ===================================================================== */
:root {
  --cs-r: 16px;                       /* cards */
  --cs-r-sm: 10px;                    /* images inside cards, chips */
  --cs-ink: #10202b;                  /* deep blue-green ink for veils and dark bands */
  --cs-ink-2: #0d3b2a;                /* the green end of the dark gradient */
  --cs-shadow-1: 0 1px 2px rgba(16, 32, 43, .05), 0 4px 14px rgba(16, 32, 43, .06);
  --cs-shadow-2: 0 2px 4px rgba(16, 32, 43, .05), 0 14px 36px rgba(16, 32, 43, .12);
  --cs-heading: #14212b;
  --cs-section: clamp(4rem, 9vw, 7.5rem);
}

/* type */
.cs-body h1, .cs-body h2, .cs-body h3 { letter-spacing: -.015em; }
.cs-body .cs-head__title { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.12; }
.cs-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.cs-head__title::after { content: ""; display: block; width: 3.5rem; height: 4px; margin: 1.1rem auto 0; border-radius: 4px; background: var(--cs-grad); }
.cs-head--bar .cs-head__title::after { width: 3.5rem; height: 4px; border-radius: 4px; background: var(--cs-grad); }
.cs-head__sub { font-size: var(--cs-copy-lg); }

/* buttons: one shape everywhere */
.cs-btn, .cs-header__cta { border-radius: 999px; font-weight: 600; letter-spacing: .005em; }
.cs-body .cs-btn--orange { background: linear-gradient(135deg, #f7a12b, #f08a12); box-shadow: 0 8px 22px -8px rgba(240, 138, 18, .7); color: #fff; }
.cs-body .cs-btn--white { background: #fff; color: var(--cs-heading); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .45); }
.cs-btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.cs-body .cs-btn--orange:hover { box-shadow: 0 12px 28px -8px rgba(240, 138, 18, .8); }

/* top bar: white over the photo */
.cs-body .cs-topbar a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.cs-topbar__phone { font-size: 1.5rem; }
.cs-topbar__inner { padding-block: 1.1rem .9rem; }

/* header: a rounded white bar */
.cs-header__bar { min-height: 5.4rem; padding: .55rem .75rem .55rem 1.25rem; border-radius: 18px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .45); }
.cs-brand img { height: 3.9rem; }
.cs-body .cs-nav a, .cs-nav__toggle { font-weight: 500; color: #2a3640; font-size: 1.05rem; }
.cs-body .cs-nav a[aria-current="page"] { color: var(--cs-green-dark); }
@media (min-width: 62.01rem) {
  .cs-header__cta { min-height: 3.2rem; padding-inline: 1.7rem; font-size: 1.05rem; }
  .cs-nav__sub { border-top: 0; border-radius: 14px; padding: .5rem; box-shadow: var(--cs-shadow-2); }
  .cs-nav__sub a, .cs-nav__sub .cs-nav__toggle { border-radius: 8px; }
  .cs-nav__sub a:hover { background: var(--cs-green-pale); }
  .cs-nav__list > .cs-nav__item > a, .cs-nav__list > .cs-nav__item > .cs-nav__toggle { position: relative; }
  .cs-nav__list > .cs-nav__item > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.45rem; height: 3px; border-radius: 3px; background: var(--cs-green); }
}
@media (max-width: 62rem) {
  .cs-body .cs-topbar a.cs-topbar__email { display: none; }
  .cs-topbar__inner { justify-content: flex-end; }
  .cs-header__bar { border-radius: 14px; min-height: 4.2rem; }
  .cs-brand img { height: 3rem; }
  .cs-menu__toggle { border-radius: 999px; }
  .cs-nav { border-radius: 14px; }
  :root { --cs-top-h: 7.75rem; }
}

/* ---- home hero: cinematic, left aligned ---- */
.cs-hero { min-height: clamp(40rem, 92svh, 58rem); padding-bottom: 9rem; background: var(--cs-ink); }
.cs-hero::after { background:
  linear-gradient(90deg, rgba(10, 24, 32, .92) 0%, rgba(10, 24, 32, .72) 38%, rgba(10, 24, 32, .25) 70%, rgba(10, 24, 32, .1) 100%),
  linear-gradient(180deg, rgba(10, 24, 32, .55) 0%, rgba(10, 24, 32, 0) 28%, rgba(10, 24, 32, 0) 70%, rgba(10, 24, 32, .55) 100%); }
.cs-hero__stack { width: min(100%, 44rem); text-align: left; }
.cs-body .cs-hero__title { line-height: .98; text-shadow: none; }
.cs-hero__line { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: rgba(255, 255, 255, .92); }
.cs-hero__big { justify-content: flex-start; margin: .12em 0 .06em; font-size: clamp(3.4rem, 8.6vw, 7.25rem); font-weight: 900; letter-spacing: -.035em; color: var(--cs-orange-2);
  background: linear-gradient(100deg, #ffd25a 0%, #f7a12b 55%, #f08a12 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 26px rgba(240, 138, 18, .25)); }
.cs-hero__big::before, .cs-hero__big::after { content: none; }
.cs-hero__line--b { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; color: #fff; }
.cs-body .cs-hero__sub { margin: 1.6rem 0 0; max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 400; line-height: 1.55; color: rgba(255, 255, 255, .88); text-shadow: none; }
.cs-hero__actions { justify-content: flex-start; margin-top: 2.25rem; }
.cs-hero__actions .cs-btn { min-width: 12rem; min-height: 3.4rem; font-size: 1.08rem; }
.cs-hero .cs-btn--white { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cs-hero .cs-btn--white .cs-play { color: var(--cs-orange-2); }
.cs-hero .cs-btn--white:hover { background: rgba(255, 255, 255, .2); }

/* accreditation: a floating card on the hero's lower edge */
.cs-logos--strip { background: transparent; }
.hm-section--cssc_hero + .hm-section--cssc_logos .cs-logos--strip { margin-top: -5.5rem; }
.cs-logos--strip .cs-logos__inner { justify-content: space-between; gap: 1rem 2.5rem; padding: 1.1rem 2rem; border-radius: var(--cs-r); background: #fff; box-shadow: var(--cs-shadow-2); }
.cs-logos--strip .cs-logos__heading { color: var(--cs-muted); font: 600 .85rem var(--hm-font); text-transform: uppercase; letter-spacing: .12em; }
.cs-logos--strip .cs-logos__list img { height: 3.6rem; }

/* logo row: one grey line, colour on hover */
.cs-logos--row { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cs-logos--row .cs-logos__heading { color: var(--cs-muted); font: 600 .85rem var(--hm-font); letter-spacing: .14em; }
.cs-logos--row .cs-logos__list { gap: 2rem 3rem; }
.cs-logos--row .cs-logos__list img { height: 2.6rem; max-width: 8.5rem; mix-blend-mode: multiply; opacity: .65; }

/* ---- welcome ---- */
.cs-welcome { gap: clamp(2.5rem, 6vw, 5.5rem); }
.cs-welcome--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.cs-welcome__kicker { margin-bottom: .75rem; color: var(--cs-green-dark); font: 700 .9rem/1.2 var(--hm-font); letter-spacing: .16em; text-transform: uppercase; }
.cs-welcome__kicker::before { content: ""; display: inline-block; width: 2rem; height: 2px; margin-right: .75rem; vertical-align: middle; background: var(--cs-green); }
.cs-welcome__title { font: 800 clamp(2rem, 3.8vw, 3rem)/1.1 var(--hm-font-heading); letter-spacing: -.02em; text-transform: none; }
.cs-welcome__media { position: relative; }
.cs-welcome__media::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; z-index: -1; border-radius: 24px; background: linear-gradient(135deg, var(--cs-green-pale), #fff3df); }
.cs-welcome__media img { aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 24px; box-shadow: var(--cs-shadow-2); }
.cs-welcome { isolation: isolate; }

/* ---- numbers band ---- */
.cs-stats { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem); color: #fff; background:
  radial-gradient(60% 120% at 100% 0%, rgba(31, 156, 52, .45), transparent 60%),
  radial-gradient(50% 120% at 0% 100%, rgba(247, 155, 36, .22), transparent 60%),
  linear-gradient(135deg, var(--cs-ink) 0%, var(--cs-ink-2) 100%); overflow: hidden; }
.cs-body .cs-stats__heading { margin: 0 0 2.5rem; color: #fff; text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cs-stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; align-items: start; margin: 0; }
.cs-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; padding-left: 1.4rem; border-left: 2px solid rgba(255, 255, 255, .16); }
.cs-stat__value { margin: 0; white-space: nowrap; font: 800 clamp(2.1rem, 3.9vw, 3.3rem)/1 var(--hm-font-heading); letter-spacing: -.03em; background: linear-gradient(100deg, #fff 30%, #ffd88a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cs-stat__label { color: rgba(255, 255, 255, .78); font-size: 1rem; line-height: 1.4; }

/* ---- the three intro cards over the crew photo ---- */
.cs-icards--photo { background: linear-gradient(180deg, #fff 0%, #f3f7f6 100%); }
.cs-icards--cards .cs-icard:nth-child(n) { margin-top: 0; }
.cs-icards--cards .cs-icard { padding: 3.75rem 1.9rem 2.1rem; border-radius: var(--cs-r); box-shadow: var(--cs-shadow-2); text-align: center; }
.cs-icards--cards .cs-icard::after { content: none; }
.cs-icards--cards .cs-icard__icon { border: 4px solid #fff; box-shadow: 0 10px 24px -8px rgba(31, 156, 52, .6); background: linear-gradient(135deg, #2bb345, #168a2b); }
.cs-body .cs-icards--cards .cs-icard__title { font-size: 1.35rem; font-weight: 700; }
.cs-icards--cards .cs-icard__text { color: var(--cs-muted); }

/* why choose: icon tiles in cards */
.cs-icards--plain { background: #fff; }
.cs-icards--plain .cs-icards__list { gap: 1.5rem; }
.cs-icards--plain .cs-icard { padding: 2.5rem 1.75rem 2.25rem; border: 1px solid var(--cs-line); border-radius: var(--cs-r); background: #fff; transition: box-shadow .2s, translate .2s, border-color .2s; }
.cs-icards--plain .cs-icard:hover { border-color: transparent; box-shadow: var(--cs-shadow-2); translate: 0 -3px; }
.cs-icards--plain .cs-icard__icon { width: 5rem; height: 5rem; padding: 1.05rem; border-radius: 18px; background: var(--cs-green-pale); }
.cs-icards--plain .cs-icard__icon .cs-icon { stroke-width: 1.5; }
.cs-icards--plain .cs-icard__title { padding-top: 0; margin-top: 1.4rem; font-size: 1.3rem; font-weight: 700; }
.cs-icards--plain .cs-icard__title::before { content: none; }

/* icon cards, grid style (Why Us page) */
.cs-icards--grid .cs-icard { border-radius: var(--cs-r); box-shadow: var(--cs-shadow-1); transition: box-shadow .2s, translate .2s; }
.cs-icards--grid .cs-icard:hover { box-shadow: var(--cs-shadow-2); translate: 0 -3px; }
.cs-icards--grid .cs-icard__icon { border-radius: 18px; box-shadow: 0 10px 24px -10px rgba(240, 138, 18, .7); }

/* ---- bands ---- */
.cs-band--green { background:
  radial-gradient(70% 140% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%),
  linear-gradient(120deg, #1c9a33 0%, #127a2a 100%); }
.cs-band--green .cs-band__inner { padding-block: .5rem; }
.cs-band--navy { padding-block: clamp(4.5rem, 9vw, 7rem); }
.cs-band--navy::after { background: linear-gradient(135deg, rgba(10, 24, 32, .93) 0%, rgba(13, 59, 42, .86) 100%); }
.cs-body .cs-band--navy .cs-band__headline { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.cs-band--navy .cs-band__sub { font-weight: 400; color: rgba(255, 255, 255, .85); font-size: 1.15rem; }
.cs-band--navy .cs-band__actions .cs-btn { min-height: 3.4rem; padding-inline: 2.4rem; font-size: 1.1rem; }

/* ---- testimonials ---- */
.cs-quotes { background: #f3f7f6; }
.cs-quote figure { padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); border-radius: 24px; background: #fff; box-shadow: var(--cs-shadow-2); }
.cs-quote figure::before, .cs-quote figure::after { content: none; }
.cs-quotes__mark { width: 3rem; }
.cs-quote__name { font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; }
.cs-quote__text { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.7; color: #26323b; }
.cs-qlist { background: #f3f7f6; }
.cs-qcard { border-radius: var(--cs-r); box-shadow: var(--cs-shadow-1); }
.cs-qcard__text { border-left-width: 3px; border-image: linear-gradient(var(--cs-orange), var(--cs-orange-2)) 1; }
.cs-qcard__name { color: var(--cs-heading); }

/* ---- project cards (home + projects page) ---- */
.cs-gallery { background: #f3f7f6; }
.cs-gallery__item { position: relative; border-radius: var(--cs-r); box-shadow: var(--cs-shadow-1); transition: box-shadow .25s, translate .25s; }
.cs-gallery__item:hover { box-shadow: var(--cs-shadow-2); translate: 0 -4px; }
.cs-gallery__item > img { aspect-ratio: 4 / 3; transition: transform .5s; }
.cs-gallery__item:hover > img { transform: scale(1.04); }
.cs-gallery__cap { position: relative; z-index: 1; background: #fff; border-top: 0; padding: 1.25rem 1.4rem 1.4rem; }
.cs-gallery__cap::before { content: ""; position: absolute; top: 0; left: 1.4rem; width: 2.5rem; height: 3px; border-radius: 3px; background: var(--cs-green); }
.cs-body .cs-gallery__title { font-size: 1.2rem; font-weight: 700; }
.cs-projects { background: #f3f7f6; }
.cs-pcard__link { overflow: hidden; border-radius: var(--cs-r); box-shadow: var(--cs-shadow-1); }
.cs-pcard__link:hover, .cs-pcard__link:focus-visible { box-shadow: var(--cs-shadow-2); translate: 0 -4px; }
.cs-pcard__media { aspect-ratio: 4 / 3; }
.cs-pcard__cap { position: relative; border-top: 0; }
.cs-pcard__cap::before { content: ""; position: absolute; top: 0; left: 1.15rem; width: 2.25rem; height: 3px; border-radius: 3px; background: var(--cs-green); }
.cs-pcard__title { font-weight: 700; }
.cs-pcard__count { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cs-pview__box { border-radius: 20px; }

/* ---- inner page banner: shorter, darker, left aligned ---- */
.cs-banner { min-height: clamp(19rem, 30vw, 27rem); place-items: end start; padding-bottom: clamp(2.5rem, 5vw, 4rem); background: var(--cs-ink); }
.cs-banner::after { background:
  linear-gradient(90deg, rgba(10, 24, 32, .9) 0%, rgba(10, 24, 32, .62) 50%, rgba(13, 59, 42, .45) 100%),
  linear-gradient(180deg, rgba(10, 24, 32, .5) 0%, rgba(10, 24, 32, 0) 40%); }
.cs-banner__body { width: min(100% - 2 * var(--cs-gap), var(--hm-container)); text-align: left; }
.cs-body .cs-banner__title { max-width: 48rem; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; text-shadow: none; }
.cs-banner__title::before { content: ""; display: block; width: 3.5rem; height: 4px; margin-bottom: 1.1rem; border-radius: 4px; background: var(--cs-grad); }
.cs-banner--slim { min-height: 0; }

/* ---- inner sections ---- */
.cs-split__media img { border-radius: 20px; box-shadow: var(--cs-shadow-2); }
.cs-body .cs-split__title { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.cs-split__title::after { width: 3.5rem; height: 4px; border-radius: 4px; background: var(--cs-grad); }
.cs-feats { background: #f3f7f6; }
.cs-feats__list { display: grid; gap: 1.1rem; }
.cs-feat { padding: 0; border-radius: var(--cs-r); background: #fff; box-shadow: var(--cs-shadow-1); overflow: hidden; transition: box-shadow .2s, translate .2s; }
.cs-feat:hover { box-shadow: var(--cs-shadow-2); translate: 0 -2px; }
.cs-feat__media { padding: 1.5rem; border-right: 1px solid var(--cs-line); background: #fff; }
.cs-feat__text { padding: 1.6rem 2.25rem 1.6rem 2.25rem; }
.cs-feat--noimg .cs-feat__text { padding-left: 2.25rem; }
.cs-body .cs-feat__title { font-size: 1.3rem; font-weight: 700; }
.cs-feats__closing { padding: 1.5rem 2rem; border-radius: var(--cs-r); background: #fff; box-shadow: inset 0 0 0 1px var(--cs-line); }
.cs-product__card { border-radius: var(--cs-r); box-shadow: var(--cs-shadow-1); }
.cs-steps__list .cs-step__num { box-shadow: 0 10px 22px -10px rgba(31, 156, 52, .8); font-weight: 600; }
.cs-text__body, .cs-split__body { color: #26323b; }

/* ---- footer ---- */
.cs-footer { border-top: 0; }
.cs-body .cs-footer__title { font-size: 1.3rem; font-weight: 800; }

@media (max-width: 62rem) {
  .cs-hero { min-height: 0; padding-bottom: 9.5rem; }
  .cs-hero::after { background: linear-gradient(180deg, rgba(10, 24, 32, .75), rgba(10, 24, 32, .6) 60%, rgba(10, 24, 32, .8)); }
  .cs-hero__stack { margin-inline: 0; }
  .hm-section--cssc_hero + .hm-section--cssc_logos .cs-logos--strip { margin-top: -6rem; }
  .cs-logos--strip .cs-logos__inner { justify-content: center; padding: 1rem; }
  .cs-welcome--split { grid-template-columns: 1fr; }
  .cs-welcome__media { max-width: 34rem; margin-right: .75rem; }
  .cs-welcome__media img { aspect-ratio: 4 / 3; }
  .cs-welcome__media::before { inset: .75rem -.75rem -.75rem .75rem; }
  .cs-feat__media { border-right: 0; border-bottom: 1px solid var(--cs-line); }
}
@media (max-width: 34rem) {
  .cs-feat__text, .cs-feat--noimg .cs-feat__text { padding: 1.25rem 1.25rem 1.4rem; }
  .cs-feat__media { padding: 1rem 1.25rem; justify-content: start; }
  .cs-stats__list { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; }
  .cs-stat { padding-left: 1rem; }
}

/* ---- e-book offer ---- */
.cs-ebook { position: relative; padding-block: clamp(4rem, 8vw, 6.5rem); color: #fff; background: var(--cs-ink); overflow: hidden; isolation: isolate; }
.cs-ebook__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cs-ebook::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(45% 80% at 22% 50%, rgba(247, 155, 36, .22), transparent 70%),
  linear-gradient(120deg, rgba(10, 24, 32, .95) 0%, rgba(10, 24, 32, .9) 45%, rgba(13, 59, 42, .88) 100%); }
.cs-ebook__inner { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.cs-ebook__inner--solo { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.cs-ebook__cover { position: relative; }
.cs-ebook__cover img { display: block; width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); transition: transform .4s; }
.cs-ebook__cover:hover img { transform: rotate(-1deg) translateY(-4px); }
.cs-ebook__eyebrow { display: inline-block; margin: 0 0 1rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(247, 155, 36, .16); color: #ffc46b; font: 700 .8rem/1.3 var(--hm-font); letter-spacing: .14em; text-transform: uppercase; }
.cs-body .cs-ebook__title { margin: 0; color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.cs-ebook__book { margin: 1rem 0 0; color: #fff; font: 700 clamp(1.1rem, 1.8vw, 1.35rem)/1.35 var(--hm-font-heading); }
.cs-ebook__intro { margin-top: .75rem; color: rgba(255, 255, 255, .82); font-size: var(--cs-copy-lg); max-width: 38rem; }
.cs-ebook__form { margin-top: 2rem; }
.cs-ebook .hm-contact-form { max-width: none; margin: 0; padding: 0; }
.cs-ebook .hm-contact-form__intro:empty { display: none; }
.cs-ebook .hm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; max-width: 46rem; }
.cs-ebook .hm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cs-ebook .hm-form__field { margin: 0; }
.cs-ebook .hm-form__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-ebook .hm-form input[type="text"], .cs-ebook .hm-form input[type="email"] { width: 100%; min-height: 3.4rem; padding: .75rem 1.25rem; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(255, 255, 255, .96); color: #14212b; font: 500 1.02rem var(--hm-font); }
.cs-ebook .hm-form input::placeholder { color: #6b737b; }
.cs-ebook .hm-form input:focus-visible { outline: 3px solid #ffc46b; outline-offset: 2px; }
.cs-ebook .hm-form__submit { min-height: 3.4rem; padding: .75rem 1.9rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #f7a12b, #f08a12); color: #fff; font: 700 1.05rem var(--hm-font); white-space: nowrap; cursor: pointer; box-shadow: 0 10px 26px -8px rgba(240, 138, 18, .75); transition: transform .15s, box-shadow .15s; }
.cs-ebook .hm-form__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(240, 138, 18, .85); }
.cs-ebook .hm-form__submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cs-ebook .hm-form__error, .cs-ebook .hm-form__success { grid-column: 1 / -1; margin: 0 0 .75rem; padding: .7rem 1rem; border-radius: 12px; font-weight: 600; }
.cs-ebook .hm-form__success { background: rgba(31, 156, 52, .25); color: #d9ffe0; }
.cs-ebook .hm-form__error { background: rgba(220, 60, 60, .25); color: #ffe1e1; }
.cs-ebook small.hm-form__error { margin: .35rem 0 0; padding: 0; background: none; font-size: .85rem; }
.cs-ebook__done { margin: 1rem 0 0; }
.cs-ebook__note { margin: 1rem 0 0; color: rgba(255, 255, 255, .6); font-size: .9rem; }
@media (max-width: 62rem) {
  .cs-ebook__inner { grid-template-columns: 1fr; text-align: center; }
  .cs-ebook__cover { width: min(62%, 15rem); margin-inline: auto; }
  .cs-ebook__intro { margin-inline: auto; }
  .cs-ebook .hm-form { grid-template-columns: 1fr; margin-inline: auto; }
  .cs-ebook .hm-form__submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-btn, .cs-chev, .cs-pcard__link, .cs-pcard__media img, .cs-product__card, .cs-gallery__item, .cs-gallery__item > img, .cs-icard, .cs-feat { transition: none; }
  .cs-btn:hover, .cs-gallery__item:hover, .cs-icard:hover, .cs-feat:hover, .cs-pcard__link:hover { translate: none; transform: none; }
  .cs-gallery__item:hover > img, .cs-pcard__link:hover .cs-pcard__media img { transform: none; }
  .cs-ebook__cover img, .cs-ebook__cover:hover img { transition: none; transform: rotate(-4deg); }
  .cs-pview__slides { scroll-behavior: auto; }
}
@media print {
  .cs-top, .cs-banner__img, .cs-footer__photo { display: none; }
  .cs-banner { min-height: 0; padding: 1rem 0; background: none; color: #000; }
  .cs-banner::after { display: none; }
  .cs-body .cs-banner__title { color: #000; text-shadow: none; }
}

/* Docs layout (single-doc): sidebar menu, article, on-page TOC. */
.hm-doc { display: block; padding: 1.5rem 1.5rem 4rem; }
.hm-doc__nav, .hm-doc__toc { display: none; }
.hm-doc__navm { margin-bottom: 1.5rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); padding: 0.75rem 1rem; }
.hm-doc__navm summary { cursor: pointer; font-weight: 500; }
.hm-doc__navm summary:focus-visible, .hm-doc a:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }
.hm-doc__main { min-width: 0; }
/* The article is a readable column centred in its track. */
.hm-doc__main > * { max-width: 46rem; margin-inline: auto; }
.hm-doc__title { margin-block: 0 1.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }

/* Sidebar tree */
.hm-doc-nav { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.hm-doc-nav .hm-doc-nav { margin: 0.25rem 0 0.5rem 0.75rem; padding-left: 0.75rem; border-left: 1px solid var(--hm-hair); }
.hm-doc-nav li { margin: 0.125rem 0; }
.hm-doc-nav a { display: block; padding: 0.25rem 0.5rem; border-radius: var(--hm-radius-sm); color: var(--hm-hai); text-decoration: none; }
.hm-doc-nav a:hover { color: var(--hm-text); background: var(--hm-kasumi); }
.hm-doc-nav a[aria-current="page"] { color: var(--hm-text); background: var(--hm-kasumi); font-weight: 600; box-shadow: inset 2px 0 0 var(--hm-primary); }
.hm-doc-nav__group { display: block; padding: 0.5rem 0.5rem 0.25rem; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-hai); }

/* Collapsible sections */
.hm-doc-nav summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 0.375rem 0.5rem; border-radius: var(--hm-radius-sm); font-weight: 600; color: var(--hm-text); }
.hm-doc-nav summary::-webkit-details-marker { display: none; }
.hm-doc-nav summary::after { content: ""; width: 0.4rem; height: 0.4rem; margin-right: 0.25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.hm-doc-nav details[open] > summary::after { transform: rotate(45deg); }
.hm-doc-nav summary:hover { color: var(--hm-text); background: var(--hm-kasumi); }
.hm-doc-nav summary:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }

/* Sidebar search */
.hm-doc__search { margin: 0 0 1rem; }
.hm-doc__search input[type="search"] { width: 100%; box-sizing: border-box; padding: 0.5rem 0.75rem; border: 1px solid var(--hm-hai); border-radius: var(--hm-radius-md); background: transparent; color: var(--hm-text); font: inherit; font-size: 0.875rem; }
.hm-doc__search input[type="search"]:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }

/* Breadcrumbs */
.hm-doc__crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.8125rem; color: var(--hm-label); }
.hm-doc__crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.hm-doc__crumbs li + li[data-sep]::before { content: attr(data-sep); }
.hm-doc__crumbs a { color: var(--hm-hai); text-decoration: none; }
.hm-doc__crumbs a:hover { color: var(--hm-text); text-decoration: underline; }

/* Headings clear the sticky site header (4rem), like the essay aside in sections/content.css */
.hm-doc .hm-prose :is(h2, h3) { scroll-margin-top: 6rem; }

/* Prev / next */
.hm-doc__pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-block: 3rem 0; padding-top: 1.5rem; border-top: 1px solid var(--hm-hair); }
.hm-doc__pager a { display: block; padding: 0.75rem 1rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); text-decoration: none; }
.hm-doc__pager a:hover { border-color: var(--hm-hai); }
.hm-doc__pager span { display: block; font-size: 0.75rem; color: var(--hm-label); }
.hm-doc__next { margin-left: auto; text-align: right; }

/* Card grids on the landing page and section indexes */
/* Wider than the text but on its left edge: margin-left is the text column's offset. */
.hm-doc__main > .hm-doc-cards, .hm-doc__main > .hm-doc-cards__label { max-width: 60rem; margin-left: max(0px, calc((100% - 46rem) / 2)); margin-right: 0; }
.hm-doc-cards { list-style: none; margin-block: 0 2rem; margin-inline: auto; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.hm-doc-cards__label { margin-block: 2rem 0.75rem; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-hai); }
.hm-doc-card { position: relative; padding: 1rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); }
.hm-doc-card:hover, .hm-doc-card:focus-within { border-color: var(--hm-hai); }
.hm-doc-card__link { color: var(--hm-text); font-weight: 600; text-decoration: none; }
.hm-doc-card__link::after { content: ""; position: absolute; inset: 0; }
.hm-doc-card__link:focus-visible { outline: 2px solid var(--hm-focus); outline-offset: 2px; }
.hm-doc-card p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--hm-hai); }

/* Next steps block at the end of a guide (list rendered by the docs tool) */
.hm-doc .hm-prose ul.hm-next-steps, .hm-doc .hm-prose h2#next-steps + ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.hm-doc .hm-prose ul.hm-next-steps li, .hm-doc .hm-prose h2#next-steps + ul li { margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); }
.hm-doc .hm-prose ul.hm-next-steps a, .hm-doc .hm-prose h2#next-steps + ul a { font-weight: 600; text-decoration: none; }

/* On-page TOC */
.hm-doc__toc-title { margin: 0 0 0.5rem; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-hai); }
.hm-doc__toc ol { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.hm-doc__toc a { display: block; padding: 0.2rem 0; color: var(--hm-hai); text-decoration: none; }
.hm-doc__toc a:hover { color: var(--hm-text); text-decoration: underline; }
.hm-doc__toc-l3 { padding-left: 0.875rem; }

@media (min-width: 60rem) {
  /* Edge to edge: no container, a third track is kept (empty without a TOC) so the article stays centred. */
  .hm-doc { display: grid; grid-template-columns: 16rem minmax(0, 1fr) 14rem; gap: 2.5rem; align-items: start; }
  .hm-doc__navm { display: none; }
  /* The article comes first in the source so the skip link lands on it; the columns are placed here. */
  .hm-doc__nav { grid-column: 1; grid-row: 1; }
  .hm-doc__main { grid-column: 2; grid-row: 1; }
  .hm-doc__toc { grid-column: 3; grid-row: 1; }
  /* Without a TOC the article takes the third track (until wide screens, where the empty track keeps it centred). */
  .hm-doc:not(:has(.hm-doc__toc)) { grid-template-columns: 16rem minmax(0, 1fr); }
  .hm-doc__nav, .hm-doc__toc { display: block; position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding: 4px; }
}

@media (min-width: 90rem) {
  .hm-doc:not(:has(.hm-doc__toc)) { grid-template-columns: 16rem minmax(0, 1fr) 14rem; }
}

.hm-registry { padding-block: clamp(2rem, 5vw, 4rem); }
.hm-registry__crumbs { font-size: 0.875rem; color: var(--ht-fg-muted); margin-bottom: 1.5rem; }
.hm-registry__header { margin-bottom: 2rem; }
.hm-registry__title { margin: 0 0 0.5rem; }
.hm-registry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-registry__tier { padding: 0.1rem 0.5rem; border: 1px solid var(--hm-hair); border-radius: 999px; background: var(--hm-shiro); }
.hm-registry__lede { margin: 0.75rem 0 0; font-size: 1.1rem; color: var(--ht-fg-muted); }
.hm-registry__cols { display: grid; gap: 2rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.hm-registry__cols--single { grid-template-columns: minmax(0, 1fr); }
.hm-registry__shot { display: block; max-width: 100%; height: auto; margin-bottom: 1.5rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); }
.hm-registry__h { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.hm-registry__main > .hm-registry__h:first-child { margin-top: 0; }
.hm-registry__side { padding: 1.25rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); background: var(--hm-shiro); }
.hm-registry__side .hm-registry__h:first-of-type { margin-top: 1rem; }
.hm-registry__facts { display: grid; grid-template-columns: auto 1fr; gap: 0.375rem 1rem; margin: 0; }
.hm-registry__facts dt { color: var(--hm-label); }
.hm-registry__facts dd { margin: 0; overflow-wrap: anywhere; }
.hm-registry__perms { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.375rem; }
.hm-registry__warn { color: var(--hm-shu); }
.hm-registry__install { margin: 2rem 0 0; font-family: var(--hm-font-mono); font-size: 0.8125rem; color: var(--hm-label); }
@media (max-width: 48rem) { .hm-registry__cols { grid-template-columns: minmax(0, 1fr); } }

/* WordPress compatibility: the core Gutenberg block classes that imported or
   pasted content carries. Scoped to .hm-entry / .hm-prose so they only style
   rich-text bodies. Colours come from the theme tokens. */

/* Alignment. alignwide and alignfull break out of the 46rem article column. */
.hm-entry .alignleft { float: left; margin: 0.25em 1.5em 1em 0; max-width: 50%; }
.hm-entry .alignright { float: right; margin: 0.25em 0 1em 1.5em; max-width: 50%; }
.hm-entry .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.hm-entry .alignwide { width: min(75rem, calc(100vw - 3rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.hm-entry .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
/* A wide image stays a banner, not a full screen: cap its height and crop. */
.hm-entry img.alignwide, .hm-entry img.alignfull, .hm-entry .alignwide img, .hm-entry .alignfull img { width: 100%; max-height: min(32rem, 70vh); object-fit: cover; }
.hm-entry::after { content: ""; display: table; clear: both; }

/* Images and captions */
.wp-block-image, .wp-block-gallery figure { margin: 1.75em 0; }
.wp-block-image img { display: block; max-width: 100%; height: auto; }
.wp-block-image.aligncenter img { margin-inline: auto; }
.wp-block-image figcaption, figure.wp-caption figcaption, .wp-element-caption, .wp-caption-text { margin-top: 0.6em; font-size: 0.8125rem; color: var(--hm-label); text-align: center; }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 1.75em 0; }
.wp-block-gallery .wp-block-image { flex: 1 1 12rem; margin: 0; }

/* Quote */
.wp-block-quote { margin: 1.75em 0; padding: 0.25em 0 0.25em 1.25em; border-left: 3px solid var(--hm-primary); color: var(--hm-hai); font-size: 1.125em; }
.wp-block-quote p { margin: 0 0 0.5em; }
.wp-block-quote cite, .wp-block-quote__citation { display: block; font-size: 0.8125rem; font-style: normal; color: var(--hm-label); }
.wp-block-pullquote { margin: 2em 0; padding: 1.5em 0; border-block: 1px solid var(--hm-hair); text-align: center; font-size: 1.375em; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }

/* Table. Cells keep a readable minimum width, so a wide table scrolls sideways
   inside its own box (never the page) and edge shadows hint that there is more. */
.wp-block-table, .hm-entry > table {
  margin: 1.75em 0; max-width: 100%; overflow-x: auto;
  background:
    linear-gradient(to right, var(--hm-bg) 30%, transparent) left / 2rem 100% no-repeat local,
    linear-gradient(to left, var(--hm-bg) 30%, transparent) right / 2rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.28), transparent) left / 0.75rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.28), transparent) right / 0.75rem 100% no-repeat scroll;
}
.hm-entry > table { display: block; width: max-content; border-collapse: collapse; font-size: 0.9375rem; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hm-entry th, .hm-entry td { min-width: 7rem; }
.wp-block-table th, .wp-block-table td, .hm-entry > table th, .hm-entry > table td { padding: 0.5rem 0.75rem; border: 1px solid var(--hm-hair); text-align: left; }
.wp-block-table thead th, .hm-entry > table thead th { background: var(--hm-kasumi); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--hm-kasumi); }
.wp-block-table figcaption { margin-top: 0.6em; font-size: 0.8125rem; color: var(--hm-label); text-align: center; }

/* Columns */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin: 1.75em 0; }
.wp-block-column { flex: 1 1 14rem; min-width: 0; }
.wp-block-column > :first-child { margin-top: 0; }
.wp-block-column > :last-child { margin-bottom: 0; }
@media (min-width: 48rem) { .wp-block-columns { flex-wrap: nowrap; } }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5em 0; }
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.25rem; border: 1px solid var(--hm-primary); border-radius: 999px; background: var(--hm-primary); color: #fff; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.wp-block-button__link:hover { filter: brightness(0.88); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--hm-primary); }
.hm-entry .wp-block-button__link { color: #fff; }
.hm-entry .wp-block-button.is-style-outline .wp-block-button__link { color: var(--hm-primary); }

/* Embeds: responsive 16:9 by default */
.wp-block-embed { margin: 1.75em 0; }
.wp-block-embed__wrapper { position: relative; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper, .wp-has-aspect-ratio .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 4 / 3; }
.wp-embed-aspect-1-1 .wp-block-embed__wrapper { aspect-ratio: 1 / 1; }
.wp-block-embed iframe, .wp-block-embed video { width: 100%; height: 100%; border: 0; }
.wp-block-embed:not([class*="wp-embed-aspect"]) iframe { aspect-ratio: 16 / 9; height: auto; }
.wp-block-embed figcaption { margin-top: 0.6em; font-size: 0.8125rem; color: var(--hm-label); text-align: center; }

/* Misc core blocks */
.wp-block-separator { border: 0; border-top: 1px solid var(--hm-hair); margin: 2.5em auto; }
.wp-block-code, .wp-block-preformatted { overflow-x: auto; }
.wp-block-group { margin: 1.75em 0; }
.wp-block-group.has-background { padding: 1.5rem; border-radius: var(--hm-radius-md); }
.wp-block-cover { position: relative; display: flex; align-items: center; justify-content: center; min-height: 14rem; padding: 2rem; margin: 1.75em 0; overflow: hidden; border-radius: var(--hm-radius-md); background: var(--hm-sumi-soft); color: #fff; }
.wp-block-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-block-cover__inner-container { position: relative; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Colour classes: the editor's default palette on the theme's own ink */
.has-black-color { color: #141417; }
.has-white-color { color: #ffffff; }
.has-gray-color, .has-cyan-bluish-gray-color { color: #66666c; }
.has-vivid-red-color, .has-red-color { color: #cf2e2e; }
.has-vivid-green-cyan-color, .has-green-color { color: #00a96e; }
.has-vivid-cyan-blue-color, .has-blue-color { color: #0693e3; }
.has-black-background-color { background-color: #141417; }
.has-white-background-color { background-color: #ffffff; }
.has-gray-background-color, .has-cyan-bluish-gray-background-color { background-color: #abb8c3; }
.has-vivid-red-background-color, .has-red-background-color { background-color: #cf2e2e; }
.has-vivid-green-cyan-background-color, .has-green-background-color { background-color: #00a96e; }
.has-vivid-cyan-blue-background-color, .has-blue-background-color { background-color: #0693e3; }
.has-background:not(.has-text-color) { color: var(--hm-sumi); }
.has-black-background-color, .has-vivid-red-background-color, .has-vivid-cyan-blue-background-color { color: #fff; }
.has-small-font-size { font-size: 0.8125em; }
.has-medium-font-size { font-size: 1.125em; }
.has-large-font-size { font-size: 1.5em; }
.has-x-large-font-size { font-size: 2em; }

[data-theme="dark"] .has-black-color { color: #ececea; }
@media (max-width: 47.99rem) {
  .hm-entry .alignleft, .hm-entry .alignright { float: none; max-width: 100%; margin: 1em 0; }
}

.hm-card-columns__grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); background: var(--hm-hair); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); overflow: hidden; }
@media (min-width: 64rem) {
  .hm-card-columns--cols-2 .hm-card-columns__grid { grid-template-columns: repeat(2, 1fr); }
  .hm-card-columns--cols-3 .hm-card-columns__grid { grid-template-columns: repeat(3, 1fr); }
  .hm-card-columns--cols-4 .hm-card-columns__grid { grid-template-columns: repeat(4, 1fr); }
}
.hm-card-columns__col { background: var(--hm-bg); padding: 2rem 1.75rem; }
.hm-card-columns__label { margin: 0 0 0.75rem; font-family: var(--hm-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-card-columns__title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.hm-card-columns__description { margin: 0 0 1.25rem; color: var(--ht-fg-muted); }
.hm-card-columns__items { list-style: none; margin: 0; padding: 0; font-family: var(--hm-font-mono); font-size: 0.8125rem; }
.hm-card-columns__items li { padding: 0.5rem 0; border-top: 1px dashed var(--hm-hair); color: var(--hm-text); }
.hm-card-columns__notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--hm-shiro); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); }
.hm-card-columns__note-title { margin: 0 0 0.25rem; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; }
.hm-card-columns__note-text { margin: 0; font-size: 0.875rem; color: var(--ht-fg-muted); }

/* client_logos renders with the shared .hm-logo-strip styles (see logo_strip.css). */

.hm-comparison__sides { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); background: var(--hm-hair); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); overflow: hidden; }
.hm-comparison__side { background: var(--hm-bg); padding: 2rem 1.75rem; }
.hm-comparison__side--positive { background: var(--hm-shiro); }
.hm-comparison__tag { margin: 0 0 0.75rem; font-family: var(--hm-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-comparison__side--positive .hm-comparison__tag { color: var(--hm-shu); }
.hm-comparison__title { margin: 0 0 1.25rem; font-size: 1.375rem; }
.hm-comparison__items { list-style: none; margin: 0; padding: 0; }
.hm-comparison__items li { position: relative; padding: 0.625rem 0 0.625rem 1.75rem; border-top: 1px solid var(--hm-hair); }
/* Glyphs are pseudo-elements so the canvas editor never edits them. */
.hm-comparison__items li::before { position: absolute; left: 0; top: 0.625rem; font-family: var(--hm-font-mono); }
.hm-comparison__side--negative .hm-comparison__items li { color: var(--hm-hai); text-decoration: line-through; }
.hm-comparison__side--negative .hm-comparison__items li::before { content: "\00d7"; color: var(--hm-label); }
.hm-comparison__side--positive .hm-comparison__items li::before { content: "\2713"; color: var(--hm-shu); }

.hm-contact-form { max-width: 40rem; }
.hm-contact-form--split { max-width: var(--hm-container); display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.hm-contact-form__subheading { color: var(--ht-fg-muted); }
.hm-form { display: grid; gap: 1rem; }
.hm-form__field { display: grid; gap: 0.35rem; }
.hm-form__label, .hm-form__group legend { font-weight: 600; }
.hm-form input[type="text"], .hm-form input[type="email"], .hm-form input[type="tel"], .hm-form textarea, .hm-form select {
  width: 100%; padding: 0.6rem 0.75rem; font: inherit; color: inherit; background: var(--hm-bg);
  border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md);
}
.hm-form input[type="file"] { width: 100%; padding: 0.4rem 0; font: inherit; color: inherit; }
.hm-form__group { border: 0; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.hm-form__check { display: flex; gap: 0.5rem; align-items: baseline; }
.hm-form__help { color: var(--ht-fg-muted); }
.hm-form__submit { justify-self: start; cursor: pointer; font: inherit; font-size: 0.875rem; font-weight: 500; }
.hm-form__captcha { min-height: 1px; }
.hm-form__error { padding: 0.75rem 1rem; border-radius: var(--hm-radius-md); border: 1px solid var(--ht-line); }
.hm-form__success { padding: 0.75rem 1rem; border-radius: var(--hm-radius-md); background: var(--ht-surface-2); border: 1px solid var(--ht-line); }
/* Honeypot: off-screen, not display:none, so naive bots still fill it. */
.hm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 48rem) { .hm-contact-form--split { grid-template-columns: 1fr; } }
.hm-form__field[hidden], .hm-form__error[hidden] { display: none; }
.hm-form:has(.hm-form__field--half, .hm-form__field--third) { grid-template-columns: repeat(6, 1fr); }
.hm-form:has(.hm-form__field--half, .hm-form__field--third) > * { grid-column: 1 / -1; }
.hm-form:has(.hm-form__field--half, .hm-form__field--third) > .hm-form__field--half { grid-column: span 3; }
.hm-form:has(.hm-form__field--half, .hm-form__field--third) > .hm-form__field--third { grid-column: span 2; }
@media (max-width: 600px) { .hm-form:has(.hm-form__field--half, .hm-form__field--third) > .hm-form__field { grid-column: 1 / -1; } }
/* Inline field errors (logic forms): plain small text under the field, not the boxed page alert. */
.hm-form [data-hm-error-for] { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; font-size: 0.875em; line-height: 1.3; color: var(--hm-danger, #b00020); }
.hm-form [data-hm-error-for]:empty { display: none; }
.hm-form [aria-invalid="true"]:focus { outline: 2px solid var(--hm-danger, #b00020); outline-offset: 2px; }

.hm-contact-info__heading { margin-bottom: 1.5rem; }
.hm-contact-info__body { display: grid; gap: 1.5rem; }
.hm-contact-info__address { font-style: normal; }
.hm-contact-info__line { display: block; }
.hm-contact-info__channels { list-style: none; margin: 0; padding: 0; }
.hm-contact-info__hours { margin: 0; }
.hm-contact-info__hours-row { display: flex; gap: 1rem; justify-content: space-between; max-width: 20rem; padding: 0.2rem 0; border-bottom: 1px solid var(--ht-line); }
.hm-contact-info__hours dt { font-weight: 600; }
.hm-contact-info__hours dd { margin: 0; color: var(--ht-fg-muted); }
.hm-contact-info__map { margin-top: 1.5rem; }
.hm-contact-info__map iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--hm-radius-md); }
@media (min-width: 48rem) {
  .hm-contact-info--inline .hm-contact-info__body { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
}
.hm-contact-info--card .hm-contact-info__body { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-lg); padding: 1.75rem; background: var(--ht-surface); }

/* .hm-prose is the shared rich-text flow styling (content, overview). */
.hm-prose > :last-child { margin-bottom: 0; }
.hm-prose img { border-radius: var(--hm-radius-md); }
.hm-prose ul, .hm-prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.hm-prose blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--ht-line); color: var(--ht-fg-muted); }
.hm-content { max-width: 48rem; }
.hm-content__headline { margin-bottom: 0.75em; }

/* essay: sticky aside + long-form prose column. */
.hm-content--essay { max-width: var(--hm-container); display: grid; grid-template-columns: 16rem minmax(0, 44rem); gap: 3rem 5rem; align-items: start; }
.hm-content--essay .hm-content__aside { position: sticky; top: 6rem; }
.hm-content__glyph { display: block; font-family: var(--hm-font-kanji); font-size: 3.5rem; line-height: 1; color: var(--hm-shu); margin-bottom: 1rem; }
.hm-content__aside-text { margin: 0; font-family: var(--hm-font-mono); font-size: 0.8125rem; line-height: 1.6; color: var(--hm-hai); }
.hm-content__eyebrow { margin: 0 0 1rem; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-content--essay .hm-prose { font-size: 1.0625rem; line-height: 1.7; }
.hm-content--essay .hm-prose h3 { margin: 2em 0 0.5em; font-size: 1.25rem; }
.hm-content--essay .hm-prose code { padding: 0.1em 0.35em; border-radius: var(--hm-radius-sm); background: var(--hm-kasumi); font-size: 0.9em; }
@media (max-width: 960px) {
  .hm-content--essay { grid-template-columns: minmax(0, 1fr); }
  .hm-content--essay .hm-content__aside { display: none; }
}

.hm-cta { text-align: center; padding-top: 1rem; padding-bottom: 1rem; }
.hm-cta__headline { max-width: 20ch; margin-inline: auto; }
.hm-cta__subheadline { max-width: 52ch; margin: 1rem auto 0; font-size: 1.0625rem; color: var(--hm-hai); }
.hm-cta__actions { margin: 1.25rem 0 0; }
.hm-cta--tinted { background: var(--ht-surface-2); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); padding: 3.5rem 1.5rem; }
.hm-cta--dark { background: var(--hm-sumi); color: #fff; border-radius: var(--hm-radius-lg); padding: 3.5rem 1.5rem; }
.hm-cta--dark h2 { color: #fff; }
.hm-cta--dark .hm-cta__subheadline { color: rgba(255, 255, 255, 0.8); }

.hm-faq { max-width: 48rem; }
.hm-faq__subheading { color: var(--ht-fg-muted); }
.hm-faq__item { border-bottom: 1px solid var(--ht-line); padding: 0.9rem 0; }
.hm-faq__question { cursor: pointer; font-weight: 500; }
.hm-faq__answer { margin-top: 0.6rem; color: var(--ht-fg-muted); }
.hm-faq--cards .hm-faq__list { display: grid; gap: 0.75rem; }
.hm-faq--cards .hm-faq__item { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md); padding: 0.9rem 1.1rem; }

.hm-features__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-features__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-features__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hm-hair); border: 1px solid var(--hm-hair); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.hm-features--cols-2 .hm-features__list { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
@media (min-width: 48rem) {
  .hm-features--cols-2 .hm-features__list { grid-template-columns: repeat(2, 1fr); }
  .hm-features--cols-3 .hm-features__list { grid-template-columns: repeat(3, 1fr); }
  .hm-features--cols-4 .hm-features__list { grid-template-columns: repeat(4, 1fr); }
}
.hm-features__item { background: var(--hm-bg); padding: 1.75rem 1.75rem 2rem; }
.hm-features__item:hover { background: var(--hm-shiro); }
.hm-features__icon { display: inline-block; font-size: 1.75rem; line-height: 1; margin-bottom: 0.75rem; }
.hm-features__title { margin-bottom: 0.35em; }
.hm-features__description { color: var(--ht-fg-muted); margin-bottom: 0.75em; }
.hm-features__link { font-weight: 600; }

.hm-features--centered .hm-features__header, .hm-features--centered .hm-features__item { text-align: center; }
.hm-features--centered .hm-features__header { margin-left: auto; margin-right: auto; }

/* bento: framed cells with number, category, description and a tag footer. */
.hm-features--bento .hm-features__list { border-radius: var(--hm-radius-lg); overflow: hidden; }
.hm-features--bento .hm-features__item { min-height: 236px; display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.hm-features--bento .hm-features__number { font-family: var(--hm-font-mono); font-size: 0.75rem; color: var(--hm-label); }
.hm-features--bento .hm-features__category { font-family: var(--hm-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-features--bento .hm-features__badge { position: absolute; top: 1.25rem; right: 1.25rem; padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px solid var(--hm-hair); background: var(--hm-kasumi); font-family: var(--hm-font-mono); font-size: 0.6875rem; color: var(--hm-hai); }
.hm-features__tags { margin-top: auto; padding-top: 1rem; font-family: var(--hm-font-mono); font-size: 0.75rem; color: var(--hm-hai); }

/* hero — also defines .hm-btn--secondary, reused by other sections. */
.hm-btn--secondary { background: var(--hm-bg); color: var(--hm-text); border-color: var(--hm-hair); }
.hm-btn--secondary:hover { border-color: var(--hm-text); filter: none; }
.hm-hero { display: grid; gap: 3.5rem; align-items: center; }
.hm-section--hero { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 0; }
.hm-hero__headline { max-width: 16ch; margin: 0; }
.hm-hero--centered { text-align: center; justify-items: center; }
.hm-hero--centered .hm-hero__body { max-width: 48rem; }
.hm-hero--centered .hm-hero__headline { margin-inline: auto; }
.hm-hero--split { grid-template-columns: 1fr 1fr; }
.hm-hero__eyebrow { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); margin-bottom: 1rem; }
.hm-hero__subheadline { max-width: 68ch; margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.6; color: var(--hm-hai); }
.hm-hero--centered .hm-hero__subheadline { margin-inline: auto; }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }
.hm-hero--centered .hm-hero__actions { justify-content: center; }
.hm-hero__image { display: block; width: 100%; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); }
@media (max-width: 48rem) { .hm-hero--split { grid-template-columns: 1fr; } }

.hm-hero__chip { display: inline-block; margin-top: 1.25rem; padding: 0.4rem 0.75rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-sm); background: var(--hm-kasumi); font-size: 0.8125rem; color: var(--hm-sumi-soft); }
.hm-hero__media--panel { min-width: 0; text-align: left; }

/* optional strip (stripLabel + stripItems): label on its own row, items wrapping under it. */
.hm-hero__strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; margin-top: 2rem; }
.hm-hero--centered .hm-hero__strip { justify-content: center; }
.hm-hero__strip-label { flex: 0 0 100%; font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-hero__strip-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.hm-hero--centered .hm-hero__strip-items { justify-content: center; }
.hm-hero__strip-items li { font-size: 0.9375rem; color: var(--hm-text); }

.hm-html-body { overflow-wrap: anywhere; }
.hm-html-body > :last-child { margin-bottom: 0; }
.hm-html-body details { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md); padding: 0.75rem 1rem; margin: 0 0 0.75rem; }
.hm-html-body summary { cursor: pointer; font-weight: 600; }
/* Bespoke html blocks that bring their own full-width section chrome: avoid doubling the band padding and rule. */
.hm-section--html:has(> .hm-container > .hm-html-body > section:only-child) { padding-block: 0; border-top: 0; }
.hm-section--html:has(> .hm-container > .hm-html-body > section:only-child) > .hm-container { max-width: none; padding: 0; }

.hm-link-directory__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-link-directory__eyebrow { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); margin-bottom: 1rem; }
.hm-link-directory__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-link-directory__columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.hm-link-directory__column-heading { font-size: 1rem; margin-bottom: 0.75rem; }
.hm-link-directory__links { list-style: none; margin: 0; padding: 0; }
.hm-link-directory__links li { margin: 0.35rem 0; }

.hm-logo-strip__heading { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); text-align: center; margin-bottom: 1.5rem; }
.hm-logo-strip__viewport { display: flex; overflow: hidden; }
.hm-logo-strip__track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 3rem; flex: 1 0 auto; }
.hm-logo-strip__item img { display: block; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: opacity 0.15s, filter 0.15s; }
.hm-logo-strip__item img:hover { filter: none; opacity: 1; }
.hm-logo-strip__item--sm img { height: 1.5rem; }
.hm-logo-strip__item--md img { height: 2.25rem; }
.hm-logo-strip__item--lg img { height: 3.25rem; }
/* Marquee: two identical tracks slide left by their own width, looping seamlessly. */
.hm-logo-strip--marquee .hm-logo-strip__track { flex-wrap: nowrap; justify-content: space-around; padding-right: 3rem; animation: hm-logo-marquee 40s linear infinite; }
.hm-logo-strip--marquee .hm-logo-strip__viewport:hover .hm-logo-strip__track { animation-play-state: paused; }
@keyframes hm-logo-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .hm-logo-strip--marquee .hm-logo-strip__track { animation: none; flex-wrap: wrap; padding-right: 0; }
  .hm-logo-strip__track--clone { display: none; }
}

.hm-overview { display: grid; gap: 2.5rem; align-items: center; }
.hm-overview--with-image { grid-template-columns: 1fr 1fr; }
.hm-overview__eyebrow { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); margin-bottom: 1rem; }
.hm-overview__subheading { font-size: 1.15rem; color: var(--ht-fg-muted); }
.hm-overview__items { margin: 1rem 0 0; padding-left: 1.2rem; }
.hm-overview__item + .hm-overview__item { margin-top: 0.35rem; }
.hm-overview__image { display: block; width: 100%; border-radius: var(--hm-radius-lg); }
@media (max-width: 48rem) { .hm-overview--with-image { grid-template-columns: 1fr; } }

.hm-container.hm-plugin-directory { padding-block: clamp(4rem, 8vw, 7rem); }
.hm-section--plugin_directory > .hm-container.hm-plugin-directory { padding-block: 0; }
.hm-plugin-directory__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-plugin-directory__eyebrow { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); margin-bottom: 1rem; }
.hm-plugin-directory__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-plugin-directory__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hm-plugin-directory__btn--ghost { background: transparent; color: var(--hm-text); border-color: var(--ht-line); }
.hm-plugin-directory__tools { margin-bottom: 1.5rem; }
.hm-plugin-directory__search { width: 100%; max-width: 32rem; padding: 0.6rem 0.75rem; font: inherit; color: inherit; background: var(--hm-bg); border: 1px solid var(--ht-line); border-radius: var(--hm-radius-md); }
.hm-plugin-directory__count { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--ht-fg-muted); }
.hm-plugin-directory__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hm-hair); border: 1px solid var(--hm-hair); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.hm-plugin-directory__card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.75rem 1.75rem 2rem; background: var(--hm-bg); }
.hm-plugin-directory__card:hover { background: var(--hm-shiro); }
.hm-plugin-directory__card[hidden], .hm-plugin-directory__search[hidden], .hm-plugin-directory__count[hidden] { display: none; }
.hm-plugin-directory__title { margin: 0; font-size: 1.125rem; }
.hm-plugin-directory__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--hm-font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-plugin-directory__tier { padding: 0.1rem 0.5rem; border: 1px solid var(--hm-hair); border-radius: 999px; background: var(--hm-shiro); }
.hm-plugin-directory__author { margin: 0; font-size: 0.875rem; color: var(--ht-fg-muted); }
.hm-plugin-directory__note { margin: 0; font-size: 0.8125rem; color: var(--ht-fg-muted); }
.hm-plugin-directory__description { margin: 0; color: var(--ht-fg-muted); }
.hm-plugin-directory__perms { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: 0; font-family: var(--hm-font-mono); font-size: 0.75rem; color: var(--hm-label); }
.hm-plugin-directory__warn { border: 0; padding: 0; color: var(--hm-shu); }
.hm-plugin-directory__lines { font-size: 0.8125rem; color: var(--ht-fg-muted); }
.hm-plugin-directory__lines summary { cursor: pointer; color: var(--hm-label); }
.hm-plugin-directory__lines ul { margin: 0.5rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.375rem; }
.hm-plugin-directory__source { margin-top: auto; font-size: 0.875rem; font-weight: 500; }
.hm-plugin-directory__state { padding: 1.5rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); background: var(--hm-shiro); color: var(--ht-fg-muted); }
.hm-plugin-directory__hint { margin: 1.5rem 0 0; font-family: var(--hm-font-mono); font-size: 0.8125rem; color: var(--hm-label); }

.hm-pricing__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-pricing__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-pricing__tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }
.hm-pricing__tier { position: relative; display: flex; flex-direction: column; border: 1px solid var(--ht-line); border-radius: var(--hm-radius-lg); padding: 1.75rem; background: var(--ht-surface); }
.hm-pricing__tier--popular { border-color: var(--hm-text); box-shadow: 0 0 0 1px var(--hm-text); }
.hm-pricing__badge { align-self: flex-start; background: var(--hm-text); color: var(--hm-bg); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem; }
.hm-pricing__description { color: var(--ht-fg-muted); }
.hm-pricing__price { margin: 0.5rem 0 1.25rem; }
.hm-pricing__amount { font-family: var(--hm-font-heading); font-size: 2.5rem; font-weight: 450; letter-spacing: -0.04em; }
.hm-pricing__currency { font-size: 1.25rem; font-weight: 600; margin-right: 0.1rem; vertical-align: 0.6em; }
.hm-pricing__period { color: var(--ht-fg-muted); margin-left: 0.15rem; }
.hm-pricing__features { list-style: none; margin: 0 0 1.5rem; padding: 0; flex: 1; }
.hm-pricing__feature { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.hm-pricing__feature::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; }
.hm-pricing__feature--excluded { color: var(--ht-fg-muted); text-decoration: line-through; }
.hm-pricing__feature--excluded::before { content: "\2715"; }
.hm-pricing__cta { text-align: center; }
.hm-pricing--table .hm-pricing__tiers { grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .hm-pricing--table .hm-pricing__tier { display: grid; grid-template-columns: 1.2fr 1fr 2fr auto; gap: 0 1.5rem; align-items: center; }
  .hm-pricing--table .hm-pricing__price, .hm-pricing--table .hm-pricing__features { margin: 0; }
  .hm-pricing--table .hm-pricing__badge { grid-column: 1 / -1; }
}

.hm-process { max-width: 52rem; }
.hm-process__eyebrow { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hm-label); margin-bottom: 1rem; }
.hm-process__subheading { color: var(--ht-fg-muted); }
.hm-process__steps { list-style: none; counter-reset: hm-step; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.hm-process__step { counter-increment: hm-step; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; }
.hm-process__marker {
  display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; min-width: 2.5rem; padding: 0 0.4rem;
  border-radius: 999px; border: 1px solid var(--hm-hair); background: var(--hm-bg); color: var(--hm-text); font-family: var(--hm-font-mono); font-size: 0.8125rem; font-weight: 500;
}
.hm-process__marker:empty::before { content: counter(hm-step); }
.hm-process__title { margin-bottom: 0.25rem; }
.hm-process__description { color: var(--ht-fg-muted); }

/* cards: adds a command box per step; keeps the .hm-container width cap like every other section. */
.hm-process--cards { max-width: var(--hm-container); }
.hm-process--cards .hm-process__steps { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1px; background: var(--hm-hair); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-lg); overflow: hidden; }
.hm-process--cards .hm-process__step { display: block; background: var(--hm-bg); padding: 1.75rem; }
.hm-process--cards .hm-process__marker { margin-bottom: 1rem; border-radius: var(--hm-radius-sm); }
.hm-process--cards .hm-code { margin-top: 1rem; padding: 0.75rem 1rem; border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); background: var(--hm-kasumi); }

.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
.hm-split--wide-code { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hm-split--text-right .hm-split__text { order: 2; }
.hm-split__heading { margin: 0 0 1rem; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.hm-split__lede { color: var(--ht-fg-muted); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 1.5rem; }
.hm-split__defs { margin: 0 0 1.5rem; border-top: 1px solid var(--hm-hair); }
.hm-split__defs > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.875rem 0; border-bottom: 1px solid var(--hm-hair); }
.hm-split__defs dt { font-family: var(--hm-font-mono); font-size: 0.8125rem; color: var(--hm-text); }
.hm-split__defs dd { margin: 0; color: var(--ht-fg-muted); }
.hm-split__chips { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1px; background: var(--hm-hair); border: 1px solid var(--hm-hair); border-radius: var(--hm-radius-md); overflow: hidden; }
.hm-split__chips li { background: var(--hm-bg); padding: 0.875rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.hm-split__chip { font-size: 0.8125rem; color: var(--hm-text); }
.hm-split__caption { font-size: 0.8125rem; color: var(--hm-hai); }
.hm-split__footnote { font-size: 0.9375rem; color: var(--hm-hai); }
.hm-split__footnote code, .hm-split__lede code { padding: 0.1em 0.35em; border-radius: var(--hm-radius-sm); background: var(--hm-kasumi); font-size: 0.9em; }
/* panelHeight: match — panel column stretches to the text column; the code panel grows, outputs sit at the bottom. */
@media (min-width: 961px) {
  .hm-split--match { align-items: stretch; }
  .hm-split--match .hm-split__text > :last-child { margin-bottom: 0; }
  .hm-split--match .hm-split__panel { display: flex; flex-direction: column; min-width: 0; }
  .hm-split--match .hm-split__panel > .hm-frame { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hm-split--match .hm-split__panel > .hm-frame > .hm-code { flex: 1 1 auto; }
  .hm-split--match .hm-split__panel > .hm-outs:first-child { margin-top: auto; }
}
@media (max-width: 960px) {
  .hm-split, .hm-split--wide-code { grid-template-columns: minmax(0, 1fr); }
  .hm-split--text-right .hm-split__text { order: 0; }
}

.hm-stats__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-stats__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-stats__list { display: grid; gap: 1.5rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
@media (min-width: 48rem) {
  .hm-stats--cols-2 .hm-stats__list { grid-template-columns: repeat(2, 1fr); }
  .hm-stats--cols-3 .hm-stats__list { grid-template-columns: repeat(3, 1fr); }
  .hm-stats--cols-4 .hm-stats__list { grid-template-columns: repeat(4, 1fr); }
}
.hm-stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.hm-stats__value { margin: 0; display: flex; flex-direction: column; }
.hm-stats__number { font-family: var(--hm-font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 450; line-height: 1.1; letter-spacing: -0.05em; }
.hm-stats__label { color: var(--hm-label); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hm-stats__description { color: var(--ht-fg-muted); font-size: 0.9rem; }
.hm-stats--cards .hm-stats__item { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-lg); padding: 1.5rem; background: var(--ht-surface-2); }
.hm-stats--bordered .hm-stats__item { border-left: 1px solid var(--hm-text); padding-left: 1rem; }

.hm-sticky-sidebar { display: grid; gap: 2rem; }
.hm-sticky-sidebar__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-sticky-sidebar__aside { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-lg); padding: 1.5rem; background: var(--ht-surface-2); align-self: start; }
.hm-sticky-sidebar__facts { margin: 0 0 1.25rem; }
.hm-sticky-sidebar__fact { padding: 0.5rem 0; border-bottom: 1px solid var(--ht-line); }
.hm-sticky-sidebar__fact dt { font-size: 0.85rem; color: var(--ht-fg-muted); }
.hm-sticky-sidebar__fact dd { margin: 0; font-weight: 600; }
.hm-sticky-sidebar__cta { display: block; text-align: center; }
@media (min-width: 60rem) {
  .hm-sticky-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; }
  .hm-sticky-sidebar__aside { position: sticky; top: 1.5rem; }
}

.hm-section--tag_strip { padding: 1.75rem 0; }
.hm-tag-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hm-tag-strip__label { font-family: var(--hm-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-label); }
.hm-tag-strip__items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0; }
.hm-tag-strip__items li { padding: 0 1.25rem; border-left: 1px solid var(--hm-hair); font-size: 0.9375rem; color: var(--hm-text); }
.hm-tag-strip__items li:first-child { padding-left: 0; border-left: 0; }

.hm-team__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-team__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-team__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
@media (min-width: 48rem) {
  .hm-team--cols-2 .hm-team__list { grid-template-columns: repeat(2, 1fr); }
  .hm-team--cols-3 .hm-team__list { grid-template-columns: repeat(3, 1fr); }
  .hm-team--cols-4 .hm-team__list { grid-template-columns: repeat(4, 1fr); }
}
.hm-team__photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--hm-radius-md); margin-bottom: 1rem; }
.hm-team__name { margin-bottom: 0.15em; }
.hm-team__title { color: var(--ht-fg-muted); margin-bottom: 0.5em; }
.hm-team__bio { font-size: 0.95rem; }
.hm-team__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.9rem; }
.hm-team--cards .hm-team__member { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-lg); padding: 1.25rem; background: var(--ht-surface); }
.hm-team--centered .hm-team__member, .hm-team--centered .hm-team__header { text-align: center; }
.hm-team--centered .hm-team__header { margin-left: auto; margin-right: auto; }
.hm-team--centered .hm-team__photo { width: 8rem; height: 8rem; border-radius: 50%; margin-left: auto; margin-right: auto; }
.hm-team--centered .hm-team__social { justify-content: center; }
.hm-team--simple .hm-team__photo { display: none; }

.hm-testimonials__header { max-width: 42rem; margin-bottom: 2.5rem; }
.hm-testimonials__subheading { color: var(--ht-fg-muted); font-size: 1.1rem; }
.hm-testimonials__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.hm-testimonials__item { border: 1px solid var(--ht-line); border-radius: var(--hm-radius-lg); padding: 1.5rem; background: var(--ht-surface); }
.hm-testimonials__figure { margin: 0; display: flex; flex-direction: column; height: 100%; }
.hm-testimonials__rating { margin: 0 0 0.75rem; letter-spacing: 0.05em; }
.hm-testimonials__quote { margin: 0 0 1.25rem; flex: 1; font-size: 1.05rem; color: var(--hm-text); }
.hm-testimonials__author { display: flex; align-items: center; gap: 0.75rem; }
.hm-testimonials__avatar { border-radius: 50%; object-fit: cover; flex: none; }
.hm-testimonials__person { display: flex; flex-direction: column; line-height: 1.3; }
.hm-testimonials__role { color: var(--ht-fg-muted); font-size: 0.9rem; }
.hm-testimonials--featured .hm-testimonials__list { grid-template-columns: 1fr; max-width: 48rem; margin: 0 auto; }
.hm-testimonials--featured .hm-testimonials__item { border: 0; background: transparent; padding: 1rem 0; text-align: center; }
.hm-testimonials--featured .hm-testimonials__quote { font-size: 1.5rem; font-family: var(--hm-font-heading); line-height: 1.35; }
.hm-testimonials--featured .hm-testimonials__author { justify-content: center; text-align: left; }

.hm-theme-directory__shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hm-plugin-directory__other { display: inline-block; margin-top: 1rem; font-size: 0.875rem; font-weight: 500; }
.hm-section--theme_directory > .hm-container.hm-plugin-directory { padding-block: 0; }

.hm-value-proposition { max-width: 44rem; text-align: center; }
.hm-value-proposition__paragraph { font-size: 1.2rem; color: var(--ht-fg-muted); margin-bottom: 0; }

