/* ============================================================================
   pages/forecast.css
   Stránka Předpověď — Nordic Clean redesign (Fáze 2, 04/2026).
   Vzor: design_handoff_predpoved/Predpoved.html.
   Barvy z design-tokens.css (--blue, --green, --gold, --ink-*, --line).
   ============================================================================ */

/* Lokální aliasy pro tokeny ze vzoru (Predpoved.html měl lehce jiná pojmenování) */
.forecast-wrap {
  --surface:     var(--bg-surface, #FFFFFF);
  --line-strong: #DDE1EB;
  --blue-50:     #EEF1FA;
  --blue-100:    #DCE3F3;
  --blue-deep:   #001550;
  --green-50:    #F1F9EA;
  --green-100:   #E1F2D1;
  --warn:        #E8994F;
  --alert:       #C03030;
  --shadow-card:       0 4px 24px rgba(15,25,51,0.04);
  --shadow-card-hover: 0 12px 32px rgba(15,25,51,0.07);

  /* Sdílený layout token — na FHD 1320 px, na velkých monitorech do 1800 px */
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 28px 40px 80px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}

.forecast-wrap * { box-sizing: border-box; }
.forecast-wrap em { font-style: italic; }
.forecast-wrap h1, .forecast-wrap h2, .forecast-wrap h3, .forecast-wrap h4 { font-weight: 500; margin: 0; }
.forecast-wrap a { color: inherit; text-decoration: none; }

/* Drobečky + nadpis */
.forecast-wrap .crumbs { font-size: 12px; color: var(--ink-muted); margin-bottom: 12px; }
.forecast-wrap .crumbs a { color: var(--ink-muted); }
.forecast-wrap .crumbs a:hover { color: var(--blue); }

.forecast-wrap .page-title {
  font-family: 'Instrument Serif', serif;
  font-size: 64px; font-weight: 400; line-height: 1.05;
  color: var(--ink); letter-spacing: -.01em;
}
.forecast-wrap .page-title em { font-style: italic; color: var(--blue); }

.forecast-wrap .page-sub {
  font-size: 15px; color: var(--ink-soft); max-width: 720px;
  margin-top: 12px;
  line-height: 1.55;
}

/* ============= HERO: KONSENSUS ============= */
.forecast-wrap .consensus {
  margin-top: 30px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F7F9FD 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.forecast-wrap .consensus::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(102,188,41,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.forecast-wrap .cns-icon { width: 220px; height: 160px; position: relative; }
.forecast-wrap .cns-icon svg { width: 100%; height: 100%; }
.forecast-wrap .cns-main { position: relative; }
.forecast-wrap .cns-label {
  font-size: 11px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 12px;
}
.forecast-wrap .cns-title {
  font-family: 'Instrument Serif', serif;
  font-size: 46px; font-weight: 400; line-height: 1.08;
  color: var(--ink); letter-spacing: -.01em;
  margin-bottom: 14px;
}
.forecast-wrap .cns-title em { font-style: italic; color: var(--blue); }
.forecast-wrap .cns-desc {
  font-size: 14.5px; color: var(--ink-soft); max-width: 560px;
  line-height: 1.55;
}
.forecast-wrap .cns-right {
  display: flex; flex-direction: column; gap: 14px;
  align-items: stretch;
}
.forecast-wrap .cns-agree {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px 20px;
}
.forecast-wrap .cns-agree .lbl {
  font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 8px;
}
.forecast-wrap .cns-agree .val {
  display: flex; align-items: baseline; gap: 6px;
  font-family: 'Instrument Serif', serif;
}
.forecast-wrap .cns-agree .val .num { font-size: 42px; color: var(--green-deep); }
.forecast-wrap .cns-agree .val .tot { font-size: 18px; color: var(--ink-muted); }
.forecast-wrap .cns-agree .txt {
  font-size: 12px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5;
}
.forecast-wrap .cns-updated {
  font-size: 11.5px; color: var(--ink-muted); text-align: center;
  padding: 10px 0 0;
  border-top: 1px dashed var(--line);
}
.forecast-wrap .cns-updated strong { color: var(--ink); font-weight: 500; }

/* ============= TIMELINE 48H ============= */
.forecast-wrap .timeline {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 28px 18px;
}
.forecast-wrap .tl-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 14px; flex-wrap: wrap;
}
.forecast-wrap .tl-head h3 {
  font-family: 'Instrument Serif', serif; font-size: 20px; font-weight: 400;
}
.forecast-wrap .tl-head .note { font-size: 11.5px; color: var(--ink-muted); }

.forecast-wrap .tl-axis {
  position: relative;
  height: 26px;
  margin: 0 6px 4px;
  border-bottom: 1px solid var(--line-strong);
}
.forecast-wrap .tl-tick {
  position: absolute; bottom: 0; width: 1px; height: 6px;
  background: var(--line-strong);
}
.forecast-wrap .tl-tick.major { height: 10px; background: var(--ink-dim, #A4ABBD); }
.forecast-wrap .tl-label {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 10.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums;
}
.forecast-wrap .tl-label.now { color: var(--blue); font-weight: 500; }

.forecast-wrap .tl-rows { padding: 8px 6px 0; display: flex; flex-direction: column; gap: 10px; }
.forecast-wrap .tl-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  gap: 14px; align-items: center;
  font-size: 12px;
}
.forecast-wrap .tl-row-name {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 500;
}
.forecast-wrap .tl-row-name .dot { width: 10px; height: 10px; border-radius: 50%; }
.forecast-wrap .tl-row-name .dot.davis { background: #3B6DB8; }
.forecast-wrap .tl-row-name .dot.sager { background: var(--green); }
.forecast-wrap .tl-row-name .dot.zamb  { background: var(--gold); }
.forecast-wrap .tl-bar-wrap {
  position: relative; height: 16px;
  background: #F7F8FB; border-radius: 8px; overflow: hidden;
}
.forecast-wrap .tl-bar {
  position: absolute; top: 0; bottom: 0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
  font-size: 10.5px; color: #fff; font-weight: 500;
}
.forecast-wrap .tl-bar.davis { background: linear-gradient(90deg, rgba(59,109,184,.95) 0%, rgba(59,109,184,.55) 100%); }
.forecast-wrap .tl-bar.sager { background: linear-gradient(90deg, rgba(102,188,41,.95) 0%, rgba(102,188,41,.55) 100%); }
.forecast-wrap .tl-bar.zamb  { background: linear-gradient(90deg, rgba(183,154,79,.95) 0%, rgba(183,154,79,.55) 100%); }
.forecast-wrap .tl-row-range {
  font-size: 11px; color: var(--ink-muted);
  font-variant-numeric: tabular-nums; text-align: right;
}

/* ============= KARTY METOD ============= */
.forecast-wrap .methods {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.forecast-wrap .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.forecast-wrap .card:hover { box-shadow: var(--shadow-card-hover); }

.forecast-wrap .mth-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.forecast-wrap .mth-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
}
.forecast-wrap .mth-brand .mark {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 600;
}
.forecast-wrap .mth-brand .mark.davis { background: #3B6DB8; }
.forecast-wrap .mth-brand .mark.sager { background: var(--green-deep); }
.forecast-wrap .mth-brand .mark.zamb  { background: var(--gold); }

.forecast-wrap .mth-horizon {
  font-size: 11px; color: var(--blue);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 3px 9px; border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.forecast-wrap .mth-title {
  font-family: 'Instrument Serif', serif;
  font-size: 32px; font-weight: 400; line-height: 1.15;
  color: var(--ink); letter-spacing: -.005em;
  margin-bottom: 14px;
  min-height: 2.3em;
}
.forecast-wrap .mth-title em { font-style: italic; color: var(--blue); }
.forecast-wrap .card.md .mth-title { font-size: 26px; min-height: 1.8em; }

.forecast-wrap .mth-desc {
  font-size: 13.5px; color: var(--ink-soft);
  margin-bottom: 18px; line-height: 1.55;
}
.forecast-wrap .mth-desc a { color: var(--blue); border-bottom: 1px solid var(--blue-100); }
.forecast-wrap .mth-desc a:hover { border-bottom-color: var(--blue); }

/* Pill badges */
.forecast-wrap .mth-inputs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.forecast-wrap .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.forecast-wrap .pill strong { color: var(--ink); font-weight: 500; }
.forecast-wrap .pill .trend-up { color: var(--green-deep); }
.forecast-wrap .pill .trend-dn { color: var(--alert); }
.forecast-wrap .pill .trend-fl { color: var(--ink-muted); }

/* Ilustrace v Davis kartě */
.forecast-wrap .mth-illus {
  margin: 6px 0 18px;
  height: 130px;
  background: linear-gradient(180deg, #EEF3F9 0%, #F7F9FC 100%);
  border-radius: 16px;
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.forecast-wrap .mth-illus svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.forecast-wrap .mth-illus .cap {
  position: absolute; bottom: 8px; right: 12px;
  font-size: 10px; color: var(--ink-muted);
  background: rgba(255,255,255,.8);
  padding: 2px 7px; border-radius: 8px;
}

/* Confidence bar */
.forecast-wrap .mth-confidence { display: flex; align-items: center; gap: 4px; }
.forecast-wrap .conf-bar { display: flex; gap: 2px; }
.forecast-wrap .conf-bar span {
  width: 5px; height: 13px; border-radius: 1px; background: var(--line-strong);
}
.forecast-wrap .conf-bar.high span:nth-child(-n+3),
.forecast-wrap .conf-bar.mid  span:nth-child(-n+2),
.forecast-wrap .conf-bar.low  span:nth-child(-n+1) {
  background: var(--green-deep);
}
.forecast-wrap .conf-label {
  font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .07em;
  margin-left: 4px;
}

/* Sager accordion */
.forecast-wrap .mth-accordion {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding-top: 14px;
}
.forecast-wrap .mth-accordion summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 500; color: var(--blue);
  padding: 4px 0;
}
.forecast-wrap .mth-accordion summary::-webkit-details-marker { display: none; }
.forecast-wrap .mth-accordion summary::after {
  content: '+'; font-size: 18px; line-height: 1; color: var(--ink-muted);
  transition: transform .2s;
}
.forecast-wrap .mth-accordion[open] summary::after { content: '−'; }
.forecast-wrap .mth-accordion .detail {
  padding: 14px 0 4px;
  font-size: 12.5px; color: var(--ink-soft);
  line-height: 1.65;
}

/* Zambretti originál */
.forecast-wrap .zamb-orig {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--ink-muted);
  font-style: italic;
}
.forecast-wrap .zamb-orig strong { color: var(--ink-soft); font-weight: 500; font-style: normal; }

/* Silné stránky / slabiny metody */
.forecast-wrap .mth-traits {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.55;
}
.forecast-wrap .mth-traits strong {
  color: var(--ink); font-weight: 500;
  display: inline-block;
  margin-right: 4px;
}
.forecast-wrap .mth-traits strong + strong { margin-left: 6px; }

/* ============= POROVNÁNÍ ============= */
.forecast-wrap .sh {
  margin-top: 44px; margin-bottom: 18px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.forecast-wrap .sh h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 34px; font-weight: 400; color: var(--ink);
}
.forecast-wrap .sh h2 em { color: var(--blue); font-style: italic; }
.forecast-wrap .sh-sub { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.forecast-wrap .compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.forecast-wrap .cmp-top {
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--green-50) 0%, #FBFDF8 100%);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px;
}
.forecast-wrap .cmp-verdict {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.forecast-wrap .cmp-verdict svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 2.5; fill: none; }
.forecast-wrap .cmp-verdict.mid { background: var(--warn); }
.forecast-wrap .cmp-verdict.low { background: var(--alert); }
.forecast-wrap .cmp-verdict-txt .lbl {
  font-size: 11px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.forecast-wrap .cmp-verdict-txt .val {
  font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--ink);
  margin-top: 2px;
}
.forecast-wrap .cmp-verdict-txt .val strong { color: var(--green-deep); font-weight: 400; }

.forecast-wrap table.cmp-table { width: 100%; border-collapse: collapse; }
.forecast-wrap table.cmp-table th,
.forecast-wrap table.cmp-table td {
  padding: 14px 20px; font-size: 13px;
  text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.forecast-wrap table.cmp-table th {
  font-weight: 500; color: var(--ink-soft);
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  background: var(--bg);
}
.forecast-wrap table.cmp-table tr:last-child td { border-bottom: none; }
.forecast-wrap table.cmp-table td.meth {
  font-family: 'Instrument Serif', serif; font-size: 16px;
  color: var(--ink); font-style: italic;
  width: 200px;
}
.forecast-wrap table.cmp-table td.vsum { font-weight: 500; color: var(--ink); }

.forecast-wrap .verdict-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 500;
}
.forecast-wrap .verdict-chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.forecast-wrap .verdict-chip.ok { background: var(--green-50); color: var(--green-deep); }
.forecast-wrap .verdict-chip.ok .dot { background: var(--green-deep); }
.forecast-wrap .verdict-chip.partial { background: var(--gold-50); color: var(--gold-text); }
.forecast-wrap .verdict-chip.partial .dot { background: var(--gold); }
.forecast-wrap .verdict-chip.bad { background: #FBE6E6; color: #8B1E1E; }
.forecast-wrap .verdict-chip.bad .dot { background: var(--alert); }

/* ============= VZDĚLÁVACÍ KARTY ============= */
.forecast-wrap .edu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.forecast-wrap .edu-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px;
  transition: box-shadow .2s, transform .2s;
}
.forecast-wrap .edu-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.forecast-wrap .edu-card .edu-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.forecast-wrap .edu-card .edu-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.forecast-wrap .edu-card.sager .edu-icon { background: var(--green-50); }
.forecast-wrap .edu-card.sager .edu-icon svg { stroke: var(--green-deep); }
.forecast-wrap .edu-card.zamb .edu-icon { background: var(--gold-50); }
.forecast-wrap .edu-card.zamb .edu-icon svg { stroke: var(--gold-text); }

.forecast-wrap .edu-card h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px; font-weight: 400;
  margin-bottom: 4px;
}
.forecast-wrap .edu-card .edu-year {
  font-size: 11.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px;
}
.forecast-wrap .edu-card p {
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.65;
}
.forecast-wrap .edu-card .edu-stats {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.forecast-wrap .edu-stat .k {
  font-size: 10.5px; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.forecast-wrap .edu-stat .v {
  font-size: 15px; color: var(--ink); font-weight: 500;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}

/* ============= ODKAZ / CTA ============= */
.forecast-wrap .external {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  flex-wrap: wrap;
}
.forecast-wrap .external-txt {
  font-size: 13.5px; color: var(--ink-soft); max-width: 640px;
  line-height: 1.55;
}
.forecast-wrap .external-txt strong { color: var(--ink); font-weight: 500; }
.forecast-wrap .external-links { display: flex; gap: 10px; flex-wrap: wrap; }
.forecast-wrap .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: all .15s;
}
.forecast-wrap .btn:hover { border-color: var(--blue); color: var(--blue); }
.forecast-wrap .btn.primary {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.forecast-wrap .btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

/* ============= Responzivní chování ============= */
@media (max-width: 1100px) {
  .forecast-wrap .consensus { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .forecast-wrap .cns-icon { width: 180px; height: 130px; margin: 0 auto; }
  .forecast-wrap .methods { grid-template-columns: 1fr 1fr; }
  .forecast-wrap .edu-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .forecast-wrap { padding: 20px 16px 56px; }
  .forecast-wrap .page-title { font-size: 44px; }
  .forecast-wrap .cns-title { font-size: 32px; }
  .forecast-wrap .mth-title { font-size: 24px; min-height: auto; }
  .forecast-wrap .card.md .mth-title { font-size: 22px; }
  .forecast-wrap .methods { grid-template-columns: 1fr; }
  .forecast-wrap .edu-grid { grid-template-columns: 1fr; }
  .forecast-wrap table.cmp-table th,
  .forecast-wrap table.cmp-table td { padding: 10px 12px; font-size: 12px; }
  .forecast-wrap table.cmp-table td.meth { width: auto; font-size: 14px; }
  .forecast-wrap .tl-row { grid-template-columns: 100px 1fr; }
  .forecast-wrap .tl-row-range { display: none; }
  .forecast-wrap .external { flex-direction: column; align-items: flex-start; }
}
