/* Dominó Blanco — website. Felt green, gold, the teams' teal and orange, ivory tiles.
   Playful headings (Baloo 2), clean body (Inter). Dark by design: colour pops on felt. */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --felt-900: #03241b; --felt-800: #053a2b; --felt-700: #0a5c43; --felt-500: #11a374;
  --gold: #ffd23f; --gold-2: #ffb703; --teal: #30c5e0; --orange: #ff8a1f; --coral: #ff5d73;
  --violet: #7b5cff; --wine: #a4162f; --ivory: #fff8e7;
  --ink: #f4f1e8; --ink-2: #c9d6cf; --ink-3: #8fa79c;
  --card: rgba(255,255,255,.06); --card-2: rgba(255,255,255,.10); --line: rgba(255,255,255,.12);
  --radius: 22px; --shadow: 0 24px 60px rgba(0,0,0,.45);
  --head: 'Baloo 2', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--felt-900); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: -.3px; }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 24px; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.grad { background: linear-gradient(180deg, #fff 30%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: linear-gradient(90deg, var(--gold), var(--orange), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(3,36,27,.72); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 21px/1 var(--head); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink-2); font: 600 15px/1 var(--body); padding: 10px 12px; border-radius: 999px; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--card-2); text-decoration: none; }
.nav a.cta { background: linear-gradient(135deg, #5865f2, #7b5cff); color: #fff; margin-left: 6px; }
.menu-btn { display: none; background: var(--card-2); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; padding: 9px 12px; font: 600 15px var(--body); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    background: rgba(3,36,27,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
  .nav a.cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 40px;
  background: radial-gradient(1100px 600px at 70% 20%, #0f8a62 0%, transparent 60%), radial-gradient(900px 500px at 10% 90%, #3a1a7a 0%, transparent 60%), linear-gradient(180deg, var(--felt-800), var(--felt-900)); }
.hero::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 65% 35%, rgba(255,255,255,.06) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle at 65% 35%, #000 0%, transparent 55%); -webkit-mask-image: radial-gradient(circle at 65% 35%, #000 0%, transparent 55%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); margin: 18px 0 28px; max-width: 520px; }
.hero .stack { position: relative; min-height: 460px; }
.hero .tablet { position: absolute; right: 0; top: 10px; width: 92%; transform: rotate(3deg); }
.hero .phone { position: absolute; left: -2%; bottom: 0; width: 66%; transform: rotate(-6deg); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .stack { min-height: 0; aspect-ratio: 1.25; }
}
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 700 16px/1 var(--body); color: #1b1410;
  background: linear-gradient(180deg, #ffe27a, var(--gold-2)); box-shadow: 0 10px 28px rgba(255,183,3,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.discord { background: linear-gradient(135deg, #5865f2, #7b5cff); color: #fff; box-shadow: 0 10px 28px rgba(88,101,242,.4); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.badge { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 600 14px var(--body); color: var(--ink-2); }
.badge b { color: var(--gold); }

/* ---------- device frames ---------- */
.device { border-radius: 26px; padding: 10px; background: linear-gradient(145deg, #2c2c32, #0b0b0e); box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), var(--shadow); }
.device img { border-radius: 17px; width: 100%; }
.device.tab { border-radius: 30px; padding: 12px; }
.device.tab img { border-radius: 19px; }
.device.portrait { border-radius: 30px; padding: 12px; }

/* ---------- sections ---------- */
section { padding: 90px 0; position: relative; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.sec-head p { font-size: 19px; color: var(--ink-2); margin-top: 14px; }
.band-violet { background: radial-gradient(900px 500px at 80% 0%, #4b2ab8 0%, transparent 60%), linear-gradient(180deg, #170b38, #100726); }
.band-sunset { background: radial-gradient(900px 500px at 20% 0%, #c2410c 0%, transparent 60%), linear-gradient(180deg, #3a0f06, #1d0703); }
.band-ocean { background: radial-gradient(900px 500px at 70% 10%, #1386c9 0%, transparent 60%), linear-gradient(180deg, #06223f, #04172b); }
.band-wine { background: radial-gradient(900px 500px at 30% 0%, #b3203f 0%, transparent 60%), linear-gradient(180deg, #330611, #1c030a); }
.band-felt { background: radial-gradient(900px 500px at 50% 0%, #0f8a62 0%, transparent 60%), linear-gradient(180deg, var(--felt-800), var(--felt-900)); }

/* feature tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile { position: relative; border-radius: var(--radius); padding: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, background .2s; }
.tile:hover { transform: translateY(-4px); background: var(--card-2); }
.tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.tile h3 { font-size: 23px; margin-bottom: 6px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.c-gold { background: linear-gradient(135deg, #ffd23f, #ff8a1f); } .c-teal { background: linear-gradient(135deg, #30c5e0, #1386c9); }
.c-violet { background: linear-gradient(135deg, #9b7bff, #5b3ad6); } .c-coral { background: linear-gradient(135deg, #ff7a8a, #e0284a); }
.c-green { background: linear-gradient(135deg, #3ee0a1, #0b8f63); } .c-blue { background: linear-gradient(135deg, #5865f2, #3b47c9); }

/* showcase rows: big image + short text */
.show { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; margin: 0 0 90px; }
.show:last-child { margin-bottom: 0; }
.show.flip { grid-template-columns: 1fr 1.35fr; }
.show.flip .media { order: 2; }
.show h3 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 12px; }
.show p { color: var(--ink-2); font-size: 18px; }
.show ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.show li { position: relative; padding-left: 24px; color: var(--ink); }
.show li::before { content: "◆"; color: var(--gold); position: absolute; left: 0; top: 0; }
.how { margin-top: 18px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.how b { color: var(--ink); }
.media { position: relative; }
.media .device { transform: rotate(-1.5deg); }
.show.flip .media .device { transform: rotate(1.5deg); }
.media .sticker { position: absolute; top: -18px; right: -10px; transform: rotate(8deg); padding: 10px 16px; border-radius: 999px; font: 800 18px var(--head); color: #1b1410; background: var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
@media (max-width: 900px) { .show, .show.flip { grid-template-columns: 1fr; gap: 28px; } .show.flip .media { order: 0; } }

/* gallery tabs */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tabs button { cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 700 15px var(--body); padding: 11px 18px; border-radius: 999px; }
.tabs button.on { background: linear-gradient(180deg, #ffe27a, var(--gold-2)); color: #1b1410; border-color: transparent; }
.gallery { display: none; }
.gallery.on { display: grid; gap: 18px; }
.gallery.landscape { grid-template-columns: repeat(2, 1fr); }
.gallery.portrait { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gallery.landscape, .gallery.portrait { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery figcaption { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 10px; }
.zoom { cursor: zoom-in; }

/* video */
.player { border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), var(--shadow); position: relative; }
.player video, .player iframe { width: 100%; display: block; aspect-ratio: 20 / 9; background: #000; border: 0; }
.player .yt { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; position: relative; }
.player .yt img { width: 100%; display: block; aspect-ratio: 20 / 9; object-fit: cover; }
.player.wide .yt img, .player.wide iframe { aspect-ratio: 16 / 9; }
.watch-next { text-align: center; margin: 56px 0 18px; font: 700 clamp(20px, 3vw, 28px)/1.3 var(--head); }
.player .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px; background: var(--gold); color: #1b1410; font-size: 32px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.player .yt:hover .yt-play, .player .yt:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.player .cap { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: 90%; text-align: center; padding: 10px 18px; border-radius: 14px;
  background: rgba(0,0,0,.72); color: #fff; font: 700 clamp(15px, 2vw, 22px)/1.3 var(--head); transition: opacity .3s; pointer-events: none; }
.chapters { display: flex; justify-content: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.chapters button { cursor: pointer; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 12px 18px; border-radius: 16px; font: 600 15px var(--body); }
.chapters button.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.chapters .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1b1410; font: 800 15px var(--head); }

/* doc pages */
.page-hero { padding: 70px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(44px, 6.4vw, 78px); }
.page-hero p { color: var(--ink-2); font-size: 20px; max-width: 720px; margin: 16px auto 0; }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.toc a { padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: 600 14px var(--body); }
.toc a:hover { background: var(--card-2); text-decoration: none; }
.feature { scroll-margin-top: 90px; }
.steps { counter-reset: s; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1b1410; font: 800 15px var(--head); }
.kbd { display: inline-block; padding: 1px 8px; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid var(--line); font: 600 14px var(--body); color: var(--ink); white-space: nowrap; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.compare .tile ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); }
.compare .tile li { margin: 6px 0; }

/* importance meter (strategy) */
.meter { display: inline-flex; gap: 4px; margin: 8px 0 10px; }
.meter i { width: 26px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.14); }
.meter.m5 i:nth-child(-n+5), .meter.m4 i:nth-child(-n+4), .meter.m3 i:nth-child(-n+3), .meter.m2 i:nth-child(-n+2), .meter.m1 i:nth-child(-n+1) { background: linear-gradient(90deg, var(--gold), var(--orange)); }
.prio { font: 800 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 700 19px/1.3 var(--head); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 26px; line-height: .8; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }
.faq summary::-webkit-details-marker { display: none; }

/* discord band */
.discord-band { border-radius: 30px; padding: 46px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, #8f7bff 0%, transparent 60%), linear-gradient(135deg, #3b47c9, #5865f2 50%, #7b5cff); box-shadow: var(--shadow); }
.discord-band h2 { font-size: clamp(34px, 4.6vw, 52px); }
.discord-band p { color: #e6e8ff; font-size: 18px; margin: 12px 0 22px; }
.discord-band .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.discord-band .chips span { padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.14); font: 700 15px var(--body); }
.discord-band .btn { background: #fff; color: #3b47c9; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
@media (max-width: 860px) { .discord-band { grid-template-columns: 1fr; padding: 30px; } }

/* legal / long text */
.doc { max-width: 820px; margin: 0 auto; padding: 0 0 80px; }
.doc h2 { font-size: 28px; margin: 38px 0 10px; }
.doc h3 { font-size: 21px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 10px 0; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--ink-3); margin-top: 8px; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.summary ul { margin: 8px 0 0; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: #021710; padding: 40px 0; color: var(--ink-3); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-foot h4 { color: var(--ink); font: 700 15px var(--body); margin: 0 0 10px; }
.site-foot a { color: var(--ink-2); display: block; margin: 6px 0; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.88); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 14px; box-shadow: var(--shadow); }

/* decoration */
.floaty { position: absolute; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (max-width: 760px) { .floaty { display: none; } }
@media (prefers-reduced-motion: reduce) { .floaty { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- drop-down menus ---------- */
.dd { position: relative; }
.dd-top .caret { font-size: 11px; opacity: .7; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 270px; max-height: 70vh; overflow: auto;
  padding: 8px; border-radius: 18px; background: rgba(4,30,22,.98); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: none; flex-direction: column; gap: 2px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: flex; }
.dd-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px !important; border-radius: 12px; color: var(--ink) !important; font: 600 15px var(--body); }
.dd-menu a span { width: 24px; text-align: center; }
.dd-menu a:hover { background: var(--card-2); text-decoration: none; }
.dd-menu .dd-all { color: var(--gold) !important; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; margin-bottom: 4px; }
@media (max-width: 900px) {
  .dd-menu { display: none !important; }
}

/* ---------- hub cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); transition: transform .2s, box-shadow .2s, background .2s; }
.card:hover { transform: translateY(-5px); background: var(--card-2); box-shadow: var(--shadow); text-decoration: none; }
.card img { aspect-ratio: 16 / 8; object-fit: cover; object-position: center; width: 100%; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 20px 22px; position: relative; }
/* A card without a picture: its icon sits inside the card, not over the (missing) picture's edge. */
.card > .card-body:first-child { padding-top: 22px; }
.card > .card-body:first-child .card-ico { position: static; margin-bottom: 12px; }
.card-ico { position: absolute; top: -26px; left: 18px; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, #ffd23f, #ff8a1f); box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.card h3 { font-size: 23px; margin: 18px 0 6px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---------- topic pages ---------- */
.page-hero.topic { padding: 46px 0 40px; }
.page-hero.topic h1 { font-size: clamp(40px, 5.6vw, 64px); }
.crumbs { font: 600 14px var(--body); color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--gold); }
.topic-ico { font-size: 54px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.docs-band { padding: 50px 0 80px; }
.docs { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto;
  padding: 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.side-title { padding: 8px 12px 10px; font: 800 13px var(--body); letter-spacing: .12em; text-transform: uppercase; }
.side-title a { color: var(--gold); }
.side > a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font: 600 15px var(--body); }
.side > a span { width: 22px; text-align: center; }
.side > a:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.side > a.on { background: linear-gradient(90deg, rgba(255,210,63,.22), rgba(255,210,63,.05)); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.doc-body { min-width: 0; }
.doc-body > * + * { margin-top: 28px; }
.doc-body h2 { font-size: clamp(28px, 3.2vw, 38px); }
.doc-body p { color: var(--ink-2); font-size: 18px; }
.doc-body h3 { font-size: 23px; margin-top: 40px; }
.doc-body h3 + p { margin-top: 10px; }
.doc-body ul:not(.steps) { color: var(--ink-2); font-size: 18px; padding-left: 22px; }
.doc-body ul:not(.steps) li { margin: 8px 0; }
.doc-body .lede { font-size: 20px; color: var(--ink); }
.doc-body .tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.callout { border-radius: 18px; padding: 18px 22px; background: rgba(255,210,63,.1); border: 1px solid rgba(255,210,63,.35); color: var(--ink); }
.callout b { color: var(--gold); }
/* A comparison table: it scrolls sideways on a narrow screen rather than widening the page. */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
table.diff { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
table.diff th, table.diff td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
table.diff thead th { color: var(--gold); font: 700 17px var(--head); }
table.diff tbody th { color: var(--ink); font-weight: 700; width: 19%; }
table.diff tbody tr:last-child th, table.diff tbody tr:last-child td { border-bottom: 0; }
/* A phone: each row stacks, every answer under its app's name, nothing to swipe. */
@media (max-width: 640px) {
  table.diff { min-width: 0; }
  table.diff, table.diff tbody, table.diff tr, table.diff tbody th, table.diff td { display: block; width: auto; }
  table.diff thead { display: none; }
  table.diff tr { border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
  table.diff tbody tr:last-child { border-bottom: 0; }
  table.diff tbody th { width: auto; border: 0; padding: 8px 15px 2px; color: var(--gold); font: 700 17px var(--head); }
  table.diff td { border: 0; padding: 5px 15px; }
  table.diff td[data-label]::before { content: attr(data-label); display: block; color: var(--ink); font-weight: 700; font-size: 14px; }
}
.where { display: flex; flex-wrap: wrap; gap: 8px; }
.where span { padding: 7px 12px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font: 600 14px var(--body); }
.prevnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 50px !important; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font: 700 18px var(--head); }
.pn small { color: var(--ink-3); font: 600 13px var(--body); }
.pn.next { text-align: right; }
.pn:hover { background: var(--card-2); text-decoration: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; }
  .side { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; order: 2; }
  .side-title { width: 100%; }
  .side > a { padding: 8px 10px; font-size: 14px; }
  .duo { grid-template-columns: 1fr; }
}

/* Strategy priority ladder: one row per strategy, widest bar first */
.ladder { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; gap: 10px; }
.ladder .tile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name meter" "name prio"; align-items: center; padding: 14px 20px; text-decoration: none; color: inherit; }
.ladder .tile h3 { grid-area: name; margin: 0; }
.ladder .tile .meter { grid-area: meter; margin: 0; justify-self: end; }
.ladder .tile .prio { grid-area: prio; justify-self: end; margin: 4px 0 0; }
.ladder .tile:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .ladder .tile { grid-template-columns: 1fr; grid-template-areas: "name" "meter" "prio"; } .ladder .tile .prio, .ladder .tile .meter { justify-self: start; } }

/* Site search (site.js): the header button and the box over the page. */
.site-head .brand { order: 0; } .site-head .nav { order: 1; margin-left: auto; } .search-btn { order: 2; } .menu-btn { order: 3; }
.search-btn { background: var(--card-2); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; width: 40px; height: 40px;
  font: 700 22px/1 var(--body); cursor: pointer; flex: none; }
.search-btn:hover { border-color: var(--gold); color: var(--gold); }
.search-panel { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(0,0,0,.55); padding: 80px 16px 16px; }
.search-panel.on { display: block; }
.search-box { max-width: 680px; margin: 0 auto; background: #062b21; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.search-box input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--ink); font: 500 19px var(--body); padding: 18px 20px; outline: none; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: min(62vh, 560px); overflow-y: auto; }
.search-results:empty { display: none; }
.search-results a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--card-2); }
.search-results small { color: var(--gold); font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.search-results b { font: 700 17px/1.3 var(--head); }
.search-results span { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.search-results mark { background: rgba(255,210,63,.28); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.search-results .none { padding: 14px; color: var(--ink-3); }

/* The holiday VIP gift: a bar under the header on every page, and a band on the home pages. */
.promo-bar { display: block; text-align: center; padding: 9px 16px; font: 600 15px/1.4 var(--body); color: #1b1410;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.promo-bar[hidden], .promo[hidden] { display: none; }
.promo-bar b { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.promo-bar:hover { filter: brightness(1.05); }
.promo-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 34px 0; }
.promo-wrap h2 { margin: 0 0 8px; }
.promo-wrap p { margin: 0; max-width: 640px; }
.search-btn { display: grid; place-items: center; }
