/* LeetCode page additions. The portfolio's existing stylesheet supplies the shared visual system. */
.leetcode-nav-active{color:var(--blue)!important;text-decoration:underline!important;text-decoration-color:var(--gold)!important;text-underline-offset:8px!important}
.subpage-kicker{display:flex;align-items:center;gap:10px}
.subpage-hero h1 em{color:var(--gold);font-style:normal}
.leetcode-status-dot{width:8px;height:8px;border-radius:50%;background:#3e8b75;box-shadow:0 0 0 4px #d8e9e2;display:inline-block}
.leetcode-hero-meta{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:40px;padding-top:15px;color:#7b8496;font:500 .62rem var(--mono);letter-spacing:.06em}
.leetcode-section{display:grid;grid-template-columns:190px minmax(0,1fr);gap:clamp(28px,5vw,75px);padding:clamp(55px,7vw,88px) 0;border-bottom:1px solid var(--line)}
.leetcode-section-label>span{font:500 .7rem var(--mono);color:var(--blue)}
.leetcode-section-label h2{font:700 1.1rem/1.3 var(--display);letter-spacing:-.04em;margin:12px 0}
.leetcode-section-label>p{font:500 .58rem var(--mono);letter-spacing:.08em;color:#8b92a2}
.leetcode-section-content{min-width:0}
.stats-panel{padding:clamp(20px,4vw,38px);border:1px solid var(--line);background:rgba(255,255,255,.64)}
.leetcode-profile-line{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.leetcode-profile-line .eyebrow{font:500 .62rem var(--mono);letter-spacing:.08em;color:var(--blue);margin:0 0 8px}
.leetcode-profile-line h2{font:800 clamp(1.7rem,3vw,2.5rem)/1.1 var(--display);letter-spacing:-.06em;margin:0}
.leetcode-handle{font:500 .75rem var(--mono);color:var(--muted);margin:9px 0 0}
.leetcode-avatar{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;background:var(--ink);color:#fff;font:800 1.2rem var(--display);border-radius:50%;border:4px solid #e4e7ef}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}
.stat-card{min-width:0;padding:18px;border:1px solid var(--line);background:#fff}
.stat-card>span{display:block;color:var(--muted);font:500 .64rem var(--mono);letter-spacing:.06em;text-transform:uppercase}
.stat-card strong{display:block;margin-top:12px;font:800 clamp(1.5rem,3vw,2.5rem)/1 var(--display);letter-spacing:-.06em;overflow-wrap:anywhere}
.stat-card small{display:block;margin-top:9px;color:var(--muted);font-size:.75rem;line-height:1.4}
.stat-card-featured{background:#17213a;color:white;border-color:#17213a}.stat-card-featured>span,.stat-card-featured small{color:#c8cfdd}.stat-card-featured strong{color:#f1bd4b}
.leetcode-difficulty-list{display:grid;gap:15px;margin:28px 0}
.difficulty-row{display:grid;grid-template-columns:75px minmax(0,1fr) 48px;gap:14px;align-items:center;font:500 .8rem var(--display)}
.difficulty-row>b{text-align:right;font:500 .7rem var(--mono);color:var(--muted)}
.difficulty-track{height:7px;overflow:hidden;background:#e6e8ed;border-radius:99px}
.difficulty-fill{height:100%;width:0;border-radius:99px;transition:width .6s ease}
.difficulty-fill.easy{background:#16865c}.difficulty-fill.medium{background:#d99a17}.difficulty-fill.hard{background:#dc4e5a}
.leetcode-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding-top:8px}
.leetcode-actions .outline-button{border:1px solid var(--ink);border-radius:2px;background:transparent;color:var(--ink);padding:11px 16px;font:600 .77rem var(--display);cursor:pointer}
.leetcode-actions .outline-button:hover{background:var(--ink);color:#fff}
.leetcode-actions .text-link{font-size:.77rem}
.leetcode-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.leetcode-note{font-size:.88rem;color:var(--muted);line-height:1.6;margin:18px 0 0}
.activity-wrap{padding:clamp(18px,3vw,28px);border:1px solid var(--line);background:rgba(255,255,255,.72)}
.activity-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.activity-title h2{font:700 1.2rem var(--display);letter-spacing:-.04em;margin:0}
.activity-title strong{font:800 1.7rem var(--display);color:var(--blue)}
.activity-grid{display:grid;grid-template-columns:repeat(26,minmax(0,1fr));gap:4px;margin-top:20px}
.activity-cell{aspect-ratio:1;border-radius:2px;background:#edf0f3;min-width:0}
.activity-cell[data-level="1"]{background:#b8e5cf}.activity-cell[data-level="2"]{background:#6ec69a}.activity-cell[data-level="3"]{background:#2a9d68}.activity-cell[data-level="4"]{background:#126b46}
.api-disclaimer{margin-top:20px;color:var(--muted);font-size:.8rem;line-height:1.65;overflow-wrap:anywhere}
.api-disclaimer.is-error{color:#a23b45}
@media(max-width:900px){.leetcode-section{grid-template-columns:145px minmax(0,1fr)}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.leetcode-section{grid-template-columns:1fr;gap:20px;padding:55px 0}.leetcode-hero-meta{font-size:.56rem}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:14px}.leetcode-metric-grid{grid-template-columns:1fr}.activity-grid{grid-template-columns:repeat(18,minmax(0,1fr));gap:3px}.leetcode-profile-line h2{font-size:1.65rem}.difficulty-row{grid-template-columns:62px minmax(0,1fr) 42px;gap:8px}}
@media(max-width:440px){.activity-grid{grid-template-columns:repeat(13,minmax(0,1fr))}.activity-wrap{padding:14px}.leetcode-actions{gap:15px}}
@media(prefers-reduced-motion:reduce){.difficulty-fill{transition:none}}
