/* ============================================================
   CapybaraNet — main.css = name used in Publii
   Full stylesheet for the resource library
   ============================================================ */

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

:root {
  --bg:           #fafaf8;
  --surface:      #ffffff;
  --border:       rgba(0,0,0,0.10);
  --border-mid:   rgba(0,0,0,0.18);
  --text:         #1a1a18;
  --muted:        #6b6b67;
  --hint:         #9a9a95;

  --teal:         #1D9E75;
  --teal-light:   #E1F5EE;
  --teal-dark:    #085041;
  --red:          #D85A30;
  --red-light:    #FAECE7;
  --blue:         #185FA5;
  --blue-light:   #E6F1FB;
  --amber:        #BA7517;
  --amber-light:  #FAEEDA;
  --purple:       #534AB7;
  --purple-light: #EEEDFE;
  --gray-light:   #F1EFE8;
  --gray-dark:    #5F5E5A;

  --radius:       10px;
  --radius-lg:    14px;
  --font:         'DM Sans', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────────────────────── */

body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 52px;
}

nav.toc {
  all: unset;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 1.5rem;
}

.nav-brand {
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.nav-brand span {
  color: #8a8a8a;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.nav-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0;
  margin-left: auto;
  list-style: none;
  overflow-x: auto;
}

.nav-links a {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.nav-links a:hover {
  background: var(--gray-light);
  color: var(--text);
}



/* ── HERO ────────────────────────────────────────────────── */

.page-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  border-bottom: 0.5px solid var(--border-mid);
  margin-bottom: 0;
}


.page-hero-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-hero-site-name {
  flex: 1;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #8a8a8a;
  line-height: 1;
  white-space: nowrap;
}
.page-hero-logo {
  height: 140px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.page-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.page-hero h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.toc a {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 13px;
  border: 0.5px solid var(--border-mid);
  border-radius: 20px;
  transition: all 0.12s;
}

.toc a:hover {
  background: var(--surface);
  color: var(--text);
}

/* ── MAIN LAYOUT ─────────────────────────────────────────── */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── SECTIONS ────────────────────────────────────────────── */

.section { margin-bottom: 5rem; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--border);
}

.section-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.section-title { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.section-desc  { font-size: 14px; color: var(--muted); }

/* Icon colour variants */
.si-teal   { background: var(--teal-light);   color: var(--teal-dark); }
.si-blue   { background: var(--blue-light);   color: var(--blue); }
.si-red    { background: var(--red-light);    color: var(--red); }
.si-amber  { background: var(--amber-light);  color: var(--amber); }
.si-purple { background: var(--purple-light); color: var(--purple); }
.si-gray   { background: var(--gray-light);   color: var(--gray-dark); }

/* ── CARDS ───────────────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card-name { font-size: 16px; font-weight: 500; }
.card-name a:hover { color: var(--teal); }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── BADGES ──────────────────────────────────────────────── */

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-gold      { background: var(--amber-light);  color: var(--amber); }
.badge-key       { background: var(--teal-light);   color: var(--teal-dark); }
.badge-ifcn      { background: var(--blue-light);   color: var(--blue); }
.badge-tool      { background: var(--purple-light); color: var(--purple); }
.badge-acad      { background: var(--gray-light);   color: var(--gray-dark); }
.badge-warn      { background: var(--red-light);    color: var(--red); }
.badge-indicted  { background: #FCEBEB;             color: #A32D2D; }
.badge-sanctioned{ background: var(--red-light);    color: var(--red); }
.badge-attributed{ background: var(--amber-light);  color: var(--amber); }

/* ── SKILL LIST ──────────────────────────────────────────── */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 9px;
}

.skill-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.skill-item:hover { border-color: var(--border-mid); }

.skill-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.skill-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.skill-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

.skill-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--teal);
  margin-top: 4px;
}

.skill-link:hover { text-decoration: underline; }

/* ── BAD ACTORS ──────────────────────────────────────────── */

.actor-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--amber-light);
  border: 0.5px solid rgba(186,117,23,0.25);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 12px;
  color: #5a3d08;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.actor-disclaimer strong { font-weight: 500; }

.actor-group { margin-bottom: 2rem; }

.actor-group-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

.card-threat { border-left: 2px solid var(--red-light); }
.card-threat:hover { border-left-color: var(--red); }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 0.5px solid var(--border);
}

.card-links a { font-size: 11px; color: var(--teal); }
.card-links a:hover { text-decoration: underline; }

/* ── BADBOX TIMELINE ─────────────────────────────────────── */

.badbox-timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 2rem;
}

.badbox-timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border-mid);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  flex-shrink: 0;
}

.tl-amber  { background: var(--amber); }
.tl-red    { background: var(--red); }
.tl-blue   { background: var(--blue); }
.tl-purple { background: var(--purple); }

