:root {
  /* % of the diagram's own width, not px — keeps the shift proportional as the diagram scales */
  --kc-overlay-start-adjust: 6%;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --cream: #F7F5F0;
  --s2: #EFECE6;
  --s3: #DDD9D0;
  --s4: #CBC6BC;
  --text: #22202C;
  --t2: #5A5472;
  --t3: #A098B8;
  --accent: #8B6B9A;
  --al: #EDE0FA;
  --data: #B85F36;
  --data-l: rgba(184, 95, 54, 0.12);
  --amber: #A87420;
  --green: #256B48;
  --green-l: rgba(37, 107, 72, 0.12);
  --blue: #2B6CB0;
  --error: #d44437;
  --success: #4da752;
  --progress: #d0b738;
  --na: #8c8c93;
  --sh1: 0 2px 8px rgba(34, 32, 44, .07);
  --sh2: 0 6px 20px rgba(34, 32, 44, .12);
  --fd: 'Poppins', sans-serif;
  --fb: 'Asap', sans-serif;
  --nh: 72px;
  --fs-2xs: 8px;
  --fs-xs: 9.5px;
  --fs-sm: 10px;
  --fs-sm-md: 10.5px;
  --fs-md: 11px;
  --fs-md-lg: 11.5px;
  --fs-base: 12px;
  --fs-base-md: 13px;
  --fs-base-lg: 13.5px;
  --fs-lg: 14px;
  --fs-xl: 15px;
  --fs-2xl: 16px;
  --fs-3xl: 18px;
  --fs-4xl: 22px;
  --fs-5xl: 26px;
  --fs-6xl: 28px;
  --fs-7xl: 32px;
  --fs-8xl: 68px;
}

[data-theme="dark"] {
  --bg: #110E1C;
  --surface: #1A1728;
  --s2: #221E32;
  --s3: #2C2840;
  --s4: #3A3558;
  --text: #E8E0F8;
  --t2: #8880A4;
  --t3: #44405C;
  --accent: #A880BC;
  --al: rgba(168, 128, 188, .15);
  --data: #CC7244;
  --data-l: rgba(204, 114, 68, 0.15);
  --amber: #BC9030;
  --green: #30A060;
  --green-l: rgba(48, 160, 96, 0.15);
  --blue: #4A90D8;
  --error: #d44437;
  --success: #81C784;
  --progress: #d2d655;
  --na: #8c8c93;
  --sh1: 0 2px 8px rgba(0, 0, 0, .3);
  --sh2: 0 6px 20px rgba(0, 0, 0, .4);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--fs-xl)
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px
}

h1 {
  font-family: var(--fd);
  font-size: clamp(var(--fs-5xl), 2.8vw, var(--fs-6xl));
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

h2 {
  font-family: var(--fd);
  font-size: var(--fs-4xl);
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2
}

h3 {
  margin-bottom: 8px;
}


h4 {
  margin-bottom: 4px;
}

p, ul, ol {
  color: var(--t2);
}

/* NAV */
#nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nh);
  z-index: 200;
  background: rgba(247, 245, 240, 0);
  transition: background .25s, border-color .25s, box-shadow .25s;
  border-bottom: 1px solid transparent
}

#nav.scrolled {
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(16px);
  border-color: var(--s3);
  box-shadow: 0 1px 12px rgba(34, 32, 44, .06)
}

[data-theme="dark"] #nav {
  background: rgba(17, 14, 28, 0)
}

[data-theme="dark"] #nav.scrolled {
  background: rgba(17, 14, 28, .96);
  border-color: var(--s3)
}

.center-text {
  text-align: center;
}

.left-align {
  text-align: start;
  align-self: start;
}

.right-align {
  text-align: end;
  align-self: end;
}

.ni {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 36px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative
}

.nlogo {
  margin-right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity .2s
}

.nlogo:hover {
  opacity: .7
}

.nlogo img {
  height: 50px;
  object-fit: contain
}

.nlinks {
  list-style: none;
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto
}

.nl {
  height: var(--nh);
  padding: 0 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 500;
  white-space: normal;
  color: var(--t2);
  transition: color .2s;
  position: relative;
  display: flex;
  align-items: center;
  width: 150px;
  text-align: center;
  justify-content: center;
  line-height: 1.3
}

.nl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .25s;
  border-radius: 2px 2px 0 0
}

.nl:hover {
  color: var(--text)
}

.nl.active {
  color: var(--text);
  font-weight: 700
}

.nl.active::after {
  transform: scaleX(1)
}

.nsp {
  flex: 1
}

.tbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--fb);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  background: var(--s2);
  border: 1px solid var(--s3);
  color: var(--t2);
  transition: all .2s
}

.tbtn:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.tbtn-moon { display: none }
[data-theme="light"] .tbtn-sun  { display: block }
[data-theme="light"] .tbtn-moon { display: none }
[data-theme="dark"]  .tbtn-sun  { display: none }
[data-theme="dark"]  .tbtn-moon { display: block }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  z-index: 201;
  margin-left: auto;
  transition: color .2s
}

.hamburger:hover {
  color: var(--accent)
}

.hamburger svg {
  width: 24px;
  height: 24px;
  stroke-width: 2
}

#mobile-menu {
  display: none;
  position: fixed;
  background: var(--bg);
  inset: var(--nh) 0 0 0;
  flex-direction: column;
  z-index: 199;
  box-shadow: var(--sh2)
}

#mobile-menu.open {
  display: flex
}

.mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  /* padding: 20px 24px; */
  gap: 0
}

.mobile-nav li {
  border-bottom: 1px solid var(--s3)
}

.mobile-nav button {
  width: 100%;
  text-align: center;
  padding: 26px 0;
  background: none;
  border: none;
  font-family: var(--fb);
  font-size: var(--fs-lg);
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: color .2s;
}

.mobile-nav h2 {
  margin-bottom: 0;
}

.mobile-nav button:hover,
.mobile-nav button.active {
  color: var(--accent);
  background: var(--cream);
}

/* ── TOOLKIT DROPDOWN ── */
.nl-toolkit-wrap {
  position: relative;
}

.nl-toolkit {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nl-chevron {
  transition: transform .2s;
  flex-shrink: 0;
}

.nl-toolkit-wrap:hover .nl-chevron {
  transform: rotate(180deg);
}

.toolkit-dropdown {
  position: absolute;
  top: calc(100% - 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--s2);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 250;
}

.toolkit-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--s2);
}

.nl-toolkit-wrap:hover .toolkit-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toolkit-dropdown button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--surface);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--t2);
  white-space: nowrap;
  transition: all .25s ease;
  flex-shrink: 0;
}

.toolkit-dropdown button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}

/* ── PG-SUBNAV (inside toolkit page headers) ── */
.pg-subnav {
  background: var(--s2);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 40px;
}

.pg-subnav-links {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pg-subnav-links h3 {
  margin: 0;
  white-space: nowrap;
}

.pg-subnav-toggle {
  display: none;
}

/* ── TOOLKIT MOBILE MENU ── */
#toolkit-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 198;
  flex-direction: column;
  overflow-y: auto;
}

@media (min-width: 900px) {
  #toolkit-menu { display: none !important; }
}

#toolkit-menu.open {
  display: flex;
}

.toolkit-menu-inner {
  display: flex;
  flex-direction: column;
  padding-top: var(--nh);
}

.toolkit-menu-back {
  display: flex;
  /* align-items: center; */
  gap: 8px;
  padding: 20px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--s3);
  cursor: pointer;
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  font-weight: 500;
  color: var(--t2);
  transition: color .2s;
  width: 100%;
  text-align: right;
  margin-left: auto;
}

.toolkit-menu-back:hover { color: var(--accent); }

.toolkit-menu-back svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  
}

.toolkit-menu-list {
  list-style: none;
}

.toolkit-menu-list li {
  border-bottom: 1px solid var(--s3);
}

.toolkit-menu-list button {
  width: 100%;
  text-align: center;
  padding: 26px 0;
  background: none;
  border: none;
  font-family: var(--fb);
  font-size: var(--fs-lg);
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  transition: color .2s, background .2s;
}

.toolkit-menu-list button:hover,
.toolkit-menu-list button.active {
  color: var(--accent);
  background: var(--cream);
}

.snl {
  display: inline-flex;
  cursor: pointer;
  background: var(--surface);
  padding: 12px 28px;
  /* border: 2px solid var(--s3); */
  border: none;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--t2);
  transition: all .25s ease;
  white-space: nowrap;
}

.snl:hover { color: var(--surface); background: var(--accent); border-color: var(--accent); }
.snl.active { color: var(--surface); background: var(--accent); border-color: var(--accent); }

/* ── MOBILE SUB-ITEMS ── */
.mobile-toolkit-label {
  background: var(--s);
  border-bottom: 1px solid var(--s3);
}

.mobile-toolkit-label span {
  display: block;
  padding: 8px 0;
  text-align: center;
  font-family: var(--fb);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--t2);
}

.mobile-sub {
  border-bottom: 1px solid var(--s3);
  background: var(--s2);
}

.mobile-sub button {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  background: none;
  border: none;
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  font-weight: 500;
  cursor: pointer;
  color: var(--t2);
  transition: color .2s;
}

.mobile-sub button:hover,
.mobile-sub button.active {
  color: var(--accent);
  background: var(--s3);
}

/* .mobile-nav  {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
  gap: 16px
} */

.nav-tk-card {
  background: var(--surface);
  border: 1px solid var(--s3);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--sh1);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.nav-tk-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-3px);
  border-color: var(--accent)
}

.mobile-nav .grid,
#toolkit-menu .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px 16px 16px;
  width: 100%;
}

.mobile-nav .grid .grid-item {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
}

.mobile-nav .grid .grid-item:hover {
  background: var(--accent);
  color: var(--surface);
}

.mobile-nav .grid .tk-card,
#toolkit-menu .grid .tk-card {
  opacity: 1;
  transform: none;
  min-height: unset;
  padding: 12px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

#toolkit-menu .grid .tk-card:hover {
  background: var(--accent);
  color: #fff;
}

#toolkit-menu .grid .tk-card:hover h2{
  color: #fff;
}

/* PAGE SWITCHING */
.page {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden
}

.page.active {
  display: block !important;
  visibility: visible;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  animation: pgIn .28s ease both
}

