@font-face {
  font-family: "CustomBody";
  src: url("fonts/CustomBody.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "CustomBody", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #00A5DB;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto; 
}

.site-header {
  padding: 1.5rem 2rem;
  background: #212121;
  color: #f9fafb;
}

.site-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
}

.site-header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.site-nav {
  background: #3B3B3B;
}

.site-nav ul {
  margin: 0;
  padding: 0.5rem 2rem;
  list-style: none;
  display: flex;           
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav ul {
  flex-direction: column;  
}

.site-nav:not(.nav-open) ul {
  display: none;
}

.site-nav a {
  color: #e5e7eb;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #374151;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0.25rem 0 0.25rem 1rem;
  background-color: #3b3b3b;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: #e5e7eb; 
}

.nav-toggle:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}


.page-main {
  padding: 2rem;
}

 .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}




   .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

}

.main-article {
  background: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.main-article h2 {
  margin-top: 0;
}

.main-article p {
  margin: 0 0 1rem;
}

.analysis-left h3 {
  color: #b22222;   
}

.analysis-right h3 {
  color: #16572f;   
}

.card-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.info-card {
  flex: 1 1 180px;
  min-width: 160px;
  background: #f9fafb;
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e7eb;
}

.info-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.red-card h3 {
  color: #b22222; 
  }

.green-card h3 {
  color: #1b5e20; 
}

.info-card p {
  margin: 0;
  font-size: 0.85rem;
}

.sidebar {
  background: #f9fafb;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.sidebar h3 {
  margin-top: 0;
}


.sidebar ul {
  padding-left: 1.2rem;
}

.section-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-muted {
  font-size: 0.9rem;
  color: #4b5563;
}


.site-footer {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #212121;
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
}


.analysis-layout {
  margin-top: 1.5rem;
  display: grid;
  grid-template-areas:
    "top top"
    "left right"
    "bottom bottom";
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(0, auto);
  gap: 1.5rem;
}

.analysis-top {
  grid-area: top;
  background: #fff;
  border: 3px solid #3B3B3B;
  padding: 1rem 1.25rem;
  border-radius: 20px;
}

.analysis-left {
  grid-area: left;
  background: #fff;
  border: 3px solid #a12824;
  padding: 1rem 1.25rem;
  border-radius: 20px;
}

.analysis-right {
  grid-area: right;
  background: #fff;
  border: 3px solid #265521;
  padding: 1rem 1.25rem;border-radius: 999px;
  border-radius: 20px;
  }
  
  .analysis-layout {
  display: grid;
  grid-template-areas:
    "top"
    "left"
    "right";
  grid-template-columns: 1fr;
  gap: 1.5rem;
}


@media (min-width: 768px) {
  .analysis-layout {
    grid-template-areas:
      "top top"
      "left right";
    grid-template-columns: 1fr 1fr;
  }
}
  
  
  

.site-header {
  position: relative;
}


#logo {
  position: absolute;
  top: 8px;
  right: 16px;
  display: block;
  width: 80px;
  height: auto;
  z-index: 10;
}

#logo svg circle {
  fill: #fff;
  stroke: #ffffff;
  stroke-width: 4px;
}

#logo svg {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

#logo svg:hover circle {
  fill: #FFC600;
}

#logo svg:hover {
  transform: scale(1.05);
  cursor: pointer;
}


.a11y-figure {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 1rem 0;
}

.a11y-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  outline: none;
}

.a11y-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .5rem .75rem;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.a11y-figure:hover figcaption,
.a11y-figure:focus-within figcaption,
.a11y-figure:has(img:focus-visible) figcaption {
  opacity: 1;
  transform: translateY(0);
}

.a11y-figure img:focus-visible {
  outline: 3px solid #FFC600;
  outline-offset: 2px;
}


@media (prefers-color-scheme: dark) {
  body {
    background-color: #020617;
    color: #e5e7eb;
  }

  .site-header,
  .site-footer {
    background: #020617;
    color: #e5e7eb;
  }

  .site-nav {
    background: #030712;
  }

  .site-nav a {
    color: #e5e7eb;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    background: #111827;
  }

  .main-article,
  .sidebar,
  .analysis-top,
  .analysis-left,
  .analysis-right {
    background: #020617;
    border-color: #1f2937;
  }

  .section-muted {
    color: #9ca3af;
  }

  .a11y-figure figcaption {
    background: rgba(15, 23, 42, 0.9);
  }
}

}


.a11y-figure{position:relative;display:inline-block;max-width:100%;margin:1rem 0}
.a11y-figure img{display:block;max-width:100%;height:auto;outline:none}
.a11y-figure figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:.5rem .75rem;background:rgba(0,0,0,.72);color:#fff;
  font-size:.95rem;line-height:1.4;opacity:0;transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease
}
.a11y-figure:hover figcaption,
.a11y-figure:focus-within figcaption,
.a11y-figure:has(img:focus-visible) figcaption{opacity:1;transform:translateY(0)}
:focus-visible{outline:3px solid #FFC600;outline-offset:2px}


@media (min-width: 768px) {
  .page-main {
    padding: 2rem;
  }

  .content-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;  
  }

  .site-nav ul {
    display: flex !important;  
    flex-direction: row;
  }
}


.header-controls {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-quote {
  margin-top: 0.5rem;
  font-style: italic;
}

.day-message {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}


main h2,
main h3 {
  display: inline-block;            
  transition: transform 0.2s ease, 
              color 0.2s ease;
}


.heading-hover {
  color: #FFC800;                 
  transform: scale(1.08);
}


.day-box {
  position: absolute;
  top: 1.5rem;
  right: 7rem;
  background-color: #212136;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.day-text {
  font-weight: 600;
}

.day-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}


.skip-to-main {
  display: inline-block;
  margin: 0.75rem 0 0.75rem 1rem;  
  background-color: #212136;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-to-main:hover,
.skip-to-main:focus {
  background-color: #FFC800;       
  outline: none;
}