/* 2F22E Mahjong — site styles (single file, no build step required) */
:root {
  --ink: #1c2233;
  --ink-2: #4a5164;
  --muted: #6d7385;
  --paper: #fbf8f3;
  --sand: #f3ece1;
  --blush: #f6e3df;
  --line: #e4ddd1;
  --white: #ffffff;
  --jade: #2d6a58;
  --jade-dark: #1f4f41;
  --cobalt: #2747c2;
  --gold: #b8913a;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(28, 34, 51, .10);
  --shadow-sm: 0 6px 20px rgba(28, 34, 51, .08);
  --max: 1200px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-variant-numeric: lining-nums; font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #f3efe7; font-size: .88rem; text-align: center; padding: 8px 16px; }
.announce a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { margin: auto; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 8px 16px 20px; }
.mobile-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }
.mobile-menu.open { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-jade { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn-jade:hover { background: var(--jade-dark); border-color: var(--jade-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.bg-sand { background: var(--sand); }
.bg-blush { background: var(--blush); }
.bg-ink { background: var(--ink); color: #f3efe7; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink .eyebrow { color: #e9c77d; }
.bg-ink p { color: #d9d6cf; }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jade); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--jade); }
.hero .lead { max-width: 540px; }
.rating { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: .95rem; color: var(--ink-2); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.hero-media { position: relative; }
.hero-media .frame { background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 1 / 1; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: -18px; top: 28px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); display: flex; gap: 12px; align-items: center; font-size: .9rem; line-height: 1.3; }
.hero-badge strong { display: block; font-size: 1rem; }
.swatch-row { display: flex; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.14); display: inline-block; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.trust svg { flex: 0 0 auto; color: var(--jade); }

/* ---------- Color grid ---------- */
.color-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .media { aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 1.12rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.product-card p { font-size: .92rem; color: var(--muted); margin: 0 0 10px; }
.product-card .btn { margin-top: auto; }
.product-card.is-hidden { display: none; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--blush); color: #9a3d33; padding: 4px 10px; border-radius: 999px; }

/* ---------- Feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-round { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.media-round img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.feature .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.feature .media img { width: 100%; height: 100%; object-fit: cover; }
.feature .body { padding: 20px 22px 24px; }
.feature h3 { font-size: 1.18rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--jade) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.bg-ink .check-list li::before { background-color: #e9c77d; }

/* Rules callouts */
.callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.callout { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px; }
.callout strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.callout span { font-size: .92rem; color: #cfccc4; }

/* ---------- Set / bundle ---------- */
.bundle { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.contents { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; list-style: none; padding: 0; margin: 20px 0 0; }
.contents li { display: flex; gap: 10px; align-items: baseline; font-size: .98rem; }
.contents li b { font-family: var(--sans); color: var(--jade); min-width: 22px; }
.note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ---------- Specs ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .98rem; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; font-weight: 600; background: #fdfbf7; }

/* ---------- Use cases ---------- */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.use .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blush); color: #9a3d33; margin-bottom: 16px; }
.use p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Video ---------- */
.video-card { position: relative; border-radius: 24px; overflow: hidden; background: #000; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-card img, .video-card video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); border: 0; cursor: pointer; color: #fff; }
.video-play span { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.video-play:hover span { transform: scale(1.06); }
.video-play em { position: absolute; left: 24px; bottom: 20px; font-style: normal; font-weight: 600; }

/* ---------- Learn cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card .num { font-family: var(--sans); font-weight: 700; font-size: 1.6rem; color: var(--jade); line-height: 1; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .text-link { margin-top: auto; }

/* ---------- Guide (long-form) ---------- */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.toc h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .95rem; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 760px; }
.prose section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .45em; }
.tile-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .96rem; }
.tile-table th, .tile-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.tile-table thead th { background: var(--sand); font-weight: 600; }
.tip { background: var(--blush); border-radius: 14px; padding: 18px 20px; margin: 20px 0; font-size: .98rem; }
.tip strong { color: #8a3229; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---------- Shop page: color picker ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pdp-media { position: sticky; top: 96px; }
.pdp-main { background: #fff; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 1 / 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; aspect-ratio: 1 / 1; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(2rem, 4vw, 3rem); }
.picker-label { font-weight: 600; margin: 26px 0 12px; }
.picker-label span { font-weight: 400; color: var(--muted); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.picker button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.pdp-info .check-list { margin-top: 26px; }
.pdp-buy { margin-top: 28px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pdp-buy .btn { width: 100%; }
.pdp-buy small { display: block; margin-top: 12px; color: var(--muted); font-size: .86rem; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; font-size: .97rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--sand); font-family: var(--serif); font-size: 1.1rem; }
.compare .yes { color: var(--jade); font-weight: 700; }
.compare .no { color: #b9b3a8; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--jade); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: 28px; padding: clamp(36px, 6vw, 72px); background: var(--jade); color: #fff; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3efe9; margin: 0; }
.cta-band .actions { justify-content: flex-end; margin: 0; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .94rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 13px 14px; border: 1px solid #d6cfc2; border-radius: 10px; background: #fdfcfa; color: var(--ink); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form select { -webkit-appearance: none; appearance: none; padding-right: 40px; background: #fdfcfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5164' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.form .hint { font-size: .86rem; color: var(--muted); font-weight: 400; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #151a28; color: #c9c6be; padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; }
.site-footer h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer a { display: block; text-decoration: none; color: #c9c6be; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .95rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #8f8c86; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero .lead { max-width: 680px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid, .uses { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-nav, .nav-cta .btn { display: none; }
  .menu-toggle { display: grid; }
  .hero-grid, .split, .bundle, .pdp, .cta-band, .guide-layout { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .pdp-media, .toc { position: static; }
  .card-grid, .support-grid { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .hero-badge { position: static; margin-top: 14px; display: inline-flex; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .brand img { height: 36px; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .feature-grid, .uses, .callouts, .contents, .form .row { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card .body { padding: 12px 12px 14px; }
  .product-card h3 { font-size: 1rem; }
  .product-card p { display: none; }
  .product-card .btn { min-height: 40px; padding: 8px 10px; font-size: .86rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 12px 14px; display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding-bottom: 2px; background: #fff; color: var(--muted); font-size: .86rem; }
  .compare th, .compare td { padding: 12px 8px; font-size: .9rem; }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Learning course ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.path a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.path a:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.path .lesson-no { font-weight: 700; font-size: .78rem; letter-spacing: .12em; color: var(--jade); }
.path b { font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; }
.path span:last-child { font-size: .9rem; color: var(--muted); }
.lesson-title { display: flex; flex-direction: column; gap: 6px; }
.lesson-title .lesson-no { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jade); }
.coach { background: #eef5f1; border-left: 4px solid var(--jade); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 22px 0; }
.coach b { display: block; color: var(--jade-dark); margin-bottom: 4px; }
.coach p { margin: 0; font-size: .97rem; }
.callout { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: .97rem; }
.callout.update { border-color: #e9c77d; background: #fff9ea; }
.defs { display: grid; grid-template-columns: 210px 1fr; gap: 0; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.defs dt, .defs dd { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.defs dt { font-weight: 700; background: #fdfbf7; }
.defs dt:last-of-type, .defs dd:last-of-type { border-bottom: 0; }
.key { border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0; min-width: 300px; }
.key th, .key td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.key th { font-family: var(--serif); font-size: 1.1rem; background: var(--sand); width: 110px; }
.tile-fig { margin: 8px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tile-fig img { width: 100%; height: auto; }
.tile-fig.narrow { max-width: 560px; }
.fig-label { font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.fig-note { font-size: .88rem; color: var(--muted); }
.joker-row { display: flex; gap: 18px; align-items: center; }
.joker-row img { width: 86px; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; flex: 0 0 auto; }
.joker-row p { margin: 0; }
.groups { display: grid; gap: 8px; margin: 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.groups div { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 12px; }
.groups span { font-weight: 700; color: var(--jade); font-size: .95rem; }
.tiles { display: flex; gap: 6px; flex-wrap: wrap; }
.t { width: 34px; height: 44px; border-radius: 6px; background: #f6faf8; border: 1px solid #cfe0d8; box-shadow: 0 2px 0 #cfe0d8; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.t.j { background: #fff3f1; border-color: #f0c9c2; box-shadow: 0 2px 0 #f0c9c2; color: #9a3d33; }
.passes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.passes div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.passes span { width: 100%; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.passes b { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.passes b + b::before { content: ""; }
.worked { background: #fff; border: 1px dashed #c9bfae; border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
.worked .kicker, .kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--jade); margin-bottom: 6px; }
.score { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0; font-size: .96rem; }
.score th, .score td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.score thead th { background: var(--sand); }
.quiz { display: grid; gap: 10px; margin: 16px 0; }
.quiz details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.quiz summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz .q-no { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--blush); color: #9a3d33; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.quiz details p { margin: 0 0 15px 38px; color: var(--jade-dark); font-weight: 500; }
.refs { font-size: .93rem; }
.refs a { word-break: break-word; }

/* ---------- Printables ---------- */
.print-card { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3.5vw, 40px); }
.print-card + .print-card { margin-top: 22px; }
.print-preview { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #fff; }
.print-preview img { width: 100%; height: auto; }
.print-tip { background: var(--sand); border-radius: 12px; padding: 14px 16px; font-size: .94rem; }
.payout { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .95rem; }
.payout th, .payout td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.payout thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem; }
.payout tbody th { background: var(--sand); font-family: var(--serif); font-size: 1.05rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Lifestyle gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Quick start ---------- */
.unboxed { background: var(--blush); }
.unboxed-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.unboxed-grid > div:first-child h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.unboxed-grid a.tile-link { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 16px; padding: 20px; text-decoration: none; border: 1px solid #efd3ce; transition: transform .2s, box-shadow .2s; }
.unboxed-grid a.tile-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.unboxed-grid a.tile-link b { font-family: var(--serif); font-size: 1.15rem; }
.unboxed-grid a.tile-link span { font-size: .92rem; color: var(--muted); }
.survey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.survey-grid label { display: flex; align-items: center; gap: 10px; background: #fdfcfa; border: 1px solid #d6cfc2; border-radius: 10px; padding: 12px 14px; font-weight: 500; cursor: pointer; }
.survey-grid input { width: 18px; height: 18px; accent-color: var(--jade); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge-row span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; }

@media (max-width: 1080px) {
  .path { grid-template-columns: repeat(2, 1fr); }
  .unboxed-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .print-card { grid-template-columns: 1fr; }
  .print-preview { max-width: 320px; }
  .defs { grid-template-columns: 1fr; }
  .defs dt { border-bottom: 0; padding-bottom: 2px; }
  .passes { grid-template-columns: 1fr; }
  .survey-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 160px; }
}
@media (max-width: 600px) {
  .path, .unboxed-grid { grid-template-columns: 1fr; }
  .t { width: 28px; height: 38px; font-size: .95rem; }
  .groups div { grid-template-columns: 62px 1fr; }
}
@media print {
  .site-header, .announce, .site-footer, .toc, .actions, .cta-band { display: none !important; }
  body { background: #fff; }
}
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid.four { grid-template-columns: 1fr; } }
.card .text-link + .text-link { margin-top: 6px; }
.form .survey-grid { grid-template-columns: repeat(2, 1fr); }
.form .survey-grid label { display: flex; flex-direction: row; align-items: center; }
.form .survey-grid input { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; margin: 0; }
.bg-ink .form p, .bg-ink .form .hint { color: var(--muted); }
.bg-ink .form p:first-child { color: var(--ink); }
@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery .tall, .gallery .wide { grid-row: auto; grid-column: auto; }
  .gallery figure:first-child { grid-column: span 2; }
}
@media (max-width: 600px) { .gallery { grid-auto-rows: 170px; } }
