/* ===== RESET & VARIÁVEIS ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fdf6ec;
  --bg-alt: #fff9f0;
  --card: #ffffff;
  --ink: #1f2430;
  --ink-soft: #4a5068;
  --muted: #7d8498;
  --accent: #ff7a59;
  --accent-2: #ffb547;
  --primary: #3d5afe;
  --primary-soft: #eef1ff;
  --green: #2ec27e;
  --purple: #7c5cff;
  --pink: #ff6aa5;
  --border: #eadfcc;
  --shadow: 0 10px 30px rgba(60, 45, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(60, 45, 20, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  --bg: #15171f;
  --bg-alt: #1c1f2a;
  --card: #232634;
  --ink: #f2f0ea;
  --ink-soft: #c9c4b8;
  --muted: #8e8a7c;
  --primary-soft: #232a4d;
  --border: #353848;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  transition:
    background 0.3s,
    color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 10%,
      rgba(255, 122, 89, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(61, 90, 254, 0.08),
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(124, 92, 255, 0.05),
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Fredoka", sans-serif;
  color: var(--ink);
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.4rem;
}
h3 {
  font-size: 1.25rem;
  margin: 1rem 0 0.5rem;
  color: var(--ink);
}
h4 {
  font-size: 1.05rem;
  margin: 0.8rem 0 0.3rem;
}
p {
  margin-bottom: 0.8rem;
  color: var(--ink-soft);
}
code {
  font-family: "JetBrains Mono", monospace;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.9em;
}
a {
  color: var(--primary);
  text-decoration: none;
}

/* ===== ANIMAÇÃO DE ENTRADA ===== */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, #1a1d2e 0%, #2a1a3e 50%, #1a2a1e 100%);
  animation: overlayFadeOut 0.6s ease forwards;
  animation-delay: 2.4s;
  pointer-events: none;
}

@media (prefers-color-scheme: light) {
  #intro-overlay {
    background: linear-gradient(135deg, #0f1219 0%, #1a0f2e 50%, #0f1f15 100%);
  }
}

#intro-overlay .intro-mascot {
  font-size: 5rem;
  animation:
    introMascot 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    floaty 4s ease-in-out 0.7s infinite;
  opacity: 0;
  transform: scale(0.3);
  color: #fff;
  text-shadow:
    0 0 20px rgba(255, 122, 89, 0.6),
    0 0 40px rgba(255, 122, 89, 0.3),
    0 0 60px rgba(124, 92, 255, 0.2);
  filter: drop-shadow(0 4px 12px rgba(255, 122, 89, 0.4));
}

#intro-overlay .intro-title {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ff7a59, #ffb547, #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: introText 0.6s ease forwards;
  animation-delay: 0.5s;
}

#intro-overlay .intro-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: introText 0.5s ease forwards;
  animation-delay: 0.85s;
}

#intro-overlay .intro-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  animation: introText 0.5s ease forwards;
  animation-delay: 1.1s;
}

#intro-overlay .intro-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: dotPulse 1.2s ease-in-out infinite;
}
#intro-overlay .intro-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
#intro-overlay .intro-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes introMascot {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes introText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes overlayFadeOut {
  to {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
}
@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: scale(1.4);
    background: rgba(255, 122, 89, 0.8);
  }
}

.site-header {
  animation: pageSlideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2.6s;
  opacity: 0;
}
.hero {
  animation: pageFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2.8s;
  opacity: 0;
}
main {
  animation: pageFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3s;
  opacity: 0;
}
.site-footer {
  animation: pageFadeUp 0.6s ease forwards;
  animation-delay: 3.1s;
  opacity: 0;
}

@keyframes pageSlideDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HEADER ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
[data-theme="dark"] header.site-header {
  background: rgba(21, 23, 31, 0.88);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 14px rgba(255, 122, 89, 0.35);
}
.logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  font-family: "Inter", sans-serif;
}

nav.main-nav {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
nav.main-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.93rem;
  transition:
    background 0.2s,
    color 0.2s;
}
nav.main-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition:
    transform 0.2s,
    background 0.2s;
  font-size: 1.1rem;
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-soft);
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap input {
  padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  width: 200px;
  transition:
    width 0.25s,
    border-color 0.2s;
}
.search-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  width: 240px;
}
.search-wrap::before {
  display: none;
}

