/* ============================================================
   Tell Me Why — KidsGen
   Theme: "Curiosity Notebook Under a Night Sky"
   ============================================================ */

:root{
  --teal: #128A8A;
  --teal-dark: #086B6B;
  --orange: #e35000;
  --orange-dark:#c44500;
  --orange-warm: #EE7A2C;
  --sun:#ffc93c;
  --soft-mint:#D5F2F1;
  --grey-green:	#CBD5D5;
  --green-deep:#173B3A;
  --green-mid:#185442;
  --paper: #f1f6f6;
  --white: #ffffff;
  --ink: #143d37;
  --ink-soft: #2d5751;
  --cream: #FFF8EE;
  --border: #E8D5B0;
  --line:       rgba(20,33,61,0.14);
  --shadow:     rgba(20,33,61,0.16);
  --shadow-soft: 0 10px 30px rgba(10, 31, 61, 0.10);
  --radius-card: 14px;
  --radius-pill: 999px;  
  --radius: 10px;
  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  
 
/*  --navy-800: #123b6b;
  --navy-700: #16468a;
  --blue-600: #1d63d8;
  --blue-500: #2f7df0;
  --blue-100: #d9e9fe;
  
  --sky-100: #eaf3fe;
  --sky-50: #f5f9fe;
  --indigo-600: #4a4fe0;
  --indigo-100: #e3e3fb;
  --teal-600: #0e9488;
  --teal-100: #aad0cb;
  --amber-400: #ffb238;
  --amber-700: #b45500;
  --ink-900: #0f2340;
  --ink-700: #375073;
  
  
  
  --muted:      #6B5E50;
  
  --parchment:  #F5EDD8;
  --parchment-mid:   #d4c9ab;
  --parchment-dark:  #715941;
  --parchment-light: #fffdf6;
  
  --page-accent: #4776af;
  --page-accent-tint: var(--sky-100);*/
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg{ max-width:100%; display:block; height:auto }

a{ color: var(--sky-d); text-decoration:none }

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h2 {color:var(--green-mid);font-weight:600; font-size:clamp(1.5rem,2.6vw,2.05rem)}
h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    border-radius: 5px;
    background: var(--sun);
    margin-top: .35rem;
}
h3 {color:var(--green-mid);font-weight:600; font-size:clamp(1.2rem,2.1vw,1.7rem)}
h4 {font-size:1.3rem}
.container{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


 /* ═══════════════════════════════════════════════
       TOP NAV
    ═══════════════════════════════════════════════ */
    .top-nav {
		background: linear-gradient(180deg, var(--orange), var(--orange-warm));
		color: #fff;
		top: 0;
		z-index: 50;
		box-shadow: 0 2px 14px rgba(10, 31, 61, 0.25);
    }
    .nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      align-items: center;
      justify-content: space-between;
    }
   .top-nav ul{
    list-style: none;
	padding-left:0;
	margin:0;
}
/* Logo */
.logo{
    display: inline-block;
    padding: 5px 0 0 5px;
}
.logo img {
	max-width:180px;
}
/* Nav menu */
.nav{
    position: fixed;
	left: 10px;
    right: 10px;
    background-color: var(--green-deep);
    overflow: hidden;
    z-index: 2;
}
.menu a{
    display: block;
    padding: 12px 25px;
    border-bottom: 1px solid var(--green-mid);
    color: #fff;
	text-decoration:none
}
.menu li:last-child a {border:none}
.menu a:hover{
    background-color: var(--shadow);
}
.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}
/* Menu Icon */
.hamb{
    cursor: pointer;
    float: right;
    padding: 29px 20px;
}/* Style label tag */

.hamb-line {
    background: var(--cream);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;

} /* Style span tag */

.hamb-line::before,
.hamb-line::after{
    background:var(--cream);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */
/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height:fit-content;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

body:has(.side-menu:checked) {
  overflow: hidden;
}

@media (max-width: 991px) {
	.logo img {
			max-width:170px;
		}
	.nav{
		box-shadow: var(--shadow);
		z-index:3
	}
	.menu a{
		padding: 9px 25px;
	}
}
/* Responsiveness */
@media (min-width: 992px) {	
    .nav{
        max-height: none;
		margin-top: 10px;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;
    }
    .menu li{
        float: left;
    }
	.menu a{
		border-radius:var(--radius-pill);
		border:none;
		padding: 5px 25px;
		margin:0 2px;
		transition: all 0.5s ease 0s;
    }
    .menu a:hover, .menu a.active {
        background: var(--orange-dark);
		transition: all 0.5s ease 0s;
    }

    .hamb{
        display: none;
    }
}
@media (min-width:992px) and (max-width:1023px) {
	.menu a{
		font-size:0.7rem;
		padding: 10px 15px;
    }
}
@media (min-width:1024px) {
	.menu a{
		font-size:0.9rem;
		padding: 10px 15px;
    }
}
/* -------------------- Hero -------------------- */
.hero{
  position:relative;
  background: radial-gradient(1100px 480px at 85% -10%, rgba(255, 255, 255, 0.10), transparent), linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 55%, var(--green-deep) 130%);
  color:#fff;
  padding: 64px 0 84px;
}

