/* =====================================================================
   CaminhoIT — 2026 redesign, shared inner-page styles
   ---------------------------------------------------------------------
   Loaded after caminho.css (via $extra_css) by the inner pages rebuilt to
   the 2026 references in /redesign: the legal pages (Terms, Privacy,
   Cookies, GDPR) and the knowledge base. The homepage keeps its own
   home.css; the header-over-hero rules below mirror home.css §3 so these
   pages open the same way.

   Sections
     1.  Tokens and layout primitives
     2.  Header over a dark hero  (body.cit-page-overhero)
     3.  Shared dark photographic hero
     4.  Legal document pages     (.cit-lg-*)
     5.  Knowledge base           (.cit-kb2-*)
     6.  Reduced motion and print
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Tokens and layout primitives                                     */
/* ------------------------------------------------------------------ */
:root {
  --r6-navy:        #0b1738;
  --r6-navy-2:      #101f4a;
  --r6-ink:         #101b3e;
  --r6-text:        #56617b;
  --r6-purple:      #6245f5;
  --r6-purple-2:    #7659ff;
  --r6-purple-lite: #a99bff;
  --r6-purple-soft: #eeecff;
  --r6-tint:        #f6f5ff;
  --r6-alt:         #f5f7fc;
  --r6-card:        #ffffff;
  --r6-line:        #e6e9f4;
  --r6-line-2:      #eceef7;

  --r6-wrap:   1240px;
  --r6-gutter: clamp(16px, 4vw, 48px);
  --r6-radius: 18px;
  --r6-ease:   cubic-bezier(.2, .7, .2, 1);
}

html.dark {
  --r6-ink:         #eef0fa;
  --r6-text:        #b3b8d4;
  --r6-purple-soft: #241f4d;
  --r6-tint:        #1a1840;
  --r6-alt:         #0d0f24;
  --r6-card:        #15183a;
  --r6-line:        #282c50;
  --r6-line-2:      #22264a;
}

