:root {
  --ink: #071b26;
  --ink-2: #0d2a36;
  --paper: #f7f1e5;
  --paper-2: #efe6d5;
  --white: #fffdf8;
  --teal: #1bb6aa;
  --teal-dark: #087b78;
  --coral: #f06c4f;
  --yellow: #f5c451;
  --blue: #7bd4e7;
  --muted: #68767a;
  --line: rgba(7, 27, 38, 0.14);
  --shadow: 0 18px 50px rgba(4, 20, 29, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: min(1240px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 7% 3%, rgba(27, 182, 170, 0.11), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.idiom-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 27, 38, 0.96);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--shell);
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.brand-mark span {
  transform: translateY(-3px);
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: rgba(255, 253, 248, 0.64);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.nav-button {
  min-height: 38px;
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.89rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-button:hover {
  color: var(--white);
}

.nav-button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

.nav-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.72rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view {
  animation: view-in 300ms ease both;
}

.view[hidden] {
  display: none !important;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.explore-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: end;
  gap: clamp(30px, 6vw, 88px);
  padding-top: clamp(36px, 6vw, 72px);
  padding-bottom: 30px;
}

.explore-intro::before {
  content: "“”";
  position: absolute;
  z-index: -1;
  top: 12px;
  left: -18px;
  color: rgba(240, 108, 79, 0.09);
  font-family: Georgia, serif;
  font-size: clamp(9rem, 20vw, 17rem);
  font-weight: 900;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-copy h1,
.page-title h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.intro-copy h1 span {
  position: relative;
  display: inline-block;
  color: var(--coral);
  font-style: italic;
}

.intro-copy h1 span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 5px;
  height: 8px;
  border-top: 3px solid var(--yellow);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.intro-note {
  max-width: 500px;
  margin: 22px 0 0;
  color: #4f6166;
  font-size: 1.05rem;
}

.search-panel {
  position: relative;
  padding: 11px;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 22px 50px rgba(4, 20, 29, 0.18);
}

.search-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10px;
  bottom: -10px;
  width: 74%;
  height: 70%;
  border-radius: 26px;
  background: var(--teal);
}

.search-box {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border-radius: 15px;
  background: var(--white);
}

.search-box svg {
  width: 23px;
  fill: none;
  stroke: var(--teal-dark);
  stroke-width: 2;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.08rem;
}

.search-box input::placeholder {
  color: #879194;
}

kbd {
  min-width: 30px;
  padding: 4px 8px;
  border: 1px solid #d7d5cf;
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #f3f0e8;
  color: #657276;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 6px 1px;
  color: rgba(255, 253, 248, 0.5);
  font-size: 0.78rem;
}

.search-suggestions button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 253, 248, 0.84);
}

.context-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.context-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.context-label > span:last-child {
  display: grid;
  line-height: 1.2;
}

.context-label strong {
  font-size: 0.88rem;
}

.context-label small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
}

.context-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--yellow);
  font-size: 1.4rem;
  font-weight: 900;
}

.chip-scroll {
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-scroll::-webkit-scrollbar {
  display: none;
}

.context-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: #44565b;
  font-size: 0.86rem;
  font-weight: 750;
  transition: 160ms ease;
}

.context-chip:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.context-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.explore-layout {
  padding-block: 34px 78px;
}

.spotlight {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(280px, 0.83fr) minmax(0, 1.17fr);
  overflow: hidden;
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.spotlight-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #0f5362;
}

.spotlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-stamp {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7, 27, 38, 0.86);
  color: var(--yellow);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.spotlight-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 68px);
}

.spotlight-copy::before {
  content: "“";
  position: absolute;
  top: -12px;
  right: 28px;
  color: rgba(245, 196, 81, 0.13);
  font-family: Georgia, serif;
  font-size: 13rem;
  line-height: 1;
}

.spotlight-copy .eyebrow {
  color: var(--yellow);
}

.spotlight-copy h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.spotlight-definition {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 1.08rem;
}

.spotlight-example {
  max-width: 650px;
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--coral);
  color: var(--white);
  font-style: italic;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.primary-button,
.secondary-button,
.action-button,
.load-more {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.primary-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover {
  background: var(--ink);
  color: var(--white);
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.action-button:hover,
.action-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--ink);
}

