/* Innotech public site. Source of truth for every value here:
   branding/all_brand_assets/Brand Style Guide/innotech-brand-guidelines.md
   Palette and typefaces come from the guide (p. 24-29). Values the guide
   leaves unspecified (tints, sizes, spacing, label weights, status colours)
   are minimal defaults, listed in PROJECT.md (D62). */

@font-face {
  font-family: Sora;
  src: url("/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap
}

:root {
  /* Core palette (guide p. 24) */
  --deep-teal: #182F36;
  --warm-ivory: #F2F0E8;
  --vibrant-orange: #FB8C20;
  --vibrant-yellow: #F7E44F;
  /* Supporting palette (guide p. 25) */
  --cool-silver: #E6E7E8;
  --soft-sage: #AFC7B8;

  /* Roles. Tints are not specified by the guide: these mix two palette
     colours and each pairing is checked against WCAG AA. */
  --text: var(--deep-teal);
  --text-muted: color-mix(in srgb, var(--deep-teal) 75%, var(--warm-ivory)); /* 5.9:1 on ivory */
  --on-dark: var(--warm-ivory);
  --on-dark-muted: color-mix(in srgb, var(--warm-ivory) 75%, var(--deep-teal)); /* 7.6:1 on teal */
  --line: color-mix(in srgb, var(--deep-teal) 20%, transparent);
  --line-on-dark: color-mix(in srgb, var(--warm-ivory) 22%, transparent);
  /* Functional status colours: not brand colours, the guide has none. */
  --ok: #1d6b43;
  --bad: #a3231b;

  /* Typography (guide p. 27-29) */
  --font-heading: Sora, system-ui, sans-serif;     /* Regular 400 */
  --font-sub: Manrope, system-ui, sans-serif;      /* Regular 400 */
  --font-body: Manrope, system-ui, sans-serif;     /* Light 300 */

  --maxw: 1240px;
  --radius: 1.25rem;
  --pill: 999px
}

* {
  box-sizing: border-box
}

html {
  background: var(--warm-ivory);
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--warm-ivory);
  color: var(--text);
  font: 300 16px/1.65 var(--font-body)
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 .5em
}

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.8rem)
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 3rem)
}

h3,
h4 {
  font-family: var(--font-sub);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 .5em
}

h3 {
  font-size: 1.3rem
}

h4 {
  font-size: 1rem
}

p {
  margin: 0 0 1rem
}

strong,
b {
  font-weight: 600
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em
}

a:hover {
  text-decoration-thickness: 2px
}

img {
  max-width: 100%;
  height: auto
}

.container {
  max-width: var(--maxw);
  margin: auto;
  padding-inline: clamp(1.2rem, 4vw, 4rem)
}

/* Wider than the usual reading measure: the weather-demo iframe. */
.container-wide {
  max-width: 1800px
}

.narrow {
  max-width: 760px
}

.center {
  text-align: center
}

.muted {
  color: var(--text-muted)
}

/* Focus: Deep Teal on light grounds, Vibrant Yellow on dark ones. Orange
   would fail the 3:1 non-text contrast minimum on ivory (2.1:1). */
:focus-visible {
  outline: 3px solid var(--deep-teal);
  outline-offset: 3px
}

.dark :focus-visible,
.site-top :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--vibrant-yellow)
}

.skip-link {
  position: absolute;
  left: -999px
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 30;
  background: var(--vibrant-yellow);
  color: var(--deep-teal);
  padding: .6rem 1rem;
  border-radius: var(--pill)
}

/* --- dark grounds ---------------------------------------------------- */
.dark {
  background: var(--deep-teal);
  color: var(--on-dark)
}

.dark .lede,
.dark .muted,
.dark .section-head p:not(.eyebrow),
.dark .split-heading>p {
  color: var(--on-dark-muted)
}

/* Section-opener glow (guide p. 4 and every section opener): a soft
   Vibrant Orange into Vibrant Yellow light in the bottom-right corner. Kept
   to the corner so it never sits behind text. */
.glow {
  position: relative;
  overflow: hidden
}

