@charset "UTF-8";

:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172235;
  background: #fbfcfe;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; background: #fbfcfe; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -.14em; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: #d8e5ff; color: #12346f; }

.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: 40px; }
.skip { position: fixed; z-index: 99; top: -70px; left: 12px; padding: 10px 16px; color: white; background: #123f98; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid #2865e8; outline-offset: 3px; }

body[data-site="docs"] { --ink: #172b49; --muted: #63738b; --accent: #2d68d8; --accent-dark: #1f50ad; --soft: #edf4ff; --hero: #f1f6ff; --line: #dce6f4; --art: #dbeaff; }
body[data-site="learn"] { --ink: #292044; --muted: #716b84; --accent: #735cc5; --accent-dark: #56439e; --soft: #f2efff; --hero: #f6f3ff; --line: #e6e0f5; --art: #e2d8f9; }
body[data-site="automation"] { --ink: #172941; --muted: #66758b; --accent: #3569c8; --accent-dark: #244e9a; --soft: #edf3ff; --hero: #f1f5fc; --line: #dce5f1; --art: #152845; }
body[data-site="commerce"] { --ink: #203a37; --muted: #667a73; --accent: #287466; --accent-dark: #20574e; --soft: #edf7f2; --hero: #f2f8f4; --line: #dcebe2; --art: #d9efe1; }
body[data-site="social"] { --ink: #402c35; --muted: #786d72; --accent: #bd5269; --accent-dark: #914054; --soft: #fff0f3; --hero: #fff7f6; --line: #f0e2e6; --art: #f7dce1; }

/* Shared brand frame */
.header { position: sticky; z-index: 20; top: 0; height: 72px; border-bottom: 1px solid rgba(220, 228, 239, .82); background: rgba(251, 252, 254, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.header-row { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); font-size: 16px; letter-spacing: -.035em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand strong { font-weight: 760; }
.brand > span:last-child { font-size: 13px; font-weight: 580; letter-spacing: 0; }
.brand-divider { height: 18px; margin-inline: 3px; border-left: 1px solid #cbd3df; }
.header nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 620; }
.header nav > a { transition: color .18s ease; }
.header nav > a:hover, .network a:hover { color: var(--accent); }
.header .nav-home { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--ink); }
.menu { display: none; padding: 8px; border: 0; background: transparent; color: var(--ink); font-size: 23px; }

/* Homepage: editorial headline + one clear visual */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 82% 42%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 39%), var(--hero); }
.hero::after { position: absolute; right: -140px; bottom: -280px; width: 520px; height: 520px; border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 50%; content: ""; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; min-height: 552px; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 48px; padding-block: 44px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 5px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 760; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; }
.hero-copy .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.hero-copy .eyebrow::before { width: 22px; height: 1px; background: var(--accent); content: ""; }
.hero h1 { max-width: 610px; margin-bottom: 21px; color: var(--ink); font-size: clamp(46px, 5vw, 68px); font-weight: 720; letter-spacing: -.075em; line-height: 1.13; }
.hero-intro { max-width: 455px; margin-bottom: 30px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 15px; padding: 13px 18px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); box-shadow: 0 7px 16px color-mix(in srgb, var(--accent) 17%, transparent); color: #fff; font-size: 13px; font-weight: 680; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 11px 22px color-mix(in srgb, var(--accent) 23%, transparent); }
.button:disabled { transform: none; opacity: .5; box-shadow: none; cursor: not-allowed; }
.button.secondary { border-color: var(--line); background: white; box-shadow: none; color: var(--accent); }
.button.secondary:hover { border-color: var(--accent); background: var(--soft); }
.hero-note { color: var(--muted); font-size: 12px; }
.art { position: relative; height: 438px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.75); border-radius: 22px; background: var(--art); box-shadow: 0 26px 60px rgba(30, 50, 80, .1); }
.art::before { position: absolute; inset: -24%; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.78), transparent 37%); content: ""; opacity: .75; }
.art-kicker { position: absolute; z-index: 3; top: 24px; left: 27px; color: var(--ink); font-size: 9px; font-weight: 760; letter-spacing: .18em; }
.art-caption { position: absolute; z-index: 3; bottom: 22px; left: 27px; color: var(--ink); font-size: 10px; opacity: .76; }

/* CSS artwork, composed from product-related details rather than stock icons */
.handbook { display: grid; place-items: center; background: radial-gradient(circle at 50% 52%, #f8fbff 0 20%, transparent 21%), linear-gradient(135deg, #dceafe, #c9ddfb); }
.handbook::after { position: absolute; top: 50px; right: -95px; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; content: ""; }
.book { position: relative; z-index: 2; width: 248px; height: 328px; padding: 31px 27px 24px 40px; transform: rotate(-6deg); border-radius: 4px 14px 14px 4px; background: linear-gradient(145deg, #3d7be0, #1d4d9c 86%); box-shadow: 15px 23px 36px rgba(35,77,139,.26), inset -8px 0 17px rgba(9,42,110,.14); color: white; }
.book-spine { position: absolute; top: 0; bottom: 0; left: 13px; width: 7px; border-right: 1px solid rgba(0,24,78,.25); border-left: 1px solid rgba(255,255,255,.35); }
.book > span { font-size: 9px; letter-spacing: .1em; opacity: .8; }
.book strong { display: block; margin-top: 57px; font-size: 43px; letter-spacing: -.06em; line-height: 1.28; }
.book-line { width: 42px; height: 1px; margin: 25px 0 15px; background: #a9c8ff; }
.book small { font-size: 10px; letter-spacing: .06em; opacity: .78; }
.layers { background: linear-gradient(145deg, #eee8ff, #d4c6f5); }
.layer { position: absolute; right: 15%; left: 17%; display: flex; height: 96px; align-items: center; gap: 17px; padding: 16px 21px; transform: skewY(-7deg); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; box-shadow: 0 17px 30px rgba(91,68,146,.15); }
.layer span { color: #6e57aa; font-size: 11px; font-weight: 750; }
.layer b { color: #302755; font-size: 20px; letter-spacing: -.045em; }
.layer em { margin-left: auto; color: #71698c; font-size: 9px; font-style: normal; }
.layer-1 { z-index: 3; top: 101px; background: #fbf9ff; }
.layer-2 { z-index: 2; top: 186px; right: 12%; left: 20%; background: #eae2ff; }
.layer-3 { z-index: 1; top: 271px; right: 9%; left: 23%; background: #d1bff4; }
.flow-art { padding-inline: 40px; background: #142845; color: white; }
.flow-art::before { background: radial-gradient(circle at 95% 5%, #5e92eb, transparent 48%); opacity: .32; }
.flow-art .art-kicker, .flow-art .art-caption { color: #d9e7fb; }
.flow-node { position: relative; z-index: 2; display: flex; max-width: 370px; min-height: 74px; align-items: center; gap: 15px; padding: 13px 17px; border: 1px solid rgba(197,219,250,.23); border-radius: 13px; background: #1e3b61; box-shadow: 0 12px 22px rgba(0,0,0,.12); }
.flow-node > span { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 9px; background: #76a8f6; color: #142845; font-size: 11px; font-weight: 760; }
.flow-node b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 660; }
.flow-node small { color: #aac3e4; font-size: 10px; }
.flow-node.first { margin-top: 83px; }
.flow-node.second { margin-left: 38px; }
.flow-node.third { margin-left: 74px; }
.flow-link { height: 25px; margin-left: 35px; border-left: 1px dashed #7da7dc; }
.flow-link:nth-of-type(5) { margin-left: 73px; }
.ledger-art { display: grid; place-items: center; background: linear-gradient(145deg, #e6f5eb, #cfe7d9); }
.ledger { position: relative; z-index: 2; width: 76%; max-width: 390px; overflow: hidden; transform: rotate(-3deg); border: 1px solid #c9e0d3; border-radius: 12px; background: #fff; box-shadow: 10px 24px 42px rgba(34,97,72,.14); }
.ledger-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px; background: #234d45; color: white; }
.ledger-top span { font-size: 16px; font-weight: 720; }
.ledger-top small { font-size: 9px; opacity: .72; }
.ledger-row { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 10px; padding: 13px 20px; border-bottom: 1px solid #e8f0ea; color: #46675c; font-size: 11px; font-variant-numeric: tabular-nums; }
.ledger-row b { color: #1b4a3c; }
.ledger-row.headings { background: #f2f8f3; color: #769182; font-size: 9px; letter-spacing: .05em; }
.ledger-note { padding: 15px 20px; color: #487163; font-size: 9px; }
.editorial-art { background: linear-gradient(145deg, #fff0eb, #edccd7); }
.post-paper { position: absolute; z-index: 2; top: 61px; left: 21%; width: 260px; height: 320px; padding: 25px 26px; transform: rotate(-6deg); background: #fffdfb; box-shadow: 16px 20px 38px rgba(123,69,84,.2); }
.post-paper small { color: #b36d82; font-size: 9px; letter-spacing: .13em; }
.post-paper strong { display: block; margin-top: 37px; color: #522b39; font-size: 30px; letter-spacing: -.055em; line-height: 1.42; }
.paper-rule { display: block; width: 55px; height: 1px; margin: 27px 0 14px; background: #d992a7; }
.post-paper > span:last-child { color: #9f7a86; font-size: 9px; }
.post-stamp { position: absolute; z-index: 3; top: 41%; right: 12%; display: grid; width: 82px; height: 82px; place-items: center; transform: rotate(15deg); border-radius: 50%; background: #b84e69; box-shadow: 0 12px 22px rgba(142,72,91,.2); color: white; font-size: 14px; font-weight: 720; letter-spacing: .1em; line-height: 1.4; text-align: center; }

/* Guide index */
.guides { padding-top: 78px; padding-bottom: 74px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 26px; }
.section-head .eyebrow { margin-bottom: 9px; }
.section-head h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 38px); letter-spacing: -.06em; line-height: 1.25; }
.search { display: flex; width: 260px; min-height: 42px; align-items: center; gap: 9px; padding-inline: 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--muted); font-size: 16px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.guide-card { position: relative; display: flex; min-height: 204px; flex-direction: column; padding: 24px 26px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--soft) 29%, #fff)); transition: border-color .2s, transform .2s, box-shadow .2s; }
.guide-card::before { position: absolute; top: 0; left: 26px; width: 28px; height: 2px; background: var(--accent); content: ""; opacity: .7; }
.guide-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: 0 12px 28px rgba(33,52,82,.07); }
.guide-card[hidden] { display: none; }
.card-meta { display: flex; justify-content: space-between; color: var(--accent); font-size: 10px; font-weight: 730; letter-spacing: .06em; }
.card-meta span + span { color: #a3afbd; font-variant-numeric: tabular-nums; }
.guide-card h3 { margin: 17px 0 7px; color: var(--ink); font-size: 18px; font-weight: 690; letter-spacing: -.04em; line-height: 1.4; }
.guide-card p { max-width: 490px; margin-bottom: 14px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.card-link { display: inline-flex; align-items: center; gap: 9px; margin-top: auto; color: var(--accent); font-size: 11px; font-weight: 720; }
.card-link .icon { transition: transform .2s; }
.guide-card:hover .card-link .icon { transform: translateX(3px); }
#search-empty { padding: 38px; color: var(--muted); text-align: center; }
.tool-band { position: relative; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 19px; margin-bottom: 82px; padding-block: 25px; background-clip: content-box; }
.tool-band::before { position: absolute; z-index: -1; inset: 0 40px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); content: ""; }
.tool-band > * { position: relative; z-index: 1; }
.tool-band-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-left: 24px; border-radius: 10px; background: white; color: var(--accent); font-size: 19px; }
.tool-band h2 { margin: 3px 0; color: var(--ink); font-size: 19px; letter-spacing: -.04em; }
.tool-band p { margin: 0; color: var(--muted); font-size: 12px; }
.tool-band .button { margin-right: 24px; }
.reading-note { display: flex; align-items: center; gap: 23px; margin-bottom: 80px; padding-block: 25px; border-block: 1px solid var(--line); }
.reading-note span { color: var(--accent); font-size: 11px; font-weight: 720; white-space: nowrap; }
.reading-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-bottom: 76px; color: var(--ink); font-size: 21px; font-weight: 650; letter-spacing: -.045em; }
.closing a { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); font-size: 12px; font-weight: 720; letter-spacing: 0; white-space: nowrap; }

/* Footer */
.footer { padding: 48px 0 23px; background: #142338; color: #dbe5f2; }
.footer .brand { color: white; }
.footer .brand img { width: 31px; height: 31px; }
.footer-top { display: flex; justify-content: space-between; gap: 55px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-top p { margin: 12px 0 0; color: #a7b6c7; font-size: 12px; }
.network { max-width: 590px; }
.network > span { display: block; margin-bottom: 13px; color: #8299b6; font-size: 10px; letter-spacing: .13em; }
.network nav { display: flex; flex-wrap: wrap; gap: 11px 18px; color: #c3d3e7; font-size: 11px; }
.network a[aria-current="page"] { color: white; }
.footer-bottom { display: flex; gap: 22px; padding-top: 18px; color: #8295aa; font-size: 10px; }
.footer-bottom a:hover { color: white; }

/* Long-form reading */
.article-head { max-width: 1180px; padding-top: 57px; padding-bottom: 45px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 33px; color: var(--muted); font-size: 11px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span:nth-child(2) { color: #b8c3d0; }
.article-head .eyebrow { margin-bottom: 13px; }
.article-head h1 { max-width: 850px; margin-bottom: 19px; color: var(--ink); font-size: clamp(36px, 4.1vw, 54px); font-weight: 720; letter-spacing: -.065em; line-height: 1.23; }
.byline { display: flex; gap: 20px; color: var(--muted); font-size: 11px; }
.byline span { color: var(--ink); font-weight: 700; }
.article-layout { display: grid; grid-template-columns: 205px minmax(0, 730px); align-items: start; gap: 76px; max-width: 1180px; padding-top: 39px; padding-bottom: 95px; border-top: 1px solid var(--line); }
.toc { position: sticky; top: 105px; color: var(--ink); }
.toc > span { font-size: 11px; font-weight: 720; }
.toc nav { display: grid; gap: 14px; margin-top: 18px; }
.toc nav a { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.toc nav a:hover { color: var(--accent); }
.toc nav span { padding-top: 2px; color: var(--accent); font-size: 9px; }
.toc-back { display: block; margin-top: 35px; color: var(--accent); font-size: 11px; }
.prose { min-width: 0; }
.answer { margin-bottom: 43px; padding: 22px 26px; border-left: 3px solid var(--accent); border-radius: 0 11px 11px 0; background: var(--soft); }
.answer span { color: var(--accent); font-size: 10px; font-weight: 720; letter-spacing: .06em; }
.answer p { margin: 8px 0 0; color: var(--ink); font-size: 15px; font-weight: 530; line-height: 1.8; }
.prose section { margin-bottom: 42px; scroll-margin-top: 105px; }
.prose h2 { margin-bottom: 16px; color: var(--ink); font-size: 23px; font-weight: 700; letter-spacing: -.04em; line-height: 1.4; }
.prose p, .prose li { color: #435167; font-size: 14px; line-height: 1.95; }
.prose p { margin-bottom: 15px; }
.prose ul { margin: 10px 0; padding-left: 22px; }
.prose li { margin-bottom: 7px; padding-left: 3px; }
.prose .sources { padding-top: 25px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 16px; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.editorial-note { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 12px !important; }
.article-end { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 52px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-end a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 720; white-space: nowrap; }
.not-found { min-height: 68vh; padding-top: 14vh; }
.not-found h1 { color: var(--ink); font-size: 50px; letter-spacing: -.07em; }

/* Small, useful tools: title and controls stay in the first viewport */
.tool-head { max-width: 1160px; margin-top: 27px; margin-bottom: 20px; padding-top: 27px; padding-bottom: 27px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(ellipse at 90% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 47%), linear-gradient(120deg, var(--soft), #fff 78%); box-shadow: 0 13px 34px rgba(30, 50, 80, .045); }
.back-link { display: inline-flex; align-items: center; margin-bottom: 15px; color: var(--muted); font-size: 11px; }
.back-link:hover { color: var(--accent); }
.tool-head .eyebrow { margin-bottom: 8px; }
.tool-head h1 { margin-bottom: 7px; color: var(--ink); font-size: clamp(30px, 3vw, 40px); letter-spacing: -.06em; line-height: 1.2; }
.tool-head > p:not(.eyebrow) { margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.privacy-note { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 10px; font-weight: 720; }
.privacy-note::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.tool-page { max-width: 1160px; padding-bottom: 67px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); align-items: start; gap: 14px; }
.tool-input, .tool-result { min-width: 0; padding: 23px 25px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgba(31, 49, 76, .035); }
.tool-input label { display: block; margin: 0 0 7px; color: var(--ink); font-size: 11px; font-weight: 720; }
.tool-input input:not([type="checkbox"]), .tool-input textarea, .tool-input select { display: block; width: 100%; margin-bottom: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fbfcfe; color: var(--ink); font-size: 12px; }
.tool-input input:focus, .tool-input textarea:focus, .tool-input select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.tool-input textarea { min-height: 105px; resize: vertical; line-height: 1.6; }
.tool-input textarea#post-body { height: 148px; min-height: 148px; }
.tool-input textarea#csv-input { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.field-help { margin-top: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-result h2, .tool-input h2 { margin-bottom: 14px; color: var(--ink); font-size: 17px; letter-spacing: -.04em; }
.tool-result #orders-output, .tool-result pre { overflow-wrap: anywhere; color: #3a4f67; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.tool-result pre { min-height: 145px; max-height: 360px; overflow: auto; padding: 13px; border-radius: 8px; background: var(--soft); }
.tool-result dl { display: grid; grid-template-columns: 115px 1fr; gap: 11px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.55; }
.tool-result dt { color: var(--ink); font-weight: 720; }
.tool-result dd { margin: 0; color: var(--muted); }
.tool-context { max-width: 800px; padding-top: 30px; }
.tool-context h2 { color: var(--ink); font-size: 17px; letter-spacing: -.04em; }
.tool-context p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.checklist { margin: 0 0 15px; padding: 0; border: 0; }
.checklist legend { margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.checklist label { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 11px; color: var(--ink); font-size: 11px; line-height: 1.45; }
.checklist input { flex: none; margin: 2px 0 0; accent-color: var(--accent); }
.tool-result output, .tool-input output { display: block; margin: 12px 0; color: var(--accent); font-size: 11px; line-height: 1.7; }
#download-plan { margin-top: 10px; }

@media (max-width: 1050px) {
  .wrap { padding-inline: 30px; }
  .hero-grid { min-height: 500px; gap: 32px; }
  .hero h1 { font-size: clamp(45px, 5.4vw, 59px); }
  .art { height: 400px; }
  .article-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 45px; }
  .tool-band::before { inset-inline: 30px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 21px; }
  .header { height: 64px; }
  .header-row { position: relative; }
  .brand { gap: 8px; font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  .brand > span:last-child { font-size: 11px; }
  .menu { display: block; }
  .header nav { position: absolute; top: 63px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 19px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: white; box-shadow: 0 16px 26px rgba(35,56,85,.09); }
  .header nav.open { display: flex; }
  .header nav .nav-home { align-self: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 25px; padding-top: 50px; padding-bottom: 28px; }
  .hero h1 { margin-bottom: 15px; font-size: clamp(43px, 10vw, 60px); }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .hero-intro { max-width: 540px; margin-bottom: 22px; font-size: 14px; }
  .hero-note { font-size: 10px; }
  .art { height: 355px; border-radius: 16px; }
  .guides { padding-top: 55px; padding-bottom: 44px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 20px; }
  .search { width: 100%; }
  .guide-grid { grid-template-columns: 1fr; gap: 10px; }
  .guide-card { min-height: 180px; padding: 21px 22px; }
  .tool-band { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 52px; padding-block: 21px; }
  .tool-band::before { inset-inline: 21px; }
  .tool-band-icon { width: 38px; height: 38px; margin-left: 22px; }
  .tool-band > div:nth-of-type(2) { flex: 1 1 calc(100% - 90px); }
  .tool-band .button { margin: 4px 21px 0 auto; }
  .reading-note { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 53px; }
  .closing { align-items: flex-start; flex-direction: column; gap: 13px; padding-bottom: 50px; font-size: 19px; }
  .footer-top { flex-direction: column; gap: 34px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; }
  .article-head { padding-top: 38px; padding-bottom: 31px; }
  .breadcrumbs { margin-bottom: 25px; }
  .article-head h1 { font-size: clamp(34px, 8vw, 47px); }
  .article-layout { display: block; padding-top: 28px; padding-bottom: 62px; }
  .toc { position: static; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
  .toc-back { margin-top: 15px; }
  .answer { margin-bottom: 30px; padding: 19px; }
  .answer p { font-size: 14px; }
  .prose h2 { font-size: 21px; }
  .prose p, .prose li { font-size: 13px; }
  .tool-head { margin-top: 17px; margin-bottom: 14px; padding: 21px; border-radius: 13px; }
  .back-link { margin-bottom: 12px; }
  .tool-layout { grid-template-columns: 1fr; gap: 10px; }
  .tool-input, .tool-result { padding: 19px; }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .tool-result dl { grid-template-columns: 90px 1fr; }
  .tool-context { padding-top: 23px; }
}
@media (max-width: 430px) {
  .hero-actions { gap: 12px; }
  .hero-note { display: none; }
  .art { height: 310px; }
  .book { transform: rotate(-6deg) scale(.78); }
  .layer { right: 8%; left: 7%; padding: 12px; }
  .layer-2 { right: 5%; left: 10%; }
  .layer-3 { right: 2%; left: 13%; }
  .layer b { font-size: 17px; }
  .layer em { display: none; }
  .flow-art { padding-inline: 21px; }
  .flow-node { min-height: 66px; padding: 10px; }
  .flow-node.first { margin-top: 71px; }
  .flow-node.second { margin-left: 18px; }
  .flow-node.third { margin-left: 34px; }
  .flow-link { height: 22px; }
  .post-paper { top: 49px; left: 12%; transform: rotate(-6deg) scale(.78); transform-origin: top left; }
  .post-stamp { top: 52%; right: 7%; width: 69px; height: 69px; font-size: 12px; }
  .ledger { width: 84%; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
