/* tejas.decodes · Student Zone hub. Builds on styles.css and home.css (h- classes). Classes start with sz-. */

.sz-hero { padding: 76px 0 72px; }
.sz-hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 56px; align-items: end; }
.sz-hero h1 { margin: 20px 0 0; font: 600 clamp(2.6rem, 5.2vw, 4.4rem)/1 var(--serif); letter-spacing: -.03em; color: rgb(var(--c-ink)); max-width: 13ch; text-wrap: balance; }
.sz-hero .h-hero__lede { max-width: 32em; }

/* the account panel: the one boxed element on the page */
.sz-me {
  position: relative; border-radius: 24px; padding: 28px 28px 26px; min-height: 260px;
  background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line));
  box-shadow: 0 1px 2px rgba(16,20,30,.04), 0 24px 48px -30px rgba(16,20,30,.22);
  display: flex; flex-direction: column; gap: 14px;
}
.sz-me__k { font: 700 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--c-ink-2)); display: flex; justify-content: space-between; gap: 10px; }
.sz-me__k em { font-style: normal; color: rgb(var(--c-amber)); letter-spacing: .06em; }
.sz-me h3 { margin: 0; font: 600 1.6rem/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.sz-me p { max-width: none; margin: 0; font-size: .92rem; line-height: 1.55; color: rgb(var(--c-ink-2)); }
.sz-me__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.sz-me .h-btn { height: 46px; padding: 0 18px; border-radius: 12px; font-size: .9rem; }
.sz-me__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgb(var(--c-line-2)); border-bottom: 1px solid rgb(var(--c-line-2)); }
.sz-me__stats div { padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.sz-me__stats div + div { padding-left: 14px; border-left: 1px solid rgb(var(--c-line-2)); }
.sz-me__stats b { font: 700 1.7rem/1 var(--serif); font-variant-numeric: tabular-nums; color: rgb(var(--c-ink)); }
.sz-me__stats b.warn { color: rgb(var(--c-red-ink)); }
.sz-me__stats span { font-size: .74rem; color: rgb(var(--c-ink-2)); }
.sz-me__next { display: flex; flex-direction: column; gap: 3px; font-size: .86rem; }
.sz-me__next b { font: 600 .98rem/1.35 var(--sans); color: rgb(var(--c-ink)); }
.sz-me__next span { color: rgb(var(--c-ink-2)); }
.sz-me__wait { display: flex; gap: 10px; align-items: center; font: 600 .82rem var(--sans); color: rgb(var(--c-amber)); }
.sz-me__wait i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgb(var(--c-amber) / .5); animation: sz-breathe 2.4s ease-in-out infinite; }
@keyframes sz-breathe { 50% { box-shadow: 0 0 0 7px rgb(var(--c-amber) / 0); } }
.sz-me__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; color: rgb(var(--c-ink)); }
.sz-me__list li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; line-height: 1.45; }
.sz-me__list svg { width: 16px; height: 16px; margin-top: 2px; color: rgb(var(--c-green-ink)); }

/* skeleton while the account loads */
.sz-skel { display: flex; flex-direction: column; gap: 12px; }
.sz-skel i { display: block; height: 14px; border-radius: 7px; background: rgb(var(--c-line-2)); position: relative; overflow: hidden; }
.sz-skel i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(var(--c-surface) / .85), transparent); transform: translateX(-100%); animation: sz-shim 1.3s ease-in-out infinite; }
@keyframes sz-shim { to { transform: translateX(100%); } }

/* sections */
body.h-page .sz-sec { padding: 96px 0; position: relative; }
body.h-page #manuals.sz-sec { padding-bottom: 124px; }
body.h-page .sz-sec--tight { padding: 0 0 96px; }
.sz-sec--paper { background-color: rgb(var(--h-paper)); border-top: 1px solid rgb(var(--c-line)); border-bottom: 1px solid rgb(var(--c-line)); }
.sz-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.sz-split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sz-split--flip .sz-split__head { order: 2; }
.sz-split__head { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.sz-split__head .h-h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); max-width: 14ch; }
.sz-note { margin: 0; font: 400 1.05rem/1.6 var(--serif); color: rgb(var(--c-ink-2)); max-width: 30em; }

