/* =========================================================
   SOUTHERLY ALLOY — Guide / Knowledge article styles
   SELF-CONTAINED: defines the site token set locally (same values
   as product-template.css on the live server) so the guide page
   needs NO external stylesheet. Layout = article-shell (hero,
   content width, tables, FAQ accordion, CTA).
   ========================================================= */

:root {
  --sa-primary: #0f355e;
  --sa-accent: #1f5f9c;
  --sa-accent-light: #8eb8d8;
  --sa-heading: #173b5d;
  --sa-heading-dark: #102f4f;
  --sa-body-text: #5b6c7d;
  --sa-bg-light: #f6f8fa;
  --sa-border: #e4e9ee;
  --sa-white: #ffffff;
}

.sa-guide {
  background: var(--sa-white);
  /* Force the article to fill Astra's .ast-container (flex column). Without
     this, the bare <article> shrinks to content width and aligns left. */
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* ---- Hero ---- */
.sa-guide-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--sa-primary);
  color: var(--sa-white);
  padding: 64px 20px 56px;
  text-align: center;
  min-height: 240px;
}
/* When a featured image is present it becomes the hero background; a
   semi-transparent navy overlay keeps the white title/text readable. */
.sa-guide-hero.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.sa-guide-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 53, 94, 0.66);
}
.sa-guide-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}
.sa-guide-title {
  color: var(--sa-white);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.sa-guide-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 18px;
}
.sa-guide-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.sa-guide-meta a {
  color: rgba(255, 255, 255, 0.85);
}
/* Featured image is now the hero background (see .sa-guide-hero.has-bg);
   the standalone .sa-guide-featured block is no longer rendered. */

/* ---- Body content ---- */
.sa-guide-content {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
  color: var(--sa-body-text);
  font-size: 16px;
  line-height: 1.75;
}
.sa-guide-content h2 {
  color: var(--sa-heading);
  font-size: 26px;
  margin: 36px 0 14px;
}
.sa-guide-content h3 {
  color: var(--sa-heading-dark);
  font-size: 20px;
  margin: 26px 0 10px;
}
.sa-guide-content p {
  margin: 0 0 16px;
}
.sa-guide-content ul,
.sa-guide-content ol {
  margin: 0 0 16px 22px;
}
.sa-guide-content li {
  margin: 0 0 8px;
}
.sa-guide-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14.5px;
}
.sa-guide-content th,
.sa-guide-content td {
  border: 1px solid var(--sa-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.sa-guide-content thead th {
  background: var(--sa-primary);
  color: var(--sa-white);
}
.sa-guide-content tbody tr:nth-child(even) {
  background: var(--sa-bg-light);
}
.sa-guide-content a {
  color: var(--sa-accent);
  text-decoration: underline;
}

/* ---- FAQ accordion (native <details>) ---- */
.sa-guide-content details {
  border: 1px solid var(--sa-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 12px;
  background: var(--sa-bg-light);
}
.sa-guide-content details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sa-heading);
}
.sa-guide-content details p {
  margin: 10px 0 0;
}

/* ---- CTA ---- */
.sa-guide-cta {
  background: var(--sa-bg-light);
  padding: 40px 20px;
}
.sa-guide-cta-box {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  background: var(--sa-primary);
  color: var(--sa-white);
  border-radius: 12px;
  padding: 32px 24px;
}
.sa-guide-cta-title {
  color: var(--sa-white);
  margin: 0 0 10px;
  font-size: 24px;
}
.sa-guide-cta-text {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px;
}
.sa-guide-cta-button {
  display: inline-block;
  background: var(--sa-white);
  color: var(--sa-primary);
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.sa-guide-cta-button:hover {
  background: var(--sa-accent-light);
}

@media (max-width: 600px) {
  .sa-guide-content {
    font-size: 15px;
  }
  .sa-guide-title {
    font-size: 28px;
  }
}