.cit-lg-wrap,
.cit-kb2-wrap {
  width: min(var(--r6-wrap), 100% - (var(--r6-gutter) * 2));
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* 2. Header over a dark hero                                          */
/*    Transparent over the photograph, solid navy once the page        */
/*    scrolls (caminho.js adds .is-scrolled). Mirrors home.css §3.      */
/* ------------------------------------------------------------------ */
.cit-page-overhero .cit-header {
  /* A tinted navy glass band rather than a fade to nothing, so the nav
     always reads as its own layer above the photograph. */
  background: rgba(11, 23, 56, .58);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: rgba(255, 255, 255, .10);
}
.cit-page-overhero .cit-header.is-scrolled,
.cit-page-overhero.cit-nav-open .cit-header {
  background: rgba(11, 23, 56, .94);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(5, 10, 30, .25);
}
.cit-page-overhero .cit-header .cit-logo__name { color: #fff; }
.cit-page-overhero .cit-header .cit-logo__tag  { color: #c3bcff; }
.cit-page-overhero .cit-nav-toggle { border-color: rgba(255, 255, 255, .35); }
.cit-page-overhero .cit-nav-toggle span { background: #fff; }

@media (min-width: 1081px) {
  .cit-page-overhero .cit-nav__link { color: rgba(255, 255, 255, .86); font-size: 13.5px; font-weight: 600; }
  .cit-page-overhero .cit-nav__link:hover,
  .cit-page-overhero .cit-nav__link[aria-expanded="true"] { color: #fff; }
  .cit-page-overhero .cit-nav__link.is-active { color: #fff; border-bottom-color: var(--r6-purple-2); }

  .cit-page-overhero .cit-lang button { color: rgba(255, 255, 255, .55); }
  .cit-page-overhero .cit-lang button:hover,
  .cit-page-overhero .cit-lang .is-active { color: #fff; }
  .cit-page-overhero .cit-lang__sep { background: rgba(255, 255, 255, .28); }

  .cit-page-overhero .cit-nav__tail .cit-btn--outline {
    background: rgba(255, 255, 255, .04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
  }
  .cit-page-overhero .cit-nav__tail .cit-btn--outline:hover { background: #fff; color: var(--r6-navy); border-color: #fff; }
  .cit-page-overhero .cit-nav__tail .cit-btn--primary {
    background: linear-gradient(110deg, var(--r6-purple-2), var(--r6-purple));
    box-shadow: 0 8px 22px -10px rgba(118, 89, 255, .9);
  }
  .cit-page-overhero .cit-userchip { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
  .cit-page-overhero .cit-userchip:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
}

/* ------------------------------------------------------------------ */
/* 3. Shared dark photographic hero                                    */
/*    Used by .cit-lg-hero and .cit-kb2-hero. The hero pulls itself up  */
/*    under the sticky header.                                          */
/* ------------------------------------------------------------------ */
.cit-lg-hero,
.cit-kb2-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--cit-header-h) * -1);
  padding-top: var(--cit-header-h);
  background: var(--r6-navy);
  color: #fff;
}
.cit-lg-hero__photo,
.cit-kb2-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.cit-lg-hero::before,
.cit-kb2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 48, .96) 0%, rgba(8, 17, 48, .86) 34%, rgba(8, 17, 48, .35) 60%, rgba(8, 17, 48, .05) 78%),
    linear-gradient(0deg, rgba(8, 17, 48, .5) 0%, rgba(8, 17, 48, 0) 35%);
}

.cit-lg-chip,
.cit-kb2-chip {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.cit-lg-hero__title,
.cit-kb2-hero__title {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  color: #fff;
}
.cit-lg-hero__accent,
.cit-kb2-hero__accent {
  background: linear-gradient(95deg, #9d8cff 0%, #7a63ff 55%, #6d7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .06em;
}

/* ------------------------------------------------------------------ */
/* 4. Legal document pages                                             */
/* ------------------------------------------------------------------ */

/* --- Hero ---------------------------------------------------------- */
.cit-lg-hero__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-block: clamp(36px, 4vw, 56px) clamp(36px, 4vw, 52px);
}
.cit-lg-hero__copy { max-width: 640px; }
.cit-lg-hero__lead {
  max-width: 34em;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

.cit-lg-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.cit-lg-assure li { display: flex; align-items: center; gap: 12px; }
.cit-lg-assure__ico { flex: none; color: #fff; opacity: .95; }
.cit-lg-assure strong { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.cit-lg-assure span > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }

.cit-lg-hero__hand {
  position: relative;
  align-self: flex-start;
  margin: 4px 22% 0 0;
  font-size: clamp(26px, 2.6vw, 36px);
  color: #fff;
  transform: rotate(-4deg);
  text-shadow: 0 2px 18px rgba(5, 10, 30, .45);
}
.cit-lg-hero__swoosh {
  display: block;
  width: 70%;
  height: 12px;
  margin: 4px 0 0 18%;
  color: var(--r6-purple-2);
}

/* --- Body grid ----------------------------------------------------- */
.cit-lg-body {
  padding-block: clamp(28px, 3.4vw, 44px) clamp(56px, 6vw, 88px);
  background: var(--cit-white);
}
.cit-lg-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-areas:
    "toc  main"
    "side main";
  grid-template-rows: auto 1fr;
  column-gap: 26px;
  row-gap: 16px;
  align-items: start;
}
.cit-lg-toc  { grid-area: toc; }
.cit-lg-main { grid-area: main; min-width: 0; }
.cit-lg-side { grid-area: side; display: grid; gap: 16px; }

/* --- Contents rail -------------------------------------------------- */
.cit-lg-toc details {
  padding: 18px 14px 14px;
  border-radius: 14px;
  background: var(--r6-alt);
  border: 1px solid var(--r6-line-2);
}
.cit-lg-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  list-style: none;
  cursor: default;
}
.cit-lg-toc summary::-webkit-details-marker { display: none; }
.cit-lg-toc h2 { margin: 0; font-size: 15.5px; font-weight: 800; color: var(--r6-ink); }
.cit-lg-toc__chev { display: none; color: var(--r6-text); transition: transform .2s var(--r6-ease); }
.cit-lg-toc ol { margin: 0; padding: 0; list-style: none; }
.cit-lg-toc a {
  display: flex;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  font-size: 14px;
  line-height: 1.35;
  color: var(--r6-ink);
  text-decoration: none;
}
.cit-lg-toc a:hover { color: var(--r6-purple); background: rgba(98, 69, 245, .05); }
.cit-lg-toc a.is-active {
  background: var(--cit-white);
  border-left-color: var(--r6-purple);
  color: var(--r6-purple);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(30, 36, 90, .06);
}
.cit-lg-toc__num { flex: none; min-width: 1.6em; text-align: right; color: var(--r6-text); }
.cit-lg-toc a.is-active .cit-lg-toc__num { color: var(--r6-purple); }
html.dark .cit-lg-toc a.is-active { background: var(--r6-card); color: var(--r6-purple-lite); }
html.dark .cit-lg-toc a.is-active .cit-lg-toc__num { color: var(--r6-purple-lite); }

/* --- Side cards ----------------------------------------------------- */
.cit-lg-help {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 20px 18px 18px;
  border-radius: 14px;
  background: var(--r6-alt);
  border: 1px solid var(--r6-line-2);
}
.cit-lg-help__ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--r6-purple-soft);
  color: var(--r6-purple);
}
.cit-lg-help h2 { margin: 4px 0 6px; font-size: 16px; font-weight: 800; color: var(--r6-ink); }
.cit-lg-help p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--r6-text); }
.cit-lg-help .cit-btn { grid-column: 1 / -1; margin-top: 14px; }
.cit-lg-photo {
  display: block;
  width: 100%;
  aspect-ratio: 236 / 176;
  object-fit: cover;
  border-radius: 14px;
}

/* --- Document ------------------------------------------------------- */
.cit-lg-doc {
  padding: 14px 14px 10px;
  border: 1px solid var(--r6-line);
  border-radius: var(--r6-radius);
  background: var(--r6-card);
  box-shadow: 0 1px 2px rgba(30, 36, 90, .03), 0 10px 30px rgba(30, 36, 90, .04);
}
.cit-lg-doc__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding: 0 4px 10px;
}
.cit-lg-doc__updated { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--r6-text); }
.cit-lg-doc__all {
  padding: 4px 10px;
  border: 1px solid var(--r6-line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--r6-purple);
  cursor: pointer;
}
.cit-lg-doc__all:hover { border-color: var(--r6-purple); }
html.dark .cit-lg-doc__all { color: var(--r6-purple-lite); }