.glow:after {
  content: "";
  position: absolute;
  right: -18vw;
  bottom: -28vw;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 228, 79, .5) 0%, rgba(251, 140, 32, .38) 32%, rgba(251, 140, 32, 0) 68%);
  pointer-events: none
}

.glow>* {
  position: relative;
  z-index: 1
}

/* --- labels ---------------------------------------------------------- */
/* Small Deep Teal pill used as a page tag (guide p. 2, 5, 7). On a dark
   ground it becomes the outlined pill used on p. 6. */
.eyebrow {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: .3rem .85rem;
  border: 1px solid var(--deep-teal);
  border-radius: var(--pill);
  background: var(--deep-teal);
  color: var(--warm-ivory);
  font: 400 .78rem/1.3 var(--font-sub);
  letter-spacing: .02em
}

.dark .eyebrow {
  background: transparent;
  border-color: var(--line-on-dark);
  color: var(--on-dark)
}

/* --- buttons --------------------------------------------------------- */
/* Fully rounded pills (guide visual language). The primary button is
   Vibrant Orange with Deep Teal text (5.9:1); the guide's mockups show
   light text on orange, which is 2.1:1 and fails AA (approved deviation). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.35rem;
  border: 1px solid var(--vibrant-orange);
  border-radius: var(--pill);
  background: var(--vibrant-orange);
  color: var(--deep-teal);
  font: 400 .92rem/1.2 var(--font-sub);
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease
}

.btn:hover {
  background: var(--vibrant-yellow);
  border-color: var(--vibrant-yellow);
  color: var(--deep-teal)
}

.btn:disabled {
  opacity: .6
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto
}

/* main.js marks a submitting button aria-busy (and disables it). */
.btn[aria-busy="true"] {
  cursor: wait
}

.btn[aria-busy="true"]::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg)
  }
}

.btn-lg {
  padding: .95rem 1.65rem;
  font-size: 1rem
}

.btn-sm {
  padding: .5rem .95rem;
  font-size: .85rem
}

.btn-ghost {
  background: transparent;
  border-color: var(--deep-teal);
  color: var(--deep-teal)
}

.btn-ghost:hover {
  background: var(--deep-teal);
  border-color: var(--deep-teal);
  color: var(--warm-ivory)
}

/* Light pill on a dark ground (guide p. 20, 36). */
.btn-on-dark {
  background: var(--warm-ivory);
  border-color: var(--warm-ivory);
  color: var(--deep-teal)
}

/* Soft Sage pill (signage, guide p. 35). */
.btn-sage {
  background: var(--soft-sage);
  border-color: var(--soft-sage);
  color: var(--deep-teal)
}

.arrow-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font: 400 .95rem var(--font-sub);
  text-decoration: none
}

.arrow-link:after {
  content: "";
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .16s ease
}

.arrow-link:hover {
  text-decoration: underline
}

.arrow-link:hover:after {
  transform: translateX(3px)
}

/* --- top of page ----------------------------------------------------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--deep-teal);
  color: var(--on-dark)
}

.account-bar {
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--on-dark-muted);
  font: 400 .78rem/1.2 var(--font-sub)
}

.account-bar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem
}

.account-bar-links,
.account-bar-who {
  display: flex;
  gap: 1rem;
  align-items: center
}

.account-bar-who {
  gap: .5rem
}

.account-bar-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover
}

.account-bar a,
.account-bar button {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer
}

.account-bar a:hover,
.account-bar button:hover {
  color: var(--on-dark);
  text-decoration: underline
}

.account-bar strong {
  color: var(--on-dark);
  font-weight: 400
}

.account-bar-tag {
  padding: .05rem .5rem;
  border-radius: var(--pill);
  background: var(--vibrant-yellow);
  color: var(--deep-teal)
}

.site-header {
  transition: box-shadow .2s ease
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-on-dark)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem
}

/* Logo: 50px tall (one of the guide's sizes, p. 15). Clear space X is the
   width of the wordmark's "n" = 0.32 x logo height = 16px, kept free on
   all four sides by the padding below and the 2rem header gap. */
