:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #19382e;
  background: #faf9f5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #faf9f5;
  color: #19382e;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Approved Chatty header matching Find a Language Partner & Group Hangouts */
.top {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e3e9e2;
  padding: 0 max(24px, calc((100vw - 1040px) / 2));
  background: #fff;
}
.brand {
  font-size: 20px;
  letter-spacing: -0.06em;
  color: #191c1b;
  white-space: nowrap;
}
.brand:first-letter { color: #8957f4; }
.back,
.secondary,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid #d5dfd4;
  border-radius: 12px;
  background: #fff;
  color: #315a48;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.back:hover,
.secondary:hover,
.ghost-btn:hover {
  background: #f2f7f3;
  border-color: #bccdc2;
}
.ghost-btn {
  padding: 8px 14px;
  min-height: 40px;
  font-size: 13px;
}

.primary-purple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #8650ed;
  color: #fff;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(134, 80, 237, 0.22);
  transition: background 0.15s ease, transform 0.12s ease;
}
.primary-purple:hover { background: #7540d9; }
.primary-purple:active { transform: translateY(1px); }

button:focus-visible,
a:focus-visible {
  outline: 3px solid #90ceb1;
  outline-offset: 2px;
}

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 72px;
  flex: 1;
}

/* Top bar: Back navigation + approved purple segmented language toggle */
.top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.nav-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.breadcrumb {
  font-size: 13px;
  color: #688075;
  font-weight: 550;
}
.lang-switch-wrap {
  margin-left: auto;
}
.lang-switch {
  display: flex;
  gap: 6px;
  background: #f2f4f0;
  padding: 5px;
  width: 248px;
  max-width: 100%;
  border-radius: 13px;
  border: 1px solid #e6ebe3;
}
.lang-switch button {
  flex: 1;
  background: transparent;
  color: #49564d;
  border-radius: 9px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  min-height: 40px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch button:hover:not([aria-pressed="true"]) {
  color: #19382e;
}
.lang-switch button[aria-pressed="true"] {
  background: #8650ed;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 57, 35, 0.12);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #8050d9;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(30px, 5.2vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: #161e1b;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  color: #182520;
  margin-bottom: 6px;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
  color: #182520;
  margin-bottom: 6px;
}
.lead {
  color: #587267;
  line-height: 1.6;
  font-size: 17px;
  max-width: 680px;
  margin-bottom: 24px;
}
.muted {
  font-size: 14px;
  line-height: 1.55;
  color: #688075;
  margin: 0;
}

.notice {
  margin: 0 0 20px;
  padding: 13px 16px;
  background: #eaf4ee;
  color: #275b44;
  border: 1px solid #cfe5d7;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.notice[data-error="true"] {
  background: #fff1eb;
  border-color: #f3cec0;
  color: #8d3c2c;
}

.panel {
  padding: 28px;
  margin: 18px 0;
  border: 1px solid #e2e8e0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 40, 18, 0.04);
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading p {
  font-size: 14px;
  line-height: 1.55;
  color: #688075;
  margin: 0;
}
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Categories Hub */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 24px;
  min-height: 196px;
  border-radius: 22px;
  border: 1px solid #e2e8e0;
  background: #fff;
  color: #19382e;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(28, 40, 18, 0.045);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: #c8d8ce;
  box-shadow: 0 14px 34px rgba(28, 40, 18, 0.09);
}
.category-card[data-status="available"] {
  border-color: #d6c8f6;
}
.category-card[data-status="available"]:hover {
  border-color: #8650ed;
}
.category-card[data-status="coming_soon"] {
  background: #fcfcfa;
  border-color: #e6eae4;
}
.category-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.category-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1eafc;
  color: #6d3cd4;
  font-size: 13px;
  font-weight: 800;
}
.category-card[data-status="coming_soon"] .category-num {
  background: #eff2ee;
  color: #66786e;
}
.status-pill {
  font-size: 12px;
  font-weight: 750;
  padding: 5px 11px;
  border-radius: 99px;
}
.status-pill.available {
  background: #e7f4ef;
  color: #1f5e47;
}
.status-pill.soon {
  background: #f1f2ef;
  color: #64746b;
}
.category-card h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
.category-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #5b7267;
  margin: 0 0 18px;
}
.category-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 750;
  color: #6d3cd4;
}
.category-card[data-status="coming_soon"] .category-footer {
  color: #77877e;
}

