/* =====================================================================
   CaminhoIT design system
   ---------------------------------------------------------------------
   Single source of truth for the CaminhoIT visual identity. Derived from
   the approved homepage redesign (CIT Redesign/home).

   Load order:  bootstrap.min.css  ->  bootstrap-icons.css  ->  caminho.css
   Bootstrap stays for its grid, modals, dropdowns and collapse; everything
   it paints is re-skinned below so the site reads as one design, not as a
   Bootstrap theme.

   Sections
     1.  Tokens
     2.  Legacy variable aliases (keeps ~250 existing pages on-palette)
     3.  Base elements
     4.  Layout: container / sections / section heads
     5.  Buttons and links
     6.  Cards, panels, media
     7.  Pills, badges, status
     8.  Forms
     9.  Tables
     10. Alerts, empty states, pagination, breadcrumbs
     11. Header and navigation
     12. Hero patterns
     13. Page furniture: partners, metrics, steps, testimonials, banners
     14. Footer
     15. Bootstrap re-skin
     16. Utilities
     17. Responsive
     18. Reduced motion / print
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                           */
/* ------------------------------------------------------------------ */
:root {
  /* Brand */
  --cit-navy:        #090e38;
  --cit-navy-2:      #1f2452;
  --cit-ink:         #2b3058;
  --cit-text:        #4b5378;
  --cit-muted:       #6b7290;
  --cit-muted-2:     #8a90aa;

  --cit-purple:      #6550ff;
  --cit-purple-dark: #4a3ce4;
  /* Sampled from the portal comps: the active sidebar pill, the staff chat
     bubble, the "total due today" band and the sidebar help card all read
     #eaebfd. The old #eeedfe was four units paler and left every one of them
     washed out against white. */
  --cit-purple-soft: #eaebfd;
  --cit-purple-tint: #f3f2fe;

  /* Surfaces */
  --cit-white:       #ffffff;
  --cit-surface:     #ffffff;
  --cit-pale:        #f8fafe;
  --cit-pale-2:      #f3f4fd;
  --cit-header-bg:   #f9fbfe;
  --cit-line:        #e8ebf5;
  --cit-line-strong: #d6dbef;
  /* Row dividers inside a panel sit lighter than the panel's own border, so
     a list reads as one surface rather than a stack of cards. */
  --cit-line-soft:   #eff1f8;

  /* Status */
  --cit-green:       #22b883;
  --cit-green-soft:  #e6f7f0;
  --cit-green-ink:   #12805a;
  --cit-red:         #ef4444;
  --cit-red-soft:    #fdecec;
  --cit-red-ink:     #b42318;
  --cit-orange:      #f59e0b;
  --cit-orange-soft: #fef4e4;
  --cit-orange-ink:  #b45309;
  --cit-blue:        #2f6fed;
  --cit-blue-soft:   #e9f0fe;

  /* Type */
  --cit-font: "Figtree", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --cit-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* Radii */
  --cit-r-xs:  6px;
  --cit-r-sm:  9px;
  --cit-r-md:  12px;
  --cit-r-lg:  16px;
  --cit-r-xl:  20px;
  --cit-r-pill: 999px;

  /* Elevation — deliberately soft; the design leans on borders, not shadow */
  /* Measured off the comps: 1px down, ~4px of blur, gone by 10px. The old
     2px blur stopped a shade too short of what the cards are drawn with. */
  --cit-shadow-sm: 0 1px 4px rgba(30, 36, 90, .045);
  --cit-shadow:    0 1px 2px rgba(30, 36, 90, .03), 0 10px 30px rgba(30, 36, 90, .05);
  --cit-shadow-md: 0 8px 40px rgba(30, 36, 90, .07);
  --cit-shadow-lg: 0 18px 50px rgba(30, 36, 90, .10);

  /* Layout */
  --cit-content: 1180px;
  --cit-gutter: 32px;
  --cit-header-h: 78px;

  /* Motion */
  --cit-ease: cubic-bezier(.4, 0, .2, 1);
  --cit-t: .18s var(--cit-ease);
}

/* ------------------------------------------------------------------ */
/* 2. Legacy variable aliases                                          */
/*    Existing pages reference these by the hundred. Re-pointing them   */
/*    at the new tokens re-skins those pages without touching them.     */
/* ------------------------------------------------------------------ */
:root {
  --theme-bg:         var(--cit-white);
  --theme-bg-soft:    var(--cit-pale);
  --theme-panel-bg:   var(--cit-white);
  --theme-nav-bg:     var(--cit-header-bg);
  --theme-border:     var(--cit-line);
  --theme-text:       var(--cit-navy);
  --theme-text-muted: var(--cit-text);
  --theme-hero-fade:  var(--cit-pale);

  --primary-color:    var(--cit-purple);
  --primary-dark:     var(--cit-purple-dark);
  --primary-light:    var(--cit-purple-soft);
  --primary-gradient: linear-gradient(110deg, #654bff, #624dff);
  --success-gradient: linear-gradient(135deg, #22b883, #12805a);
  --color-primary:    var(--cit-purple);
  --accent-color:     var(--cit-purple);
  --accent-cyan:      var(--cit-blue);

  --text-primary:       var(--cit-navy);
  --text-secondary:     var(--cit-text);
  --text-muted:         var(--cit-muted);
  --color-text:         var(--cit-navy);
  --color-text-secondary: var(--cit-text);
  --color-text-muted:   var(--cit-muted);
  --color-border:       var(--cit-line);
  --border-color:       var(--cit-line);

  --success-color: var(--cit-green);
  --danger-color:  var(--cit-red);
  --warning-color: var(--cit-orange);
  --info-color:    var(--cit-blue);

  --border-radius:  var(--cit-r-lg);
  --card-shadow:    var(--cit-shadow);
  --transition:     var(--cit-t);
  --transition-fast: .12s var(--cit-ease);

  /* Portal / operations pages */
  --admin-bg:            var(--cit-pale);
  --admin-card:          var(--cit-white);
  --admin-border:        var(--cit-line);
  --admin-text:          var(--cit-navy);
  --admin-text-secondary: var(--cit-text);
  --admin-text-muted:    var(--cit-muted);
  --admin-primary:       var(--cit-purple);

  /* staff-view-ticket-v3 family */
  --sv3-accent:       var(--cit-purple);
  --sv3-accent-light: var(--cit-purple-soft);
  --sv3-text:         var(--cit-navy);
  --sv3-text-muted:   var(--cit-muted);
  --sv3-panel-bg:     var(--cit-white);
  --sv3-panel-border: var(--cit-line);
  --sv3-radius:       var(--cit-r-lg);
  --sv3-radius-sm:    var(--cit-r-sm);
}

/* Restrained dark variant — token swap only, so every page follows. */
html.dark {
  --cit-navy:        #eef0fa;
  --cit-navy-2:      #d8dcf0;
  --cit-ink:         #cfd4ea;
  --cit-text:        #a7aeca;
  --cit-muted:       #8b93b3;
  --cit-muted-2:     #767d9d;
  --cit-purple:      #8b7cff;
  --cit-purple-dark: #a496ff;
  --cit-purple-soft: #241f4d;
  --cit-purple-tint: #1c1940;
  --cit-white:       #12142e;
  --cit-surface:     #171a38;
  --cit-pale:        #0d0f24;
  --cit-pale-2:      #171a38;
  --cit-header-bg:   #0f1229;
  --cit-line:        #262a4d;
  --cit-line-strong: #333858;
  --cit-line-soft:   #1e2140;
  --cit-green-soft:  #12312a;
  --cit-red-soft:    #351c1e;
  --cit-orange-soft: #33260f;
  --cit-blue-soft:   #17224a;
  /* The -ink pair of each soft tone was left at its light value, so every
     status pill, delta and health label was dark ink on a dark ground —
     2.4:1 on the danger pill. These are the same hues lifted to read on
     the dark surfaces above. */
  --cit-green-ink:   #4ed6a4;
  --cit-red-ink:     #ff8f85;
  --cit-orange-ink:  #f0ae4e;
  --cit-blue:        #7ba5ff;
  color-scheme: dark;
}
html.dark body { background: var(--cit-pale); }

/* ------------------------------------------------------------------ */
/* 3. Base elements                                                    */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cit-header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--cit-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cit-text);
  background: var(--cit-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--cit-navy);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  line-height: 1.2;
}
h1 { font-size: 40px; letter-spacing: -.03em; }
h2 { font-size: 30px; line-height: 1.14; letter-spacing: -.025em; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cit-purple); text-decoration: none; transition: color var(--cit-t); }
a:hover { color: var(--cit-purple-dark); }

img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--cit-line); margin: 2rem 0; opacity: 1; }

strong, b { font-weight: 700; color: var(--cit-ink); }
small { font-size: .85em; }

code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }
code { background: var(--cit-purple-tint); color: var(--cit-purple-dark); padding: .12em .4em; border-radius: var(--cit-r-xs); font-size: .9em; }
pre { background: var(--cit-pale); border: 1px solid var(--cit-line); border-radius: var(--cit-r-md); padding: 16px; overflow-x: auto; }

::selection { background: var(--cit-purple); color: #fff; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cit-purple) 55%, transparent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--cit-purple);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--cit-r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.cit-hand {
  font-family: var(--cit-hand);
  font-weight: 600;
  color: var(--cit-navy);
  line-height: 1.08;
  letter-spacing: 0;
}

/* Visually hidden but available to assistive tech */
.cit-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ */
/* 4. Layout                                                           */
/* ------------------------------------------------------------------ */
.cit-container,
.cit-wrap {
  width: min(var(--cit-content), 100% - (var(--cit-gutter) * 2));
  margin-inline: auto;
}
.cit-container--wide { width: min(1360px, 100% - (var(--cit-gutter) * 2)); }
.cit-container--narrow { width: min(820px, 100% - (var(--cit-gutter) * 2)); }

.cit-section { padding-block: 54px; }
.cit-section--tight { padding-block: 38px; }
.cit-section--loose { padding-block: 72px; }
.cit-section--pale { background: var(--cit-pale); }
.cit-section--pale2 { background: var(--cit-pale-2); }
.cit-section--tint { background: var(--cit-purple-tint); }
.cit-section--white { background: var(--cit-white); }

.cit-eyebrow {
  display: block;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cit-purple);
  margin: 0 0 12px;
}
.cit-eyebrow--light { color: #c4bfff; }
.cit-eyebrow--green { color: var(--cit-green); }

/* Eyebrow rendered as a soft chip (used in the redesigned page heroes) */
.cit-eyebrow-chip {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cit-purple);
  background: var(--cit-purple-soft);
  padding: 7px 12px;
  border-radius: var(--cit-r-xs);
  margin: 0 0 16px;
}

.cit-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "eyebrow eyebrow" "title link" "sub sub";
  column-gap: 40px;
  margin-bottom: 28px;
}
.cit-section-head > .cit-eyebrow { grid-area: eyebrow; }
.cit-section-head > h2, .cit-section-head > .cit-h2 { grid-area: title; margin: 0; }

/* The references set the section heading well above the base h2 (~37px against
   a 1200px viewport). Both forms are exempt from the type-scale guard in §26:
   `.cit-section-head`'s own heading, and `.cit-h2` for the section headings
   that sit in a split layout rather than a section head. */
.cit-section-head > h2,
.cit-section-head > .cit-h2,
.cit-h2 {
  font-size: clamp(24px, 3.05vw, 38px);
  line-height: 1.14;
  letter-spacing: -.03em;
}
.cit-section-head > .cit-link { grid-area: link; align-self: center; }
.cit-section-head > .cit-section-sub { grid-area: sub; margin: 12px 0 0; }
.cit-section-head--center {
  grid-template-columns: 1fr;
  grid-template-areas: "eyebrow" "title" "sub" "link";
  justify-items: center;
  text-align: center;
}
.cit-section-head--center > .cit-section-sub { margin-inline: auto; }

.cit-section-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cit-text);
  max-width: 650px;
}

.cit-lead { font-size: 17px; line-height: 1.6; color: var(--cit-text); }

/* Generic responsive grid used across the site */
.cit-grid { display: grid; gap: 22px; }
.cit-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cit-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cit-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cit-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cit-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cit-grid--tight { gap: 14px; }

.cit-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.cit-split--top { align-items: start; }
.cit-split--sidebar { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }

/* The "why us" band's wide variant: heading on its own row, points in a
   single row beneath. Opt-in per page ('wide' => true) — the default band
   keeps the heading-left/points-right split the other service comps use. */
.cit-why--wide { display: block; }
.cit-why--wide .cit-why__head { margin-bottom: 34px; }
.cit-why--wide .cit-why__head .cit-section-sub { max-width: 62ch; }

/* ------------------------------------------------------------------ */
/* 5. Buttons and links                                                */
/* ------------------------------------------------------------------ */
.cit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  border-radius: var(--cit-r-sm);
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--cit-t), color var(--cit-t), border-color var(--cit-t), box-shadow var(--cit-t), transform var(--cit-t);
}
.cit-btn:disabled, .cit-btn.is-disabled { opacity: .55; pointer-events: none; }
.cit-btn svg, .cit-btn .bi { flex: none; }
.cit-btn .cit-ico { width: 18px; height: 18px; }

.cit-btn--sm { height: 40px; padding-inline: 16px; font-size: 13px; }
.cit-btn--xs { height: 32px; padding-inline: 12px; font-size: 12px; border-radius: var(--cit-r-xs); gap: 6px; }
.cit-btn--lg { height: 48px; padding-inline: 24px; font-size: 14px; border-radius: var(--cit-r-md); }
.cit-btn--block { width: 100%; }

.cit-btn--primary {
  background: linear-gradient(110deg, #654bff, #624dff);
  color: #fff;
  border-color: transparent;
}
.cit-btn--primary:hover { background: var(--cit-purple-dark); color: #fff; }

.cit-btn--outline {
  background: rgba(255, 255, 255, .7);
  color: var(--cit-purple);
  border-color: #b4adfb;
}
.cit-btn--outline:hover { background: #fff; border-color: var(--cit-purple); color: var(--cit-purple-dark); }

.cit-btn--quiet {
  background: var(--cit-white);
  color: var(--cit-navy-2);
  border-color: var(--cit-line);
}
.cit-btn--quiet:hover { border-color: var(--cit-line-strong); color: var(--cit-navy); background: var(--cit-white); }

.cit-btn--soft {
  background: var(--cit-purple-soft);
  color: var(--cit-purple-dark);
  border-color: transparent;
}
.cit-btn--soft:hover { background: #e2dffd; color: var(--cit-purple-dark); }

.cit-btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.cit-btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.cit-btn--dark { background: var(--cit-navy); color: #fff; }
.cit-btn--dark:hover { background: var(--cit-navy-2); color: #fff; }

.cit-btn--danger { background: var(--cit-red); color: #fff; }
.cit-btn--danger:hover { background: var(--cit-red-ink); color: #fff; }

.cit-btn--success { background: var(--cit-green); color: #fff; }
.cit-btn--success:hover { background: var(--cit-green-ink); color: #fff; }

.cit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cit-purple);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.cit-link .cit-ico { width: 18px; height: 18px; transition: transform var(--cit-t); }
.cit-link:hover { color: var(--cit-purple-dark); }
.cit-link:hover .cit-ico { transform: translateX(2px); }
.cit-link--muted { color: var(--cit-muted); }
.cit-link--muted:hover { color: var(--cit-purple); }

.cit-btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Icon-only control */
.cit-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--cit-r-sm);
  border: 1px solid var(--cit-line);
  background: var(--cit-white);
  color: var(--cit-navy-2);
  cursor: pointer;
  transition: background var(--cit-t), border-color var(--cit-t), color var(--cit-t);
}
.cit-icon-btn:hover { background: var(--cit-purple-soft); border-color: var(--cit-purple-soft); color: var(--cit-purple); }

/* ------------------------------------------------------------------ */
/* 6. Cards, panels, media                                             */
/* ------------------------------------------------------------------ */
.cit-card {
  background: var(--cit-surface);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-xl);
  box-shadow: var(--cit-shadow);
  padding: 24px;
}
.cit-card--flat { box-shadow: none; }
.cit-card--pad-sm { padding: 18px; }
.cit-card--pad-lg { padding: 32px; }
.cit-card--tint { background: var(--cit-purple-tint); border-color: transparent; box-shadow: none; }
.cit-card--pale { background: var(--cit-pale); border-color: transparent; box-shadow: none; }

a.cit-card, .cit-card--hover { transition: border-color var(--cit-t), box-shadow var(--cit-t), transform var(--cit-t); }
a.cit-card:hover, .cit-card--hover:hover {
  border-color: #cfc9fb;
  box-shadow: var(--cit-shadow-md);
  transform: translateY(-2px);
}

/* Panel = card with a titled header row. The portal and data pages use it. */
.cit-panel {
  background: var(--cit-surface);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cit-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--cit-line);
}
.cit-panel__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--cit-navy);
  letter-spacing: -.02em;
}
.cit-panel__body { padding: 22px; flex: 1; min-width: 0; }
.cit-panel__body--flush { padding: 0; }
.cit-panel__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--cit-line);
  background: var(--cit-pale);
}

/* Icon tiles */
.cit-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
}
.cit-icon-box .cit-ico, .cit-icon-box svg { width: 30px; height: 30px; }
.cit-icon-box .bi { font-size: 26px; line-height: 1; }
.cit-icon-box--sm { width: 44px; height: 44px; border-radius: 11px; }
.cit-icon-box--sm .cit-ico, .cit-icon-box--sm svg { width: 22px; height: 22px; }
.cit-icon-box--sm .bi { font-size: 20px; }
.cit-icon-box--xs { width: 34px; height: 34px; border-radius: 9px; }
.cit-icon-box--xs .cit-ico, .cit-icon-box--xs svg { width: 18px; height: 18px; }
.cit-icon-box--xs .bi { font-size: 16px; }
.cit-icon-box--green { color: var(--cit-green); background: var(--cit-green-soft); }
.cit-icon-box--orange { color: var(--cit-orange-ink); background: var(--cit-orange-soft); }
.cit-icon-box--red { color: var(--cit-red-ink); background: var(--cit-red-soft); }
.cit-icon-box--blue { color: var(--cit-blue); background: var(--cit-blue-soft); }
.cit-icon-box--navy { color: #fff; background: var(--cit-navy); }

/* Service / feature cards */
.cit-feature {
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-height: 216px;
}
.cit-feature h3, .cit-feature .cit-feature__title {
  font-size: 16px;
  line-height: 1.3;
  margin: 18px 0 0;
  color: var(--cit-navy);
  font-weight: 700;
  letter-spacing: -.02em;
}
.cit-feature p, .cit-feature .cit-feature__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
  color: var(--cit-text);
}
.cit-feature .cit-link { margin-top: auto; padding-top: 22px; }

.cit-feature--compact { min-height: 0; padding: 20px 14px; }
.cit-feature--center { text-align: center; align-items: center; justify-content: flex-start; }
.cit-feature--center h3 { margin-top: 16px; font-size: 14px; line-height: 20px; }
.cit-feature--center p { font-size: 13px; line-height: 19px; margin-top: 8px; text-wrap: balance; }
/* Equal-height row of compact cards */
.cit-grid--6 > .cit-feature--compact { height: 100%; }

/* Small icon + label pairs (the "why us" clusters in the references) */
.cit-pointlist { display: grid; gap: 18px; }
.cit-point { display: flex; gap: 12px; align-items: flex-start; }
.cit-point__body { min-width: 0; }
.cit-point__title { display: block; font-size: 14px; font-weight: 700; color: var(--cit-navy); line-height: 1.35; }
.cit-point__text { display: block; font-size: 13px; line-height: 1.5; color: var(--cit-text); margin-top: 2px; }

/* Checklists */
.cit-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cit-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--cit-ink);
}
.cit-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--cit-purple);
  color: #fff;
}
.cit-check .cit-ico, .cit-check svg { width: 12px; height: 12px; }
.cit-check .bi { font-size: 11px; }
.cit-check--green { background: var(--cit-green); }
.cit-check--sm { width: 18px; height: 18px; }
.cit-check--sm .cit-ico { width: 10px; height: 10px; }

/* Definition rows (label left, value right) */
.cit-rows { display: flex; flex-direction: column; }
.cit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cit-line);
  font-size: 14px;
}
.cit-row:last-child { border-bottom: 0; }
.cit-row__label { flex: 1; min-width: 0; color: var(--cit-text); }
.cit-row__value { font-weight: 600; color: var(--cit-navy); text-align: right; }

/* Media */
.cit-media {
  border-radius: var(--cit-r-xl);
  overflow: hidden;
  background: var(--cit-pale-2);
  display: block;
}
.cit-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cit-media--16x9 { aspect-ratio: 16 / 9; }
.cit-media--4x3 { aspect-ratio: 4 / 3; }
.cit-media--1x1 { aspect-ratio: 1 / 1; }
.cit-media--3x2 { aspect-ratio: 3 / 2; }

/* ------------------------------------------------------------------ */
/* 7. Pills, badges, status                                            */
/* ------------------------------------------------------------------ */
.cit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--cit-r-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  background: var(--cit-purple-soft);
  color: var(--cit-purple-dark);
  white-space: nowrap;
}
.cit-pill .bi { font-size: 12px; }
.cit-pill--green  { background: var(--cit-green-soft);  color: var(--cit-green-ink); }
.cit-pill--red    { background: var(--cit-red-soft);    color: var(--cit-red-ink); }
.cit-pill--orange { background: var(--cit-orange-soft); color: var(--cit-orange-ink); }
.cit-pill--blue   { background: var(--cit-blue-soft);   color: var(--cit-blue); }
.cit-pill--grey   { background: var(--cit-pale-2);      color: var(--cit-muted); }
.cit-pill--outline { background: transparent; border: 1px solid var(--cit-line); color: var(--cit-text); }

/* Status badge with a leading dot — used for ticket/service state */
.cit-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--cit-r-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  background: var(--cit-pale-2);
  color: var(--cit-text);
  white-space: nowrap;
}
.cit-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.cit-status--open      { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }
.cit-status--progress  { background: #e5e1ff;                color: #4a3ce4; }
.cit-status--resolved,
.cit-status--closed,
.cit-status--success   { background: var(--cit-green-soft);  color: var(--cit-green-ink); }
.cit-status--pending,
.cit-status--warning   { background: var(--cit-orange-soft); color: var(--cit-orange-ink); }
.cit-status--danger,
.cit-status--overdue   { background: var(--cit-red-soft);    color: var(--cit-red-ink); }
.cit-status--info      { background: var(--cit-blue-soft);   color: var(--cit-blue); }
.cit-status--muted     { background: var(--cit-pale-2);      color: var(--cit-muted); }

/* Category tag (blog / insights) */
.cit-tag {
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--cit-purple);
}
.cit-tag--green { color: var(--cit-green); }
.cit-tag--orange { color: var(--cit-orange-ink); }
.cit-tag--blue { color: var(--cit-blue); }

/* Trust chips under hero CTAs */
.cit-chips { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.cit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cit-ink);
}
.cit-chip .cit-ico { width: 16px; height: 16px; color: var(--cit-purple); flex: none; }
.cit-chip .bi { color: var(--cit-purple); font-size: 14px; }

/* Filter pill row */
.cit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cit-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding-inline: 16px;
  border-radius: var(--cit-r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--cit-navy-2);
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--cit-t), color var(--cit-t);
}
.cit-filter .bi { color: var(--cit-purple); }
.cit-filter:hover { background: var(--cit-pale-2); color: var(--cit-navy); }
.cit-filter.is-active { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }

/* ------------------------------------------------------------------ */
/* 8. Forms                                                            */
/* ------------------------------------------------------------------ */
.cit-field { margin-bottom: 18px; }
.cit-field--last, .cit-field:last-child { margin-bottom: 0; }

.cit-label,
.cit-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cit-navy);
  margin-bottom: 7px;
  letter-spacing: -.005em;
}
.cit-label .cit-req, .cit-req { color: var(--cit-purple); }
.cit-label--optional::after { content: " (optional)"; color: var(--cit-muted); font-weight: 500; }

.cit-input,
.cit-select,
.cit-textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 22px;
  color: var(--cit-navy);
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-sm);
  transition: border-color var(--cit-t), box-shadow var(--cit-t), background var(--cit-t);
  appearance: none;
}
.cit-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.cit-select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7290' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.cit-input::placeholder, .cit-textarea::placeholder { color: var(--cit-muted-2); }
.cit-input:hover, .cit-select:hover, .cit-textarea:hover { border-color: var(--cit-line-strong); }
.cit-input:focus, .cit-select:focus, .cit-textarea:focus {
  outline: none;
  border-color: var(--cit-purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 15%, transparent);
}
.cit-input:disabled, .cit-select:disabled, .cit-textarea:disabled {
  background: var(--cit-pale);
  color: var(--cit-muted);
  cursor: not-allowed;
}
.cit-input.is-invalid, .cit-select.is-invalid, .cit-textarea.is-invalid { border-color: var(--cit-red); }
.cit-input.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-red) 18%, transparent); }

.cit-help { display: block; font-size: 12px; line-height: 1.5; color: var(--cit-muted); margin-top: 6px; }
.cit-error {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12.5px; color: var(--cit-red-ink); margin-top: 6px; font-weight: 500;
}

/* Input with a leading icon */
.cit-input-group { position: relative; }
.cit-input-group .cit-input { padding-left: 42px; }
.cit-input-group__icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--cit-muted-2);
  pointer-events: none;
  display: inline-flex;
}
.cit-input-group__icon .cit-ico { width: 17px; height: 17px; }
.cit-input-group__action {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  border: 0; background: transparent;
  color: var(--cit-muted);
  width: 34px; height: 34px;
  border-radius: var(--cit-r-xs);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.cit-input-group__action:hover { color: var(--cit-purple); background: var(--cit-purple-soft); }

.cit-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.cit-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cit-form-grid > .cit-field--full { grid-column: 1 / -1; }

/* Checkbox / radio */
.cit-choice {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--cit-ink);
  cursor: pointer;
}
.cit-choice input[type="checkbox"],
.cit-choice input[type="radio"] {
  appearance: none;
  flex: none;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  border: 1.5px solid var(--cit-line-strong);
  background: var(--cit-white);
  cursor: pointer;
  transition: border-color var(--cit-t), background var(--cit-t);
}
.cit-choice input[type="checkbox"] { border-radius: 5px; }
.cit-choice input[type="radio"] { border-radius: 50%; }
.cit-choice input:hover { border-color: var(--cit-purple); }
.cit-choice input[type="checkbox"]:checked {
  background: var(--cit-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
  border-color: var(--cit-purple);
}
.cit-choice input[type="radio"]:checked {
  border-color: var(--cit-purple);
  border-width: 5px;
}
.cit-choice input:focus-visible { outline: 3px solid color-mix(in srgb, var(--cit-purple) 45%, transparent); outline-offset: 2px; }
.cit-choice-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Search field used in heroes and listings */
.cit-search { position: relative; max-width: 420px; }
.cit-search .cit-input { height: 48px; padding-left: 44px; padding-right: 48px; border-radius: var(--cit-r-md); }
.cit-search__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--cit-muted-2); }
.cit-search__submit {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: var(--cit-r-xs);
  background: transparent; color: var(--cit-purple);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.cit-search__submit:hover { background: var(--cit-purple-soft); }

/* ------------------------------------------------------------------ */
/* 9. Tables                                                           */
/* ------------------------------------------------------------------ */
.cit-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: var(--cit-text);
}
.cit-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cit-muted);
  background: var(--cit-pale);
  padding: 12px 16px;
  border-bottom: 1px solid var(--cit-line);
  white-space: nowrap;
}
.cit-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cit-line);
  vertical-align: middle;
}
.cit-table tbody tr:last-child td { border-bottom: 0; }
.cit-table tbody tr { transition: background var(--cit-t); }
.cit-table tbody tr:hover { background: var(--cit-pale); }
.cit-table__strong { font-weight: 600; color: var(--cit-navy); }
.cit-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.cit-table__actions { text-align: right; white-space: nowrap; }
.cit-table--fixed { table-layout: fixed; }

/* ------------------------------------------------------------------ */
/* 10. Alerts, empty states, pagination, breadcrumbs                   */
/* ------------------------------------------------------------------ */
.cit-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--cit-r-md);
  border: 1px solid var(--cit-line);
  background: var(--cit-pale);
  color: var(--cit-ink);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.cit-alert__icon { flex: none; margin-top: 1px; }
.cit-alert__icon .bi { font-size: 17px; }
.cit-alert__body { min-width: 0; flex: 1; }
.cit-alert__title { font-weight: 700; color: inherit; margin: 0 0 2px; font-size: 14px; }
.cit-alert p:last-child { margin-bottom: 0; }
.cit-alert--success { background: var(--cit-green-soft); border-color: color-mix(in srgb, var(--cit-green) 28%, transparent); color: var(--cit-green-ink); }
.cit-alert--danger  { background: var(--cit-red-soft);   border-color: color-mix(in srgb, var(--cit-red) 28%, transparent);   color: var(--cit-red-ink); }
.cit-alert--warning { background: var(--cit-orange-soft);border-color: color-mix(in srgb, var(--cit-orange) 32%, transparent);color: var(--cit-orange-ink); }
.cit-alert--info    { background: var(--cit-blue-soft);  border-color: color-mix(in srgb, var(--cit-blue) 25%, transparent);  color: var(--cit-blue); }
.cit-alert--purple  { background: var(--cit-purple-soft);border-color: transparent; color: var(--cit-purple-dark); }

.cit-empty {
  text-align: center;
  padding: 52px 24px;
  color: var(--cit-text);
}
.cit-empty__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  border-radius: 16px;
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
  margin-bottom: 18px;
}
.cit-empty__icon .bi { font-size: 28px; }
.cit-empty h3, .cit-empty__title { font-size: 17px; margin: 0 0 6px; color: var(--cit-navy); }
.cit-empty p { font-size: 14px; max-width: 420px; margin: 0 auto 18px; }

.cit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.cit-pagination a, .cit-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding-inline: 10px;
  border-radius: var(--cit-r-sm);
  border: 1px solid var(--cit-line);
  background: var(--cit-white);
  color: var(--cit-navy-2);
  font-size: 13px; font-weight: 600;
  transition: background var(--cit-t), border-color var(--cit-t), color var(--cit-t);
}
.cit-pagination a:hover { border-color: var(--cit-purple); color: var(--cit-purple); }
.cit-pagination .is-active, .cit-pagination [aria-current="page"] {
  background: var(--cit-purple); border-color: var(--cit-purple); color: #fff;
}
.cit-pagination .is-disabled { opacity: .45; pointer-events: none; }

