/* Shared Spanish Giggle lesson shell — matches spanishgiggle.com. */
:root{
  --green:#275d50;
  --sage:#e8f2e9;
  --coral:#e78b73;
  --cream:#fffaf2;
  --ink:#1e433a;
  --muted:#526960;
  --line:#d7e2d9;
}
html{scroll-behavior:smooth;scroll-padding-top:94px}
body{background:var(--cream);font-family:"Segoe UI",Arial,Helvetica,sans-serif;color:var(--ink)}
h1,h2,h3{color:#123c31}
h1,h2{font-family:Georgia,"DejaVu Serif",serif;letter-spacing:-.035em}
a{color:var(--green)}
.sg-sitebar{position:relative;z-index:12;background:#fffaf2;border-bottom:1px solid #dce6db}
.sg-sitebar-inner{max-width:1150px;margin:auto;padding:13px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.sg-wordmark{display:flex;align-items:center;gap:9px;color:#18483e;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:-.055em}
.sg-wordmark img{width:42px;height:42px;object-fit:contain}
.sg-wordmark span span{font-weight:400}
.sg-sitebar nav{position:static;max-height:none;overflow:visible;display:flex;flex-direction:row;align-items:center;gap:16px;font-size:14px;font-weight:750}
.sg-sitebar nav a{padding:9px 12px;border-radius:99px;text-decoration:none;white-space:nowrap}
.sg-sitebar nav a:first-child{border:1px solid #d2e0d5;background:#f4faf3}
.sg-sitebar nav a:hover{background:#e8f2e9}
.sg-sitebar nav a:last-child{color:#9e5041}
.shell{max-width:1150px}
.shell>.top,.shell>header.brand{display:none}
.hero{background:linear-gradient(122deg,#e8f2e9 0%,#fff5ec 72%,#f8e3d8 100%);border:1px solid #dfebdf;border-radius:24px;box-shadow:none;margin-top:23px;position:relative;overflow:hidden;isolation:isolate}
.hero::after{content:"";width:210px;height:210px;position:absolute;right:-72px;top:-104px;border:35px solid #ffffff69;border-radius:50%;pointer-events:none;z-index:-1}
.hero h1{font-weight:650;max-width:810px}
.hero .tag,.hero .eyebrow{color:#ae594a}
.hero p{font-size:18px;max-width:700px}
.pill,.badge{background:#fffdf8;border:1px solid #dfebdf;color:#285b4b}
.layout{grid-template-columns:220px minmax(0,1fr);gap:23px}
.layout>nav{top:17px;background:#f3f8f1;border:1px solid #dae5dc;border-radius:18px;padding:8px;scrollbar-color:#a6c8b4 transparent}
.navbtn,.nav{border-radius:11px;font-size:14px;white-space:normal}
.navbtn.active,.nav.active{background:#275d50}
.card{background:#fffdfb;border:1px solid #dce6dc;box-shadow:0 12px 35px #1a473b0a;border-radius:20px;min-width:0;overflow-wrap:break-word}
.card h2{line-height:1.25}
.card h3{color:#275d50}
.card .example{border:1px solid #dbe7da}
.card .pron{background:#e9f5e9;padding:1px 4px;border-radius:5px}
.mini,.tile{border-color:#dce6dc;background:#f8fbf7}
.quiz{background:#fff;border-color:#dbe5dc;border-radius:16px}
.quiz .question,.quiz .prompt{line-height:1.4}
.choice{transition:border-color .15s,background-color .15s,transform .15s;min-height:48px}
.choice:hover:not(:disabled){background:#edf7ef;border-color:#76a88f}
.choice:active:not(:disabled){transform:scale(.995)}
.choice[aria-pressed=true]{background:#dfeee4;border-color:#275d50;box-shadow:inset 0 0 0 1px #275d50}
.button{border-radius:12px;background:#275d50;border-color:#275d50;min-height:46px}
.button:hover:not(:disabled){filter:brightness(1.08)}
.button:focus-visible,.choice:focus-visible,.nav:focus-visible,.navbtn:focus-visible,.sg-sitebar a:focus-visible{outline:3px solid #dd886f;outline-offset:3px}
.feedback:not(.hidden){border:1px solid #badac3}
.feedback.bad{border-color:#f3c5ba}
.progress{background:#e1e9df}
.progress>.bar{background:#275d50}
th{background:#edf5ed}
th,td{vertical-align:top}
.reading{line-height:1.85}
.reading strong{color:#205745;background:#e9f2e8;padding:1px 4px;border-radius:4px}
.sectionmeter,.score{font-variant-numeric:tabular-nums}
.quiz:focus-within{border-color:#8cbaa0}
.sg-sitebar a{transition:background-color .15s}
.reading{background:#fffaf2;border-color:#e78b73}
.foot{margin-bottom:27px}
.foot .button{min-width:125px}
@media(max-width:800px){
  .sg-sitebar-inner{padding:10px 14px}
  .sg-wordmark{font-size:18px}
  .sg-wordmark img{width:36px;height:36px}
  .sg-sitebar nav{gap:3px;font-size:12px}
  .sg-sitebar nav a{padding:8px}
  .shell{padding:14px}
  .hero{padding:26px 20px}
  .hero h1{font-size:clamp(33px,8vw,43px)}
  .hero p{font-size:16px}
  .layout>nav{position:static;display:flex;flex-direction:row;overflow-x:auto;white-space:nowrap;border-radius:13px;padding:7px;margin-bottom:15px;max-height:none}
  .layout>nav button{white-space:nowrap;flex:0 0 auto}
  .quiz{padding:16px}
  .foot .button{min-width:0}
  .card table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .card table th,.card table td{min-width:104px}
  .sg-sitebar-inner{flex-wrap:wrap}
}
@media(max-width:430px){
  .sg-wordmark span{font-size:17px}
  .sg-sitebar nav a:last-child{display:none}
  .foot{gap:7px}
  .foot .button{flex:1;padding:10px 9px}
  .sg-sitebar nav a{font-size:12px;padding:7px 9px}
  .reading{font-size:16px;padding:18px;line-height:1.75}
  .quiz .question,.quiz .prompt{font-size:17px}
  .card{padding:18px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .choice{transition:none}
}
