:root {
  --ink: #152028;
  --ink-soft: #3a4a56;
  --paper: #f3eee4;
  --paper-2: #e8e0d2;
  --line: #c9bda8;
  --sky: #2f5f78;
  --sky-deep: #1c3d4f;
  --amber: #b56a28;
  --amber-soft: #d9a46a;
  --nav-w: 15.5rem;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(21, 32, 40, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
}

a {
  color: var(--sky);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--sky-deep); }

.site-shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr);
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 1.35rem 1rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(28, 61, 79, 0.08), transparent 38%),
    #ebe4d6;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.site-kofi {
  margin: 0 0 0.85rem;
  padding: 0 0.15rem;
}

.site-thanks-kofi {
  margin-top: 0.15rem;
  max-width: 100%;
  overflow: hidden;
}

.site-thanks-kofi .btn-container {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
}

.site-thanks-kofi a.kofi-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0.4rem 0.55rem !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  font-size: 0.78rem !important;
  text-align: center !important;
}

.site-thanks-kofi span.kofitext {
  display: inline !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-wrap: balance;
}

.site-thanks-cta {
  display: none;
}

.site-brand {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.35rem;
  padding: 0 0.35rem;
}

.site-brand .eyebrow {
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sky);
}

.site-brand .brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--sky-deep);
}

