/*
Theme Name: Arshad Portfolio
Theme URI: https://arshadali.in/
Author: Arshad Ali
Description: Lightweight portfolio and technical blog theme with dark/light mode. Designed to work with the Arshad Site Toolkit plugin.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: arshad-portfolio
*/

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef0f7;
  --text: #0f172a; --muted: #55607a; --border: #e1e5ee;
  --accent: #4338ca; --accent-2: #0891b2; --accent-contrast: #ffffff;
  --accent-soft: rgba(67, 56, 202, .09);
  --code-bg: #0f172a; --code-text: #e2e8f0;
  --tok-c: #7d8aa5; --tok-s: #86efac; --tok-k: #c4b5fd; --tok-n: #fbbf24; --tok-t: #7dd3fc;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .12);
  --radius: 16px; --header-h: 68px; --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e17; --surface: #111827; --surface-2: #172033;
  --text: #e8ecf5; --muted: #9ba6bd; --border: #1f2a3d;
  --accent: #8b92ff; --accent-2: #22d3ee; --accent-contrast: #0a0e17;
  --accent-soft: rgba(139, 146, 255, .12);
  --code-bg: #0b1220; --code-text: #dbe4f3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 18px 40px rgba(0, 0, 0, .5);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--font); -webkit-font-smoothing: antialiased; }
html.theme-anim body, html.theme-anim .site-header, html.theme-anim .card, html.theme-anim .site-footer,
html.theme-anim input, html.theme-anim textarea, html.theme-anim .chip { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw + .5rem, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + .6rem, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: var(--accent); color: var(--accent-contrast); padding: 10px 16px; border-radius: 8px; }
@view-transition { navigation: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { font: 700 1.15rem var(--mono); color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--text); background: var(--accent-soft); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .2s, border-color .2s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; } .theme-toggle .i-moon { display: block; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; } html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: absolute; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; display: none; }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px; font-size: 1.05rem; }
}

