/**
 * Self-Hosted SEO — umbrella family brochureware (Ticket 3177).
 *
 * Design system sampled from SeoTools for Excel. Non-negotiables of that system,
 * documented at resources/awesome-design-md/design-md/seotoolsforexcel/DESIGN.md:
 *
 *   - ZERO box-shadows and ZERO gradients. Depth comes from full-bleed band
 *     alternation and hairline rules only. Adding either leaves the system.
 *   - Pill-only radius (100px) and circles (500px). Panels/cards have NO radius;
 *     there is no card component at all — content sits in blocks between rules.
 *   - Two families, strict division: Bebas Neue sets every heading (weight 400
 *     only, opacity .9), Montserrat sets all body copy. Never cross them.
 *   - letter-spacing: -1px on nav items and buttons. Signature, not a bug.
 *   - Opacity is the de-emphasis token (.9 headings, .8 subtitles), not muted
 *     colour tokens. Body stays true black.
 *   - Narrow measure (970px; 1170px large) is load-bearing at a 12-14px base.
 *
 * Issuer-side only: index.php serves this for the `content_gateway` issuer
 * profile, never an appliance box. That is why external webfonts are acceptable
 * here when they are not in the appliance design system (Sentinel ticket 403).
 */

:root {
  /* Brand */
  --sh-brand: #1ba5bd;
  --sh-deep-teal: #0e5764;
  --sh-bright-cyan: #2ac5e1;
  --sh-cta-deep: #147e91;

  /* Aqua ramp — for dark surfaces */
  --sh-link-on-dark: #57d2e7;
  --sh-social-pale: #83deee;
  --sh-btn-hover: #40cbe4;

  /* Surfaces */
  --sh-page: #ffffff;
  --sh-section-light: rgba(255, 255, 255, 0.9);
  --sh-header-bg: rgba(255, 255, 255, 0.95);
  --sh-dark-band: #051d21;
  --sh-footer-base: #031113;
  --sh-side-menu: #222222;

  /* Text */
  --sh-text: #000000;
  --sh-nav-text: #0e5764;
  --sh-on-dark: #ffffff;

  /* Structural */
  --sh-rule: #dddddd;
  --sh-rule-dark-band: #eeeeee;
  --sh-rule-light-band: #f0f0f0;
  --sh-rule-on-dark: rgba(255, 255, 255, 0.3);

  /* Single-purpose accent — .btn-alt hover only. Do not spread. */
  --sh-sage: #a6d3a6;

  /* Metrics */
  --sh-pill: 100px;
  --sh-circle: 500px;
  --sh-container: 970px;
  --sh-container-large: 1170px;

  --sh-display: 'Bebas Neue', BebasNeue, 'Arial Narrow', sans-serif;
  --sh-sans: Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--sh-page);
  color: var(--sh-text);
  font-family: var(--sh-sans);
  font-size: 12px;
  line-height: 1.62857;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 14px; } }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sh-display);
  font-weight: 400;
  line-height: 1.2;
  opacity: .9;
}
h1 { font-size: 3.2em; margin: 22px 0 11px; }
h2 { font-size: 2.4em; margin: 22px 0 11px; }
h3 { font-size: 1.8em; margin: 22px 0 11px; }
h4 { font-size: 1.6em; margin: 11px 0; }
h5 { font-size: 1.2em; margin: 11px 0; }
h6 { font-size: 1.1em; margin: 11px 0; }
p { font-family: var(--sh-sans); }

a { color: var(--sh-brand); text-decoration: none; transition: all .2s; }
a:hover, a:focus { color: var(--sh-deep-teal); text-decoration: underline; }

.sh-container {
  width: 100%;
  max-width: var(--sh-container);
  margin: 0 auto;
  padding: 0 15px;
}
.sh-container-large { max-width: var(--sh-container-large); }