@keyframes pgIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* SHARED BUTTONS */
.btn-p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(139, 107, 154, .35);
  position: relative;
  overflow: hidden
}

.btn-p::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .1);
  opacity: 0;
  transition: opacity .25s;
  border-radius: 10px
}

.btn-p:hover::before {
  opacity: 1
}

.btn-p:active {
  transform: translateY(-1px)
}

.btn-s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 700;
  cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--s3);
  color: var(--text);
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(34, 32, 44, .08);
  position: relative
}

.btn-s:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--al);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 107, 154, .15)
}

.btn-s:active {
  transform: translateY(0)
}

/* INTERIOR PAGE HEADER */
.pg-hdr {
  padding: calc(var(--nh) + 36px) 0 32px
}

.pg-desc {
  font-size: var(--fs-2xl);
  color: var(--t2);
  line-height: 1.7
}

.pg-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 80px
}

/* ═══════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════ */
#p-home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nh);
  overflow: auto;
  z-index: 0
}

#p-change {
  min-height: calc(100svh - var(--nh))
}

.home-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  justify-content: flex-start
}

.home-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  flex: 1;
  min-height: 0;
  position: relative
}

.hero-left {
  animation: fadeUp .45s ease both;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start
}

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px
}

.hero-h1 {
  font-family: var(--fd);
  font-size: clamp(var(--fs-6xl), 2.8vw, var(--fs-8xl));
  font-weight: 800;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 10px
}

.blurb {
  font-size: var(--fs-2xl);
  color: var(--t2);
  line-height: 1.68;
  /* margin-bottom: 16px; */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blurb strong {
  color: var(--text);
  font-weight: 700
}

.quote {
  font-style: italic;
}

.kc-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--t3);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
  width: 100%
}

.kc-label::after {
  content: '';
  height: 0;
  background: transparent
}

.kc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px
}

.kc-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--s3);
  transition: border-color .2s
}

.kc-item:hover {
  border-color: var(--accent)
}

.kc-item:last-child {
  grid-column: 1/-1
}

.kc-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.kc-dot svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.kc-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  font-family: var(--fd);
}

.kc-tag {
  font-size: var(--fs-sm-md);
  color: var(--t2)
}

.kc-a .kc-dot {
  background: var(--al)
}

.kc-a .kc-dot svg {
  stroke: var(--accent)
}

/* MINDMAP COMPONENT LAYOUT ON RIGHT */
.kc-circle {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center
}

.kc-circle-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0
}

.kc-circle-center .btn-p {
  width: 140px;
  height: 140px;
  font-size: var(--fs-2xl);
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 6px 24px rgba(139, 107, 154, .4);
}

.kc-circle-center .btn-s {
  display: none
}

.kc-circle-center button:not(.btn-p):not(.btn-s) {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer
}

.kc-circle-center button:not(.btn-p):not(.btn-s) img {
  max-width: 100%;
  height: auto;
  display: block
}

.kc-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.kc-orbit-item {
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .2s;
  transform: translate(-50%, -50%)
}

.kc-orbit-item:hover {
  transform: translate(-50%, -50%) scale(1.1)
}

.kc-orbit-item .kc-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.kc-orbit-item .kc-dot svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.kc-orbit-item .kc-dot img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block
}

.kc-orbit-item-label {
  font-family: var(--fd);
  font-size: var(--fs-base-lg);
  font-weight: 700;
  color: var(--text);
  text-align: left;
  line-height: 1.2;
  max-width: 90px
}

.kc-orbit-item-tag {
  font-size: var(--fs-2xl);
  color: var(--t2);
  text-align: left;
  line-height: 1.1
}

/* Triangle - 3 nodes at 145px radius, pivot connectors from item center */
.kc-orbit-item:nth-child(1) {
  top: 35px;
  left: 50%
}

.kc-orbit-item:nth-child(1)::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 100px;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 2px;
  z-index: 1;
  transform-origin: center top
}

.kc-orbit-item:nth-child(2) {
  top: 252px;
  left: calc(50% + 126px)
}

.kc-orbit-item:nth-child(2) > * {
  transform: translateY(13px)
}

.kc-orbit-item:nth-child(2)::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 100px;
  top: 0%;
  left: 20%;
  transform: translateX(-50%) rotate(120deg);
  background: var(--accent);
  border-radius: 2px;
  z-index: 1;
  transform-origin: center top
}

.kc-orbit-item:nth-child(3) {
  top: 252px;
  left: calc(50% - 126px)
}

.kc-orbit-item:nth-child(3) > * {
  transform: translateY(13px)
}

.kc-orbit-item:nth-child(3)::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 100px;
  top: 0%;
  left: 70%;
  transform: translateX(-50%) rotate(-120deg);
  background: var(--accent);
  border-radius: 2px;
  z-index: 1;
  transform-origin: center top
}

/* Color variants */
.kc-orbit-item:nth-child(1) .kc-dot {
  background: var(--al)
}

.kc-orbit-item:nth-child(1) .kc-dot svg {
  stroke: var(--accent)
}

.kc-orbit-item:nth-child(2) .kc-dot {
  background: var(--al)
}

.kc-orbit-item:nth-child(2) .kc-dot svg {
  stroke: var(--accent)
}

.kc-orbit-item:nth-child(3) .kc-dot {
  background: var(--al)
}

.kc-orbit-item:nth-child(3) .kc-dot svg {
  stroke: var(--accent)
}

.kc-b .kc-dot {
  background: transparent
}

.kc-b .kc-dot svg {
  stroke: var(--data)
}

.kc-c .kc-dot {
  background: transparent
}

.kc-c .kc-dot svg {
  stroke: var(--green)
}

.kc-d .kc-dot {
  background: transparent
}

.kc-d .kc-dot svg {
  stroke: var(--amber)
}

.kc-e .kc-dot {
  background: transparent
}

.kc-e .kc-dot svg {
  stroke: var(--blue)
}

.acts {
  display: flex;
  gap: 9px;
  flex-wrap: wrap
}

/* Steps - Combined with cards */
.steps-col {
  animation: fadeUp .45s .08s ease both;
  border-left: none;
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  margin-top: 0;
  border-top: none;
  border-bottom: none
}

.steps-hdr {
  margin-bottom: 24px;
  display: block
}

.steps-title {
  display: block
}

.steps-sub {
  display: block
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  align-items: stretch
}

.step-card-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  align-items: center;
  height: 100%;
  min-width: 0
}

.step-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  position: relative;
  padding-top: 0;
  gap: 12px;
  height: 100%;
  min-height: 300px
}

.step-col:hover .step-name {
  color: var(--accent)
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  flex-shrink: 0
}

.step-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  ;
  
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s, background .25s;
  flex-shrink: 0
}

.step-col:hover .step-ring {
  /* border-color: var(--accent); */
  border: 1px solid var(--accent);
  background: white;
  box-shadow: 0 4px 12px rgba(139, 107, 154, .2);
}

.step-n {
  font-family: var(--fd);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--accent);
  transition: color border .25s;
}

.step-conn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(70%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 40px;
  height: 20px;
  z-index: 10
}

.step-conn::before {
  content: '';
  flex: 1;
  height: 4px;
  background: var(--accent);
  border-radius: 2px 0 0 2px
}

.step-conn::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid var(--accent)
}

.step-body {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 100%
}

.step-col .btn-p {
  margin-top: auto;
  padding: 9px 18px;
  width: 140px;
  font-size: var(--fs-base);
  align-self: center
}

.step-name {
  color: var(--text);
  transition: color .2s;
  word-break: break-word
}

.step-desc {
  font-size: var(--fs-2xl);
  color: var(--t2);
  line-height: 1.4
}

.step-chip {
  display: none
}

/* Home bottom cards - deprecated, combined with steps */
.home-bottom {
  display: none
}

.cards-lbl {
  display: none
}

.tk-card {
  background: var(--surface);
  border: 1px solid var(--s3);
  border-radius: 14px;
  padding: 16px 16px 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: box-shadow .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1), background .15s;
  opacity: 0;
  /* transform: translateY(18px); */
  box-shadow: var(--sh1)
}

.tk-card.vis {
  opacity: 1;
  transform: translateY(0)
}

.tk-card-thick {
  border: 2px solid var(--accent)
}

.tk-card:hover {
  /* border-width: 4px; */
  background: rgba(139, 107, 154, .1);
  box-shadow: var(--sh2);
  transform: scale(1.08)
}

.tk-card:hover::before {
  transform: scaleY(1);
  transform-origin: top
}


.tk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px
}

.tk-num {
  display: none
}

.tk-card:hover .tk-num {
  opacity: .85;
  /* transform: scale(1.08); */
}

.tk-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--al);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}

.tk-card:hover .tk-ico {
  transform: scale(1.1) rotate(-4deg)
}

.tk-ico svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.tk-title {
  font-family: var(--fd);
  font-size: var(--fs-base-lg);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2
}

.tk-desc {
  font-size: var(--fs-base-lg);
  color: var(--t2);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.tk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

.tk-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: var(--fs-sm-md);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--s3);
  color: var(--t2);
  background: var(--s2);
  transition: all .18s;
  cursor: pointer
}

.tk-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--al)
}

.tk-link svg {
  width: 7px;
  height: 7px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}


.tk2 .tk-num,
.tk2:hover .tk-num {
  color: var(--data)
}

.tk2 .tk-ico {
  background: rgba(184, 95, 54, .1)
}

.tk2 .tk-ico svg {
  stroke: var(--data)
}

.tk2::before {
  background: var(--data)
}

.tk2:hover {
  background: rgba(184, 95, 54, .1)
}

.tk2 .tk-link:hover {
  color: var(--data);
  border-color: var(--data)
}

.tk3 .tk-num,
.tk3:hover .tk-num {
  color: var(--green)
}

.tk3 .tk-ico {
  background: rgba(37, 107, 72, .1)
}

.tk3 .tk-ico svg {
  stroke: var(--green)
}

.tk3::before {
  background: var(--green)
}

.tk3:hover {
  background: rgba(37, 107, 72, .1)
}

.tk3 .tk-link:hover {
  color: var(--green);
  border-color: var(--green)
}

.tk4 .tk-num,
.tk4:hover .tk-num {
  color: var(--amber)
}

.tk4 .tk-ico {
  background: rgba(168, 116, 32, .1)
}