.site-nav-label {
  margin: 0 0 0.45rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.site-nav-list a,
.site-nav-list span {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.site-nav-list a:hover {
  background: rgba(255, 253, 248, 0.7);
  border-color: var(--line);
  color: var(--sky-deep);
}

.site-nav-list a.is-active {
  background: rgba(255, 253, 248, 0.95);
  border-color: var(--line);
  color: var(--sky-deep);
  box-shadow: var(--shadow);
}

.site-nav-list .soon {
  color: var(--ink-soft);
  font-weight: 500;
  font-style: italic;
  opacity: 0.85;
}

.site-nav-list .soon small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-account-slot {
  margin: 0 0 0.5rem;
}

.site-account-slot .account-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav-list .site-nav-report {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.site-nav-list .site-nav-report:hover {
  background: rgba(255, 253, 248, 0.7);
  border-color: var(--line);
  color: var(--sky-deep);
}

.eql-report-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eql-report-modal[hidden] {
  display: none;
}

body.eql-report-open {
  overflow: hidden;
}

.eql-report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 40, 0.55);
}

.eql-report-dialog {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: min(90vh, 40rem);
  overflow: auto;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(21, 32, 40, 0.25);
}

.eql-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.eql-report-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.eql-report-close {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}

.eql-report-lede {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.eql-report-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.eql-report-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 6rem;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.eql-report-shot {
  margin-top: 0.85rem;
}

.eql-report-shot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.eql-report-upload,
.eql-report-ghost,
.eql-report-send {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
}

.eql-report-upload {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.eql-report-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.eql-report-send {
  border: 1px solid var(--sky-deep);
  background: var(--sky-deep);
  color: #f7f3eb;
}

.eql-report-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eql-report-filename {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.eql-report-preview {
  display: block;
  margin-top: 0.5rem;
  max-width: 100%;
  max-height: 12rem;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fffdf8;
}

.eql-report-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.eql-report-status {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
}

.eql-report-status.err { color: #8a3724; }
.eql-report-status.ok { color: var(--sky-deep); }

.eql-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.site-nav-foot {
  margin-top: 1rem;
  padding: 0.75rem 0.35rem 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.site-nav-legal {
  display: none;
}

.site-legal-bar {
  position: fixed;
  left: var(--nav-w);
  right: 0;
  bottom: 0;
  z-index: 16;
  padding: 0.42rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(235, 228, 214, 0.94);
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}

.site-legal-bar a {
  color: var(--sky-deep);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  margin: 0 0.12rem;
}

.site-nav-ad:has(.ad-slot--idle),
.ad-slot--idle {
  display: none;
}

.site-howto {
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.site-howto > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.62rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.site-howto > summary::-webkit-details-marker {
  display: none;
}

.site-howto > summary::before {
  content: "▸";
  display: inline-block;
  width: 0.9rem;
  color: var(--sky);
}

.site-howto[open] > summary::before {
  content: "▾";
}

.site-howto-body {
  padding: 0.15rem 0.95rem 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-howto-body ol,
.site-howto-body ul {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.site-howto-body li + li {
  margin-top: 0.32rem;
}

.site-howto-body p {
  margin: 0.65rem 0 0;
}

.site-howto-cmds {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px dashed var(--line);
  background: rgba(28, 61, 79, 0.05);
  font-size: 0.86rem;
}

.site-howto-cmds p {
  margin: 0 0 0.4rem;
}

.site-howto-cmds kbd {
  font-family: inherit;
  font-size: 0.84em;
  font-weight: 700;
  padding: 0.05rem 0.28rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  border-radius: 2px;
}

.lucy-app > .site-howto .site-howto-cmds {
  border-color: var(--lucy-line);
  background: rgba(0, 0, 0, 0.22);
}

.lucy-app > .site-howto {
  background: var(--lucy-panel);
  border-color: var(--lucy-line);
  color: var(--lucy-ink);
}

.lucy-app > .site-howto > summary {
  color: var(--lucy-gold);
}

.lucy-app > .site-howto > summary::before {
  color: var(--lucy-gold);
}

.lucy-app > .site-howto-body,
.lucy-app > .site-howto .site-howto-body {
  border-top-color: var(--lucy-line);
  color: var(--lucy-muted);
}

.site-thanks {
  margin: 1rem 0 0;
  padding: 0.85rem 0.8rem 0.95rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.95), rgba(232, 224, 210, 0.65));
  box-shadow: var(--shadow);
}

.site-thanks-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
}

.site-thanks-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--sky-deep);
}

.site-thanks-copy,
.site-thanks-note {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.site-thanks-note {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-weight: 600;
}

.site-nav-ad {
  margin-top: auto;
  padding-top: 1rem;
}

.ad-slot {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.55);
  border: 1px dashed rgba(201, 189, 168, 0.9);
}

.ad-slot--banner {
  margin: 0.75rem 1.25rem 0;
  min-height: 90px;
  max-width: 100%;
}

.ad-slot--square {
  width: 100%;
  max-width: 11.5rem;
  margin: 0 auto;
  min-height: 11.5rem;
  aspect-ratio: 1 / 1;
}

.ad-slot--placeholder {
  display: grid;
  place-items: center;
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
}

.ad-slot .adsbygoogle {
  min-height: inherit;
}

.ad-slot--house {
  overflow: visible;
  background: transparent;
  border: none;
  min-height: 0;
}

.house-ad {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  min-height: 90px;
  padding: 0.85rem 1.1rem 0.85rem 1.2rem;
  text-decoration: none;
  color: #f4efe4;
  background:
    radial-gradient(520px 140px at 8% 0%, rgba(217, 164, 106, 0.22), transparent 58%),
    linear-gradient(105deg, #163544 0%, #1c3d4f 42%, #24485c 100%);
  border: 1px solid #1c3d4f;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, border-color 120ms ease;
}

.house-ad:hover {
  color: #f4efe4;
  border-color: var(--amber-soft);
  transform: translateY(-1px);
}

.house-ad .ad-label {
  position: absolute;
  top: 0.35rem;
  left: 0.7rem;
  color: rgba(244, 239, 228, 0.55);
  opacity: 1;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.house-ad-body {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  min-width: 0;
  padding-top: 0.45rem;
}

.house-ad-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.house-ad-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: #fffdf8;
}

.house-ad-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.house-ad-copy {
  flex: 1 1 14rem;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: rgba(244, 239, 228, 0.88);
}

.house-ad-cta {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--sky-deep);
  background: var(--amber-soft);
  border: 1px solid rgba(217, 164, 106, 0.9);
}

.house-ad:hover .house-ad-cta {
  background: #e8b87a;
}

@media (max-width: 900px) {
  .ad-slot--banner {
    margin: 0.65rem 1rem 0;
  }

  .site-nav-ad {
    margin-top: 1.25rem;
  }

  .house-ad {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem 0.95rem 0.9rem;
  }

  .house-ad-copy {
    flex-basis: 100%;
  }

  .house-ad-cta {
    margin-left: 0;
  }
}

.site-main {
  min-width: 0;
  position: relative;
  padding-bottom: 2.75rem;
}

.site-topbar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-menu-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
}

.site-topbar-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sky-deep);
}

.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 500px at 30% -10%, rgba(47, 95, 120, 0.16), transparent 60%),
    radial-gradient(900px 400px at 95% 0%, rgba(181, 106, 40, 0.1), transparent 55%),
    linear-gradient(180deg, #dfe7ea 0%, var(--paper) 38%, var(--paper-2) 100%);
}

/* Landing */
.home {
  padding: 2rem 1.75rem 3rem;
  width: min(920px, 100%);
}

.home .eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sky);
}