.timeline-content {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  flex: 1;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.timeline-content:hover {
  border-color: var(--border-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.timeline-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.timeline-desc  { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }

.tl-link { font-size: 11px; color: var(--teal); }
.tl-link:hover { text-decoration: underline; }

/* ── BADBOX PAGE TIMELINE (Publii version) ───────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-mid);
  margin-top: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg);
}

.timeline-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.timeline-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.warning-box {
  background: var(--amber-light);
  border: 0.5px solid rgba(186,117,23,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 14px;
  color: #5a3d08;
  line-height: 1.7;
}

.warning-box ul {
  margin: 0.5rem 0 0 1.25rem;
}

.warning-box li {
  margin-bottom: 0.5rem;
}
/* ── STOP TIMELINE CARDS ACTING LIKE GRID CARDS ─────────── */

.timeline .timeline-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

.timeline .timeline-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline .timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 0;
  display: block;
}
/* ── BADBOX CAPABILITIES ─────────────────────────────────── */

.badbox-what { margin-bottom: 1.75rem; }

.badbox-what-title,
.badbox-protect-title,
.badbox-sources-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

.badbox-caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 9px;
}

.badbox-cap {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.15s;
}

.badbox-cap:hover { border-color: var(--border-mid); }

.badbox-cap-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 8px;
}

.badbox-cap-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.badbox-cap-desc { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ── BADBOX PROTECTION BOX ───────────────────────────────── */

.badbox-protect {
  background: var(--red-light);
  border: 0.5px solid rgba(216,90,48,0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.badbox-protect-title { color: var(--red); margin-bottom: 1rem; }

.badbox-protect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.badbox-protect-item {
  font-size: 12px;
  color: #6b2a10;
  line-height: 1.65;
  padding-left: 14px;
  position: relative;
}

.badbox-protect-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
}

.badbox-protect-item strong { font-weight: 500; }

.badbox-sources-title { margin-bottom: 0.9rem; }

/* ── WARNING BOX ─────────────────────────────────────────── */

.warning-box {
  background: var(--amber-light);
  border: 0.5px solid rgba(186,117,23,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 14px;
  color: #5a3d08;
  line-height: 1.7;
}

.warning-box ul {
  margin: 0.5rem 0 0 1.25rem;
}

.warning-box li {
  margin-bottom: 0.5rem;
}

/* ── TIMELINE ────────────────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-mid);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-dark);
  background: var(--teal-light);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.timeline-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.timeline-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  margin-top: 0.4rem;
}

.tl-link {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}

.tl-link:hover {
  text-decoration: underline;
}


/* ── SUBNAV PILL BAR ─────────────────────────────────────── */

.subnav {
  position: sticky;
  top: 52px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0.9rem 2rem;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--border);
}

.subnav-pill {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  padding: 5px 15px;
  border: 0.5px solid var(--border-mid);
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.subnav-pill:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-mid);
}

.subnav-active {
  background: var(--teal-dark);
  color: #ffffff !important;
  border-color: var(--teal-dark);
  font-weight: 500;
}

.subnav-active:hover {
  background: var(--teal);
  border-color: var(--teal);
}

@media (max-width: 600px) {
  .subnav {
    top: 50px;
    padding: 0.75rem 1rem;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .subnav-pill { font-size: 12px; padding: 5px 12px; }
}

.subnav-active:hover {
  background: var(--teal);
  border-color: var(--teal);
}

@media (max-width: 600px) {
  .subnav {
    padding: 1rem;
    gap: 6px;
  }
  .subnav-pill {
    font-size: 12px;
    padding: 5px 12px;
  }
}


/* ── TOOLKIT ─────────────────────────────────────────────── */

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 2.5rem;
}

.toolkit-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.toolkit-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.toolkit-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.1rem;
  font-size: 13px;
}

.toolkit-title {
  font-size: 16px;
  font-weight: 500;
}

.toolkit-steps {
  list-style: none;
  padding: 0.75rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: step-counter;
}

.toolkit-steps li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 2.1rem;
  position: relative;
  counter-increment: step-counter;
}

.toolkit-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-light);
  color: var(--gray-dark);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toolkit-steps li a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toolkit-steps li a:hover { color: #0d4a8a; }

.toolkit-steps li strong { font-weight: 500; color: var(--text); }

.toolkit-steps li code {
  font-family: monospace;
  font-size: 11px;
  background: var(--gray-light);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
}

.toolkit-steps li em { font-style: italic; }

.toolkit-tip {
  margin: 0 1.1rem 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--amber-light);
  border-radius: var(--radius);
  font-size: 13px;
  color: #5a3d08;
  line-height: 1.65;
}

/* Toolkit subsections (link lists) */