.tk4 .tk-ico svg {
  stroke: var(--amber)
}

.tk4::before {
  background: var(--amber)
}

.tk4:hover {
  background: rgba(168, 116, 32, .1)
}

.tk4 .tk-link:hover {
  color: var(--amber);
  border-color: var(--amber)
}

.tk5 .tk-num,
.tk5:hover .tk-num {
  color: var(--blue)
}

.tk5 .tk-ico {
  background: rgba(43, 108, 176, .1)
}

.tk5 .tk-ico svg {
  stroke: var(--blue)
}

.tk5::before {
  background: var(--blue)
}

.tk5:hover {
  background: rgba(43, 108, 176, .1)
}

.tk5 .tk-link:hover {
  color: var(--blue);
  border-color: var(--blue)
}

/* ═══════════════════════════════════════════
   KEY COMPONENTS PAGE
═══════════════════════════════════════════ */
.kcsec {
  padding: 44px 0;
  background: var(--bg)
}

.kc-diagram-wrap {
  display: block;
  width: calc(100% - 56px);
  margin-left: 56px;
  align-self: start;
  /* margin-bottom: 28px */
}

/* Contains only the image + overlay (not the caption below), so the overlay's
   percentage position/size is always relative to the diagram's own rendered
   box, never inflated by caption text wrapping onto more/fewer lines. */
.kc-diagram-frame {
  position: relative;
  display: block;
  container-type: inline-size;
}

.kc-diagram-img {
  display: block;
  width: 100%;
  height: auto
}

/* Highlight box — position/size are percentages of the SVG's rendered dimensions.
   Edit --ox (left), --oy (top), --ow (width), --oh (height) per section.
   --kc-line is the stroke thickness (box border + arrow), sized in cqw units against
   .kc-diagram-wrap's own width (the diagram now always fills the wrap exactly, see
   .kc-diagram-img below, so this tracks the diagram's real rendered size directly).
   Everything below it (gap, arrow length, radii) derives from it. */
.kc-diagram-overlay {
  --kc-line: clamp(3px, 1.2cqw, 9px);
  --kc-gap: calc(var(--kc-line) * 1.5);
  --kc-head-len: calc(var(--kc-line) * 1.75);
  --kc-shaft-len: calc(var(--kc-line) * 4.5);
  position: absolute;
  left: calc(var(--ox, 10%) + var(--kc-overlay-start-adjust));
  top: var(--oy, 10%);
  width: calc(var(--ow, 25%) - var(--kc-overlay-start-adjust));
  height: var(--oh, 30%);
  border: var(--kc-line) solid #e53e3e;
  border-radius: var(--kc-line);
  background: rgba(229, 62, 62, 0.06);
  pointer-events: none;
  box-sizing: border-box
}

/* Arrow sitting outside the diagram, pointing right into the overlay */
.kc-diagram-overlay::before {
  content: '';
  position: absolute;
  right: calc(100% + var(--kc-gap) + var(--kc-head-len) + var(--kc-overlay-start-adjust));
  top: 50%;
  transform: translateY(-50%);
  width: var(--kc-shaft-len);
  height: var(--kc-line);
  background: #e53e3e;
  border-top-left-radius: calc(var(--kc-line) * 0.5);
  border-bottom-left-radius: calc(var(--kc-line) * 0.5);
  pointer-events: none
}

.kc-diagram-overlay::after {
  content: '';
  position: absolute;
  right: calc(100% + var(--kc-gap) + var(--kc-overlay-start-adjust));
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: var(--kc-line) solid transparent;
  border-bottom: var(--kc-line) solid transparent;
  border-left: var(--kc-head-len) solid #e53e3e;
  border-top-right-radius: calc(var(--kc-line) * 0.5);
  border-bottom-right-radius: calc(var(--kc-line) * 0.5);
  pointer-events: none
}


.fig-caption {
  font-size: 0.75rem;
  color: #555;
  text-align: center;
  margin: 6px 0 0 0;
  font-style: italic;
}

.kcsec-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap
}

.kcsec-head h2 {
  margin: 0
}

.kcsec-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.kcsec-badge img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block
}

.kcsec-badge svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* .kcsec-namegroup {
  flex: 1;
  
} */

/* .kcsec-name {
  font-family: var(--fd);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 2px
} */

.kcsec-tag {
  font-size: var(--fs-2xl);
  color: var(--t2)
}

/* accordion */
.kc-accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px
}

.kc-acc-item {
  display: block
}

.kc-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: none;
  cursor: pointer;
  font-family: var(--fb);
  ;
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: #fff;
  text-align: left;
  gap: 16px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* transition: all .25s ease */
}

.kc-acc-trigger::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: rgba(255, 255, 255, .1); */
  opacity: 0;
  /* transition: opacity .25s; */
  border-radius: 4px
}

.kc-acc-trigger:hover {
  filter: brightness(1.15);
  /* transform: translateY(-2px) */
}

.kc-acc-trigger:hover::before {
  opacity: 1
}

/* .kc-acc-trigger:active {
  transform: translateY(0)
} */

.kc-acc-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s
}

.kc-acc-item.open .kc-acc-icon {
  transform: rotate(180deg)
}

.kc-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  margin-top: -12px;
  border: 2px solid var(--surface);
  border-radius: 4px
}

.kc-acc-item:not(.open) .kc-acc-panel {
  margin-bottom: 12px
}

.kc-acc-item.open .kc-acc-panel {
  grid-template-rows: 1fr
}

.kc-acc-panel-inner {
  overflow: hidden;
  border-radius: 4px
}

.content-layout {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.kc-acc-content {
  padding: 24px 28px;
}

.kc-content-layout-1 {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin: 40px 0;
}

.kc-content-layout-2 {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0;
}

.kc-split-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.kc-split-panel-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}

.kc-split-panel-3 {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 28px;
}

.kc-headliner-1 {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 14px;
  
}

.kc-headliner-1 p {
    background: color-mix(in srgb, var(--t2) 15%, transparent);
padding: 28px 28px;
 border-radius: 0 50px 50px 0;
 border-left: 8px solid var(--accent);
  text-align: center;
  /* font-size: clamp(var(--fs-5xl), 2.8vw, var(--fs-6xl)); */
  font-size: var(--fs-2xl);
  font-family: var(--fd);
  line-height: 1.3;
  color: var(--t2);
}

.kc-evidence-1 {
  /* align-items: center; */
  display: flex;
  flex-direction: column;
  padding: 28px;
  gap: 28px;
  text-align: center;
  
}

.kc-headliner-2 {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 14px;
  background: color-mix(in srgb, var(--t2) 15%, transparent);
  padding: 28px 28px;
  border-radius: 0 50px 50px 0;
  border-left: 8px solid var(--accent);
  
}

.kc-headliner-2 p {

  text-align: left;
  /* font-size: clamp(var(--fs-5xl), 2.8vw, var(--fs-6xl)); */
  font-size: var(--fs-2xl);
  font-family: var(--fd);
  line-height: 1.3;
  color: var(--t2);
}

.kc-headliner-2 ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
  text-align: left;
}

.kc-headliner-2 li {
  font-size: var(--fs-2xl);
  font-family: var(--fd);
  line-height: 1.3;
  color: var(--t2);
}

.kc-evidence-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.kc-evidence-2 .item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
}

.kc-evidence-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  margin: 0 auto;
}

.kc-evidence-3 .item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
}


.kc-headliner-3  {
  background: color-mix(in srgb, var(--t2) 15%, transparent);
  padding: 28px 28px;
  text-align: left;
  /* font-size: clamp(var(--fs-5xl), 2.8vw, var(--fs-6xl)); */
  font-size: var(--fs-2xl);
  font-family: var(--fd);
  line-height: 1.3;
  color: var(--t2);
}

.kc-headliner-3 li {
  margin-left: 20px;
}

.kc-diagrams {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.kc-quote-1 {
  max-width: 800px;
  margin: 0 auto;
  background: var(--t2);
  /* background: color-mix(in srgb, var(--cream) 70%, transparent); */
  text-align: center;
  padding: 28px 28px;
  color: var(--surface);
  margin: auto auto;
}

.kc-quote-1 p {
  color: var(--surface);
}

.kc-quote-2 {
  background: var(--t2);
  /* background: color-mix(in srgb, var(--cream) 70%, transparent); */
  text-align: center;
  padding: 28px 28px;
  color: var(--surface);
}

.kc-quote-2 p {
  color: var(--surface);
}

.kc-acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px
}

.kc-acc-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px
}



.content-layout ul,
.content-layout ol {
  padding-left: 20px
}

.kc-acc-content ul,
.kc-acc-content ol {
  padding-left: 20px
}

.kc-acc-content li {
  margin-bottom: 6px
}

/* color variants */
.kcsec-1 .kcsec-badge {
  background: var(--al)
}

.kcsec-1 .kcsec-badge svg {
  stroke: var(--accent)
}

.kcsec-1 .kc-acc-trigger {
  background: var(--accent);
}


.kcsec-1 .kc-acc-icon {
  stroke: #C9AFDC
}

.kcsec-1 .kc-acc-panel-inner {
  background: var(--al)
}

.kcsec-1 .kc-acc-label {
  color: var(--accent)
}

.kcsec-2 .kcsec-badge {
  background: var(--al)
}

.kcsec-2 .kcsec-badge svg {
  stroke: var(--accent)
}

.kcsec-2 .kc-acc-trigger {
  background: var(--accent);
}

.kcsec-2 .kc-acc-trigger:hover {
}

.kcsec-2 .kc-acc-icon {
  stroke: #C9AFDC
}

.kcsec-2 .kc-acc-panel-inner {
  background: var(--al)
}

.kcsec-2 .kc-acc-label {
  color: var(--accent)
}

.kcsec-3 .kcsec-badge {
  background: var(--al)
}

.kcsec-3 .kcsec-badge svg {
  stroke: var(--accent)
}

[data-theme="dark"] .kc-dot {
  background: color-mix(in srgb, var(--accent) 30%, white);
}

[data-theme="dark"] .kc-dot img,
[data-theme="dark"] .kcsec-badge img {
  filter: brightness(0) saturate(100%) invert(30%) sepia(40%) saturate(500%) hue-rotate(240deg);
}

.kcsec-3 .kc-acc-trigger {
  background: var(--accent);
}