.cit-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0 0 18px;
  font-size: 12.5px; color: var(--cit-muted);
}
.cit-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.cit-breadcrumb li + li::before { content: "/"; color: var(--cit-line-strong); }
.cit-breadcrumb a { color: var(--cit-muted); }
.cit-breadcrumb a:hover { color: var(--cit-purple); }
.cit-breadcrumb [aria-current="page"] { color: var(--cit-navy); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* 11. Header and navigation                                           */
/* ------------------------------------------------------------------ */
.cit-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--cit-header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--cit-t), box-shadow var(--cit-t), background var(--cit-t);
}
.cit-header.is-scrolled {
  background: color-mix(in srgb, var(--cit-header-bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--cit-line);
  box-shadow: 0 1px 20px rgba(30, 36, 90, .05);
}
.cit-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--cit-header-h);
}

/* Brand lockup — symbol left, name right, vertically centred.
   Wordmark: Manrope SemiBold 26px, -0.025em; "Caminho" deep navy, "IT" teal.
   Slogan: Manrope Regular 10.5px, sized to sit the same width as the name.
   On dark backgrounds the whole name is white.
   The lockup is about half the 78px header's height, so it reads as a logo
   beside the 13.5px nav rather than a headline.
   Mobile: 22px wordmark, 34px symbol, no slogan. */
:root { --cit-brand-navy: #123247; --cit-brand-teal: #10A7B5; }
.cit-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.cit-logo__mark { display: block; width: 40px; height: 40px; flex: none; }
.cit-logo__mark img,
.cit-propbar__logo picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cit-logo__text { display: flex; flex-direction: column; justify-content: center; }
.cit-logo__name {
  font-family: 'Manrope', var(--cit-font, system-ui), sans-serif;
  font-size: 26px; line-height: 1; font-weight: 600;
  letter-spacing: -.025em; color: var(--cit-brand-navy);
  white-space: nowrap;
}
.cit-logo__it { color: var(--cit-brand-teal); }
.cit-logo__tag {
  font-family: 'Manrope', var(--cit-font, system-ui), sans-serif;
  font-size: 10.5px; line-height: 1.3; font-weight: 400;
  margin-top: 3px; color: #4a6272; letter-spacing: .005em;
  white-space: nowrap;
}
/* Dark backgrounds: entire name in white. */
.cit-footer .cit-logo__it,
.cit-side--ops .cit-logo__it,
:is(.cit-page-home, body:has(.p-mast)) .cit-header .cit-logo__it,
.cit-page-overhero .cit-header .cit-logo__it { color: inherit; }
/* Laptop widths: the header row is tight, so the lockup steps down a little. */
@media (min-width: 768px) and (max-width: 1360px) {
  .cit-header .cit-logo__mark { width: 36px; height: 36px; }
  .cit-header .cit-logo__name { font-size: 24px; }
  .cit-header .cit-logo__tag { font-size: 10px; }
}
@media (max-width: 767px) {
  .cit-logo { gap: 9px; }
  .cit-logo__mark { width: 34px; height: 34px; }
  .cit-logo__name { font-size: 22px; }
  .cit-logo__tag { display: none; }
}

.cit-nav { display: flex; align-items: center; flex: 1; min-width: 0; }
.cit-nav__list {
  display: flex; align-items: center; gap: 23px;
  margin: 0 0 0 36px; padding: 0; list-style: none;
}
.cit-nav__list > li { position: relative; }
.cit-nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500; color: var(--cit-navy-2);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  background: none; border-top: 0; border-left: 0; border-right: 0;
  font-family: inherit; cursor: pointer;
}
.cit-nav__link:hover { color: var(--cit-purple); }
.cit-nav__link .cit-ico { width: 12px; height: 12px; transition: transform var(--cit-t); }
.cit-nav__link[aria-expanded="true"] .cit-ico { transform: rotate(180deg); }
.cit-nav__link.is-active { color: var(--cit-purple); border-bottom-color: var(--cit-purple); }

/* Dropdown */
.cit-nav__panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 268px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-lg);
  padding: 10px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--cit-t), transform var(--cit-t), visibility var(--cit-t);
  z-index: 40;
}
.cit-nav__item.is-open > .cit-nav__panel,
.cit-nav__item:hover > .cit-nav__panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.cit-nav__panel a {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--cit-r-sm);
  color: var(--cit-navy);
  font-size: 13.5px; font-weight: 600;
  transition: background var(--cit-t), color var(--cit-t);
}
.cit-nav__panel a:hover { background: var(--cit-purple-tint); color: var(--cit-purple-dark); }
.cit-nav__panel a .bi { color: var(--cit-purple); font-size: 15px; margin-top: 1px; }
.cit-nav__panel a span { display: block; }
.cit-nav__panel a small { display: block; font-size: 12px; font-weight: 400; color: var(--cit-muted); margin-top: 1px; }
.cit-nav__panel hr { margin: 8px 4px; }

.cit-nav__tail { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }

/* Language picker (includes/cit-lang-menu.php): current flag + code + arrow,
   opening a small list. caminho.js toggles [hidden] and aria-expanded. */
.cit-lang { position: relative; display: inline-flex; align-items: center; margin-right: 6px; }
.cit-lang__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--cit-navy-2);
  background: none; border: 1px solid transparent; border-radius: 8px;
  padding: 5px 7px; cursor: pointer; font-family: inherit; line-height: 1;
}
.cit-lang__toggle:hover, .cit-lang__toggle[aria-expanded="true"] { border-color: var(--cit-line-strong); }
.cit-lang__toggle:focus-visible { outline: 2px solid var(--cit-purple); outline-offset: 2px; }
.cit-lang__flag { width: 22px; height: 15px; border-radius: 2px; flex: none; }
.cit-lang__chev { width: 12px; height: 12px; flex: none; opacity: .7; transition: transform .15s ease; }
.cit-lang__toggle[aria-expanded="true"] .cit-lang__chev { transform: rotate(180deg); }
.cit-lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 1050;
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--cit-white, #fff); border: 1px solid var(--cit-line);
  border-radius: 10px; box-shadow: 0 14px 32px rgba(30, 36, 90, .14);
}
.cit-lang__menu[hidden] { display: none; }
.cit-lang__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 7px; background: none;
  font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--cit-navy-2);
  text-align: left; cursor: pointer;
}
.cit-lang__menu button:hover, .cit-lang__menu button:focus-visible { background: var(--cit-purple-tint); color: var(--cit-purple-dark); outline: 0; }
.cit-lang__menu .is-active { color: var(--cit-purple-dark); }
.cit-lang__tick { width: 14px; height: 14px; margin-left: auto; color: var(--cit-purple); }

.cit-nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  margin-left: auto;
  background: none; border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-sm); cursor: pointer;
}
.cit-nav-toggle span { display: block; height: 2px; background: var(--cit-navy); border-radius: 2px; transition: transform var(--cit-t), opacity var(--cit-t); }
.cit-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cit-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cit-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Signed-in user chip in the public header */
.cit-userchip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  border-radius: var(--cit-r-sm);
  border: 1px solid var(--cit-line);
  background: var(--cit-white);
  color: var(--cit-navy);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.cit-userchip:hover { border-color: var(--cit-line-strong); color: var(--cit-navy); }
.cit-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cit-purple); color: #fff;
  font-size: 11px; font-weight: 700; overflow: hidden; flex: none;
}
.cit-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cit-avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.cit-avatar--xl { width: 56px; height: 56px; font-size: 18px; }

/* ------------------------------------------------------------------ */
/* 12. Hero patterns                                                   */
/* ------------------------------------------------------------------ */
.cit-hero {
  position: relative;
  background: #eef2fd;
  overflow: hidden;
  isolation: isolate;
}
.cit-hero__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.cit-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(248,250,255,.99) 0%, rgba(248,250,255,.97) 34%, rgba(248,250,255,.72) 52%, rgba(248,250,255,.22) 70%, rgba(248,250,255,0) 86%),
    linear-gradient(0deg, rgba(255,255,255,.92), transparent 34%);
}
.cit-hero--plain { background: var(--cit-pale); }
.cit-hero--plain::after { display: none; }
.cit-hero__inner { position: relative; padding-block: 62px 58px; }
.cit-hero__copy { position: relative; z-index: 1; max-width: 560px; }

.cit-hero h1, .cit-hero__title {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--cit-navy);
  margin: 0;
}
.cit-hero__title .cit-accent, .cit-hero h1 .cit-accent { color: var(--cit-purple); }

/* The homepage headline is the largest type on the site: the reference sets it
   at ~76px against a 1200px viewport, roughly 6.3vw. */
.cit-hero--home h1 { font-size: clamp(40px, 6.6vw, 84px); line-height: .96; letter-spacing: -.04em; }
.cit-hero--home .cit-hero__lead { font-size: clamp(18px, 1.75vw, 21px); line-height: 1.5; max-width: 520px; margin-top: 26px; }
.cit-hero--home .cit-hero__sub  { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.56; max-width: 500px; margin-top: 20px; }

.cit-hero__lead {
  font-size: 17px; line-height: 1.5;
  color: var(--cit-ink);
  max-width: 470px;
  margin: 20px 0 0;
}
.cit-hero__sub {
  font-size: 15px; line-height: 1.55;
  color: var(--cit-text);
  max-width: 470px;
  margin: 18px 0 0;
}
.cit-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cit-hero__chips { margin-top: 28px; }

/* Two-column hero: copy + visual */
.cit-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.cit-hero__visual { position: relative; }

/* Floating highlights card that sits over hero photography */
.cit-hero__card {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 300px;
  background: var(--cit-white);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-lg);
  padding: 18px;
  z-index: 2;
}
.cit-hero__card .cit-point + .cit-point { margin-top: 16px; }

/* Compact page hero for interior pages without photography */
.cit-pagehead {
  background: var(--cit-pale);
  border-bottom: 1px solid var(--cit-line);
  padding-block: 46px 42px;
}
.cit-pagehead h1 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.03em; margin: 0; line-height: 1.08; }
.cit-pagehead__sub { font-size: 15.5px; line-height: 1.6; color: var(--cit-text); max-width: 640px; margin: 14px 0 0; }
.cit-pagehead__actions { margin-top: 24px; }

/* ------------------------------------------------------------------ */
/* 13. Page furniture                                                  */
/* ------------------------------------------------------------------ */
/* Partner logo strip */
.cit-partners { background: var(--cit-white); border-block: 1px solid var(--cit-line); }
/* The reference sets the label on the same line as the logos, at the far left,
   with the marks distributed across the remaining width. */