.action-button svg,
.card-icon-button svg,
.dialog-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-button.active .bookmark-fill,
.card-icon-button.active .bookmark-fill,
.dialog-action.active .bookmark-fill {
  fill: currentColor;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.flashcard-toolbar h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.collection-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.select-wrap select {
  min-height: 42px;
  padding: 8px 36px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.idiom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.idiom-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 7px 22px rgba(4, 20, 29, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.idiom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 123, 120, 0.45);
  box-shadow: 0 18px 34px rgba(4, 20, 29, 0.09);
}

.idiom-card.has-image {
  min-height: 380px;
}

.card-image {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: var(--ink-2);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.idiom-card:hover .card-image img {
  transform: scale(1.035);
}

.card-level {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(7, 27, 38, 0.84);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.idiom-card:not(.has-image) .card-body::before {
  content: attr(data-index);
  position: absolute;
  top: 12px;
  right: 16px;
  color: rgba(7, 27, 38, 0.055);
  font-family: Georgia, serif;
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
}

.card-situation {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(27, 182, 170, 0.1);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body h3 {
  position: relative;
  z-index: 1;
  margin: 0 40px 9px 0;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.card-body p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #536469;
  font-size: 0.94rem;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.open-entry {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
}

.open-entry:hover {
  border-bottom-color: var(--ink);
}

.card-actions {
  display: flex;
  gap: 7px;
}

.card-icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #627075;
}

.card-icon-button:hover,
.card-icon-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.load-more {
  display: block;
  margin: 28px auto 0;
  border: 1px solid var(--ink);
  background: transparent;
}

.load-more:hover {
  background: var(--ink);
  color: var(--white);
}

.empty-state {
  padding: 60px 20px;
  border: 1px dashed rgba(7, 27, 38, 0.25);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
}

.empty-state h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.empty-state p {
  margin: 5px 0 22px;
  color: var(--muted);
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(48px, 7vw, 88px) 0 40px;
}

.page-title h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.page-title > div:first-child > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.compact-title {
  align-items: center;
}

.session-score {
  min-width: 155px;
  padding: 17px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}

.session-score > span {
  display: block;
  color: rgba(255, 253, 248, 0.58);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.session-score strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-bottom: 88px;
}

.quiz-card {
  min-height: 540px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.quiz-number,
.mini-label {
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz-dots {
  display: flex;
  gap: 6px;
}

.quiz-dots span {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.quiz-dots span.done {
  background: var(--teal);
}

.quiz-dots span.current {
  background: var(--yellow);
}

.quiz-context {
  max-width: 700px;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quiz-card h2 {
  max-width: 780px;
  margin: 0 0 32px;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-button {
  min-height: 66px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  font-weight: 750;
  text-align: left;
  transition: 160ms ease;
}

.answer-button:hover:not(:disabled) {
  border-color: var(--blue);
  background: rgba(123, 212, 231, 0.11);
  transform: translateY(-1px);
}

.answer-button.correct {
  border-color: var(--teal);
  background: rgba(27, 182, 170, 0.2);
}

.answer-button.wrong {
  border-color: var(--coral);
  background: rgba(240, 108, 79, 0.17);
}

.answer-button:disabled {
  cursor: default;
}

.quiz-feedback {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 4px solid var(--teal);
  border-radius: 4px 12px 12px 4px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 253, 248, 0.82);
}

.quiz-feedback.wrong {
  border-left-color: var(--coral);
}

.quiz-feedback strong {
  color: var(--white);
}

.next-button {
  margin-top: 18px;
}

.practice-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.method-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.method-card.coral-card {
  background: var(--coral);
  color: var(--ink);
}

.coral-card .mini-label {
  color: var(--ink);
}

.method-card h3 {
  margin: 10px 0 12px;
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.08;
}

.method-card p {
  margin: 0;
}

.method-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.method-card li + li {
  margin-top: 9px;
}

.mastery-card {
  width: 260px;
  padding: 20px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
}

.mastery-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mastery-card span,
.mastery-card small {
  color: rgba(255, 253, 248, 0.64);
  font-size: 0.78rem;
}

.mastery-card strong {
  color: var(--yellow);
  font-size: 1.3rem;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  margin: 11px 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--teal);
  transition: width 300ms ease;
}

.deck-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 28px;
  padding-bottom: 88px;
}

.flashcard-area,
.saved-list-section {
  min-width: 0;
}

.flashcard-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.text-button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--teal-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.flashcard {
  position: relative;
  width: 100%;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 44px;
  border: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 196, 81, 0.22), transparent 9rem),
    radial-gradient(circle at 88% 90%, rgba(27, 182, 170, 0.19), transparent 12rem),
    var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.flashcard::before,
.flashcard::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.flashcard::before { top: -55px; right: -35px; }
.flashcard::after { bottom: -70px; left: -20px; width: 170px; height: 170px; }

.flash-label {
  margin-bottom: 17px;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flashcard strong {
  max-width: 520px;
  font-family: Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.flash-meaning {
  max-width: 520px;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 1.04rem;
}

.flash-hint {
  position: absolute;
  bottom: 22px;
  color: rgba(255, 253, 248, 0.46);
  font-size: 0.76rem;
}

.flash-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.round-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-weight: 900;
}

.round-button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--white);
}

.round-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.8);
}

.saved-row:hover {
  border-color: rgba(8, 123, 120, 0.5);
}

.saved-row-main {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.saved-row-main strong,
.saved-row-main span {
  display: block;
}

.saved-row-main strong {
  font-family: Georgia, serif;
  font-size: 1.16rem;
}

.saved-row-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.learned-toggle {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.learned-toggle.active {
  border-color: var(--teal);
  background: rgba(27, 182, 170, 0.12);
  color: var(--teal-dark);
}

.saved-empty {
  padding: 42px 22px;
  border: 1px dashed rgba(7, 27, 38, 0.25);
  border-radius: var(--radius-md);
  text-align: center;
}

.saved-empty h3 {
  margin: 0 0 5px;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.saved-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.guide-title {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-block: 34px 88px;
}

.guide-lead,
.guide-card {
  position: relative;
  min-width: 0;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.guide-lead {
  grid-row: span 2;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
}

.guide-lead::after {
  content: "“”";
  position: absolute;
  right: -8px;
  bottom: -36px;
  color: rgba(245, 196, 81, 0.1);
  font-family: Georgia, serif;
  font-size: 11rem;
  font-weight: 900;
}

.guide-lead .eyebrow {
  color: var(--yellow);
}

.chapter-number {
  position: absolute;
  top: 22px;
  right: 26px;
  color: rgba(7, 27, 38, 0.12);
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
}

.guide-lead .chapter-number {
  color: rgba(255, 255, 255, 0.13);
}

.guide-lead h2,
.guide-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.guide-lead > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 253, 248, 0.73);
}

.literal-figurative {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.literal-figurative > div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.literal-figurative span {
  color: rgba(255, 253, 248, 0.52);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.literal-figurative strong {
  margin-top: 5px;
  font-size: 0.93rem;
}

.literal-figurative > span {
  color: var(--yellow);
  font-size: 1.25rem;
}

.big-steps {
  display: grid;
  gap: 13px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.big-steps li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  counter-increment: steps;
}

.big-steps b::before {
  content: counter(steps) ". ";
  color: var(--coral);
}

.big-steps span {
  color: var(--muted);
}

.guide-card.teal-card {
  background: var(--teal);
}

.teal-card .eyebrow,
.teal-card .chapter-number {
  color: rgba(7, 27, 38, 0.55);
}

.guide-card.yellow-card {
  background: var(--yellow);
}

.yellow-card .eyebrow,
.yellow-card .chapter-number {
  color: rgba(7, 27, 38, 0.55);
}

.question-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.question-list li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(7, 27, 38, 0.17);
}

.question-list li span {
  font-weight: 900;
}

.full-width {
  grid-column: 1 / -1;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.anatomy-grid > div {
  padding: 18px;
  border-radius: 13px;
  background: var(--paper);
}

.anatomy-grid strong,
.anatomy-grid span {
  display: block;
}

.anatomy-grid strong {
  margin-bottom: 5px;
}

.anatomy-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.practice-plan {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 36px;
  background: var(--coral);
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.week-strip span {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(7, 27, 38, 0.15);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.35);
  font-size: 0.78rem;
}

.week-strip b {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.print-glossary {
  display: none;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
}

.site-footer .shell {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark.mini {
  width: 32px;
  height: 28px;
  border-radius: 8px 8px 8px 3px;
  box-shadow: 3px 3px 0 var(--coral);
}

.brand-mark.mini::after {
  bottom: -4px;
  width: 8px;
  height: 8px;
}

.brand-mark.mini span {
  font-size: 0.7rem;
}

.site-footer p {
  color: rgba(255, 253, 248, 0.6);
  font-size: 0.86rem;
}

.site-footer .text-button {
  color: var(--yellow);
}

.idiom-dialog {
  width: min(920px, calc(100% - 30px));
  max-height: min(88vh, 880px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.idiom-dialog::backdrop {
  background: rgba(2, 12, 18, 0.75);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: sticky;
  z-index: 3;
  top: 16px;
  float: right;
  width: 42px;
  height: 42px;
  display: grid;
  margin: 16px 16px -58px 0;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(7, 27, 38, 0.84);
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  backdrop-filter: blur(7px);
}

.dialog-hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  background: var(--ink);
  color: var(--white);
}

.dialog-hero.no-image {
  grid-template-columns: 1fr;
}

.dialog-image {
  min-height: 280px;
  background: var(--ink-2);
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.dialog-title .eyebrow {
  color: var(--yellow);
}

.dialog-title h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.dialog-title p {
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 1.04rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dialog-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.dialog-action:hover,
.dialog-action.active {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--ink);
}

.dialog-body {
  padding: clamp(28px, 5vw, 52px);
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entry-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.entry-block.example-block {
  grid-column: 1 / -1;
  background: var(--teal);
}

.entry-block.warning-block {
  border-color: rgba(240, 108, 79, 0.35);
  background: rgba(240, 108, 79, 0.08);
}

.entry-block > span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.entry-block.warning-block > span {
  color: #b3432f;
}

.entry-block p {
  margin: 0;
}

.example-block p {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.entry-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: #536469;
  font-size: 0.76rem;
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root { --shell: min(100% - 28px, 900px); }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 11px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .nav-button {
    flex: 0 0 auto;
  }

  .print-button {
    grid-column: 2;
    grid-row: 1;
  }

  .explore-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .search-panel {
    width: min(100%, 700px);
  }

  .context-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .practice-layout,
  .deck-layout {
    grid-template-columns: 1fr;
  }

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

  .practice-plan {
    grid-template-columns: 1fr;
  }

  .site-footer .shell {
    flex-wrap: wrap;
    padding-block: 28px;
  }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 24px); }

  .site-header {
    position: relative;
  }

  .brand-copy small {
    display: none;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .nav-button {
    padding-inline: 13px;
  }

  .explore-intro {
    padding-top: 36px;
  }

  .intro-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .search-box {
    min-height: 64px;
  }

  kbd {
    display: none;
  }

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

  .spotlight-visual {
    min-height: 270px;
  }

  .spotlight-copy {
    padding: 30px 24px 34px;
  }

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

  .idiom-card {
    min-height: 230px;
  }

  .idiom-card.has-image {
    min-height: 390px;
  }

  .section-heading,
  .page-title,
  .flashcard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title {
    gap: 26px;
  }

  .session-score,
  .mastery-card {
    width: 100%;
  }

  .quiz-card {
    min-height: auto;
    padding: 28px 20px;
  }

  .quiz-topline {
    margin-bottom: 30px;
  }

  .answer-list,
  .practice-aside,
  .guide-grid,
  .entry-grid,
  .anatomy-grid {
    grid-template-columns: 1fr;
  }

  .guide-lead {
    grid-row: auto;
    min-height: 550px;
  }

  .full-width,
  .entry-block.example-block {
    grid-column: auto;
  }

  .literal-figurative {
    grid-template-columns: 1fr;
  }

  .literal-figurative > span {
    transform: rotate(90deg);
    text-align: center;
  }

  .week-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dialog-image {
    min-height: 240px;
  }

  .dialog-title {
    padding: 30px 24px;
  }

  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page { margin: 15mm; }

  body {
    background: white;
    color: black;
    font-size: 10.5pt;
  }

  .site-header,
  .site-footer,
  #exploreView,
  #learnView,
  #playView,
  .confetti,
  .svg-defs,
  #deckView,
  .guide-title .secondary-button,
  .toast,
  .idiom-dialog {
    display: none !important;
  }

  #guideView {
    display: block !important;
    width: 100%;
  }

  .guide-title {
    padding: 0 0 20px;
  }

  .page-title h1 {
    font-size: 30pt;
  }

  .guide-grid {
    display: block;
    padding: 20px 0;
  }

  .guide-lead,
  .guide-card {
    min-height: 0;
    margin-bottom: 12px;
    padding: 20px;
    break-inside: avoid;
    border: 1px solid #bbb;
    background: white !important;
    color: black !important;
  }

  .guide-lead .eyebrow,
  .guide-card .eyebrow,
  .guide-lead > p:not(.eyebrow),
  .big-steps span {
    color: #333 !important;
  }

  .literal-figurative > div,
  .anatomy-grid > div,
  .week-strip span {
    border: 1px solid #bbb;
    background: white;
    color: black;
  }

  .literal-figurative span {
    color: #333;
  }

  .print-glossary {
    display: block;
    page-break-before: always;
  }

  .print-glossary h2 {
    font-family: Georgia, serif;
    font-size: 24pt;
  }

  #printGlossaryGrid {
    columns: 2;
    column-gap: 28px;
  }

  .print-entry {
    break-inside: avoid;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
  }

  .print-entry strong,
  .print-entry span {
    display: block;
  }

  .print-entry strong {
    font-family: Georgia, serif;
    font-size: 12pt;
  }

  .print-entry span {
    color: #444;
  }
}

/* =====================================================================
   Idiom Atlas v2 — all-ages learning layer
   ===================================================================== */
html { font-size: 100%; }
html[data-text="l"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }
body { font-size: 1rem; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
mark { padding: 0 3px; border-radius: 4px; background: rgba(245, 196, 81, 0.55); color: inherit; font-style: normal; font-weight: 700; }
u { text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Illustrations ---------- */
.art-svg, .art-fallback { width: 100%; height: 100%; }
.art-svg svg { display: block; width: 100%; height: 100%; }
.art-fallback { display: grid; place-items: center; background: var(--ink-2); font-size: 4rem; }
img, svg { -webkit-user-drag: none; }

/* ---------- Header tools ---------- */
.header-inner { grid-template-columns: auto 1fr auto; gap: 18px; }
.nav-ico { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.age-switch { display: flex; padding: 4px; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.age-switch button { min-height: 34px; padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 253, 248, 0.72); font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.age-switch button[aria-checked="true"] { background: var(--yellow); color: var(--ink); }
.age-switch button:hover { color: var(--white); }
.age-switch button[aria-checked="true"]:hover { color: var(--ink); }
#textSizeButton span { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; }
#textSizeButton small { font-size: 0.7rem; }

/* ---------- Explore ---------- */
.stat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stat-pills span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.stat-pills b { color: var(--ink); }
.idiom-card { min-height: 0; }
.card-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; padding: 0; border: 0; cursor: pointer; }
.card-image > img, .card-image > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.idiom-card:hover .card-image > .art-svg { transform: scale(1.035); }
.card-status { position: absolute; top: 13px; right: 13px; padding: 5px 9px; border-radius: 999px; font-size: 0.67rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.card-status.inline { position: static; }
.s-new { background: var(--white); color: var(--ink); }
.s-learn { background: var(--blue); color: var(--ink); }
.s-know { background: var(--teal); color: var(--ink); }
.s-master { background: var(--yellow); color: var(--ink); }
.card-body h3 { margin-right: 0; }
.card-body h3 .emoji { font-size: 0.8em; }
.card-situation { margin-bottom: 12px; }

.spotlight-visual > img, .spotlight-visual > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-literal { margin: 0 0 14px; color: rgba(255, 253, 248, 0.7); }
.spotlight-literal span { color: var(--blue); font-weight: 800; }
.reveal-button { width: 100%; max-width: 600px; min-height: 52px; padding: 12px 18px; border: 2px dashed rgba(245, 196, 81, 0.6); border-radius: 14px; background: rgba(245, 196, 81, 0.08); color: var(--yellow); font-weight: 850; text-align: left; }
.reveal-button:hover { background: rgba(245, 196, 81, 0.16); }
.reveal.open .reveal-button { border-style: solid; border-color: transparent; background: transparent; padding: 0; min-height: 0; margin-bottom: 6px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.reveal-body { animation: pop 260ms ease both; }
.spotlight-definition { color: var(--white); font-size: 1.2rem; font-weight: 700; }
.spotlight-example mark { background: rgba(245, 196, 81, 0.3); }

/* ---------- Dialog ---------- */
.dialog-image { position: relative; aspect-ratio: 1; min-height: 0; overflow: hidden; }
.dialog-image > img, .dialog-image > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dialog-caption { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(7, 27, 38, 0.82); color: var(--white); font-size: 0.75rem; font-weight: 800; }
.dialog-caption em { color: var(--yellow); }
.dialog-title { padding: 36px; }
.dialog-title h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lit-real { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin-top: 18px; }
.lit-real > div:not(.arrow) { padding: 14px; border-radius: 14px; }
.lit-real span { display: block; margin-bottom: 5px; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.lit-real p { margin: 0 !important; font-size: 0.95rem !important; line-height: 1.4; }
.lit-real .lit { border: 1px dashed rgba(255, 255, 255, 0.3); color: rgba(255, 253, 248, 0.75); }
.lit-real .lit span { color: var(--blue); }
.lit-real .real { background: var(--yellow); color: var(--ink); }
.lit-real .real p { color: var(--ink) !important; font-weight: 700; }
.lit-real .arrow { display: grid; place-items: center; color: var(--yellow); font-size: 1.4rem; }
.dialog-body .example-block { margin-bottom: 14px; }
.example-block mark { background: rgba(255, 253, 248, 0.6); }
.try-block { grid-column: 1 / -1; background: rgba(123, 212, 231, 0.2); }
.dialog-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; color: var(--muted); font-size: 0.85rem; }

/* ---------- Learn ---------- */
.lesson-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: ls; }
.lesson-steps li { counter-increment: ls; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.lesson-steps li::before { content: counter(ls) " · "; }
.lesson-steps li.current { border-color: var(--ink); background: var(--ink); color: var(--white); }
.lesson-steps li.done { border-color: var(--teal); background: rgba(27, 182, 170, 0.14); color: var(--teal-dark); }
.lesson-shell { padding-bottom: 88px; }
.lesson-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.lesson-bar { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.lesson-bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); transition: width 400ms ease; }
.lesson-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: var(--white); box-shadow: var(--shadow); animation: pop 300ms ease both; }
.lesson-art { position: relative; aspect-ratio: 1; }
.lesson-art > img, .lesson-art > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson-art.small { aspect-ratio: auto; min-height: 100%; }
.lesson-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: clamp(26px, 4vw, 52px); }
.lesson-copy .eyebrow { color: var(--yellow); }
.lesson-copy h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; }
.lesson-copy h3 { margin: 14px 0 12px; font-size: 1.15rem; }
.lesson-copy h3.cloze { font-family: Georgia, serif; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 500; line-height: 1.3; }
.lesson-lead { margin: 0; color: rgba(255, 253, 248, 0.75); }
.lesson-note { margin: 0 0 6px; color: var(--blue); font-weight: 800; }
.lesson-note.good { color: var(--yellow); }
.lesson-example { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--coral); font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }
.lesson-example mark { background: rgba(245, 196, 81, 0.3); }
.lesson-copy .action-row { margin-top: 18px; }
.lesson-copy > .primary-button { align-self: flex-start; margin-top: 18px; }
.lesson-copy > .text-button { align-self: flex-start; margin-top: 14px; color: var(--blue); }
.say-tip { color: rgba(255, 253, 248, 0.6); font-size: 0.86rem; }
.answer-list.single { grid-template-columns: 1fr; }
.answer-button { display: flex; align-items: center; gap: 12px; }
.answer-button kbd { flex: 0 0 auto; min-width: 26px; padding: 2px 6px; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: rgba(255, 253, 248, 0.7); }
.answer-button.correct::after { content: "✓"; margin-left: auto; color: var(--teal); font-size: 1.3rem; font-weight: 900; }
.answer-button.wrong::after { content: "✗"; margin-left: auto; color: var(--coral); font-size: 1.3rem; font-weight: 900; }
.blank { display: inline-block; min-width: 4.5em; border-bottom: 3px solid var(--yellow); color: transparent; line-height: 1; }
.lesson-end { padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); text-align: center; animation: pop 300ms ease both; }
.lesson-end h2 { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }
.lesson-end > p:not(.eyebrow) { max-width: 560px; margin: 22px auto 0; color: var(--muted); }
.lesson-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lesson-trio button { display: flex; flex-direction: column; gap: 4px; overflow: hidden; padding: 0 0 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); text-align: left; }
.lesson-trio button > img, .lesson-trio button > .art-svg { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 8px; }
.lesson-trio b, .lesson-trio small { padding: 0 14px; }
.lesson-trio b { font-family: Georgia, serif; font-size: 1.15rem; }
.lesson-trio small { color: var(--muted); }
.action-row.center { justify-content: center; }

/* ---------- Play ---------- */
.game-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.game-picker button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: left; transition: 160ms ease; }
.game-picker button > span { grid-row: span 2; font-size: 1.6rem; }
.game-picker b { font-size: 0.95rem; }
.game-picker small { color: var(--muted); font-size: 0.75rem; }
.game-picker button:hover { border-color: var(--teal); transform: translateY(-2px); }
.game-picker button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.game-picker button[aria-selected="true"] small { color: rgba(255, 253, 248, 0.6); }
.session-score small { display: block; min-height: 1.2em; color: var(--yellow); font-size: 0.8rem; font-weight: 800; }
.quiz-card { min-height: 0; }
.quiz-topline { margin-bottom: 24px; }
.quiz-dots span.miss { background: var(--coral); }
.quiz-visual { position: relative; width: min(100%, 300px); aspect-ratio: 1; overflow: hidden; margin-bottom: 22px; border-radius: 20px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); animation: pop 300ms ease both; }
.quiz-visual.small { width: 150px; border-radius: 14px; }
.quiz-visual > img, .quiz-visual > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quiz-card h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.quiz-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; animation: pop 240ms ease both; }
.quiz-feedback span { flex: 1 1 260px; }
.mini-listen { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: transparent; color: var(--white); font-size: 0.8rem; font-weight: 800; }
.mini-listen svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result-stars { display: block; margin-bottom: 10px; color: var(--yellow); font-size: 3rem; letter-spacing: 6px; }
.result-stars i { color: rgba(255, 255, 255, 0.15); font-style: normal; }
.result-card h3 { font-size: 1.4rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip-list button { padding: 7px 12px; border: 1px solid var(--ink); border-radius: 999px; background: rgba(255, 253, 248, 0.55); font-weight: 800; }
.result-card p { margin-top: 12px !important; }
.keys-card p { color: var(--muted); font-size: 0.9rem; }
.keys-card kbd { display: inline-block; }
.pairs-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.pairs-col { display: grid; gap: 10px; align-content: start; }
.pairs-col.pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair-word { min-height: 64px; padding: 12px 14px; border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: var(--white); font-family: Georgia, serif; font-size: 1.1rem; text-align: left; transition: 150ms ease; }
.pair-pic { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 3px solid transparent; border-radius: 16px; background: var(--ink-2); transition: 150ms ease; }
.pair-pic > img, .pair-pic > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair-word:hover:not(:disabled), .pair-pic:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-2px); }
.pair-word.selected, .pair-pic.selected { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.25); }
.pair-word.matched, .pair-pic.matched { border-color: var(--teal); opacity: 0.45; cursor: default; }
.pair-pic.matched::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(27, 182, 170, 0.45); color: var(--white); font-size: 3rem; font-weight: 900; }
.shake { animation: shake 420ms ease; border-color: var(--coral) !important; }

