/* ==========================================================================
   Standard pages — the long-form write-up. Prefixed sl-.
   ========================================================================== */

.sl-wrap {
  --sl-teal: #008a72;
  --sl-teal-2: #00a387;
  --sl-deep: #00584a;
  --sl-mint: #e4f6f1;
  --sl-mint-2: #f3fbf9;
  --sl-ink: #10201c;
  --sl-ink-2: #3b524d;
  --sl-muted: #6f8781;
  --sl-line: #dcece7;
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #fff 0%, #fbfefd 100%);
  color: var(--sl-ink);
}
.sl-wrap p, .sl-wrap ul, .sl-wrap ol { margin: 0; }
.sl-wrap ul, .sl-wrap ol { list-style: none; padding: 0; }

.sl-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.sl-main { min-width: 0; max-width: 900px; }

/* ---------- hero tags ---------- */
.sl-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; }
.sl-hero-tags li {
  font-size: 13px; font-weight: 600; color: #0b5d50; background: rgba(0, 163, 135, 0.1);
  border: 1px solid rgba(0, 138, 114, 0.22); padding: 5px 12px; border-radius: 99px;
}

/* ---------- table of contents ---------- */
.sl-aside { position: sticky; top: 118px; }
.sl-toc {
  position: relative; background: #fff; border: 1px solid var(--sl-line); border-radius: 18px; padding: 18px 16px 14px 22px;
  box-shadow: 0 16px 40px -28px rgba(0, 88, 74, 0.45); max-height: calc(100vh - 150px); display: flex; flex-direction: column;
}
.sl-toc-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0 0 12px;
  font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sl-ink); cursor: default;
}
.sl-toc-toggle em { font-style: normal; font-size: 12px; color: var(--sl-teal); background: var(--sl-mint); padding: 2px 8px; border-radius: 99px; letter-spacing: 0; }
.sl-toc-bar { position: absolute; left: 10px; top: 52px; bottom: 16px; width: 2px; background: #e8f3f0; border-radius: 2px; }
.sl-toc-bar i { display: block; width: 100%; background: linear-gradient(var(--sl-teal-2), var(--sl-teal)); border-radius: 2px; transition: height 0.3s; }
.sl-toc ol { overflow-y: auto; scrollbar-width: thin; padding-right: 4px !important; }
.sl-toc a {
  display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--sl-ink-2);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.sl-toc a b { flex: none; font-size: 11px; color: #9dbdb5; font-weight: 700; padding-top: 2px; }
.sl-toc a:hover { background: var(--sl-mint-2); color: var(--sl-ink); }
.sl-toc a.is-active { background: var(--sl-mint); color: var(--sl-deep); font-weight: 600; }
.sl-toc a.is-active b { color: var(--sl-teal); }

/* ---------- intro ---------- */
.sl-intro {
  position: relative; padding: 28px 30px; border-radius: 22px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(135deg, #f0faf7 0%, #ffffff 70%); border: 1px solid var(--sl-line);
}
.sl-intro::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 163, 135, 0.16), transparent 70%);
}
.sl-intro-lead { font-size: 20px; line-height: 1.6; color: var(--sl-ink); font-weight: 500; position: relative; }
.sl-intro .sl-p { margin-top: 12px; }
.sl-intro .sl-callout { margin-top: 16px; }

/* ---------- sections ---------- */
.sl-sec { padding: 44px 0 8px; border-top: 1px solid #edf5f3; scroll-margin-top: 120px; }
.sl-sec:first-of-type { border-top: 0; }
.sl-sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sl-sec-ico {
  flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--sl-teal-2), var(--sl-deep)); box-shadow: 0 12px 22px -12px rgba(0, 88, 74, 0.9);
}
.sl-sec-n { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--sl-teal); }
.sl-sec h2 { margin: 2px 0 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; color: var(--sl-ink); letter-spacing: -0.01em; }
.sl-sec-body { display: grid; gap: 16px; }

.sl-p { font-size: 17px; line-height: 1.8; color: var(--sl-ink-2); max-width: 74ch; }
.sl-p strong, .sl-p-sm strong, .sl-intro strong, .sl-chips strong, .sl-list strong { color: var(--sl-ink); font-weight: 650; }
.sl-p-sm { font-size: 14.5px; line-height: 1.65; color: var(--sl-ink-2); }
.sl-lead-in { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sl-teal); margin-top: 4px !important; }

/* chips grid for short lists */
.sl-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sl-chips li {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #fff;
  border: 1px solid var(--sl-line); font-size: 14.5px; font-weight: 500; color: var(--sl-ink); line-height: 1.35;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.sl-chips li:hover { transform: translateY(-2px); border-color: #a9dccf; box-shadow: 0 10px 22px -16px rgba(0, 88, 74, 0.6); }
.sl-chip-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sl-mint); color: var(--sl-teal); }

