/* Fee Notes visual system. Shared across all six language editions. */
:root {
  --bg: #f7f8f2; --paper: #fff; --bg-soft: #eef2e9; --bg-code: #e9eee3;
  --ink: #172d22; --ink-2: #536156; --ink-3: #6c796d; --line: #dce3d7;
  --brand: #245c3d; --brand-2: #38734d; --brand-soft: #e8f0de; --accent: #def39c;
  --warn: #88501b; --warn-bg: #fff6e8; --warn-line: #e7c997;
  --radius: 14px; --max: 1240px; --shadow: 0 8px 28px #17341f06;
  --font: "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;
}
html { scroll-padding-top: 110px; }
body { font-size: 16px; line-height: 1.8; }
button, input { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { padding-left: 32px; padding-right: 32px; }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px); }
.header-inner { min-height: 86px; gap: 24px; }
.brand { gap: 11px; flex-shrink: 0; }
.brand-name { font-size: 21px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; }
.nav { gap: 4px; align-items: center; }
.nav-link { font-size: 14px; padding: 8px 12px; border-radius: 7px; }
.nav-toggle { border-radius: 7px; padding: 6px 10px; background: var(--paper); }
.lang { font-size: 13px; }
.langmenu > summary { padding: 7px 12px; border-radius: 8px; gap: 9px; }
.langmenu-list { top: calc(100% + 12px); background: var(--paper); padding: 8px; box-shadow: 0 18px 48px #102b2420; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 25px; font-size: 12px; }
.page { max-width: var(--max); padding-top: 0; padding-bottom: 88px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--brand); line-height: 1.7; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.045em; }
h2 { font-size: 26px; margin: 48px 0 20px; letter-spacing: -.025em; }
h3 { font-size: 19px; }
code { overflow-wrap: anywhere; }
/* The home illustration is a lightweight, original SVG. */
.home-hero { display: grid; grid-template-columns: 1.06fr 1fr; gap: 30px; padding: 66px 0 52px; align-items: center; }
.hero-copy { padding: 12px 0; }
.home-hero h1 { font-size: clamp(40px, 4.2vw, 60px); font-weight: 750; line-height: 1.25; margin: 24px 0; }
.home-hero h1 span { color: var(--brand); }
.hero-description { max-width: 490px; color: var(--ink-2); font-size: 16px; line-height: 1.9; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 13px 22px; border-radius: 8px; font-size: 14px; font-weight: 650; transition: background .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.text-link { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; font-weight: 600; font-size: 13px; }
.hero-footnote { display: flex; align-items: center; gap: 8px; margin-top: 27px; color: var(--ink-3); font-size: 11px; letter-spacing: .015em; }
.tiny-check { border: 1px solid var(--line); border-radius: 50%; color: var(--brand); width: 18px; height: 18px; display: grid; place-items: center; }
.hero-art { position: relative; min-width: 0; aspect-ratio: 1.08; border-radius: 24px; background: #163b2c radial-gradient(ellipse at 70% 25%, #54764a55, transparent 70%); overflow: hidden; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#d4e6b91d 1px, transparent 1px); background-size: 20px 20px; z-index: -1; }
.fee-sculpture { position: absolute; width: 113%; max-width: none; height: auto; top: -8%; left: -5%; }
.art-orbit { position: absolute; height: 70%; width: 70%; border: 1px solid #d9edac15; border-radius: 50%; top: 10%; left: 16%; }
.art-label { position: absolute; left: 22px; right: 22px; top: 19px; display: flex; align-items: center; gap: 8px; color: #d6e4cd; font-size: 10px; letter-spacing: .07em; }
.art-label > span:last-child { margin-left: auto; font-size: 20px; }
.example-ticket { position: absolute; bottom: 20px; right: 20px; left: 20px; background: #f4f8e9f5; color: #21432e; border: 1px solid #ffffff88; border-radius: 12px; padding: 13px 20px; box-shadow: 0 12px 22px #0b251526; backdrop-filter: blur(8px); }
.example-ticket > span { font-size: 9px; font-weight: 650; letter-spacing: .08em; display: block; }
.example-ticket > div { display: flex; align-items: baseline; gap: 18px; line-height: 1.4; margin: 3px 0; }
.example-ticket b, .example-ticket strong { font-family: var(--mono); font-size: 31px; font-weight: 500; }
.example-ticket i { font-size: 19px; font-style: normal; color: #708064; }
.example-ticket small { font: 10px var(--font); }
.example-ticket p { font-size: 9px; color: #586b50; margin: 0; }
.exchange-directory { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.directory-label { padding: 23px; display: flex; flex-direction: column; justify-content: center; }
.directory-label > span { font-size: 13px; font-weight: 650; }
.directory-label small { font-size: 10px; color: var(--ink-3); margin-top: 4px; }
.exchange-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 20px 14px; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 650; transition: background .2s; }
.exchange-link:hover { background: var(--bg-soft); }
.exchange-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font: 700 14px var(--font); flex-shrink: 0; }
.exchange-mark.binance { color: #805f05; background: #fff0b8; }
.exchange-mark.okx { color: #fff; background: #1d2722; font-size: 10px; }
.exchange-mark.gate { color: #3e61ae; background: #e9efff; }
.exchange-mark.bitget { color: #187879; background: #dff6f3; font-size: 11px; }
.exchange-arrow { color: var(--ink-3); margin-left: auto; font-weight: 400; }
.home-page .reading-grid { display: block; }
.home-guides { padding: 70px 0 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.section-heading h2 { margin: 9px 0 0; font-size: 32px; }
.section-heading > p { margin: 0; max-width: 340px; font-size: 13px; color: var(--ink-2); }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; padding: 25px; background: var(--paper); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.card:hover { color: var(--ink); transform: translateY(-4px); border-color: #90ad80; box-shadow: 0 16px 36px #1637200c; }
.card h3 { font-size: 18px; margin: 0 0 12px; }
.card p { font-size: 13px; line-height: 1.85; }
.home-guides .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; counter-reset: guide; }
.home-guides .card { padding: 78px 22px 38px; }
.home-guides .card::before { counter-increment: guide; content: "0" counter(guide); position: absolute; top: 22px; left: 22px; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font: 13px var(--mono); }
.home-guides .card::after { content: "↗"; position: absolute; right: 23px; top: 23px; font-size: 20px; color: var(--ink-3); }
.home-guides .card:nth-child(2) { background: #203e2e; color: #f2f7e9; border-color: #203e2e; }
.home-guides .card:nth-child(2) p { color: #b9c9b4; }
.home-guides .card:nth-child(2)::before { background: #def39c; color: #25432d; }
.home-guides .card:nth-child(2)::after { color: #def39c; }
.home-notes { border-top: 1px solid var(--line); display: grid; grid-template-columns: .64fr 1.36fr; gap: 68px; padding-top: 58px; }
.notes-heading h2 { font-size: 32px; margin: 12px 0; }
.notes-heading p { color: var(--ink-2); font-size: 14px; }
.notes-pattern { position: relative; width: 215px; height: 200px; margin-top: 25px; overflow: hidden; }
.notes-pattern span { position: absolute; width: 115px; height: 145px; border: 1px solid #9caf8a; background: #edf2e6; border-radius: 14px; left: 40px; top: 22px; transform: rotate(-25deg); }
.notes-pattern span:nth-child(2) { transform: rotate(-3deg); background: #dce8ce; }
.notes-pattern span:nth-child(3) { transform: rotate(20deg); background: repeating-linear-gradient(transparent 0 19px, #64875840 20px 21px), #cae0b1; width: 100px; height: 130px; top: 30px; left: 45px; }
.notes-content { min-width: 0; font-size: 15px; }
.notes-content > h2 { font-size: 23px; }
/* Reading layouts. */
.page-head { position: relative; padding: 39px 220px 34px 0; margin-bottom: 36px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 46px); max-width: 850px; margin: 17px 0 22px; }
.page-head .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; margin: 0; }
.head-pattern { position: absolute; right: 10px; top: 30px; width: 150px; height: 150px; border: 1px solid var(--line); border-radius: 50%; background: repeating-radial-gradient(ellipse at center, transparent 0 15px, #63804420 16px 17px); transform: rotate(-25deg) skew(-10deg); }
.head-pattern::after { content: "%"; position: absolute; inset: 36px; background: var(--brand); color: var(--accent); display: grid; place-items: center; border-radius: 20px; font: 38px var(--mono); }
.reading-grid { display: grid; grid-template-columns: minmax(0, 790px) minmax(210px, 1fr); gap: 60px; align-items: start; }
.article-content { min-width: 0; }
.reading-sidebar { position: sticky; top: 112px; min-width: 0; }
.toc { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 0 0 22px; margin: 0 0 26px; background: transparent; }
.toc-title { color: var(--ink); font-size: 12px; letter-spacing: .06em; margin: 0 0 13px; }
.toc ol { padding: 0; list-style: none; }
.toc li { margin: 0 0 10px; line-height: 1.6; }
.toc a { font-size: 12px; }
.rail-note { padding: 23px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.rail-note p { font-weight: 650; font-size: 14px; margin: 14px 0 6px; }
.rail-note span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.lede { padding: 25px 28px; background: var(--brand-soft); }
.lede-title { font-size: 13px; color: var(--brand); margin-bottom: 14px; }
.lede li { padding-left: 4px; margin: 10px 0; }
.lede li::marker { color: var(--brand); }
.table-wrap { background: var(--paper); margin-bottom: 26px; }
table { font-size: 14px; }
th, td { padding: 14px 17px; }
th { font-size: 12px; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-soft) 30%, var(--paper)); }
tbody tr:hover { background: var(--bg-soft); }
.sources table { font-size: 12px; }
.steps > li { padding: 4px 0 26px 40px; margin: 0 0 0 18px; border-left: 1px solid var(--line); }
.steps > li:last-child { border: 0; }
.steps > li::before { left: -18px; top: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; font: 12px var(--mono); }
.steps > li > strong:first-child { margin-bottom: 7px; }
.callout { border-radius: 0 12px 12px 0; padding: 18px 22px; margin-bottom: 25px; font-size: 14px; }
.faq summary { font-size: 15px; padding: 19px 40px 19px 0; }
.faq summary::after { right: 0; top: 18px; transform: none; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.faq[open] summary::after { background: var(--brand-soft); }
.faq > div { padding: 0 30px 20px 0; font-size: 14px; }
.cta { position: relative; padding: 28px; margin-bottom: 30px; border-color: #9cb38b; border-radius: 16px; background: linear-gradient(120deg, var(--brand-soft), var(--paper)); overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -25px; top: -55px; width: 170px; height: 170px; border: 25px solid #90ac6720; border-radius: 50%; pointer-events: none; }
.cta-head { position: relative; align-items: center; }
.cta-name { font-size: 18px; }
.cta-ratio { font-size: 19px; font-weight: 750; background: var(--paper); border: 1px solid var(--line); padding: 4px 14px; border-radius: 8px; }
.cta-note { font-size: 13px; margin: 13px 0 20px; }
.cta-code { gap: 12px; border: 1px dashed #95aa85; background: var(--paper); padding: 12px 16px; margin-bottom: 14px; border-radius: 9px; }
.cta-code-label { font-size: 11px; }
.cta-code code { font-size: 17px; letter-spacing: .08em; }
.copy { padding: 5px 13px; font-size: 12px; color: var(--brand); border-radius: 6px; }
.copy:hover { background: var(--brand-soft); }
.cta-fine { font-size: 11px; margin-top: 13px; }
.todo { font-size: 11px; padding: 2px 6px; border-radius: 5px; }
.small { font-size: 12px; }
.site-footer { background: #173a2b; color: #e1ebd7; padding: 52px 0 42px; margin: 0; }
.footer-inner { grid-template-columns: 1.25fr .7fr 1.2fr; gap: 70px; }
.footer-col .footer-brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 650; margin-bottom: 16px; }
.footer-col p { font-size: 12px; }
.site-footer .muted, .footer-col a { color: #b7c9b0; }
.footer-col a:hover { color: #def39c; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111d17; --paper: #19281f; --bg-soft: #203126; --bg-code: #24382a; --ink: #e1e9d9; --ink-2: #b4c0ac; --ink-3: #9cac93; --line: #334638; --brand: #b5d87e; --brand-2: #c8e99b; --brand-soft: #253c2a; --warn: #f0c38a; --warn-bg: #30281a; --warn-line: #80623a; }
  .btn { background: #b5d87e; color: #183323; }
  .btn:hover { background: #c8e99b; color: #183323; }
  .head-pattern::after { background: #315b3b; }
  .notes-pattern { opacity: .7; }
  .home-guides .card:nth-child(2) { border-color: #75945d; }
}
@media (max-width: 1050px) {
  .header-inner { gap: 14px; }
  .nav-link { padding: 8px; font-size: 12px; }
  .home-hero { gap: 25px; }
  .home-hero h1 { font-size: 43px; }
  .reading-grid { gap: 30px; grid-template-columns: minmax(0, 1fr) 220px; }
  .exchange-directory { grid-template-columns: repeat(4, 1fr); }
  .directory-label { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
  .exchange-link:nth-child(2) { border-left: 0; }
  .home-guides .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .nav-toggle { font-size: 12px; margin-left: 0; }
  .nav.is-open { align-items: stretch; }
  .nav-link { font-size: 14px; padding: 8px 12px; }
  .home-hero h1 { font-size: 37px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { padding: 12px 16px; font-size: 12px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-art { aspect-ratio: .85; }
  .fee-sculpture { top: 0; width: 125%; left: -13%; }
  .home-notes { gap: 30px; grid-template-columns: .55fr 1fr; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-sidebar { position: static; grid-row: 1; }
  .rail-note { display: none; }
  .toc { padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
  .page-head { padding-right: 150px; }
  .head-pattern { width: 110px; height: 110px; }
  .head-pattern::after { inset: 25px; font-size: 26px; }
  .footer-inner { gap: 30px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 9px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 7px; }
  .langmenu > summary { padding: 6px 8px; font-size: 11px; }
  .home-hero { grid-template-columns: 1fr; padding: 36px 0 28px; gap: 28px; }
  .home-hero h1 { font-size: clamp(34px, 8.4vw, 48px); margin: 18px 0; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .hero-description { font-size: 14px; margin-bottom: 23px; }
  .hero-footnote { margin-top: 20px; font-size: 10px; }
  .hero-art { aspect-ratio: 1.2; border-radius: 18px; }
  .fee-sculpture { width: 105%; left: -2%; top: -15%; }
  .example-ticket { left: 15px; right: 15px; bottom: 15px; padding: 10px 15px; }
  .example-ticket b, .example-ticket strong { font-size: 25px; }
  .art-label { top: 12px; left: 15px; right: 15px; font-size: 9px; }
  .exchange-directory { grid-template-columns: 1fr 1fr; }
  .exchange-link { padding: 17px 14px; font-size: 12px; }
  .exchange-link:nth-child(4) { border-left: 0; }
  .exchange-link:nth-child(n+4) { border-top: 1px solid var(--line); }
  .directory-label small { font-size: 9px; }
  .home-guides { padding: 44px 0; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading > p { margin-top: 12px; font-size: 12px; }
  .home-guides .grid { gap: 12px; }
  .home-guides .card { padding: 66px 17px 22px; }
  .home-guides .card::before { top: 18px; left: 17px; width: 30px; height: 30px; font-size: 11px; }
  .home-guides .card::after { top: 16px; right: 17px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 12px; line-height: 1.75; }
  .home-notes { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; }
  .notes-heading h2 { font-size: 27px; }
  .notes-pattern { display: none; }
  .notes-heading p { margin-bottom: 0; }
  .lede { padding: 20px; font-size: 14px; }
  .page { padding-bottom: 50px; }
  .page-head { padding: 28px 0; margin-bottom: 24px; }
  .page-head h1 { font-size: 30px; }
  .head-pattern { display: none; }
  .toc ol { columns: 1; }
  .guide-page .article-content { font-size: 15px; }
  h2 { font-size: 23px; margin-top: 36px; }
  .grid { grid-template-columns: 1fr; }
  .cta { padding: 20px; }
  .cta-name { font-size: 16px; }
  .cta-ratio { font-size: 17px; }
  .cta-code { gap: 8px; padding: 10px; }
  .cta-code code { font-size: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer { padding: 36px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .reading-sidebar, .hero-art { display: none; }
  .reading-grid, .home-notes, .home-hero { display: block; }
  .page-head { padding-right: 0; }
}
