/* EATTA – Knowledge Hub (learn.html). Load after base.css. */

/* ---------- Hero ---------- */
.hub-hero { padding-bottom: 6.5rem; }
.hub-hero .lead-in { max-width: 40rem; }
.jump-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.jump-chips a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(239,225,189,.55); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  background: rgba(255,255,255,.08); backdrop-filter: blur(4px); transition: background .2s, color .2s;
}
.jump-chips a:hover { background: var(--gold-500); color: var(--green-900); border-color: var(--gold-500); }
.jump-chips svg { width: 16px; height: 16px; }

/* ---------- Featured player ---------- */
.feature-wrap { margin-top: -4.5rem; position: relative; z-index: 2; }
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  background: var(--paper); border-radius: calc(var(--radius) * 2); overflow: hidden;
  box-shadow: 0 28px 60px -30px rgba(11,46,34,.55); border: 1px solid var(--line);
}
.player {
  position: relative; aspect-ratio: 16/9; background: #0b2e22 center/cover no-repeat; cursor: pointer; border: 0; padding: 0; width: 100%;
}
.player::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55)); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%;
  background: var(--gold-500); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(201,162,74,.6);
  animation: pulse 2.4s infinite; transition: transform .2s;
}
.player:hover .play-btn { transform: translate(-50%,-50%) scale(1.08); }
.play-btn svg { width: 30px; height: 30px; fill: var(--green-900); margin-left: 4px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,162,74,.55); } 70% { box-shadow: 0 0 0 22px rgba(201,162,74,0); } 100% { box-shadow: 0 0 0 0 rgba(201,162,74,0); } }
.player .now { position: absolute; left: 1.25rem; bottom: 1rem; right: 1.25rem; color: #fff; text-align: left; font-weight: 600; z-index: 1; }

.feature-side { padding: 1.75rem; display: flex; flex-direction: column; }
.feature-side h2 { font-size: 1.9rem; margin: .4rem 0 .6rem; }
.feature-side p { color: var(--muted); }
.up-next { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.up-next li { border-bottom: 1px dashed var(--line); }
.up-next button {
  display: flex; gap: .8rem; align-items: center; width: 100%; padding: .7rem 0; background: none; border: 0; text-align: left; color: var(--ink);
}
.up-next button:hover strong { color: var(--gold-600); }
.up-next .mini {
  flex: 0 0 64px; height: 40px; border-radius: 4px; background: var(--green-800) center/cover no-repeat;
  display: grid; place-items: center; color: var(--gold-200); font-family: var(--font-display); font-weight: 700;
}
.up-next strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--green-900); }
.up-next small { color: var(--muted); }

/* ---------- Section heads ---------- */
.convention-badge {
  display: inline-flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding: .55rem 1rem; border-radius: var(--radius);
  background: var(--green-800); color: var(--gold-200); font-size: .9rem; font-weight: 600;
}
.convention-badge b { color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }

.chip-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-bar button {
  border: 1px solid var(--line); background: var(--paper); color: var(--green-900); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 600; font-size: .9rem; transition: all .2s;
}
.chip-bar button:hover, .chip-bar button.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }

/* ---------- Talk cards ---------- */
.talk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.talk {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  animation: rise .5s ease both;
}
.talk:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(11,46,34,.55); }
.talk[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.talk-poster {
  position: relative; aspect-ratio: 16/9; border: 0; padding: 0; width: 100%; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(201,162,74,.45), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(239,225,189,.18), transparent 40%),
    linear-gradient(135deg, #046b2d, #058d3b 55%, #0a5a2c);
  background-size: cover; background-position: center;
}
.talk-poster::after {             /* tea-leaf vein pattern */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 22px);
}
.talk.has-video .talk-poster::after { opacity: 0; }
.talk.has-video .talk-poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); z-index: 1; }
.talk-session {
  position: absolute; top: .8rem; left: .8rem; z-index: 2; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.28); padding: .25rem .55rem; border-radius: 3px;
}
.talk-initials {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-55%); width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--green-900);
  background: var(--gold-200); box-shadow: 0 0 0 6px rgba(239,225,189,.25);
}
.talk-initials { width: 96px; height: 96px; overflow: hidden; z-index: 2; }
.talk-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Once a video is linked, the photo moves to a small badge so the thumbnail stays visible */
.talk.has-video .talk-initials {
  left: .8rem; top: auto; bottom: .8rem; transform: none; width: 52px; height: 52px; font-size: 1.1rem;
  box-shadow: 0 0 0 3px rgba(239,225,189,.6);
}
.talk-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.85); width: 62px; height: 62px; border-radius: 50%; z-index: 2;
  background: var(--gold-500); display: none; place-items: center; transition: transform .2s;
}
.talk-play svg { width: 22px; height: 22px; fill: var(--green-900); margin-left: 3px; }
.talk.has-video .talk-play { display: grid; }
.talk.has-video:hover .talk-play { transform: translate(-50%,-50%) scale(1); }
.talk-soon {
  position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 2;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-200);
}
.talk.has-video .talk-soon { display: none; }
.talk:not(.has-video) .talk-poster { cursor: default; }