.sh-subtitle { opacity: .8; }
.sh-small { font-size: 80%; }
.sh-highlight { color: var(--sh-bright-cyan); }
.sh-center { text-align: center; }
.sh-block { display: block; margin: 15px 0; }
.sh-block-large { margin: 30px 0; }
.sh-section-title { margin-top: 0; }

/* ---------- Skip link (a11y; the design has no focus rings to lean on) ---- */
.sh-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--sh-dark-band); color: #fff;
  padding: 12px 24px; z-index: 10;
  border-radius: 0 0 var(--sh-pill) 0;
}
.sh-skip:focus { left: 0; color: #fff; text-decoration: none; }

/* ---------- Header ---------- */
.sh-header {
  position: sticky; top: 0; z-index: 2;
  background: var(--sh-header-bg);
  transition: all .3s;
}
.sh-header-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--sh-container-large); margin: 0 auto;
  padding: 18px 15px;
  border-bottom: 1px solid var(--sh-rule);
}
.sh-brand {
  font-family: var(--sh-display);
  font-size: 26px;
  letter-spacing: -1px;
  color: var(--sh-nav-text);
  opacity: .9;
  white-space: nowrap;
}
.sh-brand:hover { text-decoration: none; color: var(--sh-nav-text); }
.sh-brand b { color: var(--sh-brand); font-weight: 400; }
.sh-nav { display: none; margin-left: auto; gap: 20px; }
@media (min-width: 768px) { .sh-nav { display: flex; } }
.sh-nav-item {
  display: inline-block;
  color: var(--sh-nav-text);
  font-weight: 700;
  letter-spacing: -1px;
  transition: all .2s;
}
.sh-nav-item:hover { color: var(--sh-bright-cyan); text-decoration: none; }
.sh-header-cta { margin-left: auto; }
@media (min-width: 768px) { .sh-header-cta { margin-left: 0; } }
@media (max-width: 991px) {
  .sh-nav { gap: 15px; }
  .sh-nav-item { font-size: .9em; }
}

/* ---------- Buttons — pills, 3px borders, no shadow, no gradient ---------- */
.sh-btn {
  display: inline-block; position: relative;
  padding: 12px 24px;
  font-family: var(--sh-sans);
  font-size: 14px; line-height: 1.42857; font-weight: 400;
  letter-spacing: -1px;
  text-align: center; white-space: nowrap; cursor: pointer;
  border-radius: var(--sh-pill);
  background: transparent;
  border: 3px solid var(--sh-brand);
  color: var(--sh-brand);
  transition: all .2s;
  z-index: 1;
}
.sh-btn:hover, .sh-btn:focus {
  color: #fff; background: var(--sh-brand); text-decoration: none;
}
.sh-btn-header { padding: 9px 21px; }