.cit-lg-sec {
  border-bottom: 1px solid var(--r6-line-2);
  border-radius: 0;
  scroll-margin-top: calc(var(--cit-header-h) + 18px);
  transition: background-color .2s var(--r6-ease);
}
.cit-lg-sec:last-child { border-bottom: 0; }
.cit-lg-sec.is-open {
  border-bottom-color: transparent;
  border-radius: 14px;
  background: var(--r6-tint);
  margin-bottom: 6px;
}
.cit-lg-sec__h { margin: 0; font-size: inherit; }
.cit-lg-sec__btn {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 12px 18px 12px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.cit-lg-sec__btn:focus-visible { outline: 2px solid var(--r6-purple); outline-offset: 2px; border-radius: 12px; }
.cit-lg-sec__ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 46px;
  border-radius: 12px;
  background: var(--r6-purple-soft);
  color: var(--r6-purple);
}
html.dark .cit-lg-sec__ico { color: var(--r6-purple-lite); }
.cit-lg-sec__title {
  display: block;
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--r6-ink);
}
.cit-lg-sec__sum {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--r6-text);
}
.cit-lg-sec__chev { color: var(--r6-ink); transition: transform .2s var(--r6-ease); }
.cit-lg-sec.is-open .cit-lg-sec__chev { transform: rotate(180deg); color: var(--r6-purple); }
.cit-lg-sec__btn:hover .cit-lg-sec__title { color: var(--r6-purple); }
html.dark .cit-lg-sec__btn:hover .cit-lg-sec__title { color: var(--r6-purple-lite); }

.cit-lg-sec__panel { padding: 0 22px 18px 86px; }
.cit-lg-sec__panel[hidden] { display: none; }

.cit-lg-clause {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--r6-ink);
}
.cit-lg-clause__n { font-weight: 700; color: var(--r6-text); font-variant-numeric: tabular-nums; }
.cit-lg-clause p { margin: 0; }
.cit-lg-clause ul { margin: 8px 0 0; padding-left: 1.1em; }
.cit-lg-clause li { margin: 4px 0; }
.cit-lg-clause li::marker { color: var(--r6-purple); }
.cit-lg-clause a,
.cit-lg-table a { color: var(--r6-purple); font-weight: 600; }
html.dark .cit-lg-clause a, html.dark .cit-lg-table a { color: var(--r6-purple-lite); }

