:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5b6472;
  --line: #e3e6eb;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --accent: #16a34a;
  --accent-bg: #f0fdf4;
  --accent-line: #86efac;
  --radius: 12px;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; margin-top: 2.2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600;
  text-decoration: none; background: var(--brand); color: #fff !important; border: 0; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #15803d; }
.btn-ghost { background: transparent; color: var(--brand) !important; border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: #eff6ff; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* Layout */
main { padding: 32px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (min-width: 720px) { .card { padding: 40px; } }
.lead { font-size: 1.15rem; color: #333a47; }

/* Featured supplier */
.featured { border: 2px solid var(--accent-line); background: var(--accent-bg); border-radius: var(--radius); padding: 24px; margin: 28px 0 8px; }
@media (min-width: 720px) { .featured { padding: 32px; } }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; margin-bottom: 10px; }
.badge-neutral { background: #e5e7eb; color: #374151; }
.featured-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .featured-grid { grid-template-columns: 5fr 7fr; } }
.featured img { border-radius: 10px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; }
.facts li { padding: 6px 0; border-bottom: 1px solid #d9f0df; font-size: .97rem; }
.facts li:last-child { border-bottom: 0; }
.facts strong { color: var(--muted); font-weight: 600; margin-right: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Other listings */
.listing { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.listing h3 { font-size: 1.4rem; }
.listing .meta { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }

/* CTA banner */
.cta-banner { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 24px; margin: 32px 0; text-align: center; }
.cta-banner h2 { margin-top: 0; }

/* Table */
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f3f4f6; font-weight: 700; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 100px; color: var(--muted); font-size: .92rem; }
@media (min-width: 720px) { .site-footer { padding-bottom: 28px; } }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer nav a { margin-right: 14px; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 -4px 16px rgba(0,0,0,.06); z-index: 10; }
.sticky-cta .label { font-size: .85rem; line-height: 1.3; }
.sticky-cta .label strong { display: block; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

.nav .btn { white-space: nowrap; }

/* Related guides and hub */
.related { margin-top: 24px; }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul, .guide-list { padding-left: 1.1em; margin: 0; }
.related li, .guide-list li { margin: 6px 0; }
.guide-list li { margin: 14px 0; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 16px; margin: 20px 0; font-size: .95rem; }

/* Small phones: keep logo and header button on one line */
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .logo { font-size: 1rem; min-width: 0; }
  .nav .btn { padding: 7px 10px; font-size: .82rem; }
}
