/* Article pages (public/<slug>/l-<id>.html): hero with breadcrumb, topic, title and reading time,
   cover photo, article text, sidebar (book / group quote / call, search) and three related articles.
   Markup: scripts/article_pages.py. Same look as /articles (bin/css/fx-articles.css). */

/* the old article splash only carries the site menu now: it becomes the strip under the fixed header */
.article_splash_fox { height: auto !important; min-height: 0 !important; background: #1b1b1b !important; }
.article_splash_fox td.vm, .article_splash_fox .scroll-down { display: none !important; }

.fx-art { display: block; padding-bottom: 8px; font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; color: #1e1e1e; background: #f6f1ea; -webkit-font-smoothing: antialiased; }
.fx-art *, .fx-art *:before, .fx-art *:after { box-sizing: border-box; }
.fx-art-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.fx-art .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.fx-art-hero { padding: 64px 0 170px; background: radial-gradient(800px 420px at 85% 20%, rgba(240, 132, 0, .25), transparent 70%), #1b1b1b; color: #fff; }
.fx-art--nocover .fx-art-hero { padding-bottom: 120px; }
.fx-art-hero .fx-art-wrap { max-width: 900px; }
.fx-art-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.6); }
html:not(#fx) .fx-art-crumbs a { display: inline-block; margin: -8px 0; padding: 8px 0; color: rgba(255,255,255,.8); text-decoration: none; }
html:not(#fx) .fx-art-crumbs a:hover { color: #f08400; }
.fx-art-pill { display: inline-block; margin: 0 0 20px; padding: 8px 18px; border-radius: 999px; background: #f08400; color: #1e1e1e; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-2deg); }
html:not(#fx) .fx-art .fx-art-title { margin: 0 0 18px; font: 700 50px/1.08 Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.02em; text-transform: none; color: #fff; text-wrap: balance; }
.fx-art-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7); }

/* Cover photo overlaps the hero */
.fx-art-coverWrap { max-width: 1180px; margin-top: -120px; }
.fx-art-cover { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 28px; background: #e8e2d9; box-shadow: 0 30px 60px rgba(0,0,0,.18); }

/* Text + sidebar */
.fx-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; margin-top: 40px; }
.fx-art--nocover .fx-art-grid { margin-top: -80px; }
.fx-art-body { min-width: 0; padding: 56px 64px; border-radius: 28px; background: #fff; font-size: 18px; line-height: 1.75; color: #2b2b2b; overflow-wrap: break-word; }
.fx-art-body > :first-child { margin-top: 0; }
.fx-art-body > :last-child { margin-bottom: 0; }
.fx-art-body p, .fx-art-body > div { margin: 0 0 1.15em; }
.fx-art-body div div { margin: 0; }
.fx-art-body .fx-art-lead { margin-bottom: 1.4em; padding-bottom: 1.2em; border-bottom: 1px solid #ece6dd; font-size: 21px; line-height: 1.55; font-weight: 600; color: #1e1e1e; }
html:not(#fx) .fx-art-body h2, html:not(#fx) .fx-art-body h3, html:not(#fx) .fx-art-body h4 { font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: #1e1e1e; }
html:not(#fx) .fx-art-body h2 { margin: 1.8em 0 .6em; font-size: 30px; line-height: 1.2; }
html:not(#fx) .fx-art-body h3 { margin: 1.5em 0 .5em; font-size: 23px; line-height: 1.3; }
html:not(#fx) .fx-art-body h4 { margin: 1.3em 0 .4em; font-size: 19px; line-height: 1.35; }
.fx-art-body ul, .fx-art-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.fx-art-body li { margin: 0 0 .5em; padding-left: .2em; }
.fx-art-body li::marker { color: #f08400; font-weight: 700; }
.fx-art-body strong { font-weight: 700; color: #1e1e1e; }
.fx-art-body a strong, .fx-art-body a em { color: inherit; }
html:not(#fx) .fx-art-body a { color: #c96a00; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(201,106,0,.35); text-underline-offset: 3px; }
html:not(#fx) .fx-art-body a:hover { color: #8f4b00; text-decoration-color: currentColor; }
.fx-art-body img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: 18px; }
.fx-art-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 1.4em 0; }
.fx-art-gallery > a, .fx-art-gallery > img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 14px; border: 1px solid #ece6dd; border-radius: 16px; background: #fff; }
.fx-art-body .fx-art-gallery img { max-width: 100%; max-height: 100%; margin: 0; border-radius: 8px; object-fit: contain; }
.fx-art-gallery > img { width: 100%; }
.fx-art-body iframe { display: block; max-width: 100%; margin: 1.4em auto; border: 0; border-radius: 18px; }
.fx-art-body iframe[src*="youtube"], .fx-art-body iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.fx-art-body blockquote { margin: 1.4em 0; padding: 18px 24px; border: 0; border-left: 4px solid #f08400; border-radius: 0 16px 16px 0; background: #f6f1ea; font-size: 17px; }
.fx-art-body blockquote p:last-child { margin-bottom: 0; }
.fx-art-body table { display: block; max-width: 100%; margin: 1.4em 0; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.fx-art-body td, .fx-art-body th { padding: 10px 14px; border: 1px solid #ece6dd; vertical-align: top; }
.fx-art-body hr { margin: 2em 0; border: 0; border-top: 1px solid #ece6dd; }
html:not(#fx) .fx-art-body a.fx-art-btn { color: #fff; text-decoration: none; }
/* in-article plug: a short dark box with one button and a couple of links, placed in old posts where a
   reader is most likely to act (holiday parties, gift cards) */
.fx-art-body .fx-art-plug { margin: 1.6em 0; padding: 22px 24px; border-radius: 18px; background: #1e1e1e; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.55; }
html:not(#fx) .fx-art-body .fx-art-plug p { margin: 0 0 14px; color: inherit; }
html:not(#fx) .fx-art-body .fx-art-plug p:last-child { margin-bottom: 0; }
html:not(#fx) .fx-art-body .fx-art-plug .fx-art-plug__title { margin-bottom: 6px; font: 800 19px/1.3 Montserrat, sans-serif; color: #fff; }
html:not(#fx) .fx-art-body .fx-art-plug a { color: #fff; text-decoration-color: rgba(240,132,0,.8); }
html:not(#fx) .fx-art-body .fx-art-plug a.fx-art-btn { display: flex; width: fit-content; max-width: 100%; margin: 0 0 12px; color: #1e1e1e; text-decoration: none; } /* own line; links below */

/* Buttons */
html:not(#fx) .fx-art-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 22px; border: 2px solid #f08400; border-radius: 999px; background: #f08400; color: #1e1e1e; font: 800 14px/1.2 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .2s, border-color .2s; }
html:not(#fx) .fx-art-btn:hover { background: #ff9a1f; border-color: #ff9a1f; color: #1e1e1e; }
.fx-art-btn svg, .fx-art-more__all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html:not(#fx) .fx-art-btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
html:not(#fx) .fx-art-btn--ghost:hover { background: transparent; border-color: #f08400; color: #fff; }
html:not(#fx) .fx-art-body .fx-art-btn { width: auto; }

/* Sidebar */
.fx-art-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.fx-art-card { display: grid; gap: 12px; padding: 30px 26px; border-radius: 24px; background: #1b1b1b; color: #fff; }
.fx-art .fx-art-card p { margin: 0; }
.fx-art-card__kicker { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #f08400; }
.fx-art .fx-art-card__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.fx-art .fx-art-card__text { margin-bottom: 6px !important; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.75); }
html:not(#fx) .fx-art-card__tel { margin-top: -4px; padding: 8px 0; font-size: 15px; font-weight: 700; color: #fff; text-align: center; text-decoration: none; }
html:not(#fx) .fx-art-card__tel:hover { color: #f08400; }
.fx-art-search label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 18px; border-radius: 999px; background: #fff; cursor: text; }
.fx-art-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #f08400; stroke-width: 2.2; stroke-linecap: round; }
.fx-art-search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; color: #1e1e1e; font: 600 15px Montserrat, sans-serif; }
.fx-art-search label:focus-within { box-shadow: 0 0 0 3px #f08400; }

/* Keep reading */
.fx-art-more { padding: 72px 0 80px; }
.fx-art-more__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
html:not(#fx) .fx-art-more__head h2 { margin: 0; font: 700 34px/1.1 Montserrat, sans-serif; letter-spacing: -.02em; text-transform: none; color: #1e1e1e; }
html:not(#fx) .fx-art-more__all { display: inline-flex; align-items: center; gap: 8px; margin: -10px 0; padding: 10px 0; color: #1e1e1e; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
html:not(#fx) .fx-art-more__all:hover { color: #c96a00; }
.fx-art-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
html:not(#fx) .fx-art-mcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 22px; background: #fff; color: #1e1e1e; text-decoration: none; }
.fx-art-mcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e2d9; }
.fx-art-mcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.fx-art-mcard:hover img { opacity: .88; }
.fx-art-mcard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.fx-art-mcard__body time { font-size: 13px; font-weight: 700; color: #8a7f72; }
.fx-art-mcard__body b { font-size: 18px; line-height: 1.3; }
.fx-art-mcard:hover b { color: #c96a00; }

/* Tablet */
@media (max-width: 1023px) {
  .fx-art-grid { grid-template-columns: 1fr; }
  .fx-art-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .fx-art-body { padding: 44px 40px; }
}

/* Phones */
@media (max-width: 767px) {
  .fx-art-wrap { padding: 0 16px; }
  .fx-art-hero { padding: 40px 0 110px; }
  .fx-art--nocover .fx-art-hero { padding-bottom: 90px; }
  html:not(#fx) .fx-art .fx-art-title { font-size: 32px; }
  .fx-art-crumbs { margin-bottom: 16px; font-size: 13px; }
  .fx-art-coverWrap { margin-top: -80px; }
  .fx-art-cover { aspect-ratio: 16 / 10; border-radius: 18px; }
  .fx-art-grid { gap: 20px; margin-top: 20px; }
  .fx-art--nocover .fx-art-grid { margin-top: -60px; }
  .fx-art-body { padding: 28px 20px; border-radius: 20px; font-size: 17px; line-height: 1.7; }
  .fx-art-body .fx-art-lead { font-size: 18px; }
  .fx-art-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fx-art-gallery > a, .fx-art-gallery > img { padding: 10px; border-radius: 12px; }
  html:not(#fx) .fx-art-body h2 { font-size: 24px; }
  html:not(#fx) .fx-art-body h3 { font-size: 20px; }
  .fx-art-side { grid-template-columns: 1fr; }
  .fx-art-more { padding: 48px 0 56px; }
  html:not(#fx) .fx-art-more__head h2 { font-size: 26px; }
  .fx-art-more__grid { grid-template-columns: 1fr; gap: 12px; }
  html:not(#fx) .fx-art-mcard { flex-direction: row; align-items: center; }
  .fx-art-mcard__img { flex: none; width: 104px; aspect-ratio: 1; }
  .fx-art-mcard__body { padding: 14px 16px; }
  .fx-art-mcard__body b { font-size: 16px; }
}

/* Legal pages (privacy, cookies; scripts/legal_pages.py): one text column, contents list */
.fx-art--legal .fx-art-hero .fx-art-wrap, .fx-art--legal .fx-art-grid { max-width: 940px; }
.fx-art--legal .fx-art-grid { grid-template-columns: 1fr; padding-bottom: 80px; }
.fx-art--legal .fx-art-body { font-size: 17px; }
.fx-legal-toc { margin: 0 0 2em; padding: 22px 26px; border-radius: 18px; background: #f6f1ea; }
.fx-art .fx-legal-toc p { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8a7f72; }
.fx-legal-toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 1.2em; font-size: 15px; }
.fx-legal-toc li { margin: 0 0 8px; line-height: 1.4; break-inside: avoid; }
.fx-art--legal .fx-art-body h2 { scroll-margin-top: 100px; }
@media (max-width: 767px) { .fx-legal-toc { padding: 18px 20px; } .fx-legal-toc ol { columns: 1; } .fx-art--legal .fx-art-grid { padding-bottom: 48px; } }
.fx-art-body .fx-art-credit { margin-top: 2em; color: #8a8178; font-size: 13px; font-style: italic; }
/* press kit (l-163): photo grid with download links */
.fx-art-body .fx-press { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: .6em 0 1.6em; }
.fx-art-body .fx-press__item { margin: 0; }
.fx-art-body .fx-press__item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; margin: 0; object-fit: cover; border-radius: 12px; }
.fx-art-body .fx-press__item figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; font-size: 14px; line-height: 1.35; }
.fx-art-body .fx-press__item figcaption a { font-weight: 700; }
.fx-art-body .fx-press__item small { display: block; font-size: 12px; font-weight: 400; color: #8a8178; }
@media (max-width: 767px) { .fx-art-body .fx-press { grid-template-columns: 1fr 1fr; gap: 12px; } .fx-art-body .fx-press__item figcaption { font-size: 13px; } }
/* legal pages: on phones, each row of the cookie table becomes a card instead of a sideways-scrolling table
   (labels match its columns: Cookie, Set by, What it does, Kept for; legal_pages.py strips cell attributes) */
@media (max-width: 767px) {
  .fx-art--legal .fx-art-body table, .fx-art--legal .fx-art-body tbody, .fx-art--legal .fx-art-body tr, .fx-art--legal .fx-art-body td { display: block; }
  .fx-art--legal .fx-art-body thead { display: none; }
  .fx-art--legal .fx-art-body tr { margin: 0 0 12px; padding: 12px 16px; border: 1px solid #ece6dd; border-radius: 12px; }
  .fx-art--legal .fx-art-body td { padding: 3px 0; border: 0; }
  .fx-art--legal .fx-art-body td:first-child { font-weight: 700; }
  .fx-art--legal .fx-art-body td:nth-child(2)::before { content: "Set by: "; font-weight: 700; }
  .fx-art--legal .fx-art-body td:nth-child(4)::before { content: "Kept for: "; font-weight: 700; }
}
