/* AI4Convey - shared styles. One file, no frameworks, no build step.
   Colours match the report email so the site and the email feel like one thing. */

:root {
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --red: #b42318;
  --green: #067647;
  --wrap: 1080px;
  --text: 720px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 17px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 40px; letter-spacing: -0.5px; }
h2 { font-size: 27px; margin-top: 8px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--blue); }
strong { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--text); }
.section { padding: 56px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 19px; color: var(--body); }
.muted { color: var(--muted); font-size: 15px; }
.center { text-align: center; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 20px; color: var(--blue); text-decoration: none; letter-spacing: -0.3px; }
.logo span { color: var(--ink); }
.site-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--body); text-decoration: none; font-size: 15.5px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
/* the nav link colour would otherwise beat .btn on specificity */
.site-nav a.btn, .site-nav a.btn:hover, .site-nav a.btn[aria-current="page"] { color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero h1 { max-width: 760px; }
.hero .lead { max-width: 640px; font-size: 20px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px;
}

/* Sample finding, reused on a few pages */
.finding {
  border: 1px solid var(--line);
  border-left: 4px solid #d92d20;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fff;
}
.finding .tag {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px;
  font-size: 12px; font-weight: 600; background: #fdecea; color: var(--red);
}
.finding .where { font-style: italic; color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* Notice box */
.notice {
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.notice strong { display: block; margin-bottom: 6px; }

/* Forms */
.form { max-width: 560px; }
.form label { display: block; font-weight: 600; color: var(--ink); margin: 18px 0 6px; font-size: 15.5px; }
.form input[type=text], .form input[type=email], .form input[type=file] {
  width: 100%; padding: 12px 14px; border: 1px solid #d1d5db;
  border-radius: 8px; font: inherit; background: #fff;
}
.form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 15px; }
.consent input { margin-top: 5px; flex-shrink: 0; }
.form .btn { margin-top: 22px; width: 100%; }
.form-msg { margin-top: 14px; min-height: 24px; font-size: 15.5px; }
.form-msg.error { color: var(--red); }
.form-msg.ok { color: var(--green); }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 40px 0 28px;
  font-size: 15px;
  color: var(--muted);
}
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.site-footer h4 { color: var(--ink); font-size: 15px; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13.5px; }

table.plain { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 16px; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { color: var(--ink); }

@media (max-width: 860px) {
  h1 { font-size: 31px; }
  h2 { font-size: 24px; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 40px 0; }
  .grid-3, .grid-2, .footer-cols { grid-template-columns: 1fr; }
  .site-header .wrap { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; gap: 14px; }
}


/* Guides and article pages */
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.section-heading-row > a { white-space: nowrap; text-decoration: none; font-weight: 600; }
.guide-card h3 a, .guide-list-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover, .guide-list-card h2 a:hover { color: var(--blue); }
.card-link { margin-top: 16px; font-weight: 600; }
.card-link a { text-decoration: none; }
.article-hero { padding: 50px 0 34px; border-bottom: 1px solid var(--line); background: #fff; }
.article-wrap { max-width: 980px; }
.article-hero h1 { max-width: 860px; }
.article-meta, .breadcrumb { color: var(--muted); font-size: 14.5px; }
.breadcrumb { margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 700px) 240px; gap: 40px; align-items: start; padding-top: 44px; padding-bottom: 60px; }
.article-body { min-width: 0; }
.article-body h2 { margin: 34px 0 12px; font-size: 27px; }
.article-body h3 { margin: 26px 0 10px; font-size: 21px; }
.article-body p { margin-bottom: 17px; }
.article-body ul, .article-body ol { margin: 0 0 20px; }
.article-body blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: var(--bg); color: var(--ink); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.article-body a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.article-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.article-table th, .article-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table th { background: var(--bg); color: var(--ink); }
.article-aside { position: sticky; top: 92px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.aside-card h2 { font-size: 20px; }
.aside-card .btn { width: 100%; text-align: center; padding-left: 12px; padding-right: 12px; }
.aside-card .muted { margin: 10px 0 0; }
.aside-links { margin-top: 24px; }
.aside-links h3 { font-size: 16px; }
.aside-links ul { list-style: none; margin: 0; padding: 0; }
.aside-links li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.aside-links a { color: var(--body); text-decoration: none; }
.aside-links a:hover { color: var(--blue); }
.article-disclaimer { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--amber-line); background: var(--amber-bg); border-radius: var(--radius); }
.article-disclaimer p { margin: 6px 0 0; }
.guide-list { display: grid; gap: 0; }
.guide-list-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.guide-list-card:first-child { padding-top: 0; }
.guide-list-card:last-child { border-bottom: 0; padding-bottom: 0; }
.guide-list-card h2 { margin: 0 0 8px; font-size: 23px; }

@media (max-width: 860px) {
  .section-heading-row { display: block; }
  .section-heading-row > a { display: inline-block; margin-top: 12px; }
  .article-layout { grid-template-columns: 1fr; padding-top: 30px; }
  .article-aside { position: static; }
  .aside-links { display: none; }
  .article-hero { padding: 36px 0 26px; }
}