/* Cookie inventory and similar tabular sections. */
.cit-lg-table { margin: 14px 0 4px 42px; overflow-x: auto; }
.cit-lg-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.cit-lg-table th,
.cit-lg-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--r6-line); color: var(--r6-ink); }
.cit-lg-table thead th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--r6-text); }
.cit-lg-table tbody th { font-weight: 600; white-space: nowrap; }
.cit-lg-table code { font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: var(--r6-card); color: var(--r6-ink); }

/* --- Download strip ------------------------------------------------- */
.cit-lg-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 16px 16px 16px 22px;
  border-radius: 14px;
  background: var(--r6-tint);
  border: 1px solid var(--r6-line-2);
}
.cit-lg-note__ico { flex: none; color: var(--r6-purple); }
.cit-lg-note p { flex: 1; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--r6-ink); }
.cit-lg-note .cit-btn { flex: none; }

/* --- Responsive ----------------------------------------------------- */
/* On narrow screens the copy sits over the bright part of the photograph,
   so the shade covers the whole hero rather than fading out to the right. */
@media (max-width: 991px) {
  .cit-lg-hero::before,
  .cit-kb2-hero::before {
    background: linear-gradient(180deg, rgba(8, 17, 48, .9) 0%, rgba(8, 17, 48, .78) 60%, rgba(8, 17, 48, .9) 100%);
  }
}

@media (max-width: 991px) {
  .cit-lg-hero__inner { flex-direction: column; }
  .cit-lg-hero__hand { display: none; }

  .cit-lg-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "toc" "main" "side";
    grid-template-rows: auto;
  }
  .cit-lg-toc summary { padding-bottom: 0; cursor: pointer; }
  .cit-lg-toc details[open] summary { padding-bottom: 10px; }
  .cit-lg-toc__chev { display: block; }
  .cit-lg-toc details[open] .cit-lg-toc__chev { transform: rotate(180deg); }
  .cit-lg-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .cit-lg-photo { height: 100%; aspect-ratio: auto; min-height: 180px; }
}

@media (max-width: 600px) {
  .cit-lg-assure { flex-direction: column; gap: 12px; }
  .cit-lg-doc { padding: 8px 6px 6px; border-radius: 14px; }
  .cit-lg-doc__top { justify-content: space-between; padding: 6px 8px 8px; }
  .cit-lg-sec__btn { grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 12px; padding: 12px 10px 12px 8px; }
  .cit-lg-sec__ico { width: 42px; height: 40px; border-radius: 10px; }
  .cit-lg-sec__ico .cit-ico { width: 21px; height: 21px; }
  .cit-lg-sec__panel { padding: 0 12px 14px; }
  .cit-lg-clause { grid-template-columns: 30px minmax(0, 1fr); }
  .cit-lg-table { margin-left: 0; }
  .cit-lg-table thead { display: none; }
  .cit-lg-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--r6-line); }
  .cit-lg-table th, .cit-lg-table td { display: block; padding: 2px 0; border: 0; }
  .cit-lg-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--r6-text); }
  .cit-lg-note { flex-wrap: wrap; padding: 16px; }
  .cit-lg-note .cit-btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* 5. Knowledge base                                                   */
/*    /kb/ index (kb/index.php). Category, search and article pages     */
/*    reuse the hero, eyebrow and CTA pieces.                           */
/* ------------------------------------------------------------------ */
.cit-kb2 { background: var(--cit-white); }

.cit-kb2-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--r6-purple);
}
html.dark .cit-kb2-eyebrow { color: var(--r6-purple-lite); }
.cit-kb2-h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--r6-ink);
}
.cit-kb2-h3 { margin: 0 0 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--r6-ink); }
.cit-kb2-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--r6-purple);
  text-decoration: none;
}
.cit-kb2-link:hover { gap: 9px; }
html.dark .cit-kb2-link { color: var(--r6-purple-lite); }

.cit-kb2-section { padding-block: clamp(56px, 6vw, 84px); }
.cit-kb2-section--tight { padding-block: clamp(28px, 3vw, 44px) clamp(40px, 4.5vw, 64px); }
.cit-kb2-section--alt { background: var(--r6-alt); }

.cit-kb2-head {
  display: flex;
  align-items: flex-end;
  gap: 16px 48px;
  margin-bottom: 28px;
}
.cit-kb2-head__aside { flex: 1; margin: 0 0 6px; font-size: 16px; color: var(--r6-text); }
.cit-kb2-head .cit-kb2-link { margin: 0 0 8px auto; white-space: nowrap; }