/* ---------- Deck ---------- */
.progress-track.stacked { display: flex; height: 10px; }
.progress-track.stacked span { border-radius: 0; }
.p-learn { background: var(--blue) !important; }
.p-know { background: var(--teal) !important; }
.p-master { background: var(--yellow) !important; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; padding: 0; list-style: none; color: rgba(255, 253, 248, 0.7); font-size: 0.76rem; }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }
.legend b { color: var(--white); }
.mastery-card { width: 300px; }
.badges { margin-bottom: 30px; }
.badge-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px; border: 1px dashed rgba(7, 27, 38, 0.2); border-radius: 14px; opacity: 0.6; }
.badge > span { grid-row: span 2; font-size: 1.6rem; filter: grayscale(1); }
.badge b { font-size: 0.86rem; }
.badge small { color: var(--muted); font-size: 0.72rem; line-height: 1.3; }
.badge.on { border-style: solid; border-color: var(--yellow); background: var(--white); opacity: 1; }
.badge.on > span { filter: none; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.seg button { min-height: 32px; padding: 4px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.flashcard { min-height: 400px; padding: 28px; cursor: pointer; user-select: none; }
.flash-inner { position: relative; z-index: 1; width: 100%; }
.flash-front { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 24px; text-align: left; animation: pop 260ms ease both; }
.flash-art { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 18px; }
.flash-art > img, .flash-art > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flash-front > div:last-child, .flash-back, .flash-empty { display: flex; flex-direction: column; }
.flash-back { align-items: center; animation: flip-in 300ms ease both; }
.flash-back strong { font-size: clamp(1.6rem, 3.6vw, 2.5rem) !important; }
.flash-back p { max-width: 520px; margin: 20px 0 0; color: rgba(255, 253, 248, 0.78); font-family: Georgia, serif; font-size: 1.15rem; font-style: italic; }
.flash-back mark { background: rgba(245, 196, 81, 0.3); }
.flash-hint { position: static; margin-top: 18px; }
.flash-empty strong { font-size: 2rem !important; }
.flash-empty span { margin-top: 10px; color: rgba(255, 253, 248, 0.7); }
.flash-controls { flex-wrap: wrap; gap: 10px; }
.grade-button { min-height: 44px; padding: 8px 16px; border: 2px solid; border-radius: 999px; background: var(--white); font-weight: 850; }
.grade-button.again { border-color: var(--coral); color: #b3432f; }
.grade-button.good { border-color: var(--teal); color: var(--teal-dark); }
.grade-button.again:hover:not(:disabled) { background: var(--coral); color: var(--ink); }
.grade-button.good:hover:not(:disabled) { background: var(--teal); color: var(--ink); }
.grade-button:disabled { opacity: 0.4; cursor: default; }
.shuffle { display: block; margin: 14px auto 0; }
.saved-row-main { display: flex; align-items: center; gap: 12px; }
.saved-row-main > span:last-child { min-width: 0; }
.saved-thumb { position: relative; flex: 0 0 56px; width: 56px; height: 56px; overflow: hidden; border-radius: 12px; }
.saved-thumb > img, .saved-thumb > .art-svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reset-button { margin-top: 22px; color: var(--muted); }

/* ---------- Guide additions ---------- */
.age-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.age-grid > div { padding: 18px; border-radius: 13px; background: var(--paper); }
.age-grid strong, .age-grid span { display: block; }
.age-grid strong { margin-bottom: 6px; font-size: 1.1rem; }
.age-grid span { color: var(--muted); font-size: 0.9rem; }
.ages-card h2 { font-size: clamp(1.5rem, 3vw, 2.3rem) !important; }

/* ---------- Footer ---------- */
.version-tag { padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: transparent; color: rgba(255, 253, 248, 0.55); font-size: 0.75rem; font-weight: 800; }
.dev-credit { flex-basis: 100%; margin: 0 0 18px; text-align: right; animation: pop 260ms ease both; }
.dev-credit a { color: var(--yellow); }
.site-footer .shell { flex-wrap: wrap; }
.noscript { padding: 20px; text-align: center; }

/* ---------- Celebration ---------- */
.confetti { position: fixed; z-index: 200; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation-name: fall; animation-timing-function: cubic-bezier(.3, .6, .5, 1); animation-fill-mode: forwards; }
@keyframes fall { to { top: 105%; transform: translateX(40px) rotate(540deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes flip-in { from { opacity: 0; transform: rotateX(70deg); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

/* ---------- Kids mode: bigger, rounder, friendlier ---------- */
html[data-age="kids"] body { font-family: "Trebuchet MS", "Avenir Next", Avenir, "Segoe UI", sans-serif; }
html[data-age="kids"] .answer-button { min-height: 76px; font-size: 1.1rem; border-radius: 20px; }
html[data-age="kids"] .idiom-card { border-radius: 24px; }
html[data-age="kids"] .card-body p { font-size: 1.02rem; color: var(--ink); }
html[data-age="kids"] .card-situation, html[data-age="kids"] .card-level { display: none; }
html[data-age="kids"] .primary-button, html[data-age="kids"] .secondary-button { min-height: 52px; padding-inline: 22px; font-size: 1.05rem; }
html[data-age="kids"] .keys-card { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .brand-copy small { display: none; }
  .nav-button { padding-inline: 11px; }
  .game-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .lesson-card { grid-template-columns: 1fr; }
  .lesson-art { aspect-ratio: 16 / 10; }
  .lesson-art.small { aspect-ratio: 16 / 9; min-height: 0; }
  .flash-front { grid-template-columns: 1fr; text-align: center; }
  .flash-art { width: min(240px, 100%); margin: 0 auto; }
}
@media (max-width: 720px) {
  body { padding-bottom: 76px; }
  .site-header { position: sticky; }
  .header-inner { min-height: 60px; }
  .brand-copy strong { font-size: 1rem; }
  .print-button { display: none; }
  .age-switch button { padding: 5px 9px; font-size: 0; }
  .age-switch button span { font-size: 1.15rem; }
  .main-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; width: 100%; justify-content: space-around; gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; background: rgba(7, 27, 38, 0.97); overflow: visible; }
  .nav-button { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 52px; padding: 4px 2px; border-radius: 12px; font-size: 0.68rem; }
  .nav-button.active { background: rgba(255, 255, 255, 0.1); color: var(--yellow); box-shadow: none; }
  .nav-ico { display: block; font-size: 1.25rem; line-height: 1.2; }
  .nav-count { position: absolute; top: 2px; right: 18%; min-width: 17px; height: 17px; margin: 0; font-size: 0.62rem; }
  .game-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-picker button { padding: 11px; }
  .game-picker button:first-child { grid-column: 1 / -1; }
  .lit-real { grid-template-columns: 1fr; }
  .lit-real .arrow { transform: rotate(90deg); }
  .lesson-steps { flex-wrap: wrap; }
  .lesson-trio { grid-template-columns: 1fr; }
  .pairs-board { grid-template-columns: 1fr; }
  .pairs-col:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair-word { min-height: 56px; font-size: 0.95rem; }
  .age-grid { grid-template-columns: 1fr; }
  .flashcard { min-height: 340px; }
  .toast { right: 12px; left: 12px; bottom: 88px; max-width: none; }
  .dev-credit { text-align: left; }
  .idiom-card.has-image { min-height: 0; }
}
@media print {
  .main-nav, .header-tools { display: none !important; }
  .print-entry em { display: block; color: #666; font-size: 9.5pt; }
  body { user-select: text; padding: 0; }
}

/* ---------- Fixes ---------- */
[hidden] { display: none !important; }
#learnView .page-title, #playView .page-title { padding: clamp(28px, 4vw, 48px) 0 24px; }
#learnView .page-title h1, #playView .page-title h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
@media (max-width: 720px) {
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ink); }
  .header-inner { grid-template-columns: 1fr auto; }
  #learnView .page-title p:last-child, #playView .page-title > div:first-child > p:last-child { display: none; }
  .session-score { padding: 12px 16px; }
}
@media (max-width: 720px) { .lesson-art { aspect-ratio: 4 / 3; } }

/* ---------- WhatsApp sharing ---------- */
.wa-ico { width: 20px; height: 20px; fill: currentColor; stroke: none; flex: 0 0 auto; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 999px; background: #25d366; color: #fff; font-weight: 850; transition: 160ms ease; }
.wa-button:hover { background: #128c4b; transform: translateY(-1px); }
.wa-button.small { min-height: 38px; margin-top: 14px; padding: 7px 14px; font-size: 0.82rem; }
.copy-share { min-height: 46px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; background: transparent; color: inherit; font-weight: 800; }
.copy-share:hover { background: rgba(255, 255, 255, 0.1); }
.share-panel { margin-top: 16px; padding: 18px; border: 1px dashed rgba(37, 211, 102, 0.55); border-radius: 16px; background: rgba(37, 211, 102, 0.08); }
.share-panel p { margin: 0 0 12px; color: rgba(255, 253, 248, 0.82); }
.share-panel p b { color: var(--white); }
.share-panel.light { max-width: 560px; margin: 26px auto 0; text-align: center; }
.share-panel.light p { color: var(--muted); }
.share-panel.light p b { color: var(--ink); }
.share-panel.light .share-row { justify-content: center; }
.share-panel.light .copy-share, .challenge-card .copy-share { border-color: var(--line); }
.share-panel.light .copy-share:hover, .challenge-card .copy-share:hover { background: var(--paper-2); }
.challenge-link { margin-top: 12px; padding: 2px 0; border: 0; border-bottom: 1px dashed currentColor; background: transparent; color: var(--yellow); font-weight: 800; }
.share-panel.light .challenge-link { color: var(--teal-dark); }
.challenge-card { border-color: rgba(37, 211, 102, 0.5); }
.challenge-card .mini-label { color: #128c4b; }
.challenge-card p { margin-bottom: 14px !important; color: var(--muted); font-size: 0.92rem; }
.challenge-card .wa-button { min-height: 42px; padding: 8px 14px; font-size: 0.88rem; }
.challenge-card .copy-share { min-height: 42px; font-size: 0.85rem; }
.badge { position: relative; }
.badge-share { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; border: 0; border-radius: 999px; background: #25d366; color: #fff; font-size: 0.72rem; font-weight: 850; }
.badge-share .wa-ico { width: 14px; height: 14px; }
@media print { .share-row, .share-panel, .wa-button, .badge-share, .challenge-card { display: none !important; } }

/* ---------- Production subtitle ---------- */
.brand-copy small.production { display: block !important; color: var(--yellow); opacity: .9; letter-spacing: .03em; }
.footer-name { display: grid; line-height: 1.2; }
.footer-name small { margin-top: 3px; color: var(--yellow); font-size: .72rem; opacity: .85; }
@media (max-width: 720px) {
  .brand-copy small.production { max-width: 130px; margin-top: 2px; font-size: .58rem; line-height: 1.25; }
}
@media print {
  .site-header { display: block !important; position: static; background: none; border: 0; }
  .site-header .main-nav, .site-header .header-tools { display: none !important; }
  .site-header .brand-copy strong { color: #000; }
  .site-header .brand-copy small.production { color: #555; }
}