.kcsec-3 .kc-acc-icon {
  stroke: #C9AFDC
}

.kcsec-3 .kc-acc-panel-inner {
  background: var(--al)
}

.kcsec-3 .kc-acc-label {
  color: var(--accent)
}

[data-theme="dark"] .kc-acc-trigger,
[data-theme="dark"] .next-page-btn,
[data-theme="dark"] .btn-p {
  color: var(--bg);
}

/* ═══════════════════════════════════════════
   PRIORITISING CHANGE PAGE
═══════════════════════════════════════════ */
/* Video section */
.video-section {
  background: #F7F5F0;
  padding: 56px 40px;
  padding-top: calc(var(--nh) + 40px)
}

.video-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start
}

.video-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.video-player {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #0E0B1A;
  aspect-ratio: 16/9;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4)
}

.ext-link::after,
.learn-more::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-left: 4px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ext-link {
  display: inline;
}

.learn-more {
  display: inline;
  font-family: var(--fb);
  font-size: var(--fs-lg);
  color: var(--accent);
  text-decoration: none;
}

.learn-more:hover {
  text-decoration: underline;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background .2s;
  text-decoration: none
}

.video-overlay:hover {
  background: rgba(0, 0, 0, .2)
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3)
}

.video-overlay:hover .play-btn {
  transform: scale(1.08)
}

.play-btn svg {
  width: 22px;
  height: 22px;
  fill: #18152A;
  margin-left: 3px
}

.video-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.video-duration {
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px
}

.video-info {
  min-width: 0;
  text-align: left;
}

.video-title {
  font-family: var(--fd);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.1
}

.video-desc {
  font-size: var(--fs-2xl);
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 440px
}

.video-desc strong {
  color: var(--text)
}

/* priority tool section */
.hm-section {
  padding: 40px 40px 60px;
  background: var(--bg)
}

.hm-inner {
  max-width: 1440px;
  margin: 0 auto
}

.hm-body {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 24px
}

.map-wrap {
  display: none
}

#uk-map {
  display: none
}

.map-legend {
  display: none
}

.hm-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--accent);
  overflow: hidden;
  box-shadow: var(--sh1);
  table-layout: fixed;
  width: 100%
}

.hm-table thead {
  background: var(--accent)
}

.hm-table th {
  padding: 0;
  text-align: center;
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: #fff;
  vertical-align: bottom;
  overflow: visible
}

.hm-table th:first-child {
  width: 180px;
  min-width: 120px
}

.hm-table thead th.col-header {
  height: 110px;
  position: relative
}

.hm-table thead th.col-header .th-label {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) rotate(-60deg);
  transform-origin: center bottom;
  white-space: nowrap;
  font-size: var(--fs-base-lg);
  font-weight: 600;
  color: #fff;
  text-transform: none;
  letter-spacing: 0
}

.hm-table th:first-child .th-label {
  transform: none;
  position: static;
  white-space: nowrap;
  font-size: var(--fs-base-lg);
}

.hm-table tbody tr {
  height: 52px
}

.hm-table td {
  border-top: 1px solid var(--s3);
  font-size: var(--fs-base-md);
  padding: 0;
  text-align: center;
  vertical-align: middle;
  overflow: hidden
}

.hm-table td:first-child {
  padding: 8px 10px;
  text-align: left;
  word-break: break-word;
  cursor: default;
  font-size: var(--fs-base-md);
  font-weight: 500;
  color: var(--text);
  min-width: 200px
}

.hm-table tbody td {
  border-right: none
}

.hm-table thead th + th,
.hm-table tbody td + td {
  border-left: 2px solid #fff
}

.hm-table td[data-status] {
  text-align: center;
  padding: 0;
  vertical-align: middle;
  cursor: default;
  pointer-events: none
}

.hm-table td[data-status] svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: auto
}

.hm-table td[data-status="established"] {
  background: var(--success)
}

.hm-table td[data-status="developing"] {
  background: var(--progress)
}

.hm-table td[data-status="not-in-place"] {
  background: var(--error)
}

.hm-table td[data-status="unknown"] {
  background: var(--na)
}

.cs-table {
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sh1);
  width: 100%
}

.cs-table thead {
  background: var(--accent)
}

.cs-table th {
  padding: 12px 16px;
  text-align: center;
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: #fff;
  white-space: nowrap
}

.cs-table th:first-child {
  text-align: left;
  width: 160px;
  min-width: 120px
}

.cs-table td {
  border-top: 1px solid var(--s3);
  border-right: 1px solid var(--s3);
  font-size: var(--fs-base-md);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
  min-width: 160px
}

.cs-table td:first-child {
  font-weight: 500;
  color: var(--surface);
  background: var(--t2);
  width: 160px;
  min-width: 120px;
  word-break: break-word;
  cursor: default
}

.cs-table td:last-child {
  border-right: none
}

.cs-table tbody tr:nth-child(odd) td:not(:first-child) {
  background: var(--surface);
}

.cs-table tbody tr:nth-child(even) td:not(:first-child) {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.dept-name {
  font-weight: 600;
  color: var(--text)
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--fd);
  font-weight: 800;
  font-size: var(--fs-base);
  color: #fff
}

.score-5 {
  background: var(--green)
}

.score-4 {
  background: var(--success)
}

.score-3 {
  background: var(--na)
}

.score-2 {
  background: var(--progress)
}

.score-1 {
  background: var(--error)
}

.score-0 {
  background: var(--data)
}

.comp-cell {
  display: flex;
  gap: 2px
}

.comp-dot {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0
}

.comp-dot svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.comp-dot.established {
  background: var(--success)
}

.comp-dot.developing {
  background: var(--progress)
}

.comp-dot.not-in-place {
  background: var(--error)
}

.comp-dot.unknown {
  background: var(--na)
}

.hm-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px
}

.col-select-wrap {
  position: relative
}

.col-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--s3);
  color: var(--t2);
  transition: all .2s
}

.col-select-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.col-select-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.col-select-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--sh2);
  border: 1px solid var(--s3);
  padding: 12px 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  z-index: 50
}

.col-select-dropdown.open {
  display: flex
}

.col-select-dropdown label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base-md);
  color: var(--text);
  cursor: pointer;
  user-select: none
}

.col-select-dropdown input[type=checkbox] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer
}

.hm-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.hm-table-scroll {
  overflow-x: auto
}

.hm-legend {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 0
}

.hm-legend-title {
  font-size: var(--fs-base-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-base-md);
  color: var(--t2)
}


.region-detail {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--sh1)
}

.rd-empty {
  color: var(--t3);
  font-size: var(--fs-base-md);
  text-align: center;
  padding: 40px 0
}

.rd-region-name {
  font-family: var(--fd);
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px
}

.rd-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px
}

.rd-score {
  font-family: var(--fd);
  font-size: var(--fs-7xl);
  font-weight: 900;
  line-height: 1
}

.rd-score-lbl {
  font-size: var(--fs-base-md);
  color: var(--t2)
}

.comp-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px
}

.comp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg)
}

.comp-row.has {
  background: rgba(37, 107, 72, .04)
}

.comp-row.missing {
  background: rgba(184, 95, 54, .04)
}

.comp-status {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.comp-row.has .comp-status {
  background: rgba(37, 107, 72, .12)
}

.comp-row.missing .comp-status {
  background: rgba(184, 95, 54, .1)
}

.comp-status svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

.comp-row.has .comp-status svg {
  stroke: var(--green)
}

.comp-row.missing .comp-status svg {
  stroke: var(--data)
}

.comp-name {
  font-size: var(--fs-base-md);
  font-weight: 600;
  color: var(--text);
  flex: 1
}

.comp-badge {
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px
}

.comp-row.has .comp-badge {
  background: rgba(37, 107, 72, .1);
  color: var(--green)
}

.comp-row.missing .comp-badge {
  background: rgba(184, 95, 54, .08);
  color: var(--data)
}

.rd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.rd-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--s3);
  background: var(--s2);
  color: var(--t2);
  transition: all .18s
}

.rd-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--al)
}

/* ═══════════════════════════════════════════
   CALCULATOR PAGE
═══════════════════════════════════════════ */
.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.calc-form {
  background: var(--surface);
  border: 1px solid var(--s3);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--sh1)
}

/* .calc-section-title {
  font-family: var(--fd);
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
} */

.calc-alt-container {
  max-width: 1440px;
  margin: 16px auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.calc-alt-container h3 {
  margin: 0;
  white-space: nowrap;
}

.form-group {
  margin-bottom: 16px
}

.form-label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 5px;
  display: block
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--s3);
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  transition: border-color .2s;
  outline: none
}

.form-input:focus {
  border-color: var(--accent)
}

.form-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--s3);
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  cursor: pointer
}

.comp-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px
}

.comp-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 4px;
  /*border: 1px solid var(--s3);
  background: var(--bg); */
  cursor: pointer;
  transition: all .18s
}

.comp-check:hover {
  border-color: var(--accent);
  background: var(--al)
}

.comp-check input[type=checkbox],
.comp-check input[type=radio] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer
}

.comp-check label {
  font-size: var(--fs-base-md);
  color: var(--text);
  cursor: pointer
}

.comp-check.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.comp-info-wrap {
  position: relative;
  flex-shrink: 0
}

.comp-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--t3);
  background: none;
  color: var(--t3);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color .15s, color .15s;
  flex-shrink: 0
}

.comp-info-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* ── Shared tooltip ───────────────────────────────────────────────────────── */
.ui-tooltip {
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  line-height: 1.5;
  pointer-events: none;
  z-index: 10000;
  box-shadow: var(--sh2)
}

.ui-tooltip::after {
  content: '';
  position: absolute;
  border: 6px solid transparent
}

.ui-tooltip--default::before {
  content: '';
  position: absolute;
  border: 5px solid transparent
}

/* Error (red) */
.ui-tooltip--error {
  background: var(--error);
  color: #fff;
  font-weight: 600;
  white-space: nowrap
}

/* Default (surface, bordered) */
.ui-tooltip--default {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--s3);
  width: 220px
}

/* Arrow down — tooltip above, arrow points down at element below */
.ui-tooltip--arrow-down::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%)
}

.ui-tooltip--error.ui-tooltip--arrow-down::after {
  border-top-color: var(--error)
}

.ui-tooltip--default.ui-tooltip--arrow-down::after {
  border-top-color: var(--s3)
}

