:root {
  --paper: #fcfbfc;
  --blue: #5d7ca6;
  --ink: #304254;
  --line: #dce3ec;
  --soft: #edf1f7;
  --gold: #c7a238;
  --card: #fffefa;
  --details: #f0f4f6;
  --muted: #54667b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "SimsHeadline", Arial, sans-serif;
}

body * { font-family: "SimsHeadline", Arial, sans-serif; }

a { color: #46658e; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--paper);
  padding: 12px;
  z-index: 2;
}

.masthead {
  position: relative;
  padding: 22px 30px 65px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}

.masthead .brand {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 1000px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.theme-toggle {
  position: absolute;
  right: 30px;
  bottom: 16px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

main { max-width: 1150px; margin: auto; padding: 38px 28px; }
.intro { text-align: center; max-width: 820px; margin: 0 auto 34px; }
.eyebrow { font-size: 11px; letter-spacing: 3px; font-weight: bold; }
h1, h2, h3 { color: var(--blue); font-weight: 400; line-height: 1.3; }
h1 { font-size: 30px; margin: 0 0 12px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
.intro p { margin: 14px 0; }

.guide-sections { display: grid; gap: 16px; }
.guide-sections > details {
  min-width: 0;
  padding: 0 21px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow-wrap: anywhere;
}

.guide-sections > details:not([open]) { padding-bottom: 0; }
.guide-sections > details[open] { background: var(--details); }
summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -21px;
  padding: 18px 38px 18px 21px;
  background: var(--card);
  cursor: pointer;
  list-style: none;
  color: var(--blue);
  font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 18px; }
details[open] > summary::after { content: '−'; }
summary .arrow { display: none; }
summary img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
details[open] > summary { border-bottom: 1px solid var(--line); }
p img, li img { vertical-align: middle; object-fit: contain; }
main img { max-width: 100%; }
code {
  padding: 2px 6px;
  background: var(--soft);
  border-radius: 4px;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}
ul, ol { padding-left: 25px; }
.section-header, .section, .tip, .guide-tip {
  padding: 14px 18px;
  margin: 20px 0;
  background: var(--soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
}
.section-header, .section { display: flex; align-items: center; gap: 10px; }
.website-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--blue);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.website-button strong { display: inline-flex; align-items: center; gap: 6px; }
.guide-tip { margin-top: 28px; }
.guide-tip p { margin: 0; }

.site-footer {
  max-width: 1150px;
  margin: 30px auto 0;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.site-footer p { margin: 12px 0 0; }
.site-footer .footer-disclaimer { max-width: 750px; margin: 12px auto 0; font-size: 11px; opacity: 0.8; }

body.dark {
  color-scheme: dark;
  --paper: #18252b;
  --blue: #a8c4e8;
  --ink: #e7eeec;
  --line: #40555e;
  --soft: #21323a;
  --card: #21323a;
  --details: #293e48;
  --muted: #afc3cb;
}
body.dark a { color: #bed8e1; }
body.dark .website-button { background: #365c6c; color: white; }

@media (max-width: 650px) {
  main { padding: 26px 18px; }
  summary { font-size: 16px; gap: 8px; }
  summary img { width: 30px; height: 30px; }
  .guide-sections > details { padding-left: 15px; padding-right: 15px; }
  summary { margin-left: -15px; margin-right: -15px; padding-left: 15px; }
}

.guide-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.section-content { min-width: 0; }
.app-logo { object-fit: contain; margin-bottom: 12px; }
.backup-note {
  padding: 14px 20px;
  margin: 0 0 24px;
  background: var(--soft);
  border-left: 3px solid var(--blue);
  border-radius: 6px;
}
.emoji-list { padding: 0; list-style: none; }
.emoji-list li { margin: 0 0 20px; }
.icon-title-row { display: inline-flex; align-items: center; gap: 8px; }
.feature-title { color: var(--blue); }
.emoji { flex-shrink: 0; }
.resources {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 25px;
}
.resources h2 { font-size: 30px; margin: 0 0 12px; }
.resources details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.resources summary {
  display: list-item;
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  list-style: disclosure-closed outside;
}
.resources details[open] > summary { border-bottom: 0; list-style-type: disclosure-open; }
.resources summary::after { content: none; }
.resources summary::-webkit-details-marker { display: inline; }
.resources p { margin: 14px 0; overflow-wrap: anywhere; }
code {
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  color: #365c6c;
  background: #e5edf3;
  border: 1px solid #c8d5df;
  border-radius: 4px;
  padding: 3px 7px;
}
body.dark code { color: #d5e8f1; background: #18252b; border-color: #526b78; }
@media (max-width: 750px) {
  .guide-sections { grid-template-columns: 1fr; }
}

.guide-sections > details p img { height: auto; }
.faq-item { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq-question { margin: 0 0 10px; padding: 10px 14px; background: var(--soft); border-left: 3px solid var(--blue); border-radius: 4px; color: var(--blue); font-size: 18px; font-weight: bold; }
.faq-answer { padding: 0 14px; color: var(--ink); font-size: 16px; line-height: 1.7; }
.faq-answer p { margin: 0 0 12px; }
