/* FHB editorial design system — clean adaptation for the active Extendable theme */
:root {
  --fhb-bg: #0b0e14;
  --fhb-panel: #121824;
  --fhb-panel-2: #172131;
  --fhb-text: #d1d5db;
  --fhb-muted: #a5afbd;
  --fhb-white: #f8fafc;
  --fhb-blue: #4d82ff;
  --fhb-cyan: #22c7f2;
  --fhb-line: rgba(179, 199, 225, .16);
  --fhb-glass: rgba(15, 21, 31, .88);
}

html { background: var(--fhb-bg); }
body.fhb-editorial-site {
  background: var(--fhb-bg) !important;
  color: var(--fhb-text) !important;
  font-family: Inter, "Plus Jakarta Sans", Outfit, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
body.fhb-editorial-site .wp-site-blocks { max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.fhb-editorial-site .wp-site-blocks > header.wp-block-template-part,
body.fhb-editorial-site .wp-site-blocks > footer.wp-block-template-part { display: none !important; }

.fhb-site {
  --fhb-ink: var(--fhb-white);
  --fhb-navy: #101820;
  --fhb-blue: #4d82ff;
  --fhb-bright: #168fe8;
  --fhb-soft: var(--fhb-panel);
  --fhb-line: rgba(179, 199, 225, .16);
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 36px;
  color: var(--fhb-text);
  font-family: inherit;
  line-height: 1.7;
}
.fhb-site *, .fhb-page *, .fhb-article-page *, .fhb-news-page * { box-sizing: border-box; }
.fhb-site h1, .fhb-site h2, .fhb-site h3,
.fhb-page h1, .fhb-page h2, .fhb-page h3,
.fhb-article-page h1, .fhb-article-page h2, .fhb-article-page h3 {
  color: var(--fhb-white);
  line-height: 1.18;
  margin-top: 0;
  letter-spacing: -.02em;
}
.fhb-site p, .fhb-site li, .fhb-page p, .fhb-page li,
.fhb-article-page p, .fhb-article-page li { color: var(--fhb-text); }
.fhb-site a, .fhb-page a, .fhb-article-page a, .fhb-news-page a { color: #8bbcff; text-decoration: none; }
.fhb-site a:hover, .fhb-page a:hover, .fhb-article-page a:hover, .fhb-news-page a:hover { color: #c2e0ff; text-decoration: underline; }
.fhb-site img, .fhb-page img, .fhb-article-page img, .fhb-news-page img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(179, 199, 225, .14);
  border-radius: 16px;
}
.fhb-eyebrow { margin: 0 0 10px; color: #7ec8ff !important; font-size: .78rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.fhb-muted, .fhb-note, .fhb-news-footnote { color: var(--fhb-muted) !important; }
.fhb-cred { margin-top: 18px; color: #c7d7e8 !important; font-size: .9rem; }

.fhb-page { width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 18px 36px; color: var(--fhb-text); }
.fhb-page-hero, .fhb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  gap: 30px;
  margin: 12px 0 30px;
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--fhb-line);
  border-radius: 24px;
  background: radial-gradient(ellipse at 88% 18%, rgba(37, 99, 235, .2), transparent 34%), linear-gradient(135deg, #101722 0%, #111c2b 58%, #102841 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  color: var(--fhb-white);
}
.fhb-hero h1 { margin-bottom: 16px; color: var(--fhb-white) !important; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; }
.fhb-page-hero h1 { margin-bottom: 14px; color: var(--fhb-white) !important; font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.fhb-hero p, .fhb-page-hero p { color: #d5dfeb !important; }
.fhb-hero img, .fhb-page-hero img { width: 100%; aspect-ratio: 4 / 3; object-position: center; box-shadow: 0 18px 48px rgba(0, 0, 0, .34); }
.fhb-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.fhb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.fhb-btn:hover { transform: translateY(-2px); text-decoration: none !important; }
.fhb-btn-primary { border-color: rgba(142, 190, 255, .3); background: linear-gradient(110deg, #2860ed, #168fe8); box-shadow: 0 10px 30px rgba(30, 101, 233, .24); color: #fff !important; }
.fhb-btn-light, .fhb-btn-outline { border-color: rgba(190, 210, 238, .38); background: rgba(255, 255, 255, .045); color: #edf4ff !important; }

.fhb-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); align-items: start; gap: 22px; }
.fhb-maincol, .fhb-sidecol { min-width: 0; }
.fhb-sidecol, .fhb-post-aside { display: grid; align-content: start; gap: 14px; }
.fhb-section { margin: 0 0 24px; padding: 24px; border: 1px solid var(--fhb-line); border-radius: 22px; background: linear-gradient(150deg, rgba(20, 29, 43, .92), rgba(14, 20, 30, .94)); box-shadow: 0 16px 44px rgba(0, 0, 0, .22); }
.fhb-section-title { margin-bottom: 12px; color: var(--fhb-white) !important; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.fhb-softbox, .fhb-topic, .fhb-feature, .fhb-card, .fhb-sidebox, .fhb-step, .fhb-caution,
.fhb-book-project-card, .fhb-news-card, .fhb-news-archive {
  border: 1px solid var(--fhb-line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 28, 41, .94), rgba(15, 21, 32, .96));
  color: var(--fhb-text);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .2);
}
.fhb-softbox { padding: 22px; }
.fhb-topic { padding: 17px; }
.fhb-topic h3, .fhb-card h3, .fhb-sidebox h2, .fhb-book-project-card h2, .fhb-book-project-card h3 { color: var(--fhb-white) !important; }
.fhb-topic-grid, .fhb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.fhb-card { padding: 18px; }
.fhb-card img { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 13px; }
.fhb-card h3 { margin: 0 0 9px; font-size: 1.08rem; }
.fhb-card p, .fhb-sidebox p, .fhb-topic p { color: var(--fhb-text) !important; }
.fhb-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 22px; padding: 24px; margin-bottom: 30px; }
.fhb-feature img { width: 100%; aspect-ratio: 16 / 10; }
.fhb-tag, .fhb-book-project-badge { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border: 1px solid rgba(93, 165, 255, .24); border-radius: 999px; background: rgba(56, 135, 255, .16); color: #a9d4ff !important; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.fhb-sidebox { margin-bottom: 0; padding: 19px; }
.fhb-sidebox-blue { border-color: rgba(82, 149, 255, .3); background: radial-gradient(circle at top right, rgba(34, 199, 242, .22), transparent 42%), linear-gradient(140deg, #111d30, #0f263d); }
.fhb-sidebox-blue h2, .fhb-sidebox-blue p { color: #fff !important; }
.fhb-sidebox img { width: 100%; margin: 0 0 13px; aspect-ratio: 4 / 3; object-fit: contain; }
.fhb-note { font-size: .88rem; }
.fhb-caution { padding: 16px 18px; border-left: 4px solid var(--fhb-cyan); }
.fhb-faq { border-top: 1px solid var(--fhb-line); padding-top: 22px; }
.fhb-faq details { padding: 14px 0; border-bottom: 1px solid var(--fhb-line); }
.fhb-faq summary { color: var(--fhb-white); font-weight: 700; cursor: pointer; }
.fhb-local-footer { display: none !important; }
.fhb-book-project-card { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 22px; padding: 22px; }
.fhb-book-project-visual img { width: 100%; max-height: 420px; object-fit: contain; }
.fhb-book-project-copy p { color: var(--fhb-text); }
.fhb-book-project-link { font-weight: 700; }

/* Editorial news index */
.fhb-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 22px 0 28px; }
.fhb-news-card { display: flex; min-width: 0; flex-direction: column; gap: 11px; padding: 17px; }
.fhb-news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fhb-news-card h2 { margin: 0; color: var(--fhb-white) !important; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.32; }
.fhb-news-card h2 a { color: #a9d4ff !important; }
.fhb-news-card p { margin: 0; color: var(--fhb-muted) !important; font-size: .95rem; }
.fhb-news-hero { margin: 0 0 20px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--fhb-line); border-top: 3px solid #4d82ff; border-radius: 20px; background: linear-gradient(145deg, rgba(20, 28, 41, .96), rgba(15, 21, 32, .96)); }
.fhb-news-hero h1 { margin: 0 0 12px; color: var(--fhb-white) !important; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.fhb-news-hero p { color: var(--fhb-text) !important; }
.fhb-news-author { margin-top: 16px !important; padding-top: 14px; border-top: 1px solid var(--fhb-line); color: var(--fhb-muted) !important; font-size: .94rem; line-height: 1.65; }
.fhb-news-author a { color: #a9d4ff !important; font-weight: 700; }
.fhb-news-archive { margin: 24px 0 16px; padding: 21px; }
.fhb-news-archive h2 { color: var(--fhb-white) !important; }
.fhb-news-archive p { color: var(--fhb-text) !important; }
.fhb-news-footnote, .fhb-news-disclaimer { color: var(--fhb-muted) !important; font-size: .88rem; }
.fhb-news-home { margin-top: 30px; }

/* Individual article pages */
.fhb-article-page { width: 100%; max-width: 1240px; margin: 0 auto 38px; padding: 10px 22px 34px; color: var(--fhb-text); }
.fhb-article-layout { display: block; }
.fhb-article-layout > :not(.fhb-post-aside) { max-width: 82ch; }
.fhb-article-layout > .fhb-post-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--fhb-line); }
.fhb-article-layout > .fhb-site { width: 100%; max-width: none; margin: 0; padding: clamp(20px, 3vw, 36px); }
.fhb-article { border: 1px solid var(--fhb-line); border-radius: 22px; background: linear-gradient(150deg, rgba(20, 29, 43, .96), rgba(14, 20, 30, .98)); box-shadow: 0 20px 50px rgba(0, 0, 0, .23); color: var(--fhb-text); font-size: 1rem; line-height: 1.8; }
.fhb-article h2 { margin: 1.55em 0 .55em; color: var(--fhb-white) !important; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.fhb-article h3 { margin: 1.35em 0 .5em; color: var(--fhb-white) !important; font-size: 1.18rem; }
.fhb-article p, .fhb-article li { color: #d5dce5 !important; font-size: 1rem; line-height: 1.8; }
.fhb-article blockquote, .fhb-article table { border-color: var(--fhb-line) !important; background: rgba(18, 24, 36, .78); color: var(--fhb-text); }
.fhb-article-content { color: var(--fhb-text); line-height: 1.8; }
.fhb-article-related { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--fhb-line); }
.fhb-article-related ul { padding-left: 20px; }
.fhb-article-related li { margin: 7px 0; }
.fhb-post-aside .fhb-sidebox { padding: 19px; }
.fhb-news-lead { padding: 15px 17px; border-left: 4px solid #4d82ff; border-radius: 0 12px 12px 0; background: rgba(77, 130, 255, .09); color: #e3ebf6 !important; font-size: 1.05rem !important; }
.fhb-article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 0 2px 15px; border-bottom: 1px solid var(--fhb-line); color: var(--fhb-muted); font-size: .9rem; }
.fhb-article-byline__author { color: #e8f1fa; font-weight: 700; }
.fhb-article-byline__divider { color: #6f8090; }
body.single-post.fhb-editorial-site .wp-block-post-title { display: block !important; width: 100%; max-width: 1196px; margin: 24px auto 12px; padding: 0 22px; color: var(--fhb-white); font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.12; letter-spacing: -.035em; }
body.single-post.fhb-editorial-site .wp-block-post-title a { color: var(--fhb-white) !important; text-decoration: none !important; }
body.single-post.fhb-editorial-site .wp-block-post-title a:hover { color: #b9ddff !important; }
body.single-post.fhb-editorial-site .wp-block-post-featured-image { display: block !important; width: 100%; max-width: 1196px; margin: 0 auto 22px; padding: 0 22px; }
body.single-post.fhb-editorial-site .wp-block-post-featured-image img { width: 100%; max-height: 520px; object-fit: cover; border: 1px solid var(--fhb-line); border-radius: 20px; }
body.single-post.fhb-editorial-site .wp-block-post-date { display: none !important; }
body.single-post.fhb-editorial-site .wp-block-post-comments-form,
body.single-post.fhb-editorial-site .wp-block-comments,
body.single-post.fhb-editorial-site .wp-block-post-comments { display: none !important; }

@media (max-width: 960px) {
  .fhb-layout { grid-template-columns: 1fr; }
  .fhb-post-aside, .fhb-sidecol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fhb-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fhb-site { padding: 0 12px 28px; }
  .fhb-page { padding: 14px 12px 28px; }
  .fhb-article-page { padding: 6px 12px 28px; }
  .fhb-hero, .fhb-page-hero, .fhb-feature, .fhb-book-project-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; border-radius: 19px; }
  .fhb-hero { margin-top: 8px; }
  .fhb-hero img, .fhb-page-hero img { max-height: 460px; }
  .fhb-topic-grid, .fhb-cards, .fhb-sidecol, .fhb-post-aside, .fhb-news-grid { grid-template-columns: 1fr; }
  .fhb-section { padding: 18px; margin-bottom: 16px; }
  .fhb-card, .fhb-sidebox, .fhb-topic, .fhb-news-card { padding: 16px; }
  body.single-post.fhb-editorial-site .wp-block-post-title { margin-top: 18px; padding: 0 14px; font-size: clamp(1.8rem, 8vw, 2.5rem); }
  body.single-post.fhb-editorial-site .wp-block-post-featured-image { padding: 0 14px; }
  .fhb-article-layout > .fhb-site { padding: 20px 17px; }
}
@media (prefers-reduced-motion: reduce) { .fhb-btn { transition: none; } }