.brand {
  display: block;
  padding: 16px 0;
  flex: 0 0 auto
}

.brand img {
  display: block;
  height: 50px;
  width: auto
}

/* Pill navigation (website mockup, guide p. 34): Warm Ivory pills with
   Deep Teal text, the current page in Vibrant Yellow. */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem
}

.site-nav>a:not(.btn),
.nav-group-top {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .45rem .95rem;
  border-radius: var(--pill);
  background: var(--warm-ivory);
  color: var(--deep-teal);
  font: 400 .88rem/1.2 var(--font-sub);
  text-decoration: none;
  cursor: pointer;
  list-style: none
}

.site-nav>a:not(.btn):hover,
.nav-group-top:hover {
  background: var(--cool-silver)
}

.site-nav>a[aria-current=page],
.nav-group-current>.nav-group-top {
  background: var(--vibrant-yellow)
}

.nav-cta {
  margin-left: .4rem
}

.nav-group {
  position: relative
}

.nav-group-top::-webkit-details-marker {
  display: none
}

.nav-caret {
  width: 14px;
  height: 14px;
  transition: transform .16s ease
}

.nav-group[open]>.nav-group-top .nav-caret {
  transform: rotate(180deg)
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  width: 260px;
  padding: .5rem;
  border-radius: 1rem;
  background: var(--warm-ivory);
  color: var(--deep-teal);
  box-shadow: 0 18px 40px rgba(24, 47, 54, .28)
}

.nav-group[open]>.nav-menu {
  display: grid
}

.nav-menu a {
  padding: .55rem .8rem;
  border-radius: .7rem;
  font: 400 .9rem var(--font-sub);
  text-decoration: none
}

.nav-menu a:hover {
  background: var(--cool-silver)
}

.nav-menu a[aria-current=page] {
  background: var(--vibrant-yellow)
}

.nav-toggle,
.nav-toggle-label {
  display: none
}

/* --- home hero ------------------------------------------------------- */
.hero {
  padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(2.5rem, 5vw, 4rem)
}

.hero-inner {
  max-width: 820px
}

.hero h1 {
  max-width: 16ch;
  color: var(--on-dark)
}

.hero h1 em {
  font-style: normal;
  color: var(--vibrant-yellow)
}

.lede {
  font: 400 clamp(1.05rem, 1.45vw, 1.3rem)/1.55 var(--font-sub);
  max-width: 56ch;
  color: var(--text-muted)
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem
}

/* Thin down arrow under the hero (website mockup, guide p. 34). */
.scroll-cue {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--on-dark)
}

.scroll-cue svg {
  width: 22px;
  height: 22px
}

.scroll-cue:hover {
  border-color: var(--on-dark)
}

/* --- interior page heads --------------------------------------------- */
.page-head {
  padding: clamp(3.2rem, 7vw, 6rem) 0
}

.page-head h1 {
  color: var(--on-dark)
}

.page-head .lede {
  max-width: 60ch
}

.page-head-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem
}

/* Billboard layout (guide p. 36): copy on the left, a list or panel on
   the right. */
.billboard {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center
}

/* Admin-uploaded section photo (section_images.py), shown in the
   billboard layout. A section without one stays text-only. */
.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep-teal)
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover
}

.billboard .cta-actions {
  justify-content: flex-start
}

.stack-top {
  margin-top: 3rem
}

/* Optional hero photo/video (service_media.py) behind a Deep Teal scrim. */
.cover-hero {
  position: relative;
  overflow: hidden;
  background: var(--deep-teal)
}

.cover-hero:after {
  display: none
}

.cover-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0
}

.cover-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--cover-hero-image, none);
  background-size: cover;
  background-position: center;
  z-index: 0
}

/* Hero media on the home and service pages: the uploaded photo/video is
   blurred so the headline sits on a calm ground. Scaled up a little so the
   blur's soft edge stays hidden behind the section's overflow. */
.cover-hero:before,
.cover-hero .cover-hero-video {
  filter: blur(8px);
  transform: scale(1.06)
}

