/* Frame chooser — three routes, side by side.
   Shared brand tokens from styles.css; text-labelled controls only. */

.frame-options.plan-shell { padding-top: 1rem; }

.fo-head { margin-bottom: 1.6rem; max-width: 62ch; }
.fo-intro {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: .5rem 0 0;
  max-width: 46rem;
}

.fo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.fo-grid { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); align-items: stretch; }

.fo-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem 1.3rem 1.3rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .18s, box-shadow .18s;
}
.fo-card:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}

/* Nights per base, proportional — the shape of the route before the names. */
.fo-bars {
  display: flex;
  gap: 3px;
  height: 7px;
  margin-bottom: .9rem;
  border-radius: 4px;
  overflow: hidden;
}
.fo-bar { border-radius: 4px; }
.fo-bar-0 { background: var(--brand-primary); }
.fo-bar-1 { background: var(--brand-accent); }
.fo-bar-2 { background: var(--brand-warm); }
.fo-bar-3 { background: #2f8083; }

.fo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}
.fo-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.fo-tag {
  flex: 0 0 auto;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 5px;
  border: 1px solid var(--brand-gray);
  color: var(--text-secondary);
}
.fo-tag.is-ok      { border-color: var(--brand-primary); color: var(--brand-primary); }
.fo-tag.is-adjust  { border-color: var(--brand-warm);    color: var(--brand-3); }
.fo-tag.is-blocked { border-color: var(--brand-4);       color: var(--brand-4); }

.fo-rationale {
  margin: 0 0 .8rem;
  font-size: .87rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.fo-bases { list-style: none; margin: 0 0 .8rem; padding: 0; }

.fo-bases { margin-bottom: 1rem; }

.fo-base {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem 0;
  border-top: 1px solid #f1f5f9;
}
.fo-base:first-child { border-top: none; }

.fo-base-num {
  flex: 0 0 auto;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fo-base-name   { flex: 1 1 auto; font-size: .88rem; color: var(--text-primary); }
.fo-base-nights { flex: 0 0 auto; font-size: .76rem; color: var(--text-secondary); }

/* Two numbers, not a sentence: bases and driving are what the three cards are
   actually compared on. */
.fo-stats {
  display: flex;
  gap: 1.1rem;
  padding: .7rem 0;
  margin-bottom: .75rem;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.fo-stat-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.fo-stat-key {
  display: block;
  margin-top: .05rem;
  font-size: .68rem;
  color: #64748b;
}

.fo-finding {
  margin: 0 0 .5rem;
  padding: .4rem .55rem;
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1.45;
  background: var(--bg-card-soft);
  border-left: 3px solid var(--brand-gray);
  color: var(--text-primary);
}
.fo-finding.is-warning { border-left-color: var(--brand-4); }
.fo-finding.is-info    { border-left-color: var(--brand-accent); }

.fo-choose {
  margin-top: auto;
  padding: .75rem 1rem;
  border: 1px solid var(--brand-primary);
  border-radius: 11px;
  background: var(--brand-primary);
  color: #fff;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}
.fo-choose:hover:not(:disabled) { filter: brightness(1.05); }
.fo-choose:disabled { opacity: .6; cursor: default; }

.fo-error { margin-top: 1rem; color: var(--brand-4); font-size: .88rem; }