/* --- Hero ------------------------------------------------------------ */
.cit-kb2-hero__inner { padding-block: clamp(36px, 4vw, 60px) clamp(48px, 5vw, 76px); }
.cit-kb2-hero__copy { max-width: 720px; }
.cit-kb2-hero__photo { object-position: 85% 50%; }
.cit-kb2-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}
.cit-kb2-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.cit-kb2-crumbs a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.cit-kb2-crumbs a:hover { color: #fff; text-decoration: underline; }
.cit-kb2-crumbs [aria-current] { color: #fff; font-weight: 600; }
.cit-kb2-hero__lead {
  max-width: 32em;
  margin: 20px 0 0;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.cit-kb2-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin-top: 30px;
  padding: 7px 7px 7px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(3, 8, 30, .7);
}
.cit-kb2-search__ico { flex: none; color: #7a83a3; }
.cit-kb2-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: #101b3e;
}
.cit-kb2-search input::placeholder { color: #7a83a3; }
.cit-kb2-search:focus-within { box-shadow: 0 0 0 3px rgba(169, 155, 255, .7), 0 18px 40px -18px rgba(3, 8, 30, .7); }
.cit-kb2-search .cit-btn { flex: none; }

.cit-kb2-pop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .75);
}
.cit-kb2-pop span { margin-right: 4px; }
.cit-kb2-pop a {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.cit-kb2-pop a:hover { background: #fff; color: var(--r6-navy); }

.cit-kb2-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .86);
}
.cit-kb2-benefits li { display: inline-flex; align-items: center; gap: 10px; }
.cit-kb2-benefits .cit-ico { color: #b3a8ff; }
.cit-kb2-benefits li:last-child .cit-ico { color: #4fd8a8; }

/* --- Topic cards ------------------------------------------------------ */
.cit-kb2-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cit-kb2-cat {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 18px;
  padding: 20px 18px 20px 20px;
  border: 1px solid var(--r6-line);
  border-radius: 16px;
  background: var(--r6-card);
  box-shadow: 0 1px 2px rgba(30, 36, 90, .03), 0 10px 26px -14px rgba(30, 36, 90, .14);
  color: inherit;
  text-decoration: none;
  transition: transform .2s var(--r6-ease), box-shadow .2s var(--r6-ease), border-color .2s;
}
.cit-kb2-cat:hover { transform: translateY(-2px); border-color: #cfc8ff; box-shadow: 0 18px 36px -18px rgba(70, 50, 200, .35); }
.cit-kb2-cat__ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--r6-purple-soft);
  color: var(--r6-purple);
  font-size: 28px;
}
html.dark .cit-kb2-cat__ico { color: var(--r6-purple-lite); }
.cit-kb2-cat__title { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--r6-ink); }
.cit-kb2-cat__text { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--r6-text); }
.cit-kb2-cat__count { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--r6-purple); }
html.dark .cit-kb2-cat__count { color: var(--r6-purple-lite); }

