/* flyrobert.cloud/flights — "My year in flights" poster page. Builds on ../assets/site.css. */

.yf-hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(ellipse 60% 70% at 90% 120%, rgba(240, 163, 58, 0.45), transparent 70%),
    linear-gradient(160deg, var(--night) 0%, var(--navy) 70%, var(--teal) 100%);
}
.yf-hero .wrap { padding-top: 64px; padding-bottom: 60px; }
.yf-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; }
.yf-hero h1 em { font-style: normal; color: var(--amber); }
.yf-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.82); max-width: 36em; margin: 0; }

.yf-tool { padding: 48px 0 64px; }
.yf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: start; }
@media (max-width: 900px) { .yf-grid { grid-template-columns: 1fr; gap: 36px; } }

.yf-panel h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.yf-field { margin-bottom: 14px; }
.yf-field label, .yf-seg legend { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.yf-field input[type="text"], .yf-field input[type="number"], .yf-paste textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1px solid #c9d3dd; background: var(--white);
}
.yf-field input:focus, .yf-paste textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.yf-field input.is-set { border-color: var(--teal); background: #f1f8f8; }

.yf-combo { position: relative; }
.yf-options {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto;
  background: var(--white); border: 1px solid #c9d3dd; border-radius: 14px; box-shadow: 0 18px 40px rgba(14, 34, 54, 0.16);
}
.yf-options li { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.yf-options li[aria-selected="true"], .yf-options li:hover { background: #e9f3f5; }
.yf-options .code { font-family: var(--mono); font-weight: 700; color: var(--navy); min-width: 2.6em; }
.yf-options .place { flex: 1; min-width: 0; }
.yf-options .place small { display: block; color: var(--muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.yf-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.yf-check { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; cursor: pointer; }
.yf-check input { width: 20px; height: 20px; accent-color: var(--teal); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.yf-secondary {
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid #c9d3dd; background: var(--white); color: var(--ink);
}
.yf-secondary:hover { border-color: var(--teal); color: var(--navy); }
.yf-link { font: inherit; font-size: 0.92rem; color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.yf-link:hover { color: var(--navy); }
button:disabled { opacity: 0.5; cursor: default; }
.yf-message { min-height: 1.4em; margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }
.yf-message.is-error { color: #a4372a; }

.yf-note {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 22px; border-radius: 14px; background: var(--amber-soft); border: 1px solid #f3dcae; color: #5a4520;
}
.yf-note[hidden] { display: none; }

.yf-paste { margin: 18px 0 30px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.yf-paste summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.yf-paste p { margin: 10px 0; color: var(--muted); font-size: 0.92rem; }
.yf-paste code { font-family: var(--mono); background: #eef2f5; padding: 1px 5px; border-radius: 5px; color: var(--ink); }
.yf-paste textarea { font-family: var(--mono); margin-bottom: 10px; resize: vertical; }

.yf-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.yf-flights { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.yf-flights li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.yf-flights .route { flex: 1; min-width: 0; }
.yf-flights .route b { font-family: var(--mono); letter-spacing: 0.02em; }
.yf-flights .route small { display: block; color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yf-flights .count { display: inline-flex; align-items: center; gap: 2px; }
.yf-flights .count output { min-width: 2.2em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.yf-flights button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #c9d3dd; background: var(--white);
  font: inherit; font-size: 1.1rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.yf-flights button:hover { border-color: var(--teal); color: var(--navy); }
.yf-flights .empty { color: var(--muted); }

.yf-settings { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; }
.yf-settings .yf-field { margin: 0; width: 110px; }
.yf-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.yf-seg label { display: inline-block; }
.yf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.yf-seg span {
  display: inline-block; padding: 11px 16px; border: 1px solid #c9d3dd; background: var(--white);
  font-size: 0.95rem; cursor: pointer; margin-right: -1px;
}
.yf-seg label:first-of-type span { border-radius: 12px 0 0 12px; }
.yf-seg label:last-of-type span { border-radius: 0 12px 12px 0; }
.yf-seg input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.yf-seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.yf-poster { position: sticky; top: 88px; }
@media (max-width: 900px) { .yf-poster { position: static; max-width: 420px; margin: 0 auto; width: 100%; } }
.yf-canvas-wrap { border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(14, 34, 54, 0.28); background: var(--night); }
.yf-canvas-wrap canvas { display: block; width: 100%; height: auto; }
.yf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.yf-hint { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }

.yf-info { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.yf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .yf-cards { grid-template-columns: 1fr; } }
.yf-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.yf-card p { margin: 0; color: var(--muted); }