/* Two-layer wipe CTA — this system's substitute for a gradient. */
.sh-btn-cta {
  display: inline-block; position: relative; overflow: hidden;
  padding: 12px 24px;
  font-family: var(--sh-sans);
  font-size: 14px; line-height: 1.42857;
  letter-spacing: -1px;
  border-radius: var(--sh-pill);
  border: 3px solid var(--sh-cta-deep);
  background: transparent;
  color: var(--sh-cta-deep);
  cursor: pointer;
  transition: color .2s;
  z-index: 1;
}
.sh-btn-cta::before, .sh-btn-cta::after {
  content: ""; position: absolute;
  height: 100%; width: 100%;
  bottom: 100%; left: 0;
  z-index: -1;
  transition: transform .3s cubic-bezier(.75, 0, .125, 1);
}
.sh-btn-cta::before { background: var(--sh-cta-deep); }
.sh-btn-cta::after  { background: var(--sh-bright-cyan); }
.sh-btn-cta:hover, .sh-btn-cta:focus { color: #fff; text-decoration: none; }
.sh-btn-cta:hover::before, .sh-btn-cta:hover::after,
.sh-btn-cta:focus::before, .sh-btn-cta:focus::after { transform: translate3d(0, 100%, 0); }
.sh-btn-cta:hover::after, .sh-btn-cta:focus::after { transition-delay: .175s; }

@media (prefers-reduced-motion: reduce) {
  .sh-btn-cta::before, .sh-btn-cta::after { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* On dark bands the outline flips to the aqua ramp */
.sh-section-dark .sh-btn { border-color: var(--sh-link-on-dark); color: var(--sh-link-on-dark); }
.sh-section-dark .sh-btn:hover, .sh-section-dark .sh-btn:focus {
  background: var(--sh-link-on-dark); color: var(--sh-dark-band);
}
.sh-section-dark .sh-btn-cta { border-color: var(--sh-bright-cyan); color: var(--sh-bright-cyan); }

/* ---------- Bands ---------- */
.sh-section-light {
  background: var(--sh-section-light);
  border-bottom: 1px solid var(--sh-rule-light-band);
  padding: 60px 30px;
}
.sh-section-dark {
  background: var(--sh-dark-band);
  color: var(--sh-on-dark);
  border-bottom: 1px solid var(--sh-rule-dark-band);
  padding: 60px 30px;
}
.sh-section-dark a { color: var(--sh-link-on-dark); }
.sh-section-dark a:hover { color: var(--sh-social-pale); }

/* ---------- Grid (floats replaced with flex; same 15px gutter maths) -------- */
.sh-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.sh-col-4, .sh-col-6, .sh-col-8, .sh-col-12 { padding: 0 15px; width: 100%; }
@media (min-width: 992px) {
  .sh-col-4 { width: 33.3333%; }
  .sh-col-6 { width: 50%; }
  .sh-col-8 { width: 66.6667%; }
  .sh-col-12 { width: 100%; }
}

/* ---------- Action rows ---------------------------------------------------
 * Buttons must NOT be laid out as inline-block siblings. .sh-btn-cta needs
 * overflow:hidden to clip its wipe layers, and overflow:hidden moves an
 * inline-block's baseline to its bottom margin edge — so it sits lower than a
 * plain .sh-btn next to it. A flex row sidesteps the baseline entirely and
 * removes the &nbsp; spacer hack.
 */
.sh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 30px 0;
}

/* ---------- Product entry — a bordered block, NOT a card ------------------- */
.sh-product { padding: 30px 0; }
.sh-product-title { margin: 5px 0; }
.sh-product-kicker {
  font-family: var(--sh-sans);
  font-size: 80%; font-weight: 700;
  letter-spacing: -1px;
  color: var(--sh-brand);
  opacity: .9;
}
.sh-section-dark .sh-product-kicker { color: var(--sh-link-on-dark); }
.sh-product-list { margin: 15px 0; padding-left: 18px; }
.sh-product-list li { margin-bottom: 6px; }

/* Two products side by side. Still not cards: no radius, no shadow, no filled
 * panel — separation is a hairline rule, exactly as the source system does it.
 * Stacked below 992px, where the rule moves from vertical to horizontal. */
.sh-products { display: flex; flex-wrap: wrap; margin: 0 -30px; }
.sh-products > .sh-product { padding: 30px; width: 100%; }
.sh-products > .sh-product + .sh-product { border-top: 1px solid var(--sh-rule); }
@media (min-width: 992px) {
  .sh-products > .sh-product { width: 50%; }
  .sh-products > .sh-product + .sh-product {
    border-top: 0;
    border-left: 1px solid var(--sh-rule);
  }
}
.sh-section-dark .sh-products > .sh-product + .sh-product { border-color: var(--sh-rule-on-dark); }

.sh-product-head { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }

/* ---------- Flag (media object) — the source's one composite pattern ------- */
.sh-flag { display: table; position: relative; width: 100%; }
.sh-flag-image, .sh-flag-content { display: table-cell; vertical-align: middle; }
.sh-flag-top .sh-flag-image, .sh-flag-top .sh-flag-content { vertical-align: top; }
.sh-flag-image { padding-right: 10px; }
.sh-mark {
  height: 90px; width: 90px;
  flex: 0 0 90px;
  border-radius: var(--sh-circle);
  overflow: hidden;
  background: var(--sh-deep-teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sh-display);
  font-size: 30px;
  color: var(--sh-link-on-dark);
}
.sh-section-dark .sh-mark { background: rgba(255, 255, 255, .08); }

/* Product marks are stroke-only SVGs on currentColor, so the circle sets the
 * colour and the pair stays a matched set. */
.sh-mark-svg { width: 52px; height: 52px; color: var(--sh-link-on-dark); }
.sh-mark-svg svg { width: 100%; height: 100%; display: block; }

/* ---------- Contact panel -------------------------------------------------
 * Not a card: no radius, no shadow, no filled panel — separated from the copy
 * above by a hairline, exactly as the source system separates anything.
 */
.sh-contact-panel {
  margin: 15px 0;
  padding-top: 30px;
  border-top: 1px solid var(--sh-rule-on-dark);
  max-width: 520px;
}
.sh-contact-status {
  margin: 15px 0;
  padding: 12px 0;
  border-top: 1px solid var(--sh-rule-on-dark);
  border-bottom: 1px solid var(--sh-rule-on-dark);
}
.sh-field { margin: 15px 0; }
.sh-label {
  display: block;
  font-size: 80%;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 5px;
  opacity: .8;
}
.sh-input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 3px solid var(--sh-rule-on-dark);
  background: transparent;
  font-family: var(--sh-sans);
  font-size: 14px;
  color: var(--sh-on-dark);
}
/* The border IS the focus indicator (outline is suppressed to match the source
 * system's input treatment) — never remove it without a replacement. */
.sh-input:focus {
  outline: 0;
  border-color: var(--sh-bright-cyan);
}
.sh-input option { color: var(--sh-text); }
textarea.sh-input { resize: vertical; }

/* ---------- Inline code ---------------------------------------------------
 * Tinted background rather than a bordered chip: a border here would read as
 * the card chrome the system doesn't have. No radius — panels are square.
 */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  padding: 1px 5px;
  background: rgba(27, 165, 189, .08);
  color: var(--sh-deep-teal);
}
.sh-section-dark code {
  background: rgba(255, 255, 255, .1);
  color: var(--sh-link-on-dark);
}

