/* FledgeNow — shared styles for generated content pages (Articles & Videos).
   Self-contained (mirrors the homepage brand tokens/nav) so article/video pages
   stay consistent without duplicating the homepage's inline CSS. */
:root {
  --brand: #f97316;
  --brand-hero: #ea580c;
  --brand-ink: #c2410c;
  --brand-soft: #fff2e8;
  --navy: #1c2b46;
  --ink: #1c1c1e;
  --muted: #5b6472;
  --line: #eadfd3;
}
* { box-sizing: border-box; }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-ink); outline-offset: 2px; border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, #fff7ed 0%, #ffffff 48%);
  min-height: 100vh; display: flex; flex-direction: column;
}
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header / brand / nav (matches homepage) */
.site-header { padding: 16px 0; background: var(--navy); position: relative; }
.site-header .wrap.nav {
  max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: clamp(24px, 5.5vw, 108px); padding-right: clamp(24px, 5.5vw, 108px);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 12px; display: block;
  box-shadow: 0 6px 16px rgba(249,115,22,0.35); flex: none; }
.wordmark { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.wordmark .accent { color: var(--brand); }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.86); text-decoration: none; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #fff; }
.nav-cta {
  background: var(--brand-hero); color: #fff !important; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; box-shadow: 0 6px 16px rgba(249,115,22,0.30);
  transition: background 0.15s ease, transform 0.12s ease;
}
.nav-cta:hover { background: var(--brand-ink); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; margin: 0 auto; background: #fff;
  border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 14px 30px rgba(28,43,70,0.12);
    padding: 8px 0; z-index: 40;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px clamp(24px, 5.5vw, 108px); font-size: 16px; color: var(--navy); }
  .nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--brand-ink); }
  .nav-menu a:not(.nav-cta) { border-bottom: 1px solid #f4ece2; }
  .nav-cta { color: #fff !important; margin: 12px clamp(24px, 5.5vw, 108px); text-align: center; border-radius: 10px; }
}

/* Main / content column */
main { flex: 1 0 auto; }
.content { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.content-wide { max-width: 1040px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--brand-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--muted); }

/* Page heads */
.page-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--navy); margin: 0 0 12px; }
.page-head .intro { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.55; margin: 0 0 8px; max-width: 60ch; }

/* Article */
.post-meta { font-size: 13px; color: var(--muted); margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-meta .tag { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700;
  padding: 2px 9px; border-radius: 999px; font-size: 12px; }
article h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 10px; }
.tldr { background: var(--brand-soft); border: 1px solid #f7d9c2; border-radius: 14px; padding: 18px 20px; margin: 0 0 26px; }
.tldr strong { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--brand-ink); margin: 0 0 6px; }
.tldr p { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.55; }
.keyfacts { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 22px; margin: 0 0 30px; background: #fff; }
.keyfacts strong { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px; color: var(--navy); margin: 0 0 10px; }
.keyfacts ul { margin: 0; padding-left: 20px; }
.keyfacts li { margin: 0 0 8px; line-height: 1.5; color: var(--ink); }

.prose { color: var(--ink); font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); color: var(--navy); letter-spacing: -0.01em; margin: 38px 0 12px; }
.prose h3 { font-size: clamp(18px, 2.4vw, 21px); color: var(--navy); margin: 28px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--brand-ink); }
.prose blockquote { margin: 22px 0; padding: 4px 18px; border-left: 4px solid var(--brand); color: var(--muted); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }

/* Author / About page */
.author-head { display: flex; align-items: center; gap: 22px; margin: 6px 0 26px; }
.author-avatar {
  width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--brand-hero), var(--brand-ink));
  color: #fff; font-size: 34px; font-weight: 800; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(249,115,22,0.32);
}
.author-photo {
  width: 116px; height: 116px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: 50% 30%;
  box-shadow: 0 10px 24px rgba(15,23,42,0.22);
  border: 3px solid #fff;
}
.author-head h1 { font-size: clamp(26px, 4vw, 36px); color: var(--navy); letter-spacing: -0.02em; margin: 0 0 4px; }
.author-role { margin: 0 0 10px; color: var(--brand-ink); font-weight: 700; font-size: 16px; }
.author-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.author-chips .tag { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; padding: 3px 11px; border-radius: 999px; font-size: 13px; }
@media (max-width: 560px) {
  .author-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* FAQ */
.faq { margin: 40px 0 0; }
.faq h2 { font-size: clamp(22px, 3vw, 28px); color: var(--navy); margin: 0 0 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }

/* Post CTA */
.post-cta { margin: 40px 0 0; background: var(--navy); color: #fff; border-radius: 16px; padding: 26px 28px; }
.post-cta h2 { margin: 0 0 8px; font-size: 22px; }
.post-cta p { margin: 0 0 16px; color: rgba(255,255,255,0.85); line-height: 1.55; }
.post-cta a { display: inline-block; background: var(--brand-hero); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 22px; border-radius: 10px; }
.post-cta a:hover { background: var(--brand-ink); }

/* Card grids (hub + gallery) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin: 30px 0 0; }
.card { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(28,43,70,0.10); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-body .date { font-size: 12px; color: var(--muted); }
.card-body h2, .card-body h3 { margin: 0; font-size: 19px; line-height: 1.25; color: var(--navy); }
.card-body h2 a, .card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--brand-ink); }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.card-tags .tag { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; padding: 2px 9px; border-radius: 999px; font-size: 11px; }

.video-section-title { font-size: clamp(20px, 3vw, 26px); color: var(--navy); letter-spacing: -0.01em; margin: 34px 0 2px; }
.video-section-title:first-of-type { margin-top: 18px; }
.video-about { margin-top: 4px; }
.video-about summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--brand-ink); list-style: none; }
.video-about summary::-webkit-details-marker { display: none; }
.video-about summary::before { content: "\203A "; font-weight: 800; }
.video-about[open] summary::before { content: "\2039 "; }
.video-about p { margin: 8px 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.video-about ul { margin: 8px 0; padding-left: 18px; }
.video-about li { font-size: 14px; color: var(--muted); margin: 3px 0; line-height: 1.45; }

/* Video facade (click-to-load, keeps Core Web Vitals fast) */
.video-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0;
  cursor: pointer; background: #000; display: block; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.video-thumb:hover img { opacity: 1; }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px;
  background: rgba(28,43,70,0.82); display: flex; align-items: center; justify-content: center;
}
.video-thumb .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff; margin-left: 3px; }
.video-thumb:hover .play { background: var(--brand-hero); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
footer { flex-shrink: 0; background: var(--navy); color: rgba(255,255,255,0.85); text-align: center;
  padding: 30px 24px; font-size: 14px; }
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .copyright { margin-top: 12px; color: rgba(255,255,255,0.6); font-size: 13px; }
footer .disclaimer { margin: 12px auto 0; max-width: 640px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.55); }