.hero-inner{ position:relative;}
.hero .kicker {
    display: inline-block;
    background: var(--sun);
    color:#000;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .2rem .9rem;
	margin-bottom:15px;
    border-radius: var(--radius-pill);
}
.eyebrow-crumb {
  font-size: 0.85rem; color:var(--grey-green); margin-bottom: 14px;
}
.eyebrow-crumb a { color:var(--soft-mint); text-decoration:underline; }

.hero h1{
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  color:#fff;
  font-weight:800;
  margin-bottom: 18px;
}
.hero p.lede{
  font-size: 19px;
  color: #C9D2EE;
  max-width: 56ch;
  margin-bottom: 30px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-image-wrap {
	  border-radius: 24px;
	  overflow: hidden;
	  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
	}
@media (min-width: 768px) {
    .hero-image-wrap {
        aspect-ratio: 3/2;
		margin-top:60px;
    }
    .hero-image-wrap img {
        width: 100%;
        height: 100%;
        transition: transform 0.6s ease;
    }
	.hero-image-wrap:hover img { transform: scale(1.04); }
}

.intro p+p {color:var(--gold-deep);}

figure {margin:0;border-radius:15px;}
figure img {border-radius:15px;}
.caption {font-family:"Times New Roman", Times, serif;text-align:center; font-size:1rem; color:var(--ink-soft); line-height:120%; font-style:italic; padding:6px}
/* Category grid (index page) */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px;margin-bottom:30px	
}
.category-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(10,31,61,0.03);
}
.category-card:hover, .category-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.category-card .icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  color: #fff;
}
.category-card p {margin-top:5px}
.category-card h3 { margin-bottom: 2px; }
.category-card .sample {
  margin-top: auto; font-size: 0.88rem; color: var(--ink-700);
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.category-card .sample strong { color: var(--navy-950); font-family: var(--font-display); }
.category-card .go { color: var(--blue-600); font-weight: 700; font-size: 0.92rem; }

/* Steps (genuine sequence) */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); }
.step { position: relative; padding-left: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--page-accent); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
}

/* ---------- Jump nav ---------- */
.jumpnav{padding:28px 0 0;}
.jumpnav .h2{display:block;font-size:1.05rem; font-weight:700; color:var(--text-dim); margin:0 0 16px;}
.chip-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:10px; list-style:none; margin:0; padding:0;}
.chip{
  display:flex; align-items:center; gap:10px;
  border:2px solid var(--amber); border-radius:3px;
  padding:11px 12px; text-decoration:none; color:var(--text);
  font-size:.92rem; background:var(--amber-soft); line-height:140%; min-height:70px;
  transition:border-color .15s, transform .15s;
}
.chip:hover, .chip:focus-visible{border-color:var(--amber-deep); background:var(--amber-soft);color:var(--gold-deep); transform:translateX(2px);}
.chip .ico{width:22px; height:22px; flex:none; color:var(--cream);}

/* ---------- Fast facts ---------- */
.facts{padding:20px 0 64px;}
.facts-panel{background:var(--panel); border:1px solid var(--panel-line); border-radius:15px; padding:40px; color:var(--parchment)}
.facts-panel h2{color:var(--cream);font-family:var(--serif); font-weight:600; font-size:1.7rem; margin:0 0 8px;}
.facts-panel > p{color:var(--parchment-mid); margin:0 0 28px; max-width:60ch;}
.fact-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:22px;}
.fact-list li{padding-left:20px; border-left:2px solid var(--amber); font-size:.96rem; color:var(--text);}
.fact-list li:nth-child(even){border-left-color:var(--teal);}

@media (max-width:600px){.facts-panel{padding:28px 20px;}}




/**  **/
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-display);
  font-weight:700; font-size:16px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0); }
.btn-primary{
  background: var(--teal); color:#fff;
  box-shadow: 0 5px 0 0 var(--shadow);
}
.btn-primary:hover{ box-shadow: 0 3px 0 0 var(--shadow); }
.btn-teal {
  background: var(--teal); color:#fff;
  box-shadow: 0 8px 0 0 var(--teal-d);
}
.btn-teal:hover{ box-shadow: 0 6px 0 0 var(--teal-d); }
.btn-small{ padding: 9px 18px; font-size:14px; }

