/* ==========================================================================
   Curio Tabloid — DESKTOP ONLY (1024px and up; phones get the desktop layout scaled down).
   Palette: tabloid (white, black, signal red). Promo colours: yellow (default), dark, teal.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext; Japanese uses system fonts) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(../fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(../fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/source-sans-3-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/source-sans-3-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Palette ---------- */
:root { /* Tabloid: white, ink black, signal red */
  --bg: #ffffff; --surface: #f3f3f4; --card: #ffffff;
  --ink: #121212; --muted: #5f6066; --line: #e6e6e8;
  --accent: #e1262d; --accent-ink: #ffffff; --accent-soft: #fdeceb;
  --head: "Archivo", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --body: "Source Sans 3", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --head-w: 800; --title-ls: -0.015em;
  --radius: 2px; --radius-lg: 3px; --shadow: none;
  --topbar-bg: #121212; --topbar-ink: #cfcfd3;
  --mast-border: 3px solid var(--ink);
  --sec-border: 3px solid var(--ink);
  --nav-case: uppercase; --nav-size: 14px; --nav-w: 800; --nav-ls: .04em;
  --chip-bg: var(--accent); --chip-ink: #fff;
  --foot-bg: #121212; --foot-ink: #d9d9dc; --foot-muted: #8b8b91; --foot-line: #2a2a2d;
  --dot-r: 0;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word; min-width: 1024px;
}
:lang(ja) body, body:lang(ja) { line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; hyphens: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius);
  font: 700 15px/1 var(--body); letter-spacing: .01em; transition: filter .15s, transform .15s, background .15s;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--xl { min-height: 60px; font-size: 18px; padding: 0 28px; width: 100%; }