/* Chapter & Activity list */
.chapter-list {
  display: grid;
  gap: 18px;
}
.chapter-panel {
  padding: 26px;
  border: 1px solid #e2e8e0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(28, 40, 18, 0.04);
}
.chapter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #245f49;
  margin: 0 0 6px;
}
.activity-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.activity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border: 1px solid #dce6de;
  border-radius: 16px;
  background: #fbfdfb;
  color: #19382e;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.activity-card:hover {
  border-color: #8650ed;
  background: #faf7ff;
  transform: translateY(-1px);
}
.activity-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
  color: #161e1b;
}
.activity-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #587267;
}
.activity-card-cta {
  flex: none;
  padding: 9px 15px;
  border-radius: 10px;
  background: #8650ed;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

/* Activity Header */
.activity-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.activity-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  margin-bottom: 10px;
}
.activity-intro {
  font-size: 18px;
  line-height: 1.55;
  color: #223b31;
  margin: 4px 0 14px;
  max-width: 720px;
}
.support-note {
  margin: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f5f2fd;
  color: #4f3585;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 550;
}
.share-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.share-btn {
  white-space: nowrap;
}
.copy-feedback {
  font-size: 12px;
  font-weight: 700;
  color: #1f5e47;
  min-height: 16px;
}

/* Partner Roles */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.role-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #dfe8e1;
  background: #fbfdfb;
}
.role-card[data-role="a"] {
  border-top: 4px solid #8650ed;
}
.role-card[data-role="b"] {
  border-top: 4px solid #245f49;
}
.role-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #6d3cd4;
}
.role-card[data-role="b"] .role-kicker {
  color: #245f49;
}
.role-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}
.role-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #425c51;
}

/* Expandable Phrase Groups */
.phrase-groups {
  display: grid;
  gap: 12px;
}
.phrase-group {
  border: 1px solid #dfe7e0;
  border-radius: 16px;
  background: #fcfdfc;
  overflow: hidden;
}
.phrase-group-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: #182520;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.phrase-group-trigger:hover {
  background: #f4f8f5;
}
.phrase-group-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.phrase-group-title {
  font-size: 16px;
  font-weight: 750;
  color: #182520;
}
.phrase-count-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: #edf3ee;
  color: #365c4b;
}
.phrase-group-chevron {
  flex: none;
  font-size: 16px;
  color: #5b7267;
  transition: transform 0.15s ease;
}
.phrase-group-trigger[aria-expanded="true"] .phrase-group-chevron {
  transform: rotate(180deg);
}
.phrase-group-body {
  border-top: 1px solid #e6ede7;
  background: #fff;
  padding: 8px 16px 14px;
}
.phrase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.phrase-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid #eef3ee;
}
.phrase-item:last-child {
  border-bottom: 0;
}
.phrase-copy {
  flex: 1;
  min-width: 0;
}
.phrase-main {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #182520;
}
.phrase-translation {
  margin: 6px 0 0;
  padding: 7px 10px;
  border-left: 3px solid #8650ed;
  border-radius: 0 8px 8px 0;
  background: #f6f2fe;
  font-size: 14px;
  line-height: 1.45;
  color: #462f78;
}
.translate-btn {
  flex: none;
  padding: 7px 12px;
  min-height: 36px;
  border: 1px solid #d7e2da;
  border-radius: 9px;
  background: #fff;
  color: #2f5847;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.translate-btn:hover {
  background: #f1f7f3;
  border-color: #b7cbbd;
}
.translate-btn[aria-expanded="true"] {
  background: #f2ebfe;
  border-color: #c8b2f5;
  color: #5b2fc2;
}

