/* Shared structure. Skins override colour, type and card layout. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 5; background: #fff; color: #000; padding: 8px; }
.top { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; padding: 14px 20px; }
.logo { font-weight: 700; text-decoration: none; flex: 0 0 auto; white-space: nowrap; }
.nav { display: flex; gap: 8px 14px; flex-wrap: wrap; flex: 1 1 420px; min-width: 0; align-items: center; }
.top > .btn { flex: 0 0 auto; text-align: center; line-height: 1.25; white-space: nowrap; }
.nav a { text-decoration: none; white-space: nowrap; }
.main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; }
.btn { display: inline-block; text-decoration: none; padding: 10px 16px; }
.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; padding: 14px 22px; font-size: 1.05rem; font-weight: 750; line-height: 1.2; text-align: center; box-shadow: 0 10px 24px rgba(20, 16, 8, .18); }
.btn-hero span[aria-hidden] { width: 1.7em; height: 1.7em; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .12); font-size: .8rem; }
.play-dock { margin-top: 4px; }
.promo-top { width: min(1120px, calc(100% - 32px)); margin: 16px auto 0; }
.promo-slot { margin: 8px 0 18px; }
.promo-top a, .promo-slot a { display: block; border-radius: 12px; overflow: hidden; }
.promo-top img, .promo-slot img { width: 100%; height: auto; }
.promo-pop { position: fixed; inset: 0; z-index: 40; background: rgba(8, 10, 14, .72); display: grid; place-items: center; padding: 20px; }
.promo-pop[hidden] { display: none; }
.promo-pop-card { position: relative; width: min(600px, 100%); }
.promo-pop img { width: 100%; height: auto; border-radius: 12px; }
.promo-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #14202b; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 720px) {
  body.has-dock { padding-bottom: 92px; }
  .play-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(10, 12, 16, .94); }
  .play-dock .btn-hero { width: 100%; margin: 0; }
}
.crumbs { font-size: 0.9rem; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.aeo { padding: 14px 16px; margin: 12px 0 20px; }
.sheet-head { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: center; margin-bottom: 12px; }
.cover img, .cover .ph, .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.thumb { display: block; overflow: hidden; }
.ph { display: grid; place-items: center; font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0; }
.facts div { padding: 10px 12px; min-width: 0; }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: break-word; }
.balance { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 4px; }
.balance h3 { margin: 0 0 8px; font-size: 1rem; }
.balance ul { margin: 0; padding-left: 1.15em; }
.balance li { margin: 0 0 6px; line-height: 1.45; }
.balance .pros, .balance .cons { padding: 12px 14px; }
.prose p { line-height: 1.6; }
.prose a, .aeo a, .facts a, .faq a, .block h2 a, .cuts a, .help a { text-decoration: underline; text-underline-offset: 0.15em; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 22px; border-radius: 8px; }
.cuts { width: 100%; min-width: 520px; border-collapse: collapse; margin: 0; }
.cuts caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
.cuts th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 14px 10px 0; border-bottom: 2px solid color-mix(in srgb, currentColor 24%, transparent); white-space: nowrap; }
.cuts td { padding: 10px 14px 10px 0; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); line-height: 1.45; }
.cuts th:last-child, .cuts td:last-child { padding-right: 0; }
.cuts tbody tr:hover { background: color-mix(in srgb, currentColor 4%, transparent); }
.help ul { line-height: 1.55; }
.steps { line-height: 1.6; padding-left: 1.3rem; }
.steps li { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.card-meta { display: block; font-size: 0.85rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { text-decoration: none; padding: 6px 10px; }
.pager { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.faq-item { padding: 10px 0; }
.faq-item p { margin: 8px 0 4px; line-height: 1.55; }
.foot { padding: 28px 20px 44px; font-size: 0.9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 14px 0; line-height: 1.5; }
.foot-brand { margin: 12px 0 0; }
.foot-extra { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 0; }
.foot-extra a { text-decoration: underline; }
.kicker { margin: 0 0 6px; font-size: 0.85rem; }
.brand { font-weight: 750; padding: 0 0.18em; border-radius: 0.2em; background: color-mix(in srgb, currentColor 14%, transparent); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.inline-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Interactive AEO Tools, Filters, VS Cards & Glossary */
.tool-bar { margin: 0 0 16px; }
.tool-panel { padding: 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); margin: 12px 0 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tool-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 600; min-width: 0; }
.tool-input { width: 100%; max-width: 540px; padding: 10px 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, currentColor 26%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; font-family: inherit; font-size: 0.98rem; line-height: 1.3; outline: none; }
.tool-grid .tool-input { max-width: none; }
.tool-input:focus { border-color: currentColor; box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 16%, transparent); }