.search-wrap i {
  position: absolute;
  left: 0.75rem;
  color: var(--muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.burger {
  display: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--purple),
    var(--accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
}
.hero-cta {
  display: inline-flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 20px rgba(255, 122, 89, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 122, 89, 0.45);
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.mascot {
  font-size: 3.5rem;
  display: inline-block;
  animation: floaty 4s ease-in-out infinite;
  margin-bottom: 0.5rem;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 1rem;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  text-decoration: none;
  color: var(--ink);
}
.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.quick-card .emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.quick-card strong {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
}
.quick-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== SEÇÕES DE CONTEÚDO ===== */
main {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  z-index: 1;
}
section.topic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  scroll-margin-top: 90px;
}
section.topic header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--border);
}
section.topic header .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.icon.coral {
  background: linear-gradient(135deg, #ffd7c7, #ffb09a);
}
.icon.blue {
  background: linear-gradient(135deg, #d7e0ff, #9fb0ff);
}
.icon.green {
  background: linear-gradient(135deg, #cdf3db, #9adfae);
}
.icon.purple {
  background: linear-gradient(135deg, #e4d9ff, #bfa8ff);
}
.icon.yellow {
  background: linear-gradient(135deg, #ffeac2, #ffd27c);
}
.icon.pink {
  background: linear-gradient(135deg, #ffd5e5, #ffa3c2);
}
.icon.teal {
  background: linear-gradient(135deg, #c9f0ee, #8ed7d2);
}
.icon.sand {
  background: linear-gradient(135deg, #efe3ce, #d8bf95);
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.concept-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.concept-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.concept-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
}
.concept-card .pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  font-weight: 500;
  background: var(--primary-soft);
  color: var(--primary);
}
.concept-card p {
  font-size: 0.92rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--primary),
    var(--purple)
  );
  border-radius: 3px;
}
.tl-item {
  position: relative;
  padding: 0.5rem 0 1.5rem 3.2rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.8rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-item .year {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  background: var(--accent);
  color: white;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
.tl-item h4 {
  margin: 0.2rem 0;
}
.tl-item p {
  font-size: 0.92rem;
  margin: 0;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.3rem;
}
.tab-btn {
  padding: 0.55rem 1.1rem;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: 0.95rem;
  transition:
    background 0.2s,
    color 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -5px;
}
.tab-btn:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-soft);
}
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ATALHOS ===== */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  gap: 0.8rem;
}
.shortcut-row .desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex: 1;
}
.kbd-wrap {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
kbd {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--border);
  white-space: nowrap;
}
kbd + kbd {
  margin-left: 0.1rem;
}
.kbd-plus {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0.1rem;
}

/* ===== SEGURANÇA ===== */
.safety-list {
  list-style: none;
  padding: 0;
}
.safety-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.safety-list li:last-child {
  border-bottom: none;
}
.safety-list .bullet {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.safety-list strong {
  display: block;
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
}
.safety-list small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ===== QUIZ ===== */
.quiz-box {
  background: linear-gradient(135deg, var(--primary-soft), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.quiz-question {
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.quiz-options {
  display: grid;
  gap: 0.5rem;
}
.quiz-opt {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s;
}
.quiz-opt:hover {
  border-color: var(--primary);
}
.quiz-opt.correct {
  background: #d9f5e6;
  border-color: var(--green);
  color: #0d6b3d;
}
.quiz-opt.wrong {
  background: #ffe3db;
  border-color: var(--accent);
  color: #8d2f15;
}
.quiz-feedback {
  margin-top: 0.8rem;
  font-weight: 500;
  min-height: 1.5rem;
}

/* ===== GLOSSÁRIO ===== */
.glossary-list {
  display: grid;
  gap: 0.6rem;
}
.gloss-item {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
}
.gloss-item dt {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: var(--ink);
}
.gloss-item dd {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ===== FOOTER ===== */
footer.site-footer {
  background: linear-gradient(135deg, #1f2430, #2c3144);
  color: #eee;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}
[data-theme="dark"] footer.site-footer {
  background: linear-gradient(135deg, #0d0f16, #1a1d28);
}
footer.site-footer p {
  color: #d4cebe;
}
.credit-card {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.credit-card h3 {
  color: #fff;
  margin-bottom: 0.4rem;
}
.credit-name {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.credit-role {
  color: #b8b2a2;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.footer-mini {
  font-size: 0.8rem;
  color: #908a7c;
  margin-top: 1.5rem;
}

.to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 50;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.4rem;
    display: none;
  }
  nav.main-nav.open {
    display: flex;
  }
  nav.main-nav a {
    padding: 0.7rem 1rem;
  }
  .burger {
    display: grid;
  }
  .search-wrap input {
    width: 130px;
  }
  .search-wrap input:focus {
    width: 160px;
  }
  section.topic {
    padding: 1.3rem;
  }
  section.topic header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .search-wrap {
    display: none;
  }
  .hero {
    padding: 2rem 1rem 1rem;
  }
}

section.topic.hidden {
  display: none;
}
.highlight {
  background: #fff3a8;
  padding: 0 3px;
  border-radius: 3px;
  color: var(--ink);
}
