/* UkraineType QA Visual Polish R1 — 2026-11-09
   Presentation only. Does not hide alert status, provenance, or safety boundaries.
   Only linked from protected QA. No production changes. */

body.ut-v2.utPremium.utPlannerTravel {
  --ti-blue: #0a448f;
  --ti-navy: #0b2f5d;
  --ti-ink: #112f51;
  --ti-subtle: #506c85;
  --ti-stroke: #d7e4f3;
  --ti-yellow: #ffd94b;
}

/* 01 — Journey Planner: clearer controls, spacing, and focus indication */
body.ut-v2.utPremium.utPlannerTravel .utPlannerRoutePanel,
body.ut-v2.utPremium.utPlannerTravel .utPlannerContextPanel {
  border: 1px solid var(--ti-stroke);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 55, 103, .055);
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerPanelHead h2 {
  color: var(--ti-navy);
  line-height: 1.24;
  letter-spacing: -.02em;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerField select,
body.ut-v2.utPremium.utPlannerTravel .utPlannerField input[type="datetime-local"] {
  box-sizing: border-box;
  min-width: 0;
  min-height: 51px;
  border-radius: 12px;
  border: 1px solid #cbdcf0;
  background-color: #fff;
  color: var(--ti-ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerField select:focus-visible,
body.ut-v2.utPremium.utPlannerTravel .utPlannerField input[type="datetime-local"]:focus-visible {
  outline: 2px solid #2467b7;
  outline-offset: 2px;
  border-color: #2467b7;
}
body.ut-v2.utPremium.utPlannerTravel #journeyPlannerSubmit {
  border-radius: 13px;
  min-height: 50px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 5px 0 rgba(163, 116, 0, .13);
  transition: transform .16s ease, box-shadow .16s ease;
}
body.ut-v2.utPremium.utPlannerTravel #journeyPlannerSubmit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 15px rgba(163, 116, 0, .16);
}
body.ut-v2.utPremium.utPlannerTravel #journeyPlannerSubmit:focus-visible {
  outline: 3px solid #175ea8;
  outline-offset: 3px;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)) !important;
  gap: 10px !important;
  min-width: 0;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode label {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode label > span {
  display: flex !important;
  grid-column: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 86px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid #d8e4f1;
  background: #f8fbff;
  transition: border-color .18s ease, background-color .18s ease;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode input:checked + span {
  background: #eaf3ff !important;
  border-color: #0d62bd !important;
  box-shadow: inset 0 0 0 1px #0d62bd, 0 2px 8px rgba(8,83,166,.07) !important;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode label:focus-within > span {
  outline: 3px solid #e8b953;
  outline-offset: 2px;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMetrics > div {
  border-radius: 13px;
  min-width: 0;
}

/* 02 — Ukraine Alarm: neutral/amber unknown state; never imply safety */
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive {
  box-sizing: border-box;
  margin-block: 22px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid #ecd8b4;
  border-inline-start: 5px solid #af7726;
  border-radius: 18px;
  background: linear-gradient(115deg, #fffaf2 0%, #fffdf9 100%);
  color: var(--ti-ink);
  box-shadow: 0 9px 24px rgba(96, 64, 26, .045);
}
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive h2,
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive #utAlarmCity {
  color: var(--ti-navy);
  font-weight: 800;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive #utAlarmStatus {
  color: #654813;
  font-weight: 700;
  line-height: 1.55;
}
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive .utAlarmMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  color: var(--ti-subtle);
  font-size: .91rem;
}
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive a {
  color: #0b4c8c;
  text-underline-offset: 3px;
}
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive a:focus-visible {
  outline: 2px solid #2467b7;
  outline-offset: 3px;
}
body.ut-v2.utPremium.utPlannerTravel #utAlarmLive #utAlarmBoundary {
  margin-block: 13px 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: #fff1d7;
  color: #604218;
  font-weight: 650;
  line-height: 1.6;
}

/* 03 — The existing two sourced GlobalGiving project cards */
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney.ut-impact {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 22px 0;
  border: 1px solid var(--ti-stroke);
  border-radius: 22px;
  padding: clamp(16px, 2.5vw, 26px);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 55, 103, .055);
  color: var(--ti-ink);
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney > h2 {
  color: var(--ti-navy);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-bottom: 9px;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney > .ut-impact-small {
  color: var(--ti-subtle);
  line-height: 1.6;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin: 18px 0 14px;
  align-items: stretch;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-card {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #d9e5f3;
  border-radius: 17px;
  padding: clamp(15px, 2vw, 21px);
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  box-shadow: 0 5px 15px rgba(11, 47, 93, .035);
  overflow-wrap: anywhere;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-card h3 {
  color: var(--ti-navy);
  font-size: clamp(1.04rem, 1.6vw, 1.17rem);
  line-height: 1.35;
  margin: 0 0 3px;
  font-weight: 800;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-card h4 {
  color: #103e78;
  font-size: .96rem;
  line-height: 1.4;
  margin: 11px 0 0;
  font-weight: 750;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-card p {
  margin: 2px 0;
  line-height: 1.68;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-card .ut-impact-small {
  color: #4e6680;
  font-size: .86rem;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-tag {
  align-self: flex-start;
  white-space: normal;
  border: 1px solid #c9dff5;
  background: #e9f3ff;
  color: #165088;
  padding: 5px 11px;
  border-radius: 100px;
  font-weight: 700;
  line-height: 1.4;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-source {
  border-top: 1px solid #d5e2f1;
  padding-top: 12px;
  margin-top: auto;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney a.ut-impact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  background: #0b4c8c;
  color: #fff;
  border-radius: 11px;
  padding: 11px 15px;
  font-weight: 750;
  line-height: 1.45;
  text-decoration: none;
  transition: background-color .18s ease;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney a.ut-impact-link:hover {
  background: #073568;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney a.ut-impact-link:focus-visible,
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney button:focus-visible {
  outline: 3px solid #e7b84a;
  outline-offset: 3px;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney > button {
  margin-top: 7px;
  border-radius: 10px;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney > button:disabled {
  opacity: .68;
  cursor: not-allowed;
}
body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-warning {
  border: 1px solid #f0dfb9;
  border-inline-start: 4px solid #c18b30;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff9e9;
  color: #6c4c19;
  font-weight: 650;
  line-height: 1.55;
}

@media (max-width: 680px) {
  body.ut-v2.utPremium.utPlannerTravel .utPlannerRouteFields {
    grid-template-columns: minmax(0, 1fr);
  }
  body.ut-v2.utPremium.utPlannerTravel .utPlannerPanel {
    border-radius: 18px;
  }
  body.ut-v2.utPremium.utPlannerTravel #journeyPlannerSubmit {
    width: 100%;
  }
  body.ut-v2.utPremium.utPlannerTravel #utImpactJourney .ut-impact-list {
    grid-template-columns: minmax(0, 1fr);
  }
  body.ut-v2.utPremium.utPlannerTravel #utImpactJourney a.ut-impact-link {
    align-self: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.ut-v2.utPremium.utPlannerTravel .utPlannerMode label > span,
  body.ut-v2.utPremium.utPlannerTravel #journeyPlannerSubmit,
  body.ut-v2.utPremium.utPlannerTravel #utImpactJourney a.ut-impact-link {
    transition: none;
  }
}


/* Production-safe isolated style fixes, preserved from validated QA. */
/* TI_QA_STAGE_MODE_LAYOUT_FIX_R1 */
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)) !important;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode label {
  min-width: 0 !important;
}
body.ut-v2.utPremium.utPlannerTravel .utPlannerMode label > span {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* TI_QA_SKIP_LINK_FIX_R2 */
body.ut-v2.utPremium.utPlannerTravel a.utPremiumSkip:not(:focus) {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  clip-path: inset(50%) !important;
}
body.ut-v2.utPremium.utPlannerTravel a.utPremiumSkip:focus {
  position: fixed !important;
  left: 12px !important;
  top: 12px !important;
  width: auto !important;
  height: auto !important;
  padding: 10px 16px !important;
  opacity: 1 !important;
  overflow: visible !important;
  clip-path: none !important;
  transform: none !important;
  z-index: 2147483647 !important;
  background: #ffffff !important;
  color: #084b8a !important;
  border: 2px solid #075cb5 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.2) !important;
}