/* Skin-specific input & panel polish for crisp contrast on both Light and Dark skins */
body.skin-0 .tool-panel, body.skin-0 .vs-card, body.skin-0 .glossary-card { background: #fffdf8; border-color: #d9d0c1; }
body.skin-0 .tool-input { background: #ffffff; border-color: #c8bda8; color: #231c14; }
body.skin-3 .tool-panel, body.skin-3 .vs-card, body.skin-3 .glossary-card { background: #ffffff; border-color: #dce1e8; box-shadow: 0 4px 14px rgba(23, 32, 42, 0.05); }
body.skin-3 .tool-input { background: #f8fafb; border-color: #c5ced8; color: #17202a; }
body.skin-1 .tool-panel, body.skin-1 .vs-card, body.skin-1 .glossary-card { background: #241810; border-color: #4a3523; }
body.skin-1 .tool-input { background: #160f0a; border-color: #c48a3a; color: #f3e6d0; }
body.skin-1 .tool-input option { background: #160f0a; color: #f3e6d0; }
body.skin-2 .tool-panel, body.skin-2 .vs-card, body.skin-2 .glossary-card { background: #0d1724; border-color: #164954; }
body.skin-2 .tool-input { background: #070b12; border-color: #1ee0c0; color: #d7f7ff; }
body.skin-2 .tool-input option { background: #070b12; color: #d7f7ff; }
body.skin-4 .tool-panel, body.skin-4 .vs-card, body.skin-4 .glossary-card { background: #101010; border-color: #3a3222; }
body.skin-4 .tool-input { background: #080808; border-color: #8a7340; color: #ece7dc; }
body.skin-4 .tool-input option { background: #080808; color: #ece7dc; }

/* Side-by-side VS Cards on /compare/{a}-vs-{b} */
.vs-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin: 18px 0 28px; }
.vs-card { display: flex; gap: 16px; padding: 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); align-items: center; min-width: 0; }
.vs-thumb { width: 120px; flex: 0 0 120px; border-radius: 8px; overflow: hidden; display: block; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.vs-thumb img, .vs-thumb .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.vs-info { flex: 1 1 auto; min-width: 0; }
.vs-info h3 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.25; }
.vs-info h3 a { text-decoration: none; }
.vs-info h3 a:hover { text-decoration: underline; }
.vs-studio { margin: 0 0 10px; font-size: 0.86rem; opacity: 0.8; }
.vs-kpis { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; }
.vs-kpis div { display: flex; align-items: baseline; gap: 5px; font-size: 0.85rem; }
.vs-kpis dt { font-size: 0.72rem; text-transform: uppercase; opacity: 0.72; letter-spacing: 0.03em; }
.vs-kpis dd { margin: 0; font-weight: 700; }
.vs-badge { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.9rem; border: 2px solid currentColor; flex: 0 0 auto; }

/* Glossary Grid */
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 18px 0 28px; }
.glossary-card { padding: 16px 18px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); }
.glossary-card h2 { margin: 0 0 8px !important; font-size: 1.15rem !important; border: 0 !important; padding: 0 !important; }
.glossary-card p { margin: 0; line-height: 1.55; font-size: 0.95rem; }

/* AI Verify & Summarize Bar */
.ai-sum-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 10px 0 22px; padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); font-size: 0.85rem; }
.ai-sum-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-sum-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); flex: 0 0 auto; }
.ai-sum-label { font-weight: 700; opacity: 0.92; }
.ai-sum-source { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.ai-sum-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-sum-btn { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 700; text-decoration: none; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); background: color-mix(in srgb, currentColor 7%, transparent); color: inherit; transition: transform 0.12s ease, opacity 0.12s ease; }
.ai-sum-btn:hover { transform: translateY(-1px); text-decoration: none; opacity: 0.9; }
body.skin-0 .ai-sum-bar { background: #f8f5ef; border-color: #d8cfc0; }
body.skin-3 .ai-sum-bar { background: #f4f7f9; border-color: #cbd5e1; }
body.skin-1 .ai-sum-bar { background: #21160f; border-color: #4a3523; }
body.skin-2 .ai-sum-bar { background: #0c1522; border-color: #164954; }
body.skin-4 .ai-sum-bar { background: #111111; border-color: #3a3222; }

@media (max-width: 820px) {
  .vs-cards { grid-template-columns: 1fr; gap: 12px; }
  .vs-badge { margin: 0 auto; width: 36px; height: 36px; font-size: 0.8rem; }
}
@media (max-width: 720px) {
  .sheet-head { grid-template-columns: 1fr; }
  .top { align-items: center; flex-wrap: wrap; padding: 12px 16px; }
  .nav { flex: 1 1 100%; order: 3; gap: 8px 12px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
  .top > .btn { max-width: none; margin-left: auto; }
  .balance { grid-template-columns: 1fr; }
  .vs-card { flex-direction: column; align-items: flex-start; }
  .vs-thumb { width: 100%; max-width: 220px; flex: none; }
  .glossary-grid { grid-template-columns: 1fr; }
}