.ui-tooltip--default.ui-tooltip--arrow-down::before {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1px;
  border-top-color: var(--surface)
}

/* Arrow right — tooltip to the left, arrow points right at element */
.ui-tooltip--arrow-right::after {
  top: 50%;
  left: 100%;
  transform: translateY(-50%)
}

.ui-tooltip--error.ui-tooltip--arrow-right::after {
  border-left-color: var(--error)
}

.ui-tooltip--default.ui-tooltip--arrow-right::after {
  border-left-color: var(--s3)
}

.ui-tooltip--default.ui-tooltip--arrow-right::before {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 1px;
  border-left-color: var(--surface)
}

/* Arrow left — tooltip to the right, arrow points left at element */
.ui-tooltip--arrow-left::after {
  top: 50%;
  right: 100%;
  transform: translateY(-50%)
}

.ui-tooltip--error.ui-tooltip--arrow-left::after {
  border-right-color: var(--error)
}

.ui-tooltip--default.ui-tooltip--arrow-left::after {
  border-right-color: var(--s3)
}

.ui-tooltip--default.ui-tooltip--arrow-left::before {
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  margin-right: 1px;
  border-right-color: var(--surface)
}

/* content holder only — never visible */
.comp-info-popup { display: none !important }

/* ── shared info popup rendered at body level ── */
.comp-info-popup-global {
  display: none;
  position: fixed;
  transform: translateY(-50%);
  width: 220px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--s3);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 400;
  line-height: 1.5;
  box-shadow: var(--sh2);
  pointer-events: auto;
  z-index: 10000;
  white-space: normal
}

.comp-info-popup-global::before,
.comp-info-popup-global::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent
}

.comp-info-popup-global::after {
  border-right-color: var(--s3)
}

.comp-info-popup-global::before {
  border-width: 5px;
  border-right-color: var(--surface);
  margin-right: -1px
}

.calc-submit {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px
}

.calc-submit:hover {
  filter: brightness(1.1)
}

.calc-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.calc-heatmap {
  max-width: 820px;
  margin: 26px auto 20px;
}

.calc-heatmap .etbl-table th.kc-col {
  width: 165px;
  min-width: 165px;
  height: 72px;
}

.calc-heatmap .etbl-table th.kc-col span {
  bottom: 15px;
  font-size: var(--fs-base-md);
}

.calc-heatmap .etbl-table tbody tr {
  height: 38px;
}

.calc-heatmap .etbl-table td:first-child {
  min-width: 165px;
  padding: 5px 8px;
  font-size: var(--fs-sm);
}

.calc-heatmap .etbl-table td[data-status] svg {
  width: 13px;
  height: 13px;
}

.calc-model-intro {
  max-width: none;
  margin: 28px 0 0;
  color: var(--t2);
  font-size: var(--fs-base-lg);
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}

.calc-mode-label {
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  color: var(--t2)
}

.calc-mode-btns {
  position: relative;
  display: flex;
  background: var(--s2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px
}

.calc-mode-indicator {
  position: absolute;
  top: 3px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--sh1);
  transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 0
}

.calc-mode-btn {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  border-radius: 6px;
  border: none;
  background: none;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: color .2s, font-weight .2s
}

.calc-mode-btn.active {
  color: var(--text);
  font-weight: 600
}

.calc-inputs-slider {
  width: 100%;
  overflow: hidden
}

.calc-inputs-track {
  display: flex;
  width: 200%;
  transition: transform .32s cubic-bezier(.4,0,.2,1)
}

.calc-inputs-panel {
  width: 50%;
  flex-shrink: 0;
  box-sizing: border-box
}

.calc-body {
  transition: none
}

.calc-download-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px
}

.calc-download {
  /* flex: 1; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  border: 1px solid var(--accent)
}

.calc-download svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0
}

.calc-download:first-child {
  background: var(--accent);
  color: #fff
}

.calc-download:first-child:hover {
  filter: brightness(1.1)
}

.calc-download:last-child {
  background: transparent;
  color: var(--accent)
}

.calc-download:last-child:hover {
  background: var(--al)
}

.calc-howto {
  margin: 24px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--al);
}

.calc-howto h2 {
  margin: 0;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--fd);
  font-size: var(--fs-xl);
}

.calc-howto-content {
  padding: 20px 24px;
}

.calc-howto-content p {
  margin: 0 0 14px;
  font-size: var(--fs-base-lg);
  color: var(--t2);
  line-height: 1.7
}

.calc-howto-content p:last-child {
  margin-bottom: 0;
}

.calc-howto-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calc-unit-cost {
  margin: -4px 0 20px;
  color: var(--t2);
  font-size: var(--fs-base-md);
}


.form-hint {
  font-size: var(--fs-md);
  color: var(--t3);
  margin-top: 5px;
  line-height: 1.5
}

.output-stat-val.val-good {
  color: var(--green)
}

.output-stat-val.val-bad {
  color: var(--error)
}

.calc-output {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.output-card {
  background: var(--surface);
  border: 1px solid var(--s3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sh1)
}

.calc-model-explainer {
  background: var(--al);
}

.calc-model-explainer p {
  margin: 0 0 12px;
  color: var(--t2);
  font-size: var(--fs-base-md);
  line-height: 1.6;
}

.calc-model-explainer p:last-child {
  margin-bottom: 0;
}

.output-title {
  font-family: var(--fd);
  font-size: var(--fs-base-md);
  font-weight: 700;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px
}

.output-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
}

.output-stat:last-child {
  border-bottom: none;
  padding-bottom: 0
}

.output-stat-label {
  font-size: var(--fs-base-md);
  color: var(--t2)
}

.output-stat-val {
  font-family: var(--fd);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--accent)
}

.output-stat-val.saving {
  color: var(--green)
}

.impact-bar-wrap {
  margin-top: 8px
}

.impact-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-md);
  color: var(--t3);
  margin-bottom: 5px
}

.impact-track {
  height: 8px;
  background: var(--s3);
  border-radius: 4px
}

.impact-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--green);
  transition: width 1s ease
}

/* ═══════════════════════════════════════════
   ADAPT TO YOUR SERVICE PAGE
═══════════════════════════════════════════ */
#p-atys {
  min-height: 100svh;
}

.subheader {
  color: var(--t2);
  font-style: italic;
}

.atys-kc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.atys-kc-grid-item {
  padding: 32px;
  position: relative;
}

.atys-kc-grid-item h3 {
  text-align: center;
}

.atys-kc-grid-item h3.left-align {
  text-align: start;
}

.atys-kc-grid-item.service-setting {
  background: color-mix(in srgb, var(--amber) 12%, white);
  
}

.atys-kc-grid-item.target-audience {
  
  background: color-mix(in srgb, var(--error) 12%, white);
  
}

.atys-kc-grid-item.mode-of-delivery {
  background: color-mix(in srgb, var(--green) 12%, white);
  
}

.atys-kc-grid-item.professional-culture {
  background: color-mix(in srgb, var(--blue) 12%, white);
}

.considerations-card-icon {
  height: 56px;
  position: absolute;
  top: 8px;
  right: 32px;
}


/* ═══════════════════════════════════════════
   RESOURCES PAGE
═══════════════════════════════════════════ */

#p-res {
  min-height: 100svh;
}
.res-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding-top: 32px
}

.res-sidebar {
  position: sticky;
  top: calc(var(--nh) + 24px);
  max-height: calc(100vh - var(--nh) - 48px);
  overflow-y: auto;
}

/* Category nav buttons in sidebar */
#res-sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--s3);
}

.res-cat-sidebar-btn {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 78px;
  text-align: left;
  padding: 11px 84px 11px 16px;
  background: var(--s2);
  border: none;
  border-left: 3px solid transparent;
  margin-left: -1px;
  font-family: var(--fb);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1.4;
  border-radius: 0 8px 8px 0;
}

.res-cat-sidebar-btn img {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  object-fit: contain;
  pointer-events: none;
}

.res-cat-sidebar-btn:hover {
  color: var(--text);
  border-left-color: var(--s3);
  background: var(--s2);
}

.res-cat-sidebar-btn.active {
  color: var(--accent);
  font-weight: 700;
  border-left-color: var(--accent);
  background: var(--al);
}

.res-sidebar-cat {
  display: flex;
  flex-direction: column;
}

.res-sidebar-items {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 4px;
}

.res-cat-sidebar-btn.active + .res-sidebar-items {
  display: flex;
}

.res-sidebar-item {
  display: block;
  padding: 7px 14px 7px 28px;
  font-family: var(--fb);
  font-size: var(--fs-xl);
  color: var(--t2);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-left: -1px;
  border-radius: 0 6px 6px 0;
  line-height: 1.35;
  transition: color .15s, border-color .15s, background .15s;
}

.res-sidebar-item:hover {
  color: var(--text);
  border-left-color: var(--s3);
  background: var(--s2);
}

.res-sidebar-item.active {
  color: var(--s2);
  font-weight: 600;
  border-left-color: var(--accent);
  background: var(--accent);
}

/* ── Resources home (3 category tiles) ── */
#res-home {
  padding: 8px 0 40px;
}

.res-home-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.res-home-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--s2);
  border: 1px solid var(--s3);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.res-home-cat:hover {
  background: var(--al);
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(139,107,154,.12);
}

.res-home-cat-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.res-home-cat-label {
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.res-home-cat-count {
  font-family: var(--fb);
  font-size: var(--fs-sm);
  color: var(--t2);
}

.res-home-cat-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--accent);
  transition: transform .15s;
}

.res-home-cat:hover .res-home-cat-arrow {
  transform: translateX(4px);
}

/* Stand-in for the sidebar's category name+icon, shown only when the sidebar
   itself is hidden (see .res-sidebar / display:flex override in the
   max-width:900px query below). Styled as a compact eyebrow label, not a
   heading — it's context ("you are here"), not the content of this view, so
   it should read well below both the page title and the resource title. */
.res-cat-mobile-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: 80%;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin: 14px auto ;
  padding: 8px 12px;
  /* background-color: var(--cream);
  border-radius: 8px; */
}

.res-cat-mobile-header img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  /* flex-shrink: 0; */
}

.res-cat-mobile-header h2 {
  
  /* color: var(--accent); */
  color: var(--t2);
  text-align: center;
  
}

