/* =========================================================
   Article.css
   The Flying Birds — article detail template
   Scoped to body.article-page so core.css/Bootstrap do not fight it.
   ========================================================= */

:root {
  --fb-article-ink: #111111;
  --fb-article-muted: #665f54;
  --fb-article-soft: #f6f2ea;
  --fb-article-card: #ffffff;
  --fb-article-line: rgba(17, 17, 17, 0.10);
  --fb-article-gold: #c8a24a;
  --fb-article-gold-bright: #f0cf77;
  --fb-article-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}

body.article-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 74, 0.18), transparent 32rem),
    linear-gradient(180deg, #f8f5ef 0%, #eee8dd 100%);
  color: var(--fb-article-ink);
}

body.article-page a {
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.article-page-main {
  background: transparent;
}

/* =========================================================
   Hero
   ========================================================= */

.article-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0,0,0,.42), rgba(0,0,0,.88)),
    var(--article-hero-image) center center / cover no-repeat;
  border-bottom: 6px solid var(--fb-article-gold);
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 24%, rgba(240, 207, 119, 0.26), transparent 18rem),
    linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.20) 58%, rgba(0,0,0,.86));
  pointer-events: none;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.90)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.035) 0,
      rgba(255,255,255,.035) 1px,
      transparent 1px,
      transparent 78px
    );
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4.4rem;
}

.article-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  color: var(--fb-article-gold-bright);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
}

.article-kicker::before,
.section-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.article-kicker:hover,
.article-kicker:focus {
  color: #fff;
  text-decoration: none;
  background: transparent;
}

.article-hero h1 {
  max-width: 1020px;
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.article-standfirst {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.90);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  line-height: 1.65;
  font-weight: 500;
}

.article-meta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}

.article-meta-panel div {
  min-width: 148px;
  padding: .78rem .92rem;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(10px);
}

.article-meta-panel span {
  display: block;
  margin-bottom: .25rem;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-meta-panel strong {
  display: block;
  color: #fff;
  font-size: .93rem;
  line-height: 1.25;
}

/* =========================================================
   Layout
   ========================================================= */

.article-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: -3.2rem auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.article-primary {
  min-width: 0;
}

.article-featured-image {
  overflow: hidden;
  margin: 0 0 1.15rem;
  border-radius: 28px;
  background: #ded8ce;
  box-shadow: var(--fb-article-shadow);
  border: 1px solid rgba(255,255,255,.5);
}

.article-featured-image img {
  display: block;
  width: 100%;
  max-height: 590px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-body-card,
.related-articles,
.article-comments,
.sidebar-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(0,0,0,.10);
}

.article-body-card {
  padding: clamp(1.15rem, 3vw, 2.2rem);
}

.article-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17,17,17,.08);
  margin-bottom: 1rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
}

.article-back-link:hover,
.article-back-link:focus {
  background: var(--fb-article-gold);
  color: #111;
  text-decoration: none;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .38rem .72rem;
  border-radius: 999px;
  background: #f3eee5;
  color: #2f2b24;
  font-size: .82rem;
  font-weight: 850;
  text-decoration: none;
}

.article-tags a:hover,
.article-tags a:focus {
  background: var(--fb-article-gold-bright);
  color: #111;
  text-decoration: none;
}

.article-share-strip {
  margin: 1rem 0 1.4rem;
}

/* =========================================================
   Article content
   ========================================================= */

.article-content {
  color: #2f2b24;
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.82;
  letter-spacing: -.003em;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 1.35rem;
}

.article-content a {
  color: #8a641c;
  font-weight: 750;
  text-decoration: underline;
}

.article-content a:hover,
.article-content a:focus {
  color: #111;
  background: transparent;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #111;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.article-content h2 {
  position: relative;
  margin: 2.35rem 0 1rem;
  padding-left: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .14em;
  bottom: .14em;
  width: 5px;
  border-radius: 999px;
  background: var(--fb-article-gold);
}

.article-content h3 {
  margin: 2rem 0 .85rem;
  font-size: clamp(1.28rem, 2.2vw, 1.75rem);
}

.article-content h4 {
  margin: 1.65rem 0 .7rem;
  font-size: 1.2rem;
}

.article-content ul,
.article-content ol {
  margin: 1.35rem 0 1.55rem;
  padding-left: 1.45rem;
}