.toolkit-subsections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.toolkit-sub {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.toolkit-sub-title {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.toolkit-sub-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid var(--border);
}

.toolkit-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px;
}

.toolkit-link-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.6rem 0.85rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}

.toolkit-link-item:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

.tli-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}

.tli-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.toolkit-link-item:hover .tli-name { color: #0d4a8a; }
.toolkit-link-item:hover .tli-desc { color: var(--teal); }

@media (max-width: 600px) {
  .toolkit-grid { grid-template-columns: 1fr; }
  .toolkit-link-list { grid-template-columns: 1fr; }
}

/* ── ABOUT ───────────────────────────────────────────────── */

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-block {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.15s;
}

.about-block:hover { border-color: var(--border-mid); }

.about-block-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-dark);
  background: var(--teal-light);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.about-p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

.about-p:last-child { margin-bottom: 0; }

.about-emphasis {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin-top: 1rem;
}

.about-list {
  list-style: none;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-list li {
  font-size: 15px;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.about-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 12px;
}

.about-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}

/* Principles block */
.about-block-principles {
  border-color: var(--teal-light);
}

.principles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.principle-item {
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.principle-word {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal-dark);
}

.principle-matters {
  font-size: 12px;
  color: var(--teal);
}

/* Closing block */
.about-block-closing {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  text-align: center;
  padding: 2.5rem 2rem;
}

.about-block-closing:hover { border-color: var(--teal); }

.about-closing-title {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}

.about-closing-p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 0.5rem;
}

@media (max-width: 600px) {
  .about-block { padding: 1.25rem; }
  .about-list-grid { grid-template-columns: 1fr; }
  .principles-grid { gap: 7px; }
}


.about-closing-email {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.about-closing-email:hover {
  color: #ffffff;
  text-decoration: underline;
}



/* ── AD FONTES MEDIA CHART ───────────────────────────────── */

.adfm-about {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.adfm-about strong { color: var(--text); font-weight: 500; }

.adfm-chart-wrap {
  position: relative;
  display: block;
  border: 0.5px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-light);
  margin-bottom: 1rem;
}

.adfm-chart-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.adfm-chart-wrap:hover .adfm-chart-img {
  opacity: 0.88;
}

.adfm-chart-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  pointer-events: none;
}

.adfm-open-btn {
  display: inline-block;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.adfm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.adfm-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adfm-credit {
  font-size: 11px;
  color: var(--hint);
  font-style: italic;
}

.adfm-link {
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
}

.adfm-link:hover { text-decoration: underline; }

.adfm-interactive-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-dark);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.adfm-interactive-btn:hover { background: var(--teal); }

.adfm-caveat {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0.9rem 1.1rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--border-mid);
}

.adfm-caveat strong { color: var(--text); font-weight: 500; }

@media (max-width: 600px) {
  .adfm-footer { flex-direction: column; align-items: flex-start; }
  .adfm-interactive-btn { width: 100%; justify-content: center; }
}

/* ── SOURCES PAGE ────────────────────────────────────────── */

.sources-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  padding: 1rem 1.25rem;
  background: var(--teal-light);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.sources-category {
  margin-bottom: 3rem;
}

.sources-cat-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.25rem;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.source-item {
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border);
}

.source-item:last-child {
  border-bottom: none;
}

.source-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
}

.source-name:hover {
  text-decoration: underline;
  color: #0d4a8a;
}

.source-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 720px;
}

.sources-footer-note {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--gray-light);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.sources-footer-note strong { color: var(--text); font-weight: 500; }
.sources-footer-note a { color: var(--teal); }
.sources-footer-note a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--hint);
}

footer a { color: var(--teal); }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 600px) {
  body > nav { padding: 0 1rem; }
  .page-hero, main { padding-left: 1rem; padding-right: 1rem; }
  .page-hero { padding-top: 2.5rem; }
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .badbox-caps-grid { grid-template-columns: 1fr; }
  .badbox-protect-grid { grid-template-columns: 1fr; }
}

/* ── MULTI-PAGE NAV ──────────────────────────────────────── */

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}


.section-divider-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-top: 0.5rem;
  border-top: 0.5px solid var(--border);
}

.nav-active {
  background: var(--teal-light) !important;
  color: var(--teal-dark) !important;
  font-weight: 500;
}

/* ── PAGE MAIN (section pages) ───────────────────────────── */

.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── LANDING PAGE CARDS ──────────────────────────────────── */

.landing-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

.landing-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.landing-card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transform: translateX(3px);
}

.landing-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.landing-card-body {
  flex: 1;
  min-width: 0;
}

