/* Content blocks (src/blocks.mjs). Only theme variables from styles.css are used, so light and dark both work. */
.def { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.def-art { position: relative; aspect-ratio: 1 / 0.86; border-radius: var(--r-xl); background: var(--feature); display: grid; place-items: center; padding: 8%; }
.def-art > svg { width: 82%; height: auto; overflow: visible; }
.def-peek { position: absolute; right: 6%; bottom: 4%; width: 34%; }
.def-peek svg { width: 100%; height: auto; }
.def-copy h2 { font-size: clamp(36px, 4.6vw, 64px); margin: 14px 0 18px; }
.def-copy p { font-size: 18px; color: var(--prose); }
.def-copy p + p { margin-top: 14px; }
.def-answer { font-size: clamp(19px, 2vw, 23px) !important; line-height: 1.5; color: var(--ink) !important; }
.def-answer b { font-weight: 500; }
@media (max-width: 860px) { .def { grid-template-columns: 1fr; } .def-art { max-width: 420px; margin: 0 auto; width: 100%; } }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 34px; }
.rule { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; }
.rule b { display: block; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.rule span:not(.tick) { color: var(--stone); font-size: 15.5px; }
.rule .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--lime-soft); display: grid; place-items: center; }
.rule .tick svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.who-card { padding: 26px; border-radius: var(--r-lg); background: var(--paper-2); display: flex; flex-direction: column; gap: 8px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.who-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(43, 41, 38, 0.09); }
.who-card h3 { font-size: 26px; }
.who-card p { color: var(--stone); font-size: 16px; }
.who-art { height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.who-art svg { height: 100%; width: auto; overflow: visible; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

.rulegrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rulecard { padding: 28px; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--line) inset; display: flex; flex-direction: column; gap: 10px; }
.rulecard h3 { font-size: 24px; }
.rulecard p { color: var(--stone); font-size: 16px; }
.rulecard .fine { font-size: 12.5px; margin-top: auto; padding-top: 6px; }
.rc-art { height: 64px; width: 64px; border-radius: 18px; background: var(--lime-soft); display: grid; place-items: center; overflow: hidden; }
.rc-art svg { width: 78%; height: auto; }
@media (max-width: 980px) { .rulegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rulegrid { grid-template-columns: 1fr; } }

.covwrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line) inset; background: var(--white); }
.cov-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
.cov-table th, .cov-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cov-table thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.cov-table tbody tr:last-child th, .cov-table tbody tr:last-child td { border-bottom: 0; }
.cov-table tbody th { font-family: var(--serif); font-weight: 300; font-size: 21px; color: var(--ink); }
.cov-table td small { display: block; color: var(--stone); font-size: 13px; margin-top: 2px; }
.cmp td, .cmp th { min-width: 150px; }
.cmp .us { background: var(--feature); color: var(--ink); }
.cov { display: inline-block; padding: 4px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; background: var(--tag-bg); color: var(--tag-fg); }
.cov-deep { background: var(--lime-soft); color: var(--ink); }
.cov-gap { background: transparent; box-shadow: 0 0 0 1px var(--soft) inset; color: var(--stone); }

.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; max-width: 980px; margin: 0 auto; }
.gloss dl { padding: 18px 0; border-bottom: 1px solid var(--line); }
.gloss dt { font-family: var(--serif); font-weight: 300; font-size: 24px; color: var(--ink); }
.gloss dd { color: var(--stone); font-size: 16px; margin-top: 4px; }
@media (max-width: 720px) { .gloss { grid-template-columns: 1fr; } }

.facts { max-width: 900px; margin: 0 auto; border-radius: var(--r-lg); background: var(--paper-2); padding: 8px 28px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }
.facts dd { color: var(--ink); font-size: 17px; }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

.bn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bn { position: relative; display: flex; align-items: center; gap: 16px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-xl); overflow: hidden; min-height: 280px; }
.bn-feature { background: var(--feature); }
.bn-sky { background: linear-gradient(160deg, var(--sky), var(--paper-2)); }
.bn-copy { flex: 1 1 58%; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.bn-copy h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; }
.bn-copy p { color: var(--prose); font-size: 16.5px; }
.bn-actions { margin-top: 6px; }
.bn-art { flex: 0 0 34%; display: grid; place-items: center; }
.bn-art svg { width: 100%; height: auto; max-height: 190px; overflow: visible; }
@media (max-width: 900px) { .bn-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bn { flex-direction: column-reverse; align-items: flex-start; } .bn-art { flex: none; width: 56%; } }

.aiask .narrow-wide { max-width: 980px; }
.ai-prompt { margin: 32px auto 18px; max-width: 760px; }
.ai-prompt textarea { width: 100%; resize: none; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--outline); background: var(--glass-strong); color: var(--ink); font: 400 16px/1.5 var(--sans); }
.ai-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ai-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px 8px 10px; border-radius: 999px; border: 1px solid var(--ink); background: var(--glass-strong); color: var(--ink); font-family: var(--mono); font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 0.15s var(--ease), background 0.25s, color 0.25s; }
.ai-btn:hover { background: var(--ink); color: var(--paper); }
.ai-btn:active { transform: scale(0.97); }
.ai-btn .arr { display: grid; place-items: center; }
.ai-btn .arr svg { width: 16px; height: 16px; }
.ai-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #15130f; font-family: var(--sans); font-weight: 600; font-size: 13px; flex: none; }
.ai-badge svg { width: 20px; height: 20px; }
.ai-btn:hover .ai-badge { background: #f3f0ea; }
.ai-note { text-align: center; max-width: 640px; margin: 18px auto 10px; color: var(--ink); }

.kn-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.kn-toc a { padding: 8px 16px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); font-family: var(--mono); font-size: 13px; text-decoration: none; }
.kn-toc a:hover { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .who-card, .ai-btn { transition: none; } }