.cit-partners__inner {
  padding-block: 26px;
  display: flex; align-items: center;
  gap: 34px;
}
.cit-partners__label {
  flex: none;
  text-align: left; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; line-height: 1.5;
  text-transform: uppercase; color: var(--cit-muted-2);
  margin: 0;
}
.cit-partners__logos {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
  color: #2f3457;
}
.cit-partners__logos li {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; line-height: 1; white-space: nowrap;
  opacity: .85;
  transition: color .22s ease, opacity .22s ease;
}
.cit-pl-microsoft { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.cit-pl-sophos    { font-size: 21px; letter-spacing: .04em; }
.cit-pl-acronis   { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.cit-pl-hpe       { font-size: 26px; font-weight: 800; letter-spacing: .13em; }
.cit-pl-3cx       { font-size: 26px; font-weight: 600; letter-spacing: .05em; }
.cit-pl-ubiquiti  { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.cit-pl-veeam     { font-size: 25px; font-weight: 800; letter-spacing: .03em; }
.cit-ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 18px; height: 18px; }
.cit-ms-grid i { background: #2f3457; opacity: .85; transition: background-color .22s ease, opacity .22s ease; }
.cit-ubnt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 25px; border-radius: 5px 5px 12px 12px;
  background: #2f3457; color: #fff; font-size: 14px; font-weight: 800;
  transition: background-color .22s ease;
}

/* Hovering a mark lifts it out of the muted strip and into the vendor's own
   brand colour. --cit-brand carries the colour so the wordmark, the Microsoft
   squares and the Ubiquiti badge all pick it up from one declaration. */
.cit-pl-microsoft { --cit-brand: #737373; }
.cit-pl-sophos    { --cit-brand: #0088ce; }
.cit-pl-acronis   { --cit-brand: #0071bc; }
.cit-pl-hpe       { --cit-brand: #01a982; }
.cit-pl-3cx       { --cit-brand: #00a650; }
.cit-pl-ubiquiti  { --cit-brand: #0559c9; }
.cit-pl-veeam     { --cit-brand: #00b336; }

.cit-partners__logos li:hover {
  color: var(--cit-brand);
  opacity: 1;
}
.cit-partners__logos li:hover .cit-ubnt { background: var(--cit-brand); }
.cit-partners__logos li:hover .cit-ms-grid i { opacity: 1; }
/* Microsoft is the one mark whose glyph is multicoloured rather than a single
   brand colour, so the four squares are coloured individually. */
.cit-pl-microsoft:hover .cit-ms-grid i:nth-child(1) { background: #f25022; }
.cit-pl-microsoft:hover .cit-ms-grid i:nth-child(2) { background: #7fba00; }
.cit-pl-microsoft:hover .cit-ms-grid i:nth-child(3) { background: #00a4ef; }
.cit-pl-microsoft:hover .cit-ms-grid i:nth-child(4) { background: #ffb900; }

@media (prefers-reduced-motion: reduce) {
  .cit-partners__logos li,
  .cit-partners__logos li .cit-ubnt,
  .cit-partners__logos li .cit-ms-grid i { transition: none; }
}
/* Below the desktop comp the label goes back above the marks so neither the
   label nor the logo row has to shrink. */
@media (max-width: 900px) {
  .cit-partners__inner { display: block; }
  .cit-partners__label { white-space: normal; text-align: center; margin-bottom: 18px; }
  .cit-partners__logos { justify-content: center; gap: 18px 28px; }
}

/* Metrics band */
.cit-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--cit-r-lg);
  background: var(--cit-pale-2);
  padding: 22px 0;
  margin: 0;
}
.cit-metrics > div { text-align: center; position: relative; padding: 4px 12px; }
.cit-metrics > div + div::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 1px; background: var(--cit-line-strong);
}
.cit-metrics dt { font-size: 27px; line-height: 34px; font-weight: 700; color: var(--cit-purple); letter-spacing: -.02em; }
.cit-metrics dd { margin: 6px 0 0; font-size: 13.5px; line-height: 20px; color: var(--cit-text); }

/* Numbered process steps */
.cit-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.cit-step { padding: 20px; display: flex; flex-direction: column; }
.cit-step__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cit-step__num {
  font-size: 13px; font-weight: 700; color: var(--cit-purple);
}
.cit-step h3, .cit-step__title { font-size: 15px; margin: 0; color: var(--cit-navy); font-weight: 700; }
.cit-step p { font-size: 13px; line-height: 1.55; margin: 0; color: var(--cit-text); }

/* Testimonials */
.cit-quote { display: flex; flex-direction: column; padding: 26px; min-height: 190px; }
.cit-quote blockquote { margin: 0; }
.cit-quote blockquote p { font-size: 15px; line-height: 1.6; color: var(--cit-text); margin: 0; }
.cit-quote__person { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 22px; }
.cit-quote__avatar { width: 58px; height: 58px; border-radius: 50%; flex: none; object-fit: cover; background: var(--cit-pale-2); }
.cit-quote__name { font-size: 14px; font-weight: 700; color: var(--cit-navy); display: block; }
.cit-quote__role { font-size: 13px; color: var(--cit-text); display: block; margin-top: 1px; }
.cit-stars { display: inline-flex; color: #ffb000; margin-top: 5px; }
.cit-stars .bi { font-size: 13px; }
.cit-stars svg { width: 15px; height: 15px; }

/* Dark photographic CTA banner */
.cit-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #16355b;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 290px;
}
.cit-banner__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.cit-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,27,63,.95) 0%, rgba(15,27,63,.9) 34%, rgba(15,27,63,.62) 58%, rgba(15,27,63,.34) 78%, rgba(15,27,63,.22) 100%),
    linear-gradient(180deg, rgba(15,27,63,.25), rgba(15,27,63,.05));
}
.cit-banner__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-block: 42px;
}
.cit-banner__copy { max-width: 740px; }
.cit-banner h2 { color: #fff; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 0; letter-spacing: -.025em; }
.cit-banner p { color: #dfe3f5; font-size: 15px; line-height: 1.6; margin: 12px 0 0; max-width: 480px; }
.cit-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* `.cit-banner p` also matches this paragraph and is the more specific of the
   two, so the hand-script overlay has to out-specify it or it renders as 15px
   grey body copy. Kept as one rule so the two can never drift apart again. */
.cit-banner p.cit-banner__hand {
  color: #fff;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.16;
  text-align: center;
  transform: rotate(-7deg);
  flex: none;
  align-self: center;
  max-width: none;
  margin: 0 10px 0 0;
  text-shadow: 0 2px 18px rgba(8, 16, 40, .85), 0 1px 3px rgba(8, 16, 40, .6);
}
.cit-banner--flat { background: var(--cit-navy); }
.cit-banner--flat::after { background: linear-gradient(90deg, rgba(9,14,56,.96), rgba(9,14,56,.7) 55%, rgba(9,14,56,.35)); }

/* Insight / article cards */
.cit-article { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.cit-article__thumb { display: block; aspect-ratio: 16 / 10; background: var(--cit-pale-2); overflow: hidden; }
.cit-article__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--cit-ease); }
.cit-article:hover .cit-article__thumb img { transform: scale(1.04); }
.cit-article__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.cit-article h3, .cit-article__title { font-size: 15px; line-height: 1.4; margin: 8px 0 0; font-weight: 700; color: var(--cit-navy); }
.cit-article h3 a { color: inherit; }
.cit-article h3 a:hover { color: var(--cit-purple); }
.cit-article__excerpt { font-size: 13px; line-height: 1.55; color: var(--cit-text); margin: 8px 0 0; }
.cit-article__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px;
  font-size: 12px; color: var(--cit-muted);
}
.cit-article__meta .cit-ico { width: 16px; height: 16px; color: var(--cit-purple); }

/* Horizontal article row */
.cit-article--row { flex-direction: row; gap: 16px; padding: 8px; align-items: stretch; }
.cit-article--row .cit-article__thumb { flex: none; width: 116px; aspect-ratio: auto; border-radius: var(--cit-r-md); }
.cit-article--row .cit-article__body { padding: 8px 8px 8px 0; }

/* Split teaser card — photograph flush to the card's left edge, copy beside it.
   This is the shape the homepage "latest insights" row uses in the reference. */
.cit-article--split { flex-direction: row; align-items: stretch; }
.cit-article--split .cit-article__thumb {
  flex: 0 0 38%;
  aspect-ratio: auto;
  border-radius: 0;
}
.cit-article--split .cit-article__body { padding: 20px 20px 18px; justify-content: flex-start; }
.cit-article--split .cit-article h3 { margin-top: 0; }

/* Category label: plain coloured caps rather than a chip, per the reference */
.cit-article__cat {
  display: block;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cit-purple);
  margin: 0 0 9px;
}
.cit-article__cat--green { color: var(--cit-green); }

@media (max-width: 1080px) {
  .cit-article--split .cit-article__thumb { flex-basis: 34%; }
  .cit-article--split .cit-article__body { padding: 16px 16px 14px; }
}
@media (max-width: 720px) {
  .cit-article--split { flex-direction: column; }
  .cit-article--split .cit-article__thumb { flex: none; width: 100%; aspect-ratio: 16 / 10; }
}

/* Newsletter band */
.cit-newsletter {
  background: var(--cit-purple-tint);
  border-radius: var(--cit-r-xl);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  align-items: center;
}
.cit-newsletter h2 { font-size: 22px; margin: 0; }
.cit-newsletter p { font-size: 14px; margin: 8px 0 0; color: var(--cit-text); }
.cit-newsletter__form { display: flex; gap: 10px; }
.cit-newsletter__form .cit-input-group { flex: 1; }

/* Floating health-check CTA (kept from the existing site, restyled) */
.cit-float-cta { position: fixed; right: 22px; bottom: 22px; z-index: 1020; }
.cit-float-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: var(--cit-r-pill);
  background: linear-gradient(110deg, #654bff, #624dff);
  color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(91, 76, 245, .35);
  transition: transform var(--cit-t), box-shadow var(--cit-t);
}
.cit-float-cta a:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(91, 76, 245, .45); color: #fff; }
.cit-float-cta .bi { font-size: 17px; }
.cit-float-cta small { display: block; font-weight: 400; opacity: .82; font-size: 11px; }

/* Cookie notice — a white card bottom-left so it never covers the floating
   health-check button. Shield + title, two equal-weight choices (Accept all /
   Reject optional, so refusing is as easy as agreeing), then the policy
   links. It slides up once caminho.js reveals it (.is-in) and back down on
   a choice. Colours are literal because the card is white in both themes. */
.cit-cookie {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 1040;
  width: min(420px, calc(100vw - 44px));
  padding: 24px 24px 18px;
  border: 1px solid rgba(11, 23, 56, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(5, 10, 35, .45), 0 2px 8px rgba(5, 10, 35, .12);
  color: #3b4566;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .35s cubic-bezier(.2, .7, .2, 1), transform .35s cubic-bezier(.2, .7, .2, 1);
}
.cit-cookie.is-in { opacity: 1; transform: none; }
.cit-cookie[hidden] { display: none !important; }
.cit-cookie .cit-cookie__title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 36px 12px 0;
  font-size: 18px; font-weight: 800; letter-spacing: -.01em;
  color: #0b1738;
}
.cit-cookie__ico { flex: none; color: #6a4cf5; }
.cit-cookie .cit-cookie__text { margin: 0; font-size: 14px; line-height: 1.55; color: #3b4566; }
.cit-cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cit-cookie__accept,
.cit-cookie__reject {
  padding: 11px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.cit-cookie__accept {
  border: 1.5px solid #6a4cf5;
  background: #6a4cf5;
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(106, 76, 245, .9);
}
.cit-cookie__accept:hover { background: #5a3ce6; border-color: #5a3ce6; transform: translateY(-1px); }
.cit-cookie__reject {
  border: 1.5px solid #c9cde0;
  background: #fff;
  color: #0b1738;
}
.cit-cookie__reject:hover { border-color: #0b1738; transform: translateY(-1px); }
.cit-cookie .cit-cookie__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin: 16px 0 0;
  font-size: 13px;
  color: #9aa1b8;
}
.cit-cookie__links a { color: #3b4566; text-decoration: none; }
.cit-cookie__links a:last-child { color: #6a4cf5; }
.cit-cookie__links a:hover { text-decoration: underline; }
.cit-cookie__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #0b1738;
  cursor: pointer;
  transition: background .18s;
}
.cit-cookie__close:hover { background: #f0f1f7; }
.cit-cookie button:focus-visible,
.cit-cookie a:focus-visible { outline: 2px solid #6a4cf5; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .cit-cookie, .cit-cookie__accept, .cit-cookie__reject { transition: none; }
}

/* ------------------------------------------------------------------ */
/* 14. Footer                                                          */
/* ------------------------------------------------------------------ */
.cit-footer { background: var(--cit-white); border-top: 1px solid var(--cit-line); padding-block: 42px 30px; }
.cit-footer__top {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 50px;
}
.cit-footer__brand p { font-size: 13px; line-height: 21px; color: var(--cit-text); margin: 20px 0 0; max-width: 300px; }
.cit-footer__social { display: flex; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.cit-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cit-pale-2); color: var(--cit-navy-2);
  transition: background var(--cit-t), color var(--cit-t);
}
.cit-footer__social a:hover { background: var(--cit-purple-soft); color: var(--cit-purple); }
.cit-footer__social .bi { font-size: 16px; }

.cit-footer__cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.cit-footer__cols h4 {
  font-size: 13px; font-weight: 700; color: var(--cit-navy);
  margin: 0 0 14px; letter-spacing: 0;
}
.cit-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.cit-footer__cols li + li { margin-top: 7px; }
.cit-footer__cols a { font-size: 12.5px; line-height: 19px; color: var(--cit-text); }
.cit-footer__cols a:hover { color: var(--cit-purple); }
.cit-footer__addr { font-size: 12.5px; line-height: 19px; color: var(--cit-text); margin: 10px 0 0; }

.cit-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--cit-line);
  font-size: 12px; color: var(--cit-text);
}
.cit-footer__legal { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.cit-footer__legal a { color: var(--cit-text); }
.cit-footer__legal a:hover { color: var(--cit-purple); }
.cit-footer__linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: inherit; }
.cit-footer__linkbtn:hover, .cit-footer__linkbtn:focus-visible { color: var(--cit-purple); }
.cit-footer__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--cit-muted);
}
.cit-footer__badge .bi { color: var(--cit-green); }

/* 2026 redesign: the marketing footer is deep navy on every public page,
   with the blue/purple wave illustration set low on the right. Colours are
   literal rather than tokens because the footer is navy in both themes. The
   portal footer (.cit-portal__foot) is a separate element and unaffected. */
.cit-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b1738;
  border-top: 0;
  padding-block: 64px 28px;
  color: rgba(255, 255, 255, .7);
}
.cit-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -30px;
  bottom: -6px;
  width: min(520px, 44%);
  aspect-ratio: 1100 / 203;
  background: url("/assets/img/home/footer-wave-1100.webp") no-repeat right bottom / contain;
  opacity: .42;
  pointer-events: none;
}
.cit-footer .cit-logo__name { color: #fff; }
.cit-footer .cit-logo__tag  { color: #b9b2ff; }
.cit-footer__brand p,
.cit-footer__addr { color: rgba(255, 255, 255, .68); }
.cit-footer__social a { background: rgba(255, 255, 255, .08); color: #fff; }
.cit-footer__social a:hover { background: #6245f5; color: #fff; }
.cit-footer .cit-footer__contact a { color: rgba(255, 255, 255, .82); }
.cit-footer .cit-footer__contact a:hover { color: #fff; }
.cit-footer .cit-footer__contact .bi { color: #a99bff; }
.cit-footer__cols h4 { color: #fff; }
.cit-footer__cols a { color: rgba(255, 255, 255, .68); }
.cit-footer__cols a:hover { color: #fff; }
.cit-footer__bottom { border-top-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }
.cit-footer__bottom strong { color: #fff; }
.cit-footer__legal a { color: rgba(255, 255, 255, .7); }
.cit-footer__legal a:hover { color: #fff; }
.cit-footer a:focus-visible { outline-color: #a99bff; }

/* ------------------------------------------------------------------ */
/* 15. Bootstrap re-skin                                               */
/*     Bootstrap is still loaded for grid/modal/dropdown/collapse.      */
/*     Everything it paints is brought onto the CaminhoIT palette so    */
/*     untouched legacy markup still looks like the new design.         */
/* ------------------------------------------------------------------ */
:root {
  --bs-body-font-family: var(--cit-font);
  --bs-body-font-size: 15px;
  --bs-body-color: var(--cit-text);
  --bs-body-bg: var(--cit-white);
  --bs-heading-color: var(--cit-navy);
  --bs-primary: #6550ff;
  --bs-primary-rgb: 101, 80, 255;
  --bs-link-color: #6550ff;
  --bs-link-color-rgb: 101, 80, 255;
  --bs-link-hover-color: #4a3ce4;
  --bs-border-color: #e8ebf5;
  --bs-border-radius: 12px;
  --bs-border-radius-sm: 9px;
  --bs-border-radius-lg: 16px;
  --bs-secondary-color: var(--cit-muted);
  --bs-emphasis-color: var(--cit-navy);
  --bs-success: #22b883;
  --bs-danger: #ef4444;
  --bs-warning: #f59e0b;
  --bs-info: #2f6fed;
}

.btn {
  --bs-btn-font-family: var(--cit-font);
  --bs-btn-font-size: 14px;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--cit-r-sm);
  --bs-btn-padding-y: .62rem;
  --bs-btn-padding-x: 1.15rem;
  letter-spacing: -.005em;
  transition: background-color var(--cit-t), color var(--cit-t), border-color var(--cit-t), box-shadow var(--cit-t);
}
.btn-lg { --bs-btn-font-size: 14px; --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.5rem; --bs-btn-border-radius: var(--cit-r-md); }
.btn-sm { --bs-btn-font-size: 13px; --bs-btn-padding-y: .5rem; --bs-btn-padding-x: .9rem; }

.btn-primary {
  --bs-btn-bg: #6550ff; --bs-btn-border-color: #6550ff;
  --bs-btn-hover-bg: #4a3ce4; --bs-btn-hover-border-color: #4a3ce4;
  --bs-btn-active-bg: #4436cf; --bs-btn-active-border-color: #4436cf;
  --bs-btn-disabled-bg: #6550ff; --bs-btn-disabled-border-color: #6550ff;
  background-image: linear-gradient(110deg, #654bff, #624dff);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-image: none; }
.btn-outline-primary {
  --bs-btn-color: #6550ff; --bs-btn-border-color: #b4adfb;
  --bs-btn-hover-bg: #6550ff; --bs-btn-hover-border-color: #6550ff; --bs-btn-hover-color: #fff;
}
.btn-secondary {
  --bs-btn-bg: var(--cit-white); --bs-btn-border-color: var(--cit-line); --bs-btn-color: var(--cit-navy-2);
  --bs-btn-hover-bg: var(--cit-pale); --bs-btn-hover-border-color: var(--cit-line-strong); --bs-btn-hover-color: var(--cit-navy);
}
.btn-light {
  --bs-btn-bg: var(--cit-pale); --bs-btn-border-color: var(--cit-line); --bs-btn-color: var(--cit-navy-2);
  --bs-btn-hover-bg: var(--cit-pale-2); --bs-btn-hover-border-color: var(--cit-line-strong);
}
.btn-dark { --bs-btn-bg: var(--cit-navy); --bs-btn-border-color: var(--cit-navy); --bs-btn-hover-bg: var(--cit-navy-2); --bs-btn-hover-border-color: var(--cit-navy-2); }
.btn-success { --bs-btn-bg: #22b883; --bs-btn-border-color: #22b883; --bs-btn-hover-bg: #12805a; --bs-btn-hover-border-color: #12805a; }
.btn-danger  { --bs-btn-bg: #ef4444; --bs-btn-border-color: #ef4444; --bs-btn-hover-bg: #b42318; --bs-btn-hover-border-color: #b42318; }
.btn-warning { --bs-btn-bg: #f59e0b; --bs-btn-border-color: #f59e0b; --bs-btn-color: #fff; --bs-btn-hover-bg: #b45309; --bs-btn-hover-border-color: #b45309; --bs-btn-hover-color: #fff; }
.btn-info    { --bs-btn-bg: #2f6fed; --bs-btn-border-color: #2f6fed; --bs-btn-color: #fff; --bs-btn-hover-bg: #1f56c4; --bs-btn-hover-border-color: #1f56c4; --bs-btn-hover-color: #fff; }

.card {
  --bs-card-bg: var(--cit-surface);
  --bs-card-border-color: var(--cit-line);
  --bs-card-border-radius: var(--cit-r-lg);
  --bs-card-inner-border-radius: calc(var(--cit-r-lg) - 1px);
  --bs-card-spacer-y: 1.25rem;
  --bs-card-spacer-x: 1.35rem;
  --bs-card-cap-bg: transparent;
  box-shadow: var(--cit-shadow-sm);
}
.card-header { border-bottom-color: var(--cit-line); font-weight: 700; color: var(--cit-navy); }
.card-footer { border-top-color: var(--cit-line); background: var(--cit-pale); }
.card-title { color: var(--cit-navy); font-weight: 700; letter-spacing: -.02em; }

.form-control, .form-select {
  font-size: 14px;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--cit-navy);
  background-color: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-sm);
  transition: border-color var(--cit-t), box-shadow var(--cit-t);
}
.form-control:focus, .form-select:focus {
  border-color: var(--cit-purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 15%, transparent);
}
.form-control::placeholder { color: var(--cit-muted-2); }
.form-control:disabled, .form-select:disabled { background-color: var(--cit-pale); color: var(--cit-muted); }
.form-label { font-size: 13px; font-weight: 600; color: var(--cit-navy); margin-bottom: 7px; }
.form-text { font-size: 12px; color: var(--cit-muted); }
.form-check-input { border-color: var(--cit-line-strong); }
.form-check-input:checked { background-color: var(--cit-purple); border-color: var(--cit-purple); }
.form-check-input:focus { border-color: var(--cit-purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 15%, transparent); }
.form-check-label { font-size: 13.5px; color: var(--cit-ink); }
.input-group-text { background: var(--cit-pale); border-color: var(--cit-line); color: var(--cit-muted); font-size: 13px; }
.invalid-feedback { font-size: 12.5px; color: var(--cit-red-ink); }
.is-invalid { border-color: var(--cit-red) !important; }

.table {
  --bs-table-color: var(--cit-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--cit-line);
  --bs-table-hover-bg: var(--cit-pale);
  --bs-table-striped-bg: var(--cit-pale);
  font-size: 13.5px;
  vertical-align: middle;
}
.table > thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cit-muted);
  background: var(--cit-pale);
  border-bottom-color: var(--cit-line);
  padding: 12px 16px;
  white-space: nowrap;
}
.table > tbody td, .table > tbody th { padding: 13px 16px; border-bottom-color: var(--cit-line); }

.badge {
  font-weight: 600;
  font-size: 11.5px;
  padding: .42em .8em;
  border-radius: var(--cit-r-pill);
  letter-spacing: 0;
}
.badge.bg-primary   { background: var(--cit-purple-soft) !important; color: var(--cit-purple-dark) !important; }
.badge.bg-success   { background: var(--cit-green-soft) !important;  color: var(--cit-green-ink) !important; }
.badge.bg-danger    { background: var(--cit-red-soft) !important;    color: var(--cit-red-ink) !important; }
.badge.bg-warning   { background: var(--cit-orange-soft) !important; color: var(--cit-orange-ink) !important; }
.badge.bg-info      { background: var(--cit-blue-soft) !important;   color: var(--cit-blue) !important; }
.badge.bg-secondary { background: var(--cit-pale-2) !important;      color: var(--cit-muted) !important; }
.badge.bg-light     { background: var(--cit-pale) !important;        color: var(--cit-text) !important; }
.badge.bg-dark      { background: var(--cit-navy) !important;        color: #fff !important; }

.alert {
  border-radius: var(--cit-r-md);
  border-width: 1px;
  font-size: 14px;
  padding: 14px 16px;
}
.alert-primary { background: var(--cit-purple-soft); border-color: transparent;                                   color: var(--cit-purple-dark); }
.alert-success { background: var(--cit-green-soft);  border-color: color-mix(in srgb, var(--cit-green) 28%, transparent);  color: var(--cit-green-ink); }
.alert-danger  { background: var(--cit-red-soft);    border-color: color-mix(in srgb, var(--cit-red) 28%, transparent);    color: var(--cit-red-ink); }
.alert-warning { background: var(--cit-orange-soft); border-color: color-mix(in srgb, var(--cit-orange) 32%, transparent); color: var(--cit-orange-ink); }
.alert-info    { background: var(--cit-blue-soft);   border-color: color-mix(in srgb, var(--cit-blue) 25%, transparent);   color: var(--cit-blue); }
.alert-secondary, .alert-light { background: var(--cit-pale); border-color: var(--cit-line); color: var(--cit-ink); }

.dropdown-menu {
  --bs-dropdown-bg: var(--cit-white);
  --bs-dropdown-border-color: var(--cit-line);
  --bs-dropdown-border-radius: var(--cit-r-lg);
  --bs-dropdown-link-color: var(--cit-navy);
  --bs-dropdown-link-hover-bg: var(--cit-purple-tint);
  --bs-dropdown-link-hover-color: var(--cit-purple-dark);
  --bs-dropdown-link-active-bg: var(--cit-purple-soft);
  --bs-dropdown-link-active-color: var(--cit-purple-dark);
  --bs-dropdown-font-size: 13.5px;
  --bs-dropdown-padding-y: .5rem;
  --bs-dropdown-item-padding-y: .5rem;
  --bs-dropdown-item-padding-x: .8rem;
  box-shadow: var(--cit-shadow-lg);
  padding-inline: .45rem;
}
.dropdown-item { border-radius: var(--cit-r-sm); font-weight: 600; }
.dropdown-divider { border-color: var(--cit-line); }

.modal-content {
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-xl);
  box-shadow: var(--cit-shadow-lg);
  background: var(--cit-surface);
}
.modal-header { border-bottom-color: var(--cit-line); padding: 20px 24px; }
.modal-title { font-size: 17px; font-weight: 700; color: var(--cit-navy); }
.modal-body { padding: 22px 24px; }
.modal-footer { border-top-color: var(--cit-line); padding: 16px 24px; }

.nav-tabs { border-bottom-color: var(--cit-line); gap: 4px; }
.nav-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent;
  color: var(--cit-muted); font-size: 13.5px; font-weight: 600;
  padding: 10px 14px; border-radius: 0;
}
.nav-tabs .nav-link:hover { color: var(--cit-navy); border-bottom-color: var(--cit-line-strong); }
.nav-tabs .nav-link.active { color: var(--cit-purple); border-bottom-color: var(--cit-purple); background: transparent; }
.nav-pills .nav-link { border-radius: var(--cit-r-pill); font-size: 13px; font-weight: 600; color: var(--cit-navy-2); }
.nav-pills .nav-link.active { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }

.accordion {
  --bs-accordion-bg: var(--cit-surface);
  --bs-accordion-border-color: var(--cit-line);
  --bs-accordion-border-radius: var(--cit-r-md);
  --bs-accordion-btn-color: var(--cit-navy);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 15%, transparent);
  --bs-accordion-active-bg: var(--cit-purple-tint);
  --bs-accordion-active-color: var(--cit-purple-dark);
  --bs-accordion-btn-padding-y: 1rem;
}
.accordion-button { font-size: 15px; font-weight: 600; }
.accordion-body { font-size: 14px; color: var(--cit-text); }

.pagination {
  --bs-pagination-color: var(--cit-navy-2);
  --bs-pagination-bg: var(--cit-white);
  --bs-pagination-border-color: var(--cit-line);
  --bs-pagination-border-radius: var(--cit-r-sm);
  --bs-pagination-hover-color: var(--cit-purple);
  --bs-pagination-hover-bg: var(--cit-purple-tint);
  --bs-pagination-hover-border-color: var(--cit-line);
  --bs-pagination-active-bg: var(--cit-purple);
  --bs-pagination-active-border-color: var(--cit-purple);
  --bs-pagination-font-size: 13px;
  gap: 6px;
}
.page-link { font-weight: 600; }

.breadcrumb { --bs-breadcrumb-font-size: 12.5px; --bs-breadcrumb-divider-color: var(--cit-line-strong); --bs-breadcrumb-item-active-color: var(--cit-navy); }
.breadcrumb-item a { color: var(--cit-muted); }
.breadcrumb-item a:hover { color: var(--cit-purple); }

.progress { --bs-progress-bg: var(--cit-pale-2); --bs-progress-bar-bg: var(--cit-purple); --bs-progress-border-radius: var(--cit-r-pill); height: 8px; }
.list-group { --bs-list-group-border-color: var(--cit-line); --bs-list-group-border-radius: var(--cit-r-md); --bs-list-group-color: var(--cit-text); --bs-list-group-bg: var(--cit-surface); }
.text-muted { color: var(--cit-muted) !important; }
.bg-light { background-color: var(--cit-pale) !important; }
.border { border-color: var(--cit-line) !important; }
.text-primary { color: var(--cit-purple) !important; }
.bg-primary { background-color: var(--cit-purple) !important; }
.rounded, .rounded-3 { border-radius: var(--cit-r-md) !important; }
.rounded-4 { border-radius: var(--cit-r-lg) !important; }
.shadow-sm { box-shadow: var(--cit-shadow-sm) !important; }
.shadow { box-shadow: var(--cit-shadow) !important; }
.shadow-lg { box-shadow: var(--cit-shadow-lg) !important; }

/* Legacy classes kept alive on the new palette (old Test11.css surface) */
.c-nav { background: var(--cit-header-bg); }
.c-brand-text { font-weight: 800; letter-spacing: .05em; color: var(--cit-navy); }
.c-btn-primary, .c-btn-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 16px; border-radius: var(--cit-r-sm);
  font-size: 13px; font-weight: 600; border: 2px solid transparent;
  background: linear-gradient(110deg, #654bff, #624dff); color: #fff;
}
.c-btn-primary:hover, .c-btn-nav:hover { background: var(--cit-purple-dark); color: #fff; }
.c-btn-secondary, .c-btn-outline-light, .c-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 16px; border-radius: var(--cit-r-sm);
  font-size: 13px; font-weight: 600;
  background: var(--cit-white); color: var(--cit-purple); border: 2px solid #b4adfb;
}
.c-btn-secondary:hover, .c-btn-outline-light:hover, .c-btn-ghost:hover { border-color: var(--cit-purple); color: var(--cit-purple-dark); }
.section { padding-block: 54px; }
.section-soft { background: var(--cit-pale); }
.section-title { font-size: 30px; line-height: 1.14; letter-spacing: -.025em; color: var(--cit-navy); }
.section-subtitle { font-size: 15px; line-height: 1.55; color: var(--cit-text); }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--cit-purple); }
.panel, .panel-light, .panel-soft {
  background: var(--cit-surface); border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg); box-shadow: var(--cit-shadow-sm);
}
.panel-gradient { background: var(--cit-purple-tint); border: 1px solid transparent; border-radius: var(--cit-r-lg); }
.panel-title { font-size: 16px; font-weight: 700; color: var(--cit-navy); }
.panel-text { font-size: 14px; color: var(--cit-text); }

/* ------------------------------------------------------------------ */
/* 16. Utilities                                                       */
/* ------------------------------------------------------------------ */
.cit-mt-0 { margin-top: 0 !important; }
.cit-mt-1 { margin-top: 8px !important; }
.cit-mt-2 { margin-top: 16px !important; }
.cit-mt-3 { margin-top: 24px !important; }
.cit-mt-4 { margin-top: 32px !important; }
.cit-mt-5 { margin-top: 44px !important; }
.cit-mb-0 { margin-bottom: 0 !important; }
.cit-mb-2 { margin-bottom: 16px !important; }
.cit-mb-3 { margin-bottom: 24px !important; }
.cit-mb-4 { margin-bottom: 32px !important; }
.cit-center { text-align: center; }
.cit-muted { color: var(--cit-muted); }
.cit-ink { color: var(--cit-navy); }
.cit-accent { color: var(--cit-purple); }
.cit-nowrap { white-space: nowrap; }
.cit-flex { display: flex; }
.cit-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cit-gap-1 { gap: 8px; }
.cit-gap-2 { gap: 16px; }
.cit-gap-3 { gap: 24px; }
.cit-stack > * + * { margin-top: 16px; }
.cit-ico { width: 20px; height: 20px; flex: none; }

/* Prose block for long-form legal / article copy */
.cit-prose { font-size: 15px; line-height: 1.72; color: var(--cit-text); max-width: 760px; }
.cit-prose h2 { font-size: 24px; margin: 40px 0 14px; }
.cit-prose h3 { font-size: 18px; margin: 30px 0 10px; }
.cit-prose h4 { font-size: 15px; margin: 24px 0 8px; }
.cit-prose > :first-child { margin-top: 0; }
.cit-prose p { margin: 0 0 16px; }
.cit-prose ul, .cit-prose ol { margin: 0 0 18px; padding-left: 22px; }
.cit-prose li { margin-bottom: 8px; }
.cit-prose a { text-decoration: underline; text-underline-offset: 2px; }
.cit-prose blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-left: 3px solid var(--cit-purple);
  background: var(--cit-purple-tint);
  border-radius: 0 var(--cit-r-md) var(--cit-r-md) 0;
  color: var(--cit-ink);
}
.cit-prose img { border-radius: var(--cit-r-md); }
.cit-prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.cit-prose th, .cit-prose td { padding: 10px 14px; border: 1px solid var(--cit-line); text-align: left; }
.cit-prose th { background: var(--cit-pale); color: var(--cit-navy); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* 17. Responsive                                                      */
/* ------------------------------------------------------------------ */
/* The desktop header (logo + six links + language + two buttons) needs about
   1085px of row in English and 1155px in Portuguese, so it is tightened in two
   steps before the mobile menu takes over at 1080px. Widths were measured in
   both languages; re-measure if a nav item or button label is added. */
@media (max-width: 1360px) {
  .cit-nav__list { gap: 15px; margin-left: 20px; }
  .cit-nav__tail { gap: 8px; }
  .cit-lang { margin-right: 2px; }
}
@media (min-width: 1081px) and (max-width: 1360px) {
  .cit-header__inner { gap: 16px; }
  .cit-nav__tail .cit-btn--primary .cit-ico { display: none; }
}
/* Small laptops: no slogan, flags without their UK / PT labels, slimmer buttons. */
@media (min-width: 1081px) and (max-width: 1240px) {
  .cit-header__inner { gap: 12px; }
  .cit-header .cit-logo__tag { display: none; }
  .cit-nav__list { gap: 12px; margin-left: 12px; }
  .cit-lang__code { display: none; }
  .cit-nav__tail { gap: 6px; }
  .cit-nav__tail .cit-btn { padding-inline: 11px; }
}

@media (max-width: 1080px) {
  :root { --cit-gutter: 28px; }

  .cit-nav-toggle { display: inline-flex; }
  .cit-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: var(--cit-header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px var(--cit-gutter) 26px;
    background: var(--cit-white);
    border-bottom: 1px solid var(--cit-line);
    box-shadow: 0 20px 40px rgba(30, 36, 90, .1);
    max-height: calc(100vh - var(--cit-header-h));
    overflow-y: auto;
  }
  .cit-nav.is-open { display: flex; }
  .cit-nav__list { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .cit-nav__link { font-size: 15px; padding: 11px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--cit-line); }
  .cit-nav__link.is-active { border-bottom-color: var(--cit-line); }
  .cit-nav__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 0 8px 8px; min-width: 0;
    display: none;
  }
  .cit-nav__item.is-open > .cit-nav__panel { display: block; }
  .cit-nav__item:hover > .cit-nav__panel { display: none; }
  .cit-nav__item.is-open:hover > .cit-nav__panel { display: block; }
  .cit-nav__panel a { padding: 8px 10px; font-size: 13.5px; }
  .cit-nav__tail { margin-left: 0; flex-wrap: wrap; }
  .cit-lang { margin-right: auto; }
  /* The open mobile menu scrolls, so the list opens upward into it and from the left. */
  .cit-nav .cit-lang__menu { top: auto; bottom: calc(100% + 6px); right: auto; left: 0; }

  .cit-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .cit-hero__copy { max-width: none; }
  .cit-hero__inner { padding-block: 46px 44px; }
  .cit-hero__card { position: static; transform: none; width: 100%; margin-top: 18px; }
  .cit-hero::after {
    background: linear-gradient(180deg, rgba(244,247,255,.96) 0%, rgba(244,247,255,.9) 55%, rgba(244,247,255,.62) 100%);
  }

  /* minmax(0, 1fr), not a bare 1fr: a bare track takes its automatic
     min-content minimum, so an unbreakable child -- a nowrap status pill in
     a panel, say -- pushes the column wider than the viewport and the whole
     page scrolls sideways. */
  .cit-split, .cit-split--sidebar { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .cit-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cit-grid--5, .cit-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .cit-metrics > div:nth-child(3)::before { display: none; }
  .cit-banner__inner { flex-direction: column; align-items: flex-start; }
  .cit-banner__hand { align-self: flex-end; margin-top: 8px; }
  .cit-newsletter { grid-template-columns: 1fr; gap: 20px; }
  .cit-footer__top { grid-template-columns: 1fr; gap: 34px; }
  .cit-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .cit-float-cta { display: none; }
}

@media (max-width: 860px) {
  .cit-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --cit-gutter: 20px; --cit-header-h: 72px; }

  body { font-size: 15px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }

  .cit-section { padding-block: 40px; }
  .cit-section--loose { padding-block: 52px; }
  .cit-section-head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "sub" "link"; }
  .cit-section-head > .cit-link { justify-self: start; margin-top: 14px; }

  .cit-hero__inner { padding-block: 36px 38px; }
  .cit-hero h1, .cit-hero__title { font-size: clamp(28px, 8vw, 36px); }
  .cit-hero--home h1 { font-size: clamp(32px, 9vw, 42px); }
  .cit-hero__lead { font-size: 16px; }
  .cit-hero__sub { font-size: 14.5px; }
  .cit-hero__actions .cit-btn { width: 100%; }
  .cit-chips { gap: 10px 18px; }

  .cit-grid, .cit-grid--2, .cit-grid--3, .cit-grid--4, .cit-grid--5 { grid-template-columns: 1fr; }
  .cit-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-steps { grid-template-columns: 1fr; }
  .cit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 0; }
  .cit-metrics > div + div::before { display: none; }
  .cit-metrics dt { font-size: 23px; }
  .cit-metrics dd { font-size: 12.5px; }

  .cit-card { padding: 20px; border-radius: var(--cit-r-lg); }
  .cit-card--pad-lg { padding: 22px; }
  .cit-panel__head { padding: 16px 18px; }
  .cit-panel__body { padding: 18px; }

  .cit-form-grid { grid-template-columns: 1fr; }
  .cit-article--row { flex-direction: row; gap: 12px; }
  .cit-article--row .cit-article__thumb { width: 92px; }

  .cit-banner { min-height: 0; }
  .cit-banner__inner { padding-block: 34px; }
  .cit-banner__actions .cit-btn { width: 100%; }
  .cit-banner__hand { align-self: center; margin: 18px auto 0; font-size: 23px; }

  .cit-newsletter { padding: 24px 20px; }
  .cit-newsletter__form { flex-direction: column; }
  .cit-newsletter__form .cit-btn { width: 100%; }

  .cit-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .cit-footer__bottom { flex-direction: column; align-items: flex-start; }
  .cit-footer__legal { gap: 14px 20px; }

  /* A bottom sheet on phones. */
  .cit-cookie { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 20px 18px 16px; border-radius: 16px; }
  .cit-pagehead { padding-block: 34px 32px; }
}

@media (max-width: 420px) {
  .cit-grid--6 { grid-template-columns: 1fr; }
  .cit-metrics { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* 18. Reduced motion / print                                          */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .cit-header, .cit-footer, .cit-float-cta, .cit-cookie, .cit-nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .cit-card, .cit-panel { box-shadow: none; border-color: #ccc; }
}

/* ------------------------------------------------------------------ */
/* 19. Scroll reveal + nav scroll-lock                                 */
/* ------------------------------------------------------------------ */
.cit-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--cit-ease), transform .55s var(--cit-ease);
}
.cit-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cit-reveal { opacity: 1; transform: none; }
}

body.cit-nav-open { overflow: hidden; }
@media (min-width: 1081px) { body.cit-nav-open { overflow: auto; } }

/* ------------------------------------------------------------------ */
/* 20. Homepage-specific pieces                                        */
/*     Kept in the design system rather than in a per-page <style>      */
/*     block so the score card can be reused by /health-check.          */
/* ------------------------------------------------------------------ */
.cit-home-hero { position: relative; min-height: 620px; padding-block: 76px 62px; }
.cit-home-hero__map {
  position: absolute;
  right: 0; top: 8px;
  width: 470px; height: 560px;
  pointer-events: none;
}
.cit-home-hero__map img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.cit-home-hero__hand {
  position: absolute;
  right: 0; bottom: -6px;
  width: 268px;
  font-size: 36px;
  text-align: center;
  transform: rotate(-11deg);
  white-space: nowrap;
}
.cit-home-hero__swoosh {
  position: absolute; left: 52px; bottom: -14px;
  width: 172px; height: 15px; color: var(--cit-purple);
}

/* IT Health Score card (homepage + health check results) */
.cit-score { padding: 28px; border-radius: var(--cit-r-xl); box-shadow: var(--cit-shadow-md); }
.cit-score__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cit-score__gauge { text-align: center; }
.cit-score__gauge h3 { font-size: 16px; line-height: 22px; text-align: left; margin: 0; }
.cit-donut { position: relative; width: 176px; height: 176px; margin: 22px auto 0; }
.cit-donut svg { width: 100%; height: 100%; }
.cit-donut__value {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cit-donut__value strong { font-size: 44px; font-weight: 800; color: var(--cit-navy); line-height: 1; letter-spacing: -.03em; }
.cit-donut__value span { font-size: 12px; color: var(--cit-muted-2); margin-top: 6px; line-height: 1; }
.cit-score__verdict { font-size: 14px; font-weight: 700; color: var(--cit-green-ink); margin: 14px 0 0; }
.cit-score__note { font-size: 12px; line-height: 18px; color: var(--cit-muted); margin: 6px 0 0; }

.cit-score__list { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.cit-score__list li {
  display: flex; align-items: center; gap: 10px;
  height: 45px;
  border-bottom: 1px solid var(--cit-line);
}
.cit-score__list li:last-child { border-bottom: 0; }
.cit-score__icon { display: inline-flex; flex: none; }
.cit-score__label { flex: 1; min-width: 0; font-size: 11.5px; color: var(--cit-muted); }
.cit-score__num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.cit-score__callout {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding: 18px;
  border-radius: var(--cit-r-lg);
  background: var(--cit-purple-soft);
  min-height: 92px;
  color: inherit;
  transition: background var(--cit-t);
}
.cit-score__callout:hover { background: #e4e1fd; color: inherit; }
.cit-score__callout > span:first-child { display: flex; flex-direction: column; }
.cit-score__callout strong { font-size: 17px; line-height: 24px; color: var(--cit-navy); letter-spacing: -.02em; }
.cit-score__callout strong + span { font-size: 13.5px; line-height: 20px; color: var(--cit-text); margin-top: 4px; max-width: 300px; }
.cit-score__callout-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: var(--cit-r-sm);
  background: var(--cit-purple); color: #fff;
}
.cit-score__callout:hover .cit-score__callout-btn { background: var(--cit-purple-dark); }

.cit-why-head { gap: 60px; align-items: start; }

@media (max-width: 1250px) {
  .cit-home-hero__map { width: 410px; height: 510px; }
  .cit-home-hero__hand { font-size: 32px; width: 238px; }
  .cit-home-hero__swoosh { width: 152px; left: 44px; }
}

@media (max-width: 1080px) {
  .cit-home-hero { min-height: 0; padding-block: 48px 44px; }
  .cit-home-hero__map {
    position: relative; right: auto; top: auto;
    width: 100%; max-width: 440px; height: 480px;
    margin: 28px auto 0;
  }
  .cit-home-hero__hand { right: 0; bottom: 4px; }
  .cit-score__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cit-score { max-width: 620px; }
}

@media (max-width: 767px) {
  .cit-home-hero__map { height: 380px; margin-top: 20px; }
  .cit-home-hero__hand { font-size: 24px; width: 180px; bottom: 0; }
  .cit-home-hero__swoosh { width: 116px; left: 30px; bottom: -9px; }
  .cit-score { padding: 20px; }
  .cit-score__top { grid-template-columns: 1fr; gap: 12px; }
  .cit-score__gauge h3 { text-align: center; }
  .cit-score__callout { flex-direction: row; min-height: 0; }
  .cit-why-head { gap: 20px; }
}

/* ------------------------------------------------------------------ */
/* 21. Service-page archetype                                          */
/* ------------------------------------------------------------------ */
.cit-svc-hero .cit-hero__inner { padding-block: 54px 50px; }

/* The service hero is the page's display type. Measured off
   `vision/managed-it.png`: the headline's cap height is 1.69x the section
   heading's and the lead's is 0.615x, which against the built 36.6px section
   heading puts the headline at ~62px and the lead at ~22px. (The comp is not
   dimensionally 1:1 with the build — see docs/REDESIGN_PROGRESS.md — so it is read
   for internal ratios and anchored to the section heading, exactly as the
   homepage pass was.) It sits below the homepage hero's 79px, as in the
   references. The `.cit-hero__title` class on the markup is what exempts it
   from the §26 type-scale guard, which otherwise caps it at 42px — i.e.
   *smaller than the section headings below it*. */
/* Guarded at the same breakpoint the design system uses for hero type, so
   phones keep the shared `.cit-hero h1` mobile scale in §22 rather than
   having this rule win on source order — the homepage hero behaves the
   same way. */
@media (min-width: 768px) {
  .cit-svc-hero h1, .cit-svc-hero .cit-hero__title {
    font-size: clamp(36px, 4.8vw, 58px);
    line-height: 1.04;
    letter-spacing: -.038em;
  }
  .cit-svc-hero .cit-hero__lead {
    font-size: clamp(18px, 1.85vw, 22px);
    line-height: 1.5;
    max-width: 30em;
    margin-top: 24px;
  }
}
/* The comp is a far wider render than 1200px, so its headline measure cannot
   be copied proportionally: at the type size above, a proportional column
   would break every one of the five headlines a line later than the design.
   The copy column is given the extra room instead. It costs the visual
   column nothing in the photographic layout, where the photograph is
   positioned against the section and bleeds off the page rather than sitting
   in the grid; only the floating card rides in this column. */
.cit-svc-hero .cit-hero__grid { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); }
.cit-svc-hero .cit-hero__copy { max-width: 660px; }

.cit-svc-hero__visual { position: relative; padding-right: 90px; }
.cit-svc-hero__visual .cit-media { box-shadow: var(--cit-shadow-md); }
.cit-svc-hero__card {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 250px;
  padding: 16px;
  box-shadow: var(--cit-shadow-lg);
}
.cit-svc-hero__card .cit-point__title { font-size: 12.5px; }
.cit-svc-hero__card .cit-point__text { font-size: 11.5px; line-height: 1.4; }
.cit-svc-hero__card .cit-pointlist { gap: 14px; }

/* Numbered steps: connector arrows between the cards on wide screens */
.cit-steps { counter-reset: cit-step; list-style: none; margin: 0; padding: 0; }
.cit-step { position: relative; }
.cit-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding-inline: 6px;
  border-radius: var(--cit-r-pill);
  background: var(--cit-purple-soft); color: var(--cit-purple-dark);
  font-size: 11px; font-weight: 700;
}
@media (min-width: 1081px) {
  .cit-steps > .cit-step + .cit-step::before {
    content: "";
    position: absolute;
    left: -12px; top: 50%;
    width: 8px; height: 8px;
    border-top: 2px solid var(--cit-line-strong);
    border-right: 2px solid var(--cit-line-strong);
    transform: translateY(-50%) rotate(45deg);
  }
  /* The connector points from the previous card to this one, so it must not
     be drawn on a card that starts a new row -- there is nothing to its left
     to point from. Four across is the default grid; --3 overrides it. */
  .cit-steps > .cit-step:nth-child(4n + 1)::before { content: none; }
  .cit-steps--3 > .cit-step:nth-child(4n + 1)::before { content: ""; }
  .cit-steps--3 > .cit-step:nth-child(3n + 1)::before { content: none; }
}

/* A process longer than four stages reads better in threes: nine stages fill
   three whole rows instead of leaving a single card alone on the last one. */
.cit-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .cit-steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .cit-steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* Live-status style panel used on service pages */
.cit-status-panel { padding: 22px; }
.cit-status-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: center;
}
.cit-status-panel .cit-row { padding: 9px 0; font-size: 13px; }
.cit-status-panel .cit-status { font-size: 11px; padding: 4px 9px; }
.cit-uptime {
  text-align: center;
  background: var(--cit-pale);
  border-radius: var(--cit-r-md);
  padding: 16px 12px;
}
.cit-donut--sm { width: 118px; height: 118px; margin: 0 auto; }
.cit-donut--sm .cit-donut__value strong { font-size: 22px; }
.cit-donut--sm .cit-donut__value span { font-size: 10px; margin-top: 2px; }
.cit-uptime__label { font-size: 13px; font-weight: 700; color: var(--cit-green-ink); margin: 12px 0 0; }
.cit-uptime__note { font-size: 11.5px; color: var(--cit-muted); margin: 4px 0 0; }

.cit-inline-quote {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 20px 0 0; padding: 14px 16px;
  background: var(--cit-pale);
  border-radius: var(--cit-r-md);
}
.cit-inline-quote > .cit-ico { color: var(--cit-purple); margin-top: 2px; }
.cit-inline-quote blockquote { margin: 0; }
.cit-inline-quote blockquote p { font-size: 13.5px; line-height: 1.5; color: var(--cit-ink); margin: 0; }
.cit-inline-quote figcaption { font-size: 11.5px; color: var(--cit-muted); margin-top: 4px; }

@media (max-width: 1080px) {
  /* The generic `.cit-hero__grid { grid-template-columns: 1fr }` collapse in
     the §19 block above is outranked by the unscoped `.cit-svc-hero
     .cit-hero__grid` two-column rule, so the service heroes stayed two
     columns all the way down and squeezed the floating card to ~130px.
     Repeat the collapse at the specificity that wins. */
  .cit-svc-hero .cit-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .cit-svc-hero__visual { padding-right: 0; }
  .cit-svc-hero__card { position: static; transform: none; width: 100%; margin-top: 16px; }
  .cit-status-panel__grid { grid-template-columns: 1fr; }
  .cit-uptime { display: flex; align-items: center; gap: 16px; text-align: left; }
  .cit-donut--sm { margin: 0; flex: none; }
  .cit-uptime__label { margin-top: 0; }
}

/* ------------------------------------------------------------------ */
/* 22. Form extras: file dropzone, numbered list, submit row           */
/*     The ct2-* names are kept because contact.php's file-picker JS    */
/*     builds rows with those classes at runtime.                      */
/* ------------------------------------------------------------------ */
.ct2-form-body { display: block; }

.ct2-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 18px;
  border: 1.5px dashed var(--cit-line-strong);
  border-radius: var(--cit-r-md);
  background: var(--cit-pale);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--cit-t), background var(--cit-t);
}
.ct2-dropzone:hover, .ct2-dropzone.is-dragover {
  border-color: var(--cit-purple);
  background: var(--cit-purple-tint);
}
.ct2-dropzone-icon { color: var(--cit-purple); font-size: 24px; line-height: 1; }
.ct2-dropzone-text { font-size: 13.5px; color: var(--cit-ink); font-weight: 600; }
.ct2-dropzone-link { color: var(--cit-purple); text-decoration: underline; }
.ct2-dropzone-hint { font-size: 12px; color: var(--cit-muted); }
.ct2-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ct2-files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ct2-file-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-sm);
  background: var(--cit-white);
  font-size: 13px;
}
.ct2-file-row .bi { color: var(--cit-purple); }
.ct2-file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cit-navy); font-weight: 500; }
.ct2-file-size { color: var(--cit-muted); font-size: 12px; white-space: nowrap; }
.ct2-file-remove {
  border: 0; background: transparent; color: var(--cit-muted);
  width: 26px; height: 26px; border-radius: var(--cit-r-xs);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ct2-file-remove:hover { background: var(--cit-red-soft); color: var(--cit-red-ink); }

.ct2-submit-area {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--cit-line);
}
.ct2-submit-hint { font-size: 12.5px; color: var(--cit-muted); max-width: 420px; }
.ct2-submit-hint .bi { color: var(--cit-green); }