.landing-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.landing-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.landing-card-arrow {
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.landing-card:hover .landing-card-arrow {
  color: var(--teal);
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .landing-grid { padding: 1.5rem 1rem 3rem; }
  .page-main { padding: 2rem 1rem 3rem; }
  .landing-card-desc { display: none; }
}
/* ==========================================================
   PAGE CONTENT STYLING
   Makes normal Publii content look like CapybaraNet
   ========================================================== */

.post-text {
  max-width: 860px;
}

.post-text h2 {
  font-size: 28px;
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}

.post-text h3 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.post-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.post-text ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-text li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.post-text a {
  color: var(--blue);
  text-decoration: none;
}

.post-text a:hover {
  text-decoration: underline;
}
.post-text blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

.post-text hr {
  border: 0;
  border-top: 0.5px solid var(--border);
  margin: 2rem 0;
}
/* ── TOOLKIT PAGE ───────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.card-desc {
  padding: 1.25rem;
  flex: 1;
}

.toolkit-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.toolkit-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.9rem;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.toolkit-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
}

.toolkit-tip {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  background: #fdf3e7;
  color: #7a4a10;
}

/* ── CARD HEADER COLORS ──────────────────────────────────── */

.image-card    .card-top { background: #d8ebe6; color: #00695c; }
.quote-card    .card-top { background: #dfeaf6; color: #1565c0; }
.funding-card  .card-top { background: #efe3cf; color: #b26a00; }
.context-card  .card-top { background: #e8e2f8; color: #6a3cbc; }
.document-card .card-top { background: #f2e7d9; color: #9c5b00; }
.archive-card  .card-top { background: #e7edf5; color: #4a5a70; }

/* ── CARD BODY COLORS ────────────────────────────────────── */

.image-card    { background: #f0f8f5; border-color: #b2d8cf; }
.quote-card    { background: #f0f4fb; border-color: #b8cfe8; }
.funding-card  { background: #fdf6ec; border-color: #e0c898; }
.context-card  { background: #f5f2fc; border-color: #cec5ef; }
.document-card { background: #fdf5ee; border-color: #dfc4a0; }
.archive-card  { background: #f2f5f9; border-color: #c0ccdb; }

/* ── STEP NUMBER CIRCLE COLORS ───────────────────────────── */

.image-card    .toolkit-steps li::before { background: #c4e0da; color: #00695c; }
.quote-card    .toolkit-steps li::before { background: #c4d8f0; color: #1565c0; }
.funding-card  .toolkit-steps li::before { background: #e8d4b0; color: #b26a00; }
.context-card  .toolkit-steps li::before { background: #d8d0f0; color: #6a3cbc; }
.document-card .toolkit-steps li::before { background: #e8d0b8; color: #9c5b00; }
.archive-card  .toolkit-steps li::before { background: #c8d4e4; color: #4a5a70; }

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
}
/* ── TOOLKIT SUBSECTIONS ─────────────────────────────────── */

.toolkit-subsections {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.toolkit-sub-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.toolkit-sub-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.toolkit-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.toolkit-link-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.toolkit-link-item:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.tli-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}

.tli-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .toolkit-link-list { grid-template-columns: 1fr; }
}
/* ── TIMELINE (Publii-friendly) ──────────────────────────── */

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
  border-left: 2px solid var(--border-mid);
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg);
}

.timeline-entry-date {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-dark);
  background: var(--teal-light);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.timeline-entry-box {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.timeline-entry-box:hover {
  border-color: var(--border-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.timeline-entry-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.timeline-entry-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.timeline-entry-link {
  font-size: 13px;
  color: var(--teal);
  text-decoration: none;
}

.timeline-entry-link:hover {
  text-decoration: underline;
}
/* ── TIMELINE OVERRIDE — must stay at bottom of file ─────── */

.timeline {
  position: relative;
  padding-left: 2rem !important;
  margin-top: 1.5rem !important;
  border-left: 2px solid var(--border-mid) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
  grid-template-columns: none !important;
}

.timeline-entry {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
}

.timeline-entry::before {
  content: '' !important;
  position: absolute !important;
  left: -2.45rem !important;
  top: 0.35rem !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: var(--teal) !important;
  border: 2px solid var(--bg) !important;
}

.timeline-entry-date {
  font-size: 11px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: var(--teal-dark) !important;
  background: var(--teal-light) !important;
  display: inline-block !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  margin-bottom: 0.6rem !important;
}

.timeline-entry-box {
  background: var(--surface) !important;
  border: 0.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 1rem 1.25rem !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  grid-column: unset !important;
}

.timeline-entry-title {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
}

.timeline-entry-desc {
  font-size: 14px !important;
  color: var(--muted) !important;
  line-height: 1.75 !important;
  margin-bottom: 0.75rem !important;
  display: block !important;
}

.timeline-entry-link {
  font-size: 13px !important;
  color: var(--teal) !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.timeline-entry-link:hover {
  text-decoration: underline !important;
}
