:root{
  --bg: #f5e9ed;
  --paper: #f7f6f4;
  --ink: #121212;
  --muted: #6c6c6c;
  --line: rgba(0,0,0,0.10);
  --radius: 22px;
  --shadow: 0 18px 55px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
}

.site-header{ padding: 18px 18px 0; }

.topbar{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.myname{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing: 0.4px;
  font-size: 18px;
  white-space: nowrap;
}

.nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover{
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.65);
}

.nav a.is-active{
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,0.65);
}

.cta{
  text-decoration: none;
  font-size: 13px;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  white-space: nowrap;
}

.hero{
  margin: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.hero-card{ padding: 14px 14px 6px; }

.hero h1{
  margin: 0 0 10px;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero h1 span{ font-weight: 600; }

.subhead{
  color: var(--muted);
  margin-top: 6px;
  max-width: 60ch;
}

.mini-note{
  margin-top: 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px;
  font-size: 13px;
}

.hero-media{
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  justify-self: end;
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media figcaption{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.85);
}

.mission{
  margin: 0 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mission h2{ margin: 0; font-size: 18px; }

.tiles{
  margin: 12px 18px 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tile{
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center;
}

.tile:hover{
  transform: scale(1.03);
  box-shadow: 0 18px 55px rgba(0,0,0,0.10);
}

.tile img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}

.tile h3{ margin: 0 0 6px; font-size: 14px; }
.tile p{ margin: 0; color: var(--muted); font-size: 13px; }

.editorial{
  margin: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
}

.big-word{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 140px;
  letter-spacing: -2px;
  color: rgba(0,0,0,0.07);
  position: absolute;
  left: 12px;
  bottom: -32px;
  pointer-events: none;
  user-select: none;
}

.editorial-card{ position: relative; max-width: 75ch; }
.editorial-card h2{ margin: 0 0 8px; }

.breakouts{
  margin: 0 18px 18px;
  display: grid;
  gap: 14px;
}

.breakout{
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.data-figure{ margin: 0; }
.data-figure figcaption{ font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.mini-table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.mini-table th, .mini-table td{
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mini-table th{ background: rgba(0,0,0,0.03); }

.dataset{
  margin: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.dataset-grid{
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 14px;
  align-items: start;
}

.table-wrap{
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.data-table{
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.data-table th, .data-table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13px;
}

.data-table th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

.brand-btn{
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brand-btn:hover{ opacity: 0.75; }

.output-wrap{
  position: sticky;
  top: 12px;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.output-box{
  padding: 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  min-height: 120px;
}

.output-actions{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.small-btn{
  display: inline-block;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.small-btn:hover{ opacity: 0.8; }

.data-table th.core-col,
.data-table td.brand-cell{
  background: rgba(0, 0, 0, 0.04);
  font-weight: 700;
}

.data-table tbody tr.row-hover{
  outline: 2px solid rgba(0,0,0,.12);
  transform: translateY(-1px);
}

.data-table tbody tr.row-hover td.brand-cell.core-spotlight{
  outline: 2px solid rgba(0,0,0,.25);
  background: rgba(0, 0, 0, 0.07);
}

.tip{
  position: absolute;
  z-index: 9999;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: none;
}

.glossary{
  margin: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.dl{
  margin: 0;
  display: grid;
  gap: 12px;
}

.dl dt{ font-weight: 700; }
.dl dd{
  margin: 0;
  color: var(--muted);
  display: none;
}

.walkthrough{ margin: 18px 0 12px; }
.walk-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
}
.walk-btn{
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
}
.walk-term{
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.sources{ margin: 18px; padding: 18px 24px; }
.sources a{ color: var(--ink); text-decoration: underline; }

.site-footer{
  margin: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .tiles{ grid-template-columns: repeat(2, 1fr); }
  .dataset-grid{ grid-template-columns: 1fr; }
  .output-wrap{ position: static; }
  .data-table{ min-width: 760px; }
}

@media (max-width: 560px){
  .tiles{ grid-template-columns: 1fr; }
  .data-table{ min-width: 680px; }
}
