/* Standalone stylesheet for the static /guides/ article pages — these are
   deliberately NOT part of the zero-build app (App.* namespace, i18n, the
   router). They're plain crawlable HTML.

   Palette is the landing page's warm red/orange/amber set (see the LANDING
   section of css/views.css), kept here as literal hex values rather than
   tokens.css variables: the marketing surfaces share one look, and the app
   tokens describe the signed-in UI's cooler palette, so pointing these at
   tokens.css would make the guides drift whenever the app's chrome changes.
   Declared once here so the four article pages stay purely structural. */

:root {
  --g-bg: #fffaf5;
  --g-surface: #fff;
  --g-surface-warm: #fff3e6;
  --g-border: #f0e4d6;
  --g-text: #241c14;
  --g-muted: #6b5f52;
  --g-faint: #8a7d6d;
  --g-cream: #fff8ee;
  --g-accent: #c2410c;
  --g-accent-hover: #9a3412;
  --g-radius: 16px;
}

body {
  background: var(--g-bg); color: var(--g-text); font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.5; margin: 0;
}

/* ---- Header (mirrors the landing header's scrolled state) ---- */
.guide-header {
  display: flex; align-items: center; gap: 12px; padding: 18px 32px;
  background: linear-gradient(120deg, #b91c1c, #e8590c);
  box-shadow: 0 4px 20px rgba(120, 20, 10, 0.22);
}
.guide-header img { height: 40px; width: auto; border-radius: 8px; }
.guide-header .brand {
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 20px;
  color: var(--g-cream); text-decoration: none; letter-spacing: -0.01em;
}
.guide-header .back-link {
  margin-left: auto; font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 13.5px;
  color: var(--g-cream); text-decoration: none;
  border: 1.5px solid rgba(255, 248, 238, 0.5); background: rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 9px 18px; transition: background 0.2s;
}
.guide-header .back-link:hover { background: rgba(255, 255, 255, 0.22); }
.guide-header .lang-switch {
  font-family: 'DM Mono', monospace; font-weight: 600; font-size: 12.5px; letter-spacing: 0.04em;
  color: rgba(255, 248, 238, 0.75); text-decoration: none; padding: 9px 10px;
}
.guide-header .lang-switch:hover { color: var(--g-cream); }

/* ---- Article body ---- */
.guide-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.guide-kicker {
  display: inline-block; background: var(--g-surface-warm); color: var(--g-accent);
  font-family: 'DM Mono', monospace; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.guide-wrap h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.12; color: var(--g-text); margin: 0 0 18px; letter-spacing: -0.01em;
}
.guide-lede { font-size: 17px; line-height: 1.7; color: var(--g-muted); margin-bottom: 40px; }
.guide-wrap h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 26px;
  color: var(--g-text); margin: 44px 0 14px;
}
.guide-wrap h3 { font-size: 16px; font-weight: 600; color: var(--g-text); margin: 28px 0 10px; }
.guide-wrap p { margin: 0 0 16px; color: #4a4038; }
.guide-wrap ul, .guide-wrap ol { margin: 0 0 16px; padding-left: 22px; }
.guide-wrap li { margin-bottom: 8px; color: #4a4038; }
.guide-wrap strong { font-weight: 600; color: var(--g-text); }
.guide-wrap a { color: var(--g-accent); text-decoration-color: rgba(194, 65, 12, 0.35); }
.guide-wrap a:hover { color: var(--g-accent-hover); text-decoration-color: currentColor; }

.guide-formula {
  background: var(--g-surface); border: 1px solid var(--g-border); border-radius: var(--g-radius);
  border-left: 4px solid #e8590c;
  padding: 20px 24px; margin: 0 0 24px; font-family: 'DM Mono', monospace; font-size: 13.5px; line-height: 1.8;
}

.guide-example {
  background: var(--g-surface-warm); border: 1px solid var(--g-border); border-radius: var(--g-radius);
  padding: 22px 26px; margin: 0 0 24px;
}
.guide-example .label {
  font-family: 'DM Mono', monospace; font-weight: 600; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--g-accent); margin-bottom: 10px;
}

.guide-table-wrap {
  overflow-x: auto; border: 1px solid var(--g-border); border-radius: var(--g-radius);
  margin: 0 0 24px; background: var(--g-surface);
}
.guide-table { width: 100%; border-collapse: collapse; font-family: 'DM Mono', monospace; font-size: 13px; }
.guide-table thead tr { background: var(--g-surface-warm); }
.guide-table th {
  text-align: left; padding: 12px 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 10.5px; color: var(--g-accent); border-bottom: 1px solid var(--g-border);
}
.guide-table td { padding: 10px 16px; border-bottom: 1px solid var(--g-border); color: #4a4038; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td.rate { text-align: right; font-weight: 500; color: var(--g-text); }

.guide-note { font-size: 12.5px; color: var(--g-faint); line-height: 1.6; margin: -8px 0 24px; }

/* ---- CTA (mirrors the landing page's own guides banner) ---- */
.guide-cta {
  background: linear-gradient(100deg, #241c14, #3a2a1c); color: var(--g-cream);
  border-radius: 20px; padding: 34px 32px; margin: 44px 0; text-align: center;
}
.guide-cta h3 { font-family: 'DM Serif Display', serif; font-weight: 400; color: var(--g-cream); margin: 0 0 10px; font-size: 24px; }
.guide-cta p { color: rgba(255, 248, 238, 0.75); margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; }
.guide-cta a {
  display: inline-block; background: linear-gradient(135deg, #f2994a, #f7c948); color: #241c14;
  text-decoration: none; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 10px; transition: transform 0.2s;
}
.guide-cta a:hover { transform: translateY(-2px); }

/* ---- Hub page list ---- */
.guide-list-page { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.guide-list-page li {
  background: var(--g-surface); border: 1px solid var(--g-border); border-radius: var(--g-radius);
  padding: 22px 24px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.guide-list-page li:hover {
  border-color: #e8b9a0; transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(120, 20, 10, 0.08);
}
.guide-list-page a { text-decoration: none; }
.guide-list-page .title {
  font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--g-text);
  margin-bottom: 8px; display: block;
}
.guide-list-page .desc { font-size: 14px; color: var(--g-muted); line-height: 1.6; }

.guide-footer {
  max-width: 720px; margin: 0 auto; padding: 28px 24px; border-top: 1px solid var(--g-border);
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--g-faint); text-align: center;
}

@media (max-width: 640px) {
  .guide-header { padding: 14px 20px; }
  .guide-wrap { padding: 36px 18px 52px; }
  .guide-cta { padding: 28px 22px; }
}