.cover-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(24, 47, 54, .6), rgba(24, 47, 54, .9))
}

.cover-hero .container {
  position: relative;
  z-index: 2
}

/* Sign-in card beside a service page heading. */
.page-head-signin {
  align-self: start;
  padding: 1.6rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  background: rgba(242, 240, 232, .06);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px)
}

.page-head-signin p:not(.eyebrow) {
  color: var(--on-dark-muted)
}

/* --- sections -------------------------------------------------------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0
}

/* .band and .section-alt are the Deep Teal sections of the Teal / Ivory
   alternation (guide visual language). */
.band,
.section-alt {
  padding: clamp(4rem, 8vw, 7rem) 0
}

.section-head {
  margin-bottom: 2.5rem
}

.section-head p:not(.eyebrow) {
  color: var(--text-muted);
  max-width: 60ch
}

.section-foot {
  margin-top: 2rem
}

.split-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem
}

.split-heading>p {
  color: var(--text-muted);
  font-size: 1.08rem
}

.cta h2 {
  margin-bottom: .6rem
}

.cta p:not(.eyebrow) {
  color: var(--text-muted)
}

.dark .cta p:not(.eyebrow) {
  color: var(--on-dark-muted)
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem
}

.grid {
  display: grid;
  gap: 1.2rem
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-ivory)
}

.card p:not(.eyebrow) {
  color: var(--text-muted)
}

a.card {
  display: block;
  text-decoration: none;
  transition: border-color .16s ease
}

a.card:hover {
  border-color: var(--deep-teal)
}

.card .arrow-link {
  margin-top: .4rem
}

/* Icon in a Deep Teal disc with a Vibrant Orange stroke, echoing the web
   icon mark (guide p. 19). Orange on teal is 5.9:1. */
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--deep-teal);
  color: var(--vibrant-orange)
}

.card-icon svg {
  width: 24px;
  height: 24px
}

.dark .card {
  background: transparent;
  border-color: var(--line-on-dark)
}

.dark .card p {
  color: var(--on-dark-muted)
}

.dark .card-icon {
  background: var(--warm-ivory)
}

.dark .card-icon {
  color: var(--deep-teal)
}

/* Numbered stages joined by a thin line with dot ends (guide p. 7, p. 9). */
.timeline {
  list-style: none;
  margin: 3rem 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative
}

.timeline:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  height: 1px;
  background: var(--line-on-dark)
}

.timeline li {
  position: relative;
  padding-top: 2.2rem
}

.timeline li:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--warm-ivory)
}

.timeline span {
  display: block;
  margin-bottom: .6rem;
  font: 400 2.2rem/1 var(--font-heading);
  color: var(--vibrant-yellow)
}

.timeline p {
  color: var(--on-dark-muted);
  font-size: .95rem
}

/* Thin-ruled list (guide p. 3 contents page). */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line)
}

.rule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  font: 400 1.02rem var(--font-sub)
}

.rule-list li span {
  color: var(--text-muted)
}

.dark .rule-list,
.dark .rule-list li {
  border-color: var(--line-on-dark)
}

.dark .rule-list li span {
  color: var(--on-dark-muted)
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  counter-reset: step
}

.steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step
}

.steps li>* {
  grid-column: 2
}

.steps li:before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font: 400 1.8rem/1.1 var(--font-heading);
  color: var(--deep-teal)
}

.steps p {
  color: var(--text-muted)
}

/* --- prose / about --------------------------------------------------- */
.prose p:not(.eyebrow),
.prose ul {
  color: var(--text-muted)
}

.prose h2 {
  margin: 2.4rem 0 .8rem
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem
}

.prose li {
  margin: .4rem 0
}

.prose ul.reg-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  border-top: 1px solid var(--line)
}

.prose ul.reg-list li {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line)
}

.prose ul.reg-list li strong {
  display: block;
  margin-bottom: .25rem;
  color: var(--text);
  font: 400 1.02rem var(--font-sub)
}