/* Unexpected Situations (Surprise Me) */
.challenge-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.challenge-placeholder {
  padding: 20px;
  border: 1px dashed #cfdcd3;
  border-radius: 16px;
  background: #fafcf9;
  color: #556f63;
  font-size: 14px;
  line-height: 1.55;
}
.challenge-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #d9cbf7;
  background: #fbf9ff;
}
.challenge-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.challenge-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6d3cd4;
  background: #efe6fe;
  padding: 5px 10px;
  border-radius: 99px;
}
.challenge-card h3 {
  font-size: 21px;
  margin: 0 0 8px;
  color: #161e1b;
}
.challenge-context {
  font-size: 15px;
  line-height: 1.55;
  color: #283f35;
  margin: 0 0 14px;
}
.challenge-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.challenge-role {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e4ddf4;
}
.challenge-role strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5d36b2;
  margin-bottom: 5px;
}
.challenge-role p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #314b40;
}
.challenge-objective {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef6f1;
  color: #1f533f;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.challenge-phrases-title {
  font-size: 13px;
  font-weight: 750;
  color: #587267;
  margin: 0 0 6px;
}
.challenge-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e6ece7;
}
.challenge-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border: 1px solid #dfe7e0;
  border-radius: 12px;
  background: #fff;
  color: #19382e;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.challenge-picker-btn:hover {
  border-color: #b79ff2;
  background: #faf7ff;
}
.challenge-picker-btn[aria-current="true"] {
  border-color: #8650ed;
  background: #f5effe;
  color: #4f25a8;
}

/* Regional Vocabulary */
.regional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.regional-card {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #dfe8e1;
  background: #fbfdfb;
}
.regional-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #19382e;
}
.regional-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #466155;
}

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

/* Category search / filter bar (Slang country search, Travel chapter filter, etc.) */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.filter-bar input[type="search"],
.slang-search-wrap input[type="search"],
.news-country-search {
  flex: 1 1 260px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cfded2;
  border-radius: 12px;
  background: #fff;
  color: #19382e;
  font: inherit;
  font-size: 15px;
}
.filter-bar input[type="search"]:focus,
.slang-search-wrap input[type="search"]:focus,
.news-country-search:focus {
  outline: 3px solid #90ceb1;
  outline-offset: 1px;
}
.filter-count {
  font-size: 13px;
  font-weight: 650;
  color: #587267;
  white-space: nowrap;
}

/* Conversation Starters & Cultural Share opening prompt highlight */
.prompt-callout {
  margin: 12px 0 14px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #d6c8f6;
  background: #faf7ff;
}
.prompt-callout-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6d3cd4;
  margin-bottom: 6px;
}
.prompt-callout-text {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.48;
  color: #192621;
}

