/* Complete Pool Guide inner pages (hubs, all guides, plain pages): own look, light like the homepage.
   Page head with a photo card, main column + right sticky sidebar, navy short-answer card, 2-up step cards,
   check rows, navy-header tables, red safety box, Q-badge FAQ, sources card. Loaded after pool.css. */

/* ---------- Page head ---------- */
.phead { position: relative; background: radial-gradient(700px 320px at 90% 0, rgba(61, 155, 255, .16), transparent 70%), linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%); border-bottom: 1px solid #e4edf9; }
.phead__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 26px; padding-bottom: 44px; }
.phead--media .phead__in { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); }
.phead .crumbs { margin-bottom: 18px; }
.phead .pill { margin-bottom: 14px; }
.phead__title { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 14px; }
.phead__lede { font-size: clamp(16.5px, 1.5vw, 18.5px); color: #3f5170; max-width: 56ch; margin: 0 0 18px; }
.phead__meta { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.phead__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: #46597a; }
.phead__meta .ico { color: var(--orange); }
.phead .search--hero { margin-top: 18px; }
.phead__media { position: relative; margin: 0; }
.phead__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.phead__badge { position: absolute; left: -18px; bottom: 26px; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff; border: 5px solid #fff; box-shadow: 0 10px 24px rgba(11, 111, 232, .35); }
.phead__badge .ico { width: 28px; height: 28px; }

/* ---------- Main column + right sidebar ---------- */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; padding-top: 44px; padding-bottom: 64px; }
.pmain { min-width: 0; max-width: 820px; }
.pside__stick { position: sticky; top: 96px; display: grid; gap: 16px; }
.pside__card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 2px 10px rgba(10, 31, 68, .04); }
.pside__h { margin: 0 0 10px; font: 800 15px/1.2 var(--font-display); color: var(--navy); }
.pside .toc { position: static; background: #fff; font-size: 14px; }
.pside .toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: t; }
.pside .toc li { counter-increment: t; }
.pside .toc a { display: flex; gap: 8px; padding: 7px 10px; border-radius: 10px; color: #34445f; line-height: 1.35; }
.pside .toc a::before { content: counter(t); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--soft); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.pside .toc a:hover { background: var(--soft); color: var(--navy); }
.pside .toc a.is-on { background: var(--tint); color: var(--orange-2); font-weight: 600; }
.pside .toc a.is-on::before { background: var(--orange); color: #fff; }
.pside__cta { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 13.5px; line-height: 1.4; border: 0; background: radial-gradient(200px 120px at 100% 0, rgba(61, 155, 255, .45), transparent 70%), linear-gradient(135deg, #0a1f44, #0d3a7a); }
.pside__cta:hover { color: #fff; }
.pside__cta img { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.pside__cta strong { display: block; color: #fff; font: 800 15px/1.25 var(--font-display); margin-bottom: 2px; }
.pside__cta > .ico { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--orange); color: #fff; }
.pside__hubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pside__hubs a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pside__hubs a:hover { background: var(--soft); color: var(--orange-2); }
.pside__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }

/* ---------- Short answer + symptoms ---------- */
.qa-card { position: relative; overflow: hidden; margin: 0 0 36px; padding: 24px 26px; border-radius: 22px; color: rgba(255, 255, 255, .9); background: radial-gradient(360px 200px at 100% 0, rgba(61, 155, 255, .4), transparent 70%), linear-gradient(135deg, #0a1f44, #0d3a7a); }
.qa-card::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .05); }
.qa-card__h { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #9fd0ff; font: 700 12.5px/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.qa-card__t { position: relative; z-index: 1; margin: 0; font-size: 17.5px; line-height: 1.65; }
.symp { margin-bottom: 8px; }
.symp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.symp__card { position: relative; display: grid; gap: 4px; height: 100%; padding: 16px 52px 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.symp__card:hover { border-color: #9cc3f5; box-shadow: var(--shadow); transform: translateY(-2px); }
.symp__t { font: 800 16px/1.3 var(--font-display); color: var(--navy); }
.symp__d { font-size: 14px; color: var(--muted); }
.symp__go { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--orange); }
.symp__soon { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px 18px; border: 1px dashed #bcd6fa; border-radius: 16px; background: #f7faff; color: #46597a; font-size: 15px; }
.symp__soon .ico { flex: none; margin-top: 2px; color: var(--orange); }

/* ---------- Content blocks ---------- */
.prose--pool, .symp { counter-reset: none; }
.prose--pool > h2, .symp > h2, .srcs > h2 { font-size: clamp(24px, 2.6vw, 31px); margin-top: 1.9em; }
.symp > h2 { margin-top: 0; }
.prose--pool > h2::before, .symp > h2::before { content: ""; display: block; width: 40px; height: 5px; margin-bottom: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--orange), #6db5ff); }
.prose--pool > h2::after { display: none; }
.prose--pool > h2:first-child { margin-top: 0; }

.prose--pool ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.prose--pool ol.steps > li { padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #fff, #f6f9ff); box-shadow: none; }
.prose--pool ol.steps > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.prose--pool ol.steps > li::before,
.js-motion .prose--pool ol.steps > li::before,
.js-motion .prose--pool ol.steps > li.is-in::before { content: counter(step, decimal-leading-zero); position: static; display: block; width: auto; height: auto; margin-bottom: 8px; background: none !important; color: var(--orange); font: 800 30px/1 var(--font-display); letter-spacing: -.03em; transform: none; }
.prose--pool ol.steps > li::after { display: none !important; }
.js-motion .prose--pool ol.steps > li.is-in { border-color: #cfe1fb; box-shadow: 0 6px 18px rgba(11, 111, 232, .07); }

.prose--pool ul.checks { padding: 0; background: none; border: 0; gap: 8px; }
.prose--pool ul.checks li { padding: 12px 16px 12px 50px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.prose--pool ul.checks li::before { left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; }
.prose--pool ul.checks.is-interactive li { padding-top: 12px; padding-bottom: 12px; }
.prose--pool ul.checks.is-interactive li:hover { background: #f7faff; }
.prose--pool ul.checks.is-interactive li::before { background: #fff; border: 2px solid #9cc3f5; border-radius: 50%; }
.prose--pool ul.checks.is-interactive li.is-done { background: #f3f7fd; }
.prose--pool ul.checks.is-interactive li.is-done::before { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat; }

.prose--pool table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.prose--pool table th { background: var(--navy); color: #fff; font-weight: 700; border-bottom: 0; }
.prose--pool table td { border-bottom: 1px solid var(--line); }
.prose--pool table tr:last-child td { border-bottom: 0; }
.prose--pool table tbody tr:nth-child(even) td { background: #f7faff; }

.prose--pool .note--warn { position: relative; display: block; padding: 16px 18px 16px 60px; background: #fff5f3; border: 1px solid #ffd3c9; border-left: 5px solid #e5484d; border-radius: 14px; color: #5c1d17; }
.prose--pool .note--warn::before { content: "!"; position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5484d; color: #fff; font: 800 16px/1 var(--font-display); }
.prose--pool .note--warn p { margin: 0; }
.prose--pool .note--warn strong { color: #a3231f; }

.prose--pool .faq__item { border-radius: 16px; }
.prose--pool .faq__h::before { content: "Q"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 12px; border-radius: 8px; background: var(--tint); color: var(--orange); font: 800 13px/1 var(--font-display); vertical-align: 2px; }
.prose--pool .faq__item[open] .faq__h::before { background: var(--orange); color: #fff; }
.prose--pool .faq__icon { background: var(--soft); }
.prose--pool .faq__a { padding-left: 58px; }

.srcs { margin-top: 44px; padding: 22px 24px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line); }
.srcs > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 20px; }
.srcs > h2 .ico { color: var(--orange); }
.srcs ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 14.5px; }

/* ---------- All guides ---------- */
.fpills.tabs { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; background: none; box-shadow: none; grid-template-columns: none; overflow: visible; }
.fpill.tab { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 14px/1 var(--font-head); color: var(--navy); cursor: pointer; }
.fpill span { padding: 2px 8px; border-radius: 99px; background: var(--soft); font-size: 12px; color: var(--muted); }
.fpill.is-on { background: var(--orange); border-color: transparent; color: #fff; }
.fpill.is-on span { background: rgba(255, 255, 255, .22); color: #fff; }
.hubgrid--wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.hubcard__desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pgrid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.pmain { max-width: none; }
	.pside__stick { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
	.pside .ptoc { display: none; }
}
@media (max-width: 900px) {
	.phead--media .phead__in { grid-template-columns: 1fr; gap: 28px; }
	.phead__media { max-width: 560px; }
	.phead__badge { left: 14px; bottom: -18px; }
}
@media (max-width: 640px) {
	.symp__grid, .prose--pool ol.steps { grid-template-columns: 1fr; }
	.prose--pool .faq__a { padding-left: 20px; }
	.qa-card { padding: 20px; }
	.phead__in { padding-bottom: 36px; }
}

/* ---------- Fix guide: fix at a glance ---------- */
.glance { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 2px 12px rgba(10, 31, 68, .05); }
.glance__qa.qa-card { margin: 0; border-radius: 0; }
.glance__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.gstat { padding: 16px 20px; border-right: 1px solid var(--line); }
.gstat:last-child { border-right: 0; }
.gstat dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.gstat dt .ico { color: var(--orange); }
.gstat dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 800 18px/1.25 var(--font-display); color: var(--navy); }
.gstat dd small { flex-basis: 100%; font: 500 13px/1.4 var(--font-body); color: var(--muted); }
.gmeter { display: inline-flex; gap: 3px; }
.gmeter i { width: 14px; height: 6px; border-radius: 3px; background: #dbe6f5; }
.gstat--lvl-1 .gmeter i:nth-child(-n+1), .gstat--lvl-2 .gmeter i:nth-child(-n+2), .gstat--lvl-3 .gmeter i:nth-child(-n+3) { background: var(--orange); }
.glance__tools { padding: 16px 20px 18px; }
.glance__tools-h { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.glance__tools-h .ico { color: var(--orange); }
.glance__tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.glance__tools li { display: inline-flex; }
.glance__tools li, .glance__tools li a { align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.glance__tools li:has(a) { padding: 0; border: 0; background: none; }
.glance__tools li a { display: inline-flex; background: var(--tint); border-color: #cfe1fb; color: var(--orange-2); }
.glance__tools .aff-note, .glance__tools p:last-child:not(.glance__tools-h) { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* Causes as cards with a blue edge */
.prose--pool ul.causes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose--pool ul.causes li { padding: 14px 16px 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 12px; background: #fff; }
.prose--pool ul.causes li::before { display: none; }
.prose--pool ul.causes li:hover { border-color: #cfe1fb; border-left-color: var(--orange); }

/* Decision path: a chain of numbered chips, then yes / no cards */
.prose--pool .flow-diagram { padding: 20px; border: 1px dashed #9cc3f5; border-radius: 20px; background: #f7faff; }
.prose--pool ol.flow { display: flex; flex-wrap: wrap; gap: 10px 26px; grid-template-columns: none; }
.prose--pool ol.flow > li { padding: 10px 14px 10px 44px; border-radius: 999px; background: #fff; border: 1px solid #cfe1fb; }
.prose--pool ol.flow > li::before { background: var(--orange) !important; color: #fff; left: 8px; }
.prose--pool ol.flow > li::after, .prose--pool ol.flow > li .flow__t::after { display: none !important; }
.prose--pool ol.flow > li:not(:last-child) { margin-right: 0; }
.prose--pool ol.flow > li:not(:last-child)::after { content: "" !important; display: block !important; position: absolute; right: -20px; top: 50%; width: 14px; height: 2px; background: #9cc3f5; }
.prose--pool .flow__ask { background: var(--navy) !important; border-color: var(--navy) !important; }
.prose--pool .flow__ask .flow__t { color: #fff; }

/* Author + related */
.prose--guide + .srcs, .srcs + .author { margin-top: 32px; }
.author { align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.author__img { width: 56px; height: 56px; }
.author__name { font-family: var(--font-display); font-weight: 800; }
.rel { margin-top: 44px; }
.rel > h2 { font-size: clamp(22px, 2.4vw, 28px); }
.rel > h2::before { content: ""; display: block; width: 40px; height: 5px; margin-bottom: 14px; border-radius: 99px; background: linear-gradient(90deg, var(--orange), #6db5ff); }
.cards--rel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Guide cards (all guides, related): rounded, area pill */
.card { border-radius: 18px; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { aspect-ratio: 16 / 10; }
.card__sys { padding: 4px 10px; border-radius: 999px; background: var(--soft); }
.card__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }

@media (max-width: 760px) {
	.glance__stats { grid-template-columns: 1fr; }
	.gstat { border-right: 0; border-bottom: 1px solid var(--line); }
	.gstat:last-child { border-bottom: 0; }
	.prose--pool ul.causes, .cards--rel { grid-template-columns: 1fr; }
}