/* the decoder ledger: rows, not cards */
.sz-ledger { display: flex; flex-direction: column; }
.sz-ledger__grp { max-width: none; margin: 0; padding: 22px 0 10px; display: flex; justify-content: space-between; gap: 12px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--c-ink)); }
.sz-ledger__grp:first-child { padding-top: 0; }
.sz-ledger__grp span { color: rgb(var(--c-ink-2)); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.sz-row {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 44px; gap: 18px; align-items: center;
  padding: 18px 4px; border-top: 1px solid rgb(var(--c-line)); color: rgb(var(--c-ink)); text-decoration: none;
  transition: padding .25s cubic-bezier(.22,.61,.36,1), background-color .25s ease;
}
.sz-ledger .sz-row:last-child { border-bottom: 1px solid rgb(var(--c-line)); }
.sz-row:hover { padding-left: 14px; padding-right: 10px; background: rgb(var(--h-paper)); color: rgb(var(--c-ink)); }
.sz-row:active { transform: scale(.995); }
.sz-row__code { font: 700 .82rem var(--sans); letter-spacing: .05em; color: rgb(var(--c-amber)); }
.sz-row__name { font: 600 1.15rem/1.3 var(--serif); min-width: 0; }
.sz-row__meta { font-size: .82rem; color: rgb(var(--c-ink-2)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sz-row__go { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgb(var(--c-line)); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s cubic-bezier(.22,.61,.36,1), background-color .2s ease, color .2s ease, border-color .2s ease; }
.sz-row__go svg { width: 17px; height: 17px; }
.sz-row:hover .sz-row__go, .sz-more:hover .sz-row__go { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: rgb(var(--c-ink)); transform: rotate(-45deg); }

/* the four Acts: offset grid, the first one wider */
.sz-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sz-act {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border-radius: 18px; text-decoration: none; color: rgb(var(--c-ink));
  background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); transition: transform .25s cubic-bezier(.22,.61,.36,1), border-color .2s ease;
}
.sz-act:nth-child(2) { transform: translateY(28px); }
.sz-act:nth-child(4) { transform: translateY(28px); }
.sz-act:hover { border-color: rgb(var(--c-amber-line)); color: rgb(var(--c-ink)); }
.sz-act:nth-child(odd):hover { transform: translateY(-3px); }
.sz-act:nth-child(even):hover { transform: translateY(25px); }
.sz-act__no { font: 700 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-amber)); }
.sz-act b { font: 600 1.3rem/1.2 var(--serif); letter-spacing: -.005em; }
.sz-act__d { font-size: .86rem; line-height: 1.5; color: rgb(var(--c-ink-2)); }
.sz-act--soon { background: transparent; border-style: dashed; border-width: 1.5px; opacity: .76; cursor: default; }
.sz-act--soon:hover { border-color: rgb(var(--c-line)); transform: none !important; }
.sz-acts-group {
  grid-column: 1 / -1; margin-top: 28px; border-radius: 18px;
  border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-surface));
  overflow: hidden;
}
.sz-acts-group__sum {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 16px 20px; transition: background-color .18s ease;
}
.sz-acts-group__sum::-webkit-details-marker { display: none; }
.sz-acts-group__sum:hover { background: rgb(var(--c-ink) / .025); }
.sz-acts-group__k {
  font: 700 .68rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: rgb(var(--c-amber)); padding: 4px 9px; border-radius: 999px;
  background: rgb(var(--c-amber-soft)); border: 1px solid rgb(var(--c-amber-line));
}
.sz-acts-group__t { font: 600 1.22rem/1.2 var(--serif); color: rgb(var(--c-ink)); }
.sz-acts-group__sub { font-size: .82rem; color: rgb(var(--c-ink-2)); }
.sz-acts-group__chev {
  margin-left: auto; width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid rgb(var(--c-line)); display: inline-flex; align-items: center; justify-content: center;
  color: rgb(var(--c-ink-2)); transition: transform .25s ease, color .18s ease, border-color .18s ease, background-color .18s ease;
}
.sz-acts-group__chev svg { width: 15px; height: 15px; }
.sz-acts-group[open] .sz-acts-group__chev { transform: rotate(180deg); background: rgb(var(--c-amber-soft)); border-color: rgb(var(--c-amber-line)); color: rgb(var(--c-amber)); }
.sz-acts-group__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  padding: 14px 20px 20px; border-top: 1px solid rgb(var(--c-line-2));
}
.sz-acts-group__grid .sz-act { transform: none !important; padding: 18px; }
.sz-acts-group__grid .sz-act:hover { transform: translateY(-2px) !important; }
.sz-acts-group__grid .sz-act--soon:hover { transform: none !important; }
@media (max-width: 860px) {
  .sz-acts-group__grid { grid-template-columns: 1fr; }
}