/**************** CONTENT GRID **********/

.content-grid {
		display: grid;
		grid-template-columns:1fr 300px;
		gap: 25px;
		padding: 50px 0;
		align-items: start;
	}
	@media (max-width:767px) {
		 .content-grid {
			 grid-template-columns:1fr;
			}
	}
.content-left ol li, .content-left ul li {padding-left:8px;}
/* -------------------- Section framing -------------------- */
section{ padding: 40px 0 0;}
section:last-child {border:none;}
.section.tint {background: var(--page-accent-tint);padding:40px 20px; margin-top:40px;border-radius:20px;}
.section-head{margin-bottom: 5px; }
.section-head .kicker {
    color: var(--teal);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 6px;
    display: block;
	}
.section-head h2{ font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-head p{ color: var(--ink-soft); font-size:17px; }
.on-dark .section-head p{ color:#C9D2EE; }
.on-dark{ background: var(--ink); color:#fff; }
.on-dark h2{ color:#fff; }
.on-dim{ background: var(--paper-dim); }

/* Callout / fun facts */
.callout {
  background: var(--white); border:1px solid var(--border); border-left: 6px solid var(--orange); border-radius: var(--radius-card);
  padding: 20px;margin-bottom:15px;
}
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: 8px; padding-left:0 !important}
.callout li:last-child { margin-bottom: 0; }

/*---- TABLE    ---*/
.tbl{overflow-x:auto;margin:1rem 0}
table{border-collapse:collapse;width:100%;background:var(--white);border-radius:12px;overflow:hidden}
th,td{padding:.7rem .9rem;text-align:left;border-bottom:1px solid var(--line)}
th{background:var(--teal);color:#fff}
caption{caption-side:bottom;text-align:left;color:var(--muted);font-size:.9rem;padding:.5rem 0}
@media (max-width:500px) {
	table {font-size:0.85rem}
}
/* ---------- FAQ ---------- */
.faq{padding:45px 0 24px;}
.home .faq{padding:0 0 24px;}
.faq h2{font-weight:600; font-size:1.9rem;}
.faq details{
  border-bottom:1px solid var(--line); padding:18px 0;
}
.faq summary{
  cursor:pointer; font-weight:700; font-size:1.03rem;;
  list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+"; color:var(--teal); flex:none;}
.faq details[open] summary::after{content:"–";}
.faq p{ margin:14px 0 0 10px; max-width:70ch;}

.more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .4rem 1rem;
	list-style: none;
    padding: 0;
    margin: 0;
}
.more li a {
	display: block;
    background: var(--orange-warm);
    border: 2px solid var(--orange-warm);
    border-radius: var(--radius);
    padding: 2px 12px;
    text-align: center;
    color: var(--cream);
    font-weight: 600;
	transition: all 0.5s ease 0s;
}
.more li a:hover {background:none; color:var(--orange-warm);transition: all 0.5s ease 0s;}
.pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* ═══════════════════════════════════════════════
       ASIDE RIGHT CONTAINER
    ═══════════════════════════════════════════════ */
	.sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 22px; }
	.panel-card {
		background: var(--white);
		border:1px solid var(--line);
		border-radius: var(--radius-card);
		padding: 20px;
		box-shadow: 0 8px 20px -16px rgba(46,26,82,0.4);
	}
	.panel-card h3, .panel-card .h3, .panel-card .section-head{
		font-family: var(--font-display);
		color: var(--teal-dark);
		display: block;
		font-size: 1.3rem;
		margin: 0 0 14px;
		font-weight: 600;
		padding-bottom: 2px;
		border-bottom:2px solid var(--line);
	}
	.panel-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--grey-green);transition: all 0.5s ease 0s; }
	.panel-link:last-child { border-bottom: none; }
	.panel-link img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
	.panel-link span { font-weight: 700; font-size: 0.9rem; line-height: 1.3;transition: all 0.5s ease 0s;  }
	.panel-link:hover span {padding-left:5px;transition: all 0.5s ease 0s; }
	.panel-card .discover-list a { display: block; padding: 7px 0; font-weight: 700; font-size: 0.92rem; border-bottom: 1px dashed var(--grey-green);transition: all 0.5s ease 0s; }
	.panel-card .discover-list a:last-child { border-bottom: none; }
	.panel-card .discover-list a:hover { color: var(--ink); padding-left:10px; transition: all 0.5s ease 0s; }
	.panel-card br {display:none}
	
	.newsletter {
	background: linear-gradient(135deg, #066a61, #1f9c91);
	color: #fff; border: none;
	}
	.newsletter .h3 { color: #fff; }
	.newsletter p { font-size: 0.86rem; opacity: 0.92; margin: 0 0 14px; }
	.newsletter input[type=text], .newsletter input[type=email] {
	width: 100%; padding: 11px 14px; border-radius: 12px; border: none;
	font-family: inherit; font-size: 0.92rem; margin-bottom: 10px;
	}
	.newsletter input[type=submit] {
	width: 100%; padding: 11px; border-radius: 12px; border: none;
	background: var(--sun); color: var(--ink); font-weight: 800;
	cursor: pointer; transition: transform 0.2s ease;
	}
	.newsletter input[type=submit]:hover { transform: translateY(-2px); }
	
	
 /* ═══════════════════════════════════════════════
       FOOTER
    ═══════════════════════════════════════════════ */
	.foot-banner {
		background:var(--parchment);
		padding:25px 0;
		}
	.foot-banner .container {
		padding:15px;
		}
    .site-footer {
      background: var(--ink);
      color: rgba(255,255,255,0.65);
      padding: clamp(36px, 5vw, 60px) clamp(16px, 5vw, 60px) 28px;
    }
    
    .footer-bottom {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: space-between;
		color: #8B96BE;
		padding-bottom: 20px;
    	margin-bottom: 20px;
    }
	@media (max-width:767px) {
		.footer-bottom {
			display:block;
			text-align: center;
		}
		.foot-left, .foot-right {margin-bottom:10px;}
	}
	.footer-bottom a { color: rgba(255,255,255,0.5); text-transform:uppercase; font-size:0.8rem; text-decoration:none; padding-left:6px; padding-right:6px; transition: all 0.6s ease 0s; }
    .footer-bottom a:hover { color: var(--sky); text-decoration:underline;transition: all 0.6s ease 0s; }
	/*** SECTION FOOTER **/
	.site-footer .bann-wrap {background:rgba(255,255,255,0.9); padding:10px; margin:15px 0; border-radius:15px}
	.site-footer .wrap {max-width:unset;}
	.foot-sections {padding:0 16px}
	.foot-sections .h3, .foot-sections .foot-head { display:block;font-family: var(--font-display); color: var(--gold-soft); font-size: 1.8rem; margin: 0 0 16px; font-weight:600 }
    .foot-sections ul {
	  list-style: none; padding: 0; margin: 0;
	  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 18px;
    }
    .foot-sections a { text-decoration:none; font-size:0.9rem; color:var(--parchment);transition: all 0.5s ease 0s; }
    .foot-sections a:hover { color:var(--pink); text-decoration:underline;transition: all 0.5s ease 0s; }
    
	@media (max-width:767px) {
		.footer-col ul {padding: 0; margin: 0;display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 18px;}
		.foot-sections {padding:0} 
		.foot-sections ul {grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }		
	}


/* -------------------- Focus visibility -------------------- */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid var(--sunshine);
  outline-offset: 2px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 640px){
  .hero{ padding: 48px 0 60px; }
  section{ padding: 44px 0; }
  .memory-grid{ grid-template-columns: repeat(3,1fr); }
  .callout{ flex-direction:column; align-items:flex-start; }
}

/* -------------------- Responsive -------------------- */
.box-grid-2, .box-grid-3, .wall-link-grid {
	display:grid;
	gap:15px;
}
.box-grid-2, .wall-link-grid {
	grid-template-columns: repeat(2, 1fr)
}
.box-grid-3 {
	grid-template-columns: repeat(3, 1fr)
}
@media (max-width:767px) {
	.box-grid-2, .box-grid-3 {
		grid-template-columns:1fr
	}
}
.box-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 15px;
}


/* ---------- Back to top ---------- */
#myBtn {
  display: none;
  position: fixed;
  bottom: 55px;
  right: 55px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--orange);
  border: 2px solid var(--orange);
  color: white;
  cursor: pointer;
  padding:12px 15px;
  width:46px; height:46px; border-radius:50%;
  transition: all 0.5s ease 0s;
}

#myBtn:hover {
  color:var(--teal-dark);
  background-color:#fff;
  border:2px solid var(--teal-dark);
  transition: all 0.5s ease 0s;
}
@media (max-width:991px) {#myBtn {right: 25px;}}
/*--------------  MISCELLANEOUS ---------------*/
.mt-0 {margin-top:0}
.mb-0 {margin-bottom:0}
.text-center {text-align:center}