/* Honeypot field — visually hidden but reachable by bots that ignore CSS */
.ct2-honeypot, .ct2-hp { position: absolute !important; left: -9999px !important; }

/* Numbered "how it works" list */
.cit-numlist { counter-reset: cit-n; list-style: none; margin: 0; padding: 0; }
.cit-numlist li {
  position: relative;
  padding-left: 34px;
  min-height: 26px;
}
.cit-numlist li + li { margin-top: 14px; }
.cit-numlist li::before {
  counter-increment: cit-n;
  content: counter(cit-n);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--cit-purple-soft);
  color: var(--cit-purple-dark);
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cit-numlist span { display: block; font-size: 13.5px; font-weight: 700; color: var(--cit-navy); }
.cit-numlist small { display: block; font-size: 12.5px; line-height: 1.5; color: var(--cit-text); margin-top: 2px; }

.cit-point__title--lg { font-size: 16px !important; }
a.cit-point { color: inherit; }
a.cit-point:hover .cit-point__title { color: var(--cit-purple); }

/* ================================================================== */
/* Contact page                                                        */
/* Built to the approved "Let's talk about your IT" comp: hero with a   */
/* right-bleeding photograph, handwritten overlay and a floating info   */
/* card; a two-column enquiry form; and a tinted "common reasons" band. */
/* ================================================================== */

/* --- Hero ---------------------------------------------------------- */
.cit-hero--contact { background: #eaeefc; }

/* The comp shows more of the photograph than the default hero fade, and
   the copy side is a touch more lavender than the site-wide near-white. */
.cit-hero--contact::after {
  background:
    linear-gradient(90deg,
      rgba(238,241,253,.99)  0%,
      rgba(240,243,254,.96) 22%,
      rgba(242,245,254,.74) 34%,
      rgba(244,247,255,.26) 52%,
      rgba(246,248,255,0)   68%),
    linear-gradient(0deg, rgba(255,255,255,.55), transparent 40%);
}

.cit-contact-hero {
  position: relative;
  /* The comp opens the hero close under the header — roughly half the gap the
     shared hero uses — and the copy block is tighter with it. */
  padding-block: 32px 48px;
}
.cit-contact-hero .cit-hero__copy { max-width: 560px; }
/* Guarded at the design system's own hero breakpoint so phones keep the §22
   mobile scale instead of this rule winning on specificity. `.cit-hero__title`
   on the markup is what exempts it from the §26 type-scale cap. */
@media (min-width: 768px) {
  .cit-contact-hero h1 { font-size: clamp(34px, 3.9vw, 54px); line-height: 1.04; }
}
.cit-contact-hero .cit-hero__lead { max-width: 480px; margin-top: 10px; }

/* Three reassurance points under the lead, icon tile + two lines of copy */
.cit-contact-hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}
.cit-contact-hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--cit-ink);
}
.cit-contact-hero__points .cit-icon-box { flex: none; }

/* Handwritten note sitting over the photograph */
.cit-contact-hero__hand {
  position: absolute;
  left: 52%;
  top: 34px;
  margin: 0;
  width: 260px;
  font-size: 30px;
  line-height: 1.14;
  transform: rotate(-4deg);
  pointer-events: none;
  z-index: 1;
}
.cit-contact-hero__swoosh {
  position: absolute;
  left: 4px; bottom: -13px;
  width: 176px; height: 14px;
  color: var(--cit-purple);
}

/* Floating info card, anchored to the container's right edge */
.cit-contact-hero__card {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  padding: 18px;
  border-color: transparent;
  box-shadow: var(--cit-shadow-lg);
  z-index: 2;
}
.cit-contact-hero__card .cit-pointlist { gap: 16px; }

/* --- Form ---------------------------------------------------------- */
/* The comp runs the form card and the sidebar almost shoulder to shoulder —
   a tight column gap, matched by the gap between the sidebar's own cards. */
/* The comp runs the hero, the form band and the reassurance strip almost
   shoulder to shoulder vertically — nothing like the shared section rhythm. */
.cit-contact-main { padding-block: 20px 16px; }
.cit-reasons-section { padding-top: 16px; }

.cit-contact-split { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.cit-contact-split > aside.cit-stack > * + * { margin-top: 14px; }
.cit-contact-form.cit-card--pad-lg { padding: 28px; }
/* The sidebar panel heading sits a step below the form's own h2, as drawn.
   Three classes so it clears the legacy type-scale cap. */
.cit-contact-main .cit-contact-split .cit-panel__title { font-size: 22px !important; }
/* "Get in touch" is the largest type on the page after the hero headline —
   the comp sets it around 35px against a 1200px viewport. */
.cit-contact-main .cit-contact-split .cit-contact-form > h2 {
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.cit-contact-form__intro {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cit-text);
  margin: 8px 0 26px;
}
.cit-contact-form .cit-form-grid { gap: 0 20px; }
.cit-label__opt { color: var(--cit-muted); font-weight: 500; }
.cit-fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.cit-fieldset > legend { padding: 0; }

/* Phone field with a dialling-code picker fused to its left edge */
.cit-phone {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--cit-line-strong);
  border-radius: var(--cit-r-md);
  background: var(--cit-white);
  transition: border-color var(--cit-t), box-shadow var(--cit-t);
}
.cit-phone:hover { border-color: var(--cit-line-strong); }
.cit-phone:focus-within {
  border-color: var(--cit-purple);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 15%, transparent);
}
.cit-phone__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 10px 0 12px;
  border: 0;
  border-right: 1px solid var(--cit-line);
  background: transparent;
  color: var(--cit-muted);
  cursor: pointer;
  border-radius: var(--cit-r-md) 0 0 var(--cit-r-md);
}
.cit-phone__toggle:hover { background: var(--cit-pale); }
.cit-phone__flag { display: block; border-radius: 2px; }
.cit-phone__caret { width: 14px; height: 14px; }
.cit-phone__input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 var(--cit-r-md) var(--cit-r-md) 0 !important;
  flex: 1;
  min-width: 0;
}
.cit-phone__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 236px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-md);
  box-shadow: var(--cit-shadow-md);
}
.cit-phone__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: var(--cit-r-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cit-navy);
  cursor: pointer;
  text-align: left;
}
.cit-phone__menu button:hover { background: var(--cit-purple-soft); }
.cit-phone__menu button[aria-selected="true"] { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }
.cit-phone__menu svg { flex: none; border-radius: 2px; }
.cit-phone__code { margin-left: auto; color: var(--cit-muted); font-weight: 500; }

/* "How did you hear about us?" radio row */
.cit-radio-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 4px;
}
.cit-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--cit-ink);
  min-width: 0;
}
.cit-radio input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cit-radio__dot {
  flex: none;
  width: 19px; height: 19px;
  border: 1.5px solid var(--cit-line-strong);
  border-radius: 50%;
  background: var(--cit-white);
  position: relative;
  transition: border-color var(--cit-t), box-shadow var(--cit-t);
}
.cit-radio:hover .cit-radio__dot { border-color: var(--cit-purple); }
.cit-radio input:focus-visible + .cit-radio__dot {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 22%, transparent);
}
.cit-radio input:checked + .cit-radio__dot { border-color: var(--cit-purple); border-width: 2px; }
.cit-radio input:checked + .cit-radio__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--cit-purple);
}
.cit-radio__label { overflow: hidden; text-overflow: ellipsis; }

/* Consent checkbox */
.cit-consent { margin-top: 6px; }
.cit-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cit-text);
}
.cit-checkbox input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cit-checkbox__box {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 1px;
  border: 1.5px solid var(--cit-line-strong);
  border-radius: 5px;
  background: var(--cit-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background var(--cit-t), border-color var(--cit-t), color var(--cit-t);
}
.cit-checkbox__box .cit-ico { width: 12px; height: 12px; }
.cit-checkbox:hover .cit-checkbox__box { border-color: var(--cit-purple); }
.cit-checkbox input:focus-visible + .cit-checkbox__box {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cit-purple) 22%, transparent);
}
.cit-checkbox input:checked + .cit-checkbox__box {
  background: var(--cit-purple);
  border-color: var(--cit-purple);
  color: #fff;
}
.cit-checkbox__label a { color: var(--cit-purple); font-weight: 600; }

.cit-captcha-fallback {
  padding: 16px 20px;
  background: var(--cit-purple-tint);
  border: 1px solid color-mix(in srgb, var(--cit-purple) 22%, transparent);
  border-radius: var(--cit-r-md);
}
.cit-captcha-fallback .cit-input { max-width: 220px; }

/* Submit row: button left, response-time note right */
.cit-contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cit-contact-form__note {
  margin: 0;
  font-size: 13px;
  color: var(--cit-muted);
}

/* --- Sidebar photograph -------------------------------------------- */
.cit-contact-photo {
  position: relative;
  margin: 0;
  border-radius: var(--cit-r-xl);
  overflow: hidden;
  background: var(--cit-pale-2);
  aspect-ratio: 4 / 3;
}
.cit-contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 32% center; display: block; }
.cit-contact-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 34% 0;
  background: linear-gradient(180deg, rgba(9, 14, 56, .78), rgba(9, 14, 56, .38) 55%, rgba(9, 14, 56, 0));
  pointer-events: none;
}
.cit-contact-photo__hand {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 200px;
  font-size: 27px;
  line-height: 1.14;
  text-align: right;
  color: #fff;
  transform: rotate(-4deg);
  text-shadow: 0 2px 18px rgba(8, 16, 40, .8), 0 1px 3px rgba(8, 16, 40, .55);
  pointer-events: none;
}
.cit-contact-photo__swoosh {
  position: absolute;
  right: 2px; bottom: -12px;
  width: 148px; height: 13px;
  color: #a99bff;
}

/* --- "Common reasons" band ----------------------------------------- */
.cit-reasons {
  background: var(--cit-purple-tint);
  border-radius: var(--cit-r-xl);
  padding: 34px 36px 36px;
}
/* The comp draws this strip's heading a step below a section heading —
   level with the sidebar panel titles, not with "Get in touch". `.cit-h2`
   on the markup is what keeps §26 from pushing it back up to 28.8px. */
.cit-reasons__title {
  font-size: 22px;
  letter-spacing: -.025em;
  margin: 0 0 26px;
}
.cit-reasons__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 26px;
}
.cit-reasons .cit-icon-box { background: #e8e5fd !important; }

.cit-label .required, .cit-req { color: var(--cit-purple); font-weight: 700; }

/* --- Responsive ---------------------------------------------------- */
@media (max-width: 1140px) {
  .cit-contact-hero__hand { left: 50%; width: 232px; font-size: 26px; }
  .cit-contact-hero__swoosh { width: 152px; }
  .cit-contact-hero__card { width: 274px; }
  .cit-contact-split { gap: 32px; }
}

@media (max-width: 1080px) {
  /* These two re-state the site-wide 1080px rules: the contact overrides above
     sit later in the file, so without them they would win inside this query. */
  .cit-contact-split { grid-template-columns: 1fr; gap: 34px; }
  .cit-hero--contact::after {
    background: linear-gradient(180deg, rgba(244,247,255,.96) 0%, rgba(244,247,255,.9) 55%, rgba(244,247,255,.62) 100%);
  }

  .cit-contact-hero { padding-block: 44px 40px; }
  .cit-contact-hero .cit-hero__copy { max-width: none; }
  .cit-contact-hero__hand { display: none; }
  .cit-contact-hero__card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 26px;
  }
  .cit-contact-hero__points { max-width: none; }
  /* Stacked, the sidebar photo runs the full column width - a 4:3 crop would
     eat half a screen, so it letterboxes instead. */
  .cit-contact-photo { aspect-ratio: 16 / 9; }
  .cit-reasons__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cit-radio-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cit-contact-hero__points { grid-template-columns: 1fr; gap: 14px; }
  .cit-contact-form__submit { flex-direction: column; align-items: stretch; }
  .cit-contact-form__submit .cit-btn { width: 100%; }
  .cit-contact-form__note { text-align: center; }
  .cit-reasons { padding: 26px 22px 28px; }
  .cit-reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-contact-photo__hand { font-size: 22px; width: 170px; }
  .cit-contact-photo__swoosh { width: 128px; }
}

@media (max-width: 560px) {
  .cit-contact-form .cit-form-grid { grid-template-columns: 1fr; }
  .cit-radio-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-reasons__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* 23. Legacy page shell components                                    */
/*     Many interior pages share one hero/snapshot markup pattern from  */
/*     the previous theme. Rather than editing that markup on every     */
/*     page, the classes are redefined here on the new design system,   */
/*     so those pages adopt the CaminhoIT look automatically.           */
/* ------------------------------------------------------------------ */
header.hero, .hero:not(.cit-hero) {
  position: relative;
  background: var(--cit-pale);
  border-bottom: 1px solid var(--cit-line);
  padding-block: 50px 46px;
  color: var(--cit-text);
  overflow: hidden;
}
.hero:not(.cit-hero) > .container { position: relative; z-index: 2; }
.hero-gradient, .panel-gradient.hero-gradient { display: none !important; }

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cit-purple);
  background: var(--cit-purple-soft);
  padding: 7px 12px;
  border-radius: var(--cit-r-xs);
  margin-bottom: 16px;
}
.hero-eyebrow .bi, .hero-eyebrow i { display: none; }

.hero-title, .hero-title-enhanced {
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--cit-navy) !important;
  margin: 0 0 4px;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.hero-title .bi, .hero-title-enhanced .bi { display: none; }
.hero-title-line { display: block; }
.hero-title-highlight {
  position: relative;
  color: var(--cit-purple);
  background: none !important;
  -webkit-text-fill-color: var(--cit-purple) !important;
}
.hero-title-highlight-tail { display: none; }

.hero-subtitle {
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: var(--cit-text) !important;
  max-width: 560px;
  margin: 14px 0 0 !important;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 22px;
  font-size: 12.5px; color: var(--cit-ink);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .bi { color: var(--cit-purple); font-size: 14px; }

/* "At a glance" panel that sat opposite the legacy heroes */
.snapshot-card {
  background: var(--cit-white) !important;
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-md);
  overflow: hidden;
  color: var(--cit-text);
}
.snapshot-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--cit-line);
  background: var(--cit-pale);
}
.snapshot-label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--cit-purple);
}
.snapshot-body { padding: 18px 20px; }
.snapshot-list { display: flex; flex-direction: column; gap: 14px; }
.snapshot-list > div[style*="border-top"] { border-top-color: var(--cit-line) !important; }
.snapshot-metric-main {
  font-size: 20px !important; font-weight: 700; color: var(--cit-navy);
  letter-spacing: -.02em; line-height: 1.2;
}
.snapshot-metric-sub {
  font-size: 12.5px; line-height: 1.45; color: var(--cit-text); opacity: 1 !important; margin-top: 3px;
}
.snapshot-list [style*="rgba(255, 255, 255"],
.snapshot-list [style*="rgba(255,255,255"] {
  background: var(--cit-purple-soft) !important;
  color: var(--cit-purple-dark) !important;
}

/* Legacy section scaffolding used by the interior pages */
.section-header { margin-bottom: 26px; }
.section-bottom-pad { padding-bottom: 54px; }
.pill-card, .policy-card {
  background: var(--cit-surface);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-sm);
  padding: 20px;
}
.pill-title { font-size: 15px; font-weight: 700; color: var(--cit-navy); }
.pill-text { font-size: 13.5px; color: var(--cit-text); }
.pill-icon, .feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--cit-purple-soft) !important;
  color: var(--cit-purple) !important;
  box-shadow: none !important;
}
.pill-icon .bi, .feature-icon .bi { font-size: 20px; color: inherit; }
.feature-card {
  background: var(--cit-surface) !important;
  border: 1px solid var(--cit-line) !important;
  border-radius: var(--cit-r-lg) !important;
  box-shadow: var(--cit-shadow-sm) !important;
}
.feature-title { font-size: 15px !important; color: var(--cit-navy) !important; }
.feature-text { font-size: 13.5px !important; color: var(--cit-text) !important; }
.feature-tag {
  background: var(--cit-purple-soft) !important;
  color: var(--cit-purple-dark) !important;
  border-color: transparent !important;
}
.fade-in { opacity: 1; transform: none; }   /* legacy reveal: never leave content hidden */
.fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 767px) {
  header.hero, .hero:not(.cit-hero) { padding-block: 34px 32px; }
  .hero-cta .btn, .hero-cta .cit-btn { width: 100%; }
}

/* Interior pages each named their own icon tile (ab2-value-icon,
   co2-framework-icon, su2-card-icon …) and several set a one-off gradient
   inline. Normalise them all onto the single CaminhoIT icon tile so the
   colour story stays consistent across the site. */
[class$="-value-icon"], [class$="-industry-icon"], [class$="-reason-icon"],
[class$="-service-icon"], [class$="-framework-icon"], [class$="-pillar-icon"],
[class$="-feature-icon"], [class$="-card-icon"], [class$="-benefit-icon"],
[class$="-trust-icon"], [class$="-provider-icon"], [class$="-clause-icon"],
[class$="-item-icon"], [class$="-nap-icon"], [class$="-op-icon"],
[class$="-info-icon"], [class$="-step-icon"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: var(--cit-purple-soft) !important;
  background-image: none !important;
  color: var(--cit-purple) !important;
  box-shadow: none !important;
  flex: none;
}
[class$="-value-icon"] .bi, [class$="-industry-icon"] .bi, [class$="-reason-icon"] .bi,
[class$="-service-icon"] .bi, [class$="-framework-icon"] .bi, [class$="-pillar-icon"] .bi,
[class$="-feature-icon"] .bi, [class$="-card-icon"] .bi, [class$="-benefit-icon"] .bi,
[class$="-trust-icon"] .bi, [class$="-provider-icon"] .bi, [class$="-clause-icon"] .bi,
[class$="-item-icon"] .bi, [class$="-nap-icon"] .bi, [class$="-op-icon"] .bi,
[class$="-info-icon"] .bi, [class$="-step-icon"] .bi {
  font-size: 20px !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}
/* Keep the two that legitimately carry their own treatment */
.cit-icon-box { background: var(--cit-purple-soft) !important; }
.cit-icon-box--green { background: var(--cit-green-soft) !important; color: var(--cit-green) !important; }
.ct2-dropzone-icon { width: auto !important; height: auto !important; background: none !important; }

/* ------------------------------------------------------------------ */
/* 24. Authentication screens                                          */
/*     Split layout: a coastal brand panel beside a focused sign-in     */
/*     card, with the help panel and trust strip beneath it.            */
/* ------------------------------------------------------------------ */
.cit-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(900px, calc(100vh - var(--cit-header-h)));
  align-items: stretch;
}

/* --- Left: brand panel over photography ---------------------------- */
.cit-auth__brand {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(24px, 3.5vw, 48px);
  background: var(--cit-pale);
}
.cit-auth__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% bottom;
}
/* Veils the photograph so the copy stays legible. Heaviest over the headline,
   thinnest across the middle so the sunset reads, then lifting again over the
   water at the foot of the panel, which is otherwise dark enough to fight the
   handwritten note. */
.cit-auth__brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(248,250,255,.94) 0%,
      rgba(248,250,255,.85) 22%,
      rgba(248,250,255,.63) 46%,
      rgba(248,250,255,.55) 64%,
      rgba(248,250,255,.58) 84%,
      rgba(248,250,255,.66) 100%),
    linear-gradient(90deg, rgba(248,250,255,.40) 0%, rgba(248,250,255,.05) 60%, rgba(248,250,255,0) 100%);
}
.cit-auth__brand-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 442px;
}
.cit-auth__eyebrow {
  background: rgba(255, 255, 255, .82);
  border-radius: var(--cit-r-pill);
  padding: 7px 14px;
  margin-bottom: 18px;
}
.cit-auth__heading {
  font-size: clamp(31px, 3.65vw, 44px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--cit-navy);
  margin: 0;
}
.cit-auth__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cit-text);
  margin: 18px 0 0;
  max-width: 400px;
}

.cit-auth__points { margin-top: 30px; gap: 22px; width: 100%; }
.cit-auth__points .cit-point { gap: 18px; align-items: center; }
.cit-auth__points .cit-icon-box {
  border-radius: var(--cit-r-lg);
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 2px 10px rgba(30, 36, 90, .06);
}
.cit-auth__points .cit-point__title { font-size: 17px; line-height: 1.3; }
.cit-auth__points .cit-point__text { font-size: 15px; line-height: 1.5; margin-top: 3px; }

.cit-auth__hand {
  position: relative;
  align-self: flex-end;
  margin: 40px -6% 0 0;
  font-size: 30px;
  transform: rotate(-7deg);
}
.cit-auth__swoosh {
  position: absolute;
  right: 2px; bottom: -15px;
  width: 152px; height: 14px;
  color: var(--cit-purple);
}

/* --- Right: sign-in panel ------------------------------------------ */
.cit-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(24px, 3vw, 48px);
  background: var(--cit-pale);
}
.cit-auth__panel-inner { width: 100%; max-width: 536px; }

.cit-auth__card { padding: 32px; }
.cit-auth__title {
  font-size: clamp(28px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin: 0;
}
.cit-auth__lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--cit-text);
  margin: 10px 0 0;
}
.cit-auth__alert { margin-top: 22px; }
.cit-auth__choose {
  font-size: 15px;
  font-weight: 700;
  color: var(--cit-navy);
  margin: 28px 0 12px;
}
.cit-auth__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cit-text);
  text-align: center;
  margin: 22px 0 0;
}

/* Provider buttons. Each provider mark stays on a white field, as the
   Microsoft and Google brand guidelines require. */
