/* YJTOON's reference library: green paper, ink, and one lime highlighter. */
:root { --canvas:#f5f6f0; --surface-hover:#ebefe4; --border:#d5dccd; --text-muted:#53624f; --radius-sm:6px; }
html { scroll-padding-top:92px; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
button, input, select { font:inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #17603c; outline-offset:4px; }
h2[id], h3[id], section[id] { scroll-margin-top:92px; }
.site-header { background:rgba(245,246,240,.97); backdrop-filter:none; }
.site-header .container { height:78px; gap:24px; }
.site-header nav { display:flex; align-items:center; gap:22px; }
.logo { gap:11px; }
.logo img { width:38px; height:38px; }
.logo-lockup { display:grid; gap:4px; }
.logo-text { font-size:1.48rem; font-stretch:normal; letter-spacing:-.035em; text-transform:lowercase; }
.logo-caption { font-size:10px; font-weight:500; letter-spacing:.015em; color:var(--text-muted); }
.nav-links a { min-height:44px; padding-inline:12px; font-size:13px; }
.nav-search { display:flex; align-items:center; gap:9px; min-height:44px; border-left:1px solid var(--border); padding-left:22px; color:var(--ink); font-size:13px; }
.nav-search kbd { margin-left:12px; background:transparent; color:var(--text-muted); font-size:12px; padding:2px 7px; }
.atlas-hero { padding:70px 0 0; }
.atlas-hero-grid { display:grid; grid-template-columns:1.03fr 1fr; gap:64px; align-items:center; }
.atlas-eyebrow { display:flex; align-items:center; gap:10px; font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--text-muted); margin:0 0 24px; }
.atlas-eyebrow::before { content:''; width:6px; height:6px; background:var(--accent); }
.atlas-hero h1 { font-family:var(--font-display); font-size:clamp(48px,5.7vw,78px); line-height:1.02; letter-spacing:-.055em; font-weight:750; font-stretch:normal; max-width:10ch; margin:0 0 24px; }
.atlas-hero h1 span { color:var(--accent); }
.atlas-description { font-size:17px; line-height:1.65; max-width:48ch; margin:0 0 24px; color:var(--text-secondary); }
.hero-search { display:flex; padding:6px; background:var(--surface); border:1px solid var(--border-hover); border-radius:6px; max-width:510px; gap:6px; }
.hero-search:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.hero-search input { min-width:0; width:100%; padding:10px 12px; border:0; background:none; outline:none; font-size:15px; color:var(--ink); }
.hero-search button { padding:11px 18px; min-height:44px; flex-shrink:0; white-space:nowrap; border:0; border-radius:3px; color:var(--ink); background:var(--mark); font-weight:650; cursor:pointer; }
.hero-search button:hover { background:#c4e12c; }
.atlas-hero-links { display:flex; gap:24px; align-items:center; margin:18px 0 0; font-size:13px; }
.atlas-hero-links a { display:inline-flex; align-items:center; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
.atlas-facts { display:flex; flex-wrap:wrap; gap:24px; padding:23px 0; margin-top:44px; border-top:1px solid var(--border); font-size:12px; color:var(--text-muted); }
.atlas-facts strong { color:var(--ink); font-weight:650; }
.atlas-facts span:last-child { margin-left:auto; }
.atlas-hero .popular { border-top:1px solid var(--border); margin:0; }
.atlas-hero .popular-row { padding-block:16px; }
.press-figure { margin:0; background:#e8eddf; border:1px solid #cbd5bf; border-radius:8px; overflow:hidden; }
.press-topline, .press-bottomline { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; font-size:11px; color:var(--text-muted); }
.press-topline { border-bottom:1px solid #cbd5bf; }
.press-topline strong { font-size:12px; font-weight:600; color:var(--ink); }
.press-stage { position:relative; padding:0 12px; }
.press-stage svg { display:block; width:100%; height:auto; }
.press-stage [data-press-piece] { transition:transform 550ms cubic-bezier(.2,.75,.25,1); }
.press-figure .iso { --anatomy-paper:#e8eddf; --anatomy-top:#f8faf3; --anatomy-shade-0:#91a17f; --anatomy-shade-1:#a9b89b; --anatomy-shade-2:#c0cdb2; --anatomy-shade-3:#d9e2cd; --anatomy-hi:#294029; --anatomy-mid:#5c7053; --anatomy-lo:#8d9f7f; --anatomy-faint:#c0cdb2; --anatomy-lit-top:#d5f23e; --anatomy-lit-shade:#adca32; --anatomy-lit:#23402b; --anatomy-dot:#294029; --anatomy-weight:.65px; }
html:not(.js) .press-controls { display:none; }
.press-controls { display:flex; align-items:center; justify-content:center; gap:6px; padding:0 20px 18px; }
.press-figure .iso { --anatomy-face:#d5f23e; --anatomy-halo:#657e50; --anatomy-halo-opacity:.2; }
.press-controls button { background:transparent; border:1px solid #b8c6aa; color:var(--text-secondary); min-width:76px; min-height:44px; font-family:var(--font-mono); font-size:11px; border-radius:4px; cursor:pointer; }
.press-controls button[aria-pressed=true] { background:var(--ink); color:var(--mark); border-color:var(--ink); }
.press-output { padding:18px 22px; background:#f8faf3; border-block:1px solid #cbd5bf; }
.press-output pre { margin:0; height:124px; overflow:auto; color:#294029; font-family:var(--font-mono); font-size:11px; line-height:1.65; white-space:pre; }
.press-output-label { display:flex; justify-content:space-between; margin-bottom:8px; font-size:10px; color:var(--text-muted); }
.press-bottomline { padding-block:12px; font-size:10px; }
.press-bottomline a { text-decoration:underline; text-underline-offset:3px; }
.collection-section { padding:72px 0; }
.section-heading-row { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.section-heading-row .section-title { margin-bottom:0; }
.section-heading-row>a { flex-shrink:0; min-height:44px; display:flex; align-items:center; font-size:13px; text-decoration:underline; text-underline-offset:4px; }
.collection-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--border); border-left:1px solid var(--border); }
.collection-card { display:flex; flex-direction:column; gap:14px; padding:28px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); color:var(--ink); min-width:0; transition:background 160ms; }
.collection-card:hover { background:var(--surface-hover); color:var(--ink); }
.collection-card-number { font-family:var(--font-mono); font-size:11px; color:var(--text-muted); display:flex; justify-content:space-between; }
.collection-card h3 { font-family:var(--font-display); font-size:22px; line-height:1.15; letter-spacing:-.025em; font-weight:650; font-stretch:normal; }
.collection-card p { font-size:14px; line-height:1.6; color:var(--text-secondary); }
.collection-card-meta { margin-top:auto; padding-top:12px; font-size:11px; color:var(--text-muted); }
.library-search { position:fixed; inset:8vh 16px auto; width:min(680px,calc(100% - 32px)); max-height:84vh; margin:0 auto; border:1px solid var(--border-hover); border-radius:8px; background:var(--canvas); color:var(--ink); padding:0; box-shadow:0 24px 80px #10161233; overscroll-behavior:contain; }
.library-search::backdrop { background:#10161280; }
.search-open { overflow:hidden; }
.search-dialog-head { display:flex; align-items:center; justify-content:space-between; padding:20px 24px 12px; gap:20px; }
.search-dialog-head h2 { font-family:var(--font-display); font-size:22px; letter-spacing:-.03em; font-weight:650; }
.search-dialog-head button { min-height:44px; }
.library-search input { display:block; margin:0 24px; width:calc(100% - 48px); padding:14px; border:1px solid var(--border-hover); background:#fff; color:var(--ink); border-radius:4px; font-size:16px; }
.search-dialog-status { padding:14px 24px 0; font-size:12px; color:var(--text-muted); }
#library-results { padding:12px 24px 24px; }
.search-suggestions, .search-hit-list { list-style:none; padding:0; margin:0; }
.search-suggestions a { display:flex; align-items:center; justify-content:space-between; min-height:48px; border-bottom:1px solid var(--border); font-size:14px; color:var(--ink); }
.search-hit-list a { display:grid; gap:5px; padding:14px 12px; border-bottom:1px solid var(--border); color:var(--ink); border-radius:4px; }
.search-hit-list a:hover, .search-hit-list a:focus-visible { background:var(--surface-hover); }
.search-hit-title { font-size:16px; font-weight:600; }
.search-hit-meta { color:var(--accent); font-size:11px; }
.search-hit-description { color:var(--text-muted); font-size:12px; line-height:1.5; }
.search-empty { padding:24px 0; font-size:14px; }
.search-dialog-footer { display:flex; justify-content:space-between; padding:18px 24px; border-top:1px solid var(--border); background:var(--surface-hover); font-size:13px; color:var(--ink); }
.catalog-browser { padding-top:56px; }
.catalog-filter-form { display:flex; align-items:end; flex-wrap:wrap; gap:16px; margin:24px 0 16px; }
.catalog-filter-form label { display:grid; gap:8px; font-size:12px; font-weight:600; }
.catalog-filter-form label:first-child { flex:1; min-width:200px; }
.catalog-filter-form input, .catalog-filter-form select { width:100%; min-height:48px; padding:12px 14px; border:1px solid var(--border-hover); border-radius:4px; background:#fff; color:var(--ink); font-size:15px; }
.catalog-filter-form label:nth-child(2) { width:250px; }
.catalog-filter-form button { min-height:48px; }
.catalog-filter-status { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:12px; color:var(--text-muted); padding-bottom:12px; border-bottom:1px solid var(--border); }
.catalog-filter-status button { min-height:44px; background:none; border:0; text-decoration:underline; cursor:pointer; color:var(--accent); }
.dataset-list { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; }
.dataset-list li { min-width:0; border-bottom:1px solid var(--border); }
.dataset-list a { display:flex; align-items:center; gap:18px; padding:22px 8px 22px 0; min-height:116px; color:var(--ink); }
.dataset-list a:hover { background:var(--surface-hover); }
.dataset-list-body { display:grid; gap:7px; min-width:0; flex:1; }
.dataset-list-body strong { font-size:16px; line-height:1.35; font-weight:600; }
.dataset-list-body small { font-size:12px; line-height:1.55; color:var(--text-muted); }
.dataset-list-body .dataset-topic { font-size:10px; color:var(--cat-deep,var(--accent)); letter-spacing:.02em; }
.dataset-entry-count { font-family:var(--font-mono); font-size:11px; text-align:right; color:var(--text-muted); white-space:nowrap; }
.dataset-entry-count strong { display:block; font-size:23px; font-weight:400; color:var(--ink); }
.data-table-wrap { max-width:100%; overflow:auto; overscroll-behavior-x:contain; border-radius:4px; }
.data-table { font-size:13px; min-width:var(--table-min,0); }
.data-table th { position:sticky; top:0; z-index:1; background:#e8eddf; }
.data-table tbody tr:nth-child(even) { background:#edf1e755; }
.data-table tbody tr:hover { background:#e8eddf; }
.data-table th, .data-table td { padding:14px 16px; vertical-align:top; }
.table-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 0; font-size:11px; color:var(--text-muted); }
.table-tools label { display:flex; align-items:center; flex:1; gap:12px; min-width:200px; }
.table-tools input { width:min(100%,320px); min-width:0; padding:10px 12px; border:1px solid var(--border-hover); border-radius:4px; background:white; color:var(--ink); font-size:14px; }
.catalog-grid>div { min-width:0; }
.catalog-aside { align-self:start; }
.source-panel { padding:24px; margin:32px 0; border:1px solid var(--border); background:var(--surface-hover); border-radius:6px; }
.source-panel h2 { font-size:17px; font-weight:650; margin-bottom:12px; }
.source-panel p, .source-panel li { font-size:13px; line-height:1.65; color:var(--text-secondary); }
.source-panel ul { padding-left:18px; margin:12px 0; }
.source-panel a { text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.source-panel .source-date { font-size:11px; color:var(--text-muted); }
.article-contents { margin:28px 0 40px; padding:20px 24px; background:var(--surface-hover); border-left:3px solid var(--accent); }
.article-contents summary { cursor:pointer; font-size:13px; font-weight:600; min-height:28px; }
.article-contents ol { padding:12px 0 0 18px; font-size:13px; line-height:1.7; }
.article-contents a { display:inline-block; padding:5px 0; text-decoration:underline; text-underline-offset:3px; }
.blog-content { font-size:17px; line-height:1.8; }
.blog-content h2 { font-stretch:normal; font-size:27px; letter-spacing:-.035em; line-height:1.25; }
.blog-content table { display:block; width:100%; max-width:100%; overflow:auto; font-size:13px; }
.blog-article-header h1 { font-stretch:normal; font-size:clamp(34px,4vw,54px); line-height:1.08; letter-spacing:-.045em; }
.blog-article .container { max-width:850px; }
.blog-content pre { max-width:100%; overflow:auto; }
.article-reference-links { padding:28px 0; border-block:1px solid var(--border); margin-top:36px; }
.article-reference-links h2 { font-size:19px; margin-bottom:16px; }
.article-reference-links ul { display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; list-style:none; margin:0; padding:0; }
.article-reference-links a { display:block; font-size:13px; padding:8px 0; text-decoration:underline; text-underline-offset:3px; }
.footer-word { display:flex; align-items:center; gap:14px; color:var(--canvas); }
#sw-root { margin-top:22px; }
#sw-root .sw-toggle { position:static; transform:none !important; width:auto; min-height:44px; flex-direction:row; padding:10px 14px; gap:10px; border-color:#586651; box-shadow:none; }
#sw-root .sw-toggle-label { writing-mode:horizontal-tb; letter-spacing:.04em; }
#sw-root .sw-panel { z-index:1000; }
#sw-root .sw-sub { color:var(--text-muted); font-size:12px; line-height:1.5; max-width:none; }
#sw-root .sw-close { width:44px; height:44px; color:var(--text-muted); }
.shelf-section { padding-top:64px; }
.cat-hero-num { opacity:.07; }
.blog-article .rv-mid { margin:32px 0; }
@media (min-width:769px) { .catalog-aside { position:sticky; top:106px; max-height:calc(100vh - 126px); overflow:auto; padding-right:6px; } }
@media (max-width:1100px) { .atlas-hero-grid { gap:32px; } .logo-caption { display:none; } .site-header nav { gap:12px; } .nav-search { padding-left:12px; } .nav-search kbd { display:none; } .nav-links a { padding-inline:9px; } }
@media (max-width:768px) {
    .site-header .container { height:68px; gap:14px; }
    .site-header nav { gap:16px; }
    .nav-links { top:68px; max-height:calc(100dvh - 68px); padding:16px 20px 24px; }
    .nav-links a { font-size:26px; padding:18px 8px; min-height:64px; }
    .nav-search { border:0; padding:0; min-width:44px; justify-content:center; }
    .nav-search span { display:none; }
    .logo img { width:34px; height:34px; }
    .atlas-hero { padding-top:40px; }
    .atlas-hero-grid { grid-template-columns:1fr; gap:36px; }
    .atlas-hero h1 { font-size:58px; max-width:12ch; margin-bottom:20px; }
    .atlas-eyebrow { margin-bottom:20px; }
    .atlas-description { font-size:16px; max-width:45ch; }
    .atlas-facts { gap:12px 20px; margin-top:32px; padding-block:20px; }
    .atlas-facts span:last-child { margin-left:0; }
    .press-figure { max-width:550px; width:100%; margin-inline:auto; }
    .press-output pre { height:104px; }
    .collection-section { padding-block:48px; }
    .collection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .collection-card { padding:22px; }
    .section-heading-row { align-items:start; flex-direction:column; gap:8px; }
    .dataset-list { grid-template-columns:1fr; }
    .catalog-browser { padding-top:36px; }
    .catalog-filter-form label:nth-child(2) { width:100%; }
    .catalog-filter-form { gap:12px; }
    .data-table th, .data-table td { padding:12px; min-width:120px; }
    .blog-content { font-size:16px; }
    .blog-content h2 { font-size:24px; }
    .article-reference-links ul { grid-template-columns:1fr; }
    .library-search { inset:16px 0 auto; max-height:calc(100dvh - 32px); }
    .source-panel { padding:20px; }
    html:not(.js) .site-header { position:static; }
    html:not(.js) .site-header .container { height:auto; padding-block:12px; flex-wrap:wrap; }
    html:not(.js) .site-header nav { width:100%; }
    html:not(.js) .nav-links { position:static; visibility:visible; opacity:1; pointer-events:auto; transform:none; display:flex; flex-direction:row; flex-wrap:wrap; flex:1; min-height:0; max-height:none; align-content:start; padding:0; border:0; }
    html:not(.js) .nav-links a { font-size:13px; min-height:44px; padding:8px; border:0; }
    html:not(.js) .mobile-menu-btn { display:none; }
}
@media (max-width:480px) {
    .collection-grid { grid-template-columns:1fr; }
    .collection-card { padding:24px; }
    .collection-card h3 { font-size:23px; }
    .atlas-hero h1 { font-size:52px; }
    .hero-search button { padding-inline:13px; }
    .hero-search input { font-size:14px; padding-left:8px; }
    .press-topline, .press-bottomline { padding-inline:16px; }
    .press-topline { font-size:10px; }
    .press-output { padding:16px; }
    .dataset-list-body strong { font-size:15px; }
    .search-dialog-head { padding-inline:18px; }
    .library-search input { margin-inline:18px; width:calc(100% - 36px); }
    #library-results { padding-inline:18px; }
    .search-dialog-status { padding-inline:18px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }
