/* Pulse website: Terms + Privacy. Loaded after site.css + pages.css on /terms and /privacy only.
   Long-form reading: a calm measure, numbered sections, a sticky contents list on desktop,
   and a few handwritten margin notes (decorative, aria-hidden, hidden on narrow screens). */

.lg-head { padding-bottom: clamp(16px, 3vw, 28px); }
.lg-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(24px, 4vw, 56px); align-items: end; }
.lg-head .page-title { font-size: clamp(2.2rem, 5.4vw, 4rem); }
.lg-head .page-lede { max-width: 36em; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-size: .92rem; color: var(--text-2); }
.lg-meta time { color: var(--text); font-weight: 700; }
.lg-meta a { color: var(--sky); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(76, 201, 255, .35); text-underline-offset: 4px; }
.lg-meta a:hover { text-decoration-color: var(--sky); }
.lg-mascot { position: relative; display: flex; flex-direction: column; align-items: center; padding-right: 8px; }
.lg-blip { width: 112px; }
.lg-blip .blip { width: 112px; height: auto; }
.lg-mascot .hand-note { margin-top: 4px; font-size: 21px; rotate: -4deg; }

/* TL;DR card */
.lg-tldr { position: relative; margin: clamp(20px, 3vw, 32px) 0 clamp(36px, 5vw, 56px); padding: 26px clamp(20px, 3vw, 32px) 22px; border-radius: 6px 22px 22px 22px; background: linear-gradient(180deg, rgba(61, 245, 176, .06), transparent 70%), var(--ink-850); border: 1px solid rgba(61, 245, 176, .22); box-shadow: var(--shadow-site); }
.lg-tldr .tape { top: -11px; left: 30px; }
.lg-tldr h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -.02em; }
.lg-tldr h2 .sticker { font-size: 13px; }
.lg-tldr ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.lg-tldr li { position: relative; padding-left: 30px; color: var(--text); line-height: 1.55; }
.lg-tldr li::before { content: ''; position: absolute; left: 2px; top: .25em; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 245, 176, .14); }
.lg-tldr li::after { content: ''; position: absolute; left: 8px; top: calc(.25em + 4px); width: 5px; height: 9px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lg-tldr li b { color: var(--text); }
.lg-tldr-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--text-2); font-size: .92rem; }

/* layout: contents + document */
.lg-body { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 110px); }
.lg-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.lg-toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 6px 0 10px; }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-2) var(--ease-out); }
.lg-toc details[open] summary svg { transform: rotate(180deg); }
.lg-toc ol { list-style: none; margin: 0; padding: 0 0 0 2px; display: grid; gap: 2px; border-left: 1px solid var(--line); counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { position: relative; display: flex; gap: 10px; padding: 6px 10px 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: .9rem; line-height: 1.35; border-radius: 0 8px 8px 0; transition: color var(--dur-1), background var(--dur-1), border-color var(--dur-1); }
.lg-toc a::before { content: counter(toc); flex: none; min-width: 1.3em; font: 600 .78rem/1.6 var(--font-mono); color: var(--text-3); }
.lg-toc a:hover { color: var(--text); background: rgba(160, 170, 255, .05); }
.lg-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--mint); background: rgba(61, 245, 176, .06); }
.lg-toc a[aria-current="true"]::before { color: var(--mint); }
@media (min-width: 961px) { .lg-toc summary { cursor: default; pointer-events: none; } .lg-toc summary svg { display: none; } }

