/* Guide page styling for CurrencyLook. Clean editorial layout to match the
   existing guides: readable measure, restrained palette, clear tables. */

:root {
  --ink: #16202e;
  --ink-soft: #3d4a5c;
  --muted: #6b7787;
  --bg: #ffffff;
  --rule: #e3e8ee;
  --brand: #0b7a5b;
  --brand-bg: #e9f5f0;
  --accent: #c9a227;
  --measure: 68ch;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.05rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: #fff; padding: .5rem 1rem; }

.site-header {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--rule);
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 1.2rem; font-size: .95rem; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--brand); }

.guide { max-width: var(--measure); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  font-weight: 600; color: var(--brand); margin: 0 0 .5rem;
}
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.02em; }
.dek { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 1rem; }
.byline { font-size: .85rem; color: var(--muted); margin: 0 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }

.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; letter-spacing: -.01em; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }

.worked { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.worked th, .worked td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--rule); }
.worked th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.worked td:not(:first-child), .worked th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

.callout {
  background: var(--brand-bg); border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0; padding: 1rem 1.2rem; margin: 1.8rem 0;
}
.callout p { margin: 0; }

.cta {
  margin: 3rem 0 2rem; padding: 1.5rem; background: #f7f9fb;
  border: 1px solid var(--rule); border-radius: 8px;
}
.cta strong { display: block; margin-bottom: .3rem; }
.cta-btn {
  display: inline-block; margin-top: 1rem; background: var(--brand); color: #fff;
  padding: .65rem 1.3rem; border-radius: 6px; text-decoration: none; font-weight: 600;
}

.keep-reading { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.keep-reading h2 { font-size: 1.2rem; margin: 0 0 .8rem; }
.keep-reading ul { list-style: none; padding: 0; margin: 0; }
.keep-reading li { margin-bottom: .5rem; }

.site-footer {
  border-top: 1px solid var(--rule); padding: 2rem clamp(1rem, 4vw, 2rem);
  font-size: .9rem; color: var(--muted); max-width: 900px; margin: 0 auto;
}
.site-footer .disclaimer { font-size: .82rem; }

/* ---- Guides index page ---- */
.guides-index { max-width: 860px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 4rem; }
.guides-index h1 { margin-bottom: .6rem; }
.guides-index .dek { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.guide-section { margin-bottom: 2.8rem; }
.guide-section h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.section-blurb { color: var(--muted); margin: 0 0 1.2rem; font-size: .95rem; }
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.guide-card a { display: block; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--rule); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.guide-card a:hover { border-color: var(--brand); box-shadow: 0 2px 12px rgba(11,122,91,.08); }
.guide-card h3 { font-size: 1.02rem; margin: 0 0 .35rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.guide-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.badge { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #fff; background: var(--brand); padding: .12rem .4rem; border-radius: 4px; }
