:root {
  color-scheme: light;
  --usc-cardinal: #990000;
  --usc-gold: #ffc72c;
  --ink: #1c1f23;
  --muted: #667178;
  --line: #d8dde0;
  --paper: #fbfbf8;
  --panel: #ffffff;
  --sage: #2e675d;
  --sky: #dfeef3;
  --clay: #b65c3d;
  --navy: #203443;
  --shadow: 0 16px 40px rgba(32, 52, 67, 0.12);
  --radius: 8px;
  --max: 1180px;
}

/*
  Reviewer note: this stylesheet is intentionally mobile-first in the critical
  interactions even though some desktop layout rules appear first. Keep phone
  screenshots in review-artifacts/screenshots current after changing navigation,
  card affordances, filter rows, or feedback controls.
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(251, 251, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-feedback,
.mobile-tabbar button,
.mobile-tabbar a,
.quick-actions a,
.quick-actions button,
.pill-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.header-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--usc-cardinal);
  border-color: var(--usc-cardinal);
  font-size: 14px;
  font-weight: 800;
}

.header-feedback svg {
  width: 18px;
  height: 18px;
}

.mobile-tabbar {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--usc-cardinal);
  color: var(--usc-gold);
  border: 2px solid var(--usc-gold);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  background: var(--sky);
  outline: none;
}

main {
  overflow: hidden;
}

.hero-copy,
.weather-panel,
.map-panel,
.focus-card,
.info-card,
.route-card,
.arrival-card,
.event-card,
.food-card,
.resource-card,
.course-advisory,
.trip-step,
.packing-panel,
.feedback-form,
.feedback-review,
.source-list {
  min-width: 0;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  grid-template-rows: auto 320px;
  gap: 20px;
  max-width: var(--max);
  min-height: calc(100svh - 72px);
  margin: 0 auto;
  padding: 34px 20px 22px;
}

.hero-copy {
  align-self: center;
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--usc-cardinal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family:
    Newsreader,
    Georgia,
    serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(54px, 8vw, 114px);
}

h2 {
  font-size: clamp(30px, 4vw, 58px);
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.lede {
  max-width: 700px;
  margin: 18px 0 0;
  color: #3f4b51;
  font-size: 20px;
  line-height: 1.5;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.hero-facts strong {
  color: var(--ink);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quick-actions a,
.quick-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.quick-actions svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--usc-cardinal);
}

.quick-actions span,
.mobile-tabbar span,
.route-button span,
.pill-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.weather-panel,
.map-panel,
.focus-card,
.info-card,
.route-card,
.arrival-card,
.event-card,
.food-card,
.resource-card,
.course-advisory,
.trip-step,
.packing-panel,
.feedback-form,
.feedback-review,
.source-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.weather-panel {
  align-self: stretch;
  padding: 20px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.icon-action,
.route-button,
.filter-chip,
.timeline-item {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.icon-action {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.icon-action svg,
.route-button svg,
.weather-now svg,
.info-card svg,
.route-card svg,
.arrival-card svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.weather-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.temp {
  display: block;
  font-size: 60px;
  font-weight: 800;
  line-height: 0.9;
}

.weather-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.weather-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
}

.weather-day {
  min-height: 86px;
  padding: 8px 6px;
  background: #f4f7f8;
  border: 1px solid #e8ecee;
  border-radius: 6px;
  text-align: center;
}

.weather-day strong,
.weather-day span {
  display: block;
}

.weather-day strong {
  font-size: 12px;
}

.weather-day span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.microcopy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.map-panel {
  grid-column: 1 / -1;
  min-height: 320px;
  overflow: hidden;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.dashboard-grid,
.content-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(240px, 0.92fr) minmax(300px, 1.2fr);
  gap: 16px;
}

.focus-card {
  min-height: 240px;
  padding: 20px;
}

.focus-card h2 {
  font-size: clamp(34px, 2.35vw, 46px);
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.countdown {
  margin: 16px 0 10px;
  color: var(--usc-cardinal);
  font-size: clamp(42px, 3vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.compact-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #3f4b51;
  line-height: 1.7;
}

.search-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-box svg {
  width: 18px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.answer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.answer-item {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.answer-item strong {
  display: block;
  margin-bottom: 4px;
}

.answer-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.content-section {
  padding-top: 56px;
  scroll-margin-top: 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: #45535b;
  font-size: 16px;
  line-height: 1.6;
}

.program-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  text-align: left;
}

.timeline-item span {
  color: var(--usc-cardinal);
  font-weight: 800;
}

.timeline-item.active,
.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.timeline-detail {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-detail p:last-child {
  margin: 8px 0 0;
  color: #4c5960;
  line-height: 1.55;
}

.course-grid,
.course-advisory-row,
.date-grid,
.first72-grid,
.insight-grid,
.route-board,
.arrival-grid,
.neighborhood-grid,
.card-grid,
.trip-planner,
.feedback-grid {
  display: grid;
  gap: 14px;
}

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

.course-card {
  min-height: 235px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-card > span,
.course-advisory > span,
.resource-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 8px;
  background: rgba(153, 0, 0, 0.08);
  color: var(--usc-cardinal);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.course-card p,
.course-advisory p,
.info-card p,
.route-card li,
.event-card p,
.food-card p,
.resource-card p,
.trip-step p {
  color: #4c5960;
  line-height: 1.55;
}

.card-note {
  margin-bottom: 0;
  font-size: 14px;
}

.course-advisory-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.course-advisory,
.date-card,
.first72-card,
.resource-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.info-card,
.route-card,
.arrival-card,
.event-card,
.food-card,
.resource-card,
.course-advisory {
  padding: 18px;
}

.info-card svg,
.route-card > svg,
.arrival-card > svg {
  margin-bottom: 14px;
  color: var(--sage);
}

.arrival-grid {
  grid-template-columns: 1.15fr 0.95fr 0.95fr 0.8fr;
}

.arrival-card ul {
  margin: 14px 0;
  padding-left: 18px;
}

.arrival-card li,
.arrival-card p {
  color: #4c5960;
  line-height: 1.55;
}

.primary-arrival {
  border-top: 5px solid var(--usc-gold);
}

.date-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.next-date-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--usc-cardinal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.next-date-card span,
.date-kind,
.date-state {
  color: var(--usc-cardinal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.next-date-card strong {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.05;
}

.next-date-card small {
  color: #4c5960;
  font-size: 14px;
  line-height: 1.45;
}

.date-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  justify-content: flex-end;
}

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

.date-card,
.first72-card {
  padding: 18px;
}

.date-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  gap: 10px;
}

.date-card.past {
  opacity: 0.64;
}

.date-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.date-kind,
.date-state {
  display: inline-flex;
  width: fit-content;
  padding: 5px 7px;
  background: rgba(153, 0, 0, 0.08);
  border-radius: 999px;
  line-height: 1;
}

.date-state {
  background: rgba(46, 103, 93, 0.12);
  color: var(--sage);
}

.date-card.soon .date-state,
.date-card.now .date-state {
  background: rgba(255, 199, 44, 0.28);
  color: #674c00;
}

.date-value {
  color: var(--usc-cardinal);
  font-size: 26px;
  line-height: 1.05;
}

.date-card h3,
.first72-card h3 {
  margin-bottom: 0;
}

.date-card p {
  margin: 0;
  color: #4c5960;
  line-height: 1.55;
}

.date-card p:not(.date-action) {
  flex: 1;
}

.date-action {
  padding: 10px;
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

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

.first72-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.first72-card li {
  margin-bottom: 10px;
  color: #4c5960;
  line-height: 1.5;
}

.button-row,
.feedback-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--usc-cardinal);
  font-size: 13px;
  font-weight: 800;
}

.pill-link.quiet {
  color: var(--muted);
}

.route-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card ul {
  margin: 14px 0;
  padding-left: 18px;
}

.route-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--usc-cardinal);
  border-color: var(--usc-cardinal);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--usc-cardinal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-link .text-link {
  width: fit-content;
}

.neighborhood-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
}

.neighborhood-card {
  display: flex;
  width: 100%;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  background: var(--navy);
  border: 0;
  color: #fff;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
}

.neighborhood-card:nth-child(2) {
  background: var(--sage);
}

.neighborhood-card:nth-child(3) {
  background: var(--clay);
}

.neighborhood-card:nth-child(4) {
  background: #5a4b35;
}

.neighborhood-card:nth-child(5) {
  background: #47394a;
}

.neighborhood-card.active {
  outline: 4px solid var(--usc-gold);
  outline-offset: 2px;
}

.neighborhood-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.neighborhood-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.neighborhood-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  margin-top: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.neighborhood-detail {
  margin-top: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.neighborhood-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.neighborhood-detail h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.city-why {
  max-width: 820px;
  margin: 14px 0 18px;
  color: #3f4b51;
  font-size: 17px;
  line-height: 1.6;
}

.city-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.city-detail-grid section {
  padding: 14px;
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.city-detail-grid h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.city-detail-grid ul,
.city-detail-grid p {
  margin: 0;
  color: #4c5960;
  line-height: 1.55;
}

.city-detail-grid ul {
  padding-left: 18px;
}

.city-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.filter-row {
  display: flex;
  gap: 8px;
  padding-bottom: 14px;
  overflow-x: auto;
}

.filter-chip {
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.language-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.language-strip span {
  min-height: 58px;
  padding: 12px;
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #3f4b51;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

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

.event-card,
.food-card,
.resource-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.tag {
  padding: 5px 7px;
  background: #f1f4f5;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-card p,
.food-card p,
.resource-card p {
  flex: 1;
}

.resource-card {
  min-height: 260px;
}

.resource-type {
  width: fit-content;
  background: rgba(46, 103, 93, 0.1);
  color: var(--sage);
}

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

.food-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.food-meta span {
  min-height: 40px;
  padding: 8px;
  background: #f7f9f9;
  border: 1px solid #e8ecee;
  border-radius: 6px;
  color: #4c5960;
  font-size: 13px;
  font-weight: 700;
}

.trips-section {
  padding-bottom: 42px;
}

.trip-planner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-step {
  min-height: 230px;
  padding: 20px;
}

.trip-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 16px;
  background: var(--usc-gold);
  border-radius: 50%;
  color: var(--usc-cardinal);
  font-weight: 900;
}

.packing-panel {
  margin-top: 16px;
  padding: 20px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 12px;
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--usc-cardinal);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.source-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #f7f9f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible,
.card-link:hover,
.card-link:focus-visible,
.neighborhood-card:hover,
.neighborhood-card:focus-visible,
.route-button:hover,
.route-button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.icon-action:hover,
.icon-action:focus-visible,
.timeline-item:hover,
.timeline-item:focus-visible,
.header-feedback:hover,
.header-feedback:focus-visible,
.quick-actions a:hover,
.quick-actions a:focus-visible,
.quick-actions button:hover,
.quick-actions button:focus-visible,
.pill-link:hover,
.pill-link:focus-visible,
.mobile-tabbar a:focus-visible,
.mobile-tabbar button:focus-visible {
  outline: 3px solid rgba(255, 199, 44, 0.55);
  outline-offset: 2px;
}

.feedback-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.feedback-form,
.feedback-review {
  padding: 18px;
}

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

.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f9;
  color: var(--ink);
}

.feedback-form input,
.feedback-form select {
  min-height: 46px;
  padding: 0 12px;
}

.feedback-form textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

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

.submit-feedback {
  width: 100%;
}

.saved-count {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  font-weight: 900;
}

.feedback-list {
  display: grid;
  gap: 10px;
  max-height: 410px;
  margin-top: 14px;
  overflow: auto;
  padding-right: 4px;
}

.feedback-empty,
.feedback-note {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9f9;
}

.feedback-note strong {
  display: block;
  margin-bottom: 6px;
}

.feedback-note p {
  margin: 0;
  color: #4c5960;
  font-size: 14px;
  line-height: 1.5;
}

.feedback-note small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .hero-band {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: auto;
  }

  .dashboard-grid,
  .program-layout,
  .route-board,
  .arrival-grid,
  .date-tools,
  .trip-planner,
  .feedback-grid,
  .language-strip,
  .source-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-heading .eyebrow {
    margin-bottom: 0;
  }

  .course-grid,
  .course-advisory-row,
  .date-grid,
  .first72-grid,
  .insight-grid,
  .card-grid,
  .neighborhood-grid,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .app-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .section-nav {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .header-feedback span {
    display: none;
  }

  .header-feedback {
    width: 44px;
    padding: 0;
    justify-content: center;
    margin-left: auto;
  }

  .mobile-tabbar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(32, 52, 67, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-items: center;
    gap: 2px;
    padding: 5px 3px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-tabbar svg {
    width: 21px;
    height: 21px;
    color: var(--usc-cardinal);
  }

  h1 {
    font-size: clamp(40px, 13vw, 62px);
  }

  h2 {
    font-size: clamp(28px, 10vw, 42px);
    line-height: 1.02;
  }

  .lede {
    margin-top: 14px;
    font-size: 17px;
  }

  .hero-band,
  .dashboard-grid,
  .content-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-band {
    gap: 14px;
    padding-top: 22px;
  }

  .hero-facts span {
    width: 100%;
  }

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

  .quick-actions a,
  .quick-actions button {
    min-height: 58px;
    justify-content: flex-start;
    line-height: 1.2;
  }

  .date-tool-links {
    justify-content: flex-start;
  }

  .date-tool-links .pill-link {
    flex: 1 1 180px;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 230px;
  }

  .weather-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

  .filter-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .course-grid,
  .course-advisory-row,
  .date-grid,
  .first72-grid,
  .insight-grid,
  .card-grid,
  .neighborhood-grid,
  .city-detail-grid,
  .language-strip,
  .checklist {
    grid-template-columns: 1fr;
  }

  .neighborhood-detail-header {
    flex-direction: column;
  }

  .neighborhood-detail-header .route-button {
    width: 100%;
  }

  .food-meta {
    grid-template-columns: 1fr;
  }

  .focus-card,
  .weather-panel,
  .arrival-card,
  .date-card,
  .first72-card,
  .next-date-card,
  .info-card,
  .route-card,
  .event-card,
  .food-card,
  .resource-card,
  .course-advisory,
  .trip-step,
  .packing-panel,
  .feedback-form,
  .feedback-review,
  .source-list {
    box-shadow: 0 10px 24px rgba(32, 52, 67, 0.09);
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }

  .feedback-controls .pill-link {
    flex: 1 1 118px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 50px;
  }

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

  .temp {
    font-size: 48px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111718;
    --panel: #172023;
    --ink: #f2f5f2;
    --muted: #a9b6ba;
    --line: #324044;
    --sky: #20343b;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .app-header {
    background: rgba(17, 23, 24, 0.94);
  }

  .hero-facts span,
  .search-box,
  .weather-day,
  .answer-item,
  .source-list a,
  .food-meta span,
  .language-strip span,
  .check-item,
  .course-card,
  .date-card,
  .first72-card,
  .next-date-card,
  .date-action,
  .resource-card,
  .course-advisory,
  .timeline-detail,
  .neighborhood-detail,
  .city-detail-grid section,
  .timeline-item,
  .filter-chip,
  .icon-action,
  .quick-actions a,
  .quick-actions button,
  .header-feedback,
  .feedback-form input,
  .feedback-form select,
  .feedback-form textarea,
  .feedback-empty,
  .feedback-note,
  .mobile-tabbar {
    background: #11191b;
  }

  .lede,
  .section-heading p:not(.eyebrow),
  .course-card p,
  .course-advisory p,
  .date-card p,
  .first72-card li,
  .next-date-card small,
  .info-card p,
  .route-card li,
  .arrival-card li,
  .arrival-card p,
  .event-card p,
  .food-card p,
  .resource-card p,
  .language-strip span,
  .trip-step p,
  .timeline-detail p:last-child,
  .city-why,
  .city-detail-grid p,
  .city-detail-grid ul,
  .feedback-note p {
    color: #c8d2d5;
  }

  .mobile-tabbar {
    background: rgba(17, 25, 27, 0.96);
  }
}

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