/* bullet list for long items */
.sl-list { display: grid; gap: 10px; }
.sl-list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.7; color: var(--sl-ink-2); }
.sl-list li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 9px; height: 9px; border-radius: 3px;
  background: var(--sl-teal); transform: rotate(45deg);
}
.sl-list.is-dense li { font-size: 14px; line-height: 1.55; padding-left: 20px; }
.sl-list.is-dense li::before { top: 8px; width: 7px; height: 7px; left: 3px; }

/* flow: numbered steps */
.sl-flow { display: flex; flex-wrap: wrap; gap: 10px; counter-reset: f; padding: 4px 0 !important; }
.sl-flow li {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px;
  background: #fff; border: 1px solid var(--sl-line); font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--sl-ink);
  text-transform: capitalize; box-shadow: 0 6px 16px -14px rgba(0, 88, 74, 0.8);
  animation: sl-pop 0.5s both; animation-delay: calc(var(--i, 0) * 60ms);
}
.sl-flow li b {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px;
  background: linear-gradient(140deg, var(--sl-teal-2), var(--sl-teal)); color: #fff;
}
.sl-flow li span { text-transform: none; }
.sl-flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 2px; background: #9fd6c8;
}
.sl-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sl-pair span {
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; background: #fff; border: 1px solid var(--sl-line); color: var(--sl-ink);
}
.sl-pair span:first-child { background: var(--sl-deep); color: #fff; border-color: var(--sl-deep); }
.sl-pair i { color: var(--sl-teal); display: grid; }

/* equation */
.sl-eq {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(120deg, #073f37, #00695a); color: #eafff9; font-weight: 600; font-size: 16px; line-height: 1.5;
}
.sl-eq em { font-style: normal; font-size: 20px; color: #6ff0cf; font-weight: 800; }

/* callout */
.sl-callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: #fff8e8; border: 1px solid #f3dfae; color: #6b4a00;
}
.sl-callout svg { flex: none; color: #c58a00; margin-top: 2px; }
.sl-callout p { font-size: 15.5px; line-height: 1.65; font-weight: 600; }

.sl-banner {
  justify-self: start; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--sl-deep);
  background: var(--sl-mint); border: 1px dashed #8fd0bf; padding: 8px 14px; border-radius: 10px;
}

/* table */
.sl-table-wrap { overflow-x: auto; border: 1px solid var(--sl-line); border-radius: 16px; background: #fff; box-shadow: 0 14px 34px -28px rgba(0, 88, 74, 0.6); }
.sl-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.sl-table thead th {
  background: linear-gradient(180deg, #0a7d69, #006e5b); color: #fff; font-weight: 700; text-align: left; padding: 13px 16px; font-size: 13.5px;
}
.sl-table tbody th { text-align: left; font-weight: 650; color: var(--sl-ink); background: #f7fcfb; }
.sl-table tbody th, .sl-table td { padding: 12px 16px; border-top: 1px solid #edf5f3; vertical-align: top; line-height: 1.5; color: var(--sl-ink-2); }
.sl-table tbody tr:hover td, .sl-table tbody tr:hover th { background: var(--sl-mint-2); }
.sl-yes { color: #007a63; font-weight: 700; }
.sl-no { color: #b0413a; font-weight: 700; }

/* cards */
.sl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
.sl-cards.is-two, .sl-cards.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-card {
  position: relative; background: #fff; border: 1px solid var(--sl-line); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; animation: sl-pop 0.5s both; animation-delay: calc(var(--i, 0) * 70ms);
}
.sl-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--sl-teal-2), transparent); }
.sl-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(0, 88, 74, 0.55); border-color: #b5e0d5; }
.sl-card header { display: flex; align-items: center; gap: 12px; }
.sl-card h3 { margin: 0; font-size: 16.5px; line-height: 1.3; color: var(--sl-ink); }
.sl-card-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sl-mint); color: var(--sl-teal); }
.sl-card-n { flex: none; font-size: 26px; font-weight: 800; line-height: 1; background: linear-gradient(140deg, var(--sl-teal-2), var(--sl-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-card-tags span { font-size: 12px; font-weight: 700; color: var(--sl-deep); background: var(--sl-mint); padding: 3px 9px; border-radius: 99px; }
.sl-card .sl-flow li { padding: 6px 10px 6px 6px; font-size: 12px; }
.sl-card .sl-flow li b { width: 22px; height: 22px; font-size: 10px; }

/* all 25 methods */
.sl-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.sl-methods a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--sl-line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--sl-ink); text-decoration: none; transition: all 0.15s;
}
.sl-methods a b { font-size: 11px; color: var(--sl-teal); background: var(--sl-mint); border-radius: 7px; padding: 3px 6px; }
.sl-methods a:hover { border-color: var(--sl-teal); color: var(--sl-deep); transform: translateY(-1px); }
.sl-methods a[aria-current="page"] { background: var(--sl-deep); color: #fff; border-color: var(--sl-deep); }
.sl-methods a[aria-current="page"] b { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* key takeaways */
.sl-sec.is-takeaway {
  margin-top: 28px; padding: 30px; border: 0; border-radius: 22px; color: #eafff9;
  background: radial-gradient(600px 240px at 90% 0%, rgba(111, 240, 207, 0.22), transparent 60%), linear-gradient(135deg, #06332d, #00584a);
}
.sl-sec.is-takeaway h2, .sl-sec.is-takeaway .sl-p, .sl-sec.is-takeaway .sl-list li { color: #eafff9; }
.sl-sec.is-takeaway .sl-sec-n { color: #6ff0cf; }
.sl-sec.is-takeaway .sl-sec-ico { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.sl-sec.is-takeaway .sl-chips li { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.sl-sec.is-takeaway .sl-chip-tick { background: #6ff0cf; color: #06332d; }
.sl-sec.is-takeaway .sl-callout { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.sl-sec.is-takeaway .sl-callout svg { color: #6ff0cf; }
.sl-sec.is-takeaway .sl-list li::before { background: #6ff0cf; }

@keyframes sl-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sl-wrap *, .sl-wrap *::before, .sl-wrap *::after { animation: none !important; transition: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .sl-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .sl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .sl-wrap { padding-top: 40px; }
  .sl-grid { grid-template-columns: 1fr; gap: 20px; }
  .sl-aside { position: sticky; top: 76px; z-index: 5; }
  .sl-toc { padding: 12px 14px; max-height: none; border-radius: 14px; }
  .sl-toc-toggle { padding: 0; cursor: pointer; }
  .sl-toc-toggle::after { content: "▾"; margin-left: 8px; color: var(--sl-teal); }
  .sl-toc-bar { display: none; }
  .sl-toc ol { display: none; }
  .sl-toc.is-open ol { display: block; max-height: 60vh; margin-top: 10px !important; }
}
@media (max-width: 767px) {
  .sl-intro { padding: 20px; }
  .sl-intro-lead { font-size: 17.5px; }
  .sl-sec { padding-top: 34px; }
  .sl-sec-ico { width: 42px; height: 42px; border-radius: 12px; }
  .sl-p { font-size: 16px; }
  .sl-cards, .sl-cards.is-two, .sl-cards.is-four { grid-template-columns: 1fr; }
  .sl-flow { flex-direction: column; }
  .sl-flow li { width: 100%; }
  .sl-flow li:not(:last-child)::after { right: auto; left: 24px; top: auto; bottom: -10px; width: 2px; height: 10px; }
  .sl-chips { grid-template-columns: 1fr; }
  .sl-sec.is-takeaway { padding: 22px; }
}

/* The template colours every p and span; these blocks set their own ink. */
.sl-eq span { color: #eafff9; }
.sl-callout p { color: inherit; }
.sl-sec.is-takeaway .sl-callout p { color: #fff; }
.sl-sec.is-takeaway strong { color: #fff; }

/* ---- DPDP page cards: icon tile + colour shape, like the get.* boxes ---- */
.st-mini, .st-level, .st-fit-card, .st-report > article, .st-box { position: relative; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.st-mini::after, .st-level::after, .st-fit-card::after, .st-report > article::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 140px; height: 140px; border-radius: 42% 58% 55% 45%;
  background: rgba(0, 163, 135, 0.1); transition: transform 0.5s; pointer-events: none;
}
.st-mini:hover, .st-level:hover, .st-fit-card:hover, .st-report > article:hover { transform: translateY(-5px); box-shadow: 0 24px 46px -28px rgba(0, 88, 74, 0.55); }
.st-mini:hover::after, .st-level:hover::after, .st-fit-card:hover::after, .st-report > article:hover::after { transform: rotate(35deg) scale(1.15); }
.st-cardico {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(140deg, #00a387, #00584a); box-shadow: 0 14px 26px -14px rgba(0, 88, 74, 0.9); animation: st-ico 4s ease-in-out infinite;
}
@keyframes st-ico { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.st-mini h3, .st-level h3, .st-fit-card h3, .st-report > article h3 { position: relative; z-index: 1; font-size: 19px !important; }
.st-mini p, .st-level p, .st-report > article p { position: relative; z-index: 1; font-size: 15px; }
.st-report > article:nth-child(3n + 2) .st-cardico, .st-grid2 .st-mini:nth-child(3n + 2) .st-cardico { background: linear-gradient(140deg, #2f8bd8, #1b4f8f); }
.st-report > article:nth-child(3n) .st-cardico, .st-grid2 .st-mini:nth-child(3n) .st-cardico { background: linear-gradient(140deg, #7a6ae0, #4a3aa8); }
@media (prefers-reduced-motion: reduce) { .st-cardico { animation: none; } }
