/* Shared styles for the practice hosting guides (/for-practices/guides/*).
   Matches the live marketing design: Hanken Grotesk, cool neutrals, one red,
   floating pill nav and an ink footer. */
:root {
  --red: #CC0000;
  --red-hover: #a80000;
  --mint: #fdf0f0;
  --cream: #f6f7f9;
  --card: #ffffff;
  --charcoal: #14161a;
  --ink-2: #3b3f46;
  --muted: #5d626b;
  --border: #e3e6eb;
  --good: #1a7a44;
  --good-bg: #e6f7ee;
  --good-line: #a3dfbe;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20,22,26,.05), 0 12px 32px -12px rgba(20,22,26,.12);
  --shadow-lg: 0 2px 6px rgba(20,22,26,.06), 0 30px 70px -20px rgba(20,22,26,.25);
  --font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--cream); color: var(--charcoal); -webkit-font-smoothing: antialiased; line-height: 1.6; }
::selection { background: var(--red); color: #fff; }
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--red); color: #fff; padding: 8px; text-decoration: none; z-index: 1100; }
.skip-link:focus { top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Nav ── */
nav#main-nav {
  position: sticky; top: .75rem; z-index: 200;
  width: calc(100% - 2.5rem); max-width: 1240px; height: 64px; margin: .75rem auto 0; padding: 0 .6rem 0 1.1rem;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; display: flex; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { color: var(--charcoal); font-weight: 700; font-size: 1.15rem; letter-spacing: -.025em; }
.nav-links { display: flex; justify-content: center; gap: .25rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .875rem; font-weight: 500; padding: .5rem .8rem; border-radius: 999px; }
.nav-links a:hover, .nav-links a.active { background: var(--cream); color: var(--charcoal); }
.nav-cta { display: flex; align-items: center; gap: .5rem; }
.btn-ghost { color: var(--ink-2); text-decoration: none; font-size: .875rem; font-weight: 500; padding: .5rem 1rem; border-radius: 999px; }
.btn-ghost:hover { background: var(--cream); color: var(--charcoal); }
.btn-primary { background: var(--red); color: #fff; text-decoration: none; font-size: .875rem; font-weight: 600; padding: .6rem 1.15rem; border-radius: 999px; border: 0; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--red-hover); }
.signin-dropdown { position: relative; }
.signin-toggle { display: flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font: inherit; font-size: .875rem; font-weight: 500; color: var(--ink-2); padding: .5rem 1rem; border-radius: 999px; }
.signin-toggle:hover { background: var(--cream); }
.signin-toggle svg { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.signin-dropdown.open .signin-toggle svg { transform: rotate(180deg); }
.signin-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; padding: .4rem;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .22s cubic-bezier(.22,1,.36,1), transform .22s cubic-bezier(.22,1,.36,1);
}
.signin-dropdown.open .signin-menu { opacity: 1; pointer-events: auto; transform: none; }
.signin-option { display: block; padding: .7rem .9rem; text-decoration: none; border-radius: 10px; }
.signin-option:hover { background: var(--mint); }
.signin-option-label { font-size: .875rem; font-weight: 600; color: var(--charcoal); }
.signin-option-sub { font-size: .77rem; color: var(--muted); margin-top: 2px; }
.signin-divider { height: 1px; background: var(--border); margin: .3rem .9rem; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 999px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; }
.mobile-nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 198; }
.mobile-nav-backdrop.open { display: block; }
.mobile-nav-drawer {
  display: none; position: fixed; top: 84px; left: .75rem; right: .75rem; z-index: 199; flex-direction: column;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer > a { display: block; padding: .85rem 0; text-decoration: none; color: var(--charcoal); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav-drawer .m-cta { margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.mobile-nav-drawer .m-cta a { display: block; text-align: center; padding: .7rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.mobile-nav-drawer .m-cta a.m-signin { color: var(--charcoal); background: rgba(0,0,0,.05); }

/* ── Page frame ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); margin: 2.75rem 0 1.25rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--charcoal); text-decoration: underline; }
.eyebrow { display: inline-flex; padding: .35rem .85rem; border-radius: 999px; background: var(--mint); color: var(--red-hover); font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
h1.page-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; max-width: 18ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin-top: 1rem; line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: .875rem; color: var(--muted); }
.meta-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--card); border: 1px solid var(--border); color: var(--charcoal); font: inherit; font-size: .85rem; font-weight: 600; padding: .5rem .95rem; border-radius: 999px; cursor: pointer; }
.meta-btn:hover { border-color: var(--ink-2); }

/* ── Hub ── */
.hub-head { padding-bottom: 2.5rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; padding-bottom: 4rem; }
.guide-card {
  position: relative; display: flex; flex-direction: column; gap: .6rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.5rem;
  text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s;
}
a.guide-card:hover { box-shadow: var(--shadow); border-color: #d3d6dc; }
.gc-head { display: flex; align-items: center; gap: .6rem; }
.gc-head svg { flex-shrink: 0; color: var(--red); }
.guide-card h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; }
.guide-card p { font-size: .92rem; color: var(--muted); flex: 1; }
.guide-card .gc-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.guide-card .gc-go { color: var(--red); font-weight: 600; }
.guide-card.soon { background: transparent; border-style: dashed; }
.guide-card.soon .gc-head svg { color: var(--muted); }
.tag { display: inline-flex; padding: .2rem .6rem; border-radius: 999px; background: #eef0f3; color: var(--muted); font-size: .75rem; font-weight: 600; }

/* ── Article ── */
.article-head { padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-bottom: 4rem; }
.toc { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: .1rem; }
.toc-label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.toc a { font-size: .875rem; color: var(--ink-2); text-decoration: none; padding: .4rem .7rem; border-radius: 10px; border-left: 2px solid transparent; }
.toc a:hover { background: var(--card); color: var(--charcoal); }
.toc a.active { border-left-color: var(--red); color: var(--charcoal); font-weight: 600; background: var(--card); border-radius: 0 10px 10px 0; }
.prose { max-width: 68ch; }
.prose > section { scroll-margin-top: 6.5rem; margin-bottom: 3rem; }
.prose h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin-bottom: .4rem; }
.prose .when { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-2); }
.prose a { color: var(--red); font-weight: 600; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--charcoal); }

/* Written articles: subheads, lists, pull quotes, a summary box up top */
.prose h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; margin: 1.75rem 0 .5rem; }
.prose ul:not(.checklist), .prose ol { margin: 0 0 1rem 1.25rem; color: var(--ink-2); }
.prose ul:not(.checklist) li, .prose ol li { margin-bottom: .45rem; padding-left: .2rem; }
.prose ol li::marker { color: var(--red); font-weight: 600; }
.prose blockquote { margin: 1.75rem 0; padding: 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 1.2rem; line-height: 1.5; letter-spacing: -.01em; color: var(--charcoal); }
.prose blockquote cite { display: block; margin-top: .6rem; font-size: .875rem; font-style: normal; color: var(--muted); }
.prose figure { margin: 1.75rem 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.takeaways { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.takeaways .callout-title { font-size: .9rem; margin-bottom: .5rem; }
.prose .takeaways ul { margin-bottom: 0; }

.checklist { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; }
.checklist li + li { border-top: 1px solid var(--border); }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: .85rem; padding: 1rem 1.15rem; cursor: pointer; }
.checklist label:hover { background: #fafbfc; }
.checklist input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid #c4c8cf; border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-content: center; }
.checklist input::after { content: ''; width: 11px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--red); border-color: var(--red); }
.checklist input:checked::after { opacity: 1; }
.checklist input:focus-visible { outline-offset: 2px; }
.ci-title { font-weight: 600; color: var(--charcoal); display: block; }
.ci-detail { font-size: .9rem; color: var(--muted); display: block; margin-top: .15rem; }
.checklist input:checked + span .ci-title { color: var(--muted); text-decoration: line-through; text-decoration-color: #b8bcc3; }

.progress { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted); }
.progress-bar { width: 120px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }

.callout { background: var(--mint); border: 1px solid #f3d6d6; border-radius: var(--r-sm); padding: 1rem 1.15rem; margin: 1.25rem 0; font-size: .95rem; color: var(--ink-2); }
.callout.tip { border-left-color: var(--good); background: var(--good-bg); border-color: var(--good-line); }
.callout-title { font-weight: 600; color: var(--charcoal); display: block; margin-bottom: .2rem; }
.script { font-style: italic; color: var(--charcoal); }

/* ── Next / related ── */
.next-guide { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.25rem 1.5rem; text-decoration: none; color: inherit; margin-top: 1rem; }
.next-guide:hover { box-shadow: var(--shadow); }
.next-guide small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
.next-guide strong { font-size: 1.05rem; font-weight: 600; }
.next-guide .arrow { color: var(--red); font-size: 1.3rem; }

.cta-panel { background: #14161a; color: #fff; border-radius: var(--r-lg); padding: clamp(2.25rem, 5vw, 3.5rem); margin: 0 clamp(.75rem, 2vw, 1.25rem) 1.5rem; text-align: center; }
.cta-panel h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.cta-panel p { color: #c3c7ce; margin: .75rem auto 1.5rem; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.cta-panel .btn-primary { font-size: 1rem; padding: .85rem 1.6rem; }
.btn-outline-white { color: #fff; border: 1px solid rgba(255,255,255,.45); text-decoration: none; font-weight: 600; padding: .85rem 1.6rem; border-radius: 999px; }
.btn-outline-white:hover { border-color: #fff; }

/* ── Footer ── */
footer { background: #14161a; color: #c3c7ce; padding: 3.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo-text { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -.02em; text-decoration: none; }
.footer-brand p { margin-top: .75rem; font-size: .85rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col a { display: block; text-decoration: none; color: #c3c7ce; font-size: .85rem; margin-bottom: .6rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: .8rem; color: #a9adb5; }
.footer-bottom a { color: inherit; text-decoration: none; }

@media (max-width: 900px) {
  nav#main-nav { width: calc(100% - 1.5rem); padding: 0 .4rem 0 .9rem; grid-template-columns: auto 1fr; }
  nav#main-nav .nav-links, nav#main-nav .nav-cta { display: none; }
  .nav-burger { display: flex; justify-self: end; }
  .article { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
  .checklist label { padding: .9rem 1rem; }
}

/* Print the checklist as a clean handout */
@media print {
  nav#main-nav, .mobile-nav-drawer, .mobile-nav-backdrop, .toc, .crumbs, .meta, .next-guide, .cta-panel, footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .wrap { padding: 0; }
  .article { display: block; }
  .article-head { padding-bottom: 1rem; margin-bottom: 1rem; }
  h1.page-title { font-size: 22pt; max-width: none; }
  .prose { max-width: none; }
  .prose > section { margin-bottom: 1.25rem; break-inside: avoid-page; }
  .checklist { border-color: #999; break-inside: auto; }
  .checklist li { break-inside: avoid; }
  .checklist label { padding: .45rem .7rem; }
  .checklist input { border-color: #555; }
  .checklist input:checked { background: #fff; border-color: #555; }
  .checklist input:checked::after { border-color: #000; }
  .callout, .takeaways, .prose blockquote { break-inside: avoid; }
}