.cit-kb2-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--r6-purple-soft);
  color: var(--r6-purple);
  transition: background .2s, color .2s, transform .2s var(--r6-ease);
}
a:hover > .cit-kb2-go,
a:hover .cit-kb2-card__foot .cit-kb2-go { background: var(--r6-purple); color: #fff; transform: translateX(2px); }

/* --- Featured guide + topic accordion -------------------------------- */
.cit-kb2-common {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}
.cit-kb2-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--r6-navy);
  color: #fff;
  text-decoration: none;
}
.cit-kb2-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
  transition: transform .5s var(--r6-ease);
}
.cit-kb2-feature:hover img { transform: scale(1.04); }
.cit-kb2-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(8, 17, 48, .94) 0%, rgba(8, 17, 48, .6) 50%, rgba(8, 17, 48, .05) 100%);
}
.cit-kb2-feature__body { display: block; max-width: 30em; padding: 28px 90px 28px 28px; }
.cit-kb2-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #c8f169;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #10233a;
}
.cit-kb2-feature__title { display: block; margin-top: 12px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
.cit-kb2-feature__text { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.cit-kb2-feature__meta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.cit-kb2-feature__go {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--r6-purple);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(98, 69, 245, .9);
  transition: transform .2s var(--r6-ease);
}
.cit-kb2-feature:hover .cit-kb2-feature__go { transform: translateX(3px); }

.cit-kb2-acc { display: grid; gap: 10px; align-content: start; }
.cit-kb2-acc__item {
  border: 1px solid var(--r6-line);
  border-radius: 14px;
  background: var(--r6-card);
  box-shadow: 0 1px 3px rgba(30, 36, 90, .04);
  transition: border-color .2s;
}
.cit-kb2-acc__item.is-open { border-color: #cfc8ff; }
.cit-kb2-acc__h { margin: 0; font-size: inherit; }
.cit-kb2-acc__btn {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.cit-kb2-acc__btn:focus-visible { outline: 2px solid var(--r6-purple); outline-offset: 2px; border-radius: 12px; }
.cit-kb2-acc__ico { display: grid; place-items: center; color: var(--r6-purple); font-size: 20px; }
html.dark .cit-kb2-acc__ico { color: var(--r6-purple-lite); }
.cit-kb2-acc__title { font-size: 16px; font-weight: 700; color: var(--r6-ink); }
.cit-kb2-acc__chev { color: var(--r6-ink); transition: transform .2s var(--r6-ease); }
.cit-kb2-acc__item.is-open .cit-kb2-acc__chev { transform: rotate(180deg); color: var(--r6-purple); }
.cit-kb2-acc__panel { padding: 0 18px 16px 62px; }
.cit-kb2-acc__panel[hidden] { display: none; }
.cit-kb2-acc__panel ul { margin: 0 0 12px; padding: 0; list-style: none; }
.cit-kb2-acc__panel li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--r6-ink);
  text-decoration: none;
}
.cit-kb2-acc__panel li a .cit-ico { flex: none; margin-top: 2px; color: var(--r6-text); }
.cit-kb2-acc__panel li a:hover { color: var(--r6-purple); }
.cit-kb2-acc__panel p { margin: 0 0 10px; font-size: 14px; color: var(--r6-text); }

/* --- Most helpful + recently updated ---------------------------------- */
.cit-kb2-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.cit-kb2-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cit-kb2-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--r6-line);
  border-radius: 16px;
  background: var(--r6-card);
  color: inherit;
  text-decoration: none;
  transition: transform .2s var(--r6-ease), box-shadow .2s var(--r6-ease), border-color .2s;
}
.cit-kb2-card:hover { transform: translateY(-2px); border-color: #cfc8ff; box-shadow: 0 18px 36px -18px rgba(70, 50, 200, .3); }
.cit-kb2-card__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--r6-purple-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--r6-purple);
}
html.dark .cit-kb2-card__tag { color: var(--r6-purple-lite); }
.cit-kb2-card__title { margin-top: 12px; font-size: 17.5px; font-weight: 800; line-height: 1.25; color: var(--r6-ink); }
.cit-kb2-card__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--r6-text); }
.cit-kb2-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--r6-text);
}
.cit-kb2-card__foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }

.cit-kb2-recent {
  padding: 24px;
  border: 1px solid var(--r6-line);
  border-radius: 18px;
  background: var(--r6-card);
}
.cit-kb2-recent ul { margin: 0 0 16px; padding: 0; list-style: none; }
.cit-kb2-recent li + li { border-top: 1px solid var(--r6-line-2); }
.cit-kb2-recent li a { display: flex; gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
.cit-kb2-recent__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--r6-purple-soft);
  color: var(--r6-purple);
}
.cit-kb2-recent b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--r6-ink); }
.cit-kb2-recent li a:hover b { color: var(--r6-purple); }
.cit-kb2-recent small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--r6-text); }