.talk-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.talk-body h3 { font-size: 1.35rem; margin: .55rem 0 .35rem; }
.talk-body .speaker { font-size: .92rem; color: var(--green-800); margin-bottom: .5rem; }
.talk-body .speaker span { color: var(--muted); }
.talk-body p.sum { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Did you know band ---------- */
.dyk-band { background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.dyk-band::before {
  content: "\201C"; position: absolute; right: 4%; top: -3rem; font-family: var(--font-display); font-size: 18rem; line-height: 1;
  color: rgba(239,225,189,.12);
}
.dyk-inner { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 3.5rem 0; position: relative; }
.dyk-label { font-family: var(--font-display); font-size: 1.6rem; font-style: italic; color: var(--gold-500); white-space: nowrap; }
.dyk-fact { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; min-height: 2.6em; transition: opacity .45s ease, transform .45s ease; }
.dyk-fact.out { opacity: 0; transform: translateY(8px); }
.dyk-dots { display: flex; gap: .45rem; margin-top: 1rem; }
.dyk-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(239,225,189,.35); }
.dyk-dots button.on { background: var(--gold-500); width: 26px; border-radius: 6px; transition: width .3s; }

/* ---------- Articles (Tea 101) ---------- */
.read-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.read-stack { display: grid; gap: 1.5rem; }
.read-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; box-shadow: var(--shadow);
  background: #0b2e22 center/cover no-repeat;
}
.read-card.big { min-height: 480px; }
.read-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,40,20,.25) 0%, rgba(5,40,20,.55) 40%, rgba(5,40,20,.94) 100%); transition: background .3s; }
.read-card:hover::before { background: linear-gradient(180deg, rgba(5,40,20,.35) 0%, rgba(5,40,20,.65) 40%, rgba(5,40,20,.97) 100%); }
.read-card h3, .read-card p { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.read-card .inner { position: relative; padding: 1.5rem 1.6rem; }
.read-card .series { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); margin-bottom: .4rem; }
.read-card h3 { color: #fff; font-size: 1.6rem; margin: 0 0 .4rem; }
.read-card.big h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.read-card p { color: rgba(255,255,255,.85); margin: 0 0 .6rem; max-width: 34rem; }
.read-card .meta { font-size: .85rem; color: var(--gold-200); font-weight: 600; }
.read-card .meta::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.read-card:hover .meta::after { transform: translateX(4px); }

/* ---------- Glossary ---------- */
.gloss-search { position: relative; max-width: 26rem; }
.gloss-search input {
  width: 100%; padding: .75rem 1rem .75rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 1rem;
}
.gloss-search svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); }
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.term { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold-500); border-radius: var(--radius); padding: 1rem 1.15rem; }
.term[hidden] { display: none; }
.term dt { font-family: var(--font-display); font-size: 1.35rem; color: var(--green-900); }
.term dd { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.gloss-empty { color: var(--muted); margin-top: 1rem; }

/* ---------- Quiz ---------- */
.quiz-card { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); padding: 2rem; box-shadow: var(--shadow); max-width: 46rem; margin: 0 auto; }
.quiz-progress { height: 6px; background: var(--green-100); border-radius: 3px; overflow: hidden; margin-bottom: 1.5rem; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold-500); transition: width .4s ease; }
.quiz-q { font-family: var(--font-display); font-size: 1.7rem; color: var(--green-900); margin-bottom: 1.1rem; }
.quiz-opts { display: grid; gap: .6rem; }
.quiz-opts button {
  text-align: left; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); font-weight: 600; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.quiz-opts button:hover:not(:disabled) { border-color: var(--gold-500); }