.home h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  color: var(--sky-deep);
}

.home-lede {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tool-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.tool-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 1.2rem 1.25rem;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--sky);
  transition: border-color 120ms ease, transform 120ms ease;
}

.tool-card:hover {
  border-color: var(--sky);
  transform: translateY(-1px);
  color: inherit;
}

.tool-card.disabled {
  border-left-color: var(--line);
  opacity: 0.72;
  pointer-events: none;
}

.tool-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--sky-deep);
}

.tool-card p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}

.tool-card .meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-topbar {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(18rem, 86vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 8px 0 24px rgba(21, 32, 40, 0.12);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(21, 32, 40, 0.35);
  }

  body.nav-open .site-nav-backdrop {
    display: block;
  }

  .site-legal-bar {
    left: 0;
  }

  .home {
    padding: 1.25rem 1.1rem 2.5rem;
  }
}

/* Guides */
.guide {
  max-width: 46rem;
  padding: 1.5rem 1.5rem 3rem;
}

.guide .eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sky);
}

.guide h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: var(--sky-deep);
}

.guide-lede {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.guide h2 {
  margin: 1.75rem 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--sky-deep);
}

.guide h3 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sky-deep);
}

.guide p,
.guide li {
  line-height: 1.55;
  color: var(--ink);
}

.guide ul,
.guide ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.25rem;
}

.guide code {
  font-size: 0.9em;
  padding: 0.05rem 0.28rem;
  background: rgba(28, 61, 79, 0.08);
  border-radius: 2px;
}

.guide-disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0 1.2rem;
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.guide th,
.guide td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.guide th {
  background: rgba(28, 61, 79, 0.08);
  font-weight: 600;
  color: var(--sky-deep);
}

.guide td.num,
.guide th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.guide-draft-banner {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  background: rgba(181, 106, 40, 0.12);
  border: 1px solid var(--amber);
  font-size: 0.92rem;
}

.guide-note {
  margin: 0.75rem 0 1.1rem;
  padding: 0.7rem 0.85rem;
  background: rgba(181, 106, 40, 0.08);
  border-left: 3px solid var(--amber);
}

.guide-note p {
  margin: 0;
  font-size: 0.94rem;
}

.guide-slot-list {
  margin: 0.35rem 0 1rem;
  padding-left: 1.15rem;
}

.guide-slot-list li {
  margin: 0.28rem 0;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.guide-card {
  display: block;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  background: rgba(243, 238, 228, 0.85);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.guide-card:hover {
  border-color: var(--sky);
}

.guide-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.guide-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.home-seo {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 42rem;
}

.home-seo h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--sky-deep);
}

.home-seo p,
.home-seo li {
  color: var(--ink-soft);
  line-height: 1.5;
}

.home-seo h2 + p {
  margin-top: 0;
}

.tool-about {
  margin: 1.35rem 0 1.5rem;
  padding: 0.95rem 1.05rem 1.05rem;
  max-width: 46rem;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}

.tool-about h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.28rem;
  color: var(--sky-deep);
}

.tool-about p,
.tool-about li {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tool-about p:last-child,
.tool-about ul:last-child {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 32rem;
}

.contact-form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sky-deep);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fffdf8;
}

.contact-form .contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.2em;
  font-size: 0.9rem;
}

.contact-status.ok { color: var(--sky-deep); }
.contact-status.err { color: #8a3724; }

.guide-related {
  margin-top: 1.75rem;
  font-size: 0.95rem;
}

.sky-class-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
}

.sky-class-pill {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--sky-deep);
  border: 1px solid var(--line);
  background: rgba(243, 238, 228, 0.7);
}

.sky-class-pill:hover {
  border-color: var(--sky);
}

.sky-class-pill.is-current {
  color: #fff;
  background: var(--sky-deep);
  border-color: var(--sky-deep);
}

.sky-quest {
  margin: 0 0 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.sky-quest:last-of-type {
  border-bottom: none;
}

.sky-quest h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--sky-deep);
}

.sky-quest-meta {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sky-parts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sky-parts th,
.sky-parts td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.sky-parts th {
  background: rgba(28, 61, 79, 0.08);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sky-reward-toc {
  margin: 0.4rem 0 1.25rem;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 1.5rem;
}

.sky-reward-toc li {
  break-inside: avoid;
  margin: 0.15rem 0;
}

.sky-reward-toc a {
  color: var(--sky-deep);
}

@media (max-width: 720px) {
  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .sky-reward-toc {
    columns: 1;
  }
}