.prose ul.reg-list li .reg-no {
  margin-left: .5rem;
  color: var(--text-muted);
  font-size: .85rem
}

/* --- news ------------------------------------------------------------ */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem
}

.news-card {
  min-width: 0;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: break-word
}

.news-card h3 a {
  text-decoration: none
}

.news-card h3 a:hover {
  text-decoration: underline
}

.news-card p {
  color: var(--text-muted)
}

.news-date {
  display: block;
  margin-bottom: .8rem;
  color: var(--text-muted);
  font: 400 .8rem var(--font-sub)
}

/* --- forms ----------------------------------------------------------- */
.form {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.form label {
  display: block;
  margin-bottom: .35rem;
  font: 400 .92rem var(--font-sub)
}

.form .opt {
  color: var(--text-muted);
  font-size: .82rem
}

.field {
  margin-bottom: 1.1rem
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid color-mix(in srgb, var(--deep-teal) 45%, transparent);
  border-radius: .75rem;
  background: var(--cool-silver);
  color: var(--text);
  font: 400 1rem var(--font-body)
}

.form textarea {
  min-height: 8rem
}

.form-error {
  padding: .8rem 1rem;
  border-left: 3px solid var(--bad);
  border-radius: .5rem;
  background: var(--cool-silver);
  color: var(--bad)
}

.form-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: .88rem
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--bad)
}

.field-error {
  margin: .4rem 0 0;
  color: var(--bad);
  font-size: .85rem;
  font-weight: 600
}

.contact-direct {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  font: 400 1.05rem var(--font-sub)
}

.contact-direct li {
  margin-bottom: .4rem
}

.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important
}

/* --- online service pages -------------------------------------------- */
.status-strip {
  border-bottom: 1px solid var(--line);
  background: var(--cool-silver)
}

.status-strip-inner {
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font: 400 .92rem var(--font-sub)
}

.status-strip .status-badge {
  margin: 0
}

.status-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: 0 0 auto
}

.status-badge[data-state="ok"] {
  color: var(--ok)
}

.status-badge[data-state="ok"] .status-badge-dot {
  background: var(--ok)
}

.status-badge[data-state="bad"] {
  color: var(--bad)
}

.status-badge[data-state="bad"] .status-badge-dot {
  background: var(--bad)
}

.provider-badge {
  display: grid;
  grid-template-columns: minmax(130px, 220px) 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.provider-logo-chip {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff
}

.provider-logo-chip.fixed {
  width: 120px
}

.provider-logo {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain
}

.provider-badge-text p {
  color: var(--text-muted)
}

.provider-badge-text p:last-child {
  margin-bottom: 0
}

.fine-print {
  font-size: .82rem;
  color: var(--text-muted)
}

.reveal-card {
  padding: 0;
  overflow: hidden
}

.reveal-card summary {
  list-style: none;
  cursor: pointer
}

.reveal-card summary::-webkit-details-marker {
  display: none
}

.reveal-card-front {
  display: block;
  min-height: 190px;
  padding: 1.6rem;
  outline: none
}

.reveal-card-prompt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font: 400 .88rem var(--font-sub);
  text-decoration: underline;
  text-underline-offset: .2em
}

.reveal-card-prompt svg {
  width: 1.1em;
  height: 1.1em
}

.reveal-card-inner {
  display: none;
  border-top: 1px solid var(--line)
}

.reveal-card[open] .reveal-card-front {
  min-height: 0;
  background: var(--deep-teal);
  color: var(--on-dark)
}

.reveal-card[open] .reveal-card-front .card-icon {
  display: none
}

.reveal-card[open] .reveal-card-prompt {
  font-size: 0
}

.reveal-card[open] .reveal-card-prompt svg {
  display: none
}

.reveal-card[open] .reveal-card-prompt:after {
  content: "Close";
  font-size: .88rem
}

.reveal-card[open] .reveal-card-inner {
  display: block
}

.reveal-card-back {
  padding: 1.6rem
}

.reveal-card-back p {
  margin: 0
}

.reveal-card summary:focus-visible {
  outline: 3px solid var(--deep-teal);
  outline-offset: -3px
}