/* Slang compact cards */
.slang-search-wrap {
  min-width: 220px;
  max-width: 300px;
  flex: 1;
}
.slang-editorial-note {
  margin: 0 0 16px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f4f7f5;
  color: #466155;
  font-size: 13px;
  line-height: 1.5;
}
.slang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.slang-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #dfe8e1;
  background: #fbfdfb;
}
.slang-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.slang-term {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #161e1b;
}
.slang-meaning {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #234738;
}
.slang-example {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #556f63;
  font-style: italic;
}
.slang-translation {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #8650ed;
  border-radius: 0 10px 10px 0;
  background: #f6f2fe;
  font-size: 13.5px;
  line-height: 1.48;
  color: #462f78;
  display: grid;
  gap: 4px;
}
.slang-references {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6ece7;
  font-size: 12.5px;
  color: #5b7267;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.slang-references a {
  color: #6d3cd4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Weekly News two-tab editorial feed */
.news-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: #f2f4f0;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid #e6ebe3;
  margin-bottom: 22px;
}
.news-tabs button {
  background: transparent;
  color: #49564d;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.news-tabs button[aria-selected="true"] {
  background: #8650ed;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 57, 35, 0.14);
}
.news-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  padding: 5px 11px;
  border-radius: 99px;
  background: #edf4ef;
  color: #245f49;
}
.news-badge.stale {
  background: #fff3dc;
  color: #8a5612;
}
.news-badge.topic {
  background: #f2ebfe;
  color: #5b2fc2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.news-badge.opinion {
  background: #fff1eb;
  color: #8d3c2c;
}
.news-articles {
  display: grid;
  gap: 16px;
}
.news-card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #dfe7e0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 40, 18, 0.04);
}
.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.news-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.news-card h3 {
  font-size: 21px;
  line-height: 1.28;
  margin: 0 0 10px;
  color: #161e1b;
}
.news-summary {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #274136;
}
.news-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f6faf7;
  border: 1px solid #e2ece4;
  margin-bottom: 14px;
  font-size: 13px;
}
.news-source-link {
  color: #245f49;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-details {
  margin-top: 10px;
  border: 1px solid #e6ede7;
  border-radius: 13px;
  background: #fcfdfc;
  padding: 12px 15px;
}
.news-details summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 14px;
  color: #1e3b2f;
}
.news-vocab-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.news-country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.news-country-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfe7e0;
  background: #fff;
  color: #19382e;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.news-country-btn:hover {
  border-color: #8650ed;
  background: #faf7ff;
}
.news-country-btn strong {
  font-size: 16px;
}
.news-country-btn small {
  font-size: 12.5px;
  color: #5c7569;
}

/* =========================================================================
   Travel Role-Specific Dialogue Pilot (compact single surface)
   ========================================================================= */
.pilot-surface {
  background: #fff;
  border: 1px solid #e2e8e0;
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 12px 32px rgba(28, 40, 18, 0.04);
}
.pilot-head {
  margin-bottom: 18px;
}
.pilot-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pilot-title-row h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0;
  line-height: 1.12;
}
.pilot-share-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.icon-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 11px;
  border: 1px solid #d5dfd4;
  background: #fff;
  color: #315a48;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-share-btn:hover {
  background: #f5effe;
  border-color: #c5adf5;
  color: #6d3cd4;
}
.pilot-share-feedback {
  font-size: 12px;
  font-weight: 700;
  color: #1f5e47;
  white-space: nowrap;
}
.pilot-intro {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: #466155;
  max-width: 680px;
}

