/* =========================================================
   Veris Labs - Guides & Blog
   Extends css/styles.css and css/tools.css (load both first).
   ========================================================= */

/* ---------- Reading progress ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.read-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(79, 168, 212, .6);
  transition: width .08s linear;
}

/* ---------- Guide hero ---------- */
.guide-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(ellipse 80% 80% at 78% 0%, rgba(111, 200, 230, .26), transparent 58%),
    linear-gradient(150deg, #12203a 0%, #26578a 96%);
}
.guide-hero::after {
  content: "";
  position: absolute; inset: 0; opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000, transparent 75%);
}
.guide-hero .container { position: relative; z-index: 2; max-width: 860px; }
.guide-hero h1 { color: #fff; text-wrap: balance; font-size: clamp(2rem, 4.2vw, 3.05rem); }
.guide-hero .lead { color: rgba(255,255,255,.9); font-size: 1.14rem; max-width: 680px; }
.guide-hero .eyebrow { color: var(--cyan-300); }
.guide-hero .eyebrow::before { background: linear-gradient(90deg, #9fdcef, #4fa8d4); }
.guide-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 26px;
  font-size: .89rem;
  color: rgba(233,242,250,.78);
}
.guide-meta span { display: inline-flex; align-items: center; gap: 8px; }
.guide-meta svg { width: 16px; height: 16px; opacity: .8; }

/* ---------- Layout ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* ---------- Table of contents ---------- */
.guide-toc { position: sticky; top: 96px; }
.guide-toc h4 {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate-light);
  margin-bottom: 14px; font-family: var(--font);
}
.guide-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a {
  display: block;
  position: relative;
  padding: 8px 0 8px 30px;
  font-size: .91rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.4;
  border-left: 2px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.guide-toc a::before {
  content: counter(toc);
  position: absolute; left: 12px; top: 8px;
  font-size: .74rem; font-weight: 800;
  color: var(--slate-light);
  font-family: var(--font-display);
  transition: color .2s ease;
}
.guide-toc a:hover { color: var(--teal-600); }
.guide-toc a.active {
  color: var(--teal-600);
  border-left-color: var(--teal-500);
}
.guide-toc a.active::before { color: var(--teal-600); }

/* ---------- Article typography ---------- */
.guide-body { max-width: 720px; }
.guide-body > h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: 58px 0 .5em;
  scroll-margin-top: 96px;
}
.guide-body > h2:first-child { margin-top: 0; }
.guide-body > h3 { font-size: 1.16rem; margin: 34px 0 .45em; }
.guide-body p { font-size: 1.04rem; line-height: 1.72; margin-bottom: 1.15rem; }
.guide-body strong { color: var(--navy-800); font-weight: 700; }
.guide-body a { font-weight: 600; border-bottom: 1px solid rgba(47,118,168,.3); transition: border-color .2s; }
.guide-body a:hover { border-bottom-color: var(--teal-600); }
.guide-body ul, .guide-body ol { margin: 0 0 1.3rem; padding-left: 22px; }
.guide-body li { font-size: 1.02rem; line-height: 1.68; margin-bottom: .6rem; color: var(--slate); }
.guide-body li::marker { color: var(--teal-500); font-weight: 700; }
.guide-body > p:first-of-type { font-size: 1.14rem; color: var(--ink); }

.guide-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.5rem;
  font-size: .95rem;
}
.guide-body th, .guide-body td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.guide-body th {
  background: linear-gradient(180deg, var(--mist) 0%, var(--mist-2) 100%);
  color: var(--navy-800); font-weight: 700;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
}
.guide-body td { color: var(--slate); }
.guide-body tr:last-child td { border-bottom: 0; }
.guide-body tbody tr:hover { background: var(--mist); }
.guide-body td.num, .guide-body th.num { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--navy-800); white-space: nowrap; }

