/* Shared styles for the QA Tips pages. Colours and type match the home page. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ink: #0f1b2d;
  --ink-soft: #4a5a70;
  --line: #dde4ee;
  --brand: #0e7c66;
  --brand-dark: #0a5c4c;
  --brand-tint: #e3f4ef;
  --accent: #f2a93b;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; margin-top: 44px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 28px; }
[id] { scroll-margin-top: 80px; }
p, li { color: var(--ink-soft); }
p { margin: 0 0 16px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px; text-decoration: none;
}
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 2px solid var(--brand); transition: .15s; font-size: 1rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }

/* Nav */
header {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--brand); }
.nav-links .btn { padding: 9px 16px; color: #fff; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Page header */
.page-head { padding: 64px 0 40px; background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.page-head .lead { font-size: 1.15rem; max-width: 640px; }
.meta { font-size: .9rem; color: var(--ink-soft); }
.crumbs { font-size: .85rem; margin-bottom: 18px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* Tips list */
.tips { padding: 20px 0 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tip-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: .15s;
}
.tip-card:hover { border-color: var(--brand); box-shadow: 0 16px 30px -18px rgba(15,27,45,.35); }
.tip-card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.tip-card .body { padding: 22px; }
.tip-card h2 { font-size: 1.2rem; margin: 6px 0 10px; color: var(--ink); }
.tip-card p { font-size: .95rem; margin: 0; }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-tint); color: var(--brand-dark); text-transform: uppercase; letter-spacing: .05em; }

/* Article */
article { padding-bottom: 40px; }
article .figure { margin: 34px auto; max-width: 560px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
article ol.reasons { padding-left: 0; list-style: none; counter-reset: r; }
article ol.reasons > li { counter-increment: r; position: relative; padding-left: 52px; margin-bottom: 26px; }
article ol.reasons > li::before {
  content: counter(r); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}
article ol.reasons h3 { margin: 0 0 6px; color: var(--ink); }
article ol.reasons p { margin: 0; }
.callout { background: var(--bg-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 18px 22px; margin: 28px 0; }
.callout p:last-child { margin: 0; }
.author { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 40px; }
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; font-size: .95rem; }
.cta { background: var(--ink); border-radius: var(--radius); padding: 34px; margin: 20px 0 80px; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #c3cddb; }
.cta .btn-ghost { color: #fff; border-color: #fff; margin-left: 8px; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.1); }

footer { background: var(--ink); color: #c3cddb; padding: 36px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: #fff; }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px 16px; border-bottom: 1px solid var(--line); gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .page-head { padding: 44px 0 28px; }
  .cta { padding: 26px; }
  .cta .btn-ghost { margin: 10px 0 0; }
}
