:root {
  --navy: #081f36;
  --navy-2: #123b62;
  --navy-3: #051525;
  --gold: #c99a36;
  --gold-dark: #8a651c;
  --gold-soft: #f3e4bc;
  --paper: #faf8f3;
  --paper-2: #f3efe6;
  --white: #ffffff;
  --ink: #172033;
  --muted: #5a6879;
  --line: #ded6c7;
  --success: #17623b;
  --attention: #8a4f00;
  --error: #8b1e1e;
  --radius: 12px;
  --shadow: 0 22px 54px rgba(8, 31, 54, .11);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

body::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--gold);
}

button,
select,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy);
  padding: .75rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: var(--white);
  padding: 2.15rem 1rem 2.35rem;
  border-bottom: 4px solid var(--gold);
}

.brand-masthead {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
}

.country-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-logo {
  width: 118px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: 50% 46%;
  background: #575757;
  border: 1px solid rgba(243, 228, 188, .72);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.brand-name {
  margin: 1rem 0 .2rem;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: .1em;
}

h2 {
  margin-bottom: .8rem;
  color: var(--navy);
  font-size: 2.45rem;
  line-height: 1.12;
}

h3 {
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.3;
}

h4 {
  margin-bottom: .55rem;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.3;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: .4rem;
  color: var(--gold-dark);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header .eyebrow {
  color: var(--gold-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 3.25rem;
  align-items: center;
  margin: 3rem auto 1.75rem;
  padding: clamp(2rem, 5vw, 3.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 7px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 720px;
}

.lead {
  max-width: 680px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.18rem;
}

.home-card {
  position: relative;
  min-height: 250px;
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 58px;
  height: 58px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.home-card-number {
  margin-bottom: .15rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: .95;
}

.home-card-label {
  margin-bottom: 1rem;
  color: var(--gold-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
}

.button,
.listen-button {
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .9rem 1.2rem;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.button.primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 10px 20px rgba(14, 42, 71, .16);
}

.button.primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.button.secondary,
.listen-button {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gold);
}

.button.secondary:hover,
.listen-button:hover {
  background: #fff9ec;
  border-color: var(--gold-dark);
}

.button.danger {
  color: #7f231c;
  background: var(--white);
  border-color: #b84a40;
}

.button.danger:hover {
  color: var(--white);
  background: #8f2f27;
  border-color: #8f2f27;
}

.button:hover,
.listen-button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.listen-button:focus-visible,
.choice:focus-visible,
.study-jump select:focus-visible,
.vocabulary-term:focus-visible,
.vocabulary-close:focus-visible {
  outline: 4px solid var(--gold-soft);
  outline-offset: 3px;
}

.button:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.listen-button {
  min-height: 46px;
  padding: .75rem 1rem;
}

.listen-button.small {
  min-height: 42px;
  margin-top: .5rem;
  padding: .6rem .85rem;
}

.audio-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem 1rem;
  margin: .75rem 0 .25rem;
}

.speed-control {
  display: grid;
  gap: .3rem;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 800;
}

.speed-control select {
  min-width: 170px;
  min-height: 46px;
  padding: .55rem 2.3rem .55rem .8rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
}

.speed-control select:focus-visible {
  outline: 4px solid var(--gold-soft);
  outline-offset: 3px;
}

.audio-status {
  min-height: 1.6rem;
  margin: .3rem 0 .8rem;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.notice {
  margin: 1.25rem 0 2rem;
  padding: 1rem 1.15rem;
  color: #344257;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
}

.panel {
  max-width: 940px;
  margin: 3rem auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.panel-header h2 {
  margin-bottom: 0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: .45rem .85rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.progress {
  height: .65rem;
  margin: 1rem 0 1.35rem;
  overflow: hidden;
  background: #e8e0d2;
  border-radius: 999px;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
}

.category {
  margin-bottom: .8rem;
  color: var(--muted);
  font-weight: 800;
}

.warning {
  margin: 1rem 0;
  padding: .9rem 1rem;
  color: var(--attention);
  background: #fff8e7;
  border: 1px solid #e6bd68;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  font-weight: 800;
}

.question-text {
  margin: 1rem 0 1.25rem;
  padding: 1.2rem 1.3rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: var(--radius);
}

.choices {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-height: 64px;
  gap: .85rem;
  padding: 1rem 1.05rem;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.choice:hover {
  background: #fffaf0;
  border-color: var(--gold);
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin-top: .25rem;
  accent-color: var(--navy);
}

.choice span {
  display: block;
  font-weight: 650;
}

.choice.selected {
  background: #f2f6fa;
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.helper-text {
  margin: 1rem 0 1.25rem;
  color: var(--muted);
}

.study-panel {
  max-width: 980px;
}

.listening-panel {
  max-width: 920px;
}

.listening-stage {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.listening-audio-controls {
  margin-top: 0;
}

.listen-button.listening-primary {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 10px 20px rgba(8, 31, 54, .14);
}

.listen-button.listening-primary:hover {
  color: var(--white);
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0;
}

.listening-reveal {
  margin-top: 1rem;
  padding: 1.3rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: var(--radius);
}

.listening-reveal.answer-reveal {
  border-left-color: var(--gold);
}

.listening-reveal h3 {
  margin-bottom: 0;
}

.reveal-label {
  margin-bottom: .45rem;
  color: var(--gold-dark);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#listening-answers {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

#listening-answers li + li {
  margin-top: .35rem;
}

.listening-vocabulary-card {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.listening-vocabulary-card h3 {
  margin-bottom: .2rem;
  font-size: 1.25rem;
}

.listening-vocabulary-card > p {
  margin-bottom: .8rem;
  color: var(--muted);
}

.vocabulary-terms {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.vocabulary-term {
  min-height: 44px;
  padding: .55rem .85rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: .2em;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.vocabulary-term:hover {
  background: #fff9ec;
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}

.vocabulary-dialog {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(5, 21, 37, .32);
}

.vocabulary-dialog::backdrop {
  background: rgba(5, 21, 37, .66);
}

.vocabulary-dialog-content {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.vocabulary-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vocabulary-dialog-header .eyebrow {
  margin-bottom: 0;
}

.vocabulary-close {
  min-height: 44px;
  padding: .55rem .9rem;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.vocabulary-close:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.vocabulary-dialog h2 {
  margin: 1rem 0 .5rem;
}

.vocabulary-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.vocabulary-detail {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.vocabulary-detail dt {
  margin-bottom: .25rem;
  color: var(--gold-dark);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vocabulary-detail dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.listening-panel .nav-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.study-panel .nav-actions {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

#study-home {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
  box-shadow: 0 8px 18px rgba(8, 31, 54, .08);
}

#study-home:hover {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

#study-start-quiz {
  color: var(--navy-3);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(138, 101, 28, .2);
}

#study-start-quiz:hover {
  color: var(--navy-3);
  background: var(--gold-soft);
  border-color: var(--gold-dark);
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.study-grid article,
.vocabulary-card,
.missed-card {
  padding: 1rem 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

.study-grid article {
  padding: 1rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.study-jump {
  display: grid;
  gap: .35rem;
  color: var(--navy);
  font-weight: 800;
}

.study-jump select {
  min-width: 8rem;
  min-height: 46px;
  padding: .45rem .55rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

#study-answers {
  padding-left: 1.25rem;
}

#study-answers li + li {
  margin-top: .35rem;
}

#study-vocabulary {
  display: grid;
  gap: .75rem;
  margin-bottom: 0;
}

#study-vocabulary dt {
  color: var(--navy);
  font-weight: 800;
}

#study-vocabulary .vocabulary-term {
  justify-self: start;
}

#study-vocabulary dd {
  margin-left: 0;
  color: var(--muted);
}

.study-progress-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 1.25rem;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.study-progress-actions h4,
.study-progress-actions p {
  margin-bottom: .25rem;
}

.study-progress-actions > div > p {
  color: var(--muted);
}

.study-mark-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem;
}

.progress-mark-button {
  min-height: 46px;
  padding: .7rem 1rem;
}

.progress-mark-button.selected,
.progress-mark-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.progress-save-status {
  grid-column: 1 / -1;
  min-height: 1.35rem;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.results-panel {
  max-width: 860px;
}

.result-status {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: .2rem 0 1rem;
  padding: .55rem .95rem;
  color: var(--white);
  background: var(--success);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1.18rem;
}

.result-status.needs-practice {
  background: var(--attention);
}

.result-message {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0;
}

.result-grid div {
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-grid span {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.result-grid small {
  color: var(--muted);
  font-weight: 800;
}

.missed-list {
  display: grid;
  gap: 1rem;
}

.missed-card {
  padding: 1.15rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.missed-card h3 {
  font-size: 1.3rem;
}

.answer-label {
  color: var(--navy);
  font-weight: 800;
}

.interview-panel,
.interview-results-panel {
  max-width: 940px;
}

.interview-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
}

.interview-counts span {
  padding: .45rem .7rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}

.interview-counts strong {
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.practice-disclaimer {
  margin: 1rem 0 1.35rem;
  padding: 1rem 1.1rem;
  color: var(--navy);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.interview-official-number {
  margin: -.55rem 0 1rem;
  color: var(--gold-dark);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.interview-question-card {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  border-radius: var(--radius);
}

.interview-question-card .question-text {
  margin: .35rem 0 1rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.interview-prompt {
  margin-bottom: 1rem;
  color: var(--muted);
}

.interview-answer-card {
  margin-top: 1.2rem;
  padding: 1.25rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
}

.interview-answer-card ul {
  margin-top: 0;
}

.interview-self-mark {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.interview-rating-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.rating-button {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.rating-button.correct {
  border-color: var(--success);
}

.rating-button.almost {
  border-color: var(--gold-dark);
}

.rating-button.practice {
  border-color: var(--error);
}

.rating-button.selected,
.rating-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.interview-needs-review {
  margin: 1.5rem 0;
}

.interview-review-item {
  margin-top: .8rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.interview-review-item h4,
.interview-review-item p {
  margin-bottom: .45rem;
}

.interview-rating-label {
  display: inline-flex;
  margin-bottom: .6rem;
  padding: .2rem .55rem;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.interview-rating-label.practice {
  color: var(--white);
  background: var(--error);
}

.interview-progress-card > p {
  margin-bottom: .65rem;
}

.correct-answer,
.student-answer {
  padding: .75rem .9rem;
  border-radius: var(--radius);
}

.correct-answer {
  background: #f1f8f4;
  border-left: 5px solid var(--success);
}

.student-answer {
  background: #fff4f2;
  border-left: 5px solid var(--error);
}

.progress-panel {
  max-width: 980px;
}

.device-only-note {
  max-width: 260px;
  margin: 0;
  padding: .65rem .8rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  font-weight: 800;
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.4rem 0 1.75rem;
}

.progress-summary article {
  min-width: 0;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
}

.progress-summary strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.progress-summary span {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
}

.progress-sections {
  display: grid;
  gap: 1rem;
}

.progress-list-card {
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.progress-list-card h3 {
  margin-bottom: .75rem;
  font-size: 1.3rem;
}

.progress-question-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding-left: 1.4rem;
}

.progress-question-list li {
  padding-left: .2rem;
  color: var(--muted);
}

.progress-question-list li::marker {
  color: var(--gold-dark);
  font-weight: 800;
}

.progress-question-list strong {
  color: var(--navy);
}

.miss-count {
  display: inline-flex;
  margin-left: .5rem;
  padding: .2rem .5rem;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.progress-empty {
  margin: 0;
  color: var(--muted);
}

.progress-actions {
  justify-content: space-between;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.confirm-dialog {
  width: min(92vw, 560px);
  max-height: min(90vh, 560px);
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(8, 29, 52, .28);
}

.confirm-dialog::backdrop {
  background: rgba(8, 29, 52, .72);
}

.confirm-dialog-content {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.confirm-dialog h2 {
  margin-bottom: .75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  margin-top: 3.5rem;
  padding: 2.4rem 1rem;
  text-align: center;
  color: var(--white);
  background: var(--navy);
  border-top: 5px solid var(--gold);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: .04em;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.45rem;
  }

  .hero,
  .study-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem;
  }

  .country-mark {
    font-size: 1.65rem;
    gap: .8rem;
  }

  .home-card {
    min-height: auto;
  }

  .panel-header {
    display: grid;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .progress-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-progress-actions {
    grid-template-columns: 1fr;
  }

  .study-mark-buttons {
    justify-content: flex-start;
  }

  .interview-counts {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 1rem, 1120px);
  }

  h1 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .site-header {
    padding: .9rem .75rem;
  }

  .country-mark {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .5rem;
    font-size: 1.15rem;
  }

  .brand-logo {
    width: 76px;
    height: 52px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero {
    margin-top: 1rem;
    padding: 1.25rem;
  }

  .panel {
    padding: 1.15rem;
  }

  .button,
  .listen-button {
    width: 100%;
  }

  .hero-actions,
  .nav-actions,
  .audio-controls,
  .reveal-actions {
    display: grid;
  }

  .speed-control select {
    width: 100%;
  }

  .vocabulary-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .vocabulary-terms {
    display: grid;
  }

  .vocabulary-term {
    width: 100%;
  }

  .progress-summary {
    grid-template-columns: 1fr;
  }

  .study-mark-buttons {
    display: grid;
  }

  .interview-rating-buttons {
    grid-template-columns: 1fr;
  }

  .miss-count {
    display: flex;
    width: fit-content;
    margin: .4rem 0 0;
  }

  .confirm-dialog {
    width: calc(100% - 1rem);
  }
}
