/* FinSchild Articles — static SEO pages */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #0a2c73;
  --primary-light: #13408f;
  --accent: #e8b923;
  --foreground: #1a2332;
  --muted: #6b7a8a;
  --background: #ffffff;
  --background-subtle: #f4f6f8;
  --border: #e2e8ef;
  --footer-bg: #1a2332;
  --shadow-soft: 0 4px 20px rgba(10, 44, 115, 0.08);
  --shadow-medium: 0 8px 30px rgba(10, 44, 115, 0.12);
  --max-content: 45rem;
  --max-wide: 1200px;
  --space-inline: clamp(1rem, 4vw, 1.5rem);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0.375rem;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.75rem var(--space-inline);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--primary);
  text-decoration: none;
  min-width: 0;
}
.site-logo:hover { text-decoration: none; color: var(--primary-light); }

.site-logo__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.site-logo__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #fff;
  fill: none;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.site-nav a {
  color: rgba(26, 35, 50, 0.8);
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 480px) {
  .site-nav { gap: 1rem 1.5rem; }
  .site-nav a { font-size: 0.9375rem; }
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--primary); }

.btn-primary {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none !important;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  color: #fff !important;
}

/* Main layout — 1200px max; article prose narrower inside */
.page-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.5rem var(--space-inline) 3rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .page-main { padding-top: 2rem; padding-bottom: 4rem; }
}

.page-main--article {
  max-width: var(--max-wide);
}

.page-main--article .breadcrumb,
.page-main--article .article-header,
.page-main--article .article-body,
.page-main--article .cta-banner {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
}

.page-main--article .related-articles {
  max-width: 100%;
}

/* Hub hero */
.hub-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hub-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hub-hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
}

/* Article tiles */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}

.article-tile {
  display: flex;
  flex-direction: column;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.article-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: inherit;
}

.article-tile__badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  background: rgba(10, 44, 115, 0.08);
  color: var(--primary);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.article-tile__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.article-tile__excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
}

.article-tile__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.article-tile__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.25rem;
  color: var(--border);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Article body */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--foreground);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--foreground);
}

.article-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: var(--foreground);
}

.article-body p { margin: 0 0 1.25rem; }

.article-body,
.breadcrumb,
.article-header h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

@media (min-width: 480px) {
  .article-body ul,
  .article-body ol { padding-left: 1.5rem; }
}

.article-body li { margin-bottom: 0.5rem; }

.article-body strong { font-weight: 600; }

/* CTA banner */
.cta-banner {
  margin: 2rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1a5299 100%);
  border-radius: 0.75rem;
  color: #fff;
  text-align: center;
}

@media (min-width: 480px) {
  .cta-banner {
    margin: 3rem 0;
    padding: 2rem;
  }
}

.cta-banner h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-banner p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  font-size: 1rem;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary) !important;
}
.cta-banner .btn-primary:hover { color: var(--primary-light) !important; }

/* Related articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

.related-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background-subtle);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.related-card:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: inherit;
}

.related-card__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.related-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--foreground);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem var(--space-inline) 1.5rem;
}

@media (min-width: 640px) {
  .site-footer { padding-top: 3rem; }
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer p { margin: 0 0 0.5rem; font-size: 0.875rem; }

.site-footer a { color: rgba(255, 255, 255, 0.7); }
.site-footer a:hover { color: #fff; }

.site-footer h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li { margin-bottom: 0.5rem; }
.site-footer li a { font-size: 0.875rem; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  text-align: center;
}

/* iPhone SE and narrow phones (320px+) */
@media (max-width: 374px) {
  .site-logo__icon {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
  }

  .article-tile {
    padding: 1.125rem;
  }

  .hub-hero h1 {
    font-size: 1.625rem;
  }
}