/* ---------- Category chip ---------- */
.chip {
  display: inline-block; padding: 4px 8px 3px; border-radius: var(--radius);
  background: var(--chip-bg); color: var(--chip-ink);
  font: 800 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase;
}
.ov .chip { background: var(--accent); color: #fff; padding: 4px 8px 3px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 16px; }
.topbar__date { text-transform: capitalize; white-space: nowrap; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 6px 7px; border-radius: 3px; opacity: .75; font-weight: 600; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: var(--mast-border); }
.mast__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
  font: 800 20px/1 var(--head);
}
.logo__word { font: var(--head-w) 26px/1 var(--head); letter-spacing: -0.02em; }
.logo__word b { color: var(--accent); font-weight: inherit; }
.nav { display: flex; margin-left: auto; gap: 4px; }
.nav a {
  padding: 10px 12px; font-size: var(--nav-size); font-weight: var(--nav-w);
  text-transform: var(--nav-case); letter-spacing: var(--nav-ls); border-radius: var(--radius);
}
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
/* ---------- Overlay card (hero) ---------- */
.ov { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: #1d1d1f; isolation: isolate; }
.ov img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ov::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.86) 100%); }
.ov__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px 18px; color: #fff; }
.ov__title { margin: 10px 0 0; font: var(--head-w) 19px/1.22 var(--head); letter-spacing: var(--title-ls); text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.ov:hover img { transform: scale(1.035); }
.ov--big .ov__title { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.1; }
.ov--big .ov__body { padding: 32px 36px 34px; max-width: 900px; }

.hero { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 540px; margin-top: 28px; }
.hero .ov--big { grid-row: 1 / span 2; }

/* ---------- Stack card ---------- */
.st { display: flex; flex-direction: column; min-width: 0; }
.st__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.st__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.st__text { padding-top: 12px; }
.st__title { margin: 8px 0 0; font: var(--head-w) 18px/1.25 var(--head); letter-spacing: var(--title-ls); transition: color .15s; }
.st__meta { margin-top: 8px; font-size: 13px; color: var(--muted); }
.st:hover .st__title { color: var(--accent); }
.st:hover .st__img img { transform: scale(1.04); }
.st--big .st__title { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.18; }

/* ---------- Row card ---------- */
.row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__title { margin: 6px 0 0; font: var(--head-w) 16px/1.3 var(--head); letter-spacing: var(--title-ls); transition: color .15s; }
.row:hover .row__title { color: var(--accent); }

/* ---------- Section heading ---------- */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 44px 0 20px; padding-bottom: 12px; border-bottom: var(--sec-border); }
.sec-h h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: var(--head-w) 24px/1.1 var(--head); letter-spacing: var(--title-ls); }
.sec-h h2::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--accent); border-radius: var(--dot-r); }
.sec-h a { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.sec-h a:hover { text-decoration: underline; }
.sec-h h2 { text-transform: uppercase; font-size: 22px; letter-spacing: .01em; }

/* ---------- Grids ---------- */
.scroller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.scroller .st__title { font-size: 17px; }
.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid .ov--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

/* Category blocks size to their column, not the viewport (the sidebar eats width on laptops). */
.layout > div { container-type: inline-size; min-width: 0; }
.cat-block { display: grid; gap: 22px; }
@container (min-width: 600px) {
  .cat-block { grid-template-columns: 1.1fr 1fr; gap: 24px; }
  .cat-block .row { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
}
@container (min-width: 760px) {
  .cat-block { gap: 30px; }
  .cat-block .row { grid-template-columns: 136px minmax(0, 1fr); gap: 14px; }
}

/* ---------- Main + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
@media (min-width: 1200px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.side { padding-top: 44px; }
.side__sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; }
.layout--post .side { padding-top: 24px; }

/* ---------- Latest feed ---------- */
.feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feed__h { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 800 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.feed__h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.feed ol { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 13px 18px; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed time { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.feed a { display: block; margin-top: 3px; font-weight: 600; font-size: 15px; line-height: 1.38; }
.feed a:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .feed__h::before { animation: none; } .ov img, .st__img img { transition: none; } }

/* ---------- Category page ---------- */
.cat-head { padding: 34px 0 26px; border-bottom: var(--sec-border); margin-bottom: 28px; }
.cat-head .crumbs { margin: 0 0 10px; }
.cat-head h1 { margin: 0; font: var(--head-w) clamp(36px, 6vw, 64px)/1 var(--head); letter-spacing: -0.025em; }
.cat-head h1 { text-transform: uppercase; }
.cat-head p { margin: 10px 0 0; color: var(--muted); }
.cat-tabs { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cat-tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.more-wrap { display: flex; justify-content: center; margin: 40px 0 0; }
.more-wrap .btn { min-width: 220px; min-height: 52px; }

/* ---------- Article ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 16px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }
.post { max-width: 760px; min-width: 0; }
.post__title { margin: 12px 0 14px; font: var(--head-w) clamp(29px, 4.4vw, 46px)/1.1 var(--head); letter-spacing: var(--title-ls); }
.post__deck { margin: 0 0 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.post__author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 800 14px/1 var(--head); }
.post__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.post__hero { margin: 24px 0 26px; }
.post__hero img, .post__body figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); }
figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.post__body { font-size: 19px; line-height: 1.72; }
:lang(ja) .post__body { font-size: 17px; line-height: 1.9; }
.post__body p { margin: 0 0 1.15em; }
.post__body h2 { margin: 1.7em 0 .55em; font: var(--head-w) 27px/1.2 var(--head); letter-spacing: var(--title-ls); }
.post__body figure { margin: 1.8em 0; }
.post__body [hidden] { display: none !important; }

/* "Continue reading" fold: fades the last visible lines; the click is a logged reader touchpoint */
.gate { position: relative; margin-top: -150px; padding-top: 150px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 0%, transparent) 0%, var(--bg) 62%); }
.gate .btn { width: 100%; max-width: 420px; }
.gate .btn svg { width: 18px; height: 18px; }
.gate.is-done { display: none; }

/* Pagination */
.pager { margin: 34px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow); }
.pager__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pager__bar { display: flex; gap: 4px; flex: 1; max-width: 220px; }
.pager__bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.pager__bar i.on { background: var(--accent); }
.pager__next svg { width: 22px; height: 22px; transition: transform .2s; }
.pager__next:hover svg { transform: translateX(4px); }
.pager__nums { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pager__nums a, .pager__nums span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border-radius: var(--radius); font-weight: 700; font-size: 15px; }
.pager__nums a:hover { background: var(--surface); }
.pager__nums [aria-current] { background: var(--ink); color: var(--bg); }
.pager__nums .pager__prev { margin-right: auto; color: var(--muted); font-weight: 600; }
.pager__nums .pager__prev + * { margin-left: 0; }

.read-next { margin-top: 8px; }
.read-next .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.read-next .st__title { font-size: 18px; }

/* ---------- Footer ---------- */
.foot { margin-top: 72px; background: var(--foot-bg); color: var(--foot-ink); }
.foot__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 44px; padding-bottom: 28px; }
.foot .logo__word { color: var(--foot-ink); }
.foot__tag { margin: 12px 0 0; color: var(--foot-muted); font-size: 15px; }
.foot h4 { margin: 0 0 12px; font: 800 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--foot-muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a:hover { color: #fff; text-decoration: underline; }
.foot .langs { flex-wrap: wrap; gap: 6px; }
.foot .langs a { opacity: 1; border: 1px solid var(--foot-line); padding: 6px 10px; }
.foot .langs a[aria-current] { border-color: var(--accent); box-shadow: none; }
.foot__copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--foot-line); font-size: 13px; color: var(--foot-muted); }

[hidden] { display: none !important; }
.layout--cat .side { padding-top: 0; }

/* ---------- Article blocks: listicle, quote, video, gallery, credits, notes ---------- */
.post__gap { height: 22px; }
.credit { display: block; margin-top: 2px; font-size: 12px; opacity: .85; }
.credit a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.post__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--accent); }
.post__body blockquote p { margin: 0 0 .4em; font: var(--head-w) clamp(21px, 2.4vw, 26px)/1.3 var(--head); letter-spacing: var(--title-ls); }
.post__body blockquote cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted); }