/* ---------- Footer ---------- */
.sh-footer {
  background: var(--sh-dark-band);
  color: #fff;
  padding: 30px 0;
}
.sh-footer a { color: var(--sh-link-on-dark); }
.sh-footer-links a { display: inline-block; }
.sh-footer-links a + a { margin-left: 15px; }
.sh-footer-2 {
  background: var(--sh-footer-base);
  color: #fff;
  padding: 15px 0;
  line-height: 20px;
}

/* ---------- Rotating hero strap ---------- */
/*
 * All straps occupy the same grid cell, so the block is always as tall as the
 * longest line and swapping the active one cannot shift the page. Inactive
 * lines use visibility:hidden rather than opacity alone: that keeps them out of
 * the accessibility tree, so a screen reader announces the active claim only.
 */
.sh-strap {
  display: grid;
  /* Sans, not Bebas: the display face is all-caps narrow and unreadable at
     sentence length. The strap is a claim, not a heading. */
  font-size: 1.45em;
  font-weight: 300;
  line-height: 1.3;
  color: var(--sh-bright-cyan);
  margin: 0 0 18px;
}
.sh-strap-item {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s ease;
}
.sh-strap-item.is-active { visibility: visible; opacity: 1; }

@media (max-width: 700px) {
  .sh-strap { font-size: 1.2em; }
}

@media (prefers-reduced-motion: reduce) {
  /* No cross-fade; the script also stops rotating entirely (see the JS). */
  .sh-strap-item { transition: none; }
}