.res-cat-page-desc {
  font-family: var(--fb);
  font-size: var(--fs-xl);
  color: var(--t2);
  line-height: 1.6;
  margin: 0 0 20px;
}

/* ── Nav row in resource detail: "All categories" + current category, each
   a .btn-ghost with its icon inside it. The .btn-ghost icon-to-text gap is
   widened to match this row's button-to-button gap (scoped here, not on the
   shared .btn-ghost, since that class is also used elsewhere), so the whole
   row — icon, text, icon, text — reads as one evenly spaced rhythm. ── */
.res-detail-nav {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.res-detail-nav .btn-ghost {
  gap: 20px;
}

.toc-section {
  margin-bottom: 4px
}

.toc-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  cursor: pointer;
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--t2);
  transition: color .15s;
  user-select: none
}

.toc-parent:hover {
  color: var(--text)
}

.toc-parent.open {
  color: var(--text)
}

.toc-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
  margin-left: auto
}

.toc-parent.open .toc-chevron {
  transform: rotate(90deg)
}

.toc-children {
  display: none;
  padding-left: 28px
}

.toc-parent.open+.toc-children {
  display: block
}

.toc-child {
  display: block;
  padding: 5px 16px 5px 0;
  font-size: var(--fs-2xl);
  color: var(--t3);
  cursor: pointer;
  transition: color .15s;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 8px;
  margin-left: -2px
}

.toc-child:hover,
.toc-child.active {
  color: var(--accent);
  border-left-color: var(--accent)
}

.res-main {}

.res-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.res-search {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: solid 1px var(--s3);
  background: var(--surface);
  color: var(--text);
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  outline: none;

  /* inset shadow for depth */
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.12),
    inset 0 -2px 3px rgba(255, 255, 255, 0.6);
}

.res-search:focus {
  border-color: var(--accent)
}

.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--s3);
  background: var(--surface);
  color: var(--t2);
  transition: all .18s
}

.filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent)
}

.filter-tab:hover:not(.active) {
  color: var(--text)
}

.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
  gap: 16px
}

.res-card {
  background: var(--surface);
  border: 1px solid var(--s3);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--sh1);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.res-card:hover {
  box-shadow: var(--sh2);
  transform: translateY(-3px);
  border-color: var(--accent)
}

.res-type {
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px
}

.res-type.guide {
  background: var(--al);
  color: var(--accent)
}

.res-type.research {
  background: rgba(43, 108, 176, .1);
  color: var(--blue)
}

.res-type.case {
  background: rgba(37, 107, 72, .1);
  color: var(--green)
}

.res-type.tool {
  background: rgba(168, 116, 32, .1);
  color: var(--amber)
}

.res-card-title {
  font-family: var(--fd);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.35
}

.res-card-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden
}

.res-card-desc ul,
.res-card-desc ol {
  padding-left: 18px
}

.res-meta {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.res-comp {
  font-size: var(--fs-2xl);
  color: var(--t3)
}

/* ── RESOURCE VIEW TRANSITIONS ── */
@keyframes resViewIn {
  from { opacity: 0; transform: translateY(14px) }
  to   { opacity: 1; transform: none }
}

.res-view-in {
  animation: resViewIn .28s cubic-bezier(.22,.68,0,1.1) both
}

/* ── RESOURCE CARD IMAGE ── */
.res-card-img {
  width: 100%;
  height: 130px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.res-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.res-card-img.res-card-img--section {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.res-card-img.res-card-img--section img {
  width: 88px;
  height: 88px;
}

/* ── RESOURCE DETAIL VIEW ── */
.res-res-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  padding-top: 36px;
  align-items: start
}

.res-res-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: sticky;
  top: calc(var(--nh) + 24px)
}

.res-res-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.res-res-img-wrap.res-res-img-wrap--section {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--s3));
}

.res-res-img-wrap.res-res-img-wrap--section img {
  width: 46%;
  height: 46%;
}

.res-res-body {
  padding-top: 4px
}

.res-res-title {
  font-family: var(--fd);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 14px 0 20px
}

.res-res-desc {
  font-size: var(--fs-2xl);
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 36px
}

.res-res-desc ul,
.res-res-desc ol {
  padding-left: 20px;
  margin-bottom: 12px
}

.res-res-desc li {
  margin-bottom: 6px
}

.res-res-ctas {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}


/* ── RESOURCE CATEGORY PICKER ── */
.res-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  gap: 24px;
  padding-bottom: 64px;
  justify-content: center
}

.res-cat-card {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--s3);
  border-radius: 16px;
  box-shadow: var(--sh1);
  cursor: pointer;
  text-align: left;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  width: 100%;
  aspect-ratio: 1
}

.res-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2);
  border-color: var(--accent)
}

.res-cat-card img {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
}

.res-cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--al);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.res-cat-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.res-cat-name {
  font-family: var(--fd);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3
}

.res-cat-count {
  font-family: var(--fb);
  font-size: var(--fs-sm);
  color: var(--t2);
  margin-top: -6px
}

.res-cat-desc {
  font-family: var(--fb);
  font-size: var(--fs-xl);
  color: var(--t2);
  line-height: 1.5;
  flex: 1
}

.res-cat-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px
}

.res-cat-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ── RESOURCE CATEGORY NAV (detail view) ── */
.res-cat-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--s3);
  margin-bottom: 0;
  flex-wrap: wrap
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  color: var(--t2);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0
}

.btn-ghost:hover {
  background: var(--s2);
  color: var(--text)
}

.btn-ghost svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.res-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.res-cat-tab {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--s3);
  border-radius: 8px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 500;
  color: var(--t2);
  cursor: pointer;
  transition: all .15s
}

.res-cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600
}

.res-cat-tab:hover:not(.active) {
  background: var(--s2);
  border-color: var(--accent)
}

.res-link {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 3px
}

.res-link svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ── Survey float button ───────────────────────────────────────────────── */
.survey-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998
}

.survey-float-btn {
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 28px;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  height: 48px;
  width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: box-shadow .2s, transform .2s;
}

.survey-float-btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transform: scale(1.1);
}

.survey-float-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.survey-float-label {
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  padding-right: 18px;
  opacity: 1;
}

@keyframes survey-nudge {
  0%   { transform: translateY(0);    box-shadow: 0 4px 16px rgba(0,0,0,.18), 0 0 0 0   rgba(139,107,154,.8) }
  25%  { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(0,0,0,.22), 0 0 0 8px rgba(139,107,154,.4) }
  50%  { transform: translateY(0);    box-shadow: 0 4px 16px rgba(0,0,0,.18), 0 0 0 16px rgba(139,107,154,0) }
  75%  { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.2),  0 0 0 0   rgba(139,107,154,0) }
  100% { transform: translateY(0);    box-shadow: 0 4px 16px rgba(0,0,0,.18), 0 0 0 0   rgba(139,107,154,0) }
}

.survey-float-btn--nudge {
  animation: survey-nudge .9s ease-in-out 3
}

/* ── Survey inline CTA (p-atys) ─────────────────────────────────────────── */
.survey-inline-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  margin: 32px 0;
  color: var(--accent)
}

.survey-inline-cta > svg {
  flex-shrink: 0;
  stroke: var(--accent)
}

.survey-inline-body {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.survey-inline-text {
  font-size: var(--fs-base-lg);
  color: var(--text);
  margin: 0
}

.survey-inline-link {
  align-self: flex-start;
  text-decoration: none
}

/* FOOTER */
footer {
  border-top: 1px solid var(--s3);
  padding: 22px 40px;
  background: var(--bg)
}

.foot-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

footer span {
  font-size: var(--fs-base);
  color: var(--t3)
}

footer nav {
  display: flex;
  gap: 20px;
  align-items: center
}

footer a {
  font-size: var(--fs-base);
  color: var(--t2);
  text-decoration: none;
  transition: color .15s
}

footer a:hover {
  color: var(--accent)
}

.footer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--t2);
  font: inherit;
  font-size: var(--fs-base);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color .15s
}

.footer-link-button:hover {
  color: var(--accent)
}

.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
}

body.cookie-modal-open {
  overflow: hidden
}

.cookie-banner[hidden],
.cookie-preferences[hidden] {
  display: none !important
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--s3);
  background: var(--surface);
  box-shadow: 0 -8px 30px rgba(34, 32, 44, .16)
}

.cookie-banner-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center
}

.cookie-banner-copy h2 {
  margin-bottom: 6px;
  font-size: var(--fs-4xl)
}

.cookie-banner-copy p {
  max-width: 780px;
  font-size: var(--fs-xl);
  line-height: 1.55
}

.cookie-banner-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center
}

.cookie-btn {
  appearance: none;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s
}

.cookie-btn:hover {
  transform: translateY(-1px)
}

.cookie-btn-primary {
  background: var(--accent);
  color: #fff
}

.cookie-btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 84%, #000)
}

.cookie-btn-secondary {
  border-color: var(--accent);
  background: var(--al);
  color: var(--text)
}

.cookie-btn-secondary:hover {
  background: color-mix(in srgb, var(--al) 80%, var(--accent))
}

.cookie-btn-link {
  padding-right: 8px;
  padding-left: 8px;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px
}

.cookie-preferences {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px
}

.cookie-preferences-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 32, 44, .72)
}

.cookie-preferences-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--s3);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(34, 32, 44, .28)
}

.cookie-preferences-panel:focus {
  outline: none
}

.cookie-preferences-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--s3);
  background: var(--surface)
}

.cookie-preferences-header h2 {
  margin: 0;
  font-size: var(--fs-4xl)
}

.cookie-close {
  appearance: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--s3);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer
}

.cookie-close:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.cookie-preferences-body {
  display: grid;
  gap: 18px;
  padding: 24px
}

.cookie-preferences-body > p {
  font-size: var(--fs-xl);
  line-height: 1.6
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--s3);
  border-radius: 10px;
  background: var(--cream)
}

.cookie-category h3 {
  color: var(--text);
  font-family: var(--fd);
  font-size: var(--fs-2xl)
}

.cookie-category p {
  font-size: var(--fs-base-lg);
  line-height: 1.55
}

.cookie-category a {
  color: var(--accent);
  text-underline-offset: 2px
}

.cookie-detail {
  margin-top: 8px;
  color: var(--t2)
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer
}

.cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0
}

.cookie-switch > span:last-child {
  position: relative;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: var(--s4);
  transition: background .15s
}