.hero-gal { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hero-gal__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; background: rgba(0,0,0,.74); color: #fff; font: 700 14px/1 var(--body); transition: background .15s; }
.hero-gal__badge svg { width: 18px; height: 18px; }
.hero-gal:hover .hero-gal__badge { background: var(--accent); }

.embed { margin: 1.8em 0; }
.embed__btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; color: #fff; text-align: left; cursor: pointer; }
.post__body .embed__btn img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; opacity: .85; }
.embed__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), transparent 35%, transparent 55%, rgba(0,0,0,.7)); }
.embed__play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s; }
.embed__play svg { width: 34px; height: 34px; margin-left: 4px; }
.embed__btn:hover .embed__play { transform: scale(1.07); }
.embed__provider { position: absolute; top: 12px; left: 14px; display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--body); }
.embed__provider svg { width: 14px; height: 14px; }
.embed__title { position: absolute; left: 14px; right: 74px; bottom: 13px; font: 700 16px/1.3 var(--body); }
.embed__dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 6px; border-radius: 4px; background: rgba(0,0,0,.78); font: 700 12px/1 var(--body); }
.embed.is-playing .embed__play { display: none; }

.note { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); font-size: 14px; line-height: 1.5; color: var(--muted); }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--ink); }
.note p { margin: 0; }
.sources { margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 15px; }
.sources h3 { margin: 0 0 8px; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sources ul { margin: 0; padding-left: 18px; }
.sources a { color: var(--accent); text-decoration: underline; }

/* Lightbox gallery */
.lb { position: fixed; inset: 0; z-index: 150; display: none; background: rgba(8,8,10,.97); color: #fff; }
.lb.is-open { display: flex; flex-direction: column; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font: 700 14px/1 var(--body); }
.lb__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; }
.lb__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 8px 64px 24px; overflow: auto; }
.lb__fig { margin: 0; width: 100%; max-width: 1100px; }
.lb__fig img { max-width: 100%; max-height: 72vh; width: auto; margin: 0 auto; object-fit: contain; }
.lb__fig figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: #ddd; }
.lb__fig small { display: block; margin-top: 4px; font-size: 12px; color: #999; }
.lb__promo { width: 100%; }
.lb__nav { position: absolute; top: 50%; width: 48px; height: 64px; margin-top: -32px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 38px; line-height: 1; }
.lb__nav--prev { left: 8px; } .lb__nav--next { right: 8px; }

/* ---------- MindOrbit house ads: "challenge" style ----------
   Heavy type, a ticking timer, one loud accent. Colours come from a theme set with
   data-promo-theme on <body> or any wrapper: yellow (default, chosen), dark, teal.
   Always labelled as sponsored; never imitates articles, site navigation or system dialogs. */
.mo, .st--promo { /* default = yellow (chosen): signal-yellow card, black accents */
  --x-bg: #FFD400; --x-glow: rgba(255,255,255,.5); --x-card: #FFFFFF; --x-ink: #111111; --x-text: #2B2B2B; --x-muted: #5C5000;
  --x-line: rgba(0,0,0,.16); --x-opt: #111111; --x-hot: #111111; --x-hot-ink: #FFD400; --x-hot-hover: #333333;
  --x-mark: rgba(255,255,255,.8); --x-pulse: 17,17,17; --x-red: #D21F1F; --x-green: #0F8A44; --x-green-ink: #FFFFFF;
  --x-curve: #111111; --x-curve-fill: rgba(0,0,0,.08); --x-label: rgba(0,0,0,.6);
  --x-shadow: 0 12px 30px rgba(120,90,0,.25);
  --x-head: "Archivo", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
/* Dark (spare, for A/B tests): black card, yellow accents */
[data-promo-theme="dark"] .mo, [data-promo-theme="dark"] .st--promo {
  --x-bg: #0E0E11; --x-glow: rgba(255,212,0,.16); --x-card: #1A1A20; --x-ink: #FFFFFF; --x-text: #D9D9E0; --x-muted: #A3A3B0;
  --x-line: #2E2E38; --x-opt: #3A3A46; --x-hot: #FFD400; --x-hot-ink: #111111; --x-hot-hover: #FFE14D;
  --x-mark: rgba(255,212,0,.45); --x-pulse: 255,212,0; --x-red: #FF3B30; --x-green: #2BD47D; --x-green-ink: #0B2416;
  --x-curve: rgba(255,255,255,.75); --x-curve-fill: rgba(255,255,255,.07); --x-label: rgba(255,255,255,.55);
  --x-shadow: 0 12px 30px rgba(0,0,0,.18);
}
/* Teal: MindOrbit's colour family, same loud delivery, amber accent */
[data-promo-theme="teal"] .mo, [data-promo-theme="teal"] .st--promo {
  --x-bg: #0B6F66; --x-glow: rgba(45,212,191,.45); --x-card: rgba(255,255,255,.10); --x-ink: #FFFFFF; --x-text: #D5F5F0; --x-muted: #A6DDD6;
  --x-line: rgba(255,255,255,.22); --x-opt: rgba(255,255,255,.42); --x-hot: #FBBF24; --x-hot-ink: #1F2D2B; --x-hot-hover: #FCD34D;
  --x-mark: rgba(251,191,36,.45); --x-pulse: 251,191,36; --x-red: #FF7A7A; --x-green: #6EE7B7; --x-green-ink: #053B2A;
  --x-curve: rgba(255,255,255,.85); --x-curve-fill: rgba(255,255,255,.10); --x-label: rgba(255,255,255,.72);
  --x-shadow: 0 12px 30px rgba(11,111,102,.3);
}
.mo {
  position: relative; margin: 34px 0; padding: 22px 26px 16px; overflow: hidden; border-radius: 14px;
  background: radial-gradient(110% 80% at 100% 0%, var(--x-glow), transparent 55%), var(--x-bg);
  color: var(--x-ink); text-align: left; font: 400 15px/1.5 var(--body);
  box-shadow: var(--x-shadow);
}
.mo__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; margin-bottom: 12px; }
.mo__pill, .mo-art__pill {
  display: inline-block; padding: 5px 9px 4px; border-radius: 4px; background: var(--x-hot); color: var(--x-hot-ink);
  font: 900 11px/1 var(--x-head); letter-spacing: .09em; text-transform: uppercase; transform: skew(-8deg);
}
.mo__spon { font-size: 11px; letter-spacing: .05em; color: var(--x-muted); white-space: nowrap; }
.mo__title { margin: 0 0 8px; font: 900 clamp(26px, 3.6vw, 36px)/1.04 var(--x-head); letter-spacing: -0.015em; text-transform: uppercase; text-wrap: balance; }
.mo__title span { background: linear-gradient(transparent 62%, var(--x-mark) 62%, var(--x-mark) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mo__text { margin: 0 0 14px; max-width: 48ch; font-size: 15px; color: var(--x-text); }
.mo__fine { margin: 12px 0 0; font-size: 11px; color: var(--x-muted); }
.mo__btn, .mo__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 18px;
  border-radius: 10px; background: var(--x-hot); color: var(--x-hot-ink); font: 900 16px/1.1 var(--x-head); letter-spacing: .02em; text-transform: uppercase;
  transition: transform .15s, background .15s;
}
.mo__btn:hover, .mo__cta:hover { background: var(--x-hot-hover); transform: translateY(-2px); }
.mo__btn svg, .mo__cta svg { width: 18px; height: 18px; flex: none; }
.mo__cta--block { display: flex; width: 100%; }
.mo .mo__cta { animation: mo-pulse 2.2s ease-out infinite; }
@keyframes mo-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--x-pulse), .5); } 70% { box-shadow: 0 0 0 14px rgba(var(--x-pulse), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--x-pulse), 0); } }
:lang(ja) .mo__title, :lang(ja) .mo__btn, :lang(ja) .mo__cta, :lang(ja) .mo__sub, :lang(ja) .mo__verdict { text-transform: none; line-height: 1.25; }