/* Sticky compact role + language controls right above the dialogue */
.pilot-control-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin: 0 0 8px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid #eef2ee;
  border-bottom: 1px solid #e6ece7;
}
.segmented-control {
  display: flex;
  gap: 6px;
  background: #f2f4f0;
  padding: 5px;
  border-radius: 13px;
  border: 1px solid #e6ebe3;
}
.segmented-control button {
  flex: 1;
  background: transparent;
  color: #49564d;
  border-radius: 9px;
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  min-height: 38px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.segmented-control button:hover:not([aria-pressed="true"]) {
  color: #19382e;
}
.segmented-control button[aria-pressed="true"] {
  background: #8650ed;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30, 57, 35, 0.12);
}
.pilot-role-switch {
  min-width: 240px;
  max-width: 100%;
}
.pilot-role-switch button {
  min-width: 0;
  white-space: normal;
  line-height: 1.22;
  text-align: center;
}
.pilot-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.pilot-lang-switch {
  min-width: 176px;
}
.pilot-lang-switch button {
  font-size: 13px;
  padding: 6px 12px;
  min-height: 36px;
}
.pilot-link-btn {
  border: 0;
  background: transparent;
  color: #587267;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 4px;
  cursor: pointer;
  white-space: nowrap;
}
.pilot-link-btn:hover {
  color: #6d3cd4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Scannable role dialogue groups */
.pilot-groups {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.pilot-group {
  border-bottom: 1px solid #edf2ed;
}
.pilot-group:last-child {
  border-bottom: 0;
}
.pilot-group-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 4px;
  border: 0;
  background: transparent;
  color: #182520;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pilot-group-trigger:hover .pilot-group-title {
  color: #6d3cd4;
}
.pilot-group-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pilot-group-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #19382e;
}
.pilot-group-count {
  font-size: 12px;
  font-weight: 700;
  color: #6b8075;
}
.pilot-group-chevron {
  font-size: 15px;
  color: #6b8075;
  transition: transform 0.15s ease;
}
.pilot-group-trigger[aria-expanded="true"] .pilot-group-chevron {
  transform: rotate(180deg);
}
.pilot-lines {
  list-style: none;
  margin: 0 -6px 12px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.pilot-line {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.45;
  color: #16241f;
}
.pilot-line:nth-child(even) {
  background: #fafbf9;
}

/* Compact Surprise Me & Regional Vocabulary inside same single surface */
.pilot-divider-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e6ece7;
}
.pilot-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pilot-divider-block h2 {
  font-size: 17px;
  margin: 0;
  color: #182520;
}
.pilot-surprise-btn {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 13.5px;
}
.pilot-challenge-card {
  padding: 16px 18px;
  border-radius: 15px;
  border: 1px solid #ddd0f8;
  background: #fbf9ff;
}
.pilot-challenge-title {
  font-size: 17px;
  font-weight: 800;
  color: #161e1b;
  margin: 0 0 4px;
}
.pilot-challenge-context {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #556f63;
}
.pilot-challenge-instruction {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 3px solid #8650ed;
  border-radius: 0 10px 10px 0;
  background: #fff;
  font-size: 14.5px;
  line-height: 1.5;
  color: #21342c;
}
.pilot-challenge-instruction strong {
  color: #5d32bd;
}
.pilot-challenge-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.pilot-challenge-lines li {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ede7fb;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
  color: #16241f;
}
.pilot-regional-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pilot-regional-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafbf9;
  border: 1px solid #e6ede7;
}
.pilot-regional-item strong {
  display: block;
  font-size: 14px;
  color: #19382e;
  margin-bottom: 3px;
}
.pilot-regional-item span {
  font-size: 13.5px;
  line-height: 1.5;
  color: #4c665a;
}

footer {
  padding: 24px 18px;
  text-align: center;
  color: #6b8174;
  font-size: 12px;
  border-top: 1px solid #e3e9e2;
  background: #faf9f5;
}

@media (max-width: 680px) {
  .top { padding: 0 16px; height: 68px; }
  .brand { font-size: 18px; }
  .back { padding: 9px 12px; font-size: 13px; }
  .shell { width: calc(100% - 24px); margin: 20px auto 52px; }
  .top-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .lang-switch-wrap { margin-left: 0; width: 100%; }
  .lang-switch { width: 100%; }
  .panel { padding: 19px; border-radius: 18px; }
  .category-grid,
  .roles-grid,
  .challenge-roles,
  .regional-grid,
  .slang-grid,
  .news-country-grid { grid-template-columns: 1fr; }
  .news-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-card { flex-direction: column; align-items: flex-start; }
  .share-box { align-items: flex-start; width: 100%; }
  .share-btn { width: 100%; }
  .phrase-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .translate-btn { align-self: flex-start; }
  .challenge-controls { width: 100%; }
  .challenge-controls > button { flex: 1; }
  .slang-search-wrap { max-width: none; width: 100%; }
  .pilot-surface { padding: 18px 16px; border-radius: 18px; }
  .pilot-control-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
  .pilot-role-switch { width: 100%; min-width: 0; }
  .pilot-bar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .pilot-lang-switch { flex: 1; min-width: 0; }
  .pilot-regional-list { grid-template-columns: 1fr; }
  .pilot-line { font-size: 15.5px; padding: 8px 10px; }
}