.quiz-opts button.picked { border-color: var(--gold-500); background: #fbf3df; box-shadow: inset 0 0 0 1px var(--gold-500); }
.quiz-next:disabled { opacity: .5; cursor: not-allowed; }
.quiz-nav { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.quiz-review { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; counter-reset: rv; }
.quiz-review li { border: 1px solid var(--line); border-left: 4px solid var(--green-800); border-radius: var(--radius); padding: .9rem 1rem; background: var(--cream); }
.quiz-review li.no { border-left-color: #b84a4a; }
.quiz-review p { margin: 0 0 .3rem; }
.quiz-review .rq { font-weight: 700; color: var(--green-900); }
.quiz-review .re { color: var(--muted); margin: 0; }
.quiz-review .tag { font-weight: 700; color: var(--green-800); margin-right: .35rem; }
.quiz-review li.no .tag { color: #9b3434; }
.quiz-opts button.right { background: #e3f3e8; border-color: var(--green-800); color: var(--green-900); }
.quiz-opts button.wrong { background: #fbeaea; border-color: #b84a4a; color: #7a2323; }
.quiz-explain { margin-top: 1rem; color: var(--muted); min-height: 1.6em; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; gap: 1rem; }
.quiz-score { font-weight: 700; color: var(--gold-600); }
.quiz-done { text-align: center; }
.quiz-done .big { font-family: var(--font-display); font-size: 3.5rem; color: var(--green-800); line-height: 1; }

/* ---------- Contribute band ---------- */
.contribute { background: linear-gradient(120deg, var(--gold-200), #f6edd4); border-top: 1px solid var(--line); }
.contribute .inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 3rem 0; }
.contribute h2 { margin: 0 0 .3rem; font-size: 2rem; }
.contribute p { margin: 0; color: var(--ink); }

/* ---------- Video lightbox ---------- */
.video-dialog { width: min(960px, 94vw); padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible; }
.video-dialog::backdrop { background: rgba(4,25,14,.85); backdrop-filter: blur(3px); }
.video-dialog .frame { aspect-ratio: 16/9; }
.video-dialog iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-dialog .close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--gold-500); color: var(--green-900); font-size: 1.4rem; line-height: 1; font-weight: 700;
}
.video-dialog .cap { color: #fff; padding: .75rem 1rem; background: var(--green-900); font-weight: 600; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .feature-card { grid-template-columns: 1fr; }
  .read-grid { grid-template-columns: 1fr; }
  .read-card.big { min-height: 360px; }
}
@media (max-width: 575.98px) {
  .dyk-inner { grid-template-columns: 1fr; gap: .5rem; }
  .quiz-card { padding: 1.4rem; }
  .quiz-q { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .play-btn, .talk { animation: none; }
  .dyk-fact { transition: none; }
}

/* ---------- Home page teaser (index.html) ---------- */
.hub-teaser { background: var(--green-900); color: #fff; }
.hub-teaser .section-title, .hub-teaser h3 { color: #fff; }
.hub-teaser .eyebrow { color: var(--gold-200); }
.hub-teaser p { color: rgba(255,255,255,.82); }
.hub-teaser .teaser-links { list-style: none; padding: 0; margin: 1.5rem 0; }
.hub-teaser .teaser-links li { border-top: 1px solid rgba(239,225,189,.25); }
.hub-teaser .teaser-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; color: #fff; text-decoration: none; font-weight: 600; }
.hub-teaser .teaser-links a span { color: var(--gold-200); font-weight: 400; font-size: .9rem; white-space: nowrap; }
.hub-teaser .teaser-links a:hover { color: var(--gold-200); }
.hub-teaser .player { border-radius: calc(var(--radius) * 2); overflow: hidden; box-shadow: 0 28px 60px -30px rgba(0,0,0,.7); }

/* ---------- YouTube links ---------- */
.yt-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; align-self: flex-start;
  font-weight: 700; font-size: .9rem; text-decoration: none; color: #c4302b;
}
.yt-link svg, .yt-channel svg { width: 20px; height: 20px; fill: currentColor; }
.yt-link:hover { color: var(--green-900); }
.yt-link.pending { color: var(--muted); pointer-events: none; font-weight: 600; }
.yt-link.pending::after { content: "\00a0\00b7\00a0coming soon"; font-weight: 400; }
.yt-channel {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: var(--radius);
  background: #c4302b; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none;
}
.yt-channel:hover { background: #a3241f; color: #fff; }

/* ---------- Convention sessions (talks grouped as per the programme) ---------- */
.session-list { display: flex; flex-direction: column; gap: 3rem; margin-top: 1.75rem; }
.session-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.session-no {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  width: 74px; height: 74px; border-radius: 50%; text-align: center; line-height: 1; padding-top: .1rem;
  background: var(--green-900); color: var(--gold-200); font-size: .55rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.session-no b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: .9; letter-spacing: 0; color: var(--gold-500);
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.session-day { margin: 0 0 .15rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); }
.session-head h3 { margin: 0 0 .35rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.session-focus { margin: 0; color: var(--muted); font-size: .95rem; max-width: 62rem; }
.session-focus strong { color: var(--green-800); }
.session-panel { margin: 1.1rem 0 0; padding: .8rem 1rem; background: var(--gold-200); border-radius: 6px; font-size: .9rem; color: var(--green-900); }
.session-panel span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-right: .35rem; color: var(--green-800); }
@media (max-width: 575px) {
  .session-head { gap: .9rem; }
  .session-no { width: 58px; height: 58px; font-size: .48rem; }
  .session-no b { font-size: 1.5rem; }
}

/* ---------- Talks with a presentation (data-pdf) ---------- */
.talk.has-pdf .talk-poster { cursor: pointer; }
.talk.has-pdf .talk-play {
  display: grid; width: 40px; height: 40px; left: auto; top: .7rem; right: .8rem; transform: none;
}
.talk.has-pdf .talk-play svg { width: 20px; height: 20px; margin-left: 0; }
.talk.has-pdf:hover .talk-play { transform: scale(1.08); }
.talk.has-pdf .talk-soon { color: #fff; }
.pdf-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .9rem; align-self: flex-start;
  font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--green-800);
}
.pdf-link svg { width: 20px; height: 20px; fill: currentColor; }
.pdf-link small { font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: .1rem .35rem; border-radius: 3px; background: var(--gold-200); color: var(--green-900); }
.pdf-link:hover { color: var(--green-900); }

/* ---------- Tea grade glossary ---------- */
.grade-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.75rem 0 1.25rem; }
.grade-tools .gloss-search { flex: 1 1 18rem; }
.grade-filter { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.grade-filter button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; padding: .5rem 1rem; border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.grade-filter button:hover { border-color: var(--gold-500); }
.grade-filter button[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.grade-table-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.grade-table { width: 100%; border-collapse: collapse; }
.grade-table thead th { background: var(--green-800); color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: .85rem 1.1rem; text-align: left; }
.grade-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.grade-table .grade-group th { background: var(--green-100); color: var(--green-900); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; padding: .7rem 1.1rem; border-top: 1px solid var(--line); text-align: left; }
.grade-table .grade-group.orthodox th { background: #f6edd6; }
.grade-table .g-cat { color: var(--muted); font-size: .9rem; white-space: nowrap; width: 11rem; }
.grade-table .g-abbr { font-weight: 700; color: var(--green-800); white-space: nowrap; width: 12rem; }
.grade-table .g-desc { color: var(--ink); }
.grade-table .g-desc strong { color: var(--green-900); }
.grade-table tbody .grade-row:hover { background: #fcfaf3; }
@media (max-width: 767.98px) {
  .grade-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grade-table, .grade-table tbody, .grade-table tr, .grade-table td, .grade-table th { display: block; width: auto; }
  .grade-table tbody[hidden], .grade-table tr[hidden] { display: none; }
  .grade-table .g-cat { display: none; }
  .grade-table .grade-row { padding: .8rem 1rem; border-top: 1px solid var(--line); }
  .grade-table .grade-row td { border: 0; padding: 0; white-space: normal; }
  .grade-table .g-abbr { margin-bottom: .2rem; }
}

/* ---------- Quiz switch ---------- */
.quiz-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: 0 auto 1.5rem; }
.quiz-switch button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 600; padding: .55rem 1.2rem; border-radius: 999px; }
.quiz-switch button:hover { border-color: var(--gold-500); }
.quiz-switch button[aria-selected="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
