/* kangdw.dev — Aurora UI(designmd.app/library/aurora-ui) 기반.
   원색(#0080FF, #FF1493, #00FFFF)은 장식 그라데이션에만 쓰고, 글자와 버튼은 대비(WCAG AA)를 맞춘 진한 값을 쓴다.
   오로라는 홈 히어로 한 곳에만(본문이 많은 페이지에는 쓰지 않는다는 문서 원칙). */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --fg: #0f1424; --muted: #5a6275; --line: #e2e5ee;
  --accent: #0063c7; --btn: #006fdc; --btn-hover: #0066cb; --code: #eef1f7;
  --a1: #0080ff; --a2: #ff1493; --a3: #00e5e5; --a4: #7b5cff;
  --radius: 0.75rem; --shadow: 0 2px 12px rgba(15, 20, 36, 0.06); --shadow-lift: 0 10px 28px rgba(15, 20, 36, 0.12);
  --wrap: 1280px; --read: 46rem;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f1a; --surface: #121828; --fg: #e8ecf5; --muted: #9aa3b8; --line: #242c3f;
    --accent: #6cb2ff; --btn: #006fdc; --btn-hover: #0066cb; --code: #1a2133;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.35); --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.5); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; min-height: 100dvh; display: flex; flex-direction: column;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; border-radius: 4px; }

/* 머리와 꼬리 */
header.site { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { width: 18px; height: 18px; border-radius: 6px; background: conic-gradient(from 200deg, var(--a1), var(--a4), var(--a2), var(--a3), var(--a1)); }
header.site nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
header.site nav a { position: relative; padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; border-radius: 8px; }
header.site nav a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
header.site nav a[aria-current] { color: var(--fg); }
header.site nav a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--a1), var(--a2)); }
main { flex: 1; width: 100%; max-width: var(--read); margin: 0 auto; padding: 40px 1.5rem 64px; }
body.home main { max-width: var(--wrap); padding-top: 0; }
footer.site { color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--line); padding: 20px 0 40px; }
footer.site a { color: inherit; margin-left: 10px; }

/* 글꼴 */
h1 { font-size: 2.25rem; line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 12px; }
h2 { font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.015em; margin: 48px 0 12px; }
h3 { font-size: 1.1rem; margin: 28px 0 8px; }
.lead { font-size: 1.125rem; color: var(--muted); margin-top: 0; }
.meta, time { color: var(--muted); font-size: 0.875rem; }
.eyebrow { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
code { background: var(--code); padding: 0.1em 0.35em; border-radius: 4px; font: 0.9em var(--mono); }
pre { background: var(--code); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; line-height: 1.5; font-size: 14px; border: 1px solid var(--line); }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; text-align: left; vertical-align: top; }
blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); }

/* 글 본문: 긴 한국어 글은 조금 크게, 줄 간격 넉넉히 */
.post { font-size: 17px; line-height: 1.75; }
.post h1 { font-size: 2rem; }
.post p, .post li { margin: 0 0 14px; }
.post h3 { border-top: 1px solid var(--line); padding-top: 20px; }
.back { margin-top: 40px; }
dl.change { display: grid; grid-template-columns: 4.5em 1fr; gap: 6px 12px; margin: 8px 0 4px; font-size: 16px; }
dl.change dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
dl.change dd { margin: 0; min-width: 0; }
dl.change pre { margin: 8px 0; }
@media (max-width: 560px) { dl.change { grid-template-columns: 1fr; gap: 0; } dl.change dt { margin-top: 8px; } }
.refs { font-size: 14px; color: var(--muted); margin: 4px 0 24px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; color: #fff; background: var(--btn); border: 1.5px solid var(--btn);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: none; }

/* 목록, 배지, 칩 */
ul.posts { list-style: none; padding: 0; margin: 0; }
ul.posts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
ul.posts li a { font-weight: 600; text-decoration: none; color: var(--fg); }
ul.posts li a:hover, ol.posts.numbered li a:hover { color: var(--accent); }
ul.posts li p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
ul.posts li .row { display: block; }
ul.posts li .row .badge:first-child { margin-left: 0; }
ul.posts li .row time { display: inline; margin-left: 8px; }
ul.posts li .row time:first-child { margin-left: 0; }
ol.posts.numbered { padding-left: 1.4em; }
ol.posts.numbered li { padding: 14px 0; border-bottom: 1px solid var(--line); }
ol.posts.numbered li::marker { font-family: var(--mono); color: var(--muted); font-size: 0.875rem; }
ol.posts.numbered li a { font-weight: 600; text-decoration: none; color: var(--fg); }
ol.posts.numbered li p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
ol.posts.numbered li time { display: block; font-size: 13px; }
.badge { display: inline-block; font-size: 12px; font-weight: 500; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; margin-left: 8px; vertical-align: 1px; background: var(--surface); }
.badge.series { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 0.875rem; background: var(--surface);
  transition: border-color .2s var(--ease); }
.chip:hover { border-color: var(--accent); }
.chip span { color: var(--muted); font: 12px var(--mono); }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip.on span { color: var(--bg); }

/* 시리즈 */
.series-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 24px; font-size: 15px; background: var(--surface); box-shadow: var(--shadow); }
.series-box summary { cursor: pointer; }
.series-box summary span { color: var(--muted); font: 13px var(--mono); margin-left: 6px; }
.series-box ol { margin: 10px 0 0; padding-left: 1.4em; }
.series-box li { margin: 4px 0; }
.series-box li.cur { font-weight: 600; }
.series-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; font-size: 15px; }
.series-nav a { text-decoration: none; }
.series-sec { margin-top: 32px; }
.series-sec h2 a { color: var(--fg); text-decoration: none; }
.series-sec h2 span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 4px; }
.lead.small { font-size: 15px; margin: 0 0 4px; }
.more { margin: 10px 0 0; font-size: 15px; }
.more a { text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin: 16px 0 0; }
.card b { display: block; }
a.card { text-decoration: none; color: var(--fg); }