.cit-oauth { display: flex; flex-direction: column; gap: 12px; }
.cit-oauth__btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  height: 52px; padding: 0 48px;
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-md);
  background: var(--cit-white);
  color: var(--cit-navy);
  font-size: 15px; font-weight: 600;
  transition: border-color var(--cit-t), box-shadow var(--cit-t), transform var(--cit-t);
}
.cit-oauth__btn:hover { border-color: #b4adfb; box-shadow: var(--cit-shadow); color: var(--cit-navy); }
.cit-oauth__icon { width: 22px; height: 22px; flex: none; }
.cit-oauth__text { flex: none; min-width: 0; }
.cit-oauth__spinner {
  display: none;
  position: absolute;
  right: 18px; top: 50%; margin-top: -9px;
  width: 18px; height: 18px;
  border: 2px solid var(--cit-line-strong);
  border-top-color: var(--cit-purple);
  border-radius: 50%;
  animation: cit-spin .7s linear infinite;
}
.cit-oauth__btn.is-loading { pointer-events: none; opacity: .75; }
.cit-oauth__btn.is-loading .cit-oauth__spinner { display: block; }
@keyframes cit-spin { to { transform: rotate(360deg); } }

/* Hover: the button lifts, a soft brand-tinted light follows the pointer
   (--mx/--my, set in login.php), a strip of the provider's colours runs
   along the bottom and the mark does its own move. The field stays near
   white so the marks keep the clear background their guidelines ask for. */
.cit-oauth__btn { overflow: hidden; isolation: isolate; --tint: rgba(91, 75, 245, .10); --edge: #b4adfb; }
.cit-oauth__btn[data-provider="google"]    { --tint: rgba(66, 133, 244, .11); --edge: #8ab4f8;
  --strip: linear-gradient(90deg, #4285f4 0 25%, #ea4335 25% 50%, #fbbc05 50% 75%, #34a853 75%); }
.cit-oauth__btn[data-provider="microsoft"] { --tint: rgba(0, 164, 239, .10); --edge: #7fcff5;
  --strip: linear-gradient(90deg, #f25022 0 25%, #7fba00 25% 50%, #00a4ef 50% 75%, #ffb900 75%); }
.cit-oauth__btn[data-provider="discord"]   { --tint: rgba(88, 101, 242, .12); --edge: #a5adf8;
  --strip: linear-gradient(90deg, #5865f2, #8891f7); }
.cit-oauth__btn::before,
.cit-oauth__btn::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.cit-oauth__btn::before {
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--tint), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.cit-oauth__btn::after {
  left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--strip, var(--cit-purple));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.cit-oauth__btn:hover,
.cit-oauth__btn:focus-visible { border-color: var(--edge); transform: translateY(-2px); }
.cit-oauth__btn:hover::before,
.cit-oauth__btn:focus-visible::before { opacity: 1; }
.cit-oauth__btn:hover::after,
.cit-oauth__btn:focus-visible::after { transform: scaleX(1); }
.cit-oauth__btn:active { transform: translateY(0); }
.cit-oauth__text { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.cit-oauth__btn:hover .cit-oauth__text { transform: translateX(2px); }

/* Google: one full turn with a little overshoot. */
.cit-oauth__btn[data-provider="google"]:hover .cit-oauth__icon,
.cit-oauth__btn[data-provider="google"]:focus-visible .cit-oauth__icon { animation: cit-oauth-turn .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cit-oauth-turn { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Microsoft: the four squares step apart with a little pop (no rotation,
   so each colour stays in its own corner). */
.cit-oauth__icon .cit-ms { transform-box: fill-box; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.cit-oauth__btn[data-provider="microsoft"]:hover .cit-oauth__icon,
.cit-oauth__btn[data-provider="microsoft"]:focus-visible .cit-oauth__icon { animation: cit-oauth-pop .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cit-oauth-pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cit-oauth__btn:hover .cit-ms--tl, .cit-oauth__btn:focus-visible .cit-ms--tl { transform: translate(-1.6px, -1.6px) scale(.9); }
.cit-oauth__btn:hover .cit-ms--tr, .cit-oauth__btn:focus-visible .cit-ms--tr { transform: translate(1.6px, -1.6px) scale(.9); }
.cit-oauth__btn:hover .cit-ms--bl, .cit-oauth__btn:focus-visible .cit-ms--bl { transform: translate(-1.6px, 1.6px) scale(.9); }
.cit-oauth__btn:hover .cit-ms--br, .cit-oauth__btn:focus-visible .cit-ms--br { transform: translate(1.6px, 1.6px) scale(.9); }

/* Discord: a happy little bounce. */
.cit-oauth__btn[data-provider="discord"]:hover .cit-oauth__icon,
.cit-oauth__btn[data-provider="discord"]:focus-visible .cit-oauth__icon { animation: cit-oauth-bounce .6s ease; }
@keyframes cit-oauth-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-4px) rotate(-8deg); }
  60% { transform: translateY(0) rotate(6deg); }
  80% { transform: translateY(-1px) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cit-oauth__btn, .cit-oauth__btn::after, .cit-oauth__text,
  .cit-oauth__icon, .cit-oauth__icon .cit-ms { transition: none !important; animation: none !important; }
  .cit-oauth__btn:hover, .cit-oauth__btn:hover .cit-oauth__text,
  .cit-oauth__btn:hover .cit-oauth__icon, .cit-oauth__btn:hover .cit-ms { transform: none !important; }
}

.cit-auth__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0;
  font-size: 14px;
  color: var(--cit-muted);
}
.cit-auth__or::before,
.cit-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--cit-line); }

/* Developer sign-in: rendered only on a development server before its
   deadline (includes/dev-login.php). */
.cit-auth__dev { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.cit-auth__dev label { font-size: 14px; font-weight: 600; color: var(--cit-navy); white-space: nowrap; }
.cit-auth__dev input {
  flex: 1; min-width: 0; height: 44px; padding: 0 12px;
  border: 1px solid var(--cit-line); border-radius: var(--cit-r-md);
  font-size: 15px; color: var(--cit-navy); background: var(--cit-white);
}
.cit-auth__dev-note { font-size: 13px; color: var(--cit-muted); margin: 8px 0 0; }

/* --- Help panel and trust strip ------------------------------------ */
.cit-auth__help {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin-top: 18px;
}
.cit-auth__help-body { flex: 1; min-width: 0; }
.cit-auth__help-title { font-size: 16px; font-weight: 700; color: var(--cit-navy); line-height: 1.35; margin: 0; }
.cit-auth__help-text { font-size: 14px; line-height: 1.45; color: var(--cit-text); margin: 2px 0 0; }
.cit-auth__help-btn { flex: none; height: 46px; padding-inline: 20px; border-radius: var(--cit-r-md); }

.cit-auth__trust {
  display: grid; grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 10px; list-style: none; margin: 22px 0 0; padding: 0;
}
.cit-auth__trust li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cit-auth__trust .cit-icon-box { width: 30px; height: 30px; border-radius: 9px; }
.cit-auth__trust .cit-icon-box svg { width: 16px; height: 16px; }
.cit-auth__trust strong { display: block; font-size: 13px; font-weight: 700; color: var(--cit-navy); line-height: 1.3; }
.cit-auth__trust small { display: block; font-size: 12.5px; color: var(--cit-muted); line-height: 1.35; margin-top: 2px; }

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 1180px) {
  .cit-auth__points { gap: 18px; }
  .cit-auth__points .cit-point__text { font-size: 14.5px; }
  .cit-auth__trust strong { font-size: 12.5px; }
  .cit-auth__trust small { font-size: 12px; }
}
@media (max-width: 1080px) {
  .cit-auth { grid-template-columns: 1fr; min-height: 0; }
  .cit-auth__brand { padding: 44px var(--cit-gutter); justify-content: flex-start; }
  .cit-auth__photo { object-position: center bottom; }
  .cit-auth__brand-inner { max-width: 620px; margin: 0 auto; }
  .cit-auth__panel { padding: 36px var(--cit-gutter) 52px; }
  .cit-auth__panel-inner { max-width: 620px; margin: 0 auto; }
  .cit-auth__hand { display: none; }
}
@media (max-width: 767px) {
  .cit-auth__brand { padding: 34px var(--cit-gutter); }
  .cit-auth__heading { font-size: 30px; }
  .cit-auth__sub { font-size: 15px; }
  .cit-auth__points { gap: 16px; }
  .cit-auth__points .cit-point { gap: 14px; }
  .cit-auth__points .cit-icon-box { width: 46px; height: 46px; border-radius: 13px; }
  .cit-auth__points .cit-icon-box svg { width: 22px; height: 22px; }
  .cit-auth__points .cit-point__title { font-size: 15.5px; }
  .cit-auth__points .cit-point__text { font-size: 14px; }
  .cit-auth__card { padding: 24px 20px; }
  .cit-auth__title { font-size: 27px; }
  .cit-auth__lead { font-size: 15px; }
  .cit-oauth__btn { padding: 0 16px; font-size: 14px; }
  .cit-auth__help { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cit-auth__help-btn { width: 100%; }
  .cit-auth__trust { grid-template-columns: 1fr; justify-content: stretch; gap: 12px; }
  .cit-auth__trust strong { font-size: 13.5px; }
  .cit-auth__trust small { font-size: 13px; }
}

/* Bootstrap's .container steps up to 1320px on large screens, which put the
   legacy pages on a different measure to the redesigned ones. Pin it to the
   CaminhoIT content width so every page shares one column. */
.container {
  width: min(var(--cit-content), 100% - (var(--cit-gutter) * 2)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
.container-fluid { padding-inline: var(--cit-gutter); }
.container-wide, .container.container--wide {
  width: min(1360px, 100% - (var(--cit-gutter) * 2)) !important;
}

/* ------------------------------------------------------------------ */
/* 25. Insights / blog                                                 */
/* ------------------------------------------------------------------ */
/* The design runs the category row straight on the white body with no rules
   above or below it — the pale hero band above is the only separation — and
   sets a taller pill than the compact filters used inside panels. */
.cit-filterbar { background: var(--cit-white); }
.cit-filterbar .cit-filters { padding-block: 10px 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
.cit-filterbar .cit-filter { flex: none; white-space: nowrap; height: 52px; padding-inline: 20px; gap: 10px; }

/* The listing sits close under the category row, and the subscribe strip
   close under the grid, as in the reference. */
.cit-insights-list { padding-block: 12px 20px; }
.cit-insights-subscribe { padding-block: 18px 40px; }

/* Article thumbnails run wider than the design-system default on this grid. */
.cit-insights-grid .cit-article__thumb { aspect-ratio: 16 / 9; }

.cit-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background: var(--cit-surface);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-xl);
  box-shadow: var(--cit-shadow);
  overflow: hidden;
}
.cit-lead-card__media { display: block; background: var(--cit-pale-2); min-height: 300px; }
.cit-lead-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cit-lead-card__body { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.cit-lead-card__body h2 { font-size: 26px; line-height: 1.18; margin: 14px 0 0; }
.cit-lead-card__body h2 a { color: inherit; }
.cit-lead-card__body h2 a:hover { color: var(--cit-purple); }
.cit-lead-card__body > p { font-size: 14.5px; line-height: 1.6; color: var(--cit-text); margin: 12px 0 0; }
.cit-lead-card__body .cit-tag { display: block; margin-top: 12px; }
.cit-lead-card__body .cit-article__meta { margin-top: auto; padding-top: 20px; }

/* ---- Insights hero -------------------------------------------------- */
/* The listing hero runs a narrower copy column than the service pages, so
   the headline breaks over four lines the way the design does. */
.cit-insights-hero { background: var(--cit-pale-2); }
/* The reference lets the photograph fill the band, so the padding is only
   what clears it top and bottom; the copy column centres against it. */
.cit-insights-hero .cit-hero__inner { padding-block: 30px 20px; }
.cit-insights-hero .cit-hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; }
.cit-insights-hero .cit-hero__copy { max-width: 480px; }
/* Measured off the reference: ~52px against a 1200px page, breaking over the
   four lines the markup sets. `.cit-hero__title` keeps it clear of §26. */
.cit-insights-hero .cit-hero__title { max-width: 480px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
.cit-insights-hero .cit-hero__lead { max-width: 430px; color: var(--cit-text); }
.cit-insights-hero .cit-search { max-width: 430px; }
.cit-insights-hero .cit-search .cit-input { height: 54px; }
.cit-insights-hero .cit-media { aspect-ratio: 13 / 10; box-shadow: var(--cit-shadow-md); }

/* Handwritten line over the hero photograph. The photograph runs the full
   width of the column and the highlights card floats over its right edge. */
.cit-insights-hero__visual { position: relative; }
.cit-insights-hero__hand {
  position: absolute;
  left: 16px; top: 14px;
  z-index: 2;
  width: 200px;
  margin: 0;
  font-size: 27px;
  line-height: 1.06;
  color: var(--cit-navy);
  text-shadow: 0 2px 14px rgba(255, 255, 255, .9), 0 1px 3px rgba(255, 255, 255, .95);
  pointer-events: none;
}
.cit-insights-hero__swoosh {
  display: block;
  width: 128px; height: 12px;
  margin: 3px 0 0 8px;
  color: var(--cit-purple);
}

/* Highlights card floating over the hero image */
.cit-insights-hero__card {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(calc(-50% + 20px));
  width: 264px;
  background: var(--cit-white);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-lg);
  padding: 16px;
  z-index: 3;
}
.cit-insights-hero__card .cit-pointlist { gap: 5px; }
.cit-insights-hero__card .cit-icon-box--xs { width: 30px; height: 30px; border-radius: 8px; }
.cit-insights-hero__card .cit-point__title { font-size: 12.5px; }

/* ---- Featured row: lead card plus three stacked cards ---------------- */
.cit-insights-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.cit-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 26px 28px;
  border-radius: var(--cit-r-xl);
  overflow: hidden;
  background: var(--cit-navy);
}
.cit-feature-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--cit-ease);
}
.cit-feature-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(9, 14, 56, .48) 0%,
    rgba(9, 14, 56, .16) 30%,
    rgba(9, 14, 56, .68) 68%,
    rgba(9, 14, 56, .92) 100%);
}
.cit-feature-card:hover .cit-feature-card__img { transform: scale(1.04); }

.cit-feature-card__pill {
  position: absolute;
  top: 20px; left: 22px;
  z-index: 2;
  display: inline-flex; align-items: center;
  height: 26px;
  padding-inline: 13px;
  border-radius: var(--cit-r-pill);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  color: var(--cit-navy);
  font-size: 10px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
}
.cit-feature-card__inner {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 20px;
}
.cit-feature-card__text { min-width: 0; flex: 1; }
.cit-feature-card__cat {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: rgba(255, 255, 255, .92);
}
.cit-feature-card .cit-feature-card__title {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.028em;
  font-weight: 800;
  color: #fff;
}
.cit-feature-card__title a { color: inherit; }
.cit-feature-card__title a:hover { color: #fff; }
.cit-feature-card__overlay { position: absolute; inset: 0; z-index: 4; }
.cit-feature-card__excerpt {
  margin: 12px 0 0;
  font-size: 13.5px; line-height: 1.55;
  color: rgba(233, 236, 250, .88);
  max-width: 400px;
}
.cit-feature-card__meta {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: rgba(224, 228, 246, .8);
}
.cit-feature-card__go {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--cit-t), transform var(--cit-t);
}
.cit-feature-card:hover .cit-feature-card__go { background: var(--cit-purple); border-color: transparent; transform: translateX(2px); }

.cit-sidelist { display: grid; grid-auto-rows: 1fr; gap: 13px; }
.cit-sideitem {
  position: relative;
  display: flex; align-items: center; gap: 15px;
  padding: 12px;
  background: var(--cit-surface);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  transition: border-color var(--cit-t), box-shadow var(--cit-t);
}
.cit-sideitem:hover { border-color: var(--cit-line-strong); box-shadow: var(--cit-shadow); }
.cit-sideitem__thumb {
  flex: none;
  width: 104px; align-self: stretch;
  min-height: 74px;
  border-radius: var(--cit-r-md);
  overflow: hidden;
  background: var(--cit-pale-2);
}
.cit-sideitem__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cit-sideitem__body { min-width: 0; flex: 1; }
.cit-sideitem .cit-sideitem__title {
  margin: 6px 0 0;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  font-weight: 700;
  color: var(--cit-navy);
}
.cit-sideitem__title a { color: inherit; }
.cit-sideitem__overlay { position: absolute; inset: 0; z-index: 2; }
.cit-sideitem:hover .cit-sideitem__title a { color: var(--cit-purple); }
.cit-sideitem__meta { margin: 8px 0 0; font-size: 11.5px; color: var(--cit-muted); }
.cit-sideitem__go { flex: none; color: var(--cit-purple); display: inline-flex; transition: transform var(--cit-t); }
.cit-sideitem:hover .cit-sideitem__go { transform: translateX(2px); }

/* Grid card headings: hold the design-system size against the type guard */
.cit-article .cit-article__title { font-size: 15px !important; line-height: 1.4 !important; }

/* ---- Newsletter form ------------------------------------------------- */
.cit-newsletter__form .cit-input { height: 46px; border-radius: var(--cit-r-md); }
.cit-newsletter__form .cit-btn { height: 46px; flex: none; padding-inline: 24px; }
.cit-newsletter__note { font-size: 11.5px !important; margin-top: 10px !important; color: var(--cit-muted) !important; }

/* ---- Dark CTA band: eyebrow rendered as a chip ----------------------- */
.cit-banner__chip {
  display: inline-flex; align-items: center;
  height: 24px; padding-inline: 11px;
  margin: 0 0 14px;
  border-radius: var(--cit-r-xs);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}

@media (max-width: 1080px) {
  .cit-insights-hero .cit-hero__inner { padding-block: 40px 44px; }
  .cit-insights-hero .cit-hero__grid { grid-template-columns: 1fr; }
  .cit-insights-hero .cit-hero__copy,
  .cit-insights-hero .cit-hero__title,
  .cit-insights-hero .cit-hero__lead,
  .cit-insights-hero .cit-search { max-width: none; }
  /* Stacked, the photograph runs the full width, so it takes a landscape
     crop rather than the near-square one the two-column layout uses. */
  .cit-insights-hero .cit-media { aspect-ratio: 16 / 10; }
  /* The headline is hand-broken for the wide layout only. */
  .cit-hero__br { display: none; }
  .cit-insights-hero__visual { padding-right: 0; }
  .cit-insights-hero__card { position: relative; inset: auto; transform: none; width: auto; margin: -34px 20px 0; }
  .cit-insights-top { grid-template-columns: 1fr; }
  .cit-feature-card { min-height: 300px; }
  .cit-sidelist { grid-auto-rows: auto; }
}
@media (max-width: 767px) {
  .cit-insights-hero__hand { font-size: 22px; width: 164px; left: 16px; top: 14px; }
  .cit-insights-hero__swoosh { width: 104px; }
  .cit-feature-card { min-height: 268px; padding: 20px; }
  .cit-feature-card__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cit-feature-card__excerpt { display: none; }
  .cit-sideitem__thumb { width: 84px; min-height: 66px; }
  .cit-newsletter__form { flex-direction: column; }
  .cit-newsletter__form .cit-btn { width: 100%; }
}

/* Article page */
.cit-post { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.cit-post__hero { border-radius: var(--cit-r-xl); overflow: hidden; margin-bottom: 28px; background: var(--cit-pale-2); }
.cit-post__hero img { width: 100%; display: block; }
.cit-post__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font-size: 12.5px; color: var(--cit-muted);
  margin: 14px 0 0;
}
.cit-post__meta .bi { color: var(--cit-purple); }
.cit-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--cit-line); }
.cit-post__tags a { font-size: 12px; font-weight: 600; color: var(--cit-text); background: var(--cit-pale-2); padding: 5px 11px; border-radius: var(--cit-r-pill); }
.cit-post__tags a:hover { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }
.cit-post__share { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.cit-post__aside { position: sticky; top: calc(var(--cit-header-h) + 20px); }
.cit-post__aside .cit-card + .cit-card { margin-top: 20px; }

@media (max-width: 1080px) {
  .cit-lead-card { grid-template-columns: 1fr; }
  .cit-lead-card__media { min-height: 220px; aspect-ratio: 16/9; }
  .cit-post { grid-template-columns: 1fr; gap: 34px; }
  .cit-post__aside { position: static; }
}
@media (max-width: 767px) {
  .cit-lead-card__body { padding: 22px; }
  .cit-lead-card__body h2 { font-size: 21px; }
}

.cit-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.cit-postnav__item { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.cit-postnav__item strong { font-size: 14px; line-height: 1.4; color: var(--cit-navy); }
.cit-postnav__item .cit-help { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.cit-postnav__item--next { text-align: right; align-items: flex-end; }
@media (max-width: 767px) { .cit-postnav { grid-template-columns: 1fr; } .cit-postnav__item--next { text-align: left; align-items: flex-start; } }

.cit-post__meta + .cit-prose,
.cit-post__hero + .cit-prose { margin-top: 30px; }
.cit-prose > h2:first-child, .cit-prose > h3:first-child { margin-top: 0; }

/* The retired theme painted interior page heroes dark and used .text-white on
   their headings. The new heroes are light, so force readable ink inside them
   (and anywhere else a heading was left white on a light surface). */
.hero:not(.cit-hero) .text-white,
.hero:not(.cit-hero) h1, .hero:not(.cit-hero) h2, .hero:not(.cit-hero) h3,
.hero:not(.cit-hero) p, .hero:not(.cit-hero) span,
.cit-portal__body .text-white {
  color: var(--cit-navy) !important;
  -webkit-text-fill-color: currentColor !important;
}
.hero:not(.cit-hero) p.text-white,
.hero:not(.cit-hero) .hero-subtitle,
.cit-portal__body p.text-white { color: var(--cit-text) !important; }
.hero:not(.cit-hero) .btn.text-white,
.hero:not(.cit-hero) .cit-btn--primary,
.hero:not(.cit-hero) .c-btn-primary,
.hero:not(.cit-hero) .btn-primary { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.hero:not(.cit-hero) .cit-eyebrow, .hero:not(.cit-hero) .hero-eyebrow { color: var(--cit-purple) !important; }

/* Gradient-filled display text from the old theme */
.error-code, .maintenance-title, .stat-value, .footer-logo {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--cit-navy) !important;
}
.error-code { color: var(--cit-purple) !important; }

/* Knowledge-base categories carry a per-category colour in the database
   (legacy Bootstrap defaults). Presentation is normalised to the CaminhoIT
   tint so the page reads as one system; the stored values are untouched, so
   the admin UI and any future palette still work. */
.category-icon,
.kb-category-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important; height: 48px !important;
  border-radius: 12px !important;
  background-color: var(--cit-purple-soft) !important;
  background-image: none !important;
  color: var(--cit-purple) !important;
}
.category-icon .bi, .kb-category-icon .bi { font-size: 21px; color: inherit !important; }
.category-badge, .kb-category-badge, .article-category {
  background-color: var(--cit-purple-soft) !important;
  color: var(--cit-purple-dark) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: var(--cit-r-pill) !important;
  padding: 4px 10px !important;
}

/* A service hero with no accompanying image gets a wider measure, so the
   headline does not stack into a narrow column beside empty space. */
.cit-svc-hero .cit-hero__inner:not(.cit-hero__grid) .cit-hero__copy { max-width: 760px; }
.cit-svc-hero .cit-hero__inner:not(.cit-hero__grid) .cit-hero__lead { max-width: 620px; }
.cit-svc-hero .cit-hero__inner:not(.cit-hero__grid) h1 { max-width: 720px; }

/* ------------------------------------------------------------------ */
/* 26. Type-scale guard                                                */
/*     A few legacy pages set their own display sizes (up to 4rem+),    */
/*     which reads as shouting next to the redesigned pages. Cap them   */
/*     at the design-system scale, leaving the system's own heroes and  */
/*     the portal alone.                                                */
/* ------------------------------------------------------------------ */
main h1:not(.cit-hero__title):not(.cit-auth__title):not(.cit-lg h1):not(.cit-kb2 h1),
body > h1 {
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.03em;
}
/* The homepage hero used to be capped here as well. It is a `.cit-hero__title`
   now, so the guard's own exemption covers it and the size lives with the
   component — see `.cit-hero--home h1` in §12. */
/* `.bk-h2`, the contact form heading, the auth brand headline and the design
   system's own section heading are design-system sizes on rebuilt pages, not
   legacy display type — the cap must not shrink them. */
/* The knowledge-base components set their own small heading sizes (rail card
   titles, the helpful bar, the document's step headings); the cap would push
   every one of them back up to 32px. The 2026 templates (.cit-lg legal
   pages, .cit-kb2 knowledge base in site-2026.css) size their own headings. */
main h2:not(.cit-banner h2):not(.bk-h2):not(.cit-contact-split h2):not(.cit-auth__heading):not(.cit-section-head h2):not(.cit-h2):not(.cit-kb-railcard h2):not(.cit-kb-helpful h2):not(.cit-kb-none h2):not(.cit-kb-prose h2):not(.cit-kb-note__body h2):not(.cit-lg h2):not(.cit-kb2 h2) { font-size: clamp(22px, 2.4vw, 32px) !important; line-height: 1.16 !important; }
.cit-banner h2 { font-size: clamp(24px, 2.6vw, 36px) !important; }
main h3:not(.cit-lg h3):not(.cit-kb2 h3) { font-size: clamp(15px, 1.4vw, 20px) !important; }
/* The portal's page-head band is a display size in the comps (~42px against a
   1484px canvas) and is let back out by `.cit-portal__body .cit-pagehead-portal
   h1` in portal.css, which loads after this file and outranks the cap on
   specificity. The exemption is not written as a `:not()` here on purpose:
   a complex `:not()` argument drops the whole rule on Safari below 16.4, and
   losing the cap would let the legacy 4rem headings back out everywhere. */
.cit-portal__body h1 { font-size: clamp(22px, 2.2vw, 28px) !important; }
.cit-portal__body h2 { font-size: clamp(17px, 1.8vw, 22px) !important; }
.cit-portal__body h3 { font-size: clamp(14px, 1.4vw, 17px) !important; }
/* Panel titles measure ~21px in the comps. `.cit-panel__title` still needs the
   `!important` to beat the h2/h3 caps above when a panel title is a heading. */
.cit-panel__title { font-size: 20px !important; }
.cit-lead-card__body h2 { font-size: clamp(19px, 2vw, 26px) !important; }

/* Legacy hero blocks that used a full-bleed dark/gradient band */
main > section:first-child[class*="hero"],
main > header[class*="hero"],
section[class*="-hero"]:not(.cit-hero) {
  background: var(--cit-pale) !important;
  background-image: none !important;
  color: var(--cit-text) !important;
}

/* ------------------------------------------------------------------ */
/* 27. Service-page archetype — reference-design furniture             */
/*     Section 21 covers the archetype's contained (illustration)      */
/*     hero. These rules add the pieces the reference comps call for   */
/*     and that had drifted out of the pages: the full-bleed           */
/*     photographic hero with its handwritten overlay, the six-up      */
/*     "what's included" row, the avatar-left testimonial rail and     */
/*     the banner location pill — so every service page renders the    */
/*     same shape.                                                     */
/* ------------------------------------------------------------------ */

/* --- Hand-drawn swoosh under the accent word of a hero headline ----- */
.cit-accent--swoosh { position: relative; display: inline-block; }
.cit-accent--swoosh .cit-swoosh {
  position: absolute;
  left: 3%; bottom: -.2em;
  width: 97%; height: .17em;
  color: var(--cit-purple);
  opacity: .5;
  pointer-events: none;
}

/* --- Photographic service hero -------------------------------------- */
/* The frame is a direct child of the section (after .cit-container) so
   that on wide screens it can be positioned against the viewport and
   run off the right-hand edge, and on narrow screens it simply falls
   back into the flow underneath the hero copy. */
.cit-svc-hero--photo { position: relative; overflow: hidden; }
.cit-svc-hero__frame { position: relative; margin: 0; }
.cit-svc-hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cit-svc-hero__hand {
  position: absolute; z-index: 2;
  left: 26px; bottom: 26px;
  width: 220px;
  color: #fff;
  font-size: 26px;
  line-height: 1.14;
  transform: rotate(-5deg);
  text-shadow: 0 2px 18px rgba(8, 16, 40, .8), 0 1px 3px rgba(8, 16, 40, .55);
}
.cit-svc-hero__swoosh {
  position: absolute; left: 34px; bottom: -13px;
  width: 140px; height: 12px; color: #b9aeff;
}

@media (min-width: 1081px) {
  .cit-svc-hero--photo .cit-hero__inner { padding-block: 0; min-height: 468px; align-items: stretch; }
  .cit-svc-hero--photo .cit-hero__copy { align-self: center; padding-block: 56px; }
  /* The frame follows .cit-container in the DOM, so the column that carries
     the floating card needs its own stacking context to sit over the photo. */
  .cit-svc-hero--photo .cit-hero__visual { padding-right: 0; z-index: 2; }

  .cit-svc-hero--photo .cit-svc-hero__frame {
    position: absolute; z-index: 0;
    top: 0; bottom: 0; right: 0; left: 48%;
    border-radius: var(--cit-r-xl) 0 0 var(--cit-r-xl);
    overflow: hidden;
  }
  /* Blend the photo's left edge into the pale hero ground and darken
     its foot so the handwritten line stays legible on any image. */
  .cit-svc-hero--photo .cit-svc-hero__frame::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, var(--cit-pale) 0%, rgba(248, 250, 255, .55) 9%, rgba(248, 250, 255, 0) 30%),
      linear-gradient(0deg, rgba(10, 16, 44, .52) 0%, rgba(10, 16, 44, 0) 44%);
  }
  .cit-svc-hero--photo .cit-svc-hero__card { top: 42px; transform: none; }
}

@media (max-width: 1080px) {
  .cit-svc-hero__frame {
    width: min(var(--cit-content), 100% - (var(--cit-gutter) * 2));
    margin: 22px auto 0;
    aspect-ratio: 3 / 2;
    border-radius: var(--cit-r-xl);
    overflow: hidden;
    box-shadow: var(--cit-shadow-md);
  }
  .cit-svc-hero--photo .cit-hero__inner { padding-bottom: 34px; }
  .cit-svc-hero--photo { padding-bottom: 42px; }
}

@media (max-width: 767px) {
  .cit-svc-hero__hand { font-size: 21px; width: 175px; left: 18px; bottom: 20px; }
  .cit-svc-hero__swoosh { width: 112px; left: 28px; bottom: -10px; }
}

/* --- Six-up "what's included" row ----------------------------------- */
/* Six compact cards need a tighter gutter than the general 3/4-up grid.
   Scoped away from .cit-grid--tight and .cit-feature--center so the
   homepage's six-up "why us" row keeps its own, denser treatment. */
.cit-grid--6:not(.cit-grid--tight) { gap: 16px; }
.cit-grid--6:not(.cit-grid--tight) > .cit-feature--compact:not(.cit-feature--center) { padding: 20px 16px; }
.cit-grid--6:not(.cit-grid--tight) > .cit-feature--compact:not(.cit-feature--center) h3 { font-size: 14.5px; line-height: 1.3; margin-top: 16px; }
.cit-grid--6:not(.cit-grid--tight) > .cit-feature--compact:not(.cit-feature--center) p { font-size: 13px; line-height: 1.5; margin-top: 8px; }

/* --- Section head with carousel controls ---------------------------- */
.cit-section-head > .cit-carousel-nav { grid-area: link; align-self: center; }
.cit-carousel-nav { display: flex; gap: 8px; }
.cit-carousel-nav[hidden] { display: none; }
.cit-carousel-nav button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--cit-line-strong);
  border-radius: 50%;
  background: var(--cit-white);
  color: var(--cit-navy);
  cursor: pointer;
  transition: border-color var(--cit-t), color var(--cit-t), background var(--cit-t);
}
.cit-carousel-nav button:hover:not(:disabled) { border-color: var(--cit-purple); color: var(--cit-purple); }
.cit-carousel-nav button:disabled { opacity: .4; cursor: default; }
.cit-carousel-nav .cit-ico { width: 16px; height: 16px; }

/* Rail: a plain grid until the cards overflow, then a snap-scroller. */
.cit-rail { scroll-behavior: smooth; }
.cit-rail.is-scrollable {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cit-rail.is-scrollable::-webkit-scrollbar { display: none; }
.cit-rail.is-scrollable > * {
  flex: 0 0 calc(50% - 11px);
  scroll-snap-align: start;
}
@media (max-width: 767px) {
  .cit-rail.is-scrollable > * { flex-basis: 88%; }
}

/* --- Testimonial card: portrait to the left of the quote ------------ */
.cit-quote--row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  min-height: 0;
}
.cit-quote--row .cit-quote__body { min-width: 0; }
.cit-quote--row .cit-quote__person {
  display: block;
  margin-top: 16px;
  padding-top: 0;
}
.cit-quote--row .cit-quote__avatar { margin-top: 2px; }

/* --- Location pill on the closing banner ---------------------------- */
.cit-banner__place {
  position: absolute; z-index: 1;
  right: 22px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--cit-r-pill);
  background: rgba(10, 16, 44, .42);
  color: #e9ecff;
  font-size: 11.5px; font-weight: 600; line-height: 1;
}
.cit-banner__place .cit-ico { width: 14px; height: 14px; }
@media (max-width: 767px) { .cit-banner__place { display: none; } }

/* ------------------------------------------------------------------ */
/* 28. About page                                                      */
/*     Built to the supplied about-us reference: a photographic hero    */
/*     with a floating highlights card, story + journey timeline, a     */
/*     numbered approach row, the principles band, values, metrics,     */
/*     the team row and the partner strip.                             */
/* ------------------------------------------------------------------ */

/* --- Hero --------------------------------------------------------- */
/* The reference runs the coastline photograph full-bleed across the right of
   the hero band — flush under the header, off the right edge of the page and
   down to the section boundary — fading into the page ground behind the copy.
   That is the same layered treatment as the homepage hero, so the photo is a
   `.cit-hero__photo` layer and the gradient comes from `.cit-hero::after`. */
.cit-about-hero { background: linear-gradient(180deg, #f0effe 0%, #f4f4ff 60%, #f6f7ff 100%); }
.cit-about-hero::after {
  background:
    linear-gradient(90deg,
      rgba(244,244,255,1) 0%, rgba(244,244,255,.99) 28%, rgba(244,244,255,.82) 42%,
      rgba(244,244,255,.3) 58%, rgba(244,244,255,0) 72%),
    linear-gradient(0deg, rgba(246,247,255,.55), transparent 26%);
}
.cit-about-hero__photo { object-position: 68% 46%; }
.cit-about-hero .cit-hero__inner { padding-block: 46px 42px; }
.cit-about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 46px;
  align-items: stretch;
}
.cit-about-hero .cit-hero__copy { max-width: none; align-self: center; }
.cit-about-hero .cit-hero__lead { max-width: 430px; }
.cit-about-hero h1 { font-size: clamp(34px, 4.1vw, 52px); }

/* Overlay layer: the hand-script sits on the open sky at the top left of the
   photograph and the highlights card on its lower right. */
.cit-about-hero__visual { position: relative; min-height: 320px; }

.cit-about-hero__hand {
  position: absolute;
  left: 6px; top: 4px;
  width: 244px;
  margin: 0;
  font-size: 26px;
  line-height: 1.16;
  transform: rotate(-6deg);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .8), 0 1px 3px rgba(255, 255, 255, .9);
  pointer-events: none;
}
.cit-about-hero__swoosh {
  display: block;
  width: 126px; height: 12px;
  margin: 3px 0 0 34px;
  color: var(--cit-purple);
}

.cit-about-hero__card {
  position: absolute;
  right: 0; bottom: 0;
  width: 274px;
  padding: 16px 18px;
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-lg);
}
.cit-about-hero__card .cit-pointlist { gap: 13px; list-style: none; margin: 0; padding: 0; }
.cit-about-hero__card .cit-point { align-items: center; gap: 11px; }
.cit-about-hero__card .cit-point > .cit-ico { flex: none; color: var(--cit-purple); }
.cit-about-hero__card .cit-point > .cit-ico--green { color: var(--cit-green); }
.cit-about-hero__card .cit-point__title { font-size: 12.5px; line-height: 1.32; }

