/* CalmaLink · guide page styles (gd- prefix). Only needed if the site's guide template does not already cover these blocks:
   the 30-second summary, the settled / pre-settled comparison, the tip, the closing call to action and the questions. */
.gd { --gd-navy: #16354B; --gd-teal: #167E79; --gd-amber: #f2c35a; --gd-muted: #4b5d72; --gd-line: #dbe5ee; --gd-paper: #f6f9fb; --gd-mintbg: #e8f5ef;
  color: var(--gd-navy); max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 20px clamp(48px, 7vw, 80px); }
.gd, .gd *, .gd *::before, .gd *::after { box-sizing: border-box; }
.gd p { margin: 0; }
.gd h1, .gd h2, .gd h3 { margin: 0; text-wrap: balance; }
.gd-hero { display: grid; gap: 12px; max-width: 820px; margin: 0 auto clamp(26px, 4vw, 44px); text-align: center; justify-items: center; }
.gd-crumb { font-size: .82rem; color: var(--gd-muted); }
.gd-crumb a { color: inherit; }
.gd-eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gd-teal); }
.gd-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; }
.gd-lead { color: var(--gd-muted); font-size: 1.1rem; max-width: 62ch; }
.gd-meta { font-size: .82rem; color: var(--gd-muted); }
.gd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gd-toc { position: sticky; top: calc(var(--gd-top, 0px) + 24px); border: 1px solid var(--gd-line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; font-size: .9rem; }
.gd-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--gd-muted); }
.gd-toc a { color: inherit; text-decoration: none; }
.gd-toc a:hover { color: var(--gd-teal); }
.gd-tocbtn { margin-top: 6px; color: var(--gd-teal) !important; font-weight: 800; }
.gd-body { display: grid; gap: 34px; max-width: 760px; font-size: 1.05rem; line-height: 1.7; color: #24384d; }
.gd-body section { display: grid; gap: 12px; scroll-margin-top: calc(var(--gd-top, 0px) + 20px); }
.gd-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; font-weight: 800; color: var(--gd-navy); }
.gd-body h3 { font-size: 1.15rem; font-weight: 800; color: var(--gd-navy); margin-top: 6px; }
.gd-body ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.gd-body a { color: var(--gd-teal); font-weight: 700; }
.gd-sum { border-radius: 20px; padding: 22px 24px; background: linear-gradient(160deg, #eef8f3, #eef4fb); border: 1px solid #cfe6dc; }
.gd-sum ul { list-style: none; padding: 0; gap: 10px; }
.gd-sum li { position: relative; padding-left: 32px; }
.gd-sum li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gd-teal); color: #fff; font-size: .75rem; font-weight: 800; }
.gd-compare { border: 1px solid var(--gd-line); border-radius: 18px; overflow: hidden; font-size: .96rem; }
.gd-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); }
.gd-row > span { padding: 14px 16px; border-top: 1px solid var(--gd-line); }
.gd-row > span + span { border-left: 1px solid var(--gd-line); }
.gd-th > span { border-top: 0; background: #102F48; color: #fff; font-weight: 800; }
.gd-row [role="rowheader"] { font-weight: 700; background: var(--gd-paper); }
.gd-row .ok { color: #0f5c47; font-weight: 800; }
.gd-row .ok::before { content: "✓ "; }
.gd-row .mid { color: #8a5a00; font-weight: 800; }
.gd-row .mid::before { content: "◐ "; }
.gd-tip { border-left: 4px solid var(--gd-amber); background: #fff8e6; padding: 14px 18px; border-radius: 0 14px 14px 0; }
.gd-body details { border: 1px solid var(--gd-line); border-radius: 14px; padding: 0 18px; }
.gd-body details[open] { padding-bottom: 14px; }
.gd-body summary { cursor: pointer; padding: 14px 0; font-weight: 800; }
.gd-cta { border-radius: 20px; padding: 24px; background: #102F48; color: #fff; display: grid; gap: 10px; }
.gd-cta p { color: #c6d6e5; }
.gd-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.gd-btn { display: inline-flex; align-items: center; border-radius: 12px; padding: 12px 16px; font-weight: 800; text-decoration: none; }
.gd-body .gd-btn.gd-amber { background: var(--gd-amber); color: var(--gd-navy); }
.gd-body .gd-btn.gd-line { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.gd-btn:focus-visible, .gd a:focus-visible, .gd summary:focus-visible { outline: 3px solid var(--gd-amber); outline-offset: 3px; }
.gd-sources { font-size: .85rem; color: var(--gd-muted); }
.gd-sources a { font-weight: 600; }
@media (max-width: 900px) { .gd-layout { grid-template-columns: 1fr; } .gd-toc { position: static; } }
@media (max-width: 560px) { .gd-row { grid-template-columns: 1fr 1fr; } .gd-row [role="rowheader"] { grid-column: 1 / -1; } .gd-th > span:first-child { display: none; } .gd-row > span + span { border-left: 0; } .gd-row > span:last-child { border-left: 1px solid var(--gd-line); } }

/* added for the 11 new guides: numbered steps, data tables, key figures */
.gd-body ol { margin: 0; padding-left: 0; list-style: none; counter-reset: gs; display: grid; gap: 10px; }
.gd-body ol > li { counter-increment: gs; position: relative; padding-left: 42px; min-height: 28px; }
.gd-body ol > li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #102F48; color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.gd-tablebox { overflow-x: auto; border: 1px solid var(--gd-line); border-radius: 18px; }
.gd-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .95rem; }
.gd-table th, .gd-table td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--gd-line); vertical-align: top; }
.gd-table thead th { border-top: 0; background: #102F48; color: #fff; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.gd-table tbody td:first-child { font-weight: 700; background: var(--gd-paper); }
.gd-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.gd-figs div { border-radius: 16px; background: var(--gd-paper); border: 1px solid var(--gd-line); padding: 14px 16px; display: grid; gap: 2px; }
.gd-figs b { font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--gd-navy); }
.gd-figs span { font-size: .84rem; color: var(--gd-muted); }

/* v2 · motion: golden reading thread, words that arrive, blocks that appear, an index that follows you */
.gd-progress { position: fixed; left: 0; right: 0; top: var(--gd-top, 0px); z-index: 80; height: 4px; pointer-events: none; background: rgba(19, 50, 79, .06); }
.gd-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #167E79, #f2c35a); border-radius: 0 3px 3px 0; }
.gd-progress i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #f2c35a; box-shadow: 0 0 0 4px rgba(242, 195, 90, .3), 0 0 14px rgba(242, 195, 90, .8); }
.gd-hero { position: relative; isolation: isolate; overflow: hidden; }
.gd-hero::before { content: ""; position: absolute; z-index: -1; right: -6%; top: -40%; width: 46%; height: 160%; border-radius: 50%; background: radial-gradient(circle, rgba(242, 195, 90, .22), transparent 62%); animation: gd-drift 16s ease-in-out infinite alternate; pointer-events: none; }
.gd-hero::after { content: ""; position: absolute; z-index: -1; left: -10%; top: -20%; width: 40%; height: 140%; border-radius: 50%; background: radial-gradient(circle, rgba(29, 138, 108, .14), transparent 62%); animation: gd-drift 20s ease-in-out infinite alternate-reverse; pointer-events: none; }
@keyframes gd-drift { to { transform: translate(-12%, 14%) scale(1.15); } }
.gd-w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(3deg); animation: gd-word .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 50ms + .05s); }
@keyframes gd-word { to { opacity: 1; transform: none; } }
.gd-eyebrow { display: inline-block; animation: gd-pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes gd-pop { from { opacity: 0; transform: scale(.6); } }
.gd-rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.gd-rv.in { opacity: 1; transform: none; }
.gd-sum.in li::before { animation: gd-check .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.gd-sum li:nth-child(2)::before { animation-delay: .15s; } .gd-sum li:nth-child(3)::before { animation-delay: .3s; } .gd-sum li:nth-child(4)::before { animation-delay: .45s; } .gd-sum li:nth-child(5)::before { animation-delay: .6s; }
@keyframes gd-check { from { transform: scale(0) rotate(-90deg); } }
.gd-sum { position: relative; overflow: hidden; }
.gd-sum::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 195, 90, .25), transparent 65%); animation: gd-drift 12s ease-in-out infinite alternate; pointer-events: none; }
.gd-figs div { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.gd-figs div:hover { transform: translateY(-4px) rotate(-.8deg); box-shadow: 0 14px 28px rgba(11, 23, 38, .08); }
.gd-figs.in div { animation: gd-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.gd-figs.in div:nth-child(2) { animation-delay: .1s; } .gd-figs.in div:nth-child(3) { animation-delay: .2s; } .gd-figs.in div:nth-child(4) { animation-delay: .3s; }
@keyframes gd-up { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.gd-tablebox.in tbody tr, .gd-compare.in .gd-row:not(.gd-th) { animation: gd-row .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--r, 0) * 70ms + .1s); }
@keyframes gd-row { from { opacity: 0; transform: translateX(-14px); } }
.gd-table tbody tr { transition: background .25s ease; }
.gd-table tbody tr:hover td { background: #fff8e6; }
.gd-tip { position: relative; }
.gd-tip::after { content: "✦"; position: absolute; right: 14px; top: 10px; color: var(--gd-amber); font-size: 1.1rem; animation: gd-twinkle 2.4s ease-in-out infinite; }
@keyframes gd-twinkle { 50% { transform: scale(1.4) rotate(45deg); opacity: .5; } }
.gd-toc a { position: relative; transition: color .25s ease, padding .25s ease; }
.gd-toc a.on { color: var(--gd-teal); font-weight: 800; padding-left: 10px; }
.gd-toc a.on::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--gd-amber); box-shadow: 0 0 0 3px rgba(242, 195, 90, .3); }
.gd-body details { transition: box-shadow .3s ease; }
.gd-body details[open] { box-shadow: 0 10px 24px rgba(11, 23, 38, .06); }
.gd-btn.gd-amber { position: relative; overflow: hidden; isolation: isolate; }
.gd-btn.gd-amber::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-130%); animation: gd-shine 5s ease-in-out infinite; }
@keyframes gd-shine { 0%, 72% { transform: translateX(-130%); } 92%, 100% { transform: translateX(130%); } }
.gd-cta { position: relative; overflow: hidden; }
.gd-cta::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 195, 90, .25), transparent 65%); animation: gd-drift 10s ease-in-out infinite alternate; pointer-events: none; }
.gd.gd-still .gd-rv { opacity: 1; transform: none; }
.gd.gd-still *, .gd.gd-still *::before, .gd.gd-still *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .gd-rv, .gd-w { opacity: 1 !important; transform: none !important; }
  .gd *, .gd *::before, .gd *::after { animation: none !important; transition: none !important; }
}