/* ---------- Callouts ---------- */
.callout {
  display: flex;
  gap: 16px;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 1.6rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.callout .cico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  background: var(--grad-brand-soft);
  color: var(--teal-600);
}
.callout .cico svg { width: 18px; height: 18px; }
.callout b {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-800);
  font-size: 1rem;
  margin-bottom: 5px;
  letter-spacing: -.01em;
}
.callout p { font-size: .97rem !important; margin: 0 !important; line-height: 1.65 !important; }
.callout p + p { margin-top: .7rem !important; }
.callout.tip { background: #f2fbf6; border-color: #cbead8; }
.callout.tip .cico { background: #dff3ea; color: #157a4b; }
.callout.warn { background: #fffaf0; border-color: #f2e0be; }
.callout.warn .cico { background: #fcefd6; color: #c9973a; }
.callout.warn b { color: #6f5827; }
.callout.key {
  background: var(--grad-ink);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.callout.key b { color: #fff; }
.callout.key p { color: rgba(233,242,250,.86) !important; }
.callout.key .cico { background: rgba(255,255,255,.14); color: var(--cyan-300); }

/* Text inside the dark callout otherwise inherits the light-background
   colours, which puts dark navy on dark navy. These are the dark equivalents. */
.callout.key ul,
.callout.key ol,
.callout.key li { color: rgba(233, 242, 250, .9); }
.callout.key strong { color: #fff; }
.callout.key li::marker { color: var(--cyan-300); }
.callout.key a { color: var(--cyan-300); border-bottom-color: rgba(159, 220, 239, .45); }
.callout.key a:hover { border-bottom-color: var(--cyan-300); }

/* Same trap on the other dark surfaces. */
.mascot-guide.on-dark .say strong { color: #fff; }
.mascot-guide.on-dark .say a { color: var(--cyan-300); }
.slider-demo .sd-note strong,
.slider-demo .sd-note b { color: #fff; }

/* ---------- Pull quote ---------- */
.pull-quote {
  margin: 34px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--teal-500);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.28rem !important;
  line-height: 1.42 !important;
  color: var(--navy-800);
  letter-spacing: -.02em;
  margin: 0 !important;
}

/* ---------- Stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 1.7rem; }
.stat-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.stat-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-box .n {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 800;
  color: var(--teal-600);
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 7px;
}
.stat-box .l { font-size: .85rem; color: var(--slate-light); line-height: 1.45; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0 0 1.8rem; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--cyan-300));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute; left: -29px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal-500);
  box-shadow: 0 0 0 4px rgba(79,168,212,.12);
}
.tl-item .when {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 4px;
}
.tl-item h4 { font-size: 1.02rem; margin: 0 0 .3em; color: var(--navy-800); }
.tl-item p { font-size: .96rem !important; margin: 0 !important; }

/* ---------- Interactive: decision tree ---------- */
.dtree {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin: 0 0 1.8rem;
}
.dtree .dt-q { font-family: var(--font-display); font-size: 1.16rem; color: var(--navy-800); margin-bottom: 6px; letter-spacing: -.015em; }
.dtree .dt-help { font-size: .9rem; color: var(--slate-light); margin-bottom: 18px; line-height: 1.55; }
.dtree .dt-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.dtree button {
  font-family: var(--font);
  min-height: 44px;
  font-size: .93rem; font-weight: 700;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy-700);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.dtree button:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dtree .dt-answer {
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--grad-brand-soft);
  border: 1px solid #bfe0f1;
}
.dtree .dt-answer .verdict-t {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.dtree .dt-answer p { font-size: .98rem !important; margin: 0 0 .7rem !important; }
.dtree .dt-answer p:last-of-type { margin-bottom: 0 !important; }
.dtree .dt-path {
  font-size: .82rem; color: var(--slate-light);
  margin-bottom: 16px; line-height: 1.5;
}
.dtree .dt-path b { color: var(--teal-600); font-weight: 700; }
.dt-restart {
  margin-top: 16px;
  background: none; border: 0; padding: 0;
  color: var(--teal-600); font-weight: 700; font-size: .89rem;
  cursor: pointer; font-family: var(--font);
  border-bottom: 1px solid rgba(47,118,168,.35);
}
.dt-restart:hover { border-bottom-color: var(--teal-600); }

/* ---------- Interactive: slider demo ---------- */
.slider-demo {
  background: var(--grad-ink);
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  margin: 0 0 1.8rem;
}
.slider-demo h4 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.slider-demo .sd-sub { font-size: .89rem; color: rgba(233,242,250,.7); margin-bottom: 22px; }
.slider-demo label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .88rem; font-weight: 600; color: rgba(233,242,250,.82);
  margin-bottom: 9px;
}
.slider-demo label b { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.slider-demo input[type=range] {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 4px;
  background: rgba(255,255,255,.18);
  margin-bottom: 22px;
  cursor: pointer;
}
.slider-demo input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-brand);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  cursor: pointer;
}
.slider-demo input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #6fc8e6; border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.35);
  cursor: pointer;
}
.sd-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.sd-cell {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  padding: 15px 14px;
  text-align: center;
}
.sd-cell .v {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--cyan-300);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.sd-cell .k { font-size: .76rem; color: rgba(233,242,250,.62); margin-top: 5px; line-height: 1.35; }
.sd-note {
  margin-top: 18px;
  font-size: .9rem;
  color: rgba(233,242,250,.86);
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 13px 16px;
  line-height: 1.55;
}

/* ---------- Interactive: checklist ---------- */
.gl-check {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin: 0 0 1.8rem;
}
.gl-check .gc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.gl-check h4 { margin: 0; font-size: 1.08rem; }
.gl-check .gc-count {
  font-family: var(--font-display); font-weight: 800;
  color: var(--teal-600); font-size: .95rem; white-space: nowrap;
}
.gl-check .gc-bar { height: 6px; border-radius: 4px; background: var(--mist-2); overflow: hidden; margin: 12px 0 20px; }
.gl-check .gc-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad-brand); transition: width .4s var(--ease-out); }
.gl-check ul { list-style: none; margin: 0; padding: 0; }
.gl-check li { margin: 0 0 10px; }
.gl-check label {
  display: flex; align-items: flex-start; gap: 13px;
  cursor: pointer;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease;
  font-size: .96rem;
  color: var(--slate);
  line-height: 1.55;
}
.gl-check label:hover { border-color: #cfe0ef; background: var(--mist); }
.gl-check input { position: absolute; opacity: 0; pointer-events: none; }
.gl-check .box {
  width: 21px; height: 21px; border-radius: 6px;
  border: 2px solid var(--line);
  flex: 0 0 auto; margin-top: 1px;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.gl-check .box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .2s ease; }
.gl-check input:checked + .box { background: var(--grad-brand); border-color: transparent; }
.gl-check input:checked + .box svg { opacity: 1; }
.gl-check input:checked ~ .txt { color: var(--slate-light); text-decoration: line-through; text-decoration-color: rgba(90,107,134,.35); }
.gl-check label:focus-within { outline: 3px solid rgba(79,168,212,.5); outline-offset: 2px; }

/* ---------- Interactive: tabs ---------- */
.gtabs { margin: 0 0 1.8rem; }
.gtabs .tabbar { display: flex; gap: 4px; background: var(--mist-2); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.gtabs .tabbar button {
  flex: 1;
  border: 0; background: transparent;
  font-family: var(--font); font-size: .89rem; font-weight: 700;
  color: var(--slate);
  padding: 10px 16px; border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.gtabs .tabbar button.on { background: #fff; color: var(--teal-600); box-shadow: var(--shadow-sm); }
.gtabs .tabpane { display: none; padding-top: 22px; }
.gtabs .tabpane.on { display: block; }

/* ---------- Sources ---------- */
.sources {
  margin: 54px 0 0;
  padding: 26px 28px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sources > h2 {
  font-size: 1.12rem !important;
  margin: 0 0 .5em !important;
  scroll-margin-top: 96px;
}
.sources > p { font-size: .92rem !important; color: var(--slate-light) !important; margin-bottom: 1rem !important; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sources li { margin: 0; font-size: .94rem; }
.sources li::marker { content: none; }
.sources a {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-weight: 600; border-bottom: 1px solid rgba(47, 118, 168, .3);
}
.sources a::before {
  content: "\2197";
  font-size: .8em; color: var(--slate-light);
}

/* ---------- Decision tree, readable version ----------
   The same answers as the widget above, in plain HTML so they are readable
   without JavaScript and quotable by answer engines. */
.dtree-answers { margin: 0 0 1.8rem; display: grid; gap: 10px; }
.dtree-answers .dta-intro {
  font-size: .89rem !important;
  color: var(--slate-light) !important;
  margin: 0 0 4px !important;
}
.dtree-answers details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.dtree-answers details:hover { border-color: #cfe0ef; }
.dtree-answers summary {
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 700;
  color: var(--navy-800);
  font-size: .97rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.dtree-answers summary::-webkit-details-marker { display: none; }
.dtree-answers summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(45deg);
  transition: transform .25s var(--ease-out);
  flex: 0 0 auto; margin-top: -4px;
}
.dtree-answers details[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.dtree-answers .faq-body { padding: 0 20px 18px; }
.dtree-answers .dt-route {
  font-size: .84rem !important;
  color: var(--slate-light) !important;
  background: var(--mist);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 0 .8rem !important;
}
.dtree-answers .dt-route strong { color: var(--slate); }

/* ---------- Then vs now cost switcher ---------- */
.cost-switch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  margin: 0 0 1.8rem;
}
.cost-switch h4 { margin: 0 0 4px; font-size: 1.1rem; }
.cost-switch .cs-sub { font-size: .9rem; color: var(--slate-light); margin-bottom: 20px; }
.cs-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cs-picker button {
  font-family: var(--font); font-size: .86rem; font-weight: 700;
  min-height: 42px;
  background: #fff; border: 1.5px solid var(--line); color: var(--slate);
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s var(--ease-out);
}
.cs-picker button:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-1px); }
.cs-picker button.on {
  background: var(--grad-brand-btn); border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(47, 118, 168, .28);
}
.cs-panels { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.cs-card {
  border-radius: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--mist);
}
.cs-card .cs-era {
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 10px;
}
.cs-card .cs-figure {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.9rem; letter-spacing: -.035em; line-height: 1.05;
  color: var(--slate); margin-bottom: 4px;
}
.cs-card .cs-time { font-size: .88rem; color: var(--slate-light); margin-bottom: 14px; }
.cs-card .cs-who { font-size: .88rem; color: var(--slate); line-height: 1.55; }
.cs-card .cs-who b { color: var(--navy-800); }
.cs-card.now {
  background: var(--grad-ink);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.cs-card.now .cs-era { color: var(--cyan-300); }
.cs-card.now .cs-figure { color: #fff; }
.cs-card.now .cs-time { color: rgba(233, 242, 250, .72); }
.cs-card.now .cs-who { color: rgba(233, 242, 250, .84); }
.cs-card.now .cs-who b { color: #fff; }
.cs-arrow {
  display: grid; place-items: center;
  color: var(--teal-600);
  font-family: var(--font-display); font-weight: 800;
  font-size: .74rem; letter-spacing: .08em;
  text-align: center;
  padding: 0 4px;
}
.cs-arrow svg { width: 26px; height: 26px; margin-bottom: 6px; }
.cs-note {
  margin-top: 18px; font-size: .9rem; line-height: 1.6;
  color: var(--slate);
  background: var(--mist); border-radius: 12px; padding: 14px 16px;
}
.cs-note b { color: var(--navy-800); }

@media (max-width: 680px) {
  .cs-panels { grid-template-columns: 1fr; }
  .cs-arrow { flex-direction: row; padding: 4px 0; }
  .cs-arrow svg { transform: rotate(90deg); margin: 0 auto; }
  .cost-switch { padding: 22px 20px; }
}

/* ---------- Guide / post index cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.guide-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.guide-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfe0ef; }
.guide-card:hover::before { transform: scaleX(1); }
.guide-card .gc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.guide-card .num {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--grad-brand-soft);
  color: var(--teal-600);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  flex: 0 0 auto;
}
.guide-card .cat {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); background: var(--mist-2);
  padding: 5px 10px; border-radius: 999px;
}
.guide-card h3 { font-size: 1.1rem; margin-bottom: .4em; }
.guide-card p { font-size: .95rem; margin: 0 0 18px; flex: 1; }
.guide-card .meta { font-size: .83rem; color: var(--slate-light); margin-bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.guide-card .go { font-weight: 700; font-size: .9rem; color: var(--teal-600); display: inline-flex; align-items: center; gap: 7px; transition: gap .2s var(--ease-out); }
.guide-card:hover .go { gap: 12px; }

.post-list { display: grid; gap: 22px; }
.post-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ef; }
.post-card .pc-date {
  font-size: .82rem; color: var(--slate-light); font-weight: 600;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.post-card .pc-date b { display: block; color: var(--teal-600); font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; }
.post-card h3 { font-size: 1.22rem; margin-bottom: .4em; }
.post-card p { font-size: .97rem; margin: 0 0 14px; }
.post-card .go { font-weight: 700; font-size: .9rem; color: var(--teal-600); }

/* ---------- Next / prev ---------- */
.guide-next {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin-top: 8px;
}
.guide-next a {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), border-color .25s ease, box-shadow .25s ease;
}
.guide-next a:hover { transform: translateY(-3px); border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.guide-next .dir { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 6px; }
.guide-next strong { display: block; color: var(--navy-800); font-family: var(--font-display); font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-toc {
    position: static;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 40px;
  }
  .guide-toc a { padding-top: 7px; padding-bottom: 7px; }
  .guide-body { max-width: none; }
  .guide-grid { grid-template-columns: 1fr; }
}
/* Data tables have nowrap numeric columns, so on a narrow screen they have to
   scroll inside their own box rather than stretching the whole page. */
@media (max-width: 760px) {
  .guide-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 680px) {
  .stat-row { grid-template-columns: 1fr; }
  .sd-out { grid-template-columns: 1fr; }
  .guide-next { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .post-card .pc-date { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
  .post-card .pc-date b { font-size: 1.2rem; }
  .slider-demo, .dtree, .gl-check { padding: 22px 20px; }
  .guide-body > h2 { margin-top: 44px; }
  .pull-quote p { font-size: 1.12rem !important; }
}