/* --- Story + journey timeline -------------------------------------- */
.cit-about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr) minmax(0, .84fr);
  gap: 38px;
  align-items: start;
}
.cit-about-story__photo { margin: 0; box-shadow: var(--cit-shadow-md); }
.cit-about-story__copy h2 { margin: 0; }
.cit-about-story__copy p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--cit-text);
  margin: 18px 0 0;
}

.cit-about-timeline {
  list-style: none;
  margin: 0;
  padding: 26px 24px;
  background: var(--cit-purple-tint);
  border-radius: var(--cit-r-xl);
}
.cit-about-timeline li { position: relative; padding-left: 26px; }
.cit-about-timeline li + li { margin-top: 22px; }
.cit-about-timeline li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--cit-purple);
  box-shadow: 0 0 0 3px rgba(101, 80, 255, .16);
}
.cit-about-timeline li:not(:last-child)::after {
  content: "";
  position: absolute; left: 5px; top: 18px; bottom: -22px;
  width: 1px;
  background: #d8d3fb;
}
.cit-about-timeline strong {
  display: block;
  font-size: 13.5px; font-weight: 700; line-height: 1.35;
  color: var(--cit-navy);
}
.cit-about-timeline span {
  display: block;
  font-size: 12.5px; line-height: 1.5;
  color: var(--cit-text);
  margin-top: 3px;
}

/* --- Approach ------------------------------------------------------ */
.cit-about-approach__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.cit-about-approach__head h2 { margin: 0; }
.cit-about-approach__head p {
  margin: 0;
  padding-top: 8px;
  font-size: 15px; line-height: 1.6;
  color: var(--cit-text);
}

.cit-about-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  margin-top: 42px;
}
.cit-about-steps__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  align-self: center;
  color: var(--cit-purple);
}
.cit-about-step {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
}
.cit-about-step__num {
  position: absolute;
  top: -13px; left: 18px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cit-purple);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 4px var(--cit-white);
}
.cit-about-step h3 { margin: 16px 0 0; color: var(--cit-navy); font-weight: 700; letter-spacing: -.02em; }
.cit-about-step p { margin: 9px 0 0; font-size: 13px; line-height: 1.55; color: var(--cit-text); }

/* --- Principles band ----------------------------------------------- */
.cit-about-principles {
  display: grid;
  grid-template-columns: minmax(0, 268px) repeat(5, minmax(0, 1fr));
  gap: 0 22px;
  align-items: start;
  padding: 30px 32px;
  background: var(--cit-pale-2);
  border-radius: var(--cit-r-xl);
}
.cit-about-principles__head { padding-right: 12px; }
.cit-about-principles__head .cit-eyebrow { margin-bottom: 10px; }
.cit-about-principles .cit-about-principles__head h2 {
  margin: 0;
  font-size: clamp(19px, 1.75vw, 23px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
}
.cit-about-principle { position: relative; padding-left: 26px; }
.cit-about-principle::before {
  content: "";
  position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 1px;
  background: var(--cit-line-strong);
}
.cit-about-principle > .cit-ico { color: var(--cit-purple); }
.cit-about-principle strong {
  display: block;
  font-size: 13px; font-weight: 700; line-height: 1.35;
  color: var(--cit-navy);
  margin-top: 13px;
}
.cit-about-principle span {
  display: block;
  font-size: 12px; line-height: 1.5;
  color: var(--cit-text);
  margin-top: 6px;
}

/* --- Values -------------------------------------------------------- */
.cit-about-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.cit-about-value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}
.cit-about-value strong {
  display: block;
  font-size: 14px; font-weight: 700; line-height: 1.3;
  color: var(--cit-navy);
}
.cit-about-value span {
  display: block;
  font-size: 12.5px; line-height: 1.5;
  color: var(--cit-text);
  margin-top: 6px;
}

/* --- Team ---------------------------------------------------------- */
.cit-about-team {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1.1fr) minmax(0, 172px);
  gap: 30px;
  align-items: center;
}
.cit-about-team__copy h2 { margin: 0; }
.cit-about-team__copy p {
  margin: 16px 0 0;
  font-size: 15px; line-height: 1.7;
  color: var(--cit-text);
  max-width: 460px;
}
.cit-about-team__people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cit-about-person { margin: 0; }
.cit-about-person__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--cit-r-md);
  margin: 0;
}
.cit-about-person__mono {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--cit-r-md);
  background: var(--cit-purple-soft);
  color: var(--cit-purple-dark);
  font-size: 22px; font-weight: 700; letter-spacing: .04em;
}
.cit-about-person__name {
  display: block;
  font-size: 13px; font-weight: 700; line-height: 1.3;
  color: var(--cit-navy);
  margin-top: 11px;
}
.cit-about-person__role {
  display: block;
  font-size: 11.5px; line-height: 1.4;
  color: var(--cit-muted);
  margin-top: 2px;
}
.cit-about-person__quote {
  display: block;
  font-size: 11.5px; line-height: 1.5;
  color: var(--cit-text);
  font-style: italic;
  margin-top: 8px;
}
.cit-about-team__hand {
  position: relative;
  margin: 0;
  font-size: 27px;
  line-height: 1.14;
  text-align: center;
  transform: rotate(-7deg);
}
.cit-about-team__swoosh {
  display: block;
  width: 118px; height: 11px;
  margin: 4px auto 0;
  color: var(--cit-purple);
}

/* --- Partner strip -------------------------------------------------- */
.cit-about-partners__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.cit-about-partners__head .cit-eyebrow { margin-bottom: 8px; }
.cit-about-partners__head p {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px; line-height: 1.55;
  color: var(--cit-text);
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 1250px) {
  .cit-about-hero__grid { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 34px; }
  .cit-about-hero__hand { font-size: 22px; width: 200px; left: 16px; top: 16px; }
  .cit-about-hero__swoosh { width: 108px; margin-left: 26px; }
  .cit-about-hero__card { width: 238px; right: 14px; bottom: 14px; }
  .cit-about-story { gap: 28px; }
  .cit-about-principles { grid-template-columns: minmax(0, 226px) repeat(5, minmax(0, 1fr)); gap: 0 16px; padding: 26px 24px; }
  .cit-about-principle { padding-left: 18px; }
  .cit-about-team { gap: 26px; }
  .cit-about-team__hand { font-size: 24px; }
}

@media (max-width: 1080px) {
  .cit-about-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .cit-about-hero .cit-hero__lead { max-width: none; }
  /* Single column: the photograph is behind the copy as well, so the wash has
     to run top-to-bottom instead of left-to-right to keep the text readable. */
  .cit-about-hero::after {
    background:
      linear-gradient(180deg, rgba(244,244,255,.97) 0%, rgba(244,244,255,.93) 46%, rgba(244,244,255,.55) 74%, rgba(244,244,255,.35) 100%);
  }
  .cit-about-hero__visual { min-height: 210px; }
  .cit-about-hero__card { position: static; width: 100%; margin-top: 150px; }
  .cit-about-hero__hand { font-size: 24px; width: 220px; left: auto; right: 4px; top: 0; }

  .cit-about-story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .cit-about-story__photo { grid-column: 1 / -1; max-width: 520px; }

  .cit-about-approach__head { grid-template-columns: 1fr; gap: 16px; }
  .cit-about-approach__head p { padding-top: 0; }
  .cit-about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; margin-top: 34px; }
  .cit-about-steps__arrow { display: none; }

  .cit-about-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .cit-about-principles__head { grid-column: 1 / -1; padding-right: 0; }
  .cit-about-principle { padding-left: 18px; }

  .cit-about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cit-about-team { grid-template-columns: 1fr; gap: 26px; }
  .cit-about-team__copy p { max-width: none; }
  .cit-about-team__hand { justify-self: center; }

  .cit-about-partners__head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 767px) {
  .cit-about-hero .cit-hero__inner { padding-block: 34px 34px; }
  .cit-about-hero__visual { min-height: 168px; }
  .cit-about-hero__card { margin-top: 120px; }
  .cit-about-hero__hand { font-size: 20px; width: 178px; left: auto; right: 0; top: 6px; }
  .cit-about-hero__swoosh { width: 90px; margin-left: 20px; }

  .cit-about-story { grid-template-columns: 1fr; }
  .cit-about-story__photo { max-width: none; }

  .cit-about-steps { grid-template-columns: 1fr; gap: 26px; }
  .cit-about-principles { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
  .cit-about-principle { padding-left: 0; }
  .cit-about-principle::before { display: none; }
  .cit-about-values { grid-template-columns: 1fr; }
  .cit-about-team__people { gap: 12px; }
  .cit-about-person__quote { display: none; }
  .cit-about-team__hand { font-size: 23px; }
}

@media (max-width: 420px) {
  .cit-about-team__people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ */
/* 29. Legal document pages                                            */
/*     Moved to assets/css/site-2026.css §4 (.cit-lg-*) with the 2026   */
/*     redesign of Terms, Privacy, Cookies and GDPR.                    */
/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* 30. Security & Compliance page                                      */
/*     Built to the supplied security-compliance reference: a          */
/*     photographic hero carrying a shield mark, the three-column      */
/*     transparency band, the operating-practices disclosure list,     */
/*     the incident-response row with its continuity card, and the     */
/*     pale enquiry panel that closes the page in place of the dark    */
/*     photographic banner the service pages use.                      */
/* ------------------------------------------------------------------ */

/* --- Hero ---------------------------------------------------------- */
/* Same layered treatment as the About hero: the coastline runs full-bleed
   across the right of the band and fades into the page ground behind the
   copy, so the headline never sits on busy water. */
.cit-sec-hero { background: linear-gradient(180deg, #eef1fe 0%, #f3f5ff 58%, #f7f8ff 100%); }
.cit-sec-hero::after {
  background:
    linear-gradient(90deg,
      rgba(245,247,255,1) 0%, rgba(245,247,255,.99) 30%, rgba(245,247,255,.84) 44%,
      rgba(245,247,255,.32) 60%, rgba(245,247,255,0) 76%),
    linear-gradient(0deg, rgba(247,248,255,.6), transparent 28%);
}
.cit-sec-hero__photo { object-position: 62% 52%; }
.cit-sec-hero .cit-hero__inner { padding-block: 30px 40px; }
.cit-sec-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 44px;
  align-items: stretch;
}
.cit-sec-hero .cit-hero__copy { max-width: none; align-self: center; }
.cit-sec-hero .cit-hero__lead { max-width: 460px; }
.cit-sec-hero .cit-hero__chips { margin-top: 24px; }
@media (min-width: 1081px) {
  /* The comp runs the three chips as one row across the foot of the hero,
     crossing the photo's faded edge rather than wrapping inside the copy
     column. */
  .cit-sec-hero .cit-hero__chips { width: max-content; max-width: none; column-gap: 26px; }
}

/* The reference sets this headline a shade smaller than the About one — it
   runs to three lines. Guarded at the desktop breakpoint so §17's mobile
   hero scale still wins on phones. */
@media (min-width: 768px) {
  .cit-sec-hero h1 { font-size: clamp(30px, 3.5vw, 46px); }
}

/* The risk-aware statement sits in a tinted band between the lead and the
   buttons, not as a card — it is a claim about approach, not a feature. */
.cit-sec-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 470px;
  margin: 22px 0 0;
  padding: 14px 18px 14px 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cit-ink);
}
.cit-sec-callout .cit-icon-box { flex: none; }

/* Overlay layer over the photograph. */
.cit-sec-hero__visual { position: relative; min-height: 330px; }
.cit-sec-hero__note {
  position: absolute;
  right: 4px; top: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--cit-navy);
  text-align: left;
  text-shadow: 0 1px 10px rgba(255, 255, 255, .85);
}
/* The reference draws the mark rather than setting an icon in a tile: a
   crest on two dashed orbit rings, floating over the open water. */
.cit-sec-hero__shield {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  width: 208px; height: 208px;
  overflow: visible;
}
.cit-sec-hero__ring {
  fill: none;
  stroke: rgba(101, 80, 255, .38);
  stroke-width: 1.5;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}
.cit-sec-hero__ring--in { stroke: rgba(255, 255, 255, .8); stroke-dasharray: none; stroke-width: 1; }
.cit-sec-hero__crest {
  fill: rgba(255, 255, 255, .88);
  stroke: rgba(101, 80, 255, .45);
  stroke-width: 2;
  filter: drop-shadow(0 10px 26px rgba(30, 36, 90, .18));
}
.cit-sec-hero__lock { fill: var(--cit-purple); }
.cit-sec-hero__lock path { stroke: var(--cit-purple); stroke-width: 5; }
.cit-sec-hero__hand {
  position: absolute;
  right: 8px; bottom: 2px;
  width: 240px;
  margin: 0;
  font-size: 25px;
  line-height: 1.16;
  text-align: left;
  transform: rotate(-6deg);
  text-shadow: 0 1px 12px rgba(255, 255, 255, .85), 0 1px 3px rgba(255, 255, 255, .9);
  pointer-events: none;
}
.cit-sec-hero__swoosh {
  display: block;
  width: 122px; height: 12px;
  margin: 3px 0 0 30px;
  color: var(--cit-purple);
}

/* --- Transparency band --------------------------------------------- */
/* The reference hangs the standfirst to the right of the heading rather than
   under it, so the three columns start higher up the band. */
.cit-sec-transp__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 26px;
}
.cit-sec-transp__head h2 { margin: 0; }
.cit-sec-transp__sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--cit-text);
}

.cit-sec-transp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 20px;
  align-items: stretch;
}
.cit-sec-col {
  padding: 20px 20px 22px;
  border-radius: var(--cit-r-xl);
  border: 1px solid var(--cit-line);
  background: var(--cit-white);
  height: 100%;
}
/* Each column carries its own tint so the three buckets read apart at a
   glance — held, followed, offered. */
.cit-sec-col--blue   { background: var(--cit-blue-soft);   border-color: #d6e2fb; }
.cit-sec-col--purple { background: var(--cit-purple-tint); border-color: #e2defb; }
.cit-sec-col--green  { background: var(--cit-green-soft);  border-color: #cdeee1; }

.cit-sec-col__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.cit-sec-col__head .cit-icon-box { flex: none; background: rgba(255, 255, 255, .8); }
.cit-sec-col__title {
  display: block;
  font-size: 15px; font-weight: 700; line-height: 1.3;
  color: var(--cit-navy);
}
.cit-sec-col__note {
  display: block;
  margin-top: 5px;
  font-size: 12px; line-height: 1.5;
  color: var(--cit-text);
}

.cit-sec-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cit-sec-col__list li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 14px;
  background: var(--cit-white);
  border: 1px solid rgba(30, 36, 90, .07);
  border-radius: var(--cit-r-md);
  font-size: 12.5px; line-height: 1.5;
  color: var(--cit-text);
}
.cit-sec-col__list strong { color: var(--cit-navy); font-weight: 700; }
.cit-sec-col__mark { flex: none; color: var(--cit-purple); display: inline-flex; }

.cit-sec-col__services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.cit-sec-col__services li {
  display: flex; gap: 9px; align-items: center;
  padding: 12px 12px;
  background: var(--cit-white);
  border: 1px solid rgba(30, 36, 90, .07);
  border-radius: var(--cit-r-md);
  font-size: 12px; line-height: 1.4;
  font-weight: 600;
  color: var(--cit-navy);
}
.cit-sec-col__services .cit-ico { flex: none; color: var(--cit-purple); }

/* --- Operating practices ------------------------------------------- */
.cit-sec-note {
  display: flex; gap: 13px; align-items: flex-start;
  margin: 24px 0 0;
  padding: 15px 17px 15px 14px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  font-size: 12.5px; line-height: 1.55;
  color: var(--cit-text);
}
.cit-sec-note .cit-icon-box { flex: none; }

.cit-sec-practices { display: grid; gap: 10px; }
.cit-sec-practice {
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  overflow: hidden;
}
/* Title sits above its one-line description. Side by side, the title column
   sized to each row's own title, so descriptions started at a different x in
   every box and wrapped raggedly in the narrow right-hand column. */
.cit-sec-practice > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title mark"
    "icon text  mark";
  align-items: center;
  column-gap: 14px;
  row-gap: 3px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.cit-sec-practice > summary::-webkit-details-marker { display: none; }
.cit-sec-practice > summary:hover { background: var(--cit-pale); }
.cit-sec-practice > summary > .cit-icon-box { grid-area: icon; }
.cit-sec-practice__title { grid-area: title; align-self: end; font-size: 13.5px; font-weight: 700; color: var(--cit-navy); }
.cit-sec-practice__text { grid-area: text; align-self: start; font-size: 12.5px; line-height: 1.45; color: var(--cit-muted, var(--cit-text)); }
.cit-sec-practice__mark { grid-area: mark; }
/* A drawn +/− rather than a rotated chevron: the reference shows a plus that
   becomes a minus, and the sprite has no plus mark. */
.cit-sec-practice__mark { position: relative; width: 16px; height: 16px; flex: none; }
.cit-sec-practice__mark::before,
.cit-sec-practice__mark::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  background: var(--cit-muted);
  transition: opacity var(--cit-t), background var(--cit-t);
}
.cit-sec-practice__mark::before { width: 13px; height: 1.5px; transform: translate(-50%, -50%); }
.cit-sec-practice__mark::after  { width: 1.5px; height: 13px; transform: translate(-50%, -50%); }
.cit-sec-practice[open] .cit-sec-practice__mark::after { opacity: 0; }
.cit-sec-practice[open] .cit-sec-practice__mark::before { background: var(--cit-purple); }
.cit-sec-practice[open] > summary { background: var(--cit-purple-tint); }

/* Body text lines up with the title: 18px padding + 34px icon + 14px gap. */
.cit-sec-practice__body { padding: 14px 18px 18px 66px; }
.cit-sec-practice__body p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--cit-text); }
.cit-sec-practice__body ul { margin: 10px 0 0; padding-left: 18px; }
.cit-sec-practice__body li { font-size: 12.5px; line-height: 1.6; color: var(--cit-text); }
.cit-sec-practice__body a { color: var(--cit-purple); }

/* --- Incident response + continuity -------------------------------- */
.cit-sec-ir {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 34px;
  align-items: start;
}
/* Four steps in the narrower left column would crush; the reference runs
   them two-up under the copy at this width and four-up on wide screens. */
.cit-sec-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1200px) {
  .cit-sec-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cit-sec-steps .cit-step__num {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cit-purple);
  color: #fff;
  font-size: 11.5px;
}

.cit-sec-bc { background: var(--cit-purple-tint); border-color: #e2defb; }
.cit-sec-bc__head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.cit-sec-bc__head .cit-icon-box { flex: none; background: rgba(255, 255, 255, .85); }
.cit-sec-bc__title { display: block; font-size: 15px; font-weight: 700; color: var(--cit-navy); line-height: 1.3; }
.cit-sec-bc__text { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: var(--cit-text); }
.cit-sec-bc .cit-checklist { gap: 11px; }
.cit-sec-bc .cit-checklist li { font-size: 12.5px; }
.cit-sec-bc__link {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
  padding: 13px 14px;
  background: var(--cit-white);
  border: 1px solid #e2defb;
  border-radius: var(--cit-r-md);
  font-size: 12.5px; font-weight: 600;
  color: var(--cit-navy);
}
.cit-sec-bc__link > span:nth-child(2) { flex: 1 1 auto; }
.cit-sec-bc__link > .cit-ico { color: var(--cit-purple); transition: transform var(--cit-t); }
.cit-sec-bc__link:hover { border-color: var(--cit-purple); color: var(--cit-purple-dark); }
.cit-sec-bc__link:hover > .cit-ico { transform: translateX(2px); }

/* --- Enquiry panel -------------------------------------------------- */
/* The page closes on a pale panel rather than the dark photographic banner:
   a compliance page ends on an invitation to ask, not on a sales push. */
.cit-sec-enquiry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 26px 30px;
  background: var(--cit-purple-tint);
  border: 1px solid #e2defb;
  border-radius: var(--cit-r-xl);
}
.cit-sec-enquiry__icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--cit-white);
  color: var(--cit-purple);
}
/* The reference keeps this heading on one line; the panel gives it less room
   than a section head, so it is set a step down from the .cit-h2 scale. */
.cit-sec-enquiry__copy h2 { margin: 6px 0 0; font-size: clamp(19px, 1.9vw, 25px) !important; line-height: 1.2; }
.cit-sec-enquiry__copy p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--cit-text); }
.cit-sec-enquiry__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cit-sec-enquiry__foot {
  margin: 14px 0 0;
  text-align: right;
  font-size: 12px; line-height: 1.55;
  color: var(--cit-muted);
}
.cit-sec-enquiry__foot a { color: var(--cit-purple); }

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 1080px) {
  .cit-sec-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cit-sec-hero__visual { display: none; }
  .cit-sec-hero::after {
    background:
      linear-gradient(90deg, rgba(245,247,255,1) 0%, rgba(245,247,255,.94) 56%, rgba(245,247,255,.6) 100%),
      linear-gradient(0deg, rgba(247,248,255,.7), transparent 34%);
  }
  .cit-sec-transp { grid-template-columns: minmax(0, 1fr); }
  .cit-sec-ir { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .cit-sec-transp__head { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
  .cit-sec-enquiry { grid-template-columns: minmax(0, 1fr); gap: 18px; text-align: left; }
  .cit-sec-enquiry__foot { text-align: left; }
}
@media (max-width: 620px) {
  .cit-sec-col__services { grid-template-columns: minmax(0, 1fr); }
  .cit-sec-steps { grid-template-columns: minmax(0, 1fr); }
  .cit-sec-practice__body { padding-left: 18px; }
  .cit-sec-callout { max-width: none; }
}

/* ------------------------------------------------------------------ */
/* 31. Knowledge base (article, category, search)                      */
/*     Built to the supplied knowledge-base reference: a short         */
/*     photographic hero carrying the breadcrumb, title and the        */
/*     search box, then the document beside a sticky rail of "on this  */
/*     page", related articles and support cards. The listing surfaces */
/*     (category and search) share the hero and the card vocabulary.   */
/* ------------------------------------------------------------------ */

/* --- Hero ---------------------------------------------------------- */
.cit-kb-hero {
  position: relative;
  overflow: hidden;
  background: var(--cit-pale);
  border-bottom: 1px solid var(--cit-line);
}
.cit-kb-hero__inner { position: relative; z-index: 2; padding-block: 20px 28px; }
.cit-kb-hero__copy { max-width: 560px; }

.cit-kb-hero .cit-breadcrumb { margin: 0 0 18px; font-size: 12.5px; }

.cit-kb-hero__cat {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cit-purple);
}
a.cit-kb-hero__cat:hover { color: var(--cit-purple-dark); }

/* Exempt from the section 26 type cap by carrying `.cit-hero__title`. */
.cit-kb-hero h1.cit-hero__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--cit-navy);
}
.cit-kb-hero__lead {
  max-width: 470px;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cit-text);
}

.cit-kb-hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 20px 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--cit-muted);
}
.cit-kb-hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.cit-kb-hero__meta .cit-ico { color: var(--cit-purple); flex: none; }

/* The photograph bleeds off the right edge; the handwritten line sits over
   it and the search box overlaps its lower edge, as the reference has it. */
.cit-kb-hero__frame { position: relative; margin: 0; }
.cit-kb-hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cit-kb-hero__hand {
  position: absolute; z-index: 3;
  width: 210px;
  margin: 0;
  font-size: 21px;
  line-height: 1.16;
  color: var(--cit-navy);
  transform: rotate(-4deg);
  text-shadow: 0 1px 14px rgba(255, 255, 255, .9), 0 1px 3px rgba(255, 255, 255, .95);
  pointer-events: none;
}
.cit-kb-hero__hand .cit-swoosh { display: block; width: 118px; height: 12px; margin: 5px 0 0 34px; color: var(--cit-purple); }

.cit-kb-hero__search { max-width: 430px; margin: 22px 0 0; }

@media (min-width: 981px) {
  .cit-kb-hero__inner { min-height: 232px; }
  .cit-kb-hero__frame {
    position: absolute; z-index: 1;
    top: 0; bottom: 0; right: 0; left: 60%;
    border-radius: var(--cit-r-xl) 0 0 var(--cit-r-xl);
    overflow: hidden;
  }
  /* Fade the photo into the pale ground so the copy column never fights it. */
  .cit-kb-hero__frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--cit-pale) 0%, rgba(248, 250, 255, .6) 10%, rgba(248, 250, 255, 0) 34%);
  }
  .cit-kb-hero__hand { top: 26px; right: 46px; }
  /* Floated right so it overlaps the photograph's foot rather than the copy. */
  .cit-kb-hero__search {
    position: relative; z-index: 3;
    margin: -46px 0 0 auto;
    width: min(430px, 46%);
  }
}
@media (max-width: 980px) {
  .cit-kb-hero__frame { display: none; }
  .cit-kb-hero__inner { padding-block: 18px 26px; }
}

/* --- Body layout --------------------------------------------------- */
.cit-kb-body { padding-block: 34px 56px; background: var(--cit-white); }
.cit-kb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.cit-kb-main { min-width: 0; }

.cit-kb-rail { display: grid; gap: 16px; position: sticky; top: 92px; }
.cit-kb-railcard {
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  padding: 18px;
}
.cit-kb-railcard--tint { background: var(--cit-purple-tint); border-color: transparent; }
.cit-kb-railcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.cit-kb-railcard__head .cit-ico { color: var(--cit-purple); flex: none; }
.cit-kb-railcard__head h2,
.cit-kb-railcard__head h3 {
  margin: 0;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cit-navy);
}
.cit-kb-railcard p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--cit-muted); }
.cit-kb-railcard .cit-btn { width: 100%; margin-top: 14px; justify-content: center; }

/* "On this page" rail */
.cit-kb-toc ol,
.cit-kb-toc ul { list-style: none; margin: 0; padding: 0; }
.cit-kb-toc li { position: relative; padding-left: 16px; }
.cit-kb-toc li + li { margin-top: 9px; }
.cit-kb-toc li::before {
  content: "";
  position: absolute; left: 3px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cit-line-strong);
}
.cit-kb-toc a {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cit-text);
}
.cit-kb-toc a:hover { color: var(--cit-purple); }
.cit-kb-toc li.is-current::before { background: var(--cit-purple); }
.cit-kb-toc li.is-current > a { color: var(--cit-purple); font-weight: 600; }
.cit-kb-toc ul ul { margin-top: 8px; }
.cit-kb-toc__empty { font-size: 12.5px; color: var(--cit-muted); margin: 0; }

/* Print and share sit under the contents as plain links; the Bootstrap
   re-skin would otherwise give the <button> elements a field's chrome. */
.cit-kb-toc__tools {
  display: flex; gap: 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--cit-line);
}
.cit-kb-toc__tools button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0; border: 0; background: none;
  font-size: 12.5px; font-weight: 600;
  color: var(--cit-purple);
  cursor: pointer;
}
.cit-kb-toc__tools button:hover { color: var(--cit-purple-dark); text-decoration: underline; }

/* Related-article list inside the rail */
.cit-kb-railcard__list { list-style: none; margin: 0; padding: 0; }
.cit-kb-railcard__list li + li { margin-top: 14px; }
.cit-kb-railcard__list a { display: flex; gap: 10px; align-items: flex-start; }
.cit-kb-railcard__list .cit-ico { color: var(--cit-purple); margin-top: 2px; flex: none; }
.cit-kb-railcard__list b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cit-navy);
}
.cit-kb-railcard__list a:hover b { color: var(--cit-purple); }
.cit-kb-railcard__list small {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--cit-muted);
}
.cit-kb-railcard__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13px; font-weight: 600; }

/* --- Document prose ------------------------------------------------ */
.cit-kb-prose { font-size: 14.5px; line-height: 1.7; color: var(--cit-text); }
.cit-kb-prose > *:first-child { margin-top: 0; }
.cit-kb-prose p { margin: 0 0 16px; }
.cit-kb-prose h2 {
  margin: 34px 0 10px;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--cit-navy);
}
.cit-kb-prose h3 {
  margin: 26px 0 8px;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cit-navy);
}
.cit-kb-prose h4 { margin: 22px 0 8px; font-size: 14.5px; font-weight: 700; color: var(--cit-navy); }
.cit-kb-prose ul,
.cit-kb-prose ol { margin: 0 0 16px; padding-left: 20px; }
.cit-kb-prose li { margin-bottom: 7px; }
.cit-kb-prose a { color: var(--cit-purple); text-decoration: underline; text-underline-offset: 2px; }
.cit-kb-prose a:hover { color: var(--cit-purple-dark); }
.cit-kb-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-md);
}
.cit-kb-prose pre {
  margin: 0 0 18px;
  padding: 16px;
  overflow-x: auto;
  background: var(--cit-pale-2);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-md);
  font-size: 13px;
  line-height: 1.6;
}
.cit-kb-prose pre code { background: none; padding: 0; color: inherit; }
.cit-kb-prose blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--cit-purple-tint);
  border-left: 3px solid var(--cit-purple);
  border-radius: 0 var(--cit-r-md) var(--cit-r-md) 0;
  color: var(--cit-ink);
}
.cit-kb-prose blockquote p:last-child { margin-bottom: 0; }
.cit-kb-prose table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.cit-kb-prose th,
.cit-kb-prose td { padding: 10px 12px; border: 1px solid var(--cit-line); text-align: left; }
.cit-kb-prose th { background: var(--cit-pale); font-weight: 700; color: var(--cit-navy); }
.cit-kb-prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--cit-line); }

/* Steps. `cit_kb_format_article()` groups each top-level heading and the copy
   under it into a `.cit-kb-step`, putting any image from that step in a framed
   card beside the copy — the reference's two-column rhythm. `--steps` is what
   turns the numbering on, so a reference article can drop the modifier and
   keep plain headings. */
.cit-kb-prose--steps { counter-reset: cit-kb-step; }
.cit-kb-step {
  counter-increment: cit-kb-step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 26px;
  align-items: start;
  margin: 0 0 26px;
}
.cit-kb-step__body { min-width: 0; padding-left: 44px; }
.cit-kb-step__body > h2 {
  position: relative;
  margin: 0 0 8px -44px;
  padding-left: 44px;
  min-height: 30px;
  display: flex;
  align-items: center;
  font-size: 16.5px !important;
}
.cit-kb-step__body > h2::before {
  content: counter(cit-kb-step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
  font-size: 13.5px;
  font-weight: 700;
}
.cit-kb-step__body > h3 { margin-top: 18px; }
.cit-kb-step__body > *:last-child { margin-bottom: 0; }

/* The screenshot card beside a step */
.cit-kb-step__media {
  margin: 0;
  padding: 12px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  box-shadow: var(--cit-shadow-sm);
}
.cit-kb-step__media > *:last-child { margin-bottom: 0; }
.cit-kb-step__media img {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: var(--cit-r-md);
}
.cit-kb-step__media figcaption,
.cit-kb-step__media p {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--cit-muted);
}
@media (min-width: 761px) {
  .cit-kb-step--media { grid-template-columns: minmax(0, 1fr) 250px; }
}

