/* Page-specific components */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.quick {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border);
  color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s, background .15s;
}
.quick:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.quick b { font-size: 1.25rem; }
.quick span { font-size: .82rem; color: var(--muted); }

.steps .card { position: relative; padding-top: 30px; }
.step-num { position: absolute; top: -16px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow); }
.steps { row-gap: 32px; }

.exam-filter { display: grid; gap: 14px; }
.exam-filter .input { max-width: 520px; }
.exam-filter .chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; }
#blog-cats .chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .88rem; }
.exam-card h3 { font-size: 1.08rem; }

.game-card { text-align: left; }
.game-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }

.tool-area { font-size: 1.15rem; line-height: 1.8; min-height: 220px; resize: vertical; }
.tool-card .tt-field { flex: 1 1 240px; }
#hp-kb .vk-key { cursor: pointer; }
#hp-kb .vk-key:hover { border-color: var(--primary); }

.lesson-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.lesson-bc { color: var(--muted); }
.lesson-bc a { color: var(--primary); }
.lp-keys kbd { margin: 0 1px; }
.lp-keys kbd.k-done { opacity: .45; }
.lp-keys kbd.k-cur { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

.post-card h3 { font-size: 1.1rem; }
.spark { width: 100%; height: 180px; display: block; }
.contact-form { max-width: 560px; }
.not-prose { margin-bottom: 1.4em; }
.course-kb .vk { gap: 3px; } .course-kb .vk-row { gap: 3px; } .course-kb .vk-key { border-radius: 5px; font-size: .62rem; } .course-kb .vk-shift { display: none; }

/* keyboard charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 8px; }
.chart-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.chart-ch { font-family: var(--font-hi); font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.chart-k { font-size: .78rem; text-align: center; font-family: var(--font); }
.chart-k kbd { font-size: .75rem; }
.chart-kb-card .vk-key { font-size: clamp(.7rem, 2vw, 1.2rem); max-height: 64px; }
@media print {
  .site-header, .site-footer, .page-hero .breadcrumbs, .no-print, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; color: #000; padding: 0 0 12px; }
  .page-hero h1, .page-hero p { color: #000; }
  .card { box-shadow: none; break-inside: avoid; }
  .chart-cell { break-inside: avoid; }
}

/* quiz */
.quiz-card { padding: 26px; }
.quiz-q { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin: 22px 0 16px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1rem; font-weight: 550; transition: border-color .15s, background .15s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.quiz-opt:disabled { cursor: default; }
.quiz-letter { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; flex-shrink: 0; }
.quiz-opt.right { border-color: var(--success); background: var(--success-soft); }
.quiz-opt.right .quiz-letter { background: var(--success); color: #fff; }
.quiz-opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.quiz-opt.wrong .quiz-letter { background: var(--danger); color: #fff; }
.quiz-explain { margin-top: 14px; }
.quiz-rev { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }

/* transliteration suggestions */
.tl-sugg { min-height: 40px; }
.tl-sugg button { font-family: var(--font-hi); font-size: 1.05rem; cursor: pointer; }

/* author box, profile header and byline */
.author-box {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.author-box h3 { margin: 2px 0 2px; font-size: 1.2rem; }
.author-box h3 a { color: var(--text); text-decoration: none; }
.author-box h3 a:hover { color: var(--primary); }
.author-box p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.author-box .author-role { color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.author-box .eyebrow { margin-bottom: 2px; }
.author-avatar {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hero-grad); color: #fff; font-weight: 700; font-size: 1.3rem; letter-spacing: .02em;
  text-decoration: none !important; box-shadow: inset 0 0 0 3px rgba(255,255,255,.2);
}
.author-avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.author-hero { display: flex; align-items: center; gap: 22px; }
.author-hero h1 { margin-bottom: 4px; }
.author-hero p { margin: 0; }
.page-hero .byline { text-decoration: none; }
.page-hero .byline:hover { background: rgba(255,255,255,.25); }
.foot-copy a { color: #ecfdf5; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .author-box { flex-direction: column; } .author-hero { flex-direction: column; align-items: flex-start; } }

/* ---------- Blog: illustrated post cards ---------- */
.post-card { padding: 0; overflow: hidden; display: flex !important; flex-direction: column; }
.post-cover {
  position: relative; height: 150px; display: flex; align-items: flex-end; padding: 16px 18px; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #053b33, #0f766e 60%, #14b8a6);
}
.post-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 16px 16px; }
.post-cover.cat-exam-guides { background: linear-gradient(135deg, #78350f, #d97706 60%, #fbbf24); }
.post-cover.cat-hindi-typing { background: linear-gradient(135deg, #064e3b, #059669 55%, #fbbf24); }
.post-cover.cat-keyboard-layouts { background: linear-gradient(135deg, #0b1f1c, #134e4a 55%, #2dd4bf); }
.post-glyph {
  position: absolute; right: 14px; top: -6px; font-size: 104px; line-height: 1; font-weight: 700; opacity: .22;
  font-family: var(--font-hi); transform: rotate(-6deg); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.post-card:hover .post-glyph { transform: rotate(0deg) scale(1.08); }
.post-cover-cat {
  position: relative; z-index: 1; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 8px; }
.post-body p { flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; font-size: .8rem; color: var(--muted); }
.post-meta span + span::before { content: "•"; margin-right: 14px; opacity: .5; }
.post-meta span:first-child::before { content: none; }

/* featured (latest) post: wide card */
.post-featured { display: grid !important; grid-template-columns: 1.05fr 1fr; }
.post-featured .post-cover { height: auto; min-height: 280px; }
.post-featured .post-glyph { font-size: 210px; right: 24px; top: 10px; }
.post-featured .post-body { padding: 32px 34px; justify-content: center; }
.post-featured .post-body h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-top: 10px; }
.post-featured .post-body p { flex: 0; font-size: 1.02rem; }
@media (max-width: 800px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-cover { min-height: 170px; } .post-featured .post-glyph { font-size: 130px; } .post-featured .post-body { padding: 22px; } }

/* category navigation */
.blog-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-nav .chip { padding: 9px 16px; }
.chip-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.chip.active .chip-count { background: rgba(255,255,255,.22); color: inherit; }
.chip-archive { margin-left: auto; }
@media (max-width: 700px) { .chip-archive { margin-left: 0; } }
.archive-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.archive-cta h2 { font-size: 1.3rem; margin-bottom: 4px; }

/* ---------- Blog archive ---------- */
.arch-search { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.arch-search .input { max-width: 460px; border-radius: 999px; padding: 12px 20px; }
.arch-month { margin-top: 30px; }
.arch-month h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border); scroll-margin-top: 110px; }
.arch-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.arch-item a {
  display: flex; align-items: center; gap: 18px; padding: 16px 20px; color: var(--text); text-decoration: none !important;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
}
.arch-item a:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.arch-date { flex-shrink: 0; width: 58px; height: 62px; border-radius: 16px; display: grid; place-content: center; text-align: center; background: var(--primary-soft); color: var(--primary); line-height: 1.1; }
.arch-date b { font-size: 1.35rem; }
.arch-date small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.arch-main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.arch-title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.arch-excerpt { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arch-meta { display: flex; gap: 12px; align-items: center; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.arch-cat { font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.arch-cat.cat-exam-guides { background: var(--accent-soft); color: var(--accent); }
.arch-cat.cat-hindi-typing { background: var(--success-soft); color: var(--success); }
.arch-arrow { font-size: 1.2rem; color: var(--muted); transition: transform .2s, color .2s; }
.arch-item a:hover .arch-arrow { transform: translateX(4px); color: var(--primary); }
.arch-side { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.arch-side a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.arch-side a:hover { background: var(--surface-2); color: var(--primary); }
@media (max-width: 560px) { .arch-item a { gap: 12px; padding: 14px; } .arch-arrow { display: none; } .arch-date { width: 50px; height: 56px; } }