.cookie-switch > span:last-child::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(34, 32, 44, .25);
  transition: transform .15s
}

.cookie-switch input:checked + span {
  background: var(--accent)
}

.cookie-switch input:checked + span::after {
  transform: translateX(21px)
}

.cookie-switch input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.cookie-switch input:disabled + span {
  cursor: not-allowed;
  opacity: .7
}

.cookie-preferences-actions {
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--s3);
  background: var(--surface)
}

@media(max-width:760px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 24px
  }

  .cookie-banner-actions,
  .cookie-preferences-actions {
    display: grid;
    grid-template-columns: 1fr
  }

  .cookie-btn {
    width: 100%
  }

  .cookie-preferences {
    padding: 12px
  }

  .cookie-preferences-panel {
    max-height: calc(100vh - 24px)
  }

  .cookie-preferences-header,
  .cookie-preferences-body,
  .cookie-preferences-actions {
    padding: 18px
  }

  .cookie-category {
    gap: 16px;
    padding: 16px
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ABOUT PAGE
═══════════════════════════════════════════ */
#p-abt {
  min-height: 100svh;
}

.about-methods-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 300px);
  justify-content: center;
  gap: 34px;
  align-items: center;
  margin: 8px 0 12px;
}

.study-methods-panel {
  padding: 26px 28px;
  color: var(--text);
  background: var(--al);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--s3));
  border-radius: 12px;
  box-shadow: var(--sh1);
}

.study-methods-panel h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--fd);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.3;
}

.study-methods-list {
  display: grid;
  gap: 12px;
  padding: 0 !important;
  list-style: none;
}

.study-methods-list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin: 0;
  color: var(--text);
  font-size: var(--fs-xl);
  line-height: 1.45;
}

.study-methods-list img {
  width: 52px;
  height: 52px;
  padding: 8px;
  object-fit: contain;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 10px;
}

.about-jigsaw {
  display: grid;
  place-items: center;
  min-width: 0;
}

.about-jigsaw img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 300px;
}

@media(max-width:1050px) {
  .about-methods-layout {
    grid-template-columns: 1fr;
  }

  .about-jigsaw img {
    max-width: 360px;
  }
}

@media(max-width:600px) {
  .study-methods-panel {
    padding: 20px 18px;
  }

  .study-methods-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    font-size: var(--fs-xl);
  }

  .study-methods-list img {
    width: 52px;
    height: 52px;
    padding: 9px;
  }

}


/* RESPONSIVE */
@media(max-width:1200px) {
  .kc-split-panel-3 {
    grid-template-columns: 1fr 2fr;
  }

}

@media(max-width:1100px) {
  .calc-body {
    grid-template-columns: 1fr
  }

  .video-inner {
    max-width: 1200x;
  }

  /* Image stacks above the text instead of sitting beside it once .res-main
     is too narrow for a 1fr/1.4fr split to breathe. */
  .res-res-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .res-res-img-wrap {
    position: static;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .kc-split-panel, .kc-split-panel-2, .kc-split-panel-3 {
    grid-template-columns: 1fr;
  }

  .cs-explorer {
    flex-direction: column;
  }
  .cs-region-col {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

}

@media(max-width:1000px) {}

@media(max-width:900px) {

  

  .kc-evidence-2, .kc-evidence-3 {
    grid-template-columns: 1fr
  }

  .kc-evidence-2 .item {
    text-align: center;
  }

  .toolkit-menu-inner {
    padding: var(--nh) 24px 0 24px;
  }
  .pg-subnav-links { display: none; }

  .pg-subnav-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: 10px;
    margin: 16px 0 16px auto;
    padding: 10px 16px;
    background: var(--surface);
    border: 2px solid var(--s3);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--fb);
    font-size: var(--fs-base-lg);
    font-weight: 700;
    color: var(--t2);
    transition: color .2s, border-color .2s;
    /* width: 100%; */
  }

  .pg-subnav-toggle:hover { color: var(--text); border-color: var(--accent); }

  .pg-subnav-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .pg-subnav { 
    padding: 0 16px; 
    background: var(--s2)
  }
  .res-cat-grid {
    grid-template-columns: repeat(2, 200px)
  }

  #p-res .pg-hdr {
    padding-bottom: 12px;
  }

  .res-cat-mobile-header {
    display: flex;
  }


  .nlinks {
    display: none
  }

  .hamburger {
    display: flex
  }

  #subnav {
    display: none;
  }

  body.toolkit-active .pg-hdr {
    padding-top: calc(var(--nh) + 36px);
  }
  

  #p-home {
    height: auto;
    min-height: 100svh;
    overflow: visible
  }

  .home-top {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .hero-right {
    gap: 16px;
    justify-content: center;
    align-items: center
  }

  .video-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 900px;
  }

  .video-desc {
    max-width: 100%;
  }


  .kc-orbit {
    width: 100%;
    height: 100%
  }

  .kc-orbit-item {
    width: 70px;
    height: 70px
  }

  .kc-orbit-item .kc-dot {
    width: 44px;
    height: 44px
  }

  .kc-orbit-item .kc-dot svg {
    width: 16px;
    height: 16px
  }

  .kc-orbit-item-tag {
    font-size: var(--fs-2xl)
  }

  .kc-circle-center .btn-p {
    width: 100px;
    height: 100px;
    font-size: var(--fs-md);
    padding: 0
  }

  .step-ring {
    width: 42px;
    height: 42px
  }

  .home-inner {
    padding: 20px 24px;
    gap: 56px
  }

  .cards-row {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .step-card-pair {
    align-items: stretch
  }

  .step-col {
    min-height: 160px;
    width: 100%
  }

  .step-conn {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    width: 28px;
    height: 64px;
    align-self: center;
    margin-top: -12px
  }

  .step-conn::before {
    width: 6px;
    height: auto;
    border-radius: 3px 3px 0 0
  }

  .step-conn::after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--accent);
    border-bottom: none
  }


  .home-bottom {
    padding-top: 24px
  }

  .kcsec {
    padding: 32px 0
  }

  .hm-section {
    padding: 28px 24px 48px
  }

  .pg-hdr {
    padding: calc(var(--nh) + 24px) 0 24px 0
  }

  .pg-content {
    padding: 0 24px 60px
  }

  .res-layout {
    grid-template-columns: 1fr
  }

  .res-sidebar {
    display: none
  }

  .nsp {
    display: none
  }

  .ni {
    padding: 0 24px
  }

  footer {
    padding: 20px 24px
  }

  .foot-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center
  }

  footer nav {
    justify-content: center
  }

  .hm-table {
    font-size: var(--fs-md)
  }

  .hm-table th,
  .hm-table td {
    padding: 10px 12px
  }

  .atys-kc-grid {
  display: contents;
}
}

@media(max-width:520px) {

  .calc-mode-toggle {
    flex-direction: column;
  }

  .calc-mode-btns {
    width: 100%;
  }

  .calc-mode-btn {
    flex: 1;
    padding: 7px 8px;
  }

  .calc-howto h2,
  .calc-howto-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .considerations-card-icon {
  position: static;
  display: block;
  margin: 0 auto 12px;

}


  .res-cat-grid {
    grid-template-columns: 1fr
  }

  .home-top {
    padding-bottom: 120px
  }

  .kc-circle {
    width: 260px;
    height: 260px
  }

  .kc-orbit {
    width: 220px;
    height: 220px
  }

  .kc-orbit-item {
    width: 60px;
    height: 60px
  }

  .kc-orbit-item .kc-dot {
    width: 38px;
    height: 38px
  }

  .kc-circle-center {
    bottom: -90px
  }

  .kc-circle-center .btn-p,
  .kc-circle-center .btn-s {
    width: 90px;
    height: 90px;
    font-size: var(--fs-sm);
    padding: 0
  }

  .cards-row {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .step-ring {
    width: 40px;
    height: 40px
  }
}

/* ── Editable Table ── */
.etbl-section {
  margin-bottom: 32px;
}

.etbl-section-title {
  font-size: var(--fs-base-lg);
  font-weight: 700;
  color: var(--text)
}

.etbl-toolbar {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap
}

/* in-table empty column */
.etbl-table th.empty-col {
  cursor: pointer;
  vertical-align: middle;
  padding: 0
}

.empty-col-inner {
  height: 110px;
  transition: background .2s
}

.etbl-table th.empty-col.empty-col-hover .empty-col-inner {
  background: rgba(255, 255, 255, .15)
}

.etbl-table td.empty-col {
  background: var(--s2);
  cursor: pointer;
  transition: background .15s;
  border-top: none;
  position: relative
}

.etbl-table td.empty-col.empty-col-hover {
  background: var(--s3)
}

.empty-col-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: color .15s
}

.empty-col-body svg {
  width: 22px;
  height: 22px;
  stroke: var(--t2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .15s
}

.empty-col-body span {
  color: var(--t2);
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 500;
  transition: color .15s
}

.etbl-table td.empty-col.empty-col-hover .empty-col-body svg {
  stroke: var(--accent)
}

.etbl-table td.empty-col.empty-col-hover .empty-col-body span {
  color: var(--accent)
}

/* table wrapper */
.etbl-table-row {
  display: flex;
  align-items: stretch;
  gap: 0
}

.etbl-scroll {
  overflow-x: auto;
  flex: 1;
  min-width: 0
}

.etbl-add-col-right {
  flex-shrink: 0;
  width: 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 6px;
  border-radius: 12px;
  border: 2px dashed var(--accent);
  overflow: hidden
}

.etbl-add-col-right::before {
  content: '';
  height: 110px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
  border-bottom: 2px dashed var(--accent)
}

.etbl-add-col-right button {
  flex: 1;
  background: none;
  border: none;
  color: var(--t2);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 0;
  transition: color .2s, background .2s
}

.etbl-add-col-right button:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent)
}

.etbl-add-col-right::after {
  content: 'Add department';
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--fs-base-md);
  font-family: var(--fb);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity .2s
}

.etbl-add-col-right:hover::after {
  opacity: 1
}

@media(max-width:1100px) {
  .etbl-add-col-right {
    width: 40px;
  }
}

@media(max-width:900px) {
  .etbl-add-col-right {
    width: 30px;
  }
}

/* table */
.etbl-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--accent);
  overflow: hidden;
  box-shadow: var(--sh1);
  table-layout: fixed;
  width: 100%
}

