/* LongRangeShooting.org — learning-wiki theme.
   Same family as LongRangeShootingBooks.com: night header, warm paper, Montserrat + Open Sans,
   pill buttons. .org leads with lime/moss where the books site leads with orange. */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-var-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --lime: #9ab922; --lime-hi: #b4d13a; --moss: #768932; --moss-ink: #4b5a14;
  --orange: #fa9620; --orange-ink: #9a5200;
  --night: #2b2a23; --night-2: #34332a; --night-3: #42402f;
  --ink: #23221c; --muted: #5d5a4e; --paper: #f7f5ef; --paper-2: #efece2; --card: #fff; --line: #e1ddd0;
  --link: #4b5a14;
  --radius: 12px; --shadow: 0 1px 2px rgb(35 34 28 / .06), 0 10px 28px rgb(35 34 28 / .08);
  --head: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 78rem; --read: 44rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--body); color: var(--ink); background: var(--paper); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ink); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .55em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.4em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1.05em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap-read { width: min(100% - 2rem, var(--read)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }
.eyebrow { font: 700 .74rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin: 0 0 .5rem; }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.25rem;
  font: 700 .98rem/1.2 var(--head); color: var(--night); background: var(--lime); border: 2px solid var(--lime); border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.button:hover { background: var(--lime-hi); border-color: var(--lime-hi); color: var(--night); }
.button-small { min-height: 2.35rem; padding: .4rem 1rem; font-size: .9rem; }
.button-ghost { background: transparent; color: inherit; border-color: currentColor; }
.button-ghost:hover { background: rgb(255 255 255 / .1); color: inherit; border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 3px solid var(--lime); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; flex: none; }
.brand:hover { color: #fff; }
.mark { width: 2.4rem; height: 2.4rem; flex: none; color: #fff; }
.wordmark { font-family: var(--head); line-height: 1; color: #fff; }
.wm-a { font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.wm-a b { font-weight: 800; }
.wm-a i, .wm-b i, .wm-c i { font-style: normal; color: var(--lime); }
.wm-b { display: grid; gap: .2rem; }
.wm-b b { font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; }
.wm-b > span { font-weight: 600; font-size: .7rem; letter-spacing: .32em; color: #d9d5c6; }
.wm-c { display: grid; gap: .25rem; }
.wm-c b { font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; }
.wm-c > span { font: 500 .7rem/1 var(--body); color: #cfcab9; letter-spacing: .02em; }
.site-search { position: relative; flex: 1 1 18rem; max-width: 26rem; margin-left: .5rem; }
.site-search input { width: 100%; height: 2.5rem; padding: 0 2.2rem 0 2.4rem; border-radius: 999px; border: 1px solid var(--night-3);
  background: var(--night-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23cfcab9' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat .9rem 50%;
  color: #fff; font: 400 .95rem var(--body); }
.site-search input::placeholder { color: #b9b4a3; }
.site-search input:focus { outline: none; border-color: var(--lime); background-color: #3a3930; }
.site-search kbd { position: absolute; right: .7rem; top: 50%; translate: 0 -50%; font: 600 .7rem var(--head); color: #b9b4a3; border: 1px solid #5c5a49; border-radius: 4px; padding: .05rem .35rem; }
.site-nav { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.nav-list { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-top { display: flex; align-items: center; gap: .35rem; min-height: 2.6rem; padding: .3rem .7rem; color: #f2efe4; background: none; border: 0;
  border-radius: 8px; font: 650 .92rem/1 var(--head); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-top:hover, .has-menu:focus-within > .nav-top { background: var(--night-2); color: #fff; }
.nav-top[aria-current] { color: var(--lime); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 8px 8px 0 0; }
.menu { position: absolute; top: 100%; left: 0; min-width: 15rem; list-style: none; margin: 0; padding: .45rem; background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; translate: 0 6px; transition: .15s; }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; translate: 0 0; }
.menu a { display: block; padding: .5rem .75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.menu a:hover { background: var(--paper-2); }
.menu-toggle { display: none; margin-left: auto; min-height: 2.5rem; padding: .3rem .9rem; color: #fff; background: var(--night-2); border: 1px solid var(--night-3);
  border-radius: 8px; font: 650 .9rem var(--head); cursor: pointer; }
.join { margin-left: .3rem; }

/* where-am-I bar */
.section-bar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.section-inner { display: flex; align-items: center; gap: 1rem; min-height: 2.75rem; flex-wrap: wrap; }
.section-label { font: 750 .78rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--moss-ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: #a5a08d; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { max-width: 28rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* search popover */
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + .4rem); z-index: 70; background: #fff; color: var(--ink); border-radius: 12px;
  box-shadow: 0 18px 50px rgb(0 0 0 / .25); padding: .4rem; max-height: 70vh; overflow: auto; text-align: left; }
.search-pop a, .results a { display: block; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-pop a:hover, .search-pop a.active { background: var(--paper-2); }
.search-pop strong, .results strong { display: block; font: 650 .98rem/1.3 var(--head); }
.search-pop span, .results span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.kind { display: inline-block; font: 700 .65rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--moss-ink);
  background: #eef3d8; border-radius: 4px; padding: .2rem .35rem; margin-right: .35rem; vertical-align: 1px; }
.search-pop .all { font-weight: 650; color: var(--link); }
mark { background: #f3f0b5; color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ---------------------------------------------------------- hero / home */
.hero { color: #fff; background: var(--night); }
.hero h1 { color: #fff; }
.hero .lede { color: #e5e1d3; font-size: 1.15rem; max-width: 42rem; }
.hero .eyebrow { color: var(--lime); }
.hero-image { background: linear-gradient(90deg, rgb(28 27 22 / .94) 0%, rgb(28 27 22 / .82) 48%, rgb(28 27 22 / .35) 100%), url("/assets/brand/hero.webp") center/cover; }
.hero-image .wrap { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-light { background: radial-gradient(ellipse at 50% 0%, #fff 0%, var(--paper) 70%); color: var(--ink); padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; }
.hero-light h1 { color: var(--ink); } .hero-light .lede { color: var(--muted); margin-inline: auto; } .hero-light .eyebrow { color: var(--moss); }
.hero-compact { padding: 2.4rem 0 2rem; background: var(--night); }
.hero-compact h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.hero-search { position: relative; display: flex; gap: .5rem; max-width: 40rem; margin-top: 1.5rem; background: #fff; padding: .4rem; border-radius: 999px; box-shadow: var(--shadow); }
.center .hero-search { margin-inline: auto; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.05rem var(--body); padding: 0 .9rem; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search.big { margin-top: 1rem; border: 1px solid var(--line); }
.chips { margin: .9rem 0 0; font-size: .9rem; color: #cfcab9; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.hero-light .chips { justify-content: center; color: var(--muted); }
.chips a { color: inherit; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: .2rem .7rem; text-decoration: none; }
.hero-light .chips a { border-color: var(--line); background: #fff; }
.chips a:hover { border-color: var(--lime); color: var(--lime); }
.hero-light .chips a:hover { color: var(--moss-ink); }
.topics { padding-top: 1rem; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.topic-card { display: grid; gap: .35rem; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--lime); color: var(--ink); }
.topic-card strong { font: 750 1.15rem/1.2 var(--head); }
.topic-card span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.topic-card em { font: 650 .8rem var(--head); color: var(--moss); font-style: normal; }
.topic-icon { font-size: 1.6rem; line-height: 1; }
.start-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: g; }
.guide-list.two-col { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
.guide-list a { display: grid; gap: .15rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.guide-list a:hover { border-color: var(--lime); box-shadow: var(--shadow); color: var(--ink); }
.guide-list strong { font: 700 1.02rem/1.3 var(--head); }
.guide-list span { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.guide-list.numbered li { counter-increment: g; }
.guide-list.numbered a { grid-template-columns: 2.2rem 1fr; column-gap: .8rem; }
.guide-list.numbered a::before { content: counter(g); grid-row: span 2; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--night); color: var(--lime); font: 800 .95rem var(--head); }
section.wrap { padding: 1.2rem 0; }
.steps { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; position: relative; }
.step-head { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); margin-bottom: .6rem; }
.step-head strong { font: 750 1.02rem/1.2 var(--head); }
.step-n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--lime); color: var(--night); font: 800 .85rem var(--head); }
.step ul { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: .92rem; display: grid; gap: .35rem; }
.step ul a { text-decoration: none; } .step ul a:hover { text-decoration: underline; }
.more { font: 650 .88rem var(--head); text-decoration: none; }
.portal { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; padding: 2rem 0; }
.index-cols { columns: 2 18rem; column-gap: 2rem; }
.index-topic { break-inside: avoid; margin-bottom: 1.4rem; }
.index-topic h3 { margin: 0 0 .4rem; font-size: 1.05rem; } .index-topic h3 a { color: var(--ink); text-decoration: none; }
.index-topic ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; line-height: 1.55; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.box h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .93rem; line-height: 1.4; }
.community-band { background: var(--moss); color: #fff; margin-top: 2.5rem; }
.community-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 2.4rem 0; flex-wrap: wrap; }
.community-band h2 { color: #fff; margin: 0 0 .4rem; } .community-band p { margin: 0; color: #eef1df; max-width: 40rem; }
.community-band .eyebrow { color: #e2f0a8; } .community-band a:not(.button) { color: #fff; }
.community-band .button { background: #fff; border-color: #fff; }
.books-band { background: var(--night); color: #e8e4d6; }
.books-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 2.4rem 0; flex-wrap: wrap; }
.books-band h2 { color: #fff; margin: 0 0 .4rem; } .books-band p { margin: 0; max-width: 40rem; } .books-band .eyebrow { color: var(--orange); }
.books-band .button-ghost { color: #fff; }

/* ---------------------------------------------------------- cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--lime); color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--paper-2); }
.card-body { display: grid; gap: .35rem; padding: .95rem 1.05rem 1.1rem; }
.card-body strong { font: 700 1rem/1.3 var(--head); }
.card-body p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.card-meta { font: 600 .76rem var(--head); color: var(--moss); }

/* ---------------------------------------------------------- documents */
.doc-grid { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr) 16rem; gap: 2.5rem; padding: 2rem 0 3rem; align-items: start; }
.doc-grid-2 { grid-template-columns: 16rem minmax(0, 1fr); }
.doc-grid .doc { max-width: var(--read); }
.wrap-read.doc { padding: 2rem 0 3rem; }
.doc-head { margin-bottom: 1.6rem; }
.doc-head h1 { margin-bottom: .4em; }
.lede { font-size: 1.18rem; color: var(--muted); line-height: 1.6; }
.doc-meta { font: 600 .82rem var(--head); color: var(--muted); margin: .4rem 0 .8rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font: 600 .82rem var(--head); }
.share > span { color: var(--muted); margin-right: .2rem; }
.share a, .share button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .75rem; text-decoration: none; color: var(--ink); font: inherit; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--moss); }
.prose { font-size: 1.07rem; }
.prose h2 { padding-top: .2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: 10px; }
.figure { margin: 1.6rem 0; }
.figure img { margin-inline: auto; border-radius: 10px; }
.figure figcaption { font-size: .88rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.figure.lead { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .82rem var(--head); background: var(--paper-2); }
blockquote { margin: 1.4rem 0; padding: .2rem 1.2rem; border-left: 4px solid var(--lime); color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.notice { background: #fff7e8; border: 1px solid #f1d6a6; border-left: 4px solid var(--orange); border-radius: 10px; padding: .85rem 1.1rem; margin: 0 0 1.4rem; font-size: .93rem; }
.notice p:last-child { margin: 0; }
.callout { background: #f3f7e3; border: 1px solid #dbe6b5; border-radius: 10px; padding: .85rem 1.1rem; margin: 1.2rem 0; }
.callout p:last-child { margin: 0; } .callout-title { font: 700 .95rem var(--head); }
.quick-answer, .takeaways { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
.quick-answer p:last-child, .takeaways ul { margin: 0; }
.video { position: relative; margin: 1.5rem 0; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-play { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #111; width: 100%; height: 100%; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-plain { display: grid; place-items: center; color: #fff; font: 700 1rem var(--head); gap: .5rem; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: rgb(0 0 0 / .65); border: 3px solid #fff; }
.play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border: .8rem solid transparent; border-left: 1.25rem solid #fff; border-right: 0; }
.video-fallback { position: absolute; right: .6rem; bottom: .5rem; font-size: .78rem; color: #fff; background: rgb(0 0 0 / .55); padding: .15rem .5rem; border-radius: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .6rem; }
.gallery figure { margin: 0; } .gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; width: 100%; }
.side-left, .side-right { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow: auto; font-size: .9rem; }
.topic-nav details { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.topic-nav summary { cursor: pointer; font: 700 .9rem var(--head); padding: .35rem 0; list-style: none; }
.topic-nav summary::-webkit-details-marker { display: none; }
.topic-nav summary::after { content: "+"; float: right; color: var(--muted); }
.topic-nav details[open] summary::after { content: "–"; }
.topic-nav ul { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .1rem; }
.topic-nav ul a { display: block; padding: .3rem .55rem; border-radius: 6px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.topic-nav ul a:hover { background: var(--paper-2); color: var(--ink); }
.topic-nav a[aria-current] { background: #eef3d8; color: var(--moss-ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--lime); }
.topic-nav > .more { display: block; margin-top: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .25rem 0 .25rem .8rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc li a:hover, .toc li a.active { color: var(--ink); border-left-color: var(--lime); }
.toc .toc-3 a { padding-left: 1.6rem; font-size: .85rem; }
.toc-inline { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1.6rem; }
.resource { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; margin: 1.4rem 0; font-size: .9rem; }
.resource h3 { font-size: 1rem; margin: 0 0 .35rem; } .resource p { margin: 0 0 .5rem; color: var(--muted); }
.resource-links { display: flex; gap: .4rem; font-weight: 650; } .resource-links span { color: #a5a08d; }
.resource .eyebrow { color: var(--orange-ink); }
.community { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: 10px; padding: 1rem 1.2rem; margin: 2rem 0; display: grid; gap: .4rem; justify-items: start; }
.community p { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.pager a { display: grid; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); font: 700 .98rem/1.3 var(--head); }
.pager a:hover { border-color: var(--lime); }
.pager span { font: 650 .75rem var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pager .next { text-align: right; grid-column: 2; }
.related { margin-top: 2.5rem; }
.v-b .pager a { padding: 1.3rem; font-size: 1.05rem; }

/* hubs, filters, directory */
.hub { padding: 2rem 0 3rem; }
.hub-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.hub-icon { font-size: 2.4rem; line-height: 1; padding-top: .3rem; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 2rem; align-items: start; }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin: 0 0 1.2rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .85rem; font: 650 .85rem var(--head); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.filter input { height: 2.6rem; min-width: min(20rem, 100%); border: 1px solid var(--line); border-radius: 999px; padding: 0 1rem; font: 400 .95rem var(--body); background: #fff; }
.filter { display: block; margin: 0 0 1rem; }
.toolbar .filter { margin: 0; }
.az { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .5rem 1.5rem; }
.az li { display: grid; gap: .1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.az a { font: 700 .98rem/1.3 var(--head); text-decoration: none; }
.az span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
[hidden], .is-hidden { display: none !important; }
.directory td:first-child a { font-weight: 650; }
.badge { display: inline-block; font: 700 .65rem var(--head); letter-spacing: .05em; text-transform: uppercase; border-radius: 4px; padding: .15rem .4rem; vertical-align: 2px; }
.badge-warn { background: #fff2d9; color: var(--orange-ink); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font: 650 .8rem var(--head); background: #eef3d8; color: var(--moss-ink); border-radius: 999px; padding: .2rem .65rem; }
.results { margin-top: 1rem; display: grid; gap: .3rem; }
.results a { background: #fff; border: 1px solid var(--line); }

/* newsletter + footer */
.newsletter { display: grid; gap: .5rem; }
.newsletter-title { font: 700 .95rem var(--head); margin: 0; }
.newsletter-row { display: flex; gap: .4rem; }
.newsletter input[type=email] { flex: 1; min-width: 0; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); padding: 0 1rem; font: 400 .95rem var(--body); }
.consent { font-size: .78rem; display: flex; gap: .4rem; align-items: flex-start; }
.site-footer { background: var(--night); color: #d9d5c6; margin-top: 3rem; border-top: 3px solid var(--lime); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding: 2.8rem 0 2rem; }
.site-footer a { color: #f2efe4; text-decoration: none; } .site-footer a:hover { color: var(--lime); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-h { font: 750 .78rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: .8rem; }
.footer-about p { color: #b9b4a3; }
.footer-about .newsletter-title { color: #fff; }
.footer-about .consent { color: #b9b4a3; }
.footer-about .consent a { text-decoration: underline; }
.footer-small { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--night-3); padding: 1rem 0 1.6rem; font-size: .82rem; color: #9f9a88; }
.footer-small p { margin: 0; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 75rem) {
  .doc-grid { grid-template-columns: 14rem minmax(0, 1fr); }
  .doc-grid .side-right { display: none; }
}
@media (max-width: 80rem) {
  .header-inner { flex-wrap: wrap; padding: .5rem 0; gap: .6rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .site-search kbd { display: none; }
  .site-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: .4rem 0 .8rem; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .menu { position: static; opacity: 1; visibility: visible; translate: none; box-shadow: none; background: var(--night-2); display: none; margin: .2rem 0 .4rem; }
  .has-menu.open .menu { display: block; }
  .menu a { color: #f2efe4; } .menu a:hover { background: var(--night-3); }
  .join { align-self: flex-start; margin: .4rem 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .crumbs { display: none; }
  .hero-search { border-radius: 14px; flex-wrap: wrap; }
  .hero-search input { height: 2.8rem; flex-basis: 100%; }
  .hero-search .button { width: 100%; }
  .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .guide-list.two-col { grid-template-columns: 1fr; }
  .az { grid-template-columns: 1fr; }
  .wm-c > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* fixes after first review */
.search-pop .kind, .results .kind { display: inline-block; }
.site-search { flex: 0 1 15rem; min-width: 10rem; }
.nav-top { padding: .3rem .6rem; }
.notice { font-size: .88rem; }
@media (max-width: 75rem) { .site-search kbd { display: none; } .nav-top { font-size: .88rem; padding: .3rem .45rem; } }
@media (max-width: 62rem) { .site-search { flex-basis: 100%; } }
@media (max-width: 40rem) {
  .mark { width: 2rem; height: 2rem; }
  .wm-a { font-size: 1rem; } .wm-b b { font-size: .92rem; } .wm-c b { font-size: 1rem; }
  .menu-toggle { padding: .3rem .7rem; }
}

/* icons + solid library hero (v2) */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.section-label { display: inline-flex; align-items: center; gap: .4rem; }
.section-label .icon { width: 1rem; height: 1rem; color: var(--moss); }
.topic-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: #eef3d8; color: var(--moss-ink); }
.topic-icon .icon { width: 1.4rem; height: 1.4rem; }
.step .topic-icon { width: 2.1rem; height: 2.1rem; } .step .topic-icon .icon { width: 1.15rem; height: 1.15rem; }
.topic-nav summary { display: flex; align-items: center; gap: .45rem; }
.topic-nav summary .icon { width: 1.05rem; height: 1.05rem; color: var(--moss); }
.topic-nav summary::after { margin-left: auto; }
h2 .icon, h3 .icon { color: var(--moss); margin-right: .15rem; }
.page-hero { background: var(--night); color: #fff; border-bottom: 1px solid #000; }
.page-hero-inner { display: flex; gap: 1.2rem; align-items: flex-start; padding: clamp(2rem, 4vw, 3rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lede { color: #e5e1d3; margin: 0; max-width: 46rem; }
.page-hero .doc-meta { color: var(--lime); margin: .6rem 0 0; }
.hero-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 14px; background: var(--lime); color: var(--night); flex: none; margin-top: .3rem; }
.hero-icon .icon { width: 2rem; height: 2rem; }
.page-hero + .wrap.hub { padding-top: 1.8rem; }
@media (max-width: 40rem) { .page-hero-inner { flex-direction: column; gap: .8rem; } .hero-icon { width: 3rem; height: 3rem; } }

/* supplied logo (image) */
.brand .logo { height: 30px; width: auto; display: block; }
.site-footer .brand .logo { height: 26px; }
.site-footer .brand { margin-bottom: 1rem; }
.site-search { flex: 0 1 14rem; min-width: 8rem; }
@media (max-width: 85rem) { .nav-top { padding: .3rem .45rem; font-size: .88rem; } .join { padding: .35rem .8rem; } }
@media (max-width: 62rem) { .brand .logo { height: 26px; } }
@media (max-width: 40rem) { .brand .logo { height: 21px; } }
@media (max-width: 62rem) { .site-search { flex: 1 1 100%; max-width: none; } }

/* search stands out; legal text */
.site-search { flex: 1 1 22rem; max-width: 30rem; min-width: 12rem; }
.site-search input { height: 2.6rem; background-color: #fff; border: 2px solid var(--lime); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234b5a14' stroke-width='2.2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E"); }
.site-search input::placeholder { color: #6b6858; }
.site-search input:focus { background-color: #fff; border-color: var(--lime-hi); box-shadow: 0 0 0 4px rgb(154 185 34 / .35); }
.site-search kbd { color: #6b6858; border-color: #cfcab9; background: var(--paper); }
.aff-note { font-size: .8rem; color: var(--muted); margin: 0 0 .8rem; }
.footer-legal { flex-basis: 100%; font-size: .78rem; color: #9f9a88; }
.legal h2 { font-size: 1.25rem; }

/* Social links (footer) */
.site-footer ul.social, .social { display: flex; flex-direction: row; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 1.2rem; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .28); color: inherit; transition: background .15s, border-color .15s, color .15s; }
.social a:hover, .social a:focus-visible { background: var(--lime, #9ab922); border-color: var(--lime, #9ab922); color: #1d1c17; }
.social .icon { width: 1.25rem; height: 1.25rem; }

/* Free book landing page and home promo */
.landing-hero { background: radial-gradient(ellipse at 70% 0%, #fff 0%, var(--paper) 70%); padding: clamp(2.2rem, 5vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); }
.landing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.landing-copy h1 { margin: .2rem 0 .8rem; }
.landing-copy .eyebrow { color: var(--moss); }
.landing-copy .lede { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.ticks .icon { width: 1.2rem; height: 1.2rem; color: var(--moss); flex: none; margin-top: .2rem; }
.landing-copy .newsletter { background: #fff; border: 2px solid var(--lime); border-radius: 14px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.landing-art { margin: 0; }
.landing-art img { width: 100%; height: auto; border-radius: 14px; }
.landing-body { padding-top: 1rem; }
.free-book-band { background: #fff; border-top: 1px solid var(--line); }
.free-book-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; padding: 2.4rem 0; }
.free-book-inner figure { margin: 0; }
.free-book-inner img { width: 100%; height: auto; }
.free-book-inner h2 { margin: .2rem 0 .5rem; }
.free-book-inner .eyebrow { color: var(--moss); }
@media (max-width: 52rem) { .landing-grid, .free-book-inner { grid-template-columns: 1fr; } .landing-art { order: -1; max-width: 32rem; } }
.site-footer ul.social li { margin: 0; padding: 0; }

/* Store and Start here pages (full page width) */
.st-sec { padding: clamp(2rem, 4vw, 3rem) 0; }
.st-sec > h2 { margin-top: 0; }
.st-hero { background: var(--night); color: #fff; }
.st-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2.2rem, 5vw, 4rem) 0; }
.st-hero h1 { color: #fff; margin: .2rem 0 .8rem; }
.st-hero .eyebrow { color: var(--lime); }
.st-hero .lede { color: #e5e1d3; }
.st-hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1rem; }
.st-hero .button-ghost { color: #fff; }
.st-hero-img { width: 100%; height: auto; border-radius: 14px; }
.st-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: #cfcab9; font-size: .9rem; }
.st-trust li::before { content: "✓ "; color: var(--lime); font-weight: 700; }
.st-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; align-items: stretch; }
.st-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.st-plan img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.st-plan-body { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.st-plan h3 { margin: 0; font-size: 1.2rem; }
.st-focus { color: var(--muted); font-size: .92rem; margin: 0 0 .4rem; }
.st-price { font: 800 1.7rem/1.1 var(--head); margin: .2rem 0; }
.st-save { color: var(--moss); font-weight: 700; font-size: .88rem; margin: 0; }
.st-plan ul { padding-left: 1.1rem; margin: .6rem 0 1rem; font-size: .92rem; flex: 1; }
.st-plan .button { align-self: flex-start; }
.st-more { font-size: .88rem; margin-top: .6rem; }
.st-best { border: 2px solid var(--lime); box-shadow: var(--shadow); }
.st-badge { position: absolute; top: .7rem; left: .7rem; background: var(--lime); color: #1d1c17; font: 750 .75rem var(--head); text-transform: uppercase; letter-spacing: .05em; padding: .3rem .6rem; border-radius: 999px; }
.button-dark { background: var(--night); border-color: var(--night); color: #fff; }
.button-dark:hover { background: #000; border-color: #000; color: #fff; }
.st-guarantee { margin: 1.4rem 0 0; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0; }
.st-band { background: #fff; border-block: 1px solid var(--line); }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.st-band .st-two { padding: clamp(2rem, 4vw, 3rem) 0; }
.st-two img { width: 100%; height: auto; border-radius: var(--radius); }
.st-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.st-quote { margin: 0; padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.st-quote blockquote { margin: 0 0 .8rem; color: var(--ink); }
.st-quote figcaption { font-size: .88rem; color: var(--muted); }
.st-quote figcaption strong { display: block; color: var(--ink); }
.gs-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gs-steps a { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; height: 100%; }
.gs-steps a:hover { border-color: var(--lime); box-shadow: var(--shadow); }
.gs-steps strong { display: block; font: 700 1.02rem/1.3 var(--head); margin-bottom: .2rem; }
.gs-steps span span { color: var(--muted); font-size: .9rem; }
.gs-n { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--night); color: var(--lime); font: 800 .95rem var(--head); }
@media (max-width: 64rem) { .st-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .st-hero-grid, .st-two, .st-quotes, .gs-steps { grid-template-columns: 1fr; } .st-hero-img { order: -1; } }
@media (max-width: 36rem) { .st-plans { grid-template-columns: 1fr; } }

/* Go deeper: book cover linking to Amazon */
.resource-cover { display: block; margin: .2rem 0 .3rem; border-radius: 10px; overflow: hidden; background: #fff; }
.resource-cover img { display: block; width: 100%; height: auto; transition: transform .2s; }
.resource-cover:hover img { transform: scale(1.03); }
.resource-amazon { margin: 0 0 .7rem; font-size: .85rem; }
/* Topic nav: group holding the current page */
.topic-nav details.has-current > summary { color: var(--moss-ink, #4b5a14); }
.footer-follow { color: #fff !important; font-weight: 600; margin: 1rem 0 .2rem; }
.footer-family a { text-decoration: underline; }

/* ---- Article template refresh (books-site styling) ---- */
/* Left topic nav: light pill boxes */
.side-left .topic-nav { display: grid; gap: .45rem; }
.topic-nav details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.topic-nav summary { padding: .6rem .85rem; border-radius: 12px; }
.topic-nav summary:hover { background: #f8f7f0; }
.topic-nav details.has-current { border-color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.topic-nav details.has-current > summary { color: var(--moss-ink, #4b5a14); }
.topic-nav details[open] > ul { padding: 0 .45rem .2rem; }
.topic-nav details > .more { display: block; padding: .15rem .95rem .7rem; font-size: .85rem; }
.topic-nav > .more { padding: .2rem .3rem; }
/* Quick answer, takeaways, highlights */
.box-label { font: 700 .76rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); margin: 0 0 .35rem !important; }
.quick-answer { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; box-shadow: 0 6px 18px rgb(43 42 35 / .07); padding: 1.1rem 1.3rem; margin: 0 0 1.6rem; }
.takeaways { background: #f2f6e3; border: 1px solid #d3deac; border-left: 1px solid #d3deac; border-radius: 12px; padding: 1.2rem 1.4rem; margin: 2.2rem 0; }
.takeaways h2 { font-size: 1.2rem; margin: 0 0 .7rem; }
.takeaways ul { margin: 0; padding-left: 1.2rem; } .takeaways li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
/* Go deeper in the book (end of article) */
.go-deeper { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.4rem; align-items: center; margin: 2.2rem 0; padding: 1.3rem 1.4rem; background: #fff8ec; border: 1px solid #f2d4a6; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; }
.go-deeper h2 { font-size: 1.3rem; margin: .1rem 0 .5rem; }
.go-deeper p { margin: 0 0 .7rem; color: var(--ink); }
.go-deeper .go-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.go-deeper .go-more { margin: 0; font-size: .92rem; }
.go-deeper-cover { display: block; border-radius: 10px; overflow: hidden; background: #fff; }
.go-deeper-cover img { display: block; width: 100%; height: auto; transition: transform .2s; }
.go-deeper-cover:hover img { transform: scale(1.03); }
.button-outline { background: transparent; color: var(--night); border-color: var(--night); }
.button-outline:hover { background: rgb(0 0 0 / .06); color: var(--night); border-color: var(--night); }
/* Right column Go deeper: orange-tinted like the end box */
.side-right .resource { background: #fff8ec; border-color: #f2d4a6; }
@media (max-width: 40rem) { .go-deeper { grid-template-columns: minmax(0, 1fr); } .go-deeper-cover { max-width: 16rem; } }
.go-deeper .box-label, .resource .box-label { color: var(--orange-ink); }
.resource-links { flex-direction: column; gap: .25rem; } .resource-links span { display: none; }
.resource-amazon a { display: inline-flex; align-items: center; min-height: 2.3rem; padding: .35rem .95rem; border-radius: 999px; background: var(--lime); color: #1d1c17; font: 700 .85rem var(--head); text-decoration: none; }
.resource-amazon a:hover { background: var(--moss); color: #fff; }
.resource-amazon { margin: .5rem 0 .7rem; }

/* Left nav: one light box around the whole nav, plain items inside (shared design for both article templates) */
.topic-nav { display: block !important; background: #fff8ec; border: 1px solid #f2d4a6; border-radius: 12px; padding: .35rem .5rem .6rem; }
.topic-nav details, .topic-nav details.has-current { background: none; border: 0; border-bottom: 1px solid #f0e2c8; border-radius: 0; box-shadow: none; padding: 0; }
.topic-nav summary { padding: .6rem .45rem; border-radius: 8px; font-weight: 700; color: var(--ink); background: none; }
.topic-nav details.has-current > summary { color: var(--ink); }
.topic-nav summary:hover { background: rgb(255 255 255 / .7); }
.topic-nav details[open] > ul { padding: 0 0 .3rem; }
.topic-nav ul a { padding: .3rem .5rem; border-radius: 6px; }
.topic-nav ul a:hover { background: #fff; }
.topic-nav a[aria-current] { background: #fff; box-shadow: none; font-weight: 650; color: var(--ink); }
.topic-nav details > .more { padding: .1rem .5rem .6rem; font-size: .85rem; }
.topic-nav > .more { display: block; padding: .5rem .45rem 0; font-size: .9rem; font-weight: 650; }
/* Wider layout (all pages); article grid scales from phone to large desktop */
:root { --wrap: 90rem; --read: 52rem; }
.doc-grid { grid-template-columns: 16rem minmax(0, 1fr) 17rem; gap: clamp(1.5rem, 3vw, 3rem); }
.doc-grid .doc { max-width: var(--read); width: 100%; }
@media (max-width: 75rem) { .doc-grid { grid-template-columns: 14rem minmax(0, 1fr); } .doc-grid .side-right { display: none; } }
@media (max-width: 80rem) { .site-search { flex: 1 1 100%; max-width: none; } }
@media (max-width: 52rem) { .doc-grid, .doc-grid-2, .portal, .hub-grid { grid-template-columns: minmax(0, 1fr); } .side-left { position: static; max-height: none; order: 2; } }

/* Page template boxes: product notice (grey), community (Facebook), previous/next mini nav */
.notice { background: #f3f3f0; border: 1px solid #e0dfda; border-left: 4px solid #8c8b84; border-radius: 0 10px 10px 0; color: var(--ink); }
.notice a { color: var(--ink); }
.community { display: flex; gap: .9rem; align-items: flex-start; background: #eef5ff; border: 1px solid #cfe0fb; border-left: 4px solid #1877f2; border-radius: 0 10px 10px 0; padding: 1rem 1.2rem; }
.community > div { display: grid; gap: .4rem; justify-items: start; }
.community .eyebrow { color: #1460c8; }
.fb-mark { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #1877f2; color: #fff; }
.fb-mark .icon { width: 1.3rem; height: 1.3rem; }
.button-fb { background: #1877f2; border-color: #1877f2; color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.button-fb:hover { background: #0f5fd0; border-color: #0f5fd0; color: #fff; }
.button-fb .icon { width: 1rem; height: 1rem; }
.pager { display: block; margin: 2rem 0; padding: .9rem; background: var(--night); border-radius: 14px; }
.pager-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 .3rem .7rem; }
.pager-head span { font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--lime); }
.pager-head a { font: 650 .85rem var(--head); color: #e5e1d3; text-decoration: none; }
.pager-head a:hover { color: #fff; text-decoration: underline; }
.pager-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pager-row a { display: grid; gap: .25rem; padding: .9rem 1.1rem; border-radius: 10px; background: #fff; border: 0; color: var(--ink); text-decoration: none; font: 700 .98rem/1.3 var(--head); transition: transform .15s, box-shadow .15s, background .15s; }
.pager-row a:hover { background: #f4f8e4; transform: translateY(-2px); box-shadow: 0 6px 16px rgb(0 0 0 / .25); }
.pager-row .next { text-align: right; }
.pager-dir { font: 750 .78rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--moss-ink, #4b5a14); }
.pager-row a strong { font-weight: 700; }
.pager-empty { display: block; }
@media (max-width: 40rem) { .pager-row { grid-template-columns: 1fr; } .pager-row .next { text-align: left; } .pager-empty { display: none; } .pager-head { flex-wrap: wrap; } }
.pager .pager-head a { display: inline; background: none; border: 0; padding: 0; box-shadow: none; transform: none; }

/* Inline 'Takeaway:' sections rendered as the green takeaway box */
.takeaway-inline { margin: 1.8rem 0; }
.takeaway-inline .box-label { color: var(--moss-ink, #4b5a14); }
.takeaway-inline .takeaway-title { font: 700 1.05rem/1.3 var(--head); margin: 0 0 .5rem; }
.takeaway-inline p:last-child, .takeaway-inline ul:last-child { margin-bottom: 0; }