/* Shared compact activity surface — approved Travel rows and controls. */
.icon-share-btn svg { flex: 0 0 18px; }
.pilot-share-wrap { position: relative; }
.pilot-share-feedback:not(:empty) {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  max-width: min(260px, 80vw);
  white-space: normal;
  z-index: 21;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(28, 40, 18, .09);
}
.pilot-title-row h1 { min-width: 0; overflow-wrap: anywhere; }
.pilot-surface:not([data-compact-category="travel"]) .pilot-bar-right {
  margin-left: auto;
}
.compact-slang-search { margin: 12px 4px 4px; }
.compact-slang-search input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid #d5dfd4;
  border-radius: 10px;
  font: inherit;
  color: #19382e;
  background: #fff;
}
.compact-slang-entry { overflow-wrap: anywhere; }
.compact-slang-term { display: block; font-size: 16px; font-weight: 800; color: #19382e; }
.compact-slang-meaning { margin-top: 3px; }
.compact-slang-example { margin-top: 3px; color: #587267; font-size: 14px; font-weight: 400; font-style: italic; }
.compact-slang-notes { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e6ece7; font-size: 13px; }
.compact-reference-links { display: flex; flex-wrap: wrap; gap: 6px 12px; overflow-wrap: anywhere; }
.compact-reference-links a { color: #315a48; }
.news-card .pilot-lines { margin: 6px 0 0; }
.news-card .news-details { border: 0; border-top: 1px solid #e6ece7; border-radius: 0; padding: 10px 0 0; background: transparent; }
.news-card .news-details summary { font-size: 15px; font-weight: 800; color: #19382e; }
.shell:has(#view-news:not([hidden])) .top-controls { position: sticky; top: 0; z-index: 20; background: #faf9f5; padding: 6px 0; }
@media (max-width: 680px) {
  .pilot-title-row { align-items: flex-start; }
  .icon-share-btn { padding: 0 8px; gap: 5px; font-size: 12px; }
  .pilot-surface:not([data-compact-category="travel"]) .pilot-bar-right { margin-left: 0; }
  .compact-slang-search input { max-width: none; }
  .news-card .news-card-meta { flex-wrap: wrap; }
}

/* Editorial feed: dates and countries identify stories, not separate categories. */
.editorial-feed .news-card { border-radius: 20px; }
.editorial-feed .editorial-country { background: #edf4ef; }
.editorial-feed .editorial-date { background: #f2f4f0; color: #587267; }
.editorial-feed .news-card h3 { overflow-wrap: anywhere; }
.editorial-feed .news-source-row { background: transparent; border: 0; padding: 0; border-radius: 0; }
@media (max-width: 680px) {
  .editorial-feed .news-card { padding: 16px; }
  .editorial-feed .news-card h3 { font-size: 19px; }
}

/* Public country media directory */
.media-intro{margin:0 0 18px}
.media-intro h2{margin:0 0 6px}
.media-intro p{margin:0 0 16px}
.media-search-label{display:grid;gap:6px;font-size:14px;font-weight:650;max-width:540px}
.media-search{font:inherit;padding:12px 14px;border:1px solid #d4ded4;border-radius:12px;background:#fff;color:inherit;width:100%;min-height:44px}
.media-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.media-country-card{min-width:0;padding:18px 20px}
.media-country-card h3{margin:0 0 8px;font-size:18px}
.media-outlets{list-style:none;margin:0;padding:0}
.media-outlets li+li{border-top:1px solid #eef1ec}
.media-outlet-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 0;color:#285443;text-decoration:none;font-weight:600;overflow-wrap:anywhere}
.media-outlet-link:hover{text-decoration:underline}
.media-arrow{flex-shrink:0;color:#60786d}
.media-note{font-size:13px;line-height:1.5;margin-top:20px}
.media-intro .ghost-btn{margin-top:12px}
@media(max-width:640px){.media-directory{grid-template-columns:minmax(0,1fr)}.media-country-card{padding:16px}}
