/* =====================================================================
   WISE 2027 — home page only (loaded after style.css on index.html).
   Full-height photo with the conference name, key facts, then sections.
   ===================================================================== */

/* ---------- Header over the photo ---------- */
body.home #header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.25s, box-shadow 0.25s;
}
body.home #header:not(.solid) .title a,
body.home #header:not(.solid) .dropbtn { color: #fff; }
body.home #header:not(.solid) .dropbtn.active { border-bottom-color: #f3d2b0; }
body.home #header.solid { background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }
body.home #header:not(.solid) .title span { color: #f3d2b0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  padding: 7rem 0 7.5rem;
  color: #fff;
  background: #3d5a75 url("images/banner.jpg") 78% 45% / cover no-repeat;
}
.hero::before {                     /* darker on the left, where the text is */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 35, 55, 0.62) 0%, rgba(20, 35, 55, 0.35) 55%, rgba(20, 35, 55, 0.08) 100%);
}
.hero .container { position: relative; width: 100%; }
.hero-text { max-width: 860px; }
.hero h1 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero h1 .accent { color: #f3d2b0; }
.hero .meta { margin: 1.4rem 0 0; font-size: 1.35rem; text-align: left; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn.solid { background: #fff; color: var(--primary); border-color: #fff; }
.btn.solid:hover { background: #f3d2b0; border-color: #f3d2b0; color: var(--primary); }

/* ---------- Key facts: cards overlapping the photo ---------- */
.facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -4rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30, 50, 70, 0.14);
}
.fact { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact .value { display: block; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--primary); }
.fact .sub { display: block; margin-top: 0.2rem; font-size: 0.9rem; color: var(--muted); }
.fact .countdown { gap: 0.25rem; margin-top: 0.1rem; }
.fact .cd-unit { padding: 0.3rem 0.1rem; font-size: 0.6rem; }
.fact .cd-unit span { font-size: 1.15rem; }

/* ---------- Sections ---------- */
.band { padding: 4.5rem 0; }
.band.tint { background: var(--gray); }
.band h2 { font-size: 1.9rem; }

/* Welcome text */
.welcome > div { max-width: 900px; }   /* keep lines readable; aligned left with the other sections */

/* News + dates side by side (timeline styles are in style.css) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

/* Topic tags (styles in style.css) */
.band .tags { margin: 1.4rem 0 1.8rem; }

/* Previous editions */
.editions-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.editions-row li { margin: 0; }
.editions-row a {
  display: block;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  color: var(--text);
}
.editions-row a:hover { border-left-color: var(--warm-line); text-decoration: none; box-shadow: 0 4px 12px rgba(30, 50, 70, 0.08); }
.editions-row b { display: block; font-size: 1.1rem; color: var(--accent); }
.editions-row span { font-size: 0.9rem; color: var(--muted); }
.editions-row .more { display: none; }
.editions-row.open .more { display: block; }
.toggle { margin-top: 1.2rem; }
button.btn { font-family: inherit; cursor: pointer; background: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .editions-row { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  body.home #header { background: rgba(20, 35, 55, 0.35); }
  body.home #header.open, body.home #header.solid { background: #fff; }
  body.home #header.open .title a { color: #000; }
  .hero { min-height: 0; padding: 7rem 0 6rem; }
  .hero h1 { font-size: 2rem; }
  .hero .meta { font-size: 1.1rem; }
  .facts { grid-template-columns: 1fr; margin-top: -3rem; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  body.home #header.open .dropbtn { color: var(--muted); }
  body.home #header.open a.dropbtn { color: #111; }
  .band { padding: 3rem 0; }
  .editions-row { grid-template-columns: repeat(2, 1fr); }
}