/* 그림(다이어그램) */
:root { --box: #f3f0ea; --box2: #e8f0fb; --box3: #fbeee6; --ink2: #3a3936;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948; }
@media (prefers-color-scheme: dark) {
  :root { --box: #24231f; --box2: #1b2a3d; --box3: #3a271d; --ink2: #d6d3cc;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; }
}
figure.fig { margin: 20px 0 24px; }
figure.fig svg { display: block; width: 100%; height: auto; max-width: 100%; font-family: inherit; }
figure.fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
svg .box { fill: var(--box); stroke: var(--line); stroke-width: 1; }
svg .box.blue { fill: var(--box2); }
svg .box.warm { fill: var(--box3); }
svg .box.solid { fill: var(--s1); stroke: none; }
svg .box.dash { fill: none; stroke: var(--muted); stroke-dasharray: 4 3; }
svg .t { fill: var(--fg); font-size: 13px; }
svg .t.b { font-weight: 700; }
svg .t.s { fill: var(--muted); font-size: 11px; }
svg .t.w { fill: #fff; }
svg .t.m { text-anchor: middle; }
svg .ln { stroke: var(--muted); stroke-width: 1.5; fill: none; }
svg .ln.arr { marker-end: url(#arrow); }
svg .ln.acc { stroke: var(--accent); }
svg .ln.dash { stroke-dasharray: 4 3; }
svg .arrowhead { fill: var(--muted); }

/* 차트 */
figure.chart svg .grid { stroke: var(--line); stroke-width: 1; }
figure.chart svg .axis { fill: var(--muted); font-size: 11px; }
figure.chart svg .ref { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
figure.chart svg .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
figure.chart svg [data-tip] { cursor: default; }
figure.chart svg .hit { fill: transparent; }
figure.chart svg .hit:hover + .dot, figure.chart svg .dot:hover { r: 5; }
figure.chart .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
figure.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
figure.chart details { font-size: 14px; margin-top: 6px; }
figure.chart details summary { cursor: pointer; color: var(--muted); }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--fg); color: var(--bg); font-size: 13px;
  padding: 6px 9px; border-radius: 6px; max-width: 280px; white-space: pre-line; box-shadow: 0 2px 8px rgba(0,0,0,.2); }

/* 홈 */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.12; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero .lead { max-width: 34rem; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; min-height: 360px; border-radius: 1.25rem; overflow: hidden; isolation: isolate;
  background: color-mix(in srgb, var(--a1) 10%, var(--surface)); border: 1px solid var(--line); }
.aurora { position: absolute; inset: -20%; z-index: -1; filter: blur(48px) saturate(1.1); }
.aurora i { position: absolute; width: 60%; height: 60%; border-radius: 50%; opacity: .75; mix-blend-mode: multiply; will-change: transform; }
@media (prefers-color-scheme: dark) { .aurora i { mix-blend-mode: screen; opacity: .6; } }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--a1), transparent 65%); left: 5%; top: 10%; animation: drift1 11s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--a2), transparent 65%); right: 0; top: 0; animation: drift2 9s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--a3), transparent 65%); left: 20%; bottom: 0; animation: drift3 12s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { background: radial-gradient(circle, var(--a4), transparent 65%); right: 10%; bottom: 10%; animation: drift1 10s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(18%, 12%) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-20%, 16%) scale(.95); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(.95); } to { transform: translate(14%, -18%) scale(1.12); } }
.hero-visual.paused .aurora i { animation-play-state: paused; }
.glass { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 20px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 60%, var(--line));
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 32px; margin: 0 0 16px; }
.stats dt { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.stats dd { margin: 0; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.now { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.now .label { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.now b { font-size: 1rem; line-height: 1.45; }
.now:hover b { color: var(--accent); }

.sec { margin-top: clamp(4rem, 8vw, 8rem); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: 2.25rem; letter-spacing: -0.03em; }
.more-link { font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.hero > *, .topic-row > *, .post-grid > * { min-width: 0; }

/* 주제: 지그재그 행 */
.topic-rows { display: grid; gap: 20px; }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.topic-row:nth-child(even) .topic-text { order: 2; }
.topic-text h3 { font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -0.015em; }
.topic-text h3 a { color: var(--fg); text-decoration: none; }
.topic-text h3 a:hover { color: var(--accent); }
.topic-text > p:not(.eyebrow) { color: var(--muted); margin: 0 0 16px; }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topic-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.topic-list a { color: var(--fg); text-decoration: none; font-weight: 500; }
.topic-list a:hover { color: var(--accent); }
.topic-list time { flex: none; font: 0.8rem var(--mono); }

/* 최근 리서치: research.kangdw.dev 최신 4건 */
.sec-desc { margin: -8px 0 20px; color: var(--muted); }
.research-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); position: relative; border-top: 3px solid var(--rk, var(--accent));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.rcard:hover { transform: scale(1.03); box-shadow: var(--shadow-lift); z-index: 1; }
.rcard .row { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.8rem; color: var(--muted); }
.rcard .rk { font-weight: 650; color: var(--fg); }
.rcard time { margin-left: auto; font-family: var(--mono); }
.rcard h3 { margin: 0 0 6px; font-size: 1rem; line-height: 1.45; }
.rcard h3 a { color: var(--fg); text-decoration: none; }
.rcard h3 a::after { content: ""; position: absolute; inset: 0; }
.rcard .sum { margin: 0; color: var(--muted); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rcard.k-digest { --rk: var(--a2); } .rcard.k-paper { --rk: var(--a1); } .rcard.k-oss { --rk: var(--a4); }
@media (max-width: 1023px) { .research-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .research-row { grid-template-columns: minmax(0, 1fr); } }

/* 최근 글: 첫 글을 크게, 나머지는 비대칭 격자 */
.post-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pcard { grid-column: span 2; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.pcard:nth-child(2), .pcard:nth-child(3) { grid-column: span 3; }
.pcard.feature { grid-column: span 6; padding: clamp(1.5rem, 3vw, 2.25rem); overflow: hidden; }
.pcard.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--a1), var(--a4), var(--a2)); }
.pcard.feature h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.pcard:hover { transform: scale(1.03); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); z-index: 1; }
.pcard.feature:hover { transform: scale(1.01); }
.pcard .row { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pcard .row .badge { margin-left: 0; }
.pcard h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.4; }
.pcard h3 a { color: var(--fg); text-decoration: none; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; } /* 카드 전체가 링크 */
.pcard .row a { position: relative; z-index: 2; }
.pcard .sum { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* 등장 효과: JS가 있을 때만 숨겼다가 보이면 나타낸다 */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 480ms ease-out, transform 480ms ease-out; transition-delay: calc(var(--i, 0) * 100ms); }

@media (max-width: 767px) {
  .hero, .topic-row { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 300px; }
  .topic-row:nth-child(even) .topic-text { order: 0; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .pcard, .pcard:nth-child(2), .pcard:nth-child(3), .pcard.feature { grid-column: auto; }
  .sec-head h2 { font-size: 1.75rem; }
  header.site .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; }
  header.site nav { width: 100%; }
  header.site nav a:first-child { padding-left: 0; }
  header.site nav a:first-child[aria-current]::after { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .pcard, .btn { transition: none; }
  .pcard:hover, .pcard.feature:hover { transform: none; }
}

/* 전체 글 */
.archive-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 8px 0 8px; }
.archive-tools .chips { margin: 0; }
#q { font: inherit; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); flex: 0 1 16rem; min-width: 0; }
#q:focus { outline: 2px solid var(--btn); outline-offset: 2px; }
.month h2 { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin: 32px 0 4px; }
.month ul.posts li { padding: 10px 0; }
li[hidden], .month[hidden] { display: none; }

/* 서비스: NAS의 다른 서비스로 가는 카드(build.py APPS) */
header.site nav .nav-sep { flex: none; width: 1px; margin: 8px 6px; background: var(--line); }
header.site nav a.ext::after { content: " ↗"; font-size: 0.75em; }
.apps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acard { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.acard:hover { transform: scale(1.03); box-shadow: var(--shadow-lift); z-index: 1; }
.acard h3 { margin: 0 0 4px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.acard h3 a { color: var(--fg); text-decoration: none; }
.acard h3 a::after { content: ""; position: absolute; inset: 0; }
.acard .host { margin: 0 0 8px; font: 0.8rem var(--mono); color: var(--accent); }
.acard .sum { margin: 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 767px) { .apps-row { grid-template-columns: minmax(0, 1fr); } }