/* --- Urgent-support band --------------------------------------------- */
.cit-kb2-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 22px;
  background: var(--r6-navy);
  color: #fff;
}
.cit-kb2-band__photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 68%;
  height: 100%;
  object-fit: cover;
}
.cit-kb2-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--r6-navy) 0%, var(--r6-navy) 34%, rgba(11, 23, 56, .55) 60%, rgba(11, 23, 56, .1) 100%);
}
.cit-kb2-band__copy { max-width: 520px; }
.cit-kb2-chip--sm { margin-bottom: 12px; padding: 6px 12px; font-size: 10.5px; }
.cit-kb2-band__title { margin: 0; font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.cit-kb2-band__copy p:not(.cit-kb2-chip) { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.cit-kb2-band__phone { margin-top: 22px; font-size: 20px; padding: 12px 22px; gap: 10px; }

/* --- Closing strip ---------------------------------------------------- */
.cit-kb2-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 5vw, 64px);
  background:
    linear-gradient(90deg, var(--r6-tint) 0%, var(--r6-tint) 45%, rgba(246, 245, 255, .5) 75%, rgba(246, 245, 255, .1) 100%),
    url("/assets/img/home/cta-algarve-1200.webp") right center / auto 100% no-repeat;
}
html.dark .cit-kb2-cta {
  background:
    linear-gradient(90deg, var(--r6-tint) 0%, var(--r6-tint) 50%, rgba(26, 24, 64, .7) 100%),
    url("/assets/img/home/cta-algarve-1200.webp") right center / auto 100% no-repeat;
}
.cit-kb2-cta__inner { display: flex; align-items: center; gap: 24px 48px; }
.cit-kb2-cta__inner > div:first-child { max-width: 520px; }
.cit-kb2-cta__inner p:not(.cit-kb2-eyebrow) { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--r6-text); }
.cit-kb2-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Category, search and article heroes ---------------------------- */
/* kb/category.php, kb/search.php and kb/article.php keep their existing
   hero markup (caminho.css §31) and add .cit-kb-hero--dark, which turns it
   into the 2026 dark photographic hero: the photograph fills the band, the
   header sits over it and the copy is white. */
.cit-kb-hero--dark {
  isolation: isolate;
  margin-top: calc(var(--cit-header-h) * -1);
  padding-top: var(--cit-header-h);
  background: var(--r6-navy);
  border-bottom: 0;
  color: #fff;
}
.cit-kb-hero--dark .cit-kb-hero__frame {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}
.cit-kb-hero--dark .cit-kb-hero__frame img { object-position: 85% 50%; }
.cit-kb-hero--dark .cit-kb-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 17, 48, .96) 0%, rgba(8, 17, 48, .86) 36%, rgba(8, 17, 48, .35) 64%, rgba(8, 17, 48, .08) 82%),
    linear-gradient(0deg, rgba(8, 17, 48, .5) 0%, rgba(8, 17, 48, 0) 40%);
}
.cit-kb-hero--dark .cit-kb-hero__inner { padding-block: clamp(28px, 3vw, 44px) clamp(36px, 4vw, 56px); }
.cit-kb-hero--dark .cit-kb-hero__copy { max-width: 640px; }
.cit-kb-hero--dark .cit-breadcrumb,
.cit-kb-hero--dark .cit-breadcrumb li,