.wx-embed {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.wx-embed iframe {
  display: block;
  width: 100%;
  height: 88vh;
  min-height: 620px;
  border: 0
}

.wx-source {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: .85rem
}

.wx-source span {
  color: var(--text);
  font-weight: 600
}

/* --- error pages ----------------------------------------------------- */
.errorpage {
  min-height: 50vh
}

/* --- footer ---------------------------------------------------------- */
.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 1.6rem;
  border-top: 1px solid var(--line-on-dark)
}

/* Very large wordmark (website mockup, guide p. 34). */
.footer-wordmark {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem)
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem
}

.footer-note {
  max-width: 36ch;
  margin: 0;
  color: var(--on-dark-muted)
}

.footer-col {
  display: grid;
  align-content: start;
  gap: .55rem;
  font-size: .95rem
}

.footer-col h4 {
  margin-bottom: .4rem;
  color: var(--on-dark);
  font-size: .95rem
}

.footer-col a,
.footer-col p {
  margin: 0;
  color: var(--on-dark-muted);
  text-decoration: none
}

.footer-col a:hover {
  color: var(--on-dark);
  text-decoration: underline
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--on-dark-muted);
  font-size: .8rem
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap
}

.footer-status:hover {
  color: var(--on-dark)
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-dark-muted);
  flex: 0 0 auto
}

/* Dots on Deep Teal: Soft Sage for up (7.8:1), Vibrant Orange for down
   (5.9:1), both from the palette. */
.footer-status[data-state="ok"] .footer-status-dot {
  background: var(--soft-sage)
}

.footer-status[data-state="bad"] .footer-status-dot {
  background: var(--vibrant-orange)
}

/* --- small screens --------------------------------------------------- */
@media(max-width:1100px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem clamp(1.2rem, 4vw, 4rem) 1.4rem;
    background: var(--deep-teal);
    border-top: 1px solid var(--line-on-dark);
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto
  }

  .nav-toggle:checked~.site-nav {
    display: flex
  }

  .header-inner {
    position: relative
  }

  .site-nav>a:not(.btn),
  .nav-group-top {
    display: flex;
    justify-content: space-between;
    padding: .7rem 1.1rem
  }

  .nav-cta {
    margin: .4rem 0 0
  }

  .nav-menu {
    position: static;
    width: auto;
    margin-top: .4rem;
    box-shadow: none
  }

  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0
  }

  .nav-toggle-label {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--warm-ivory);
    cursor: pointer
  }

  .nav-toggle-label span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--deep-teal)
  }

  .nav-toggle:focus-visible+.nav-toggle-label {
    outline: 3px solid var(--vibrant-yellow);
    outline-offset: 3px
  }
}

@media(max-width:820px) {
  .brand img {
    height: 40px
  }

  .brand {
    padding: 13px 0
  }

  .billboard,
  .split-heading,
  .page-head-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.2rem
  }

  .footer-grid,
  .news-list,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0
  }

  .timeline:before {
    left: 5px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto
  }

  .timeline li {
    padding: 0 0 1.8rem 2.2rem
  }

  .glow:after {
    width: 90vw;
    right: -45vw;
    bottom: -50vw
  }

  .footer-bottom {
    display: block
  }

  .footer-bottom>*+* {
    margin-top: .5rem
  }

  .status-strip-inner {
    display: block
  }

  .status-strip .status-badge {
    margin: 0 0 .5rem
  }

  .provider-badge {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  /* Long "Signed in as <email>" lines wrap instead of widening the page. */
  .account-bar-inner,
  .account-bar-links {
    flex-wrap: wrap;
    row-gap: .3rem
  }

  .account-bar-inner {
    padding-block: .4rem
  }

  .account-bar-who {
    min-width: 0;
    max-width: 100%
  }

  .account-bar-who strong {
    display: inline-block;
    max-width: 60vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important
  }

  .btn[aria-busy="true"]::before {
    animation: none
  }
}

/* A section that continues the one above it on the same ground. */
.section-follow {
  padding-top: 0
}