.etbl-table thead {
  background: var(--accent)
}

.etbl-table th {
  padding: 0;
  text-align: center;
  font-size: var(--fs-base-lg);
  font-weight: 700;
  color: #fff;
  vertical-align: bottom;
  overflow: visible
}

.etbl-table th.kc-col {
  width: 180px;
  min-width: 180px;
  height: 110px;
  padding: 0;
  position: relative;
}

.etbl-table th.kc-col span {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--fs-base-lg);
  font-weight: 700;
}

.etbl-table th.dept-col {
  position: relative;
  height: 110px;
  min-width: 60px
}

.etbl-table th.dept-col[draggable] {
  cursor: pointer
}

.etbl-table th.dept-col.drag-over {
  outline: 2px dashed rgba(255, 255, 255, .55);
  outline-offset: -2px
}

.etbl-table tbody tr {
  height: 52px
}

.etbl-table td {
  border-top: 1px solid var(--s3);
  font-size: var(--fs-base-md);
  padding: 0;
  text-align: center;
  vertical-align: middle;
  overflow: visible
}

/* .etbl-table td.kc-col {
  padding: 8px 10px;
  text-align: left;
  font-size: var(--fs-base);
  word-break: break-word;
  width: 180px;
  min-width: 180px;
  background: var(--s2);
  border-right: 2px solid var(--s3)
} */

.etbl-table tbody td:not(.kc-col) {
  border-right: none;
  border-left: 2px solid #fff
}


.etbl-table td:first-child {
  padding: 8px 10px;
  text-align: left;
  word-break: break-word;
  cursor: default;
  font-size: var(--fs-base-md);
  font-weight: 500;
  color: var(--text);
  min-width: 200px
}

.etbl-table thead th.dept-col {
  border-left: 2px solid #fff
}

/* dept header cell */
.dept-header-cell {
  height: 100%;
  position: relative
}

.dept-name-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) rotate(-60deg);
  transform-origin: center bottom;
  white-space: nowrap;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s
}

.dept-name-btn:hover {
  background: none
}

.dept-col:hover {
  background: rgba(255, 255, 255, .18)
}

.dept-name-btn.empty {
  color: rgba(255, 255, 255, .5);
  font-style: italic;
  font-weight: 400
}

.dept-delete-btn {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .18);
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background .15s, opacity .15s;
  padding: 0;
  opacity: 0
}

.dept-col:hover .dept-delete-btn {
  opacity: 1
}

.dept-delete-btn:hover {
  background: rgba(255, 255, 255, .4)
}

.dept-name-btn {
  transition: background .15s, opacity .15s
}

.dept-col:not(:hover) .dept-name-btn:hover {
  background: none
}

/* status cells */
.etbl-table td[data-status] {
  cursor: pointer;
  transition: filter .15s
}

.etbl-table td[data-status]:hover {
  filter: brightness(1.12)
}

.etbl-table td[data-status] svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin: auto
}

.etbl-table td[data-status="established"] {
  background: var(--success)
}

.etbl-table td[data-status="developing"] {
  background: var(--progress)
}

.etbl-table td[data-status="not-in-place"] {
  background: var(--error)
}

.etbl-table td[data-status="unknown"] {
  background: var(--na)
}

.etbl-table td.empty-status {
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  container-type: inline-size;
  position: relative
}

.etbl-table td.empty-status:hover {
  background: var(--s2)
}

.es-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 6px;
  overflow: hidden
}

.es-text {
  font-style: italic;
  font-size: var(--fs-base-md);
  color: var(--t3);
  line-height: 1.25;
  word-break: keep-all;
  min-width: 0;
  text-align: center;
  transition: color .15s;
  flex: 1
}

.es-arrow {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  stroke: var(--t3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .15s
}

.etbl-table td.empty-status:hover .es-text {
  color: var(--accent)
}

.etbl-table td.empty-status:hover .es-arrow {
  stroke: var(--accent)
}

@container (max-width:36px) {
  .es-text {
    display: none
  }
}

/* dropdowns */
.etbl-dropdown {
  position: fixed;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--sh2);
  border: 1px solid var(--s3);
  padding: 6px;
  z-index: 9999;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease
}

.etbl-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

/* status dropdown hugs the cell it opened from */
#etblStatusDropdown {
  border-radius: 0 0 8px 8px;
  border-top: none;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12)
}

#etblStatusDropdown .etbl-dd-opt {
  border-radius: 4px;
  padding: 8px 10px;
  justify-content: center;
  gap: 8px
}

.etbl-dropdown input[type=text] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--s3);
  border-radius: 6px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  color: var(--text);
  outline: none;
  margin-bottom: 6px;
  box-sizing: border-box
}

.etbl-dropdown input[type=text]:focus {
  border-color: var(--accent)
}

.etbl-dd-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 160px;
  overflow-y: auto
}

.etbl-dd-opt {
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  color: var(--text);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 10px
}

.etbl-dd-opt:hover {
  background: var(--al);
  color: var(--accent)
}

.etbl-dd-opt.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none
}

.etbl-custom-input-wrap {
  display: flex;
  gap: 6px;
  padding: 4px 2px
}

.etbl-custom-input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--s3);
  border-radius: 6px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  color: var(--text);
  outline: none;
  box-sizing: border-box
}

.etbl-custom-input:focus {
  border-color: var(--accent)
}

.etbl-custom-confirm {
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  cursor: pointer;
  white-space: nowrap
}

.etbl-custom-confirm:hover {
  opacity: 0.85
}

.etbl-name-tooltip {
  position: absolute;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity .2s ease
}

.etbl-name-tooltip.visible {
  opacity: 1
}

.status-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.status-dot svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.status-dot.established {
  background: var(--success)
}

.status-dot.developing {
  background: var(--progress)
}

.status-dot.not-in-place {
  background: var(--error)
}

.status-dot.unknown {
  background: var(--na)
}

/* download */
.dl-wrap {
  position: relative
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s
}

.dl-btn:disabled {
  background: var(--s3);
  color: var(--t3);
  pointer-events: none
}

.dl-btn:not(:disabled):hover {
  filter: brightness(1.1)
}

.dl-wrap:has(#dlBtn:disabled) {
  cursor: not-allowed
}

.dl-wrap:has(#dlBtn:disabled)::after {
  content: 'The table needs to have at least 1 named column. All empty cells are marked as Unkkown.';
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--text);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--fs-base-md);
  font-family: var(--fb);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity .2s
}

.dl-wrap:has(#dlBtn:disabled):hover::after {
  opacity: 1
}

.dl-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.dl-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--sh2);
  border: 1px solid var(--s3);
  padding: 8px;
  z-index: 100;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 2px
}

.dl-dropdown.open {
  display: flex
}

.dl-opt {
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--fb);
  font-size: var(--fs-base-md);
  color: var(--text);
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 8px
}

.dl-opt:hover {
  background: var(--al);
  color: var(--accent)
}

.dl-opt svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

/* print */
@media print {

  .dept-delete-btn,
  .etbl-toolbar .dl-wrap,
  .etbl-add-col-right,
  .etbl-warning,
  .etbl-dropdown,
  .etbl-empty-state {
    display: none !important
  }

  .etbl-table td[data-status],
  .etbl-table td[data-status] svg {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact
  }

  .etbl-table {
    box-shadow: none
  }
}

.next-page-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
  padding: 48px 0 24px
}

.next-page-btn,
.back-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: var(--fb);
  font-size: var(--fs-base-lg);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(139, 107, 154, .3)
}

.next-page-btn:hover {
  background: #7a5c8a;
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(139, 107, 154, .4)
}

.back-page-btn {
  margin-right: auto;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none
}

.back-page-btn:hover {
  background: var(--al);
  transform: scale(1.05)
}

.next-page-btn svg,
.back-page-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s
}

.next-page-btn svg {
  stroke: #fff
}

.back-page-btn svg {
  stroke: currentColor
}

@media (max-width: 640px) {
  .next-page-wrap {
    flex-wrap: wrap;
    gap: 10px
  }

  .next-page-btn,
  .back-page-btn {
    padding: 10px 18px;
    font-size: var(--fs-base)
  }
}

/* .next-page-btn:hover svg {
  transform: translateX(3px)
} */

/* ── CASE STUDY EXPLORER ── */
.cs-explorer {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 16px;
}

.cs-region-col {
  /* flex: 0 0 200px; */
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-region-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 10px 0;
  align-self: flex-start;
}

.cs-map-container {
  width: 100%;
}

.cs-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.cs-map-region {
  fill: #d8cce2;
  stroke: #fff;
  stroke-width: 0.5;
  transition: fill 0.15s;
}

.cs-map-region[data-region="Scotland"],
.cs-map-region[data-region="England"] {
  fill: color-mix(in srgb, var(--accent) 30%, white);
}

.cs-map-region[data-region="Scotland"]:hover,
.cs-map-region[data-region="England"]:hover {
  fill: color-mix(in srgb, var(--accent) 55%, white);
}

.cs-map-region.cs-map-active {
  fill: var(--accent);
}

.cs-region-label-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 8px 0 0 0;
  text-align: center;
}

.cs-detail-col {
  flex: 1;
  min-width: 0;
}

.cs-site-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cs-site-tab {
  padding: 5px 16px;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  background: transparent;
  color: var(--accent);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cs-site-tab:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.cs-site-tab.active {
  background: var(--accent);
  color: #fff;
}

.cs-site-dl {
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 10px;
  overflow: hidden;
}

.cs-site-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.cs-site-row:last-child {
  border-bottom: none;
}

.cs-site-row dt {
  background: var(--t2);
  font-weight: 600;
  font-size: 0.825rem;
  color: var(--surface);
  padding: 11px 14px;
  border-right: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.cs-site-row dd {
  margin: 0;
  padding: 11px 14px;
  font-size: 0.875rem;
}

.cs-site-row:nth-child(odd) dd {
  background: var(--surface)
}

.cs-site-row:nth-child(even) dd {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

@media (max-width: 640px) {
  .cs-explorer {
    flex-direction: column;
  }
  .cs-region-col {
    flex: none;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .cs-site-row {
    grid-template-columns: 1fr;
  }
  .cs-site-row dt {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  }

  .etbl-add-col-right {
    width: 20px;
  }
}