.sz-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; border-top: 1px solid rgb(var(--c-line)); border-bottom: 1px solid rgb(var(--c-line)); color: rgb(var(--c-ink)); text-decoration: none; font-size: 1.02rem; }
.sz-more b { font-family: var(--serif); font-size: 1.15rem; }
.sz-more:hover { color: rgb(var(--c-ink)); }

@media (max-width: 960px) {
  .sz-hero__grid, .sz-split, .sz-split--flip { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sz-split--flip .sz-split__head { order: 0; }
  .sz-split__head { position: static; }
}
@media (max-width: 640px) {
  .sz-hero { padding: 48px 0 40px; }
  body.h-page .sz-sec { padding: 64px 0; }
  body.h-page .sz-sec--tight { padding: 0 0 64px; }
  .sz-row { grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 12px; padding: 16px 0; }
  .sz-row__code { grid-column: 1; }
  .sz-row__name { grid-column: 1; }
  .sz-row__meta { grid-column: 1; white-space: normal; }
  .sz-row__go { grid-column: 2; grid-row: 1 / span 3; }
  .sz-row:hover { padding-left: 0; padding-right: 0; }
  .sz-acts { grid-template-columns: minmax(0, 1fr); }
  .sz-act:nth-child(n) { transform: none; }
  .sz-act:nth-child(n):hover { transform: none; }
  .sz-me { padding: 22px 20px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sz-skel i::after, .sz-me__wait i { animation: none; }
  .sz-row, .sz-act, .sz-row__go { transition: none; }
}

/* your revision list */
.sz-rev { border-radius: 24px; padding: 30px 32px; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); }
.sz-rev__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sz-rev__h { margin: 0; font: 600 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--serif); letter-spacing: -.015em; color: rgb(var(--c-ink)); max-width: none; }
.sz-rev__sum { margin: 0; font-size: .92rem; color: rgb(var(--c-ink-2)); max-width: none; }
.sz-rev__sum b { color: rgb(var(--c-green-ink)); }
.sz-rev__empty { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
.sz-rev__empty p { margin: 0; font-size: .95rem; line-height: 1.6; color: rgb(var(--c-ink-2)); max-width: 62ch; }
.sz-rev__i { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--c-amber-soft)); color: rgb(var(--c-amber)); grid-row: span 2; }
.sz-rev__i svg { width: 22px; height: 22px; }
.sz-rev__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; grid-column: 2; }
.sz-rev__acts .h-btn { height: 46px; padding: 0 18px; border-radius: 12px; font-size: .9rem; cursor: pointer; }
.sz-rev__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sz-rev__tabs button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(var(--c-line)); background: transparent; color: rgb(var(--c-ink-2)); font: 600 .8rem var(--sans); cursor: pointer; }
.sz-rev__tabs button span { color: rgb(var(--c-ink-3)); margin-left: 3px; }
.sz-rev__tabs button[aria-pressed="true"] { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: rgb(var(--c-ink)); }
.sz-rev__tabs button[aria-pressed="true"] span { color: rgb(var(--c-bg) / .7); }
.sz-rev__body { max-height: 520px; overflow: auto; padding-right: 4px; }
.sz-rev__ch { margin: 16px 0 6px; font: 700 .7rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-ink-2)); max-width: none; }
.sz-rev__ch:first-child { margin-top: 0; }
.sz-rev__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(var(--c-line-2)); }
.sz-rev__row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgb(var(--c-line-2)); }
.sz-rev__row a { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 4px; text-decoration: none; color: rgb(var(--c-ink)); }
.sz-rev__row a b { font: 600 .95rem/1.35 var(--sans); }
.sz-rev__row a span { font-size: .78rem; color: rgb(var(--c-ink-2)); }
.sz-rev__row a span em { font-style: normal; font-weight: 600; color: rgb(var(--c-green-ink)); }
.sz-rev__row a svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 18px; height: 18px; color: rgb(var(--c-ink-3)); transition: transform .2s ease, color .2s ease; }
.sz-rev__row a:hover svg { transform: translateX(3px); color: rgb(var(--c-amber)); }
.sz-rev__row.is-solved a b { color: rgb(var(--c-ink-2)); }
.sz-rev__x { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: none; color: rgb(var(--c-ink-3)); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sz-rev__x:hover { background: rgb(var(--c-red-soft)); color: rgb(var(--c-red-ink)); }
@media (max-width: 640px) {
  .sz-rev { padding: 22px 18px; border-radius: 20px; }
  .sz-rev__empty { grid-template-columns: minmax(0, 1fr); }
  .sz-rev__i { grid-row: auto; }
  .sz-rev__acts { grid-column: 1; }
}

/* hero: one card holding the account panel and, under a hairline, Flashcards */
.sz-hero__side {
  align-self: start; min-width: 0; display: flex; flex-direction: column;
  border-radius: 24px; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line));
  box-shadow: 0 1px 2px rgba(16,20,30,.04), 0 24px 48px -30px rgba(16,20,30,.22);
  overflow: hidden;
}
.sz-hero__side .sz-me { min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.sz-fc { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 26px; border-top: 1px solid rgb(var(--c-line-2)); }
.sz-fc__k { font: 700 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--c-ink-2)); display: flex; justify-content: space-between; gap: 10px; }
.sz-fc__k em { font-style: normal; color: rgb(var(--c-amber)); letter-spacing: .06em; }
.sz-fc__h { margin: 0; font: 600 1.35rem/1.2 var(--serif); letter-spacing: -.01em; color: rgb(var(--c-ink)); text-wrap: balance; }
.sz-fc p { max-width: none; margin: 0; font-size: .92rem; line-height: 1.55; color: rgb(var(--c-ink-2)); }
.sz-fc__go { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.sz-fc__go:empty { display: none; }
.sz-fc .h-btn { height: 46px; padding: 0 18px; border-radius: 12px; font-size: .9rem; }
.sz-fc .h-btn svg { width: 18px; height: 18px; }
.sz-fc__wait { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; background: rgb(var(--c-amber-soft)); font: 600 .84rem var(--sans); color: rgb(var(--c-amber)); }
/* label row with an icon tile (both sections), text and buttons share its left edge */
.sz-me__k, .sz-fc__k { align-items: center; }
.sz-k__l { display: inline-flex; align-items: center; gap: 12px; }
.sz-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgb(var(--c-amber-soft)); color: rgb(var(--c-amber)); }
.sz-ico svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .sz-fc { padding: 22px 20px; }
}
.sz-fc[hidden] { display: none; }
