/* ==========================================================================
   Your Rights guide page — layout + article styling
   Builds on styles.css design tokens.
   ========================================================================== */

/* ---- Hero ---- */
.guide-hero {
  background:
    radial-gradient(900px 380px at 88% -20%, var(--teal-tint), transparent 60%),
    radial-gradient(700px 360px at -5% 120%, var(--green-tint), transparent 55%),
    var(--mint);
  border-bottom: 1px solid var(--line-soft);
  padding: 46px 0 54px;
}
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--teal-dark); font-weight: 600; }
.crumbs span { margin: 0 6px; }
.guide-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 16ch; }
.guide-hero p { color: #34474e; font-size: 1.14rem; max-width: 60ch; margin-top: 16px; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.guide-hero-note { font-size: .92rem !important; color: var(--muted) !important; margin-top: 22px !important; }

/* ---- Layout: sticky TOC + article ---- */
.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 54px;
  padding-top: 56px;
  padding-bottom: 70px;
  align-items: start;
}

/* TOC */
.toc { position: sticky; top: 94px; }
.toc-inner h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.toc-inner nav { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.toc-inner nav a {
  color: var(--navy); font-weight: 600; font-size: .95rem; padding: 9px 0 9px 16px;
  margin-left: -2px; border-left: 2px solid transparent; transition: color .15s, border-color .15s;
}
.toc-inner nav a:hover, .toc-inner nav a.active { color: var(--teal); border-left-color: var(--teal); text-decoration: none; }
.toc-cta { margin-top: 26px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.toc-cta strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.02rem; }
.toc-cta p { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }

/* ---- Article ---- */
.guide-body { max-width: 760px; }
.guide-body section { padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 94px; }
.guide-body section:last-of-type { border-bottom: 0; }
.guide-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.guide-body h3 { font-size: 1.15rem; }
.guide-body p { color: #36474d; margin-bottom: 16px; }
.guide-body em { color: var(--teal-dark); font-style: normal; font-weight: 600; }
.guide-body a { font-weight: 600; }

/* Lists */
.tick-list, .steps-list { margin: 8px 0 18px; }
.tick-list li { position: relative; padding: 7px 0 7px 32px; color: #36474d; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px;
  background: var(--green-tint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 13px no-repeat,
            none;
  border-radius: 6px;
}
.tick-list li::after {
  content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.steps-list { counter-reset: gstep; padding-left: 0; }
.steps-list li { position: relative; padding: 4px 0 18px 52px; color: #36474d; }
.steps-list li::before {
  counter-increment: gstep; content: counter(gstep);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--teal-tint); color: var(--teal-dark); font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
}

/* Split can/can't */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.split-col { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line-soft); background: var(--white); box-shadow: var(--shadow-sm); }
.split-col.can { background: var(--green-tint); border-color: #cdebdc; }
.split-col.cant { background: #fdf1ee; border-color: #f6d8d0; }
.split-col h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.split-col .tag { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fff; color: var(--green); }
.split-col .tag.warn { color: var(--red-soft); }
.split-col ul li { position: relative; padding: 8px 0 8px 24px; color: #36474d; font-size: .98rem; border-bottom: 1px dashed rgba(18,48,58,.1); }
.split-col ul li:last-child { border-bottom: 0; }
.split-col ul li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; }
.split-col.can ul li::before { background: var(--green); }
.split-col.cant ul li::before { background: var(--red-soft); }

/* Callouts */
.callout { display: flex; gap: 16px; border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; align-items: flex-start; }
.callout p { margin: 0; color: #2c4148; }
.callout-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; }
.callout-ico svg { width: 22px; height: 22px; }
.callout--info { background: var(--teal-tint); border: 1px solid #cfe7e8; }
.callout--info .callout-ico { background: #fff; color: var(--teal-dark); }
.callout--tip { background: #fff7e9; border: 1px solid #f5e2bd; }
.callout--tip .callout-ico { background: #fff; color: #c8881a; }

.muted-note { color: var(--muted) !important; font-size: .92rem; }

/* Inline CTA inside article */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(150deg, var(--teal-dark), var(--teal)); color: #eafafa;
  border-radius: var(--radius); padding: 28px 30px; margin: 28px 0 6px; box-shadow: var(--shadow);
}
.inline-cta h3 { color: #fff; font-size: 1.25rem; }
.inline-cta p { color: #d2eeed; margin: 6px 0 0; }

/* Signpost */
.signpost { background: var(--mint); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); font-size: .95rem; margin-top: 10px; }
.signpost strong { color: var(--navy); }

/* Responsive */
@media (max-width: 920px) {
  .guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .toc-inner nav { flex-flow: row wrap; border-left: 0; gap: 4px 8px; }
  .toc-inner nav a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; margin: 0; font-size: .88rem; }
  .toc-inner nav a:hover, .toc-inner nav a.active { border-color: var(--teal); }
  .toc-cta { display: none; }
}
@media (max-width: 620px) {
  .split { grid-template-columns: 1fr; }
  .inline-cta { padding: 24px; }
}