.cit-kb-hero--dark .cit-breadcrumb a { color: rgba(255, 255, 255, .88); }
.cit-kb-hero--dark .cit-breadcrumb a:hover { color: #fff; }
.cit-kb-hero--dark .cit-breadcrumb li + li::before { color: rgba(255, 255, 255, .45); }
.cit-kb-hero--dark .cit-kb-hero__cat {
  margin: 0 0 16px;
  padding: 6px 13px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: #fff;
  text-decoration: none;
}
.cit-kb-hero--dark a.cit-kb-hero__cat:hover { background: #fff; color: var(--r6-navy); }
.cit-kb-hero--dark h1.cit-hero__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fff;
}
.cit-kb-hero--dark .cit-kb-hero__lead { max-width: 34em; font-size: clamp(15px, 1.25vw, 17.5px); color: rgba(255, 255, 255, .86); }
.cit-kb-hero--dark .cit-kb-hero__meta { color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.cit-kb-hero--dark .cit-kb-hero__meta .cit-ico { color: #b3a8ff; }
.cit-kb-hero--dark .cit-kb-hero__hand { color: #fff; text-shadow: 0 2px 18px rgba(5, 10, 30, .45); font-size: 26px; width: 240px; }
.cit-kb-hero--dark .cit-kb-hero__hand .cit-swoosh { color: var(--r6-purple-2); }
/* The search sits in the copy column, white on the dark band. */
.cit-kb-hero--dark .cit-kb-hero__search {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  max-width: none;
  margin: 26px 0 0;
}
.cit-kb-hero--dark .cit-kb-hero__search .cit-input {
  height: 52px;
  border-color: transparent;
  background: #fff;
  color: #101b3e;
  box-shadow: 0 18px 40px -18px rgba(3, 8, 30, .7);
}
.cit-kb-hero--dark .cit-kb-hero__search .cit-input::placeholder { color: #7a83a3; }
.cit-kb-hero--dark .cit-kb-hero__search .cit-search__icon { color: #7a83a3; }
@media (min-width: 981px) {
  .cit-kb-hero--dark .cit-kb-hero__inner { min-height: 0; }
  .cit-kb-hero--dark .cit-kb-hero__hand { top: calc(var(--cit-header-h) + 34px); right: 12%; }
}
@media (max-width: 980px) {
  .cit-kb-hero--dark .cit-kb-hero__hand { display: none; }
  .cit-kb-hero--dark .cit-kb-hero__frame::after { background: linear-gradient(180deg, rgba(8, 17, 48, .9) 0%, rgba(8, 17, 48, .8) 60%, rgba(8, 17, 48, .92) 100%); }
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .cit-kb2-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cit-kb2-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cit-kb2-common { grid-template-columns: minmax(0, 1fr); }
  .cit-kb2-feature { min-height: 300px; }
  .cit-kb2-head { flex-wrap: wrap; align-items: flex-start; }
  .cit-kb2-head__aside { flex-basis: 100%; }
  .cit-kb2-head .cit-kb2-link { margin-left: 0; }
  .cit-kb2-band__photo { width: 100%; opacity: .5; }
  .cit-kb2-band::before { background: linear-gradient(90deg, rgba(11, 23, 56, .95) 0%, rgba(11, 23, 56, .75) 100%); }
  .cit-kb2-cta__inner { flex-direction: column; align-items: flex-start; }
  .cit-kb2-cta { background: var(--r6-tint); }
}
@media (max-width: 640px) {
  .cit-kb2-cats, .cit-kb2-cards { grid-template-columns: minmax(0, 1fr); }
  .cit-kb2-cat { grid-template-columns: 52px minmax(0, 1fr) 30px; gap: 14px; padding: 16px; }
  .cit-kb2-cat__ico { width: 52px; height: 52px; border-radius: 14px; }
  .cit-kb2-search { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .cit-kb2-search input { padding-block: 8px; }
  .cit-kb2-search .cit-btn { width: 100%; justify-content: center; }
  .cit-kb2-benefits { flex-direction: column; }
  .cit-kb2-feature__body { padding: 22px 22px 84px; }
  .cit-kb2-feature__go { left: 22px; right: auto; bottom: 22px; }
  .cit-kb2-acc__panel { padding-left: 18px; }
  .cit-kb2-band__phone { font-size: 18px; }
  .cit-kb2-cta__actions, .cit-kb2-cta__actions .cit-btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* 6. Reduced motion and print                                         */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .cit-lg-sec, .cit-lg-sec__chev, .cit-lg-toc__chev,
  .cit-kb2-cat, .cit-kb2-card, .cit-kb2-feature img, .cit-kb2-go, .cit-kb2-acc__chev { transition: none; }
  .cit-kb2-cat:hover, .cit-kb2-card:hover { transform: none; }
}

@media print {
  .cit-header, .cit-footer, .cit-cookie, .cit-float-cta,
  .cit-lg-hero__photo, .cit-lg-hero__hand, .cit-lg-assure, .cit-lg-chip,
  .cit-lg-toc, .cit-lg-side, .cit-lg-note, .cit-lg-doc__all,
  .cit-lg-sec__ico, .cit-lg-sec__chev, .cit-lg-sec__sum { display: none !important; }
  .cit-lg-hero { margin: 0; padding: 0; background: #fff !important; color: #000; }
  .cit-lg-hero::before { display: none; }
  .cit-lg-hero__inner { padding: 0 0 8px; }
  .cit-lg-hero__title { font-size: 26px; color: #000; }
  .cit-lg-hero__accent { background: none; color: #000; }
  .cit-lg-hero__lead { color: #333; font-size: 13px; }
  .cit-lg-grid { display: block; }
  .cit-lg-doc { border: 0; box-shadow: none; padding: 0; }
  .cit-lg-sec, .cit-lg-sec.is-open { background: none; border: 0; margin: 0; break-inside: avoid-page; }
  .cit-lg-sec__btn { display: block; padding: 10px 0 2px; }
  .cit-lg-sec__panel, .cit-lg-sec__panel[hidden] { display: block !important; padding: 0 0 6px; }
  .cit-lg-clause { color: #000; font-size: 12px; }
}