/* The numbering also has to work if the formatter could not run (no ext-dom),
   in which case the headings are still direct children of the document. */
.cit-kb-prose--steps > h2 {
  counter-increment: cit-kb-step;
  position: relative;
  min-height: 30px;
  padding-left: 44px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  font-size: 16.5px !important;
}
.cit-kb-prose--steps > h2::before {
  content: counter(cit-kb-step);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
  font-size: 13.5px;
  font-weight: 700;
}

/* Editorial callouts. A bare <blockquote> still renders sensibly, so existing
   article HTML is unaffected. */
/* Authored callouts sit inside the prose, so they must outrank the plain
   `.cit-kb-prose blockquote` styling above. */
.cit-kb-note,
.cit-kb-prose blockquote.cit-kb-note {
  display: flex;
  gap: 14px;
  margin: 0 0 22px;
  padding: 18px 20px;
  background: var(--cit-pale);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
}
.cit-kb-prose blockquote.cit-kb-note { border-left: 1px solid var(--cit-line); border-radius: var(--cit-r-lg); color: var(--cit-text); }
.cit-kb-note--info,
.cit-kb-prose blockquote.cit-kb-note--info { background: var(--cit-blue-soft); border-color: transparent; }
.cit-kb-note--soft,
.cit-kb-prose blockquote.cit-kb-note--soft { background: var(--cit-purple-tint); border-color: transparent; }
.cit-kb-note__ico { flex: none; color: var(--cit-purple); margin-top: 1px; line-height: 0; }
.cit-kb-note__body { min-width: 0; }
.cit-kb-note__body > h2,
.cit-kb-note__body > h3 {
  margin: 0 0 8px;
  font-size: 15.5px !important;
  font-weight: 700;
  color: var(--cit-navy);
}
.cit-kb-note__body p:last-child,
.cit-kb-note__body ul:last-child { margin-bottom: 0; }
.cit-kb-note__body ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.cit-kb-note__body li { margin-bottom: 5px; }

/* --- Tags ---------------------------------------------------------- */
/* Portuguese / Spanish reader: translation note above the article (kb/article.php). */
.cit-kb-trnote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 22px; padding: 10px 16px; border-radius: 10px; background: #f1f5f9; color: #475569; font-size: .9rem; }
.cit-kb-trnote .bi { color: #64748b; }
.cit-kb-trnote button { margin-left: auto; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.cit-kb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }

/* --- Was this helpful ---------------------------------------------- */
.cit-kb-helpful {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 30px 0 0;
  padding: 18px 22px;
  background: var(--cit-pale);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
}
.cit-kb-helpful__ico { flex: none; color: var(--cit-purple); }
.cit-kb-helpful__copy { flex: 1 1 240px; min-width: 0; }
.cit-kb-helpful__copy h2 {
  margin: 0;
  font-size: 15.5px !important;
  font-weight: 700;
  color: var(--cit-navy);
}
.cit-kb-helpful__copy p { margin: 3px 0 0; font-size: 13px; color: var(--cit-muted); }
.cit-kb-helpful__actions { display: flex; align-items: center; gap: 10px; }
.cit-kb-helpful__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 1px solid var(--cit-line-strong);
  border-radius: var(--cit-r-pill);
  background: var(--cit-white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cit-navy);
  cursor: pointer;
}
.cit-kb-helpful__btn .cit-ico { color: var(--cit-muted); }
.cit-kb-helpful__btn:hover { border-color: var(--cit-purple); color: var(--cit-purple); }
.cit-kb-helpful__btn:hover .cit-ico { color: var(--cit-purple); }
.cit-kb-helpful__btn[disabled] { opacity: .55; cursor: default; }
.cit-kb-helpful__btn.is-chosen { background: var(--cit-purple-soft); border-color: transparent; color: var(--cit-purple-dark); }
.cit-kb-helpful__btn.is-chosen .cit-ico { color: var(--cit-purple-dark); }
.cit-kb-helpful__link { margin-left: auto; font-size: 13.5px; font-weight: 600; }
.cit-kb-helpful__thanks { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--cit-green); }
.cit-kb-helpful__form { flex: 1 1 100%; display: grid; gap: 10px; }
.cit-kb-helpful__form textarea { min-height: 84px; }

/* --- Article cards (related, listings) ------------------------------ */
.cit-kb-more { margin-top: 40px; }
.cit-kb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cit-kb-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cit-kb-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cit-kb-card:hover { border-color: var(--cit-line-strong); box-shadow: var(--cit-shadow-sm); transform: translateY(-2px); }
.cit-kb-card__ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--cit-r-md);
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
}
.cit-kb-card__title { margin: 0; font-size: 14.5px !important; font-weight: 700; line-height: 1.3; color: var(--cit-navy); }
.cit-kb-card:hover .cit-kb-card__title { color: var(--cit-purple); }
.cit-kb-card__excerpt { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--cit-muted); }
.cit-kb-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--cit-muted);
}
.cit-kb-card__foot span { display: inline-flex; align-items: center; gap: 5px; }
.cit-kb-card__foot .cit-ico { color: var(--cit-purple); }

/* --- Closing strip -------------------------------------------------- */
.cit-kb-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 34px 0 0;
  padding: 20px 24px;
  background: var(--cit-purple-tint);
  border-radius: var(--cit-r-lg);
}
.cit-kb-cta__ico { flex: none; color: var(--cit-purple); }
.cit-kb-cta__copy { flex: 1 1 260px; min-width: 0; }
.cit-kb-cta__copy p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cit-navy); font-weight: 600; }
.cit-kb-cta__copy p b { color: var(--cit-purple); }
.cit-kb-cta__copy small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; color: var(--cit-muted); }
.cit-kb-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Urgent route (includes/cit-urgent.php), above incident articles -- */
.cit-kb-urgent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 26px;
  padding: 18px 22px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: var(--cit-r-lg);
}
.cit-kb-urgent__ico { flex: none; font-size: 26px; line-height: 1; color: #dc2626; }
.cit-kb-urgent__copy { flex: 1 1 280px; min-width: 0; }
.cit-kb-urgent__copy .cit-kb-urgent__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.3; color: #991b1b; }
.cit-kb-urgent__copy p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--cit-navy); }
.cit-kb-urgent__copy small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--cit-muted); }
.cit-kb-urgent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cit-btn.cit-kb-urgent__wa { background: #128c7e; border-color: #128c7e; color: #fff; gap: 8px; }
.cit-btn.cit-kb-urgent__wa:hover { background: #0e6f64; border-color: #0e6f64; color: #fff; }
.cit-kb-urgent .cit-btn--outline { background: #fff; }
@media print {
  .cit-kb-urgent__actions { display: none; }
}

/* --- Listing surfaces (category + search) --------------------------- */
.cit-kb-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cit-kb-cat {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cit-kb-cat:hover { border-color: var(--cit-line-strong); box-shadow: var(--cit-shadow-sm); }
.cit-kb-cat__ico {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--cit-r-md);
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
  font-size: 20px;
}
.cit-kb-cat__body { min-width: 0; }
.cit-kb-cat__body h3 { margin: 0 0 5px; font-size: 15px !important; font-weight: 700; color: var(--cit-navy); }
.cit-kb-cat__body p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--cit-muted); }
.cit-kb-cat__count { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--cit-purple); }

/* The results header: heading left, sort control and the count right. The
   design system's `.cit-section-head` is a grid with named areas, so the
   toolbar gets its own row rather than being auto-placed into one. */
.cit-kb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 20px;
}
.cit-kb-head > div:first-child { min-width: 0; }
.cit-kb-head h2 { margin: 0; }
.cit-kb-toolbar { display: flex; align-items: center; gap: 10px; }
.cit-kb-toolbar .cit-label { margin: 0; font-size: 12.5px; color: var(--cit-muted); white-space: nowrap; }
.cit-kb-toolbar .cit-input { height: 38px; width: auto; min-width: 132px; font-size: 13px; }

.cit-kb-results { display: grid; gap: 10px; }
.cit-kb-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cit-kb-result:hover { border-color: var(--cit-purple); box-shadow: var(--cit-shadow-sm); }
.cit-kb-result__ico {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--cit-r-sm);
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
}
.cit-kb-result__body { flex: 1 1 auto; min-width: 0; }
.cit-kb-result__title { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--cit-navy); }
.cit-kb-result:hover .cit-kb-result__title { color: var(--cit-purple); }
.cit-kb-result__path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; color: var(--cit-muted); }
.cit-kb-result__path b { font-weight: 600; color: var(--cit-purple); }
.cit-kb-result__excerpt { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--cit-muted); }
.cit-kb-result__end { display: flex; align-items: center; gap: 14px; flex: none; font-size: 11.5px; color: var(--cit-muted); }
.cit-kb-result__end span { display: inline-flex; align-items: center; gap: 5px; }
.cit-kb-result__end .cit-ico { color: var(--cit-purple); }

.cit-kb-none {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 26px;
  align-items: start;
  padding: 26px 28px;
  background: var(--cit-purple-tint);
  border-radius: var(--cit-r-xl);
}
.cit-kb-none h2 { margin: 0 0 14px; font-size: 22px !important; font-weight: 700; color: var(--cit-navy); }
.cit-kb-none__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cit-kb-none__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--cit-text); }
.cit-kb-none__list .cit-ico { flex: none; margin-top: 2px; color: var(--cit-purple); }
.cit-kb-none__aside { display: grid; gap: 14px; }

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 1080px) {
  .cit-kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-kb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .cit-kb-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cit-kb-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-kb-none { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cit-kb-cards,
  .cit-kb-cats,
  .cit-kb-rail { grid-template-columns: minmax(0, 1fr); }
  .cit-kb-hero__meta { gap: 8px 18px; }
  .cit-kb-result { flex-wrap: wrap; }
  .cit-kb-result__end { width: 100%; padding-left: 48px; }
  .cit-kb-helpful__link { margin-left: 0; }
  .cit-kb-prose--steps > h2 { padding-left: 38px; }
}

/* --- Print ---------------------------------------------------------- */
@media print {
  .cit-kb-rail,
  .cit-kb-helpful,
  .cit-kb-cta,
  .cit-kb-hero__search,
  .cit-kb-hero__frame,
  .cit-kb-more { display: none !important; }
  .cit-kb-grid { display: block; }
  .cit-kb-prose { font-size: 11.5pt; }
}

/* The reference's hero search carries a labelled button rather than the
   design system's icon-sized submit, so the field needs the room for it. */
.cit-kb-hero__search .cit-input { padding-right: 106px; }
.cit-kb-hero__search .cit-search__submit,
.cit-kb-none .cit-search__submit {
  width: auto; height: 36px;
  padding: 0 18px;
  border-radius: var(--cit-r-sm);
  background: var(--cit-purple);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.cit-kb-hero__search .cit-search__submit:hover,
.cit-kb-none .cit-search__submit:hover { background: var(--cit-purple-dark); }
.cit-kb-none .cit-input { padding-right: 106px; }

/* --- Index (/kb/) ---------------------------------------------------- */
/* The index carries the same hero as the article and listing pages, but the
   reference gives it the full-width search box in the copy column rather than
   the narrow one floated over the photograph's foot. */
.cit-kb-hero--index .cit-kb-hero__inner { padding-block: 22px 34px; }
.cit-kb-hero--index .cit-kb-hero__copy { max-width: 640px; }
.cit-kb-hero--index h1.cit-hero__title { font-size: clamp(30px, 4vw, 46px); }
.cit-kb-hero--index .cit-kb-hero__lead { max-width: 560px; }
/* Undo the article hero's floated, photo-overlapping search box. */
.cit-kb-hero--index .cit-kb-hero__search {
  position: relative;   /* the submit button is absolutely placed inside it */
  width: auto;
  max-width: 560px;
  margin: 20px 0 0;
}
@media (min-width: 981px) {
  .cit-kb-hero--index .cit-kb-hero__inner { min-height: 320px; }
}

.cit-kb-hero__pop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--cit-muted);
}
.cit-kb-hero__pop a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--cit-line);
  border-radius: 999px;
  background: var(--cit-white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cit-purple);
}
.cit-kb-hero__pop a:hover { border-color: var(--cit-purple); background: var(--cit-purple-soft); }

/* Most-helpful articles beside the recently-updated rail. */
.cit-kb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: 30px 34px;
  align-items: start;
}
.cit-kb-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* The reference labels these cards with the category rather than its icon. */
.cit-kb-card__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cit-purple-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cit-purple);
}

.cit-kb-latest .cit-h2 { margin: 0 0 16px; }
.cit-kb-updates { list-style: none; margin: 0; padding: 0; }
.cit-kb-updates li + li { border-top: 1px solid var(--cit-line); }
.cit-kb-updates a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
}
.cit-kb-updates__ico {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: var(--cit-r-sm);
  background: var(--cit-purple-soft);
  color: var(--cit-purple);
}
.cit-kb-updates__body { min-width: 0; }
.cit-kb-updates__body b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cit-navy);
}
.cit-kb-updates a:hover .cit-kb-updates__body b { color: var(--cit-purple); }
.cit-kb-updates__body small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--cit-muted); }
.cit-kb-updates__more { margin-top: 14px; }

/* The strip already sits in its own section on the index, so it needs no
   pull-down from a block above it. */
.cit-kb-cta--flush { margin-top: 0; }

@media (max-width: 1080px) {
  .cit-kb-split { grid-template-columns: minmax(0, 1fr); }
  .cit-kb-latest { border-top: 1px solid var(--cit-line); padding-top: 24px; }
}
@media (max-width: 700px) {
  .cit-kb-cards--2 { grid-template-columns: minmax(0, 1fr); }
  .cit-kb-hero--index .cit-kb-hero__inner { padding-block: 18px 26px; }
}

/* ------------------------------------------------------------------ */
/* 29. Proposals                                                       */
/*     Three surfaces share this block: the email gate (/proposals),   */
/*     the token-gated document view (/proposal/{token}) and the       */
/*     client-area list (/members/proposals). Status pills and the     */
/*     tick/step lists are common to all three, so they live first.    */
/* ------------------------------------------------------------------ */

/* Status pills ----------------------------------------------------- */
.cit-prop__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--cit-r-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -.005em;
  white-space: nowrap;
}
.cit-prop__pill.is-awaiting { background: var(--cit-orange-soft); color: var(--cit-orange-ink); }
.cit-prop__pill.is-viewed   { background: var(--cit-blue-soft);   color: var(--cit-navy); }
.cit-prop__pill.is-changes  { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }
.cit-prop__pill.is-accepted { background: var(--cit-green-soft);  color: var(--cit-green-ink); }
.cit-prop__pill.is-declined,
.cit-prop__pill.is-expired  { background: var(--cit-red-soft);    color: var(--cit-red-ink); }
.cit-prop__pill.is-draft,
.cit-prop__pill.is-archived { background: var(--cit-pale-2);      color: var(--cit-muted); }

.cit-prop__dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex: 0 0 10px; margin-top: 5px;
}
.cit-prop__dot.is-awaiting { background: var(--cit-orange); }
.cit-prop__dot.is-viewed   { background: var(--cit-blue); }
.cit-prop__dot.is-changes  { background: var(--cit-purple); }
.cit-prop__dot.is-accepted { background: var(--cit-green); }
.cit-prop__dot.is-declined,
.cit-prop__dot.is-expired  { background: var(--cit-red); }
.cit-prop__dot.is-draft,
.cit-prop__dot.is-archived { background: var(--cit-muted-2); }

/* Tick lists, tables and step lists -------------------------------- */
.cit-prop__ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.cit-prop__ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--cit-text); }
.cit-prop__ticks li .cit-ico { flex: none; margin-top: 2px; color: var(--cit-green); }
.cit-prop__ticks--minus li .cit-ico { color: var(--cit-muted-2); }

.cit-prop__subhead { font-size: 13px; font-weight: 700; color: var(--cit-navy); margin: 0 0 11px; }

.cit-prop__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cit-prop__table td { padding: 9px 0; border-bottom: 1px solid var(--cit-line); vertical-align: top; color: var(--cit-text); }
.cit-prop__table tfoot td {
  border-bottom: 0; border-top: 2px solid var(--cit-line-strong);
  padding-top: 12px; font-weight: 700; color: var(--cit-navy);
}
.cit-prop__amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cit-prop__qty { color: var(--cit-muted); }
.cit-prop__itemdesc { display: block; font-size: 12.5px; color: var(--cit-muted); margin-top: 2px; }
.cit-prop__tablenote {
  margin: 14px 0 0; padding: 11px 13px;
  background: var(--cit-pale); border-radius: var(--cit-r-sm);
  font-size: 12.5px; line-height: 1.5; color: var(--cit-muted);
}

.cit-prop__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; counter-reset: none; }
.cit-prop__steps li { display: flex; gap: 12px; align-items: flex-start; }
.cit-prop__stepno {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cit-purple); color: var(--cit-white);
  font-size: 12px; font-weight: 700;
}
.cit-prop__stepk { margin: 0; font-size: 14px; font-weight: 700; color: var(--cit-navy); line-height: 1.3; }
.cit-prop__stepv { margin: 2px 0 0; font-size: 13px; color: var(--cit-muted); line-height: 1.45; }

/* --- Email gate (/proposals) --------------------------------------- */
.cit-propgate__form { margin-top: 22px; }
.cit-propgate__submit { width: 100%; justify-content: center; margin-top: 4px; }
.cit-propgate__done { text-align: center; }
.cit-propgate__tick {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--cit-green-soft); color: var(--cit-green-ink);
}
.cit-propgate__hint { font-size: 13px; color: var(--cit-muted); line-height: 1.5; margin: 14px 0 0; }
.cit-propgate__again { margin-top: 20px; }

/* --- Document view (/proposal/{token}) ----------------------------- */
.cit-propbar {
  background: var(--cit-white);
  border-bottom: 1px solid var(--cit-line);
  padding: 14px 0;
}
.cit-propbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cit-propbar__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', var(--cit-font, system-ui), sans-serif;
  font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: -.02em;
  color: var(--cit-brand-navy); text-decoration: none;
}
.cit-propbar__logo picture { display: block; width: 36px; height: 36px; flex: none; }
.cit-propbar__right { display: flex; align-items: center; gap: 22px; }
.cit-propbar__link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--cit-text); text-decoration: none;
}
.cit-propbar__link:hover { color: var(--cit-purple); }
.cit-propbar__ref {
  font-size: 13px; font-weight: 700; color: var(--cit-muted);
  padding-left: 22px; border-left: 1px solid var(--cit-line);
}

.cit-prop { padding: 34px 0 60px; background: var(--cit-pale); }
.cit-prop__flash { margin-bottom: 22px; }
.cit-prop__head { margin-bottom: 26px; }
.cit-prop__lead { font-size: 16px; line-height: 1.6; color: var(--cit-text); margin: 12px 0 0; }

.cit-prop__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 4px 26px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
}
.cit-prop__meta-item { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.cit-prop__meta-k { margin: 0; font-size: 12.5px; color: var(--cit-muted); line-height: 1.35; }
.cit-prop__meta-v { margin: 3px 0 0; font-size: 14px; font-weight: 700; color: var(--cit-navy); line-height: 1.35; }
.cit-prop__meta-note { font-weight: 500; color: var(--cit-muted); }

.cit-prop__grid { display: grid; gap: 18px; }

.cit-prop__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .9fr);
  gap: 26px;
  padding: 26px;
  align-items: start;
}
.cit-prop__summary-main { display: flex; gap: 15px; align-items: flex-start; }
.cit-prop__summary-icon { flex: none; }
.cit-prop__summary-sub { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--cit-text); }
.cit-prop__price-k { margin: 0; font-size: 12.5px; color: var(--cit-muted); }
.cit-prop__price-v { margin: 4px 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--cit-navy); line-height: 1.1; }
.cit-prop__price-m { margin: 4px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--cit-navy); }
.cit-prop__summary-actions { display: grid; gap: 10px; }
.cit-prop__summary-actions .cit-btn { justify-content: center; }

.cit-prop__note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0; padding: 14px 18px;
  background: var(--cit-blue-soft);
  border-radius: var(--cit-r-md);
  font-size: 13.5px; line-height: 1.55; color: var(--cit-navy);
}
.cit-prop__note .cit-ico { flex: none; margin-top: 2px; }

.cit-prop__intro { padding: 24px 26px; font-size: 15px; line-height: 1.65; color: var(--cit-text); }

.cit-prop__cols {
  display: grid;
  /* 260px lands on exactly four columns at the 1180px content width, so the
     account-manager card joins the panel row instead of orphaning below it. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}
.cit-prop__panel { padding: 22px 24px; }
.cit-prop__panel--wide { grid-column: 1 / -1; }
.cit-prop__panel-title {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 16px; font-weight: 700; color: var(--cit-navy);
}
.cit-prop__panel-title .cit-ico { color: var(--cit-purple); }
.cit-prop__scopegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cit-prop__terms { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--cit-text); }

.cit-prop__am { text-align: center; }
.cit-prop__amphoto { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; }
.cit-prop__amname { margin: 0; font-size: 16px; font-weight: 700; color: var(--cit-navy); }
.cit-prop__amrole { margin: 2px 0 12px; font-size: 13px; color: var(--cit-muted); }
.cit-prop__amcontact { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0 0 16px; font-size: 13.5px; }
.cit-prop__amcontact a { color: var(--cit-purple); text-decoration: none; word-break: break-all; }

.cit-prop__decide { padding: 30px; }
.cit-prop__decide--done { text-align: center; }
.cit-prop__decide-lead { margin: 10px 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--cit-text); }
.cit-prop__form { max-width: 520px; }
.cit-prop__legal { margin: 14px 0 0; font-size: 12.5px; color: var(--cit-muted); line-height: 1.5; }
.cit-prop__changes { padding: 24px 26px; }
.cit-prop__tick {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--cit-green-soft); color: var(--cit-green-ink);
}

.cit-prop-dead { text-align: center; max-width: 560px; }
.cit-prop-dead__icon { margin: 0 auto 20px; }
.cit-prop-dead__text { margin: 14px 0 26px; font-size: 15.5px; line-height: 1.6; color: var(--cit-text); }

.cit-propfoot { background: var(--cit-white); border-top: 1px solid var(--cit-line); padding: 22px 0; }
.cit-propfoot__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cit-propfoot p { margin: 0; font-size: 13px; color: var(--cit-muted); }
.cit-propfoot__links { display: flex; gap: 18px; }
.cit-propfoot__links a { color: var(--cit-muted); text-decoration: none; }
.cit-propfoot__links a:hover { color: var(--cit-purple); }

/* --- Client area list (/members/proposals) ------------------------- */
.cit-proplist { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.cit-proplist__rail { display: grid; gap: 16px; position: sticky; top: 20px; }

.cit-propfilters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
}
.cit-propfilters__search { position: relative; flex: 1 1 260px; display: block; }
.cit-propfilters__search .cit-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--cit-muted-2); pointer-events: none; }
.cit-propfilters__search .cit-input { padding-left: 38px; min-height: 40px; }
.cit-propfilters__sort { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--cit-muted); white-space: nowrap; }
.cit-propfilters__sort .cit-select { min-height: 40px; width: auto; }

.cit-propchips { display: flex; flex-wrap: wrap; gap: 7px; }
.cit-propchip {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: var(--cit-r-pill);
  background: var(--cit-pale); color: var(--cit-text);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background var(--cit-t), color var(--cit-t);
}
.cit-propchip:hover { background: var(--cit-pale-2); }
.cit-propchip.is-active { background: var(--cit-purple); color: var(--cit-white); }

.cit-propcard {
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  margin-bottom: 12px;
  overflow: hidden;
}
.cit-propcard.is-live { border-color: var(--cit-purple-soft); }
.cit-propcard[open] { box-shadow: var(--cit-shadow-sm); }
.cit-propcard__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.cit-propcard__head::-webkit-details-marker { display: none; }
.cit-propcard__icon { flex: none; }
.cit-propcard__id { display: grid; gap: 4px; min-width: 0; }
.cit-propcard__ref { font-size: 12.5px; font-weight: 700; color: var(--cit-muted); }
.cit-propcard__id .cit-prop__pill { justify-self: start; }
.cit-propcard__title { font-size: 15.5px; font-weight: 700; color: var(--cit-navy); line-height: 1.35; }
.cit-propcard__sub { font-size: 13.5px; color: var(--cit-text); line-height: 1.5; }
.cit-propcard__dates { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--cit-muted); align-items: center; }
.cit-propcard__dates .cit-ico { color: var(--cit-muted-2); vertical-align: -2px; }
.cit-propcard__value { text-align: right; white-space: nowrap; }
.cit-propcard__value-k { display: block; font-size: 12px; color: var(--cit-muted); }
.cit-propcard__value-v { display: block; margin-top: 3px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--cit-navy); }
.cit-propcard__chev { color: var(--cit-muted-2); transition: transform var(--cit-t); align-self: center; }
.cit-propcard[open] .cit-propcard__chev { transform: rotate(180deg); }

.cit-propcard__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  padding: 4px 20px 22px;
  border-top: 1px solid var(--cit-line);
  margin-top: 2px;
  padding-top: 20px;
}
.cit-propcard__h { margin: 0 0 13px; font-size: 13.5px; font-weight: 700; color: var(--cit-navy); }
.cit-propcard__actions { grid-column: 1 / -1; }

.cit-propempty { text-align: center; padding: 44px 26px; }
.cit-propempty .cit-icon-box { margin: 0 auto 16px; }
.cit-propempty__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--cit-navy); }
.cit-propempty__text { margin: 7px 0 0; font-size: 14px; color: var(--cit-muted); }

.cit-proprail { padding: 20px; }
.cit-proprail__title { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; font-size: 15px; font-weight: 700; color: var(--cit-navy); }
.cit-proprail__title .cit-ico { color: var(--cit-purple); }
.cit-proprail__am { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.cit-proprail__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.cit-proprail__amname { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--cit-navy); }
.cit-proprail__amrole { margin: 1px 0 0; font-size: 12.5px; color: var(--cit-muted); }
.cit-proprail__line { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 13px; }
.cit-proprail__line a { color: var(--cit-purple); text-decoration: none; word-break: break-all; }
.cit-proprail .cit-btn { width: 100%; justify-content: center; }

.cit-propguide { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 15px; }
.cit-propguide li { display: flex; gap: 12px; align-items: flex-start; }
.cit-propguide li > span {
  flex: none; width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cit-purple-soft); color: var(--cit-purple-dark);
  font-size: 12px; font-weight: 700;
}
.cit-propguide li p:first-child { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--cit-navy); line-height: 1.3; }
.cit-propguide li p:last-child { margin: 3px 0 0; font-size: 12.5px; color: var(--cit-muted); line-height: 1.45; }

.cit-propactivity { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cit-propactivity li { display: flex; gap: 10px; align-items: flex-start; }
.cit-propactivity__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cit-purple); margin-top: 5px; }
.cit-propactivity li > div { flex: 1; min-width: 0; }
.cit-propactivity__k { margin: 0; font-size: 13px; font-weight: 600; color: var(--cit-navy); line-height: 1.35; }
.cit-propactivity__v { margin: 2px 0 0; font-size: 12px; color: var(--cit-muted); }
.cit-propactivity__t { font-size: 11.5px; color: var(--cit-muted-2); white-space: nowrap; }

@media (max-width: 1080px) {
  .cit-proplist { grid-template-columns: minmax(0, 1fr); }
  .cit-proplist__rail { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .cit-prop__summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cit-propcard__head { grid-template-columns: auto minmax(0, 1fr); }
  .cit-propcard__value { grid-column: 2; text-align: left; }
  .cit-propcard__chev { display: none; }
  .cit-propbar__ref { display: none; }
  .cit-prop__price-v { font-size: 26px; }
}

/* Print: the "Download PDF" button prints the document view, so drop the
   furniture that has no meaning on paper. */
@media print {
  .cit-propbar, .cit-propfoot, .cit-prop__summary-actions,
  .cit-prop__decide, .cit-prop__changes, .cit-prop__note { display: none !important; }
  .cit-prop { background: #fff; padding: 0; }
  .cit-prop__meta, .cit-card { border-color: #ddd !important; box-shadow: none !important; break-inside: avoid; }
}

/* =====================================================================
   Public proposal — corrections measured off client-propsals-view.png
   ---------------------------------------------------------------------
   Three things the built page did not have: the photographic head band,
   the account-manager card sitting beside the summary rather than inside
   the panel row, and the questions accordion that makes that row the
   comp's four columns.
   ===================================================================== */

/* --- Head band --------------------------------------------------------- */
/* Same construction as the client area's page band: the photograph bleeds
   off the right and a wash carries it back to the page colour, so the
   title never sits on busy pixels. */
.cit-prop__band {
  position: relative;
  overflow: hidden;
  border-radius: var(--cit-r-lg);
  background: var(--cit-white);
  border: 1px solid var(--cit-line);
  margin-bottom: 22px;
}
.cit-prop__band-photo {
  position: absolute; inset: 0 0 0 auto;
  width: 62%; height: 100%;
  object-fit: cover; object-position: center 42%;
  z-index: 0;
}
.cit-prop__band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    var(--cit-white) 0%, var(--cit-white) 34%,
    rgba(255, 255, 255, .86) 48%, rgba(255, 255, 255, .35) 68%, rgba(255, 255, 255, 0) 88%);
  z-index: 1;
}
.cit-prop__band-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 32px;
  min-height: 168px;
}
.cit-prop__band-hand {
  margin: 0; flex: none;
  font-family: var(--cit-hand);
  font-weight: 700; font-size: 27px; line-height: 1.16;
  color: var(--cit-purple-dark);
  transform: rotate(-4deg);
  text-align: center;
}
@media (max-width: 767px) {
  .cit-prop__band-photo { width: 100%; opacity: .3; }
  .cit-prop__band::after { background: linear-gradient(180deg, var(--cit-white) 30%, rgba(255,255,255,.82) 100%); }
  .cit-prop__band-inner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .cit-prop__band-hand { font-size: 22px; align-self: flex-end; }
}