.lg-doc { min-width: 0; }
.lg-sec { position: relative; padding: 8px 0 34px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.lg-sec + .lg-sec { border-top: 1px solid var(--line); padding-top: 30px; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -.025em; line-height: 1.2; }
.lg-n { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .3); font: 700 .95rem var(--font-mono); color: var(--violet-2); translate: 0 -2px; }
.lg-anchor { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text-3); text-decoration: none; font: 600 1rem var(--font-mono); opacity: .55; transition: opacity var(--dur-1), color var(--dur-1), background var(--dur-1); }
.lg-sec:hover .lg-anchor, .lg-anchor:focus-visible { opacity: 1; }
.lg-anchor:hover { color: var(--mint); background: rgba(61, 245, 176, .08); }
.lg-sec h3 { margin: 24px 0 8px; font-size: 1.04rem; font-weight: 800; color: var(--text); }
.lg-sec p, .lg-sec li { color: var(--text-2); line-height: 1.72; font-size: 1rem; }
.lg-sec p { margin-top: 12px; max-width: 68ch; }
.lg-sec strong, .lg-sec b { color: var(--text); }
.lg-sec ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 68ch; }
.lg-sec li::marker { color: var(--mint); }
.lg-sec code, .lg-tldr code { font: 500 .9em var(--font-mono); color: var(--mint); background: rgba(61, 245, 176, .08); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.lg-sec .link { font-weight: 700; }
.lg-fill { padding: 0 4px; border-radius: 4px; background: rgba(255, 210, 122, .14); color: var(--hand-ink); font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* data inventory: compact cards */
.lg-data { list-style: none; margin: 16px 0 0 !important; padding: 0 !important; display: grid; gap: 10px; max-width: none !important; }
.lg-data li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.lg-data li::marker { content: ''; }
.lg-data .lg-ic { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--c, var(--violet-2)) 14%, transparent); color: var(--c, var(--violet-2)); }
.lg-data .lg-ic .hi { width: 18px; height: 18px; }
.lg-data b { font-size: .98rem; }
.lg-data span:not(.lg-ic) { color: var(--text-2); font-size: .94rem; line-height: 1.6; }
.lg-data .is-content { --c: var(--amber); }

/* yes / no columns */
.lg-never { list-style: none; margin: 14px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; max-width: none !important; }
.lg-never li { position: relative; padding-left: 28px; }
.lg-never li::before, .lg-never li::after { content: ''; position: absolute; left: 5px; top: .8em; width: 13px; height: 2.2px; border-radius: 2px; background: var(--ember); }
.lg-never li::before { transform: rotate(45deg); } .lg-never li::after { transform: rotate(-45deg); }

/* callouts */
.lg-callout { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(76, 201, 255, .3); background: rgba(76, 201, 255, .06); }
.lg-callout p:first-child { margin-top: 0; }
.lg-callout.is-warn { border-color: rgba(255, 196, 77, .35); background: rgba(255, 196, 77, .06); }

/* two ways to delete */
.lg-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lg-way { position: relative; padding: 18px 18px 16px; border-radius: 16px; background: var(--ink-850); border: 1px solid var(--line-strong); box-shadow: var(--shadow-site); }
.lg-way h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.lg-way h3 .lg-way-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-signal); color: #0a0c18; font: 800 .82rem var(--font-body); }
.lg-way ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 4px; }
.lg-way li { font-size: .95rem; }
.lg-way .btn { margin-top: 14px; }

/* retention table */
.lg-table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: .94rem; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.lg-table th { color: var(--text); font-weight: 700; width: 38%; }
.lg-table td { color: var(--text-2); }
.lg-table thead th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }

/* handwritten margin notes (wide screens only) */
.lg-note { position: absolute; left: calc(100% + 36px); top: 70px; width: 190px; font-size: 21px; rotate: var(--tilt, -3deg); pointer-events: none; }
.lg-note .hand-arrow { width: 44px; height: 32px; }

.lg-end { margin-top: 12px; padding: 22px; border-radius: 18px; text-align: center; border: 1px dashed var(--line-strong); color: var(--text-2); }
.lg-end p { margin: 0 auto; max-width: 44ch; }
.lg-end .lg-end-blip { display: inline-block; width: 64px; margin-bottom: 6px; }

@media (max-width: 1279px) { .lg-note { display: none; } }
@media (max-width: 960px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lg-toc { position: static; max-height: none; overflow: visible; padding: 4px 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(19, 23, 41, .6); }
  .lg-toc summary { min-height: 44px; padding: 0; }
  .lg-toc ol { margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .lg-tldr ul, .lg-never, .lg-ways { grid-template-columns: minmax(0, 1fr); }
  .lg-head-grid { grid-template-columns: minmax(0, 1fr); }
  .lg-mascot { position: absolute; right: var(--gutter); top: 18px; padding: 0; }
  .lg-mascot .hand-note { display: none; }
  .lg-blip, .lg-blip .blip { width: 70px; }
  .lg-head .page-title, .lg-head .eyebrow { padding-right: 78px; }
  .lg-table th { width: auto; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; }
  .lg-table thead { display: none; }
  .lg-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .lg-table th, .lg-table td { padding: 2px 0; border: 0; }
  .lg-sec code { white-space: normal; }
}
@media print {
  .nav, .footer, .lg-toc, .lg-mascot, .lg-note, .lg-anchor { display: none !important; }
  .lg-body { display: block; }
  body { background: #fff; color: #000; }
}
