/* SiteVana Academy (1.38) */
:root {
	--brand: #5B4FE9;
	--ink: #0f172a;
	--muted: #5b6577;
	--line: #e5e7eb;
	--bg: #f7f8fb;
	--soft: color-mix(in srgb, var(--brand) 7%, #fff);
	--r: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.ac-wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.ac-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ac-muted { color: var(--muted); }
.ac-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.ac-skip:focus { left: 16px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Top bar */
.ac-top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ac-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.ac-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.ac-brand img { height: 32px; width: auto; max-width: 170px; object-fit: contain; }
.ac-brand b { font-size: 1.2rem; }
.ac-badge { padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.ac-top-nav { display: flex; align-items: center; gap: 20px; }
.ac-top-nav > a:not(.ac-btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }

/* Buttons */
.ac-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; border: 1px solid transparent; }
.ac-btn:hover { filter: brightness(1.06); }
.ac-btn-sm { padding: 9px 16px; font-size: .9rem; }
.ac-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.ac-btn-ghost:hover { background: #f8fafc; filter: none; }

/* Home hero + search */
.ac-hero { padding: 64px 0 40px; background: radial-gradient(1200px 400px at 50% -80px, var(--soft), transparent 70%); text-align: center; }
.ac-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
.ac-lead { margin: 14px auto 0; max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.ac-note { display: inline-block; margin: 0 0 20px; padding: 8px 14px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: .95rem; }
.ac-search { position: relative; max-width: 680px; margin: 28px auto 0; }
.ac-search .ac-ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ac-search input { width: 100%; padding: 17px 20px 17px 52px; border: 1px solid #d5d9e1; border-radius: 14px; font: inherit; font-size: 1.02rem; background: #fff; box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.ac-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.ac-results { max-width: 680px; margin: 12px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(15, 23, 42, .1); }
.ac-results a { display: block; padding: 14px 18px; text-decoration: none; color: var(--ink); border-top: 1px solid #f1f5f9; }
.ac-results a:first-child { border-top: 0; }
.ac-results a:hover, .ac-results a:focus { background: var(--soft); }
.ac-results b { display: block; }
.ac-results span { color: var(--muted); font-size: .92rem; }
.ac-results small { display: block; margin-top: 2px; color: var(--brand); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ac-results .ac-none { padding: 16px 18px; color: var(--muted); }
.ac-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.ac-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.ac-chip:hover { border-color: var(--brand); color: var(--brand); }
.ac-chip .ac-ic { width: 18px; height: 18px; color: var(--brand); }

/* Sections and cards */
.ac-sections { padding: 24px 0 64px; }
.ac-sec { padding-top: 40px; scroll-margin-top: 80px; }
.ac-sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ac-sec-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--brand); flex: none; }
.ac-sec-head h2 { font-size: 1.5rem; }
.ac-sec-head p { margin: 4px 0 0; color: var(--muted); }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.ac-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .15s, transform .15s, border-color .15s; }
.ac-card:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .1); transform: translateY(-2px); border-color: #d5d9e1; }
.ac-card-img { aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ac-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.ac-card-body b { font-size: 1.04rem; line-height: 1.35; }
.ac-card-body span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.ac-card-body small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.ac-card-body small .ac-ic { width: 15px; height: 15px; }

/* Guide page */
.ac-guide { max-width: 860px; padding: 28px 0 64px; }
.ac-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); }
.ac-crumbs a { color: var(--muted); text-decoration: none; }
.ac-crumbs a:hover { color: var(--brand); }
.ac-guide-head { margin: 20px 0 32px; }
.ac-guide-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; }
.ac-guide-head .ac-lead { margin: 12px 0 0; }
.ac-meta { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.ac-meta .ac-ic { width: 17px; height: 17px; }
.ac-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 36px; counter-reset: s; }
.ac-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; scroll-margin-top: 90px; }
.ac-step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; }
.ac-step-body h2 { font-size: 1.3rem; margin-top: 8px; }
.ac-step-body p { margin: 10px 0 0; }
.ac-shot { margin: 18px 0 0; }
.ac-shot-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); cursor: zoom-in; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.ac-shot.is-phone .ac-shot-btn { width: min(320px, 100%); border-radius: 26px; border-width: 6px; border-color: #0f172a; }
.ac-shot figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.ac-tips { margin: 44px 0 0; padding: 22px 24px; border-radius: var(--r); background: var(--soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, #fff); }
.ac-tips h2 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--brand); }
.ac-tips ul { margin: 12px 0 0; padding-left: 22px; }
.ac-tips li + li { margin-top: 8px; }
.ac-related { margin-top: 44px; }
.ac-related h2 { font-size: 1.25rem; margin-bottom: 16px; }
.ac-rel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ac-rel-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.ac-rel-list a:hover { border-color: var(--brand); }
.ac-rel-list span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.ac-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.ac-pager .ac-btn { max-width: 48%; }
.ac-pager .ac-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer */
.ac-foot { padding: 36px 0 44px; border-top: 1px solid var(--line); background: var(--bg); }
.ac-foot p { margin: 0 0 8px; }

/* Picture zoom */
.ac-zoom { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .86); cursor: zoom-out; }
.ac-zoom img { max-width: min(1600px, 100%); max-height: calc(100vh - 48px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ac-zoom-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.ac-top-nav > a:not(.ac-btn) { display: none; }
	.ac-hero { padding: 40px 0 28px; }
	.ac-step { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
	.ac-step-n { width: 34px; height: 34px; font-size: .95rem; }
	.ac-step-body h2 { margin-top: 4px; font-size: 1.15rem; }
	.ac-pager { flex-direction: column; }
	.ac-pager .ac-btn { max-width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
