/* --------------------------------------------------
   0.  BASE / RESET
-------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Roboto Condensed', sans-serif;
  color: #3a2c1a;                 
  background: #fffdf7;            
  line-height: 1.55;
}

/* --------------------------------------------------
   1.  COLOR VARIABLES (honey palette)
-------------------------------------------------- */
:root {
  --honey-50 : #fffdf7;
  --honey-100: #fff6e2;
  --honey-200: #ffecbf;
  --honey-300: #ffe199;
  --honey-400: #ffd76d;
  --honey-500: #ffc94a;           
  --honey-600: #f0b429;
  --honey-700: #d69d16;
  --honey-800: #b57f0e;
  --honey-900: #805700;
  --brown-900: #3a2c1a;
}

/* --------------------------------------------------
   2.  HEADER / NAV   (now left‑aligned) 
-------------------------------------------------- */
header {
  background: var(--honey-500);
  color: var(--brown-900);
  border-bottom: 4px solid var(--honey-700);
  text-align: center;               
  padding: 2rem 1rem 1.25rem;
}

header h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: .5px;
}

header .subtitle {
  font-size: clamp(.9rem, 2.2vw, 1.1rem);
  margin-top: .5rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;    
  gap: .85rem 1.25rem;
  margin-top: 1.25rem;
}

nav a {
  color: var(--brown-900);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -4px 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
nav a:hover::after { transform: scaleX(1); }

/* --------------------------------------------------
   3.  SECTION WRAPPER & ANIMATION
-------------------------------------------------- */
main { display: flex; flex-direction: column; gap: 3rem; padding: 1.25rem 0; }

.section {
  max-width: min(94%, 1200px);
  margin-inline: auto;
  background: var(--honey-100);
  border: 2px dashed var(--honey-300);
  border-radius: 6px;
  padding: 2.25rem 1.5rem;
  opacity: 0;
  transform: translateY(100px);
}
.section.active { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

h2 {
  font-size: 32px;
  margin-bottom: 1rem;
  color: var(--brown-900);
  text-align: center;               
}

h3 {
  font-size: 24px;
  margin-bottom: 1rem;
  color: var(--brown-900);
  text-align: center;              
}

h4 {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  margin-bottom: 1rem;
  color: var(--brown-900);
  text-align: center;               
}

/* --------------------------------------------------
   4.  TABLES & LISTS
-------------------------------------------------- */
.summary-list            { width: 100%; border-collapse: collapse; }
.summary-list th,
.summary-list td         { border: 1px solid var(--honey-400); padding: .65rem .75rem; vertical-align: top; }
.summary-list th         { background: var(--honey-400); font-weight: 700; text-align:left; }

.section ol,
.section ul:not(.summary-list) { margin-left: 1.25rem; margin-top: .4rem; }
.section li { margin-bottom: .55rem; }

/* --------------------------------------------------
   5.  CHART‑PLACEHOLDER  (FLEX GRID)
-------------------------------------------------- */
.chart-placeholder {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-block: 1.25rem 2rem;
}

.chart-placeholder p { font-weight: 600; }

.chart-placeholder img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--honey-300);
  border-radius: 4px;
  background: #fff;
  opacity: 1 !important;          
}

/*  FLEX grid just for the report pages  */
.page-grid{
  --gap: .75rem;
  display:flex; flex-wrap:wrap; gap:var(--gap);
  margin-block:1.4rem 2.4rem;
}
.page-grid img{
  flex:1 1 clamp(250px,30%,380px);
  width:100%; height:auto;
  border:1px solid var(--honey-300);
  border-radius:4px;
  background:#fff;
}

/* Two‑to‑five image grid   */
@media (min-width: 550px) {
  .chart-placeholder {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .chart-placeholder img {
    flex: 1 1 calc(50% - .75rem);
  }
}
@media (min-width: 900px) {
  .chart-placeholder img { flex: 1 1 calc(33.33% - .75rem); }
}

/* --------------------------------------------------
   6.  FOOTER
-------------------------------------------------- */
footer {
  text-align: center;
  border-top: 4px solid var(--honey-700);
  margin-top: 3rem;
  padding: 1rem 0 1.5rem;
  font-size: .9rem;
  background: var(--honey-500);
  color: var(--brown-900);
}

/* --------------------------------------------------
   7.  MISC  (call‑outs / notes)
-------------------------------------------------- */
.interactive-note {
  background: var(--honey-200);
  border-left: 6px solid var(--honey-600);
  padding: .9rem 1rem;
  margin-top: 1.2rem;
  font-style: italic;
}

/* --------------------------------------------------
   8.  RESPONSIVE MEDIA QUERIES
-------------------------------------------------- */

/* 8‑A  Tablet / small‑desktop ≤ 768 px */
@media (max-width: 768px) {

  header { padding: 1.5rem 1rem 1rem; }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: .6rem;
  }

  main { gap: 2.25rem; }

  .section { padding: 1.75rem 1rem; }

  h2 { font-size: 26px; }
  h3 { font-size: 20px; }

  /* make wide tables scroll */
  .summary-list { display: block; overflow-x: auto; }

  /* report image grid: two‑across max */
  .page-grid img { flex: 1 1 calc(50% - var(--gap)); }
}

/* 8‑B  Small phones ≤ 480 px */
@media (max-width: 480px) {

  header { padding: 1.25rem .75rem .85rem; }

  header h1 { font-size: 1.6rem; }
  header .subtitle { font-size: .85rem; }

  .section { padding: 1.4rem .85rem; }

  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  /* page grid goes single‑column */
  .page-grid img { flex: 1 1 100%; }

  /* list indentation tighter */
  .section ol,
  .section ul:not(.summary-list) { margin-left: .9rem; }

  /* table cell padding smaller */
  .summary-list th,
  .summary-list td { padding: .55rem .6rem; }
}

/* ———————————————————————————
   1.  Base rule = mobile / tablet
   ——————————————————————————— */
   .responsive-embed {
    position: relative;
    width: 100%;
    padding-top: 75%;          /* 4 : 3 aspect on small screens  */
    overflow: hidden;
  }
  
  .responsive-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  /* ———————————————————————————
     2.  Desktop override  (≥ 1100 px)
     ——————————————————————————— */
  @media (min-width: 1100px) {
  
    
    .responsive-embed {
      padding-top: 0;         
      width: auto;             
      max-width: 1024px;      
      margin-inline: auto;     
      height: 768px;           
    }
  
    .responsive-embed iframe {
      position: static;        
      width: 100%;             
      height: 100%;
    }
  }