/* The Bot Ledger. DM Sans + JetBrains Mono, white, blue. Home = desk layout; content pages
   = single column article; section indexes = card lists. No external requests. */
@font-face { font-family: "DM Sans"; font-weight: 400; src: url("../fonts/dm-sans-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 500; src: url("../fonts/dm-sans-500-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-weight: 700; src: url("../fonts/dm-sans-700-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; src: url("../fonts/jetbrains-mono-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; src: url("../fonts/jetbrains-mono-600-normal.woff2") format("woff2"); font-display: swap; }
:root { --bg:#fff; --bg-2:#f6f7f9; --card:#fff; --line:#e3e6ea; --line-2:#cfd4db; --tx:#0A1428; --tx-2:#46536B; --tx-3:#7c8492;
  --acc:#1f5eff; --acc-deep:#153fb0; --acc-soft:#e9efff; --acc-line:#c9d7ff; --acc-tx:#fff;
  --lost:#b3261e; --lost-bg:#fdf1ef; --lost-line:#f3cfc9; --flat:#6b7280; --won:#158a5a; --won-bg:#e3f4ea;
  --warn:#c77700; --warn-bg:#fff6e5; --warn-line:#f2ddb0;
  --globe-line:#b9cdee; --globe-dot:#a9b4c4; --globe-sea:#bfd6f7;
  --sans:"DM Sans",ui-sans-serif,system-ui,sans-serif; --display:"DM Sans",ui-sans-serif,sans-serif; --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --ink:#101a2e; --ink-2:#1b2a4a; --shadow:0 10px 30px rgba(31,94,255,.10); --r:10px; --r-s:6px; --r-btn:8px; --wrap:1240px; --navy:#0A1428; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.55 var(--sans); overflow-x: clip; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.2; font-family: var(--display); }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lost { color: var(--lost); } .flat { color: var(--flat); } .won { color: var(--won); }
.tag { display: inline-block; width: max-content; font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--tx-3); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 4px 7px; }
.warn { color: var(--tx-2); font-size: 14px; padding-left: 12px; border-left: 3px solid var(--warn); }
.note { font-size: 13px; color: var(--tx-3); }
.lede { color: var(--tx-2); font-size: 18px; max-width: 62ch; }
.crumbs { font: 400 12px var(--mono); color: var(--tx-3); margin-bottom: 10px; }
.crumbs a { color: var(--tx-3); }
.btn { display: inline-block; background: var(--acc); color: var(--acc-tx); font-weight: 600; padding: 11px 18px; border-radius: var(--r-btn); font-size: 15px; min-height: 44px; }
.btn:hover { background: var(--acc-deep); text-decoration: none; }
.btn-ghost { background: none; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-s { width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }
.ic-h { width: 22px; height: 22px; color: var(--acc); margin-right: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--tx); font-size: 16px; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-foot { width: 18px; height: 18px; color: var(--tx-3); }
.vmark { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--r-s); background: var(--tx); color: var(--bg); font: 700 15px var(--mono); }

/* top bar, geo banner, footer */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid #E3E8F2; }
.top-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 32px; }
.nav { margin-left: auto; display: flex; gap: 8px; }
.nav a { color: var(--tx); font-weight: 600; padding: 8px 12px; border-radius: var(--r-s); font-size: 15px; }
.nav a:hover { color: var(--acc); text-decoration: none; }
.nav a[aria-current] { color: var(--acc); }
.nav-toggle, .mobile-nav { display: none; }
.lang { position: relative; margin-left: 4px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-s); font: 600 14px var(--mono); color: var(--tx); cursor: pointer; border: 1px solid #E3E8F2; }
.lang summary::-webkit-details-marker { display: none; }
.flag { width: 20px; height: 14px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(10,20,40,.12); }
.lang[open] summary { border-color: var(--acc); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; background: #fff; border: 1px solid #E3E8F2; border-radius: 10px; box-shadow: 0 12px 30px rgba(10,20,40,.12); min-width: 160px; padding: 6px; z-index: 40; }
.lang li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--tx); font: 500 14px var(--sans); }
.lang li a:hover { background: var(--acc-soft); color: var(--acc); text-decoration: none; }
.lang li a[aria-current] { color: var(--acc); font-weight: 700; }
.nav-toggle .ic { margin-right: 6px; }
.geo { display: flex; gap: 16px; align-items: center; margin: 0; padding: 12px 24px; background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); font-size: 14px; }
.geo p { flex: 1; }
.geo button { background: none; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 6px 10px; font-size: 13px; min-height: 36px; }
.foot { margin-top: 64px; background: var(--navy); color: #C7D3EA; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-name { display: flex; gap: 11px; align-items: center; }
.foot-name b { color: #fff; font-size: 15px; }
.foot-brand p { font-size: 13.5px; color: #9FB0D0; line-height: 1.6; }
.foot .logo-foot { width: 26px; height: auto; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7FA0FF; padding-bottom: 8px; border-bottom: 2px solid #7FA0FF; margin-bottom: 6px; }
.foot a { color: #E6EDF7; font-size: 14px; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.foot-bottom p { max-width: var(--wrap); margin: 0 auto; padding: 16px 32px; font-size: 12.5px; color: #8FA3C8; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand { grid-column: 1 / -1; } }

/* photos, charts */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 12px; color: var(--tx-3); padding: 6px 0 0; }
.photo { overflow: visible; background: none; }
.photo img { border-radius: var(--r); }
.chart-wrap { position: relative; width: 100%; max-width: 640px; height: 260px; margin: 8px 0 0; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.fig { margin: 24px 0; display: grid; gap: 8px; }
.fig figcaption { font-size: 13px; color: var(--tx-2); max-width: 64ch; }

/* home (Claude Design layout): hero with live ticker, guide cards, numbers band, tools, articles */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.hero { background: linear-gradient(180deg, #F5F8FF 0%, #fff 78%); padding-top: 46px; }
.hero-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.hero h1 { font: 800 42px/1.12 var(--display); letter-spacing: -.022em; color: var(--tx); max-width: 20ch; }
.hero-lede { font-size: 19px; line-height: 1.5; color: #33415C; }
.hero-lede b { color: var(--tx); }
.hero-links { margin-top: 14px; font-size: 15px; font-weight: 700; }
.hero-links span { color: #C3CCDE; padding: 0 14px; }
.hero-media { position: relative; margin-top: 34px; border-radius: 16px; overflow: hidden; }
.hero-media > img { width: 100%; height: 330px; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,14,32,.1) 15%, rgba(6,14,32,.9) 100%); }
.hero-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 28px 24px; z-index: 1; }
.live { display: flex; gap: 9px; align-items: center; padding: 0 4px 12px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.live i { width: 8px; height: 8px; border-radius: 99px; background: #54FF9E; animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(84,255,158,.55); } 100% { box-shadow: 0 0 0 7px rgba(84,255,158,0); } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }
.tick { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tk { background: rgba(6,14,32,.55); border: 2px solid var(--tk, var(--acc)); border-radius: 12px; }
.tk-in { display: grid; gap: 9px; padding: 14px 18px; color: #fff; border-radius: 10px; }
a.tk-in:hover { text-decoration: none; color: #fff; background: rgba(6,14,32,.35); }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-ex { display: flex; gap: 8px; align-items: center; font: 400 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.tk-ex img { width: 15px; height: 15px; border-radius: 3px; }
.tk-chg { font: 600 11px var(--mono); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.tk-chg.up { color: #54FF9E; background: rgba(84,255,158,.14); }
.tk-chg.down { color: #FF9B93; background: rgba(255,138,128,.16); }
.tk-chg.flat { color: #B9C7E4; background: rgba(185,199,228,.16); }
.tk-q { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-off { color: #B9C7E4; font-weight: 400; }
.tk-foot { display: flex; justify-content: space-between; align-items: end; margin-top: 1px; }
.tk-p { font: 700 25px/1 var(--mono); }
.tk-p small { font: 500 11px var(--mono); color: #B9C7E4; }
.sec { margin-top: 60px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.sec-head h2 { font: 800 29px/1.15 var(--display); letter-spacing: -.02em; color: var(--tx); }
.all { font-size: 15px; font-weight: 700; white-space: nowrap; margin-left: 16px; }
.g3 > *, .g4 > *, .tick > *, .hero-top > * { min-width: 0; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: 40px; border-top: 1px solid #E3E8F2; padding-top: 30px; }
.gcard, .acard, .feat { display: block; color: var(--tx); }
.acard { display: flex; flex-direction: column; }
.gcard:hover, .acard:hover, .feat:hover { color: var(--acc); text-decoration: none; }
.gcard > img, .feat .thumb img, .acard .thumb img { width: 100%; height: auto; border-radius: 12px; display: block; }
.acard .thumb { margin-bottom: 14px; }
.acard .thumb img { aspect-ratio: 16 / 9; object-fit: cover; }
.gcard { padding: 26px 26px 24px; border: 1px solid #DCE4F2; border-radius: 14px; background: linear-gradient(180deg, #F3F7FF 0%, #EAF0FF 100%); }
.gcard:hover { border-color: var(--acc); background: #fff; }
.gc-mark { display: flex; align-items: center; height: 40px; }
.gc-mark img { height: 32px; width: auto; max-width: 100%; }
.gcard .ttl { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; margin-top: 18px; }
.gcard .dsc, .acard .dsc { display: block; font-size: 14.5px; line-height: 1.55; color: var(--tx-2); margin-top: 8px; }
.gcard time, .acard time, .feat time { display: block; font: 400 11px var(--mono); color: var(--tx-2); margin-top: 10px; }
.numbers { margin-top: 64px; background: linear-gradient(180deg, #E8EFFF 0%, #F3F7FF 100%); padding: 52px 0 56px; }
.numbers h2 { font: 800 29px/1.15 var(--display); letter-spacing: -.02em; color: var(--tx); }
.numbers .g3 { gap: 24px; margin-top: 26px; }
.ncard { background: #fff; border-radius: 14px; padding: 24px 26px; box-shadow: 0 1px 3px rgba(16,32,64,.07); }
.ncard h3 { font: 700 16px/1.3 var(--display); letter-spacing: 0; }
.ncard p { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--tx-2); }
.ncard a { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; }
.chart-dark { max-width: none; height: 190px; margin: 14px 0 0; padding: 12px 10px 8px; background: var(--navy); border-radius: 10px; }
.tools { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; margin-top: 28px; }
.geo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.tool-pic { display: grid; grid-template-rows: auto 1fr auto; gap: 0; }
.tool-pic-body { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 20px; align-items: center; margin-top: 8px; }
.tool-pic-body img { width: 140px; height: auto; justify-self: end; }
.tool-pic .geo-row { margin-top: 18px; align-self: end; }
@media (max-width: 600px) { .tool-pic-body { grid-template-columns: 1fr; } .tool-pic-body img { width: 120px; justify-self: start; order: -1; } }
/* CTA button: pill, blue gradient, soft pulse, icon wiggle, white fill sweeps in on hover */
.btn-cta { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--sans); color: #fff; padding: 15px 28px; border: 0; border-radius: 999px; cursor: pointer; position: relative; overflow: hidden; min-height: 48px;
  background: linear-gradient(135deg, #5A8BFF 0%, var(--acc) 52%, #1747C7 100%); animation: cta-pulse 2.2s ease-out infinite; transition: box-shadow .3s ease, letter-spacing .3s ease, transform .1s ease, color .3s ease; -webkit-tap-highlight-color: transparent; }
.btn-cta span, .btn-cta svg { position: relative; z-index: 2; }
.btn-cta svg { width: 20px; height: 20px; flex: none; transform-origin: 50% 50%; animation: cta-wiggle 2.6s ease-in-out infinite; }
.btn-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #fff; clip-path: circle(0% at 50% 50%); transition: clip-path .45s ease; }
.btn-cta:hover, .btn-cta:focus-visible { animation-play-state: paused; letter-spacing: .02em; color: var(--acc); box-shadow: 0 0 0 3px rgba(31,94,255,.9); outline: none; }
.btn-cta:hover::before, .btn-cta:focus-visible::before { clip-path: circle(75% at 50% 50%); }
.btn-cta:active { transform: scale(.97); }
.btn-cta:disabled { opacity: .7; cursor: wait; }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,94,255,.55); } 70% { box-shadow: 0 0 0 16px rgba(31,94,255,0); } 100% { box-shadow: 0 0 0 0 rgba(31,94,255,0); } }
@keyframes cta-wiggle { 0%, 72%, 100% { transform: rotate(0); } 76% { transform: rotate(-16deg); } 80% { transform: rotate(14deg); } 84% { transform: rotate(-10deg); } 88% { transform: rotate(8deg); } 92% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .btn-cta, .btn-cta svg { animation: none !important; } }
.geo-out { font-size: 14px; color: var(--tx-2); }
.geo-t { margin-top: 16px; max-width: 560px; }
.geo-t th { background: none; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); padding: 0 0 8px; border-bottom: 1px solid #E3E8F2; }
.geo-t tbody th { font: 600 14px var(--sans); padding: 10px 0; border-bottom: 1px solid #EEF2F9; }
.geo-t td { font: 600 13px var(--mono); padding: 10px 0; border-bottom: 1px solid #EEF2F9; }
.geo-t td.won { color: var(--won); } .geo-t td.lost { color: var(--lost); } .geo-t td.mid { color: var(--warn); }
.geo-modal { border: 0; border-radius: 16px; padding: 0; max-width: min(92vw, 520px); width: 100%; box-shadow: 0 30px 80px rgba(10,20,40,.35); }
.geo-modal::backdrop { background: rgba(10,20,40,.55); backdrop-filter: blur(2px); }
.geo-box { position: relative; padding: 28px 30px 26px; }
.geo-box-wide { max-width: none; }
#lat-modal { max-width: min(92vw, 640px); }
.geo-box h2 { font: 800 21px/1.2 var(--display); letter-spacing: -.01em; padding-right: 36px; }
.geo-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: var(--bg-2); border-radius: 50%; font-size: 22px; line-height: 1; color: var(--tx-2); }
.geo-close:hover { background: var(--acc-soft); color: var(--acc); }
.geo-steps { list-style: none; display: grid; gap: 12px; margin: 20px 0 6px; }
.geo-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--tx-3); }
.geo-steps li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; box-sizing: border-box; }
.geo-steps li.run { color: var(--tx); }
.geo-steps li.run i { border-color: var(--acc); border-top-color: transparent; animation: geospin .8s linear infinite; }
.geo-steps li.done { color: var(--tx); }
.geo-steps li.done i { border-color: var(--won); background: var(--won); box-shadow: inset 0 0 0 3px #fff; }
.geo-steps li.bad i { border-color: var(--lost); background: var(--lost); box-shadow: inset 0 0 0 3px #fff; }
@keyframes geospin { to { transform: rotate(360deg); } }
.geo-t tbody tr { animation: georow .35s ease both; }
@keyframes georow { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .geo-steps li.run i { animation: none; border-top-color: var(--acc); } .geo-t tbody tr { animation: none; } }
.geo-modal .geo-t { max-width: none; }
.lat-t td:last-child { width: 30%; }
.lat-bar { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--won), var(--warn) 55%, var(--lost)); transition: width .5s ease; }
.tool { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #DCE4F2; border-radius: 14px; padding: 28px 32px; }
.tool h2 { font: 800 21px/1.2 var(--display); letter-spacing: -.01em; }
.g-desk { height: 330px; margin-top: 6px; border-radius: 10px; overflow: hidden; }
.tool > .note { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--tx-2); }
.feat { display: grid; grid-template-columns: 440px 1fr; gap: 52px; align-items: center; margin-top: 30px; }
.feat .ttl { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.feat .dsc { display: block; font-size: 17px; line-height: 1.5; color: var(--tx); margin-top: 12px; }
.feat .lead { display: block; font-size: 15.5px; line-height: 1.6; color: var(--tx-2); margin-top: 14px; }
.feat .foot-row { margin-top: 12px; }
.thumb { display: block; position: relative; }
.thumb .kind { position: absolute; right: 10px; bottom: 10px; }
.kind { font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--acc); border-radius: 99px; padding: 5px 10px; white-space: nowrap; box-shadow: 0 2px 8px rgba(10,20,40,.25); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.foot-row time { margin-top: 0; }
.acard, .feat > span { display: flex; flex-direction: column; }
.acard .dsc { flex: 1; }
.acard .ttl { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.acard .dsc { font-size: 13.5px; line-height: 1.5; }

/* globe */
.g-wrap { position: relative; min-width: 0; }
.g-wrap canvas { display: block; width: 100%; height: 100%; --g-line: var(--globe-line); --g-dot: var(--globe-dot); --g-acc: var(--acc); --g-ink: var(--tx); --g-sea: var(--globe-sea); --g-font: var(--sans); --g-label-bg: rgba(255,255,255,.88); --g-coast: #6b7a94; --g-sea-hi: #e3eefc; --g-land: #f7f8fa; }
.g-label { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: var(--r-s); font-size: 12px; line-height: 1.35; display: grid; gap: 2px; max-width: 240px; z-index: 2; }
.g-label b { font-size: 13px; }
.g-label span { opacity: .8; }
.g-legend { position: absolute; left: 8px; bottom: 8px; list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--tx-2); background: rgba(255,255,255,.85); padding: 6px 8px; border-radius: var(--r-s); }
.g-legend li { display: flex; align-items: center; gap: 8px; }
.g-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k-pm { background: var(--acc); box-shadow: 0 0 0 1.5px #fff; }
.k-spot { border: 2px solid var(--tx); }
.k-host { border-radius: 1px !important; border: 2px solid var(--acc); }
.g-focus { position: absolute; left: 0; bottom: 0; display: flex; gap: 18px; padding: 6px 8px; background: rgba(255,255,255,.85); border-top-right-radius: 8px; }
.g-focus button { background: none; border: 0; padding: 0; color: var(--acc); font: 400 12px var(--mono); min-height: 32px; }
.g-focus button:hover { text-decoration: underline; }

/* calculator */
.calc { display: block; }
.calc label { display: block; font-size: 14px; font-weight: 600; margin-top: 20px; color: var(--tx); }
.calc-row { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.calc-row input { flex: 1; accent-color: var(--acc); min-height: 32px; }
.calc-row output { font: 700 17px var(--mono); color: var(--acc); min-width: 42px; text-align: right; }
.calc-t { margin-top: 16px; }
.calc-t th { background: none; white-space: normal; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); padding: 0 0 8px; border-bottom: 1px solid #E3E8F2; }
.calc-t th + th, .calc-t td { text-align: right; }
.calc-t tbody th { text-align: left; font: 600 14px var(--sans); padding: 11px 0; border-bottom: 1px solid #EEF2F9; }
.calc-t td { font: 400 13px var(--mono); padding: 11px 0; border-bottom: 1px solid #EEF2F9; font-variant-numeric: tabular-nums; }
.calc-t tbody tr:last-child th, .calc-t tbody tr:last-child td { border-bottom: 1px solid #EEF2F9; }
.calc > .note { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--tx-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin: 16px 0; }
table th { text-align: left; font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--tx-3); background: var(--bg-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table td, table tbody th { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
table tbody tr:last-child td, table tbody tr:last-child th { border-bottom: 0; }
table tbody th { font: 600 15px var(--sans); text-transform: none; letter-spacing: 0; background: none; color: var(--tx); white-space: nowrap; }
table td { color: var(--tx-2); }

/* card lists (home + section indexes) */
.card-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.card-list-feat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-list-feat > li:first-child { grid-column: span 2; grid-row: span 2; }
.card-list-feat > li:first-child .ttl { font-size: 24px; letter-spacing: -.02em; }
.card-list-feat > li:first-child .dsc { font-size: 15px; }
.card a { display: grid; grid-template-rows: auto 1fr; gap: 0; color: var(--tx); height: 100%; }
.card a:hover { text-decoration: none; }
.card a:hover .ttl { color: var(--acc); }
.card-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-radius: 12px; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 16px 0 0; align-content: start; }
.card .ttl { font-weight: 700; font-size: 19px; line-height: 1.3; }
.card .dsc { color: var(--tx-2); font-size: 14.5px; line-height: 1.55; }
.card .meta, .guide-list .meta, .entry-list .meta, .art-meta { display: flex; gap: 12px; font: 400 12px var(--mono); color: var(--tx-3); margin-top: 4px; }
.listing { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.list-band { background: linear-gradient(180deg, #F5F8FF 0%, #fff 100%); border-bottom: 1px solid #E3E8F2; margin-bottom: 36px; }
.list-head { max-width: var(--wrap); margin: 0 auto; padding: 46px 32px 44px; }
.list-head h1 { font: 800 42px/1.12 var(--display); letter-spacing: -.022em; margin-bottom: 10px; }

/* article pages: full-width hero image, wide prose column with a sticky side rail */
.article { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.art-band { background: linear-gradient(180deg, #F5F8FF 0%, #fff 100%); }
.art-head { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 120px; }
.art-head > * { max-width: 900px; }
.art-hero { margin: -90px 0 36px; position: relative; z-index: 1; }
.art-hero img { box-shadow: 0 1px 3px rgba(16,32,64,.07); }
.art-head h1 { font: 800 clamp(30px, 3.4vw, 44px)/1.12 var(--display); letter-spacing: -.022em; margin-bottom: 12px; }
.art-meta { margin-top: 12px; }
.art-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; }
.art-hero figcaption { font-size: 12px; color: var(--tx-3); padding-top: 6px; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 56px; align-items: start; }
.art-side { position: sticky; top: 80px; display: grid; gap: 20px; }
.side-box h2 { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 8px; }
.side-toc { list-style: none; border-left: 2px solid var(--line); display: grid; }
.side-toc a { display: block; padding: 4px 12px; color: var(--tx-2); font-size: 14px; margin-left: -2px; border-left: 2px solid transparent; }
.side-toc a:hover { color: var(--acc); border-left-color: var(--acc); text-decoration: none; }
.side-list { list-style: none; display: grid; gap: 10px; }
.side-list a { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--tx); }
.side-list a:hover { color: var(--acc); }
.side-list time { font: 400 12px var(--mono); color: var(--tx-3); }
.prose { font-size: 18px; line-height: 1.65; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 26px; margin-top: 44px; letter-spacing: -.02em; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--tx-3); }
.prose pre { margin: 16px 0; padding: 0; background: var(--navy); border-radius: 12px; overflow: hidden; font: 400 13.5px/1.6 var(--mono); color: #E6EDF7; box-shadow: 0 1px 3px rgba(16,32,64,.12); }
.prose pre code { display: block; padding: 16px 18px 18px; overflow-x: auto; background: none; font-size: inherit; tab-size: 4; }
.prose code { font: 400 .9em var(--mono); background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 18px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.1); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8FA3C8; }
.code-bar span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #54FF9E; margin-right: 8px; vertical-align: 0; }
.code-bar button { background: none; border: 1px solid rgba(255,255,255,.18); color: #C7D3EA; font: 500 11px var(--mono); letter-spacing: .04em; padding: 4px 10px; border-radius: 6px; min-height: 26px; }
.code-bar button:hover { border-color: #fff; color: #fff; }
.code-bar button.is-done { color: #54FF9E; border-color: #54FF9E; }
.tk-c { color: #7E8DB0; font-style: italic; } .tk-s { color: #FFD27A; } .tk-k { color: #7FA0FF; } .tk-n { color: #54FF9E; } .tk-f { color: #C9B8FF; } .tk-d { color: #FF9B93; }
.prose .callout { padding: 14px 16px; background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: var(--r); font-size: 16px; }
.prose .callout.bad { background: var(--lost-bg); border-color: var(--lost-line); }
.prose .callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.prose table { font-size: 15px; }
.prose .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.prose .stats div { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.prose .stats b { display: block; font: 700 28px/1.1 var(--display); letter-spacing: -.02em; color: var(--won); font-variant-numeric: tabular-nums; }
.prose .stats.bad b { color: var(--lost); }
.prose .stats span { font-size: 13px; color: var(--tx-3); }
.prose .chart-wrap { max-width: none; height: 300px; }
.dl { list-style: none; display: grid; gap: 12px; padding: 0 !important; }
.dl li { display: grid; gap: 2px; padding-left: 30px; position: relative; font-size: 15px; }
.dl li b { font-weight: 700; font-size: 16px; }
.dl li span { color: var(--tx-2); }
.dl li .ic { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--won); }
.dl.bad li .ic { color: var(--lost); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 22px; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; font: 600 15px/32px var(--mono); text-align: center; }
.steps h3 { margin-top: 2px !important; }
.related { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.related h2 { font-size: 20px; margin-bottom: 8px; }
.entry-list { list-style: none; }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list a { display: grid; gap: 2px; padding: 12px 4px; color: var(--tx); border-radius: var(--r-s); }
.entry-list a:hover { background: var(--bg-2); text-decoration: none; }
.entry-list .ttl { font-weight: 600; font-size: 15px; }
.entry-list a:hover .ttl { color: var(--acc); }
.entry-list .dsc { color: var(--tx-2); font-size: 14px; }

/* guide list (exchange API guides): compact rows with the exchange mark */
.guide-list { list-style: none; display: grid; gap: 14px; }
.guide-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid #DCE4F2; border-radius: 14px; background: var(--card); color: var(--tx); }
.guide-list a:hover { border-color: var(--acc); text-decoration: none; }
.guide-list a:hover .ttl { color: var(--acc); }
.guide-list .vmark { width: 44px; height: 44px; font-size: 19px; border-radius: var(--r); }
.guide-body { display: grid; gap: 3px; min-width: 0; }
.guide-list .ttl { font-weight: 700; font-size: 18px; }
.guide-list .dsc { color: var(--tx-2); font-size: 14px; }
.guide-arrow { color: var(--tx-3); }
.guide-list-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card .kind { font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--acc); }
@media (max-width: 860px) { .guide-list-home { grid-template-columns: 1fr; } }

/* copy prompt (API pages) */
.cp { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px; min-height: 44px; text-align: left; }
.cp:hover { border-color: var(--acc); }
.cp:active { transform: translateY(1px); }
.cp.is-done { border-color: var(--won); }
.cp .ic { color: var(--acc); }
.cp-txt { font: 600 14px var(--sans); }
.cp.is-done .cp-txt { color: var(--won); }
.prompt-box { display: grid; gap: 10px; padding: 16px 18px; background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: var(--r); margin: 24px 0; }
.prompt-box h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.prompt-box p { font-size: 14px; color: var(--tx-2); }
.prompt-box details { font-size: 13px; }
.prompt-box summary { cursor: pointer; color: var(--acc); font-weight: 500; }
.prompt-box details p { margin-top: 8px; white-space: pre-wrap; background: #fff; padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--acc-line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; font-size: 15px; }
.facts dt { font: 600 12px var(--mono); color: var(--tx-3); text-transform: uppercase; letter-spacing: .05em; padding-top: 3px; }
.facts dd { margin: 0; color: var(--tx); }

@media (max-width: 1100px) { .card-list-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 960px) { .tool-geo { grid-column: auto; } .hero-top { grid-template-columns: 1fr; gap: 20px; } .tick { grid-template-columns: 1fr; gap: 10px; } .tk-q { -webkit-line-clamp: 1; } .hero-media > img { height: 520px; } .g3 { grid-template-columns: 1fr; gap: 28px; } .tools { grid-template-columns: 1fr; } .g-desk { height: 340px; } .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .art-grid { grid-template-columns: 1fr; } .art-side { position: static; } .side-box:first-child { display: none; } }
@media (max-width: 860px) {
  .nav, .lang { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; background: var(--bg-2); border: 1px solid var(--line); color: var(--tx); padding: 8px 14px; border-radius: var(--r-s); font: 500 14px var(--sans); min-height: 44px; }
  .mobile-nav.open { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
  .mobile-nav a { padding: 12px 24px; border-top: 1px solid var(--line); min-height: 44px; color: var(--tx); }
  .top { position: static; }
  .g-legend { position: static; margin-top: 8px; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px; }
  .prose .stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .card-list, .card-list-feat { grid-template-columns: 1fr; } .card-list-feat > li:first-child { grid-column: auto; grid-row: auto; } .wrap, .listing, .article, .foot-in, .art-head, .list-head, .top-in { padding-left: 16px; padding-right: 16px; } .g4 { grid-template-columns: 1fr; } .hero-over { padding: 0 12px 12px; } .hero h1 { font-size: 32px; } .facts { grid-template-columns: 1fr; gap: 2px 0; } .facts dd { margin-bottom: 8px; } }