.article-content li {
  margin-bottom: .55rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.4rem;
  border-left: 6px solid var(--fb-article-gold);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0, #f5eee0);
  color: #2f2b24;
  font-size: 1.08rem;
  font-style: italic;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.article-content figure {
  margin: 2.3rem auto;
  text-align: center;
}

.article-content figcaption {
  margin-top: .6rem;
  color: var(--fb-article-muted);
  font-size: .92rem;
}

.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin: 2rem auto;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.article-content th,
.article-content td {
  padding: .8rem .9rem;
  border-bottom: 1px solid rgba(17,17,17,.08);
  vertical-align: top;
}

.article-content th {
  background: #111;
  color: #fff;
  font-weight: 850;
}

/* =========================================================
   Sharing / related
   ========================================================= */

.share-links,
.article-native-share {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(17,17,17,.08);
  font-size: .94rem;
}

.share-links span {
  margin-right: .2rem;
  color: var(--fb-article-muted);
  font-weight: 850;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #f3eee5;
  color: #111;
  font-weight: 850;
  text-decoration: none;
}

.share-links a:hover,
.share-links a:focus {
  background: var(--fb-article-gold-bright);
  color: #111;
  text-decoration: none;
}

.related-articles,
.article-comments {
  margin-top: 1.35rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.related-articles h2 {
  margin: 0 0 1rem;
  color: #111;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.045em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .95rem;
}

.related-card {
  overflow: hidden;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}

.related-image-link {
  display: block;
  overflow: hidden;
  background: #ded8ce;
}

.related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .28s ease;
}

.related-card:hover img {
  transform: scale(1.045);
}

.related-card-body {
  padding: .9rem;
}

.related-card time {
  display: block;
  margin-bottom: .45rem;
  color: var(--fb-article-muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
  line-height: 1.18;
  font-weight: 900;
}

.related-card h3 a {
  color: #111;
  text-decoration: none;
}

.related-card h3 a:hover {
  color: #8a641c;
  text-decoration: underline;
  background: transparent;
}

.related-card p {
  display: -webkit-box;
  margin: 0;
  color: #514b42;
  font-size: .88rem;
  line-height: 1.48;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   Sidebar
   ========================================================= */

.article-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.15rem;
}

.sidebar-label {
  display: block;
  margin-bottom: .55rem;
  color: var(--fb-article-gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sidebar-card strong {
  display: block;
  color: #111;
  font-size: 1.25rem;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.025em;
}

.sidebar-card p {
  margin: .7rem 0 1rem;
  color: var(--fb-article-muted);
  line-height: 1.55;
}

.sidebar-card > a:not(.donate-btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .5rem .82rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.sidebar-card > a:not(.donate-btn):hover,
.sidebar-card > a:not(.donate-btn):focus {
  background: var(--fb-article-gold);
  color: #111;
  text-decoration: none;
}

.sidebar-donate .donate-btn {
  margin-left: 0;
  width: 100%;
}

/* =========================================================
   Comments compatibility
   ========================================================= */

.article-comments h2,
.article-comments h3 {
  color: #111;
  font-weight: 900;
  letter-spacing: -.035em;
}

.article-comments input,
.article-comments textarea,
.article-comments select {
  max-width: 100%;
  border-radius: 14px;
}

/* =========================================================
   Legacy class support
   ========================================================= */

.Article,
.Article-Header,
.article-image,
.article-summary,
.back-button,
.section-divider,
.article-support,
.article-nav {
  max-width: 100%;
}

.btn-back,
.nav-link {
  border-radius: 999px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1060px) {
  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .article-hero {
    min-height: 500px;
  }

  .article-hero-inner {
    padding: 5.6rem 0 3.6rem;
  }

  .article-meta-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .article-wrap {
    margin-top: -2rem;
  }

  .article-featured-image {
    border-radius: 22px;
  }

  .related-grid,
  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .article-hero {
    min-height: 520px;
  }

  .article-hero h1 {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .article-wrap {
    width: min(100% - 1rem, 1180px);
  }

  .article-body-card,
  .related-articles,
  .article-comments,
  .sidebar-card {
    border-radius: 22px;
  }

  .article-top-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-tags {
    justify-content: flex-start;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.74;
  }
}

@media print {
  body.article-page {
    background: #fff;
    color: #000;
  }

  .navbar,
  .footer,
  .article-sidebar,
  .article-share-strip,
  .share-links,
  .article-comments,
  .related-articles {
    display: none !important;
  }

  .article-hero {
    min-height: auto;
    display: block;
    color: #000;
    background: none !important;
    border: 0;
  }

  .article-hero::before,
  .article-hero-overlay {
    display: none;
  }

  .article-hero-inner,
  .article-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .article-body-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}
