/* Shared styling for the static guide pages.

   The guides are deliberately plain HTML rather than routes in the React app.
   The app renders into an empty <div id="root">, so a crawler that does not
   execute JavaScript sees nothing; these pages are the site's indexable
   surface and must not depend on the bundle loading. */

:root {
  --primary-color: #0b1a3d;
  --brand-navy: #052348;
  --brand-orange: #c94d38;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg-light);
  background-image:
    radial-gradient(at 0% 0%, hsla(210, 100%, 95%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(14, 70%, 95%, 1) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary-color); line-height: 1.25; }

.container { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header img { max-height: 44px; width: auto; display: block; }
.header-cta {
  background: var(--brand-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  white-space: nowrap;
}
.header-cta:hover { background: #b23f2c; }

/* Article */
article { padding: 2.5rem 0 1rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.6rem;
}
article h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.75rem; }
.standfirst { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; }
.byline {
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 0;
  margin-bottom: 2rem;
}
article h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
article h3 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
article p { margin-bottom: 1rem; }
article ul, article ol { margin: 0 0 1.15rem 1.3rem; }
article li { margin-bottom: 0.45rem; }
article a { color: #1d4ed8; }
strong { color: var(--primary-color); }

.callout {
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .callout-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; font-size: 0.94rem; }
th, td { border: 1px solid var(--border-color); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
th { background: var(--primary-color); color: #fff; font-family: var(--font-heading); font-weight: 600; }
tbody tr:nth-child(even) { background: #f8fafc; }

/* Lead form */
.lead-block {
  background: var(--primary-color);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2.5rem 0;
}
.lead-block h2 { color: #fff; margin-top: 0; }
.lead-block p { color: #cbd5e1; }
.lead-form { margin-top: 1.25rem; display: grid; gap: 0.85rem; }
.lead-form label { display: block; font-size: 0.85rem; font-weight: 600; color: #e2e8f0; margin-bottom: 0.3rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1rem;
}
.lead-form button {
  background: var(--brand-orange);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.lead-form button:hover { background: #b23f2c; }
.lead-form button[disabled] { opacity: 0.6; cursor: not-allowed; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.8rem; color: #94a3b8; margin-top: 0.5rem; }
.form-status { border-radius: 8px; padding: 0.75rem 0.9rem; font-weight: 600; }
.form-status.ok { background: #dcfce7; color: #166534; }
.form-status.err { background: #fee2e2; color: #991b1b; }

/* Related + footer */
.related { margin: 2.5rem 0; }
.related ul { list-style: none; margin-left: 0; }
.related li { margin-bottom: 0.6rem; }
.site-footer {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
}
.site-footer img { max-height: 34px; width: auto; margin: 0 auto 0.75rem; display: block; }
.site-footer a { color: var(--text-light); margin: 0 0.5rem; }

@media (max-width: 640px) {
  .site-header img { max-height: 34px; }
  .lead-block { padding: 1.25rem; }
}
