:root {
  color-scheme: light;
  --ink: #172e29;
  --muted: #506660;
  --line: #dce7e1;
  --paper: #f5f8f6;
  --green: #146653;
  --green-dark: #123c33;
  --mint: #e8f4ee;
  --yellow: #f8d37c;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--green); text-underline-offset: .18em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #bc7517;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  z-index: 5;
  background: white;
  padding: .7rem 1rem;
  margin: .5rem;
  border-radius: .5rem;
}
.shell { width: min(100% - 3rem, 1420px); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-inner { min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand small { margin-left: .55rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.top-link { font-size: .92rem; font-weight: 700; text-decoration: none; }
.top-link:hover { text-decoration: underline; }
.layout { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); gap: 2.1rem; padding-block: 2.2rem 5rem; }
.rail { min-width: 0; }
.rail-inner { position: sticky; top: 1.4rem; padding: .6rem 0; }
.rail-label { color: var(--muted); font-size: .875rem; font-weight: 750; margin: 0 .65rem .7rem; }
#guide-nav { display: grid; gap: .24rem; }
#guide-nav a {
  padding: .62rem .75rem;
  border-radius: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 620;
}
#guide-nav a:hover, #guide-nav a[aria-current] { background: var(--mint); color: var(--green-dark); }
.hero {
  min-height: 16.4rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.25rem min(5vw, 3rem);
  border-radius: 1.2rem;
  background: var(--green-dark);
  color: #fff;
}
.hero-copy { position: relative; max-width: 44rem; }
.eyebrow { color: var(--yellow); margin: 0 0 .45rem; font-size: .9rem; font-weight: 760; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.25rem, 5.6vw, 4.25rem); line-height: 1.07; letter-spacing: -.055em; }
.hero-copy > p:not(.eyebrow) { color: #dcefe8; max-width: 38rem; margin: .85rem 0 1.3rem; }
.hero-pattern {
  position: absolute;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  right: -12rem;
  top: -8rem;
  border-radius: 46%;
  opacity: .6;
  background: repeating-radial-gradient(ellipse at center, transparent 0 13px, #42866e 14px 15px, transparent 16px 25px);
  transform: rotate(-16deg);
  mask-image: linear-gradient(135deg, transparent 8%, black 65%);
}
#search-form { display: flex; gap: .5rem; max-width: 39rem; }
#search-form input {
  flex: 1;
  min-width: 0;
  padding: .68rem .86rem;
  background: #fff;
  border: 1px solid #fff;
  border-radius: .53rem;
  color: var(--ink);
}
#search-form button { background: var(--yellow); color: #342604; border: 0; border-radius: .53rem; padding: .62rem 1.13rem; font-weight: 800; }
#search-form button:hover { background: #ffe19a; }
.search-panel { background: #fff; border: 1px solid var(--line); border-radius: .9rem; margin-top: 1rem; padding: 1rem 1.3rem; }
.search-panel h2, .search-panel ul, .search-panel p { margin-block: .2rem .55rem; }
.search-panel li { margin-bottom: .42rem; }
.search-panel a { font-weight: 700; }
.search-panel small { display: block; color: var(--muted); font-size: .875rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.text-button { color: var(--green); background: transparent; border: 0; text-decoration: underline; padding: .2rem; }
.overview-heading { font-size: 1.5rem; margin: 1.5rem 0 .75rem; letter-spacing: -.02em; }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .7rem; margin-bottom: 2rem; }
.guide-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--ink);
}
.guide-card:hover { border-color: #82b49f; background: #fcfffd; }
.guide-card strong { display: block; color: var(--green); font-size: 1.03rem; }
.guide-card span { display: block; color: var(--muted); margin-top: .2rem; font-size: .91rem; }
.guide { margin-top: 2rem; scroll-margin-top: 1rem; }
.guide-header { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.guide-header h2 { margin: 0; font-size: clamp(1.85rem, 4vw, 2.7rem); letter-spacing: -.045em; line-height: 1.14; }
.guide-header p { color: var(--muted); margin: .4rem 0 .65rem; }
.guide-header a { display: inline-block; font-weight: 750; }
.topic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.16rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .84rem;
  margin-top: .8rem;
  scroll-margin-top: 1rem;
}
.topic.with-image { grid-template-columns: minmax(15rem, .84fr) minmax(0, 1.16fr); }
.topic h3 { font-size: 1.22rem; line-height: 1.28; margin: 0 0 .4rem; }
.topic p { margin: .3rem 0; color: var(--muted); }
.topic ol { margin: .45rem 0 0; padding-left: 1.45rem; }
.topic li { padding-left: .18rem; margin-top: .27rem; }
.topic li::marker { color: var(--green); font-weight: 750; }
.gallery { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.screenshot { margin: 0; min-width: 0; }
.screenshot button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .64rem;
  background: var(--paper);
}
.screenshot button:hover { border-color: var(--green); }
.screenshot img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.screenshot figcaption { color: var(--muted); margin-top: .37rem; font-size: .875rem; }
.faq { margin-top: 1.35rem; }
.faq h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.faq details { border-top: 1px solid var(--line); padding: .65rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: .4rem 0 .3rem; color: var(--muted); }
.footer { background: white; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 4.8rem; font-size: .92rem; }
dialog { padding: 0; width: min(96vw, 1380px); max-height: 95vh; border: 0; border-radius: .8rem; background: #fff; }
dialog::backdrop { background: #102620d9; }
.dialog-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem .85rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.dialog-toolbar button { background: var(--mint); border: 0; border-radius: .4rem; padding: .36rem .7rem; color: var(--green-dark); font-weight: 700; }
#full-image { display: block; width: 100%; height: auto; }
@media (max-width: 980px) {
  .shell { width: min(100% - 2rem, 1420px); }
  .layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
  .topic.with-image { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .layout { display: block; padding-top: .85rem; padding-bottom: 2.5rem; }
  .rail-inner { padding: 0 0 .8rem; }
  .rail-label { margin-left: 0; }
  #guide-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
  #guide-nav a { background: #fff; border: 1px solid var(--line); padding: .32rem .53rem; font-size: .875rem; }
  .hero { padding: 1.25rem; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .overview { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 410px) {
  .overview { grid-template-columns: 1fr; }
  .top-link { font-size: .82rem; }
}
