:root{
  --nav-height: 88px;

  --page-max: 1280px;
  --pad-x: 20px;

  --accent: #4682B4;
  --accent-2: #2D8BBA;
  --accent-soft: #7FBBE9;
  --accent-wash: #E6F0FA;

  --text: #333;
  --muted: #555;
  --rule: #eee;
  --bg: #fff;
  --surface: #fafafa;

  --callout-bg: #f9f9f9;
  --callout-border: #ddd;
  }



a{ color: var(--accent); }
a:hover{ color: var(--accent-2); }  


/* Nav Section */
#nav{
  background: var(--accent);  
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 12px 0;
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  }

.brand-mark{
  font-size: 0.85rem;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  text-decoration: none;
  display: inline-block;
}

.brand-mark:visited {
  color: white;
}

.brand-mark:hover {
  color: white;
  opacity: 0.85;
}


.nav-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-item{
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.95;
}

.nav-item:visited {
  color: white;
}

.nav-item:hover,
.nav-item:focus {
  color: white;
  background: rgba(255,255,255,0.14);
}

/* Footer Section */

.site-footer{
  background: var(--accent);
  padding: 28px 0 34px;
  margin-top: 80px; 
   border-top: 1px solid rgba(255,255,255,0.18);
}

.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-title{
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.footer-meta{
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}



/* OVERVIEW PAGE /*

/*Hero Section*/




.byline{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.byline img{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.byline-meta{
  display: grid;
  gap: 2px;
}

.byline-name{
  font-weight: 700;
  color: var(--text);
}

.byline-sub{
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-full{
  width: 100vw;
  margin: 18px 0 0;
  margin-left: 50%;
  transform: translateX(-50%);
  height: calc(100vh - var(--nav-height) - 260px);
  min-height: 520px;
  max-height: 860px;
  overflow: hidden;
}

.hero-full img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}


/*
.hero-media{
  margin-top: 24px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg);
  height: 320px;
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;     
  object-position: right center; 
  filter: brightness(0.95) contrast(1.05);
}
*/

.kicker{
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.lede{
  margin-top: 10px;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 2.1;
  margin-bottom: 40px;
  font-family: "Merriweather", Georgia, serif;
}


.lede p{
  margin: 0 0 22px;
 
}

.byline{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.byline img{
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.byline-meta{ display: grid; gap: 2px; }
.byline-name{ font-weight: 700; color: var(--text); }
.byline-sub{ font-size: 0.95rem; color: var(--muted); line-height: 1.35; }






/* Core Layout & Typography*/

.container {
    max-width: var(--page-max);
    padding: 0 var(--pad-x);
    margin: 0 auto;
  }

.page-header {
   background: var(--bg);
   padding: 96px 0 0;
   color: var(--text);
   border-bottom: none;
  }



.title{
  margin: 0 0 28px;
  font-size: clamp(3.2rem, 4vw, 4rem);
  line-height: 1.15;   
  letter-spacing: -0.02em;
}


.subtitle {
   margin: 0 0 48px;
   font-size: 1.35rem;
   color: var(--muted);
   line-height: 1.6;
  }

.section-title{
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-intro{
  margin: 0 0 30px;
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 85ch;
  color: var(--text);
}




body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}


/* Key Takeaways */

.key-takeaways{
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
}

.key-grid{
  display: grid;
  gap: 14px;
}

.key-item{
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--rule);
}



/* ---------- Sections below hero ---------- */

.section{
  padding: 72px 0;
}

.section-kicker{
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* Section 1: Insight cards */
.section-insights{
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.insight-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.insight-grid .insight-card:last-child{
  grid-column: 1 / -1;
}

.insight-card{
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 18px 16px;
}

.insight-title{
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.insight-text{
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

/* Section 2: Why This Matters */
.section-why{
  background: var(--surface);
  padding: 100px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}


.why-inner{
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}


.why-layout{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.why-text{
  margin: 0 0 16px;
  line-height: 1.75;
}

.quote-shift{
  margin: 64px auto;
  max-width: 900px;
  text-align: center;
}


.quote-line{
  margin: 0 0 24px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--muted);
}

.quote-line--emph{
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}


.quote-mark{
  opacity: 0.6;
}

/* Section 3: Dataset */
.section-dataset{
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.dataset-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2-column layout */
.dataset-split{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch; 
}

.dataset-left{
  min-width: 0;
}

.dataset-media{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  height: 100%;
}


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

/* Meta block */
.dataset-meta{
  margin: 10px 0 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 14px;
}

.meta-row{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.meta-row:last-child{ border-bottom: none; }

.meta-label{ color: var(--muted); font-size: 0.95rem; }
.meta-value{ color: var(--text); font-weight: 600; text-align: right; }

.dataset-text{
  margin: 0 0 22px;
  line-height: 1.75;
  max-width: 90ch;
}

.dataset-meta a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.dataset-meta a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* 3 mini-lists inside the left column */
.dataset-cols{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.dataset-list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 16px 14px 34px;
}

.dataset-list li{ margin: 6px 0; }

/* Responsive */
@media (max-width: 980px){
  .dataset-split{
    grid-template-columns: 1fr;
  }
  .dataset-media{
    height: 320px; 
  }
  .dataset-cols{
    grid-template-columns: 1fr;
  }
  .meta-row{
    flex-direction: column;
    align-items: flex-start;
  }
  .meta-value{ text-align: left; }
}

/* Section 4: Site flow */
.section-how{
  background: var(--surface);
  border-top: 1px solid var(--rule);
}

.site-flow{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.flow-step{
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.flow-step:last-child{
  border-bottom: none;
}



.flow-label{
  font-weight: 800;
  color: var(--accent);
}





.dataset-meta a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}





.flow-desc{
  color: var(--muted);
  line-height: 1.6;
  text-decoration: none;
}

.flow-step:hover{
  background-color: var(--surface);
}

.flow-step:hover .flow-label{
  text-decoration: underline;
  text-underline-offset: 3px;
}


.callout{
  border-radius: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.callout--accent{
  background: rgba(70,130,180,0.08);  
  border: 1px solid rgba(70,130,180,0.25);
}

.callout-title{
  margin: 0 0 8px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.callout-text{
  margin: 0;
  line-height: 1.75;
  font-size: 0.98rem;
}


/* Responsive */
@media (max-width: 860px){
  .insight-grid{
    grid-template-columns: 1fr;
  }
  .why-layout,
  .dataset-layout{
    grid-template-columns: 1fr;
  }
  .flow-step{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* KEY FINDINGS PAGE */

.page-keyfindings .container{
  max-width: 1200px;  
}


.analysis-header{
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--rule);
}

.analysis-title{
  font-size: 2.6rem;
  margin: 0 0 22px;
  line-height: 1.2;
}

.analysis-intro{
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 85ch;
}

.driver-list{
  margin: 12px 0 18px 22px;
  line-height: 1.8;
}


.finding{
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}

.finding-layout{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: start;
}

.finding--reverse .finding-layout{
  grid-template-columns: 0.75fr 1.25fr;
}

.finding--reverse .finding-text{
  order: 2;
}

.finding--reverse .finding-media{
  order: 1;
}

.finding-text {
    min-width: 0;
}

.finding-title{
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.finding-subtitle{
  font-size: 1.9rem;
  margin: 0 0 22px;
  line-height: 1.25;
}

.finding-block{
  display: grid;
  gap: 18px;
  max-width: 90ch;
}

.finding-section{
  line-height: 1.8;
}

.finding-section p{
  margin: 0;
  line-height: 1.85;
}

.finding-label{
  display: block;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent);
}

.finding-media{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.finding-media img{
  width: 100%;
  display: block;
}

.finding-media--chart img{
  height: auto;
  object-fit: contain;
  background: white;
}

.finding-media--photo{
  height: 100%;
  min-height: 420px;
}

.finding-media--photo img{
  height: 100%;
  object-fit: cover;
}

.media-caption{
  padding: 10px 12px 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}


@media (max-width: 980px){
  .finding-layout,
  .finding--reverse .finding-layout{
    grid-template-columns: 1fr;
  }
  .finding--reverse .finding-text,
  .finding--reverse .finding-media{
    order: initial;
  }
  .finding-media--photo{
    min-height: 300px;
  }
}


.systems{
  padding: 80px 0;
  background: var(--surface);
}

.systems-list{
  margin: 18px 0 22px 22px;
  line-height: 1.8;
}

.systems-stats{
  margin: 16px 0 24px 22px;
  font-weight: 600;
}


/* Data Page */

.page-data .container{
  max-width: 1200px;
}

.data-header{
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  
}

.data-header-inner{
  padding: 120px 0 70px;
}

.data-title{
  margin: 0 0 16px;
  font-size: 2.6rem;
  line-height: 1.2;
}

.data-subtitle{
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 110ch;
  color: var(--text);
}


.section-datasetmap{
  background: var(--bg);
}

.component-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.component{
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px 18px 16px;
}

.component-title{
  margin: 0 0 10px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
}

.component-list{
  margin: 0 0 10px 18px;
  line-height: 1.7;
}

.component-text{
  margin: 0;
  line-height: 1.75;
  color: var(--text);
}


.component-grid .component:last-child{
  grid-column: 1 / -1;
}


.section-notes{
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-notes .section-title{
  margin-bottom: 20px;
}


.note-box{
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 18px 18px;
  max-width: 90ch;
}

.notes-list{
  margin: 0 0 14px 18px;
  line-height: 1.8;
}

.notes-foot{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}


.section-explorer{
  background: var(--bg);
  padding-bottom: 18px;
}

.explorer-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-top: 18px;
}


.explainer{
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px 18px;
}

.explainer-title{
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.explainer-list{
  margin: 0 0 0 18px;
  line-height: 1.8;
}

@media (max-width: 900px){
  .component-grid{
    grid-template-columns: 1fr;
  }
  .component-grid .component:last-child{
    grid-column: auto;
  }
  .explorer-grid{
    grid-template-columns: 1fr;
  }
}


.component{
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px 18px;
  
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.25fr 90px;
  gap: 18px;
  align-items: center;
}

.component:last-of-type{
  grid-template-columns: 1.05fr 1.1fr 1.4fr 140px;
  column-gap: 30px;
}



.component-three{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 14px;
  align-items: center;
}


.component-three .component-title{
  grid-column: 1 / -1;
  grid-row: 1;
}


.component-three .component-left{
  grid-column: 1;
  grid-row: 2;
}


.component-three .component-text{
  grid-column: 2;
  grid-row: 2;
}


.component-three .component-media{
  grid-column: 3;
  grid-row: 2;
}

.component-left{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.component-title{
  margin: 0;
}

.component-list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.component-text{
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--muted);
  align-self: center;
}

.component-media{
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 180px; 
  justify-self: end;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

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

.img-right-focus{
  object-position: right center;
}


 @media (max-width: 900px){
  .component-three{
    grid-template-columns: 1fr;
  }

  .component-media{
    width: 100%;
    height: 180px;
    justify-self: stretch;
  }
}





  /*Table */


  #dataTable tbody td:first-child{
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}


.rowHighlight{
  background-color: #e6f0fa;
}

.coreHighlight{
  background-color: steelblue;
  color: white;
}

.colFlash{
  outline: 3px solid rgba(70,130,180,0.6);
  outline-offset: -2px;
}


#outputBox{
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #ccc;
  background: #f9f9f9;
}





.th-tip{
  position: absolute;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--rule);
  background: steelblue;
  font-size: 0.85rem;
  color: white;
  display: none;
  max-width: 220px;
  z-index: 2000;
}


.table-wrap{
  width: 100%;
  margin: 0;
  overflow: auto;
  max-height: calc(100vh - var(--nav-height) - 140px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg);
}


.tg {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
}



.tg thead th {
  position: sticky;
  top: 0;          
  background: var(--bg);  
  z-index: 5;          
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  font-size: 0.85rem;
  padding: 10px 10px;
}

.tg th,
.tg td{
  white-space: nowrap;  
  text-align: left;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.tg td.wrap{
  white-space: normal;
}

.tg tbody tr:nth-child(even){
  background: var(--surface);
}

.tg tbody tr.rowHighlight{
  background-color: #e6f0fa !important;
}


.tg tbody td{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-figure{
  max-width: 100%;
  margin: 0 auto;
}


/* Highlight "person id" */
.tg thead th:nth-child(1){
  background: steelblue;
  color: white;
  font-weight: 700;
}

.tg tbody td:nth-child(1){
  background: steelblue;
  color: white;
  font-weight: 600;
}

.rowSelected{
  background-color: #d0e4ff !important;
}



.summary-card{
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--bg);
  padding: 14px 16px;
  margin: 12px 0;
}

.summary-head{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  align-items: baseline;
}

.summary-id{
  font-weight: 800;
}

.summary-demo{
  color: var(--muted);
  font-size: 0.95rem;
}

.summary-narr{
  margin: 0 0 10px;
  line-height: 1.65;
}

.summary-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sum-pill{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(70,130,180,0.10);
  border: 1px solid rgba(70,130,180,0.18);
  font-size: 0.9rem;
  white-space: nowrap;
}

.sum-pill-k{
  font-weight: 800;
  color: var(--accent);
}





/* Resources page */



/* Resources Header */

.resources-header{
  border-bottom: 1px solid var(--rule);
  padding: 60px 0 50px;
  background: var(--bg);
}

.resources-hero{
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.resources-text{
  max-width: 60ch;
}

.resources-title{
  margin: 0 0 18px;
  font-size: 2.6rem;
  line-height: 1.2;
}

.resources-subtitle{
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
}

.resources-media{
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

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


@media (max-width: 900px){
  .resources-hero{
    grid-template-columns: 1fr;
  }

  .resources-media{
    height: 260px;
  }

  .resources-inner{
    padding: 80px 0 40px;
  }
}




.page-resources .section-intro{
  max-width: none;   
}

.page-resources .container{
  max-width: 1200px;
}


.resources-header{
  padding: 120px;
  border-bottom: 1px solid var(--rule);
}

.resources-title{
  margin: 0 0 16px;
  font-size: 2.6rem;
  line-height: 1.2;
}

.resources-subtitle{
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 110ch;
  color: var(--text);
}

.walkthrough{
  padding: 70px 0;
  background: var(--bg);
  border: none;
}

.walkthrough .section-title{
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.walkthrough .section-intro{
 
  line-height: 1.8;
}


.example-block{
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 20px 20px 18px;
  margin: 18px 0;
 }


.example-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--text);
}


.example-steps{
  margin: 0 0 16px 20px;
  padding: 0;
  line-height: 1.6;
}

.wt{
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  margin: 18px 0;
  overflow: hidden;
  transition: transform 0.18s ease,box-shadow 0.18s ease, border-color 0.18s ease;
}

.wt:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  border-color: var(--accent);
}

.wt:hover .wt-title{
  color: var(--accent);
}

.wt-summary{
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
  background: transparent;
}

.wt-summary::-webkit-details-marker{ display:none; }

.wt-title{
  font-weight: 800;
  color: var(--text);
}

.wt-sub{
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.wt[open] .wt-summary{
  border-bottom: 1px solid var(--rule);
  background: transparent
}

.wt-body{
  padding: 16px 16px 18px;
}

.wt-action{
  color: var(--accent);
  font-weight: 600;
  background: rgba(70,130,180,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}


.reflect-callout{
  margin-top: 18px;
  padding: 18px 20px;
border-left: 4px solid var(--accent);
  border: 1px solid rgba(70,130,180,0.15);
  background: rgba(70,130,180,0.06);
  border-radius: 12px;
}

.reflect-label{
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.reflect-text{
  margin: 0 0 10px;
  line-height: 1.75;
  color: var(--text);
}

.reflect-text:last-child{
  margin-bottom: 0;
}


.chart-link{
  display: inline-block;
  padding: 3px 8px;
  margin: 0 2px;
  border-radius: 999px;

  font-weight: 600;
  letter-spacing: 0.02em;

  background: var(--accent-wash);
  color: var(--accent);

  border: 1px solid rgba(70,130,180,0.35);
  cursor: pointer;

  transition: all 0.18s ease;
}

.chart-link:hover{
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


.image-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 3000;
}

.image-modal img{
  max-width: 82vw;
  max-height: 82vh;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: block;
}

.image-modal.active{
  opacity: 1;
  visibility: visible;
}



/*glossary*/

.glossary{
  padding: 70px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.glossary-item{
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--bg);
  padding: 16px 18px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}


.glossary-list{
  margin: 18px 0 0;
  padding: 0;
}



.glossary-item dt{
  font-weight: 700;
  color: var(--text);
}

.glossary-item dd{
  display: none;
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}


/* Sources */
.sources{
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 70px 0;
}

.sources-block{
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}

.sources-subtitle{
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sources-list{
  margin: 0;
  padding-left: 18px;
}

.sources-list li{
  margin: 8px 0;
  line-height: 1.6;
}

.sources a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.sources a:hover,
.sources a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

