:root {
--bg: #f5f7fb;
--surface: #ffffff;
--surface-2: #eef2f8;
--ink: #0f1b2d;
--ink-2: #4a5872;
--line: #dde3ee;
--line-strong: #c3ccdc;
--brand: #1f4fd8;
--brand-ink: #ffffff;
--brand-soft: #e6edff;
--accent: #e5243b;
--ok: #0b7a4b;
--result-bg: #fff7e0;
--result-line: #f0b429;
--field: #ffffff;
--shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
--radius: 14px;
--wrap: 1180px;
--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg: #0c1220; --surface: #141c2e; --surface-2: #1b2539; --ink: #e8edf7; --ink-2: #9fb0cc;
--line: #26324a; --line-strong: #384763; --brand: #7aa2ff; --brand-ink: #0c1220; --brand-soft: #1c2a4a;
--accent: #ff6b7d; --ok: #4fd69c; --result-bg: #2a2410; --result-line: #c9962a; --field: #0f1727;
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
}
}
:root[data-theme="dark"] {
--bg: #0c1220; --surface: #141c2e; --surface-2: #1b2539; --ink: #e8edf7; --ink-2: #9fb0cc;
--line: #26324a; --line-strong: #384763; --brand: #7aa2ff; --brand-ink: #0c1220; --brand-soft: #1c2a4a;
--accent: #ff6b7d; --ok: #4fd69c; --result-bg: #2a2410; --result-line: #c9962a; --field: #0f1727;
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
} *, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
p { margin: 0 0 1.1em; }
.screen-reader-text, .as-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.as-skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.as-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .as-wrap { padding: 0 16px; } .as-logo-t small { display: none; } .as-header-in { gap: 10px; } }
.as-ic { flex: none; vertical-align: -4px; } .as-btn:not(#_) { appearance: none; margin: 0; border: 0; border-radius: 10px; padding: 12px 20px; font: 600 1rem/1.2 var(--font); cursor: pointer; }
.as-btn-primary:not(#_) { background: var(--brand); color: var(--brand-ink); }
.as-btn-primary:hover { filter: brightness(1.08); }
.as-iconbtn:not(#_) { appearance: none; margin: 0; width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.as-iconbtn:not(#_):hover { border-color: var(--line-strong); background: var(--surface-2); } .as-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.as-header-in { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.as-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.as-logo-t { font-weight: 800; letter-spacing: .04em; font-size: 1.15rem; line-height: 1; display: grid; gap: 3px; }
.as-logo-t small { font-weight: 500; letter-spacing: .02em; font-size: .68rem; color: var(--ink-2); text-transform: uppercase; }
.as-nav { flex: 1; min-width: 0; }
.as-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.as-nav ul::-webkit-scrollbar { display: none; }
.as-nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 600; white-space: nowrap; }
.as-nav a:hover, .as-nav a.is-current { color: var(--ink); background: var(--surface-2); }
.as-header-tools { display: flex; gap: 8px; margin-left: auto; }
.as-burger:not(#_) { display: none; }
.as-searchbar { border-top: 1px solid var(--line); padding: 12px 0; background: var(--surface); }
@media (max-width: 1080px) {
.as-burger:not(#_) { display: inline-grid; }
.as-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 8px 12px 14px; }
.as-nav.is-open { display: block; }
.as-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.as-nav a { padding: 12px; font-size: 1rem; }
} .as-search:not(#_) { position: relative; display: flex; gap: 8px; width: 100%; max-width: 720px; margin: 0 auto; }
.as-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; display: grid; }
.as-search-in { flex: 1; min-width: 0; width: 100%; margin: 0; font: 1.05rem/1.2 var(--font); padding: 15px 14px 15px 44px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--ink); }
.as-search-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.as-suggest { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; text-align: left; }
.as-suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.as-suggest a small { color: var(--ink-2); flex: none; }
.as-suggest li.is-active a, .as-suggest a:hover { background: var(--brand-soft); }
@media (max-width: 520px) { .as-search .as-btn:not(#_) { display: none; } } .as-hero { background: radial-gradient(1200px 400px at 50% -120px, var(--brand-soft), transparent 70%); padding: clamp(36px, 6vw, 72px) 0 28px; text-align: center; }
.as-hero h1 { max-width: 18ch; margin: 0 auto .35em; }
.as-hero-sub { max-width: 62ch; margin: 0 auto 24px; color: var(--ink-2); font-size: 1.08rem; }
.as-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; padding: 0; max-width: 760px; }
.as-chips a { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.as-chips a:hover { border-color: var(--brand); color: var(--brand); }
.as-block { margin-top: clamp(32px, 5vw, 56px); margin-bottom: 0; }
.as-h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); display: flex; align-items: center; gap: 8px; }
.as-count { font: 600 .8rem var(--font); color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; letter-spacing: 0; }
.as-lead { color: var(--ink-2); max-width: 70ch; }
.as-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.as-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.as-cat-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.as-cat-head strong { display: block; line-height: 1.25; }
.as-cat-head small { display: block; color: var(--ink-2); font-size: .82rem; line-height: 1.35; }
.as-cat-head:hover strong { color: var(--brand); }
.as-cat-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.as-cat-n { margin-left: auto; font: 600 .8rem var(--font); color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; }
.as-cat-links { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.as-cat-links a { display: block; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.as-cat-links a:hover { color: var(--brand); text-decoration: underline; }
.as-links { list-style: none; margin: 0; padding: 0; }
.as-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.as-links-row { display: flex; flex-wrap: wrap; gap: 10px; }
.as-links a { display: block; height: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.as-links a:hover { border-color: var(--brand); color: var(--brand); }
.as-more { margin: 16px 0 0; font-weight: 600; }
.as-more a { text-decoration: none; }
.as-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.as-guide { display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.as-guide:hover { border-color: var(--brand); }
.as-guide strong { line-height: 1.3; font-size: 1.05rem; }
.as-guide span { color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.as-guide small { color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.as-trust { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.as-trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; }
.as-trust-list .as-ic { color: var(--ok); margin-right: 6px; }
@media (max-width: 760px) { .as-trust { grid-template-columns: 1fr; } } .as-page { padding-top: 18px; }
.as-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--ink-2); }
.as-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-strong); }
.as-crumbs a { color: var(--ink-2); text-decoration: none; }
.as-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.as-crumbs li:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .as-layout { grid-template-columns: minmax(0, 1fr); } .as-side .as-toc { display: none; } }
.as-article { min-width: 0; }
.is-plain .as-article, .is-hub .as-article { max-width: 860px; }
.is-hub .as-article { max-width: none; }
.as-article-head h1 { margin-bottom: .3em; }
.as-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--ink-2); font-size: .88rem; margin: 0 0 18px; }
.as-meta a { color: inherit; }
.as-swap { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand) !important; text-decoration: none; font-weight: 600; }
.as-swap:hover { border-color: var(--brand); }
@media (max-width: 600px) { .as-swap { margin-left: 0; } } .as-content { font-size: 1.04rem; }
.as-content > * { max-width: 74ch; }
.as-content > .as-tablewrap, .as-content > figure, .as-content > .wp-block-image, .as-content > .wp-block-columns, .as-content > .as-tool { max-width: 100%; }
.as-content h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.65rem); margin: 1.8em 0 .6em; }
.as-content h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.as-content ul, .as-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.as-content li { margin: .3em 0; }
.as-content figure { margin: 1.6em 0; }
.as-content figure img, .as-content p > img { border-radius: 10px; background: #fff; }
.as-content figcaption { color: var(--ink-2); font-size: .88rem; margin-top: 8px; text-align: center; }
.as-content .aligncenter, .as-content .aligncenter img { margin-left: auto; margin-right: auto; display: block; text-align: center; }
.as-content .has-text-align-center { text-align: center; }
.as-content blockquote { margin: 1.5em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; }
.as-content sub, .as-content sup { font-size: .72em; line-height: 0; }
.as-content .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.as-content iframe { max-width: 100%; } .is-tool .as-content p:has(> sub:first-of-type):not(:has(a)) { font-family: var(--mono); font-size: .98rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; overflow-x: auto; }
.as-tablewrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.as-tablewrap table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.as-tablewrap th, .as-tablewrap td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.as-tablewrap thead th, .as-tablewrap tr:first-child th { background: var(--surface-2); font-weight: 700; position: sticky; top: 0; }
.as-tablewrap tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.as-tablewrap tr:last-child td { border-bottom: 0; } .as-toolzone { margin: 0 0 28px; }
.as-tool { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 26px); max-width: 640px; color: var(--ink); }
.as-tool:not(#_) form, .as-tool:not(#_) .container, .as-tool:not(#_) .calculator, .as-tool:not(#_) .converter { width: 100%; max-width: none; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: inherit; }
.as-tool:not(#_) fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 6px; margin: 0 0 16px; min-width: 0; }
.as-tool:not(#_) legend { font-weight: 700; padding: 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.as-tool:not(#_) label { display: block; width: auto; margin: 0 0 6px; font-weight: 600; font-size: .95rem; color: var(--ink); text-align: left; }
.as-tool:not(#_) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .as-tool:not(#_) select, .as-tool:not(#_) textarea { display: block; width: 100%; max-width: none; height: auto; margin: 0 0 14px; padding: 13px 14px; font: 500 16px/1.3 var(--font); color: var(--ink); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 10px; box-shadow: none; }
.as-tool:not(#_) input:focus, .as-tool:not(#_) select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.as-tool:not(#_) input[readonly]:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .as-tool:not(#_) input[disabled]:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .as-tool:not(#_) output { background: var(--result-bg); border-color: var(--result-line); font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--ink); opacity: 1; }
.as-tool:not(#_) :is(input, select, label) + br { display: none; }
.as-tool:not(#_) .button-container, .as-tool:not(#_) .buttons, .as-tool:not(#_) .btn-container { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin: 4px 0 8px; }
.as-tool:not(#_) button, .as-tool:not(#_) input[type="button"], .as-tool:not(#_) input[type="submit"] { appearance: none; display: inline-block; width: auto; margin: 0; padding: 13px 24px; border: 1.5px solid var(--brand); border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: 700 1rem/1.2 var(--font); cursor: pointer; opacity: 1; }
.as-tool:not(#_) button:hover { filter: brightness(1.08); }
.as-tool:not(#_) button[type="reset"], .as-tool:not(#_) input[type="reset"], .as-tool:not(#_) button[id*="reset" i], .as-tool:not(#_) button[id*="clear" i], .as-tool:not(#_) button[class*="reset" i], .as-tool:not(#_) button[onclick*="reset" i], .as-tool:not(#_) button[onclick*="clear" i] { background: transparent; color: var(--ink-2); border-color: var(--line-strong); font-weight: 600; }
.as-tool:not(#_) button.as-copy { padding: 6px 12px; font-size: .82rem; font-weight: 600; background: transparent; color: var(--brand); border-color: var(--line-strong); margin: -8px 0 14px; }
.as-tool:not(#_) p { margin: 0 0 10px; }
.as-tool:not(#_) #output, .as-tool:not(#_) .result, .as-tool:not(#_) #result { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.as-tool:not(#_) span[id] { font-family: var(--mono); font-weight: 700; }
.as-tool:not(#_) table { width: 100%; } .as-side { position: sticky; top: 84px; display: grid; gap: 18px; font-size: .93rem; }
@media (max-width: 1000px) { .as-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.as-side-box, .as-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.as-side-h { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.as-side-links, .as-toc ol { list-style: none; margin: 0; padding: 0; }
.as-side-links a, .as-toc a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; line-height: 1.35; border-bottom: 1px solid var(--line); }
.as-side-links li:last-child a, .as-toc li:last-child a { border-bottom: 0; }
.as-side-links a:hover, .as-toc a:hover, .as-toc a.is-active { color: var(--brand); }
.as-side-more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.as-toc-mobile { display: none; margin: 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.as-toc-mobile summary { font-weight: 700; cursor: pointer; }
.as-toc-mobile .as-toc { border: 0; padding: 8px 0 0; background: none; }
.as-toc-mobile .as-side-h { display: none; }
@media (max-width: 1000px) { .as-toc-mobile { display: block; } }
.as-author { display: flex; gap: 14px; align-items: center; margin: 36px 0 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 74ch; }
.as-author-img { border-radius: 50%; flex: none; }
.as-author p { margin: 0; }
.as-author-name { font-weight: 700; }
.as-author-bio { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.as-related { margin-top: 40px; }
.as-filter { width: 100%; max-width: 360px; margin: 0 0 14px; padding: 11px 14px; font: 16px var(--font); border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--field); color: var(--ink); }
.as-guides-list { margin-top: 20px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin: 28px 0 0; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); } .as-footer { margin-top: clamp(48px, 7vw, 88px); background: var(--surface); border-top: 1px solid var(--line); font-size: .93rem; }
.as-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 28px; }
@media (max-width: 760px) { .as-footer-grid { grid-template-columns: 1fr 1fr; } .as-footer-about { grid-column: 1 / -1; } }
.as-footer-brand { font-weight: 800; letter-spacing: .04em; margin: 0 0 8px; }
.as-footer-h { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.as-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.as-footer a { color: var(--ink); text-decoration: none; }
.as-footer a:hover { color: var(--brand); text-decoration: underline; }
.as-footer-note, .as-footer-about p { color: var(--ink-2); max-width: 52ch; }
.as-footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; color: var(--ink-2); font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .as-header, .as-footer, .as-side, .as-related, .as-author { display: none; } body { background: #fff; } }