:root {
  color-scheme: light;
  --bg: #f5faf9;
  --ink: #10201f;
  --muted: #4f6360;
  --line: #d9e6e3;
  --brand: #007f8f;
  --brand-dark: #005f6d;
  --gold: #e8a33d;
  --card: #ffffff;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(circle at top left, #dff6f1 0, transparent 40rem), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--brand-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 250, 249, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.burger { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
header.site nav { display: flex; gap: 18px; font-weight: 600; font-size: 0.95rem; }
header.site nav a { text-decoration: none; }

.hero { padding: 40px 0 8px; }
nav.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
nav.crumbs a { color: var(--muted); }
h1 { margin: 0 0 16px; font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em; }
.answer {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 18px 20px; font-size: 1.1rem; margin: 0 0 8px;
  box-shadow: 0 12px 40px rgba(17,46,44,0.06);
}
.answer b, .answer strong { color: var(--brand-dark); }

.layout { display: grid; grid-template-columns: 320px 1fr; gap: 34px; padding: 30px 0 8px; align-items: start; }
aside.faq { position: sticky; top: 78px; }
aside.faq h2 { font-size: 1.15rem; margin: 0 0 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
details[open] { border-color: var(--brand); }
summary { cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--brand); font-weight: 900; margin-right: 8px; }
details[open] summary::before { content: "\2013"; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 0.97rem; }

main article h2 { font-size: 1.5rem; margin: 30px 0 10px; letter-spacing: -0.01em; }
main article h2:first-child { margin-top: 0; }
main article p { margin: 0 0 14px; }
main article ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
main article li { margin: 6px 0; }

table.data { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.95rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
table.data th { background: #eef7f5; }
.tablewrap { overflow-x: auto; }
.caption { font-size: 0.82rem; color: var(--muted); margin: -12px 0 22px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
a.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff;
  font-weight: 800; text-decoration: none;
}
a.button.secondary { background: #fff; color: var(--brand-dark); }

/* Guides hub */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 8px 0 20px; }
.hub-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s;
}
.hub-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(17,46,44,0.08); }
.hub-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; background: #e6f2ef; }
.hub-card-body { padding: 16px 18px; }
.hub-card h2 { margin: 0 0 8px; font-size: 1.12rem; color: var(--brand-dark); }
.hub-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Guide hero image */
.guide-hero-img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 16px; margin: 4px 0 18px; border: 1px solid var(--line); background: #e6f2ef; box-shadow: 0 14px 40px rgba(17,46,44,0.08); }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 60px; color: var(--muted); font-size: 0.9rem; }
footer.site a { color: var(--brand-dark); }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 8px; }
  aside.faq { position: static; order: 2; margin-top: 18px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; font-size: 1.9rem; line-height: 1; color: var(--ink); cursor: pointer; user-select: none; }
  header.site nav { display: none; }
  .nav-toggle:checked ~ nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(17, 46, 44, 0.14); padding: 4px 20px 12px;
  }
  .nav-toggle:checked ~ nav a { padding: 14px 2px; border-top: 1px solid var(--line); font-size: 1.02rem; }
}