/* Puzzle with a 10-second timer */
.mo__timer { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.mo__secs { min-width: 40px; font: 900 34px/1 var(--x-head); color: var(--x-hot); font-variant-numeric: tabular-nums; }
.mo__bar { flex: 1; height: 8px; overflow: hidden; border-radius: 4px; background: var(--x-line); }
.mo__bar i { display: block; width: 100%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--x-red), var(--x-hot)); }
.mo--puzzle.is-hurry .mo__secs { color: var(--x-red); animation: mo-blink .5s steps(2) infinite; }
.mo--puzzle.is-won .mo__secs, .mo--puzzle.is-lost .mo__secs, .mo--puzzle.is-timeup .mo__secs { animation: none; }
@keyframes mo-blink { 50% { opacity: .35; } }
.mo__timeup { margin: -4px 0 10px; font: 900 14px/1.3 var(--x-head); letter-spacing: .03em; text-transform: uppercase; color: var(--x-red); }
.mo__seq { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.mo__seq span { min-width: 50px; height: 50px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-card); color: var(--x-ink); font: 900 22px/1 var(--x-head); font-variant-numeric: tabular-nums; }
.mo__seq .mo__q { border-color: var(--x-hot); background: var(--x-hot); color: var(--x-hot-ink); animation: mo-pop 1.2s ease-in-out infinite; }
@keyframes mo-pop { 50% { transform: scale(1.08); } }
.mo__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mo__opts button { min-height: 54px; border: 2px solid var(--x-opt); border-radius: 10px; background: transparent; color: var(--x-ink); font: 900 20px/1 var(--x-head); cursor: pointer; transition: border-color .15s, background .15s; }
.mo__opts button:hover:not(:disabled) { border-color: var(--x-hot); background: rgba(var(--x-pulse), .1); }
.mo__opts button:disabled { opacity: .4; cursor: default; }
.mo__opts .is-right { opacity: 1 !important; border-color: var(--x-green); background: var(--x-green); color: var(--x-green-ink); }
.mo__opts .is-wrong { opacity: 1 !important; border-color: var(--x-red); background: var(--x-red); color: #fff; }
.mo--puzzle.is-won .mo__q, .mo--puzzle.is-lost .mo__q { animation: none; }
.mo__result { margin-top: 14px; }
.mo__verdict { margin: 0 0 4px; font: 900 22px/1.15 var(--x-head); text-transform: uppercase; }
.is-won .mo__verdict { color: var(--x-green); }
.is-lost .mo__verdict { color: var(--x-red); }

/* IQ bell curve (colours follow the theme) */
.mo__bell { display: block; width: 100%; max-width: 320px; height: auto; }
.mo__bell .b-fill { fill: var(--x-curve-fill); }
.mo__bell .b-line { fill: none; stroke: var(--x-curve); stroke-width: 2.5; }
.mo__bell .b-tail { fill: var(--x-hot); }
.mo__bell .b-mark { stroke: var(--x-hot); stroke-width: 2; stroke-dasharray: 3 3; }
.mo__bell .b-top { fill: var(--x-hot); font: 900 13px "Archivo", Inter, sans-serif; }
.mo__bell .b-lab { fill: var(--x-label); font: 400 10px Inter, sans-serif; }
.mo__bell .b-lab--hot { fill: var(--x-hot); font-weight: 800; }

/* "Top 2%" block: bell curve + profile buttons that open the quiz directly */
.mo__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; }
.mo__genders { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mo__btn span { flex: 1; text-align: left; }
/* Buttons stack when the text column is narrow (gallery slide, small laptops) */
.mo__copy { container-type: inline-size; }
@container (max-width: 440px) { .mo__genders { grid-template-columns: 1fr; } }
.mo__hint { margin: 8px 0 0; font-size: 12px; color: var(--x-muted); }
.mo--end { margin-top: 38px; }
.mo--end .mo__title { font-size: 40px; }
.lb__promo .mo { max-width: 760px; margin: 0 auto; }

/* Sidebar */
.mo--side { margin: 0; padding: 18px 16px 14px; }
.mo__big { margin: 2px 0 0; font: 900 78px/.9 var(--x-head); letter-spacing: -0.03em; color: var(--x-hot); }
.mo__big small { display: block; margin-bottom: 6px; font-size: 16px; letter-spacing: .14em; color: var(--x-ink); }
.mo__sub { margin: 10px 0 6px; font: 900 19px/1.15 var(--x-head); text-transform: uppercase; }
.mo--side .mo__bell { margin: 2px 0 12px; }

/* In-feed native card */
.st--promo { position: relative; }
.st--promo .mo-art { position: relative; display: block; background: radial-gradient(100% 90% at 100% 0%, var(--x-glow), transparent 60%), var(--x-bg); }
.mo-art__pill { position: absolute; top: 12px; left: 14px; z-index: 1; }
.mo-art__big { position: absolute; top: 36px; left: 12px; font: 900 clamp(48px, 6vw, 66px)/1 var(--x-head); letter-spacing: -0.03em; color: var(--x-hot); }
.mo-art__bell { position: absolute; right: -4px; bottom: -6px; width: 72%; }
.mo-art__bell text { display: none; }
.chip.chip--promo { padding: 4px 8px 3px; background: var(--x-bg); color: var(--x-hot); }
.st__meta.mo-art__go { color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.st--promo:hover .st__title { color: inherit; text-decoration: underline; text-decoration-color: var(--x-bg); text-decoration-thickness: 3px; }

@media (prefers-reduced-motion: reduce) {
  .mo__btn, .mo__cta { transition: none; }
  .mo .mo__cta, .mo__seq .mo__q, .mo--puzzle.is-hurry .mo__secs { animation: none; }
}

.side > .feed { margin-bottom: 24px; }

/* ---------- WordPress content ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.custom-logo { display: block; width: auto; max-height: 40px; }
.noimg { display: block; width: 100%; height: 100%; min-height: 100%; background: var(--surface); }
.ov .noimg { position: absolute; inset: 0; background: #2a2a2e; }
.post__body .wp-block-image { margin: 0 0 .9em; }
.post__body .wp-block-image img { width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); }
.post__body figure img { aspect-ratio: auto; }
.post__body .wp-element-caption, .post__body figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: left; }
.post__body h2, .post__body h3 { margin: 1.5em 0 .5em; font: var(--head-w) 27px/1.2 var(--head); letter-spacing: var(--title-ls); }
.post__body h3 { font-size: 22px; }
.post__body > :first-child, .post__body .fold-rest > :first-child { margin-top: 0; }
.post__body ul, .post__body ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.post__body li { margin: .3em 0; }
.post__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post__body .mo a, .post__body .embed__btn { text-decoration: none; }
.post__body .wp-block-quote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 5px solid var(--accent); }
.post__body .wp-block-quote p { margin: 0 0 .4em; font: var(--head-w) 24px/1.3 var(--head); letter-spacing: var(--title-ls); }
.post__body .wp-block-quote cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--muted); }
.post__body .wp-block-embed { margin: 1.6em 0; }
.post__body .wp-block-embed iframe { width: 100%; }
.post__body .wp-block-separator { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.post__body .alignleft { float: left; margin: .3em 1.4em .8em 0; max-width: 50%; }
.post__body .alignright { float: right; margin: .3em 0 .8em 1.4em; max-width: 50%; }
.post__body .aligncenter { margin-left: auto; margin-right: auto; }

/* Listicles: headings with the "Numbered" style get a red number (continues across pages). */
.post__body .is-style-numbered { counter-increment: li; display: flex; align-items: flex-start; gap: 14px; }
.post__body .is-style-numbered::before {
  content: counter(li); flex: none; width: 46px; height: 46px; display: grid; place-items: center; margin-top: -4px;
  background: var(--accent); color: #fff; font: 800 23px/1 var(--head); border-radius: var(--radius);
}

/* Lite YouTube player once loaded */
.embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); }

/* A/B copy: both variants are in the HTML, the <html> class picks one */
html:not(.promo-v-b) .v-b, html.promo-v-b .v-a { display: none !important; }

/* Pages, search, empty states */
.post--page { margin: 0 auto; padding-bottom: 20px; }
.post--page .post__title { margin-top: 36px; }
.empty { margin: 10px 0 20px; color: var(--muted); }
.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 16px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; height: 46px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; }
.search-form .search-submit { height: 46px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--bg); font: 700 15px/1 var(--body); cursor: pointer; }
.foot__lang-h { margin-top: 24px !important; }
.foot ul li { list-style: none; }
