/* ==========================================================================
   DataWise project website: shared styles
   ========================================================================== */

:root {
  --navy: #0a0e1a;
  --navy-soft: #10162a;
  --ink: #111827;
  --muted: #55606f;
  --muted-soft: #7c8698;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef1f7;
  --border: #e3e7ef;

  --indigo: #4f46e5;
  --teal: #0d9488;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #d97706;

  --gradient-hero: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.55), transparent 45%),
                   radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.45), transparent 40%),
                   linear-gradient(135deg, #1e1b4b 0%, #16213e 45%, #063a35 100%);
  --gradient-strip: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
  --gradient-text: linear-gradient(90deg, #818cf8, #22d3ee);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(15, 23, 42, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav.main-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

nav.main-nav a:hover { background: var(--bg-soft-2); color: var(--ink); }
nav.main-nav a.active { background: var(--bg-soft-2); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.strip { height: 3px; background: var(--gradient-strip); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--gradient-hero);
  color: #fff;
  padding: 76px 24px 84px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero .icon { font-size: 2.6rem; margin-bottom: 14px; }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: #bcd3ff;
  margin-bottom: 18px;
}

.hero .lede {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero .cta-row {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { box-shadow: var(--shadow-hover); }

.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* smaller hero variant used on inner pages */
.hero.compact { padding: 58px 24px 66px; }
.hero.compact h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }

/* ---------- Status / notice banner ---------- */

.notice {
  max-width: var(--max);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.notice .dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

.notice strong { color: var(--ink); }

/* ---------- Sections ---------- */

section.block { padding: 72px 24px; }
section.block.soft { background: var(--bg-soft); }
section.block.tight { padding: 48px 24px; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head .kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Feature / card grids ---------- */

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card .icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-soft-2);
  margin-bottom: 16px;
}

.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }

.card .meta {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
}

/* numbered step / pillar cards */
.step-card { position: relative; padding-top: 34px; }
.step-card .num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-strip);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

/* ---------- Left-accent list (milestones / events / placeholders) ---------- */

.accent-item {
  border-left: 4px solid var(--teal);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 14px;
}

.accent-item.muted { border-left-color: var(--border); }

.accent-item .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.accent-item h4 { font-size: 1.02rem; font-weight: 700; }
.accent-item .when { font-size: 0.85rem; color: var(--muted-soft); font-weight: 600; }
.accent-item p { color: var(--muted); font-size: 0.94rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag.planned { background: #fef3c7; color: #92400e; }
.tag.progress { background: #dbeafe; color: #1e40af; }
.tag.done { background: #d1fae5; color: #065f46; }

/* ---------- Work package table-cards ---------- */

.wp-card { border-left: 4px solid var(--indigo); }
.wp-card .wp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.wp-card .wp-id {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--indigo);
  text-transform: uppercase;
}
.wp-card .wp-when { font-size: 0.82rem; color: var(--muted-soft); font-weight: 600; }
.wp-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.wp-card .deliv {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.wp-card .deliv .label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-soft);
  margin-bottom: 8px;
  display: block;
}
.wp-card .deliv li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.wp-card .deliv li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Flow diagram (work plan) ---------- */

.flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
}
.flow-row { display: flex; gap: 10px; flex-wrap: wrap; }
.flow-box {
  flex: 1 1 0;
  min-width: 150px;
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
.flow-box small { display: block; font-weight: 500; opacity: 0.85; font-size: 0.78rem; margin-top: 4px; }
.flow-box.top { background: linear-gradient(135deg, #4338ca, #4f46e5); }
.flow-box.mid { background: linear-gradient(135deg, #0f766e, #0d9488); }
.flow-box.side {
  background: linear-gradient(135deg, #9d174d, #be185d);
  flex: 0 0 140px;
}
.flow-box.base { background: linear-gradient(135deg, #374151, #1f2937); }
.flow-arrow { text-align: center; color: var(--muted-soft); font-size: 1.1rem; }

/* ---------- Effort chart ---------- */

.effort-wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.donut {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--indigo) 0% 3%,
    var(--cyan) 3% 20%,
    var(--teal) 20% 78%,
    var(--emerald) 78% 100%
  );
}
.donut .hole {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.donut .hole b { font-size: 1.3rem; }
.donut .hole span { font-size: 0.72rem; color: var(--muted-soft); }

.legend { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.legend .row { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; }
.legend .swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.legend .pct { margin-left: auto; font-weight: 700; color: var(--ink); }

/* ---------- Logo grid (consortium) ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.logo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.logo-card .logo-box {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-card img { max-height: 44px; max-width: 100%; object-fit: contain; }

.logo-card .initials {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient-strip);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card .name { font-size: 0.82rem; font-weight: 600; color: var(--ink); }

.partner-group h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.partner-group .desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; max-width: 640px; }
.partner-group + .partner-group { margin-top: 44px; }

/* ---------- Team page ---------- */

.team-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.team-column + .team-column {
  border-left: 1px solid var(--border);
  padding-left: 56px;
}

.team-subgroup h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.team-subgroup + .team-subgroup { margin-top: 40px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.team-card {
  display: block;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.team-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: var(--gradient-strip);
  overflow: hidden;
}

.team-avatar.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card .role { font-size: 0.85rem; color: var(--teal); font-weight: 600; }

.team-card.placeholder {
  border: 2px dashed var(--border);
  background: var(--bg-soft);
}

.team-card.placeholder .team-avatar {
  background: var(--bg-soft-2);
  color: var(--muted-soft);
  font-size: 1.6rem;
}

.team-card.placeholder h4 { color: var(--muted-soft); font-weight: 600; }
.team-card.placeholder .role { color: var(--muted-soft); }

/* ---------- Research partner cards ---------- */

.org-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.org-card .org-top { display: flex; align-items: center; gap: 14px; }
.org-card .org-mark {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-soft-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.org-card h3 { font-size: 1.1rem; font-weight: 700; }
.org-card .role { font-size: 0.82rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.org-card p { color: var(--muted); font-size: 0.94rem; }
.org-card .link { font-size: 0.88rem; font-weight: 600; color: var(--indigo); }

/* ---------- Value chain / audience roles ---------- */

.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.role-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--bg-soft);
}
.role-chip .letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--indigo); color: #fff; font-weight: 800; font-size: 0.85rem;
  margin-bottom: 10px;
}
.role-chip h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.role-chip p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Timeline (milestones) ---------- */

.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--border);
}
.timeline .t-item { position: relative; padding-bottom: 26px; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
}
.timeline .t-item h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.timeline .t-item .when { font-size: 0.8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; display: block; }
.timeline .t-item p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Placeholder / coming-soon cards ---------- */

.placeholder-card {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted-soft);
  background: var(--bg-soft);
}
.placeholder-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.placeholder-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.placeholder-card p { font-size: 0.9rem; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }

.footer-brand { display: inline-block; margin-bottom: 16px; padding: 8px 14px; background: #fff; border-radius: var(--radius-sm); }
.footer-logo { height: 24px; width: auto; display: block; }

.funding-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.funding-strip .flogo {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
    display: none;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; border-radius: 8px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .effort-wrap { flex-direction: column; }
  .flow-row { flex-direction: column; }
  .team-columns { grid-template-columns: 1fr; gap: 40px; }
  .team-column + .team-column { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 40px; }
  .flow-box.side { flex: 1 1 auto; }
}

/* ---------- Event card, countdown, agenda ---------- */

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 820px;
}

.event-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.event-date {
  flex-shrink: 0;
  width: 96px;
  padding: 12px 0;
  border-radius: var(--radius);
  background: var(--gradient-strip);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.event-date .month { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.event-date .day { font-size: 2.4rem; font-weight: 800; margin: 4px 0; }
.event-date .weekday { font-size: 0.75rem; font-weight: 600; opacity: 0.9; }

.event-info h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.event-meta { color: var(--muted); font-size: 0.95rem; }
.event-meta + .event-meta { margin-top: 4px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0;
  padding: 10px 14px;
  max-width: 340px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cd-unit { display: flex; flex-direction: column; }
.cd-num { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.65); }
.cd-done { grid-column: 1 / -1; font-weight: 700; }

.agenda-title { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.agenda { border-left: 2px solid var(--border); padding-left: 20px; }
.agenda > li { display: flex; gap: 16px; padding: 8px 0; }
.agenda .time { flex-shrink: 0; width: 48px; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.agenda .item { color: var(--ink); }
.agenda .item ul { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
.agenda .item ul li { padding: 2px 0 2px 14px; position: relative; }
.agenda .item ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

@media (max-width: 760px) {
  .event-card { padding: 22px; }
  .countdown { padding: 10px 8px; gap: 4px; }
}

.empty-note { color: var(--muted); }
.event-card + .event-card { margin-top: 24px; }
.event-card.is-past { box-shadow: none; background: var(--bg-soft); }
.event-card.is-past .event-date { background: var(--muted-soft); }

/* ---------- Next event box (homepage) ---------- */

.notice.next-event {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.next-event-text { display: flex; flex-direction: column; gap: 2px; }
.next-event-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.next-event-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.next-event-title:hover { color: var(--indigo); text-decoration: underline; }
.countdown.countdown-inline { margin: 0 0 0 auto; }

.events-intro { margin-bottom: 56px; color: var(--muted); font-size: 1rem; }
.events-intro a { color: var(--indigo); font-weight: 600; }
.events-intro a:hover { text-decoration: underline; }

.agenda-tba { color: var(--muted); }

/* ---------- Resource list ---------- */

.resource-list { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }

.resource-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.resource-list a:hover { box-shadow: var(--shadow); border-color: var(--teal); }

.res-type {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-soft-2);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.res-title { flex: 1; font-weight: 600; }
.res-size { color: var(--muted-soft); font-size: 0.85rem; white-space: nowrap; }

.resource-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