/* ---------- Buttons / chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; border: 1px solid transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { font: 600 .85rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s; }
a.card, .card.hover:hover { text-decoration: none; color: inherit; }
.card.hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.page-hero { padding-block: clamp(48px, 7vw, 88px) 8px; }
.page-hero h1 { font-size: clamp(2rem, 4vw + .5rem, 3.1rem); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 11vw, 140px) clamp(56px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%); filter: blur(30px); z-index: -1; }
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; left: -180px; bottom: -220px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 65%); filter: blur(30px); z-index: -1; }
.hero .status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.hero .status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .role { font: 600 1.15rem var(--mono); color: var(--accent); margin-bottom: 18px; }
.hero .lead { max-width: 640px; margin-bottom: 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 56px; }
.stat { padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.stat b { display: block; font-size: 2rem; letter-spacing: -.03em; color: var(--accent); }
.stat span { color: var(--muted); font-size: .92rem; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
html.js [data-rise] { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Skills ---------- */
.skill-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.skill-card .chip { transition: transform .2s, background-color .2s; }
.skill-card:hover .chip { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.skill-card .chip:hover { transform: translateY(-2px); }
.ico { font-size: 1.4rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .5; }
.timeline li { position: relative; margin-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline h3 { margin-bottom: 2px; }
.timeline .org { font-weight: 600; }
.timeline .when { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.timeline ul { padding-left: 1.1em; margin: 0 0 16px; color: var(--muted); }
.timeline ul li { margin: 0 0 6px; }
.timeline ul li::before { display: none; }
.badge-now { margin-left: 8px; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: rgba(34, 197, 94, .15); color: #15803d; font-weight: 700; vertical-align: middle; }
html[data-theme="dark"] .badge-now { color: #4ade80; }

/* ---------- Projects ---------- */
.proj { display: flex; flex-direction: column; gap: 12px; }
.proj .tag { font: 600 .8rem var(--mono); color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; }
.proj ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .96rem; }
.proj .chips { margin-top: auto; padding-top: 8px; }
.proj .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 0; overflow: hidden; }
.post-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .5s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb { overflow: hidden; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .88rem; }
.more { margin-top: auto; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.cat-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.cat-list a { display: inline-block; padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 500; transition: border-color .2s, color .2s, transform .2s; }
.cat-list a:hover, .cat-list .is-active a { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 6px; opacity: .6; }
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.page-numbers { padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.page-numbers.current, .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Article ---------- */
.article { max-width: 720px; width: min(100% - 40px, 720px); margin-inline: auto; padding-block: 44px 80px; }
.article h1 { font-size: clamp(1.9rem, 3.5vw + .5rem, 2.8rem); }
.article .feat img { border-radius: var(--radius); width: 100%; margin-bottom: 28px; }
.prose { font-size: 1.1rem; }
.prose h2 { margin-top: 2.2em; padding-top: .2em; }
.prose h3 { margin-top: 1.8em; }
.prose img { border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose :not(pre) > code { font: .88em var(--mono); background: var(--accent-soft); color: var(--accent); padding: .15em .45em; border-radius: 6px; }
.prose pre { background: var(--code-bg); color: var(--code-text); border-radius: 14px; padding: 20px 22px; overflow-x: auto; font: .9rem/1.65 var(--mono); border: 1px solid var(--border); margin: 0 0 1.4em; tab-size: 2; }
.prose pre code { font: inherit; background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; } .prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.tok-c { color: var(--tok-c); font-style: italic; } .tok-s { color: var(--tok-s); } .tok-k { color: var(--tok-k); } .tok-n { color: var(--tok-n); } .tok-t { color: var(--tok-t); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0; padding-block: 20px; border-block: 1px solid var(--border); }
.share strong { margin-right: 6px; }
.share a, .share button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font: 500 .9rem var(--font); cursor: pointer; transition: border-color .2s, color .2s; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.post-nav a:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-nav small { display: block; color: var(--muted); }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .search-form input[type="search"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus, .search-form input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.form textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.notice.ok { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .5); }
.notice.err { background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .5); }
.search-form { display: flex; gap: 10px; max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.contact-list a:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* ---------- CTA / Footer ---------- */
.cta-band { text-align: center; padding: clamp(36px, 6vw, 64px); background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 12%, transparent)); }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 48px 28px; margin-top: 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot p { color: var(--muted); max-width: 360px; margin: 8px 0 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.e404 { text-align: center; padding-block: 96px; } .e404 .big { font: 800 clamp(5rem, 16vw, 9rem)/1 var(--font); background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e404 .search-form { margin: 24px auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js [data-rise] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- Article redesign ---------- */
.post-hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--accent-soft), transparent 80%); }
.post-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); filter: blur(30px); z-index: 0; pointer-events: none; }
.post-hero .inner { position: relative; z-index: 1; width: min(100% - 40px, 820px); margin-inline: auto; }
.post-hero h1 { font-size: clamp(2rem, 4.2vw + .4rem, 3.3rem); line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; }
.post-hero .lead { font-size: 1.2rem; max-width: 680px; margin-bottom: 26px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline .av { border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.byline strong { display: block; line-height: 1.3; }
.byline .meta { margin: 0; }
.prose > p:first-of-type { font-size: 1.2rem; color: var(--text); }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose h2 { position: relative; margin-top: 2.6em; padding-top: 22px; font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.prose a { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 500; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose li::marker { color: var(--accent); }
.code-wrap { position: relative; margin: 0 0 1.5em; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--code-bg); box-shadow: var(--shadow); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .code-bar i:nth-child(2) { background: #febc2e; } .code-bar i:nth-child(3) { background: #28c840; }
.code-bar span { margin-left: 8px; font: 600 .75rem var(--mono); color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.code-bar button { margin-left: auto; font: 600 .78rem var(--font); color: #cbd5e1; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; padding: 4px 12px; cursor: pointer; transition: background-color .2s; }
.code-bar button:hover { background: rgba(255, 255, 255, .16); }
.code-wrap pre { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none; background: transparent !important; }
.share { border: 0; padding: 18px 22px; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); }
.asm-author { background: linear-gradient(135deg, var(--accent-soft), transparent), var(--surface); }
.asm-toc { border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.asm-toc a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.asm-toc a:hover, .asm-toc a.is-active { color: var(--accent); }
.asm-toc a.is-active { font-weight: 700; }
@media (min-width: 1320px) {
	.asm-toc { float: right; position: sticky; top: calc(var(--header-h) + 24px); width: 250px; margin: 0 -306px 24px 24px; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: .9rem; }
}
