/* Mohit Jiwnani portfolio overrides on top of style.css + polish.css */

.brand-mark{width:38px;height:38px;border-radius:0;background:transparent;overflow:visible}
.brand-mark img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none;filter:none;mix-blend-mode:normal;display:block}
@media(max-width:760px){.brand-mark{width:30px;height:30px}}

.footer-art--swordsman{width:clamp(160px,18vw,240px)}
.footer-art--swordsman img{filter:brightness(1.1) contrast(1.05);opacity:.68;border-radius:24px;mask-image:radial-gradient(ellipse 72% 72% at 50% 52%,#000 35%,transparent 92%)}
@media(max-width:760px){.footer-art--swordsman{width:clamp(84px,24vw,130px)}}

.dev-wordmark{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:24px;letter-spacing:.02em;color:var(--ink)}
.dev-wordmark .icon{color:#2260d9;width:28px;height:28px}

.academic-monogram{font-weight:700;font-size:21px;letter-spacing:.04em;background:var(--section);color:var(--ink);border:1px solid var(--line)}
.academic-monogram.cs{background:#efeaf9;color:#39266b;border-color:#dfd5f6}
.academic-monogram.mgps{background:#e7f4ed;color:#174b33;border-color:#cde7d8;font-size:18px}

#profiles .blog-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1040px;margin-inline:auto;align-items:stretch}
.medium-article.profile-card{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:26px}
.profile-card .article-meta{justify-content:space-between;align-items:center;width:100%}
.profile-platform{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--ink)}
.profile-platform .icon{width:16px;height:16px;flex-shrink:0}
.profile-card h3{margin-top:14px;margin-bottom:0}

.profile-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-top:16px}
.profile-metric{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.profile-metric strong{font-size:clamp(18px,1.5vw,21px);line-height:1.15;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-metric span{font-size:11px;line-height:1.2;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.profile-heatmap-wrap{width:100%;margin-top:12px;padding:10px 12px;border-radius:14px;background:var(--white);border:1px solid var(--line)}
.heatmap-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:500;color:var(--muted);margin-bottom:8px}
.heatmap-window{font-variant-numeric:tabular-nums}
.heatmap-grid{display:grid;grid-template-columns:repeat(32,minmax(0,1fr));grid-template-rows:repeat(7,auto);grid-auto-flow:column;gap:3px;width:100%}
.heatmap-cell{display:block;width:100%;aspect-ratio:1;border-radius:2px;background:#e8ebef;transition:transform .15s ease}
.heatmap-cell[data-future="true"]{opacity:0;pointer-events:none}
.heatmap-cell:hover{transform:scale(1.18)}
.heatmap-grid--github .heatmap-cell[data-level="0"]{background:#e8ebef}
.heatmap-grid--github .heatmap-cell[data-level="1"]{background:#9be9a8}
.heatmap-grid--github .heatmap-cell[data-level="2"]{background:#40c463}
.heatmap-grid--github .heatmap-cell[data-level="3"]{background:#30a14e}
.heatmap-grid--github .heatmap-cell[data-level="4"]{background:#216e39}
.heatmap-grid--leetcode .heatmap-cell[data-level="0"]{background:#e8ebef}
.heatmap-grid--leetcode .heatmap-cell[data-level="1"]{background:#fde6b2}
.heatmap-grid--leetcode .heatmap-cell[data-level="2"]{background:#f7c252}
.heatmap-grid--leetcode .heatmap-cell[data-level="3"]{background:#f59e0b}
.heatmap-grid--leetcode .heatmap-cell[data-level="4"]{background:#d97706}

.profile-card .article-actions{margin-top:auto;padding-top:18px;width:100%}

.profile-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:36px}
.profile-ctas .button{margin:0;display:inline-flex;align-items:center;gap:10px;color:var(--ink)}
.profile-ctas .button.white:is(:hover,:focus-visible){background:var(--ink);border-color:var(--ink);color:var(--white)}
.profile-ctas .button+a.button{margin-inline-start:0}
.profile-ctas .button .icon{display:inline-block;width:18px;height:18px;flex-shrink:0}

.project-tile{width:420px;height:240px}

@media(max-width:760px){.project-tile{width:min(86vw,340px);height:196px}#profiles .blog-grid{grid-template-columns:minmax(0,1fr)}.profile-ctas{margin-top:28px;gap:10px}}
@media(max-width:540px){.medium-article.profile-card{padding:22px}.heatmap-grid{gap:2px}.profile-heatmap-wrap{padding:10px}.profile-ctas .button{width:100%;justify-content:center}}

.social[aria-label="Email Mohit"]:is(:hover,:focus-visible){background:#fff;border-color:#fff;color:#d93025}
.social[aria-label="LeetCode"]:is(:hover,:focus-visible){background:#ffa116;border-color:#ffa116;color:#181717}
.social[aria-label="Instagram"]:is(:hover,:focus-visible){background:#e4405f;border-color:#e4405f;color:#fff}
.social[aria-label="Telegram"]:is(:hover,:focus-visible){background:#26a5e4;border-color:#26a5e4;color:#fff}

.footer-credit a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.footer-credit a:is(:hover,:focus-visible){color:var(--white)}

#admin-memories-slot[hidden]{display:none}
.header-actions>.button.admin-nav-action{background:var(--ink);color:var(--white);min-height:44px;padding:10px 18px;font-size:14px;gap:8px}
.header-actions>.button.admin-nav-action:is(:hover,:focus-visible){background:#20232b;color:var(--white)}
.site-header nav .admin-mobile-link{display:none}
@media(max-width:960px){.header-actions>.button.admin-nav-action{display:none}.site-header nav .admin-mobile-link{display:inline-flex}}
