:root {
  color-scheme: light;
  --bg: #fff;
  --panel: #fff;
  --line: #c5c5c5;
  --text: #181818;
  --muted: #525252;
  --accent: #b41523;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.65 "Pretendard Variable", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shell { width: min(100% - 48px, 1060px); margin-inline: auto; }
.layout { flex: 1; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 8px; background: var(--panel); }
.utility-inner, .foot, .panel-title, .pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-label { font-weight: 760; text-decoration: none; }
.search-page button { border: 1px solid var(--line); border-left: 0; border-radius: 0 7px 7px 0; padding-inline: 12px; background: var(--panel); color: var(--text); font: inherit; font-size: .82rem; white-space: nowrap; cursor: pointer; }
.tabs {
  display: grid;
  border: 1px solid var(--line);
  background: var(--bg);
}
.tabs, .category-drawer, .mobile-categories { display: none; }
.category-drawer summary {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border: 1px solid #575b64;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}
.category-drawer summary::-webkit-details-marker { display: none; }
.category-drawer summary span {
  inline-size: 16px;
  block-size: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: 0 -5px currentColor, 0 5px currentColor;
}
.category-drawer[open] summary span {
  box-shadow: none;
  transform: rotate(45deg);
}
.category-drawer[open] summary span::after {
  content: "";
  display: block;
  block-size: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(90deg);
}
.category-drawer[open] summary {
  position: relative;
  z-index: 8;
  background: #111;
}
.utility .category-drawer[open] .category-drawer-backdrop {
  position: fixed;
  z-index: 6;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgb(15 23 42 / .55);
}
.category-drawer-panel {
  position: absolute;
  z-index: 7;
  inset: 100% auto auto 0;
  inline-size: min(100%, 320px);
  max-block-size: calc(100dvh - var(--topbar-height, 82px) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px #11182724;
}
.category-drawer-panel .sidebar-profile {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 12px;
  padding: 14px;
  text-align: start;
}
.category-drawer-panel .sidebar-profile img { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; border-radius: 8px; object-fit: cover; }
.category-drawer-panel .sidebar-profile strong { font-size: .92rem; }
.category-drawer-panel .sidebar-profile p { margin: 0; color: var(--muted); font-size: .8rem; word-break: keep-all; }
.category-drawer-panel .visitor-summary { padding-inline: 14px; background: var(--bg); }

.category-heading { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.tabs a, .mobile-categories a { padding: 8px 12px; font-size: .85rem; text-decoration: none; color: var(--muted); }
.category-new { margin-inline-start: .45em; color: #b42336; font-size: .75em; font-weight: 800; vertical-align: .08em; }
@supports (background-clip: text) {
  .category-new:not([hidden]) > [aria-hidden="true"] {
    display: inline-block;
    background-image: repeating-linear-gradient(90deg, #bd152b 0%, #ee4023 11%, #efad00 25%, #ee4023 39%, #bd152b 50%);
    background-size: 200% 100%;
    background-clip: text;
    color: transparent;
    animation: category-new-gradient .9s linear infinite;
  }
}
@keyframes category-new-gradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
.tabs a[aria-current], .tabs a:hover, .mobile-categories a[aria-current], .mobile-categories a:hover { color: var(--accent); background: #faf3f3; }
h1, h2, h3 { margin: 0; line-height: 1.28; font-weight: 720; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.6875rem, 1.25rem + 1.35vw, 2.125rem); }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .07em; }
.button { display: inline-flex; gap: 10px; align-items: center; padding: 8px 13px; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none; font-size: .86rem; font-weight: 750; }
.button:hover { color: #fff; background: #90101b; }
.entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.entry a { display: block; height: 100%; text-decoration: none; }
.tile-image { aspect-ratio: 16/9; overflow: hidden; background: #f3f3f3; }
.tile-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-image img[src^="/covers/"] { object-fit: contain; }
.tile-icon img { object-fit: contain; padding: 23%; }
.tile-copy { padding: 11px 12px 15px; }
.tile-copy p { margin: 0 0 5px; font-size: .74rem; color: var(--muted); }
.tile-copy h3 { font-size: clamp(.91rem, 1.5vw, 1.12rem); }
.hero { padding-block: 34px 26px; }
.hero p:not(.eyebrow), .empty { color: var(--muted); }
:root { --article-inset: clamp(17px, 4vw, 46px); }
.article { color-scheme: light; --text: #202730; --muted: #515d6b; --accent: #75420e; --line: #d9dee4; margin: 0; padding: var(--article-inset); border-radius: 12px; background: #f8f8f5; color: var(--text); }
.article h1 { font-size: clamp(1.5625rem, 1.125rem + 1.65vw, 2.25rem); }
.article-head { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.dates, .status, figcaption { color: var(--muted); font-size: .83rem; }
.lede { font-size: 1.06rem; }
.post-thumbnail { margin: 22px 0 28px; }
.post-thumbnail img { display: block; width: 100%; max-height: 480px; object-fit: contain; background: #e9ebef; }
.post-icon img { height: 125px; padding: 34px; }
figcaption { padding-top: 7px; }
.prose { overflow-wrap: anywhere; }
.prose h2 { margin: 30px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.28rem; }
.prose img { max-width: 100%; height: auto; }
.prose pre, .contents { background: #e9edf0; padding: 12px 16px; }
.prose pre {
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid #26364a;
  border-radius: 6px;
  background: #162334;
  color: #e5edf7;
  line-height: 1.55;
  tab-size: 4;
}
.prose pre code { font: .875rem/1.55 ui-monospace, Consolas, monospace; }
.prose pre :is(.hljs-keyword, .hljs-selector-tag, .hljs-literal) { color: #ff9aae; }
.prose pre :is(.hljs-string, .hljs-regexp, .hljs-addition) { color: #a9e6ac; }
.prose pre :is(.hljs-number, .hljs-built_in, .hljs-type, .hljs-attr) { color: #ffcf8a; }
.prose pre :is(.hljs-title, .hljs-name, .hljs-variable, .hljs-attribute) { color: #a9ceff; }
.prose pre :is(.hljs-comment, .hljs-quote) { color: #aebed1; }
.prose blockquote { margin-left: 0; padding-left: 14px; border-left: 2px solid var(--line); }
.prose a { color: var(--accent); }
.contents ol { margin-bottom: 0; }
.project-list, .search-page ol { list-style: none; padding: 0; }
.project-list li, .search-page li { padding: 10px 0; border-top: 1px solid var(--line); }
.project-list li { display: flex; justify-content: space-between; gap: 12px; }
.search-page li a { display: block; color: var(--accent); font-weight: 700; }
.search-page li p { margin: 2px 0; font-size: .9rem; }
.search-page li p, .search-page small { color: var(--muted); }
.search-page button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; }
.pager { padding-block: 24px; }
.footer { margin-top: clamp(12px, 2vw, 24px); border-top: 1px solid #333; background: var(--navy); color: #edf4ff; }
.foot { justify-content: flex-end; padding-block: 16px clamp(34px, 5vw, 58px); flex-wrap: wrap; color: #c3d4eb; font-size: .83rem; }
.foot p { margin: 3px 0 0; }
.foot .footer-contact { flex-basis: 100%; text-align: right; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot a { color: #edf4ff; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .admin-link { color: #9ca3af; opacity: .55; line-height: 1.5; }
.foot .admin-link:hover, .foot .admin-link:focus-visible { color: #fff; opacity: 1; text-decoration: none; }
@media (max-width: 690px) {
  .shell { width: calc(100% - 28px); }

  .tabs a { font-size: .77rem; }
  .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

.press { padding-block-start: 50px; }
.press-front { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.29fr) minmax(0, 1fr); align-items: start; gap: 27px; }
.press a { text-decoration: none; }
.press ul { padding: 0; margin: 0; list-style: none; }
.press time { display: block; margin-top: 9px; color: var(--muted); font-size: .75rem; }
.press-brief { border: 1px solid var(--line); }
.press-brief h2 { font-size: 1.05rem; padding: 13px; }
.press-brief li, .press-list li { border-top: 1px solid var(--line); }
.press-brief li a, .press-list li a { display: block; padding: 13px; font-size: .9rem; line-height: 1.45; }
.press-all { display: block; padding: 10px 13px; color: var(--accent); font-size: .8rem; }
.press-lead-image { position: relative; border-bottom: 4px solid #da6bb1; }
.press-lead-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.press-lead-image span { position: absolute; top: 9px; left: 9px; background: #181818; color: #fff; border-radius: 14px; padding: 3px 8px; font-size: .75rem; }
.press-lead h3 { margin-top: 16px; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); }
.press-lead p { color: var(--muted); margin: 10px 0; font-size: .93rem; }
.press-top { display: grid; gap: 15px; }
.press-top a { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: 120px; border: 1px solid var(--line); }
.press-thumb { border-right: 3px solid #da6bb1; background: #f3f3f3; }
.press-thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.press-top a > div:last-child { padding: 8px; }
.press-top h3 { font-size: .91rem; }
.press-topic { display: block; font-size: .73rem; color: var(--accent); margin-bottom: 4px; }
.press-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 27px; margin-top: 42px; }
.press-list h2 { border-top: 3px solid #181818; padding: 11px 0; font-size: 1.125rem; }
.press-list li a { padding-inline: 0; }
@media (max-width: 840px) {
 .press-front { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
 .press-brief { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
 .press { padding-top: 22px; }
 .press-front, .press-bottom { grid-template-columns: 1fr; }
 .press-brief { grid-row: auto; grid-column: auto; order: 2; }
 .press-top { order: 1; }
 .press-bottom { margin-top: 27px; }
}

.news-feed .entry { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.news-feed .entry a { display: flex; align-items: center; min-height: 70px; gap: 12px; }

.news-feed .tile-copy { padding-inline: 0; }

@media (min-width: 1430px) {
  .layout { display: grid; grid-template-columns: 0 minmax(0, 1fr); }
  .layout > main { grid-column: 2; min-width: 0; }
  .tabs {
    position: sticky;
    top: 16px;
    align-self: start;
    grid-column: 1;
    margin: 21px 0 16px -180px;
    z-index: 2;
    width: 164px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    display: grid;
  }
}
.utility {
  background: #faf9f7;
  border-bottom: 1px solid #e5e0db;
  box-shadow: inset 0 3px 0 var(--accent);
}
.utility-inner { min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand-copy { display: grid; gap: 1px; line-height: 1.25; font-size: clamp(1rem, 2.5vw, 1.55rem); letter-spacing: -.04em; }
.brand-copy small { color: var(--accent); font-size: .67rem; font-weight: 680; letter-spacing: .07em; }
.utility form { width: min(43%, 310px); display: flex; align-items: center; padding: 3px; border: 1px solid #e2dcd6; border-radius: 9px; background: #fff; }
.utility input { flex: 1; min-width: 0; padding: 7px 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: .83rem; }
.utility button { padding: 6px 12px; border: 0; border-radius: 6px; background: #272321; color: #fff; font: inherit; font-size: .8rem; white-space: nowrap; cursor: pointer; }
.utility button:hover { background: var(--accent); }
.post-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.post-pagination a { display: grid; align-content: start; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; overflow-wrap: anywhere; }
.post-pagination a:hover { border-color: currentColor; background: var(--bg); }
.post-pagination a span, .post-related time { color: var(--muted); font-size: .76rem; }
.post-newer { grid-column: 2; text-align: right; }
.post-pagination, .post-related { padding: clamp(12px, 2vw, 22px); border: 1px solid var(--line); background: var(--panel); }
.post-related-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.post-related-heading h2 { font-size: 1.12rem; }
.post-related-heading a { color: var(--accent); font-size: .8rem; }
.post-related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.post-related li {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.post-related .digest-row {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.post-related .digest-row:hover { background: var(--bg); }
.post-related .digest-row:focus-visible { outline-offset: -3px; }
.post-related .digest-thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.post-related .digest-copy { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; }
.post-related .digest-copy strong { font-size: .95rem; line-height: 1.45; }
.post-related .digest-row:hover strong { color: var(--accent); }
.post-related .digest-copy .post-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}
.post-related time { margin-top: auto; }
@media (max-width: 760px) {
  .post-related ul { grid-template-columns: 1fr; }
  .post-related .digest-row { grid-template: auto / minmax(88px, 27%) minmax(0, 1fr); align-items: start; }
  .post-related .digest-thumb { height: auto; aspect-ratio: 4 / 3; margin: 8px 0 8px 8px; width: calc(100% - 8px); border-radius: 5px; }
}
@media (max-width: 560px) {
  .utility-inner { min-height: 68px; gap: 8px; }
  .brand { gap: 7px; }
  .brand img { width: 28px; height: 28px; }
  .brand-copy small { display: none; }
  .utility form { width: min(48%, 190px); }
  .utility button { padding-inline: 7px; }
  .post-pagination a { padding: 9px; font-size: .84rem; }
}

/* Editorial layout */
:root {
  --bg: #f4f6fa;
  --panel: #fff;
  --line: #dce2ec;
  --text: #172338;
  --muted: #516079;
  --accent: #2455a7;
  --navy: #151515;
  --theme-sky: #669bff;
  --theme-sky-light: #acc7ff;
  --theme-sky-deep: #2455a7;
  --theme-sky-surface: #edf4ff;
}
@media (forced-colors: none) {
  @supports selector(::-webkit-scrollbar) {
    html::-webkit-scrollbar { width: 12px; height: 12px; }
    html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner { background: transparent; }
    html::-webkit-scrollbar-thumb { background: #808080; border: 2px solid transparent; background-clip: padding-box; border-radius: 8px; }
    html::-webkit-scrollbar-thumb:hover { background-color: #666; }
  }
  @supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: #808080 transparent; }
  }
}
.utility { position: relative; padding-block-start: 3px; background: #111; border: 0; box-shadow: inset 0 3px 0 #363636; }
.utility::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--theme-sky);
  transform: scaleX(1);
  transform-origin: left;
  pointer-events: none;
}
[data-page-loading="pending"] .utility::before { transform: scaleX(.75); }
[data-page-loading="complete"] .utility::before { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  #main { animation: page-enter 180ms ease-out; }
  [data-page-loading="pending"] .utility::before { animation: page-loading 1600ms ease-out both; }
  [data-page-loading="complete"] .utility::before { animation: page-loaded 400ms ease-out both; }
}
@keyframes page-enter {
  from { opacity: .88; }
  to { opacity: 1; }
}
@keyframes page-loading {
  from { transform: scaleX(.06); }
  to { transform: scaleX(.75); }
}
@keyframes page-loaded {
  from { transform: scaleX(.75); }
  to { transform: scaleX(1); }
}
.utility-inner { min-height: 79px; }
.brand, .brand:hover { color: #fff; }
.brand-copy small { color: var(--theme-sky-light); }
.utility form { border-color: #595959; background: #fff; }
.utility button { background: var(--theme-sky); color: #fff; }
.utility button:hover { background: var(--theme-sky-light); }

.tabs { background: var(--panel); }
.tabs a[aria-current], .tabs a:hover { background: #eaf1ff; color: #174381; }
.tabs a[aria-current] { font-weight: 750; }
.press { padding-top: 24px; }
.press-masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 4px 8px 4px 10px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--theme-sky);
  background: var(--panel);
  font-size: .8rem;
}
.press-masthead-label { color: var(--theme-sky-deep); font-weight: 800; white-space: nowrap; }
.press-masthead ul { flex: 1; min-width: 0; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.press-masthead a { display: block; padding: 5px 3px; overflow: hidden; color: var(--text); font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.press-masthead a:is(:hover, :focus-visible) { background: var(--theme-sky-surface); color: var(--theme-sky-deep); outline-offset: -2px; }
.press-masthead-next { flex: none; min-height: 28px; padding: 2px 4px; border: 0; background: transparent; color: var(--theme-sky-deep); font: inherit; font-size: .6875rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.press-masthead-next:hover { text-decoration: underline; }
.press-masthead li:not([hidden]) {
  --headline-slide-distance: 24%;
  animation: headline-enter 420ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .press-masthead li:not([hidden]) {
    --headline-slide-distance: 12px;
    animation-duration: 220ms;
  }
}
@keyframes headline-enter { from { transform: translateX(var(--headline-slide-distance)); opacity: 0; } }
.press-front { grid-template-columns: minmax(0, .73fr) minmax(0, 1.64fr) minmax(0, 1.08fr); gap: 16px; }
.press-lead { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px #1723380b; }
.press-lead a { display: block; }
.press-lead-image { border-bottom: 0; }
.press-lead-image img { aspect-ratio: 16 / 10; }
.press-lead-image span { top: 14px; left: 14px; background: var(--navy); padding: 4px 11px; }
.press-lead h3 { margin: 17px 19px 0; }
.press-lead p { margin: 8px 19px 0; }
.press-lead time { margin: 10px 19px 17px; }
.press-brief, .press-list { background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.press-brief h2, .press-list h2 { color: var(--navy); background: #eaf0fa; padding: 13px 15px; border: 0; }
.press-list li a { padding-inline: 15px; }
.press-top { gap: 10px; }
.press-top a { overflow: hidden; background: var(--panel); grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); min-height: 91px; }
.press-top a > div:last-child { padding: 9px 10px; }
.press-thumb { border: 0; background: #eaf0f8; }
.press-thumb img { object-fit: cover; }
.press-topic { font-weight: 730; }
.press-bottom { gap: 16px; margin-top: 24px; }
.article { background: var(--panel); border: 1px solid var(--line); --accent: #2455a7; }
.entry, .news-feed .entry { background: var(--panel); }

@media (min-width: 1430px) {
  .tabs { border-radius: 12px; box-shadow: 0 4px 14px #1723380b; }
  .tabs a[aria-current] { box-shadow: inset 3px 0 var(--accent); }
}
@media (max-width: 1429px) {
  .utility-inner { position: relative; }
  .category-drawer { display: block; flex: none; }
  .utility .brand { margin-inline-end: auto; min-inline-size: 0; }
  .utility .brand img { flex: none; }
  .mobile-categories {
    position: relative;
    display: flex;
    gap: 4px;
    padding-inline: max(14px, calc((100% - 1060px) / 2));
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--panel);
    border-block-end: 1px solid var(--line);
  }
  .mobile-categories a { flex: none; padding: 9px 8px; white-space: nowrap; }
  .mobile-categories a[aria-current] {
    color: #174381;
    background: #eaf1ff;
    box-shadow: inset 0 -2px var(--accent);
    font-weight: 750;
  }
}

@media (max-width: 840px) {
  .press-front { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .utility-inner { min-height: 64px; }
  .press { padding-top: 17px; }
  .press-masthead { margin-bottom: 13px; }
  .press-front, .press-bottom { grid-template-columns: 1fr; }
  .press-lead h3 { margin-inline: 14px; }
  .press-lead p, .press-lead time { margin-inline: 14px; }
}
/* Image-led article lists */
.press .digest-row { display:grid; grid-template-columns: var(--list-thumbnail-width) minmax(0,1fr); gap:10px; align-items:start; }
.digest-thumb { display:block; aspect-ratio:4/3; overflow:hidden; border-radius:6px; background:#edf1f8; }
.digest-thumb img { width:100%; height:100%; display:block; object-fit:cover; }

.digest-icon img { object-fit:contain; padding:18%; }
.digest-copy { display:block; min-width:0; overflow-wrap:anywhere; }
.press .digest-copy time { margin-top:4px; }

.news-feed {
  --board-thumbnail-width: clamp(104px, 14vw, 144px);
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.news-feed .entry { border:0; border-radius:0; box-shadow:none; }
.news-feed .entry + .entry { border-top:1px solid var(--line); }
.news-feed .entry a {
  display: grid;
  grid-template-columns: var(--board-thumbnail-width) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 10px 12px;
}
:is(.press-lead, .press-top article, .press-brief li, .press-list li, .entries .entry) > a:is(:hover, :focus-visible) {
  position: relative;
  background: var(--section-tint, var(--theme-sky-surface));
  color: var(--section-ink, var(--theme-sky-deep));
  outline: 2px solid transparent;
  outline-offset: -2px;
}
:is(.press-lead, .press-top article, .press-brief li, .press-list li, .entries .entry) > a:is(:hover, :focus-visible)::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, var(--section-ring-light, var(--theme-sky-light)), var(--section-line, var(--theme-sky)) 48%, var(--section-ink, var(--theme-sky-deep))) 1;
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--section-line, var(--theme-sky)) 22%, transparent);
  pointer-events: none;
}
.news-feed .list-thumbnail { aspect-ratio: 16 / 9; border-radius: 6px; background: #eaf0f7; }
.news-feed .tile-image img { object-fit: cover; }
.news-feed .tile-icon img { object-fit:contain; }
.news-feed .tile-copy { min-width: 0; padding: 0; overflow-wrap: anywhere; }
.news-feed .tile-copy h3 { font-size:1rem; font-weight:680; line-height:1.4; }

.press-front { grid-template-columns: minmax(0, 2.37fr) minmax(0, 1.08fr); }
.press-devlog { min-width: 0; background: var(--panel); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 8px 24px #1723380b; }
.press-devlog > h2 { padding: 13px 15px; font-size: 1.125rem; color: var(--navy); background: #eaf0fa; border-bottom: 1px solid var(--line); }
.press-devlog-body { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.64fr); }
.press-devlog .press-lead { grid-column: 2; grid-row: 1; border: 0; border-radius: 0; box-shadow: none; }
.press-devlog .press-brief { grid-column: 1; grid-row: 1; border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.press-devlog .press-brief li:first-child { border-top: 0; }
@media (max-width: 940px) {
  .press-front { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .press-devlog-body { display: block; }
  .press-devlog .press-brief { border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 690px) {
  .press-front { grid-template-columns: minmax(0, 1fr); }
}

.press-bottom { grid-template-columns:minmax(0,1fr); gap:22px; }
.press-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; }
.press .press-panel-head h2 { padding:0; background:none; color:inherit; }
.press-more { font-size:.8rem; font-weight:650; white-space:nowrap; }
.press-news { --section-line: #9e392e; --section-tint: #fff0e9; --section-ink: #782b23; border-radius: 0; }
.press-news .press-topic { color: var(--section-ink); }
.press-stories { --section-line: #2d7355; --section-tint: #e8f3ed; --section-ink: #215b45; }

:is(.press-news, .press-stories, .press-tech) {
  --section-ring-light: color-mix(in srgb, var(--section-line) 55%, var(--section-tint));
  border-top: 3px solid var(--section-line);
}
:is(.press-news, .press-stories, .press-tech) .press-panel-head { background: var(--section-tint); color: var(--section-ink); }
.press-tech { --section-line: #68478d; --section-tint: #eee6f8; --section-ink: #4d3572; }



@media (min-width: 941px) {
  .press-front { align-items: stretch; }
  .press-devlog { display: flex; flex-direction: column; }
  .press-devlog-body { flex: 1; }
  .press-devlog .press-brief { display:flex; flex-direction:column; }
  .press-devlog .press-brief li { block-size: 105px; overflow: hidden; }
  .press-devlog .press-brief .digest-row { block-size: 100%; }
  .press-devlog .press-brief .digest-copy strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .press-devlog .press-all { margin-top:auto; }
  .press-devlog .press-lead > a { display:flex; flex-direction:column; height:100%; }
  .press-devlog .press-lead time { margin-top:8px; }
  .press-top a { height:100%; }
}

.board-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; }
.board-count { display: inline-block; border-radius: 999px; background: #e5edf9; color: #173b71; padding: 3px 8px; font-size: .78rem; font-weight: 700; white-space: nowrap; }

.tile-copy .post-preview, .press .post-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}
.press .press-lead .post-preview { margin: 8px 19px 0; font-size: .9rem; }
@media (max-width: 690px) { .press .press-lead .post-preview { margin-inline: 14px; } }

.section-count { margin-inline-start: 7px; color: var(--muted); font-size: .7rem; font-weight: 500; white-space: nowrap; }
.press-top .section-count { margin-inline-start: 3px; }
.press-front .digest-row { padding-block: 9px; }
.press-front .press-brief .post-preview, .press-front .press-top .post-preview { -webkit-line-clamp: 1; }
.press-top .press-thumb { position: relative; min-height: 0; }
.press-top .press-thumb img { position: absolute; inset: 0; }
.press-top h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.press-top .press-topic { margin-bottom: 2px; }
.press-top time { margin-top: 3px; }
.press-lead-image img { aspect-ratio: 16 / 9; }

.card-placeholder { display: grid; gap: 9px; padding: 12px; min-block-size: 90px; align-content: center; }
.card-placeholder span { display: block; block-size: 9px; background: #dfe6ef; }
.card-placeholder span:first-child { inline-size: 65%; }
.card-placeholder span:last-child { inline-size: 42%; }
.card-placeholder, .image-pending {
  background: linear-gradient(105deg, #edf1f6 34%, #f8fafc 48%, #edf1f6 62%) 100% 0 / 230% 100%;
  animation: card-shimmer 1.45s ease-in-out infinite;
}
.image-pending img { visibility: hidden; }
.entry:not(.news-feed .entry) > .card-placeholder { aspect-ratio: 4 / 3; }
.press-lead > .card-placeholder { aspect-ratio: 1.35; }
.press-top .card-placeholder { min-block-size: 102px; }
.press-brief .card-placeholder { min-block-size: 84px; }
.press-list .card-placeholder { min-block-size: 100px; }
.deferred-fallback { display: block; padding: 12px; }
@keyframes card-shimmer { to { background-position-x: -75%; } }
@media (prefers-reduced-motion: reduce) {
  .card-placeholder, .image-pending { animation: none; }
}

.press { --list-thumbnail-width: 80px; }
.list-thumbnail { inline-size: 100%; aspect-ratio: 4 / 3; overflow: hidden; }

.ad-mock {
  box-sizing: border-box;
  display: grid;
  place-content: center;
  gap: 5px;
  min-block-size: 90px;
  padding: 14px;
  border: 1px dashed #a4afbf;
  background: #f0f3f7;
  color: #43536a;
  text-align: center;
}
.ad-mock[hidden] { display: none; }
.ad-mock span { font-size: .72rem; }
.ad-mock strong { font-size: .9rem; }
.ad-mock--home { margin-block-start: 24px; }
.ad-mock--feed { grid-column: 1 / -1; margin-block: 20px; }
.ad-mock--article { margin-block: 30px; }
@media (max-width: 690px) {
  .ad-mock { min-block-size: 64px; }
  .ad-mock--feed { margin-block: 14px; }
  .ad-mock--article { margin-block: 22px; }
}

.sidebar-profile { display: none; }
@media (min-width: 1430px) {
  .sidebar-profile {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 14px 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  .sidebar-profile img { width: 96px; height: 96px; object-fit: cover; }
  .sidebar-profile strong { font-size: .92rem; }
  .sidebar-profile p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.45; word-break: keep-all; }
}

.utility form { position: relative; z-index: 5; }
.utility form:focus-within { outline: 2px solid var(--theme-sky); outline-offset: 2px; }
.utility input:focus-visible { outline: none; }
.utility button:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.search-preview {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 12px 34px #101c3440;
}
.search-preview-label { margin: 0; padding: 8px 12px; color: var(--muted); font-size: .76rem; }
.search-preview ul { list-style: none; margin: 0; padding: 0; }
.search-preview-all { display: block; padding: 8px 12px; color: var(--accent); font-size: .8rem; text-decoration: none; border-top: 1px solid var(--line); }
.search-preview-empty { padding: 8px 12px; font-size: .85rem; }
.search-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
}
.search-card:hover, .search-card:focus-visible, .search-preview-all:hover { background: #edf3ff; }
.search-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #edf1f6; }
.search-card strong, .search-card small { display: block; overflow-wrap: anywhere; }
.search-card small { color: var(--muted); font-size: .76rem; }
.search-card p { margin: 4px 0 0; }
.search-preview .search-card { grid-template-columns: 56px minmax(0, 1fr); gap: 9px; padding: 7px 12px; font-size: .83rem; }
.search-page #search-results { display: grid; gap: 8px; }
.search-page #search-results li { padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.search-page #search-results .search-card { display: grid; color: var(--text); font-weight: 400; border-radius: inherit; }
.search-page .search-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 690px) {
  .search-page .search-card { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
}

/* Post detail uses the same content column as the home and category pages. */
.article.post-detail { border-radius: 0; }
.post-detail .article-head { padding-bottom: clamp(18px, 3vw, 32px); }
.post-detail .prose { line-height: 1.8; }
.post-detail .prose :is(h2, h3, h4) { line-height: 1.4; }
.post-detail .prose h2 { margin-block: clamp(34px, 5vw, 60px) 16px; padding-block-start: clamp(16px, 2.4vw, 26px); }
.post-detail .prose :is(h3, h4) { margin-block: 26px 10px; }
.post-detail .prose :is(p, ul, ol, blockquote) { margin-block: 0 1em; }
.post-detail .prose > :is(figure, pre, table) { margin-block: 22px 26px; }
.post-detail .article-diagram { margin-inline: 0; overflow-x: auto; }
.post-detail .article-diagram svg { display: block; margin-inline: auto; }

.ad-mock--rail { display: none; }

@media (min-width: 1460px) {
  .layout--ad-rail { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .ad-mock--rail:not([hidden]) {
    display: grid;
    grid-area: 1 / 3;
    position: sticky;
    inset-block-start: 16px;
    align-self: start;
    margin: 21px 0 16px 16px;
    inline-size: 160px;
    min-block-size: 600px;
  }
}


.post-byline { margin-block-start: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.post-byline p { margin: 0; }
.post-author { color: var(--muted); font-size: .83rem; }
.post-author strong { margin-inline-start: .3em; color: var(--text); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.post-tags li { display: inline-flex; align-items: baseline; gap: .3em; max-width: 100%; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.post-tags li span { color: var(--accent); }

.visitor-summary {
  padding: 12px;
  border-block-end: 1px solid var(--line);
  font-size: .75rem;
}
.visitor-summary h2 { margin: 0 0 8px; font-size: .8rem; }
.visitor-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
.visitor-summary dt { color: var(--muted); }
.visitor-summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.visitor-summary p { margin: 8px 0 0; color: var(--muted); }
.visitor-summary-chart { display: grid; grid-template-rows: 30px; margin-block-start: 8px; }
.visitor-summary-chart > * { grid-area: 1 / 1; }
.visitor-summary-chart > p { align-self: center; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visitor-summary ol:not([hidden]) { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.visitor-summary li { display: flex; align-items: end; background: var(--bg); }
.visitor-summary li span { width: 100%; height: max(1px, var(--visitor-height)); background: var(--accent); }

.post-view-count { margin: 0; color: var(--muted); font-size: .82rem; }

.site-headlines { block-size: 42px; margin-block-start: 24px; }
.site-headlines + .press { padding-block-start: 0; }
.post-detail ~ :is(.post-pagination, .article-headlines, .post-related) { margin-block-start: 16px; }
.utility { position: sticky; inset-block-start: 0; z-index: 10; }
.utility-inner { transition: min-height .34s ease-in-out; }
.utility .brand img { transition: width .34s ease-in-out, height .34s ease-in-out; }
.utility .brand-copy { transition: font-size .34s ease-in-out, gap .34s ease-in-out; }
.utility form { transition: width .34s ease-in-out, padding .34s ease-in-out; }
.utility input, .utility button { transition: padding .34s ease-in-out; }
[data-compact-topbar] .utility-inner { min-height: 52px; }
[data-compact-topbar] .utility .brand img { width: 28px; height: 28px; }
[data-compact-topbar] .brand-copy { display: flex; align-items: center; font-size: 1rem; gap: 8px; }
[data-compact-topbar] .brand-copy small { order: 1; word-break: keep-all; }
[data-compact-topbar] .utility form { width: min(43%, 250px); padding: 2px; }
[data-compact-topbar] .utility input { padding-block: 4px; }
[data-compact-topbar] .utility button { padding-block: 4px; }
@media (max-width: 560px) {
  [data-compact-topbar] .utility form { width: min(48%, 156px); }
}
.skip:focus { z-index: 11; }
[data-reading-title] { --reading-title-height: 36px; }
html { scroll-padding-block-start: calc(var(--topbar-height, 0px) + var(--reading-title-height, 0px) + 12px); }
.reading-title-bar {
  position: fixed;
  z-index: 9;
  inset: var(--topbar-height, 0px) 0 auto;
  background: var(--panel);
  border-block-end: 1px solid var(--line);
  box-shadow: 0 4px 12px #17233812;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: transform .28s ease, opacity .28s ease, visibility .28s;
  pointer-events: none;
}
.reading-title {
  block-size: 35px;
  margin: 0 16px 0 calc(var(--article-inset) + 1px);
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
  line-height: 35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reading-title { transform: scale(1.06); transform-origin: left center; transition: transform .28s ease; }
[data-reading-title] .reading-title-bar { opacity: 1; visibility: visible; transform: none; }
[data-reading-title] .reading-title { transform: none; }
@media (min-width: 1430px) {
  .tabs { max-height: calc(100dvh - var(--topbar-height, 0px) - 32px); }
}
.tabs, .ad-mock--rail:not([hidden]) { inset-block-start: calc(var(--topbar-height, 0px) + 16px); }

.post-pagination { gap: 12px; }
.post-pagination a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--bg);
}
.post-pagination a:is(:hover, :focus-visible) { border-color: var(--accent); background: var(--panel); }
.post-pagination strong { display: block; margin-block-start: 3px; color: var(--text); font-size: .93rem; }
.post-pagination .post-pagination-arrow {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  block-size: 32px;
  border-radius: 50%;
  background: #e3ecfa;
  color: #174381;
  font-size: 1rem;
}
.post-pagination .post-newer { flex-direction: row-reverse; }
@media (max-width: 560px) {
  .site-headlines { margin-block-start: 17px; }
  .post-pagination { grid-template-columns: minmax(0, 1fr); }
  .post-newer { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .utility-inner, .utility .brand img, .utility .brand-copy,
  .utility form, .utility input, .utility button { transition-duration: .18s; }
  .reading-title-bar, .reading-title { transform: none; }
  .reading-title-bar { transition: opacity .18s ease, visibility .18s; }
  .reading-title { transition: none; }
}
