/* SQL Server MVP : home page redesign. Loaded only on the front page. */
:root{--bg:#F6F7F9;--surface:#FFFFFF;--ink:#0B1220;--muted:#475569;--line:#DDE3EC;--accent:#1D4ED8;--onAccent:#FFFFFF;--accentSoft:#EAF0FE;--warn:#92400E;--warnSoft:#FEF3C7}
[data-theme="dark"]{--bg:#0B1220;--surface:#111A2C;--ink:#E6EBF5;--muted:#A3B3CC;--line:#22304A;--accent:#8CB0FF;--onAccent:#0B1220;--accentSoft:#17264A;--warn:#FBBF77;--warnSoft:#2A2112}
html{scroll-behavior:smooth}
body.mv-home{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,sans-serif;font-size:15px;line-height:1.5}
.mv-home *,.mv-home *::before,.mv-home *::after{box-sizing:border-box}
.mv-home a{color:inherit;text-decoration:none}
.mv-home h1,.mv-home h2,.mv-home h3,.mv-home p{padding-top:0}
.mv-home button,.mv-home input,.mv-home select{font-family:inherit}
.mv-home button{cursor:pointer}
.mv-home :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mv-mono{font-family:'JetBrains Mono',ui-monospace,monospace}
.mv-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.mv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.mv-hd{border-bottom:1px solid var(--line);background:var(--surface)}
.mv-hd .mv-wrap{min-height:72px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.mv-logo{display:flex;align-items:center;border-radius:10px}
.mv-logo img{display:block;height:48px;width:auto}
[data-theme="dark"] .mv-logo{background:#fff;padding:4px 10px}
.mv-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.mv-nav a{padding:8px 14px;border-radius:8px;color:var(--muted)}
.mv-nav a:hover{color:var(--accent)}
.mv-nav a.is-on{font-weight:600;background:var(--accentSoft);color:var(--accent)}
.mv-nav a.mv-join{background:var(--accent);color:var(--onAccent);font-weight:600;margin-left:4px}
.mv-nav a.mv-join:hover{color:var(--onAccent);opacity:.9}
.mv-theme{margin-left:8px;height:44px;min-width:44px;padding:0 14px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:13px;font-weight:500}

/* hero */
.mv-hero{max-width:1240px;margin:0 auto;padding:56px 24px 32px;display:flex;flex-wrap:wrap;align-items:center;gap:40px}
.mv-hero-l{flex:1 1 480px;min-width:0}
.mv-eyebrow{font-size:13px;color:var(--accent);margin-bottom:14px}
.mv-hero h1{margin:0;font-size:44px;line-height:1.1;letter-spacing:-.02em;font-weight:700;color:var(--ink)}
.mv-lede{margin:14px 0 0;max-width:620px;color:var(--muted);font-size:17px}
.mv-search{margin-top:28px;max-width:640px;display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.mv-search input{flex:1;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px;min-width:0;box-shadow:none}
.mv-search:focus-within{border-color:var(--accent)}
.mv-hero-r{flex:1 1 380px;max-width:560px;min-width:0}
.mv-hero-r img{display:block;width:100%;height:auto;border-radius:26px}
.mv-hero-r .is-light{display:none}
[data-theme="light"] .mv-hero-r .is-light{display:block}
[data-theme="light"] .mv-hero-r .is-dark{display:none}

/* layout */
.mv-body{max-width:1240px;margin:0 auto;padding:0 24px 64px;display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start}
.mv-side{flex:1 1 250px;max-width:290px;min-width:230px;display:flex;flex-direction:column;gap:28px}
.mv-main{flex:999 1 560px;min-width:0}
.mv-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px}
.mv-cats{display:flex;flex-direction:column;gap:2px}
.mv-cat{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--ink)}
.mv-cat:hover,.mv-cat.is-on{background:var(--accentSoft);color:var(--accent)}
.mv-cat.is-on{font-weight:600}
.mv-cat i{font-style:normal;font-size:12px}
.mv-chips{display:flex;flex-wrap:wrap;gap:8px}
.mv-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:13px}
.mv-chip:hover{border-color:var(--accent);color:var(--accent)}

/* toolbar */
.mv-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.mv-count{font-size:13px;color:var(--muted)}
.mv-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mv-tools label{font-size:13px;color:var(--muted)}
.mv-select{height:44px;padding:0 12px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:14px}
.mv-seg{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mv-seg button{height:44px;width:46px;border:0;display:flex;align-items:center;justify-content:center;background:var(--surface);color:var(--muted)}
.mv-seg button[aria-pressed="true"]{background:var(--accentSoft);color:var(--accent)}

/* tags */
.mv-tag{font-size:11.5px;color:var(--accent);background:var(--accentSoft);padding:3px 8px;border-radius:6px}
.mv-err{font-size:11.5px;color:var(--warn);background:var(--warnSoft);padding:3px 8px;border-radius:6px}
.mv-meta{font-size:12px;color:var(--muted)}

/* featured */
.mv-feat{display:flex;flex-wrap:wrap;gap:24px;padding:28px;margin-bottom:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.mv-feat:hover,.mv-card:hover{border-color:var(--accent)}
.mv-feat-t{flex:1 1 320px;min-width:0}
.mv-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mv-feat .mv-tag,.mv-feat .mv-err{font-size:12px;padding:4px 10px}
.mv-feat h2{margin:14px 0 0;font-size:28px;line-height:1.2;letter-spacing:-.01em;font-weight:700;color:var(--ink)}
.mv-feat p{margin:12px 0 0;color:var(--muted);font-size:16px;max-width:560px}
.mv-feat .mv-meta{margin-top:20px}
.mv-code{flex:1 1 280px;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;font-size:12.5px;line-height:1.75}
.mv-code-h{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;background:var(--accentSoft);border-bottom:1px solid var(--line)}
.mv-code-h>div{display:flex;align-items:center;gap:10px}
.mv-dots{display:flex;gap:5px}.mv-dots b{width:8px;height:8px;border-radius:50%;background:var(--line)}
.mv-code-h em{font-style:normal;color:var(--accent);font-size:11px;letter-spacing:.06em}
.mv-code-b{display:flex;gap:14px;padding:12px 14px 10px}
.mv-ln{color:var(--muted);text-align:right;opacity:.7;user-select:none}
.mv-src{color:var(--ink);white-space:pre;overflow:hidden;margin:0;font:inherit;background:none;border:0;padding:0}
.mv-src .c{color:var(--muted)}.mv-src .k{color:var(--accent);font-weight:500}.mv-src .w{color:var(--warn)}
.mv-res{margin:0 14px 14px;border:1px solid var(--line);border-radius:8px;overflow:hidden;font-size:11.5px}
.mv-res div{display:flex;justify-content:space-between;padding:5px 10px;color:var(--ink)}
.mv-res div:first-child{background:var(--accentSoft);color:var(--muted)}
.mv-res div{border-bottom:1px solid var(--line)}.mv-res div:last-child{border-bottom:0}
.mv-res .w{color:var(--warn)}

/* grid */
.mv-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.mv-grid.is-list{grid-template-columns:minmax(0,1fr)}
.mv-card{display:flex;flex-direction:column;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-height:220px}
.mv-grid.is-list .mv-card{min-height:0}
.mv-card h3{margin:12px 0 0;font-size:18px;line-height:1.3;font-weight:600;color:var(--ink)}
.mv-card p{margin:8px 0 0;color:var(--muted);font-size:14px}
.mv-card .mv-meta{margin-top:auto;padding-top:16px}
.mv-empty{padding:48px 24px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted)}
.mv-empty b{display:block;font-weight:400;font-size:14px;color:var(--ink)}
.mv-empty p{margin:8px 0 16px}
.mv-empty button{height:44px;padding:0 18px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:14px;font-weight:500}

/* pager */
.mv-pager{margin-top:36px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.mv-pages{display:flex;gap:6px;flex-wrap:wrap}
.mv-pages a,.mv-pages span{min-width:44px;height:44px;padding:0 14px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:1px solid var(--line);background:var(--surface)}
.mv-pages a:hover{border-color:var(--accent);color:var(--accent)}
.mv-pages .current{background:var(--accent);border-color:var(--accent);color:var(--onAccent);font-weight:600}
.mv-pages .dots{border-color:transparent;background:transparent}

/* footer */
.mv-ft{background:var(--surface);margin-top:8px}
.mv-ft .mv-wrap{padding:28px 24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}
.mv-ft a:hover{color:var(--accent)}

@media (max-width:640px){.mv-hd .mv-wrap{padding-bottom:10px}.mv-nav{width:100%;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;gap:2px;padding-bottom:2px}.mv-nav a{padding:8px 12px}.mv-nav a.mv-join{margin-left:2px}.mv-theme{margin-left:6px;height:40px;flex:0 0 auto}.mv-hero{padding-top:36px}.mv-hero h1{font-size:34px}.mv-feat{padding:20px}.mv-feat h2{font-size:24px}}

.mv-home [hidden]{display:none!important}