/* --- Summary beside the account manager -------------------------------- */
.cit-prop__top {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.cit-prop__top .cit-prop__am { height: 100%; }
@media (max-width: 900px) {
  .cit-prop__top { grid-template-columns: minmax(0, 1fr); }
}

/* The intro is a lead line under the band, not a card of its own. */
.cit-prop__intro {
  margin: 0; padding: 0 2px;
  font-size: 15px; line-height: 1.65; color: var(--cit-text);
}

/* --- Questions accordion ----------------------------------------------- */
.cit-prop__faq { display: flex; flex-direction: column; gap: 8px; }
.cit-prop__faqitem {
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-sm);
  background: var(--cit-white);
  overflow: hidden;
}
.cit-prop__faqitem summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px;
  font-size: 12.5px; font-weight: 600; color: var(--cit-navy);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.cit-prop__faqitem summary::-webkit-details-marker { display: none; }
.cit-prop__faqitem summary:hover { background: var(--cit-pale); }
.cit-prop__faqitem summary .bi { flex: none; color: var(--cit-muted-2); font-size: 13px; transition: transform var(--cit-t); }
.cit-prop__faqitem[open] summary .bi { transform: rotate(180deg); color: var(--cit-purple); }
.cit-prop__faqitem[open] summary { border-bottom: 1px solid var(--cit-line); }
.cit-prop__faqitem p { margin: 0; padding: 11px 13px; font-size: 12.5px; line-height: 1.6; color: var(--cit-text); }

/* --- "Ready to move forward?" card ------------------------------------- */
.cit-prop__ready { display: flex; flex-direction: column; }
.cit-prop__readytext { margin: 0 0 auto; padding-bottom: 16px; font-size: 13.5px; line-height: 1.6; color: var(--cit-text); }
.cit-prop__ready .cit-btn { justify-content: center; }

/* --- Corrections after rendering the band and the top row -------------- */
/* The handwritten line had drifted to the far right of the band, where the
   photograph is at full strength and navy ink on it is unreadable. It sits
   just right of the title block now, over the washed part, and the wash
   reaches further across to carry it. */
.cit-prop__band::after {
  background: linear-gradient(90deg,
    var(--cit-white) 0%, var(--cit-white) 42%,
    rgba(255, 255, 255, .90) 56%, rgba(255, 255, 255, .55) 72%, rgba(255, 255, 255, 0) 92%);
}
.cit-prop__band-inner { justify-content: flex-start; gap: clamp(20px, 5vw, 76px); }
.cit-prop__band-inner > div:first-child { flex: 0 1 auto; min-width: 0; }

/* The summary card lost a third of its width when the account-manager card
   moved up beside it, so the title needs the comp's smaller setting and the
   first column needs more of the remaining space. */
.cit-prop__top .cit-prop__summary { grid-template-columns: minmax(0, 1.9fr) minmax(0, .8fr) minmax(0, .95fr); gap: 20px; }
.cit-prop__top .cit-prop__summary .cit-h2 { font-size: 24px; line-height: 1.2; }
.cit-prop__top .cit-prop__price-v { font-size: 26px; }

/* In a 260px column the amount sat hard against the item name. */
.cit-prop__table td:first-child { padding-right: 12px; }

/* Scope takes two of the four columns so the CTA and the reassurance card
   sit beside it on one row, as the comp's last row is drawn. It falls back
   to full width as soon as the grid drops below four columns. */
.cit-prop__panel--half { grid-column: span 2; }
@media (max-width: 1100px) { .cit-prop__panel--half { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ */
/* 32. FAQ band (service-page archetype)                               */
/*     Native <details>, so the open/close state, keyboard handling    */
/*     and the expanded semantics come from the browser. Styled as     */
/*     one bordered surface with hairline dividers, the way the        */
/*     design's list panels are drawn — not as a stack of cards.       */
/* ------------------------------------------------------------------ */
.cit-faq__list {
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  background: var(--cit-surface);
  overflow: hidden;
}
.cit-faq__item + .cit-faq__item { border-top: 1px solid var(--cit-line-soft); }

.cit-faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.45;
  color: var(--cit-navy);
  list-style: none;
  transition: background var(--cit-t), color var(--cit-t);
}
.cit-faq__q::-webkit-details-marker { display: none; }
.cit-faq__q:hover { background: var(--cit-pale); color: var(--cit-purple); }
.cit-faq__q:focus-visible {
  outline: 2px solid var(--cit-purple);
  outline-offset: -2px;
  border-radius: var(--cit-r-sm);
}
.cit-faq__q .cit-ico,
.cit-faq__q svg {
  flex: none;
  margin-top: 3px;
  color: var(--cit-muted);
  transition: transform var(--cit-t), color var(--cit-t);
}
.cit-faq__item[open] > .cit-faq__q { color: var(--cit-navy); }
.cit-faq__item[open] > .cit-faq__q svg { transform: rotate(180deg); color: var(--cit-purple); }

.cit-faq__a { padding: 0 24px 22px; max-width: 78ch; }
.cit-faq__a p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--cit-text); }
.cit-faq__a p:last-child { margin-bottom: 0; }
.cit-faq__a ul { margin: 0 0 12px; padding-left: 20px; }
.cit-faq__a li { font-size: 15px; line-height: 1.65; color: var(--cit-text); margin-bottom: 6px; }

.cit-faq__foot {
  margin: 20px 0 0;
  font-size: 15px;
  color: var(--cit-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .cit-faq__q { padding: 16px 18px; font-size: 15px; gap: 16px; }
  .cit-faq__a { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cit-faq__q,
  .cit-faq__q svg { transition: none; }
}

/* ------------------------------------------------------------------ */
/* 33. Comparison tables (Service Standards, Managed IT plans)         */
/*     Built on the base .cit-table in section 9; these add the card   */
/*     surround, a row-header column and the priority chip.            */
/* ------------------------------------------------------------------ */
.cit-table-wrap--card {
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  background: var(--cit-surface);
}
.cit-table--std,
.cit-table--compare {
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  overflow: hidden;
  background: var(--cit-surface);
}
/* A row header is a heading, not a data cell, so it needs the padding and
   alignment the base rule only gives to <td>. */
.cit-table tbody th {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--cit-line);
  vertical-align: middle;
  font-weight: 600;
  color: var(--cit-navy);
}
.cit-table tbody tr:last-child th { border-bottom: 0; }
.cit-table__muted { color: var(--cit-muted); }

/* Priority chip (P1–P4). Uses the status palette so it reads the same as the
   pills elsewhere, and inherits the dark-mode token swap for free. */
.cit-pri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: var(--cit-r-sm);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.cit-pri--danger { background: var(--cit-red-soft);    color: var(--cit-red-ink); }
.cit-pri--warn   { background: var(--cit-orange-soft); color: var(--cit-orange-ink); }
.cit-pri--info   { background: var(--cit-blue-soft);   color: var(--cit-blue); }
.cit-pri--ok     { background: var(--cit-green-soft);  color: var(--cit-green-ink); }
.cit-pri__name { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--cit-navy); }

.cit-table--std { table-layout: fixed; min-width: 860px; }
.cit-table--std th:first-child { width: 116px; }
.cit-table--std td { vertical-align: top; line-height: 1.5; }
.cit-table--std tbody th { vertical-align: top; }

.cit-table-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cit-muted);
  max-width: 80ch;
}
.cit-table-note svg { flex: none; margin-top: 2px; color: var(--cit-muted-2); }

/* Plan comparison: a feature per row, a plan per column. */
.cit-table--compare { min-width: 720px; }
.cit-table--compare thead th:not(:first-child),
.cit-table--compare tbody td { text-align: center; }
.cit-table--compare thead th:not(:first-child) {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cit-navy);
}
.cit-table--compare tbody th { width: 38%; font-weight: 600; }
.cit-table--compare .cit-tick  { color: var(--cit-green); }
.cit-table--compare .cit-dash  { color: var(--cit-line-strong); }
/* The recommended column gets a tint rather than a border, so the table keeps
   its single-surface look. */
.cit-table--compare .is-featured { background: var(--cit-purple-tint); }
.cit-table--compare thead th.is-featured { background: var(--cit-purple-soft); color: var(--cit-purple-dark); }

.cit-plan-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: var(--cit-r-pill);
  background: var(--cit-purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .cit-table--std,
  .cit-table--compare { font-size: 12.5px; }
}

/* ------------------------------------------------------------------ */
/* 34. Labelled UI illustrations (Client Portal page)                  */
/*     Until sanitised portal screenshots exist, the page shows mock   */
/*     panels built from the real components. They must never be       */
/*     mistakable for a real client's data, so they carry a visible    */
/*     "Illustration" tag and a footnote.                              */
/* ------------------------------------------------------------------ */
.cit-mock { position: relative; }
.cit-mock__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  padding: 3px 9px;
  border-radius: var(--cit-r-pill);
  background: var(--cit-pale-2);
  border: 1px solid var(--cit-line);
  color: var(--cit-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
/* The tag sits where a panel badge would, so give the heading room for both. */
.cit-mock .cit-between { padding-right: 104px; }
.cit-mock__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--cit-line-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cit-muted-2);
}

.cit-portal-shot {
  margin: 0;
  border: 1px solid var(--cit-line);
  border-radius: var(--cit-r-lg);
  overflow: hidden;
  background: var(--cit-surface);
  box-shadow: var(--cit-shadow-sm);
}
.cit-portal-shot img { display: block; width: 100%; height: auto; }

@media (max-width: 640px) {
  .cit-mock .cit-between { padding-right: 0; }
  .cit-mock__tag { position: static; display: inline-block; margin-bottom: 10px; }
}

/* ------------------------------------------------------------------ */
/* 35. Case study cards                                                */
/*     Index cards for /case-studies. The detail page reuses the        */
/*     service-page archetype, so only the listing needs styling.      */
/* ------------------------------------------------------------------ */
.cit-case { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.cit-case__media { border-radius: 0; border: 0; border-bottom: 1px solid var(--cit-line); }
.cit-case__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.cit-case__body h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.3; color: var(--cit-navy); }
.cit-case__body h3 a { color: inherit; text-decoration: none; }
.cit-case__body h3 a:hover { color: var(--cit-purple); }
.cit-case__body > p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--cit-text); }
.cit-case__body > .cit-link { margin-top: auto; padding-top: 16px; }

.cit-case__meta {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.cit-case__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--cit-muted);
}
.cit-case__meta svg { flex: none; color: var(--cit-muted-2); }

/* ------------------------------------------------------------------ */
/* 36. Two-column mega panels                                          */
/*     Services, Solutions and About each list eight or nine items.     */
/*     One column would run past the fold; two keeps the panel a       */
/*     readable block rather than a wall.                              */
/*                                                                     */
/*     Guarded to the desktop breakpoint on purpose: below 1080px the  */
/*     nav collapses and section 17 turns the panel into a stacked     */
/*     accordion, which this must not override.                        */
/* ------------------------------------------------------------------ */
@media (min-width: 1081px) {
  .cit-nav__panel--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(238px, 1fr));
    gap: 0 6px;
    min-width: 520px;
  }
  /* A rule inside a grid should span both tracks rather than sit in one. */
  .cit-nav__panel--2col > li:has(hr) { grid-column: 1 / -1; }

  /* Panels that would otherwise run off the right edge of the viewport
     are anchored from their right instead. The last two top-level items
     with a panel are far enough across for that to matter. */
  .cit-nav__item:nth-last-child(-n+2) > .cit-nav__panel { left: auto; right: -18px; }
}

/* ------------------------------------------------------------------ */
/* 37. Footer directory additions                                      */
/*     Contact details moved into the brand block so the five link     */
/*     columns can carry the full site directory.                      */
/* ------------------------------------------------------------------ */
.cit-footer__contact { list-style: none; margin: 18px 0 0; padding: 0; }
.cit-footer__contact li { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.cit-footer__contact .bi { color: var(--cit-purple); font-size: 13px; }
.cit-footer__contact a { font-size: 12.5px; line-height: 19px; color: var(--cit-text); }
.cit-footer__contact a:hover { color: var(--cit-purple); }

/* A second heading inside a column needs air above it, or it reads as part
   of the list it follows. */
.cit-footer__h4-gap { margin-top: 24px !important; }

/* Solutions menu: two titled columns (by need / by sector). */
.cit-nav__group > ul { list-style: none; margin: 0; padding: 0; }
.cit-nav__group-title {
  margin: 4px 12px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--cit-muted);
}
.cit-nav__group + .cit-nav__group .cit-nav__group-title { margin-top: 10px; }
@media (min-width: 1081px) {
  .cit-nav__panel--groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 0 6px;
    min-width: 540px;
  }
  .cit-nav__group + .cit-nav__group .cit-nav__group-title { margin-top: 4px; }
}

/* ------------------------------------------------------------------ */
/* 38. Status panel without the donut                                  */
/*     The uptime donut published a 99.9% figure with no measurement    */
/*     behind it and was removed, so the panel's two-column grid        */
/*     collapses to one and the rows take the full width.               */
/* ------------------------------------------------------------------ */
.cit-status-panel--nodonut .cit-status-panel__grid { grid-template-columns: minmax(0, 1fr); }
.cit-status-panel--nodonut .cit-row { padding: 11px 0; font-size: 13.5px; }

/* ------------------------------------------------------------------ */
/* 39. Narrow-screen row wrapping                                      */
/*     Panel rows are label-left / status-right. The status pill does   */
/*     not wrap, so on a phone a long label and a long pill cannot      */
/*     share one line -- let the pill drop underneath instead of        */
/*     forcing the panel wider than the screen.                         */
/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
  .cit-row { flex-wrap: wrap; row-gap: 6px; }
  .cit-row__label { flex: 1 1 auto; min-width: 0; }
  .cit-row .cit-status { margin-left: 30px; }
}

/* ------------------------------------------------------------------ */
/* 40. Long inline links on narrow screens                             */
/*     .cit-link is nowrap so the trailing arrow never orphans onto a   */
/*     line of its own. A long link label then cannot wrap at all and   */
/*     pushes the page sideways -- the support centre's "Existing       */
/*     customer? Log in to your support portal" did exactly that at     */
/*     375px. Allow wrapping on phones; the arrow keeping company with  */
/*     the last word matters less than the page not scrolling.          */
/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
  .cit-link { white-space: normal; }
}

/* ------------------------------------------------------------------ */
/* 41. Status panel simulation (Managed IT Support)                    */
/*     A looping illustration: 15 devices under a continuous scan, one */
/*     raises an alert, is isolated, reviewed, cleaned and redeployed. */
/*     Driven by assets/js/status-sim.js; the static markup is the      */
/*     settled all-healthy state.                                      */
/* ------------------------------------------------------------------ */
.cit-sim [data-sim-pill] { transition: background-color .3s, color .3s; }
.cit-sim__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.cit-sim__stat {
  background: var(--cit-pale);
  border: 1px solid var(--cit-line-soft, var(--cit-line));
  border-radius: var(--cit-r-md);
  padding: 10px 12px;
  min-width: 0;
}
.cit-sim__stat strong {
  display: flex; align-items: center; gap: 6px;
  font-size: 18px; line-height: 1.2; color: var(--cit-navy);
}
.cit-sim__stat strong.cit-sim__scan { font-size: 14px; padding: 2px 0; color: var(--cit-green-ink); }
.cit-sim__stat span { display: block; font-size: 11.5px; color: var(--cit-muted); margin-top: 2px; }
.cit-sim__spin { display: inline-flex; }
.h-motion .cit-sim.is-running .cit-sim__spin { animation: cit-sim-spin 2.4s linear infinite; }
.cit-sim [data-sim-count].is-bump { animation: cit-sim-bump .6s ease; }

.cit-sim__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: var(--cit-r-md);
  background: var(--cit-pale);
  border: 1px solid var(--cit-line-soft, var(--cit-line));
  overflow: hidden;
}
.cit-sim__sweep {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 70px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cit-purple) 16%, transparent), transparent);
  left: -70px;
  pointer-events: none;
  opacity: 0;
}
.h-motion .cit-sim.is-running .cit-sim__sweep { opacity: 1; animation: cit-sim-sweep 3.2s linear infinite; }
.h-motion .cit-sim.is-incident .cit-sim__sweep { opacity: 0; }

.cit-sim__dev {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 38px;
  border-radius: 9px;
  background: var(--cit-surface, #fff);
  border: 1.5px solid var(--cit-line);
  color: var(--cit-green-ink);
  overflow: hidden;
  transition: border-color .35s, background-color .35s, color .35s, opacity .35s, transform .35s;
}
.cit-sim__dev::after {
  content: ""; position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cit-green);
}
.cit-sim__lock {
  position: absolute; left: 4px; bottom: 3px;
  display: none; color: var(--cit-red-ink);
}
.cit-sim__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--cit-blue);
}
.cit-sim__dev.is-scanned { border-color: color-mix(in srgb, var(--cit-green) 55%, var(--cit-line)); }
.cit-sim__dev.is-alert {
  border-color: var(--cit-red); background: var(--cit-red-soft); color: var(--cit-red-ink);
  animation: cit-sim-pulse 1s ease-in-out infinite;
}
.cit-sim__dev.is-alert::after,
.cit-sim__dev.is-isolated::after { background: var(--cit-red); }
.cit-sim__dev.is-isolated {
  border-style: dashed; border-color: var(--cit-red);
  background: var(--cit-red-soft); color: var(--cit-red-ink);
  transform: scale(.9); opacity: .85;
}
.cit-sim__dev.is-isolated .cit-sim__lock { display: inline-flex; }
.cit-sim__dev.is-review {
  border-color: var(--cit-orange); background: var(--cit-orange-soft); color: var(--cit-orange-ink);
}
.cit-sim__dev.is-review::after { background: var(--cit-orange); animation: cit-sim-blink .8s step-end infinite; }
.cit-sim__dev.is-redeploy { border-color: var(--cit-blue); background: var(--cit-blue-soft); color: var(--cit-blue); }
.cit-sim__dev.is-redeploy::after { background: var(--cit-blue); }
.cit-sim__dev.is-redeploy .cit-sim__bar { width: 100%; transition: width 2.6s linear; }
.cit-sim__dev.is-restored { border-color: var(--cit-green); background: var(--cit-green-soft); }

.cit-sim__log {
  list-style: none;
  margin: 14px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 92px;
}
.cit-sim__log li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 12.5px; line-height: 1.4; color: var(--cit-text);
}
.cit-sim__log li::before {
  content: ""; flex: none; align-self: center;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cit-green);
}
.cit-sim__log li.is-danger::before { background: var(--cit-red); }
.cit-sim__log li.is-warning::before { background: var(--cit-orange); }
.cit-sim__log li.is-info::before { background: var(--cit-blue); }
.cit-sim__log li:nth-child(n+2) { opacity: .72; }
.cit-sim__log li:nth-child(n+3) { opacity: .5; }
.cit-sim__log li:nth-child(n+4) { display: none; }
.cit-sim__log time {
  flex: none; font-variant-numeric: tabular-nums;
  font-size: 11.5px; color: var(--cit-muted-2, var(--cit-muted));
}
.cit-sim__log span { min-width: 0; }
.cit-sim__log li.is-new { animation: cit-sim-in .4s ease both; }

.cit-sim__chips {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cit-sim__chips li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--cit-r-pill);
  background: var(--cit-pale-2); font-size: 11.5px; color: var(--cit-muted);
}
.cit-sim__chips b { font-weight: 600; color: var(--cit-navy); }

@keyframes cit-sim-sweep { from { left: -70px; } to { left: 100%; } }
@keyframes cit-sim-spin { to { transform: rotate(360deg); } }
@keyframes cit-sim-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--cit-red) 22%, transparent); } }
@keyframes cit-sim-blink { 50% { opacity: 0; } }
@keyframes cit-sim-bump { 40% { transform: scale(1.25); color: var(--cit-green-ink); } }
@keyframes cit-sim-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 480px) {
  .cit-sim__stats { grid-template-columns: minmax(0, 1fr); }
  .cit-sim__stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .cit-sim__stat span { margin-top: 0; text-align: right; }
  .cit-sim__grid { gap: 6px; padding: 10px; }
  .cit-sim__dev { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cit-sim *, .cit-sim *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ */
/* 42. Panel scenes (assets/js/cit-scene.js)                           */
/*     Service-page panels that play a short looping illustration of   */
/*     the process they describe. The markup is the settled state; the */
/*     classes below are what the scene steps toggle.                  */
/* ------------------------------------------------------------------ */
.cit-scene .cit-status { transition: background-color .3s, color .3s; }
.cit-scene .cit-status.is-busy::before { animation: cit-scene-blink .7s ease-in-out infinite; }

/* Rows and points get room for a highlight without shifting layout. */
.cit-scene .cit-row,
.cit-scene .cit-point {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 10px;
  transition: background-color .35s, opacity .35s;
}
.cit-scene .cit-pointlist { gap: 6px; }
.cit-scene .cit-point { padding-block: 6px; }
.cit-scene .is-hit      { background: color-mix(in srgb, var(--cit-purple) 9%, transparent); }
.cit-scene .is-hit-bad  { background: var(--cit-red-soft); }
.cit-scene .is-hit-ok   { background: var(--cit-green-soft); }
.cit-scene .is-hit-warn { background: var(--cit-orange-soft); }
.cit-scene .is-dim      { opacity: .42; }
.cit-scene .is-gone     { display: none !important; }
.cit-scene .is-pop      { animation: cit-scene-pop .45s cubic-bezier(.2, .8, .3, 1.2) both; }
.cit-scene .cit-point > .cit-status { margin-left: auto; align-self: center; flex: none; }

/* A small inset box for the scene's own content: an incoming email, a
   sign-in, a request, the current attack. */
.cit-scene__box {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--cit-r-md);
  background: var(--cit-pale);
  border: 1px solid var(--cit-line-soft);
  transition: border-color .35s, background-color .35s;
}
.cit-scene__box.is-bad  { border-color: color-mix(in srgb, var(--cit-red) 45%, transparent); background: var(--cit-red-soft); }
.cit-scene__box.is-ok   { border-color: color-mix(in srgb, var(--cit-green) 45%, transparent); }
.cit-scene__box.is-warn { border-color: color-mix(in srgb, var(--cit-orange) 50%, transparent); }
.cit-scene__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cit-muted);
}
.cit-scene__head .cit-status { margin-left: auto; text-transform: none; letter-spacing: 0; }
.cit-scene__line { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--cit-navy); font-weight: 600; }
.cit-scene__sub  { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--cit-muted); }
.cit-scene__sub b { color: var(--cit-red-ink); font-weight: 700; }

/* Two side-by-side lanes (small business: break/fix vs managed). */
.cit-scene__lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.cit-scene__lanes .cit-scene__box { margin: 0; }

/* Timeline / gantt tracks. Position and width come from --l and --w. */
.cit-scene__track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: var(--cit-pale-2);
  overflow: hidden;
}
.cit-scene__fill {
  position: absolute; top: 0; bottom: 0;
  left: var(--l, 0%); width: var(--w, 0%);
  border-radius: 99px;
  background: var(--cit-purple);
  transition: width .9s cubic-bezier(.3, .7, .3, 1), left .9s cubic-bezier(.3, .7, .3, 1), background-color .3s;
}
.cit-scene__fill--ok   { background: var(--cit-green); }
.cit-scene__fill--bad  { background: var(--cit-red); }
.cit-scene__fill--warn { background: var(--cit-orange); }
.cit-scene__fill--info { background: var(--cit-blue); }
.cit-row .cit-scene__track { flex: 0 0 30%; }

/* Backup timeline: a tick per backup, a marker for "now". */
.cit-scene__timeline { position: relative; margin: 8px 0 4px; padding-top: 4px; }
.cit-scene__timeline .cit-scene__track { height: 12px; }
.cit-scene__ticks { position: absolute; top: 4px; left: 0; right: 0; height: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.cit-scene__ticks i { width: 2px; height: 12px; background: color-mix(in srgb, var(--cit-green) 75%, transparent); border-radius: 2px; }
.cit-scene__marker {
  position: absolute; top: 0; left: var(--x, 100%);
  width: 2px; height: 20px; margin-left: -1px;
  background: var(--cit-navy);
  transition: left .9s cubic-bezier(.3, .7, .3, 1), background-color .3s;
}
.cit-scene__marker.is-bad { background: var(--cit-red); }
.cit-scene__legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--cit-muted); }

/* Month strip (hospitality). */
.cit-scene__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin: 8px 0 0; }
.cit-scene__months span {
  font-size: 10px; text-align: center; padding: 5px 0; border-radius: 6px;
  color: var(--cit-muted); background: var(--cit-pale-2);
  transition: background-color .35s, color .35s;
}
.cit-scene__months .is-low  { background: var(--cit-blue-soft); }
.cit-scene__months .is-pre  { background: var(--cit-orange-soft); }
.cit-scene__months .is-high { background: var(--cit-green-soft); }
.cit-scene__months .is-post { background: var(--cit-purple-soft); }
.cit-scene__months span.is-now { background: var(--cit-navy); color: var(--cit-surface); font-weight: 700; }

/* A stat line with a big number (team size, Wi-Fi load). */
.cit-scene__stat { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cit-scene__stat strong { font-size: 24px; line-height: 1; color: var(--cit-navy); font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.cit-scene__stat span { font-size: 12.5px; color: var(--cit-muted); }
.cit-scene__stat .cit-scene__track { flex: 1; }

/* Event log. */
.cit-scene__log { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cit-scene__log li { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; line-height: 1.4; color: var(--cit-text); }
.cit-scene__log li::before { content: ""; flex: none; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--cit-green); }
.cit-scene__log li.is-danger::before { background: var(--cit-red); }
.cit-scene__log li.is-warning::before { background: var(--cit-orange); }
.cit-scene__log li.is-info::before { background: var(--cit-blue); }
.cit-scene__log li.is-muted::before { background: var(--cit-muted-2); }
.cit-scene__log li:nth-child(n+2) { opacity: .72; }
.cit-scene__log li:nth-child(n+3) { opacity: .5; }
.cit-scene__log time { flex: none; font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--cit-muted-2); }
.cit-scene__log li.is-new { animation: cit-scene-in .4s ease both; }

/* Table rows (service standards). */
.cit-scene .cit-table tbody tr { transition: background-color .35s, opacity .35s; }
.cit-scene .cit-table tbody tr.is-hit { background: color-mix(in srgb, var(--cit-purple) 8%, transparent); }
.cit-scene .cit-table tbody tr.is-dim { opacity: .5; }

@keyframes cit-scene-blink { 50% { opacity: .2; } }
@keyframes cit-scene-pop { from { opacity: 0; transform: scale(.85); } }
@keyframes cit-scene-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 480px) {
  .cit-scene__lanes { grid-template-columns: minmax(0, 1fr); }
  .cit-row .cit-scene__track { flex-basis: 100%; order: 3; }
  .cit-scene .cit-point { flex-wrap: wrap; }
  .cit-scene .cit-point > .cit-status { margin-left: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .cit-scene *, .cit-scene *::before { animation: none !important; transition: none !important; }
}

/* Buttons that look like the links beside them (cookie notice, cookie policy). */
button.cit-cookie__more,
button.cit-link {
  background: none; border: 0; padding: 0;
  font-family: inherit; cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Open grids — the older .cit-card feature and step grids without the */
/* white box, matching .p-grid--open in pages.css: content sits on the */
/* page with a hairline between columns. Opt in with .cit-grid--open / */
/* .cit-steps--open. Every card carries a left rule; the grid is       */
/* pulled left by one padding and clipped on that edge, so the first   */
/* column's rule never shows whatever the column count is.             */
/* ------------------------------------------------------------------ */
.cit-grid.cit-grid--open {
  --open-pad: clamp(14px, 1.6vw, 26px);
  gap: 34px 0;
  margin-left: calc(var(--open-pad) * -1);
  clip-path: inset(-16px -16px -16px 1px);
}
.cit-grid.cit-grid--open > .cit-card.cit-card.cit-card {
  height: auto;
  min-height: 0;
  padding: 6px var(--open-pad);
  border: 0;
  border-left: 1px solid var(--cit-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.cit-grid--open .cit-icon-box,
.cit-steps--open .cit-icon-box { align-self: flex-start; width: auto; height: auto; border-radius: 0; background: none !important; }
.cit-grid--open .cit-icon-box .cit-ico { width: 32px; height: 32px; }
.cit-grid--open .cit-feature .cit-link { padding-top: 14px; }

.cit-steps.cit-steps--open { gap: 28px 44px; }
.cit-steps--open > .cit-card.cit-step {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
@media (min-width: 1081px) {
  .cit-steps--open > .cit-step + .cit-step::before { left: -26px; top: 12px; transform: rotate(45deg); }
}
@media (max-width: 767px) {
  .cit-grid.cit-grid--open { grid-template-columns: minmax(0, 1fr); gap: 0; margin-left: 0; clip-path: none; }
  .cit-grid.cit-grid--open > .cit-card.cit-card.cit-card { padding: 18px 0; border-left: 0; }
  .cit-grid.cit-grid--open > .cit-card.cit-card.cit-card + .cit-card { border-top: 1px solid var(--cit-line); }
}

/* Security & compliance: framework rows and the operating-practice
   accordion as ruled lists inside their column, not boxes in a box. */
.cit-sec-col__list { gap: 0; }
.cit-sec-col__list li { padding: 12px 0; border: 0; border-radius: 0; background: none; }
.cit-sec-col__list li + li { border-top: 1px solid rgba(30, 36, 90, .1); }
.cit-sec-col__services li { padding: 8px 0; border: 0; border-radius: 0; background: none; }
.cit-sec-practices { gap: 0; border-top: 1px solid var(--cit-line); }
.cit-sec-practice { border: 0; border-bottom: 1px solid var(--cit-line); border-radius: 0; background: none; }
.cit-sec-practice > summary { padding: 16px 0; }
.cit-sec-practice > summary:hover,
.cit-sec-practice[open] > summary { background: none; }
.cit-sec-practice > summary:hover .cit-sec-practice__title,
.cit-sec-practice[open] .cit-sec-practice__title { color: var(--cit-purple); }
.cit-sec-practice__body { padding: 0 0 18px 48px; }
html.dark .cit-sec-col__list li + li { border-top-color: var(--cit-line); }

