/* 0v0 editorial interface. Existing ad units retain their own dimensions. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --bg-panel: #eff2f6;
  --line: #e4e8ef;
  --text: #18212f;
  --text-secondary: #465368;
  --muted: #68758a;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #edf3ff;
  --accent-glow: #2563eb14;
  --chip-surface: #f3f5f8;
  --chip-hover: #eaf0f9;
  --shadow-sm: 0 1px 3px #162b4805;
  --shadow: 0 4px 18px #162b4805;
  --shadow-lg: 0 14px 40px #162b4812;
  --shadow-xl: 0 16px 40px #162b4815;
  --shadow-glow: none;
  --radius: 12px;
  --radius-lg: 16px;
  --reading-width: 800px;
  --site-width: 1120px;
}
:root[data-theme="dark"] {
  --bg: #10151e;
  --surface: #171e29;
  --surface-strong: #1c2532;
  --bg-panel: #202a39;
  --line: #2b3545;
  --text: #edf2fa;
  --text-secondary: #c2ccdb;
  --muted: #98a6bb;
  --accent: #8bb5ff;
  --accent-deep: #9cc0ff;
  --accent-soft: #213352;
  --accent-glow: #8bb5ff12;
  --chip-surface: #202a39;
  --chip-hover: #2a374a;
  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 14px 40px #00000030;
  --shadow-xl: 0 16px 40px #00000035;
}
body { font-family: 'Inter', 'Pretendard Variable', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; background: var(--bg); transition: none; }
body::before { display: none; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button, select, summary { touch-action: manipulation; }
[hidden] { display: none !important; }
::selection { background: var(--accent-soft); color: var(--text); }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100000; padding: 12px 18px; background: var(--text); color: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrapper { width: min(var(--site-width), calc(100% - 48px)); margin: 0 auto; padding: 0; }
.site-header { position: sticky; top: 0; z-index: 100; display: block; width: 100%; left: auto; transform: none; padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.header-inner { width: min(var(--site-width), calc(100% - 48px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: 1fr minmax(200px, 420px) 1fr; align-items: center; gap: 28px; }
.brand { gap: 10px; white-space: nowrap; width: fit-content; font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.brand-logo { width: 48px; height: 48px; border-radius: 0; object-fit: contain; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand span { display: inline; }
.brand-mark { background: #15263e; box-shadow: none; }
.brand-mark::after { display: none; }
.brand-home-note { display: block; }
.header-side { width: 100%; min-width: 0; }
.header-right { gap: 10px; }
.search-container { width: 100%; }
.search-input-wrap { display: flex; width: 100%; height: 44px; min-height: 44px; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: none; }
.search-input-wrap:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-input { width: 100%; min-width: 0; font-size: 14px; font-weight: 450; line-height: 1.5; }
.search-input:focus-visible { outline: none; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-input::placeholder { color: var(--muted); opacity: 1; }
.search-icon.fa-solid { position: static; flex: 0 0 16px; font-size: 14px; color: var(--muted); }
.search-shortcut { border: 1px solid var(--line); color: var(--muted); border-radius: 5px; background: var(--surface); min-width: 23px; height: 24px; display: grid; place-items: center; font-family: inherit; font-size: 12px; }
.search-input-wrap:has(.search-clear.visible) .search-shortcut { display: none; }
.search-clear { width: 28px; height: 28px; background: var(--chip-surface); display: none; }
.search-clear.visible { display: inline-flex; }
.search-dropdown { width: min(560px, calc(100vw - 24px)); max-height: min(500px, calc(100dvh - 160px)); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-xl); background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.search-dropdown-header { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.search-result-item { padding: 14px 18px; gap: 14px; border-bottom: 1px solid var(--line); transition: background 120ms ease; }
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover, .search-result-item.focused { background: var(--accent-soft); }
.search-result-thumb { width: 58px; height: 58px; border-radius: 9px; }
.search-result-title { font-size: 14px; font-weight: 650; line-height: 1.5; }
.search-result-excerpt { margin-top: 4px; color: var(--muted); font-size: 12px; }
.search-result-cats { margin-top: 6px; }
.search-result-cat { padding: 0; background: transparent; color: var(--accent); font-size: 11px; }
.search-highlight { background: transparent; color: var(--accent); font-weight: 750; }
.search-empty { padding: 28px 20px; font-size: 14px; }
.blog-header-tools { gap: 6px; }
.language-toggle, .theme-toggle { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); box-shadow: none; }
.language-toggle > span, .language-chevron, .theme-toggle-label { display: none; }
.language-toggle:hover, .theme-toggle:hover { background: var(--chip-surface); color: var(--text); transform: none; box-shadow: none; }
.theme-toggle-badge { color: inherit; background: transparent; width: auto; height: auto; padding: 0; font-size: 17px; box-shadow: none; }
.language-popover { right: 0; top: calc(100% + 10px); background: var(--surface); border-radius: 12px; backdrop-filter: none; box-shadow: var(--shadow-lg); }
.language-option { min-height: 42px; font-size: 14px; }
.header-link { font-size: 12px; min-height: 36px; padding: 0 12px; border-radius: 8px; box-shadow: none; }
.shell { padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.controls { display: block; padding: 24px 0 0; margin: 0; border: 0; animation: none; }
.category-section { width: 100%; min-width: 0; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 0 16px; margin: 0; border: 0; }
.category-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 550; background: transparent; box-shadow: none; transition: background 120ms ease, color 120ms ease; }
.category-tab:hover { background: var(--chip-surface); color: var(--text); transform: none; box-shadow: none; }
.category-tab.active { background: var(--text); color: var(--surface); border-color: var(--text); box-shadow: none; }
.category-select-label { display: none; }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; border-top: 1px solid var(--line); margin-bottom: 10px; }
.archive-toolbar-title { display: flex; align-items: baseline; gap: 10px; }
.archive-toolbar-title h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
.view-toggle { display: flex; flex: 0 0 auto; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; background: var(--surface); }
.view-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 38px; width: auto; height: 34px; padding: 0 10px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 600; background: transparent; box-shadow: none; transition: background 120ms ease; }
.view-link.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.view-link:hover { background: var(--chip-surface); color: var(--text); transform: none; box-shadow: none; }
.view-link > i { font-size: 13px; }
.cards-grid { gap: 26px 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: none; opacity: 1; transform: none; transition: border-color 140ms ease; }
.post-card:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.post-card.stagger-in, .list-item.stagger-in { animation: none; }
.card-thumb { aspect-ratio: 16 / 9; background: var(--bg-panel); border-bottom: 1px solid var(--line); }
.card-thumb img { transition: none; }
.post-card:hover .card-thumb img { transform: none; }
.card-body { padding: 20px; }
.card-meta { gap: 6px; margin-bottom: 10px; }
.card-category { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--accent); font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: 0; }
.card-category:hover { transform: none; text-decoration: underline; text-underline-offset: 3px; }
.card-body h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; letter-spacing: -.035em; font-weight: 700; }
.card-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; -webkit-line-clamp: 2; line-clamp: 2; }
.post-details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 450; line-height: 1.5; }
.list-stack { display: block; border-top: 1px solid var(--line); }
.list-item { grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; opacity: 1; transform: none; transition: none; }
.list-item:hover { transform: none; box-shadow: none; background: transparent; }
.list-thumb { width: 150px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; align-self: center; }
.list-thumb img { object-fit: cover; transition: none; }
.list-item:hover .list-thumb img { transform: none; }
.list-item-main { padding: 0; }
.list-item h2 { font-size: 19px; line-height: 1.5; margin: 0 0 8px; letter-spacing: -.035em; }
.list-item p { font-size: 13px; line-height: 1.7; color: var(--muted); -webkit-line-clamp: 1; line-clamp: 1; }
.list-item .post-details { padding: 0; border: 0; margin-top: 12px; }
.feed-footer { padding: 36px 0 0; gap: 16px; }
.load-more { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: none; color: var(--text); font-size: 13px; font-weight: 600; }
.load-more:hover, .load-more:active { background: var(--chip-hover); border-color: var(--accent); box-shadow: none; transform: none; }
.feed-status { color: var(--muted); font-size: 12px; }
.pagination { align-items: center; gap: 5px; margin-top: 32px; }
.pagination-pages { display: flex; justify-content: center; gap: 5px; }
.pagination-link { min-width: 38px; height: 38px; min-height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; color: var(--muted); background: transparent; font-size: 13px; box-shadow: none; transition: none; }
.pagination-link[aria-disabled="true"] { opacity: .38; cursor: default; pointer-events: none; }
.pagination-link.active { background: var(--text); color: var(--surface); border-color: var(--text); box-shadow: none; }
.pagination-link:hover:not(.active) { background: var(--chip-surface); transform: none; }
.article { padding: 42px 0 0; margin: 0 0 54px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#main-content:focus, .article-content :is(h2,h3,h4)[tabindex="-1"]:focus { outline: none; }
.article-header, .article > h1, .article-dates, .article-categories, .article-knowledge, .article-cover, .article > .carousel, .article-content, .article-toc { width: 100%; max-width: var(--reading-width); margin-left: auto; margin-right: auto; }
.article-knowledge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; margin-top: 14px; margin-bottom: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.article-knowledge a { max-width: 100%; padding: 5px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.article-knowledge small { flex-basis: 100%; min-width: 0; font-size: 10px; }
.article-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.article-back { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0; color: var(--muted); font-size: 13px; border: 0; border-radius: 6px; background: transparent; box-shadow: none; }
.article-back:hover { transform: none; background: transparent; color: var(--accent); }
.page-share-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-secondary); background: var(--surface); font-size: 12px; box-shadow: none; }
.page-share-btn:hover { transform: none; color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.article > h1 { margin-bottom: 20px; color: var(--text); font-size: clamp(29px, 3.2vw, 42px); line-height: 1.38; letter-spacing: -.045em; font-weight: 760; word-break: keep-all; overflow-wrap: anywhere; }
.article-dates { margin-bottom: 14px; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.article-categories { gap: 8px; margin-bottom: 30px; }
.article-categories .card-category { padding: 5px 10px; border-radius: 6px; background: var(--accent-soft); font-size: 12px; }
.article-cover, .article > .carousel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 28px; box-shadow: none; }
.article-cover img { width: 100%; height: auto; }
.article-ad-top { width: 100%; max-width: var(--reading-width); min-height: 90px; margin: 0 auto 28px; }
.article-content { color: var(--text-secondary); font-size: 17px; line-height: 1.95; letter-spacing: -.018em; overflow-wrap: anywhere; }
.article-content p { margin: 0 0 22px; line-height: inherit; }
.article-content h2 { margin: 48px 0 18px; font-size: 26px; line-height: 1.45; letter-spacing: -.035em; color: var(--text); border: 0; padding: 0; }
.article-content h3 { margin: 34px 0 14px; font-size: 21px; line-height: 1.5; color: var(--text); }
.article-content h4 { color: var(--text); }
.article-content :is(h2,h3,h4) { scroll-margin-top: 108px; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content ul, .article-content ol { padding-left: 25px; margin: 0 0 24px; }
.article-content li { padding-left: 4px; margin: 8px 0; }
.article-content blockquote { margin: 26px 0; padding: 20px 24px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); color: var(--text-secondary); box-shadow: none; }
.article-content pre { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.article-content table { display: block; overflow-x: auto; font-size: 14px; }
.article-content img { border-radius: 10px; }
.article-content img.post-inline-image { display: block; max-width: 100%; height: auto; margin: 0 auto 24px; }
.article-content figure { margin: 32px 0; }
.article-content figure img.post-inline-image { margin-bottom: 10px; }
.article-content figcaption { color: var(--muted); font-size: 12px; line-height: 1.65; text-align: center; }
.article-content table { max-width: 100%; border-collapse: collapse; margin: 24px 0; }
.article-content :is(th,td) { min-width: 100px; padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.article-content th { background: var(--surface); color: var(--text); font-weight: 650; }
.article-content td p:last-child { margin-bottom: 0; }
.article-scroll-map { position: fixed; right: 8px; width: 24px; z-index: 91; pointer-events: none; }
.article-scroll-map::before, .article-scroll-progress { position: absolute; top: 0; bottom: 0; right: 10px; width: 2px; border-radius: 2px; background: var(--line); content: ''; }
.article-scroll-progress { background: var(--accent); opacity: .65; transform-origin: top; }
.article-scroll-marker { position: absolute; right: 0; width: 24px; margin-top: -9px; pointer-events: auto; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.article-scroll-marker::before { content: ''; position: absolute; right: 5px; top: 50%; width: 12px; height: 3px; border-radius: 3px; background: var(--muted); transform: translateY(-50%); box-shadow: 0 0 0 2px var(--bg); }
.article-scroll-marker[data-level="3"]::before, .article-scroll-marker[data-level="4"]::before { width: 7px; }
.article-scroll-marker[aria-current]::before, .article-scroll-marker:hover::before, .article-scroll-marker:focus-visible::before { background: var(--accent); height: 5px; }
.article-scroll-marker:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.article-scroll-preview { position: fixed; right: 24px; top: var(--preview-top); width: min(320px, calc(100vw - 64px)); padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 8px 32px #0003; text-align: start; line-height: 1.65; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; opacity: 0; visibility: hidden; pointer-events: none; }
.article-scroll-preview strong { display: block; font-size: 13px; font-weight: 650; }
.article-scroll-preview > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-top: 8px; font-size: 12px; color: var(--muted); }
.article-scroll-marker:not(.preview-dismissed):hover .article-scroll-preview, .article-scroll-marker:not(.preview-dismissed):focus-visible .article-scroll-preview { opacity: 1; visibility: visible; pointer-events: auto; }
@media (hover: none) { .article-scroll-map { right: 0; } .article-scroll-marker { width: 28px; } }
@media (max-width: 640px) {
  body:has(.article-scroll-map) .article-content { padding-right: 22px; box-sizing: border-box; }
  .article-scroll-map { right: 0; width: 20px; }
}
@media print { .article-scroll-map { display: none; } }
.article > .article-ad { margin-top: 36px; }
.post-navigation { border-top: 1px solid var(--line); padding-top: 28px; }
.post-navigation-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.post-navigation-header h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.post-navigation-all { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--muted); font-size: 12px; }
.post-navigation-all:hover { color: var(--accent); }
.post-navigation-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.post-navigation-groups.is-single { grid-template-columns: minmax(0,1fr); }
.post-navigation-direction { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-navigation-group:last-child:not(:first-child) .post-navigation-direction { justify-content: flex-end; }
.post-navigation-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.post-navigation-card { display: grid; grid-template-columns: 136px minmax(0,1fr); align-items: center; gap: 16px; min-height: 128px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color 120ms ease; }
.post-navigation-card:hover, .post-navigation-card:focus-visible { border-color: var(--accent); }
.post-navigation-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.post-navigation-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--bg-panel); }
.post-navigation-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-navigation-thumb.is-placeholder img { padding: 16px; object-fit: contain; }
.post-navigation-body { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; }
.post-navigation-category { color: var(--accent); font-size: 10px; line-height: 1.4; }
.post-navigation-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 650; line-height: 1.5; letter-spacing: -.025em; }
.post-navigation-body time { color: var(--muted); font-size: 10px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; margin: 64px 0 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); font-size: 11px; line-height: 1.7; background: transparent; box-shadow: none; }
.footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; white-space: nowrap; }
.footer a:hover { color: var(--accent); }
.notice { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
/* Keep the central reading/navigation area out of the official side rails. */
@media (min-width: 1280px) { .wrapper, .header-inner { width: min(var(--site-width), calc(100% - 384px)); } }
@media (min-width: 1280px) and (max-width: 1439px) { .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1800px) { .wrapper, .header-inner { width: min(var(--site-width), calc(100% - 688px)); } }
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto minmax(0,1fr) auto; gap: 24px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
  .card-body h2 { font-size: 18px; }
}
@media (max-width: 780px) {
  .wrapper, .header-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 116px; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 52px 48px; gap: 0 16px; padding-bottom: 12px; }
  .brand { grid-column: 1; grid-row: 1; font-size: 20px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .header-right { grid-column: 2; grid-row: 1; }
  .header-side { grid-column: 1 / -1; grid-row: 2; }
  .language-toggle, .theme-toggle { width: 36px; height: 36px; min-height: 36px; }
  .search-input-wrap { min-height: 42px; height: 42px; border-radius: 10px; }
  .search-input { font-size: 16px; }
  .search-shortcut { display: none; }
  .search-dropdown { left: 12px !important; width: calc(100vw - 24px); max-height: min(480px, calc(100dvh - 140px)); }
  .controls { padding-top: 18px; }
  .category-section .category-tabs { display: none; }
  .category-select-label { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); padding-bottom: 12px; }
  .category-select { flex: 1; min-width: 0; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; color: var(--text); background: var(--surface); font: inherit; font-size: 14px; }
  .archive-toolbar { min-height: 60px; margin-bottom: 4px; }
  .archive-toolbar-title { gap: 7px; }
  .archive-toolbar-title h1 { font-size: 16px; }
  .view-link { width: 36px; height: 34px; padding: 0; }
  .view-link span { display: none; }
  .card-body { padding: 18px; }
  .article { padding-top: 24px; }
  .article-header { margin-bottom: 24px; }
  .article > h1 { font-size: 30px; }
  .article-content { font-size: 16px; line-height: 1.9; }
  .article-content h2 { font-size: 24px; margin-top: 36px; }
  .article-content :is(h2,h3,h4) { scroll-margin-top: 140px; }
  .post-navigation-groups { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .post-navigation-group:last-child:not(:first-child) .post-navigation-direction { justify-content: flex-start; }
  .post-navigation-card { grid-template-columns: 112px minmax(0,1fr); min-height: 116px; gap: 14px; }
  .article-ad { display: none; }
  .article-ad-mobile { display: flex; }
  .footer { margin-top: 44px; padding: 24px 0; gap: 12px; }
}
@media (max-width: 560px) {
  .pagination { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px 4px; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; }
  .pagination-first { grid-column: 1; grid-row: 2; }
  .pagination-previous { grid-column: 2; grid-row: 2; }
  .pagination-next { grid-column: 3; grid-row: 2; }
  .pagination-last { grid-column: 4; grid-row: 2; }
  .pagination-link { min-height: 44px; height: 44px; padding: 0 10px; white-space: nowrap; }
  .cards-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .post-card { border-radius: 12px; }
  .card-body h2 { font-size: 19px; }
  .card-body p { font-size: 14px; }
  .post-details { margin-top: 18px; }
  .list-item { grid-template-columns: 92px minmax(0,1fr); gap: 14px; padding: 20px 0; overflow: visible; }
  .list-thumb { width: 92px; aspect-ratio: 1; border-radius: 9px; }
  .list-item-main { padding: 0; }
  .list-item h2 { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .list-item p { display: none; }
  .list-item .card-meta { margin-bottom: 6px; }
  .list-item .post-details { font-size: 10px; gap: 5px 10px; margin-top: 8px; }
  .post-navigation-header h2 { font-size: 18px; }
  .post-navigation-card { grid-template-columns: 96px minmax(0,1fr); gap: 12px; }
  .post-navigation-title { font-size: 14px; }
  .article-toc { padding: 14px 16px; }
  .article > h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

