/*
Theme Name: Backup Power
Theme URI: https://backup-power.org
Author: backup-power.org
Description: "Solar & sky" editorial theme for backup-power.org. Bright white pages, deep teal and sky blue with a sunny accent, rounded cards, sticky table of contents, spec tables, affiliate CTA boxes, FAQ and how-to components. No page builder, no jQuery.
Version: 2.0.3
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: backup-power
*/

/* ---------- Tokens ---------- */
:root {
  --teal: #0b4f5c;
  --teal-2: #0e6574;
  --teal-3: #127f91;
  --teal-ink: #08343d;
  --sky: #3ba7d9;
  --sky-2: #7cc6ea;
  --sky-soft: #eaf6fc;
  --sky-softer: #f5fbfe;
  --sun: #ffd23f;
  --sun-soft: #fff7d6;
  --ink: #1c2b33;
  --ink-2: #4b5d66;
  --ink-3: #74858d;
  --bg: #ffffff;
  --line: #e4edf1;
  --line-2: #cfdde3;
  --leaf: #2f9e6b;
  --leaf-soft: #e8f6ef;
  --coral: #d9534f;
  --coral-soft: #fdeeee;
  --r-xl: 22px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(8,52,61,.05), 0 2px 8px rgba(8,52,61,.05);
  --shadow: 0 2px 4px rgba(8,52,61,.04), 0 10px 30px rgba(8,52,61,.08);
  --shadow-lg: 0 24px 60px rgba(8,52,61,.16);
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 740px;
  --wide: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17.5px/1.72 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-3); text-decoration-color: rgba(18,127,145,.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal); text-decoration-color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--teal-ink); line-height: 1.18; letter-spacing: -.02em; margin: 1.6em 0 .55em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.3vw, 3rem); margin-top: .25em; }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.85rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
li::marker { color: var(--sky); }
strong { color: var(--teal-ink); font-weight: 650; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }

/* ---------- Header (light) ---------- */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--teal-ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: var(--teal); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: inline-flex; align-items: baseline; position: relative; padding-bottom: 7px; }
.brand-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #0b4f5c, #3ba7d9 55%, #ffd23f 85%, #f59e0b); }
.brand-name { font-size: 1.56rem; font-weight: 800; letter-spacing: -.02em; word-spacing: .06em; background: linear-gradient(180deg, #1b8ea3 0%, #0b4f5c 55%, #06303a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 3px rgba(8,52,61,.25)); }
.brand .tld { color: #e08a00; font-weight: 700; font-size: .9rem; letter-spacing: .01em; margin-left: 3px; }
@media (max-width: 560px) { .brand-name { font-size: 1.3rem; } .brand .tld { font-size: .78rem; } .brand-mark { width: 34px; height: 34px; } }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; white-space: nowrap; color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; padding: 8px 13px; border-radius: 999px; transition: background .15s, color .15s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a { color: var(--teal); background: var(--sky-soft); }
.header-search { display: flex; position: relative; }
.header-search input[type=search] { width: 190px; border: 1px solid var(--line-2); background: var(--sky-softer); color: var(--ink); border-radius: 999px; padding: 9px 16px 9px 38px; font: inherit; font-size: .9rem; }
.header-search::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374858d' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.header-search input::placeholder { color: var(--ink-3); }
.nav-toggle { display: none; margin-left: auto; background: var(--sky-soft); border: 0; color: var(--teal); border-radius: 999px; padding: 9px 16px; font: 600 .88rem var(--font-body); }
@media (max-width: 1240px) { .header-search { display: none; } }
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .header-search { display: none; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Buttons & pills ---------- */
.btn, .amz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal); color: #fff !important; text-decoration: none !important;
  font: 600 .98rem/1.2 var(--font-body); padding: 13px 22px; border-radius: 999px; border: 0;
  box-shadow: 0 6px 16px rgba(11,79,92,.22); transition: background .15s, transform .15s, box-shadow .15s; min-height: 46px; cursor: pointer;
}
.btn:hover, .amz-btn:hover { background: var(--teal-2); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11,79,92,.28); }
.amz-btn::before { content: ""; width: 17px; height: 17px; flex: none; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3h3l2.6 12.2a1.5 1.5 0 0 0 1.5 1.2h8.2a1.5 1.5 0 0 0 1.5-1.1L21.5 8H6.4'/%3E%3C/svg%3E"); }
.amz-btn-sm { font-size: .82rem; padding: 8px 14px; min-height: 36px; white-space: nowrap; box-shadow: none; }
.amz-btn-sm::before { width: 14px; height: 14px; }
.btn-sun { background: var(--sun); color: var(--teal-ink) !important; box-shadow: 0 6px 16px rgba(255,210,63,.35); }
.btn-sun:hover { background: #ffdc66; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff !important; box-shadow: none; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--font-body); letter-spacing: .02em; color: var(--teal); background: var(--sky-soft); padding: 6px 11px; border-radius: 999px; text-decoration: none; }
a.pill:hover { background: #d8eef9; color: var(--teal); }

/* ---------- Home: hero ---------- */
.hero { padding: 22px 0 0; }
.hero-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 520px; display: flex; align-items: flex-end; color: #fff;
  background: linear-gradient(180deg, #2b8fc4 0%, #57b4e0 38%, #a9dcf2 70%, #fbe9b8 100%); }
.hero-panel .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,52,61,.82) 0%, rgba(8,52,61,.55) 42%, rgba(8,52,61,0) 72%); }
.hero-copy { position: relative; z-index: 2; padding: 56px 56px 120px; max-width: 640px; }
.hero-copy .pill { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.hero-copy .pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 18px 0 16px; line-height: 1.08; }
.hero h1 .sun { color: var(--sun); }
.hero .lead { font-size: 1.14rem; color: #e3f2f8; max-width: 33em; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.sizer { position: relative; z-index: 3; margin: -84px 56px 0; background: #fff; border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: center; }
.sizer h2 { font-size: 1.12rem; margin: 0 0 4px; }
.sizer p { font-size: .88rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--teal-ink); background: var(--sky-softer); transition: all .15s; }
.chip:hover { border-color: var(--sky); background: #fff; box-shadow: var(--shadow-sm); color: var(--teal); }
.chip i { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-style: normal; color: var(--teal-3); box-shadow: var(--shadow-sm); }
.chip i svg { width: 15px; height: 15px; }
.chip .w { font-weight: 500; font-size: .78rem; color: var(--ink-3); }
@media (max-width: 960px) {
  .hero-copy { padding: 40px 28px 110px; }
  .hero-panel::after { background: linear-gradient(180deg, rgba(8,52,61,.25) 0%, rgba(8,52,61,.82) 75%); }
  .sizer { margin: -80px 16px 0; grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) { .chips { display: grid; grid-template-columns: 1fr 1fr; } .chip { padding-right: 10px; font-size: .86rem; } .chip .w { display: none; } .hero { padding-top: 12px; } .hero .wrap { padding: 0 12px; } .hero-panel { min-height: 560px; border-radius: var(--r-lg); } .sizer { margin: -70px 8px 0; padding: 18px; } }

/* ---------- Home: sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: linear-gradient(180deg, var(--sky-softer), #fff); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }
.eyebrow { font: 700 .76rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.section-head a.more { font-weight: 600; font-size: .94rem; white-space: nowrap; text-decoration: none; color: var(--teal); }
.section-head a.more::after { content: " →"; }

.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub { position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; overflow: hidden; }
.hub:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.hub::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--sky-soft); transition: transform .3s; }
.hub:hover::after { transform: scale(1.25); }
.hub-icon { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-3), var(--teal)); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(11,79,92,.25); }
.hub:nth-child(3n+2) .hub-icon { background: linear-gradient(135deg, var(--sky-2), var(--sky)); }
.hub:nth-child(3n) .hub-icon { background: linear-gradient(135deg, #ffe27a, #f5c21b); color: var(--teal-ink); box-shadow: 0 8px 18px rgba(245,194,27,.3); }
.hub-icon svg { width: 24px; height: 24px; }
.hub h3 { position: relative; z-index: 1; margin: 0; font-size: 1.08rem; }
.hub p { position: relative; z-index: 1; margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.hub .count { position: relative; z-index: 1; font-size: .78rem; font-weight: 600; color: var(--teal-3); margin-top: auto; }
@media (max-width: 900px) { .hubs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hubs { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { position: relative; background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { aspect-ratio: 16/10; background: linear-gradient(160deg, var(--sky-soft), #fef6dc); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.32; }
.card h3 a { color: var(--teal-ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.58; }
.card-meta { margin-top: auto; font-size: .8rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.card-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.card .pill { position: relative; z-index: 2; align-self: flex-start; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-bottom: 24px; }
.feature .card:first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.feature .card:first-child h3 { font-size: 1.55rem; }
.feature-side { display: grid; gap: 24px; }
.feature-side .card { flex-direction: row; }
.feature-side .card-media { width: 42%; aspect-ratio: auto; flex: none; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } .feature { grid-template-columns: 1fr; } .feature .card:first-child .card-media { aspect-ratio: 16/9; min-height: 0; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .feature-side .card { flex-direction: column; } .feature-side .card-media { width: 100%; aspect-ratio: 16/10; } }

.list-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.list-posts li { margin: 0; }
.list-posts a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--sky-softer); text-decoration: none; color: var(--teal-ink); font-weight: 600; transition: background .15s; }
.list-posts a:hover { background: var(--sky-soft); }
.list-posts .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 .85rem var(--font-head); color: var(--sky); box-shadow: var(--shadow-sm); }
@media (max-width: 700px) { .list-posts { grid-template-columns: 1fr; } }

.method-band { background: var(--teal); color: #d6edf3; border-radius: var(--r-xl); padding: 48px; position: relative; overflow: hidden; }
.method-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.55), rgba(255,210,63,0) 70%); }
.method-band h2 { color: #fff; margin: 6px 0 8px; }
.method-band .eyebrow { color: var(--sun); }
.method-band > p { max-width: 40em; color: #bfe0e9; }
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; position: relative; }
.method div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 20px; }
.method h3 { margin: 0 0 8px; font-size: 1rem; color: #fff; }
.method p { margin: 0; font-size: .9rem; line-height: 1.55; color: #bfe0e9; }
.method .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--sun); color: var(--teal-ink); display: grid; place-items: center; margin-bottom: 14px; }
.method .ic svg { width: 19px; height: 19px; }
.method-band .btn { margin-top: 26px; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr 1fr; } .method-band { padding: 32px 24px; } }
@media (max-width: 520px) { .method { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-top { background: linear-gradient(180deg, var(--sky-softer) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.article-top .inner { max-width: var(--wide); margin: 0 auto; padding: 34px 22px 30px; display: grid; grid-template-columns: minmax(0, var(--measure)) 280px; gap: 56px; justify-content: center; }
.article-wrap { max-width: var(--wide); margin: 0 auto; padding: 36px 22px 72px; display: grid; grid-template-columns: minmax(0, var(--measure)) 280px; gap: 56px; justify-content: center; }
.article-main { min-width: 0; }
@media (max-width: 1140px) { .article-wrap, .article-top .inner { grid-template-columns: minmax(0, var(--measure)); } .toc-rail { display: none; } }
.breadcrumbs { font-size: .84rem; color: var(--ink-3); margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs span.sep { margin: 0 4px; color: var(--sky-2); }
.entry-dek { font-size: 1.17rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 22px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .87rem; color: var(--ink-2); }
.entry-meta .avatar { border-radius: 50%; width: 38px; height: 38px; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.entry-meta .by a { font-weight: 600; color: var(--teal-ink); text-decoration: none; }
.entry-meta .verified { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .78rem; color: var(--leaf); background: var(--leaf-soft); padding: 5px 10px; border-radius: 999px; }
.entry-hero { margin: 0 0 30px; border-radius: var(--r-lg); overflow: hidden; background: var(--sky-soft); box-shadow: var(--shadow-sm); }
.entry-hero img { width: 100%; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.1em; position: relative; padding-left: 18px; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--sun), var(--sky)); }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--r-sm); }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 24px; border-radius: var(--r); background: var(--sky-softer); color: var(--ink-2); font-style: italic; border: 0; }

.bp-lede { font-size: 1.22rem; line-height: 1.62; color: var(--teal-ink); font-weight: 500; }

.affiliate-disclosure { font-size: .8rem; color: var(--ink-3); background: var(--sky-softer); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 26px; line-height: 1.55; }
.affiliate-disclosure p { margin: 0; }

.bp-tldr { position: relative; background: linear-gradient(135deg, #fffbea 0%, var(--sky-softer) 100%); border: 1px solid #f7e7a6; border-radius: var(--r-lg); padding: 22px 26px 10px 26px; margin: 0 0 30px; }
.bp-tldr::before { content: ""; position: absolute; top: -14px; left: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun) no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2308343d'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); box-shadow: 0 4px 10px rgba(245,194,27,.4); }
.bp-tldr__label, .bp-callout__label, .bp-needs__label, .bp-verdict__label, .bp-proscons__label, .bp-related__label {
  font: 700 .76rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px !important;
}
.bp-tldr__label { color: #a07800; }
.bp-tldr ul { margin-bottom: 12px; }
.bp-tldr li { margin-bottom: .55em; }

/* Spec tables */
.bp-table-wrap { overflow-x: auto; margin: 1.5em 0 2em; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.entry-content table:not(.bp-specs) { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: block; overflow-x: auto; margin: 1.5em 0; }
th, td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { font: 600 .76rem var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--teal); background: var(--sky-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--sky-softer); }
.bp-specs { font-size: .87rem; }
.bp-specs td { font-variant-numeric: tabular-nums; }
.bp-specs td:last-child { width: 1%; }
.bp-specs td:first-child { min-width: 170px; }
.bp-specs td:first-child strong { display: block; line-height: 1.3; }
.table-thumb { width: 56px; height: 56px; object-fit: contain; float: left; margin-right: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 4px; }

/* Product figure */
.bp-product-img { margin: 0 0 20px; max-width: 440px; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--sky-softer) 70%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.bp-product-img img { margin: 0 auto; max-height: 340px; width: auto; object-fit: contain; border-radius: 0; }
.bp-product-img figcaption { font-size: .8rem; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* Pros / cons */
.bp-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.3em 0 1.5em; }
.bp-pros, .bp-cons { border-radius: var(--r); padding: 16px 18px 6px; font-size: .93rem; line-height: 1.55; border: 1px solid; }
.bp-pros { background: var(--leaf-soft); border-color: #cdeadb; }
.bp-cons { background: var(--coral-soft); border-color: #f5d4d3; }
.bp-pros .bp-proscons__label { color: var(--leaf); }
.bp-cons .bp-proscons__label { color: var(--coral); }
.bp-pros ul, .bp-cons ul { list-style: none; padding: 0; }
.bp-pros li, .bp-cons li { padding-left: 26px; position: relative; }
.bp-pros li::before, .bp-cons li::before { position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border-radius: 50%; font: 700 .75rem/17px var(--font-body); text-align: center; color: #fff; }
.bp-pros li::before { content: "✓"; background: var(--leaf); }
.bp-cons li::before { content: "–"; background: var(--coral); }
@media (max-width: 600px) { .bp-proscons { grid-template-columns: 1fr; } }

/* CTA box */
.cta-box { background: #fff; border: 1.5px solid var(--sky-2); border-radius: var(--r-lg); padding: 18px 20px; margin: 20px 0 30px; display: flex; align-items: center; gap: 18px; justify-content: space-between; box-shadow: 0 8px 22px rgba(59,167,217,.12); }
.cta-box p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.cta-box p strong { color: var(--teal-ink); }
.cta-box .amz-btn { flex: none; }
.cta-box--shop { background: var(--sky-softer); border-style: dashed; box-shadow: none; }
@media (max-width: 600px) { .cta-box { flex-direction: column; align-items: stretch; } .cta-box .amz-btn { width: 100%; } }

/* Callouts */
.bp-callout { position: relative; border-radius: var(--r-lg); padding: 18px 22px 8px 64px; margin: 1.5em 0 1.9em; }
.bp-callout::before { content: ""; position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 10px; background-repeat: no-repeat; background-position: center; background-size: 17px; }
.bp-callout--math { background: var(--sky-soft); }
.bp-callout--math::before { background-color: var(--sky); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 7h6M8 4v6M14 7h5M5 17h6M14 15l5 5M19 15l-5 5'/%3E%3C/svg%3E"); }
.bp-callout--math .bp-callout__label { color: var(--teal-3); }
.bp-callout--math p, .bp-callout--math li { font-variant-numeric: tabular-nums; }
.bp-callout--warn { background: var(--coral-soft); }
.bp-callout--warn::before { background-color: var(--coral); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 8v5M12 17h.01'/%3E%3C/svg%3E"); }
.bp-callout--warn .bp-callout__label { color: var(--coral); }
.bp-callout--tip { background: var(--leaf-soft); }
.bp-callout--tip::before { background-color: var(--leaf); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9V16h7v-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.bp-callout--tip .bp-callout__label { color: var(--leaf); }
.entry-content code { font-size: .88em; background: var(--sky-soft); padding: 2px 6px; border-radius: 6px; }
@media (max-width: 520px) { .bp-callout { padding: 56px 18px 8px; } .bp-callout::before { left: 18px; top: 16px; } }

/* How-to */
.bp-needs { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 22px 8px; margin: 1.5em 0; box-shadow: var(--shadow-sm); }
.bp-needs__label { color: var(--teal-3); }
.bp-needs ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.bp-needs li { padding-left: 24px; position: relative; font-size: .95rem; }
.bp-needs li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--sky); }
@media (max-width: 600px) { .bp-needs ul { grid-template-columns: 1fr; } }
.bp-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5em 0 2em; }
.bp-steps > li { counter-increment: s; position: relative; margin: 0 0 14px; padding: 18px 20px 14px 72px; background: var(--sky-softer); border-radius: var(--r); }
.bp-steps > li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 12px; background: var(--teal); color: #fff; font: 700 1rem/36px var(--font-head); text-align: center; }

/* Verdict */
.bp-verdict { position: relative; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-3) 100%); color: #d8eef4; border-radius: var(--r-lg); padding: 24px 28px 12px; margin: 2.2em 0; overflow: hidden; }
.bp-verdict::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.45), rgba(255,210,63,0) 70%); }
.bp-verdict__label { color: var(--sun); }
.bp-verdict p { position: relative; z-index: 1; }
.bp-verdict strong, .bp-verdict a { color: #fff; }

/* FAQ */
.bp-faq { margin: 1em 0 2em; display: grid; gap: 10px; }
.bp-faq h3 { font-size: 1.04rem; margin: 0; padding: 16px 20px 0; background: var(--sky-softer); border-radius: var(--r) var(--r) 0 0; }
.bp-faq p { font-size: .96rem; color: var(--ink-2); margin: 0 0 4px; padding: 6px 20px 16px; background: var(--sky-softer); border-radius: 0 0 var(--r) var(--r); }

/* Related */
.bp-related { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px 10px; margin: 2.2em 0; }
.bp-related__label { color: var(--sky); }
.bp-related ul { list-style: none; padding: 0; columns: 2; column-gap: 28px; }
.bp-related li { break-inside: avoid; font-size: .95rem; padding-left: 18px; position: relative; }
.bp-related li::before { content: "→"; position: absolute; left: 0; color: var(--sky); }
@media (max-width: 600px) { .bp-related ul { columns: 1; } }

/* TOC */
.toc-rail { position: relative; }
.toc { position: sticky; top: 98px; font-size: .88rem; background: var(--sky-softer); border-radius: var(--r-lg); padding: 20px 18px; }
.toc-title { font: 700 .74rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { margin: 0; counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; line-height: 1.38; }
.toc a::before { content: counter(t); flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink-3); font: 600 .7rem/20px var(--font-body); text-align: center; }
.toc a:hover { background: #fff; color: var(--teal); }
.toc a.is-active { background: #fff; color: var(--teal-ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.toc a.is-active::before { background: var(--sun); color: var(--teal-ink); }
.toc-box { margin: 0 0 28px; background: var(--sky-softer); border-radius: var(--r-lg); }
.toc-box summary { cursor: pointer; padding: 14px 18px; font: 700 .8rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.toc-box ol { margin: 0 18px 16px 38px; padding: 0; font-size: .93rem; }
@media (min-width: 1141px) { .toc-box { display: none; } }
.rail-cta { margin-top: 16px; background: var(--teal); color: #cfe7ee; border-radius: var(--r-lg); padding: 20px; font-size: .88rem; position: relative; overflow: hidden; }
.rail-cta::before { content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(255,210,63,.6), rgba(255,210,63,0) 70%); }
.rail-cta strong { color: #fff; display: block; font-family: var(--font-head); font-size: 1rem; margin-bottom: 6px; position: relative; }
.rail-cta p { margin: 0 0 14px; line-height: 1.5; position: relative; }
.rail-cta .btn { width: 100%; font-size: .88rem; padding: 10px; min-height: 40px; }

/* Author box */
.author-box { display: flex; gap: 18px; background: var(--sky-softer); border-radius: var(--r-lg); padding: 22px; margin: 2.6em 0 1em; }
.author-box .avatar { border-radius: 50%; width: 68px; height: 68px; flex: none; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.author-box h3 { margin: 0 0 4px; font-size: 1.06rem; }
.author-box p { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.58; }
.standards-note { font-size: .83rem !important; color: var(--ink-3) !important; margin-top: 10px !important; }

/* Archive */
.archive-head { background: linear-gradient(180deg, var(--sky-soft), #fff); padding: 44px 0 34px; }
.archive-head .wrap { display: flex; gap: 20px; align-items: center; }
.archive-head .hub-icon { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.archive-head .hub-icon svg { width: 30px; height: 30px; }
.archive-head h1 { margin: 4px 0 6px; }
.archive-head p, .archive-desc { color: var(--ink-2); max-width: 46em; margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--sky-softer); text-decoration: none; color: var(--teal); font-weight: 600; }
.pagination .current { background: var(--teal); color: #fff; }

/* Page */
.page-wrap { max-width: var(--measure); margin: 0 auto; padding: 40px 22px 72px; }

/* Calculator */
.calc { background: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); margin: 1.5em 0 2em; }
.calc-rows { display: grid; gap: 8px; margin-bottom: 20px; }
.calc-row { display: grid; grid-template-columns: 1fr 92px 92px; gap: 10px; align-items: center; padding: 9px 12px; background: var(--sky-softer); border-radius: 12px; font-size: .93rem; }
.calc-row label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.calc-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); }
.calc-row input[type=number] { width: 100%; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 .9rem var(--font-body); background: #fff; }
.calc-head { display: grid; grid-template-columns: 1fr 92px 92px; gap: 10px; padding: 0 12px 4px; font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--sky); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc-out div { background: linear-gradient(135deg, var(--teal), var(--teal-3)); border-radius: 16px; padding: 16px; text-align: center; color: #cfe7ee; }
.calc-out div:nth-child(2) { background: linear-gradient(135deg, #ffe27a, var(--sun)); color: var(--teal-ink); }
.calc-out b { display: block; font: 700 1.6rem var(--font-head); color: inherit; }
.calc-out div:not(:nth-child(2)) b { color: #fff; }
.calc-out span { font-size: .82rem; }
.calc-note { font-size: .84rem; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 560px) { .calc-out { grid-template-columns: 1fr; } .calc-row, .calc-head { grid-template-columns: 1fr 70px 64px; } }

/* Footer */
.site-footer { position: relative; background: var(--teal-ink); color: #a9cbd4; font-size: .92rem; padding: 90px 0 30px; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 60px; background: no-repeat center top/100% 60px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1440v20c-240 40-480 40-720 20S240 0 0 30z' fill='%23ffffff'/%3E%3C/svg%3E"); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfe5eb; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .tld { color: #ffd23f; }
.site-footer .brand-name { background: linear-gradient(180deg, #ffffff 0%, #dff1fa 50%, #9fd3ee 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.site-footer .brand-text::after { background: linear-gradient(90deg, #3ba7d9, #7cc6ea 45%, #ffd23f 85%, #f59e0b); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: #84aab5; line-height: 1.65; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* WP core */
.alignwide { margin-left: -60px; margin-right: -60px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--ink-3); text-align: center; }
@media (max-width: 800px) { .alignwide { margin-left: 0; margin-right: 0; } }
@media print { .site-header, .toc-rail, .site-footer, .cta-box { display: none; } }
