/*
Theme Name: Fluxaivory Child
Template: astra
Version: 3.3.1
*/

:root {
  --fx-canvas: #f4f6f3;
  --fx-surface: #ffffff;
  --fx-surface-soft: #e8efeb;
  --fx-surface-warm: #fff4ef;
  --fx-ink: #15221d;
  --fx-muted: #596761;
  --fx-accent: #0f766e;
  --fx-accent-strong: #0a5e58;
  --fx-highlight: #b23f27;
  --fx-border: #d6dfda;
  --fx-border-strong: #aebcb5;
  --fx-hero-fallback: #123b34;
  --fx-hero-overlay: rgba(7, 28, 24, 0.72);
  --fx-focus: #e35d3d;
  --fx-shadow: 0 18px 44px rgba(21, 34, 29, 0.09);
  --fx-radius: 6px;
  --fx-display: ui-serif, "Iowan Old Style", "AppleMyungjo", "Noto Serif KR", Georgia, serif;
  --fx-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fx-label: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --fx-content: 1180px;
  --fx-reading: 740px;
}

[data-theme="dark"] {
  --fx-canvas: #101713;
  --fx-surface: #18221d;
  --fx-surface-soft: #213029;
  --fx-surface-warm: #34231d;
  --fx-ink: #f2f6f3;
  --fx-muted: #b7c3bd;
  --fx-accent: #67d3c6;
  --fx-accent-strong: #8de3d8;
  --fx-highlight: #ff8a6e;
  --fx-border: #33453d;
  --fx-border-strong: #53685e;
  --fx-hero-fallback: #0a211d;
  --fx-hero-overlay: rgba(3, 16, 13, 0.76);
  --fx-focus: #ff9b82;
  --fx-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  background: var(--fx-canvas);
}

body,
button,
input,
select,
textarea {
  font-family: var(--fx-body);
  letter-spacing: 0;
}

body {
  margin: 0;
  background: var(--fx-canvas) !important;
  color: var(--fx-ink) !important;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body.fx-search-open {
  overflow: hidden;
}

a {
  color: var(--fx-accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fx-accent-strong);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--fx-focus) !important;
  outline-offset: 3px;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--fx-ink);
  font-family: var(--fx-display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p,
li,
td,
th,
figcaption {
  overflow-wrap: break-word;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.fx-u-hidden,
#masthead,
.ast-mobile-header-wrap,
.main-header-bar-wrap,
.ast-above-header-wrap,
.ast-below-header-section,
.ast-desktop-header {
  display: none !important;
}

#page,
.site,
.ast-separate-container,
.ast-plain-container,
.site-content,
.ast-container {
  background: var(--fx-canvas) !important;
}

.site-content > .ast-container {
  max-width: none;
  padding: 0;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single:not(.ast-related-post),
.ast-separate-container .ast-archive-description,
.ast-separate-container .ast-author-box,
.ast-separate-container .error-404,
.ast-separate-container .no-results,
.ast-plain-container .ast-article-single {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Header */
#fluxaivory-header {
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  border-bottom: 1px solid var(--fx-border);
  background: color-mix(in srgb, var(--fx-surface) 92%, transparent) !important;
  backdrop-filter: blur(16px);
}

body.admin-bar #fluxaivory-header {
  top: 32px;
}

.fx-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 70px;
  max-width: var(--fx-content);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.fx-header-left,
.fx-header-right,
.fx-logo,
.fx-logo__text {
  display: flex;
  align-items: center;
}

.fx-header-right {
  justify-content: flex-end;
  gap: 4px;
}

.fx-logo {
  min-height: 44px;
  color: var(--fx-ink) !important;
  text-decoration: none;
}

.fx-logo__text {
  color: var(--fx-ink);
  font-family: var(--fx-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.fx-logo img {
  width: auto;
  max-height: 40px;
}

.fx-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-nav__list li {
  position: relative;
  margin: 0;
}

.fx-nav__list li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fx-ink) !important;
  font-family: var(--fx-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 650;
  text-decoration: none;
}

.fx-nav__list li a:hover,
.fx-nav__list li a:focus-visible,
.fx-nav__list .current-menu-item > a {
  color: var(--fx-accent) !important;
}

.fx-nav__list .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: -12px;
  z-index: 330;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.fx-nav__list li:hover > .sub-menu,
.fx-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fx-nav__list .sub-menu a {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--fx-ink) !important;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.fx-nav__list .sub-menu a:hover,
.fx-nav__list .sub-menu a:focus-visible {
  background: var(--fx-surface-soft);
}

.fx-search-toggle,
.fx-theme-toggle,
.fx-mobile-menu-toggle,
.fx-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fx-ink);
  cursor: pointer;
}

.fx-search-toggle:hover,
.fx-theme-toggle:hover,
.fx-mobile-menu-toggle:hover,
.fx-search-close:hover {
  background: var(--fx-surface-soft);
  color: var(--fx-accent);
}

.fx-mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.fx-mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

/* Search overlay */
.fx-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: start center;
  padding: 18vh 24px 24px;
  background: rgba(7, 20, 16, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.fx-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fx-search-overlay__panel {
  position: relative;
  width: min(680px, 100%);
  padding: 34px;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow);
}

.fx-search-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.fx-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 24px;
}

.fx-search-form input,
.fx-search-page-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--fx-border-strong);
  border-radius: 4px;
  background: var(--fx-surface);
  color: var(--fx-ink);
  font-size: 16px;
}

.fx-search-submit,
.fx-search-page-form button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--fx-accent);
  border-radius: 4px;
  background: var(--fx-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.fx-search-submit:hover,
.fx-search-page-form button:hover {
  border-color: var(--fx-accent-strong);
  background: var(--fx-accent-strong);
}

/* Shared layout */
.fx-editorial,
.fx-shell,
.fx-site-content {
  width: min(100%, var(--fx-content));
  margin-inline: auto;
}

.fx-editorial {
  padding: 32px 24px 88px;
}

.fx-editorial-home {
  width: 100%;
  max-width: none;
  padding-top: 24px;
}

.fx-editorial-home > .fx-shell,
.fx-editorial-home > .fx-home-hero {
  width: min(calc(100% - 48px), var(--fx-content));
  margin-inline: auto;
}

.fx-home-hero,
.fx-home-sections,
.fx-archive-header,
.fx-archive-featured,
.fx-single-related {
  margin-bottom: 64px;
}

.fx-section-heading-wrap {
  margin-bottom: 24px;
}

.fx-section-heading-wrap--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.fx-section-label,
.fx-kicker-chip,
.fx-story-card__kicker,
.fx-article-list__kicker,
.fx-meta-row,
.fx-meta-row__item,
.fx-sidebar-meta,
.fx-pagination-note,
.fx-post-card__cat,
.fx-post-card__meta {
  font-family: var(--fx-label);
  letter-spacing: 0;
}

.fx-section-label {
  margin: 0 0 6px;
  color: var(--fx-highlight);
  font-size: 13px;
  font-weight: 750;
}

.fx-section-heading {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

.fx-display-title {
  margin: 0;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: 0;
}

.fx-display-title a,
.fx-story-card__title a,
.fx-archive-featured__title a,
.fx-archive-list__title a,
.fx-article-list__title a,
.fx-related-card__title a,
.fx-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.fx-display-title a:hover,
.fx-story-card__title a:hover,
.fx-archive-featured__title a:hover,
.fx-archive-list__title a:hover,
.fx-article-list__title a:hover,
.fx-related-card__title a:hover,
.fx-post-card__title a:hover {
  color: var(--fx-accent);
}

.fx-standfirst {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--fx-muted);
  font-size: 20px;
  line-height: 1.65;
}

.fx-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fx-accent);
  font-size: 15px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.fx-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--fx-muted);
  font-size: 13px;
  font-weight: 650;
}

.fx-kicker-chip,
.fx-pill,
.fx-follow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--fx-border-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--fx-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fx-kicker-chip:hover,
.fx-pill:hover,
.fx-follow-chip:hover {
  border-color: var(--fx-accent);
  background: var(--fx-surface-soft);
  color: var(--fx-accent-strong);
}

.fx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fx-pill-row--stack {
  align-items: flex-start;
}

/* Home */
.fx-home-hero__grid {
  position: relative;
  display: grid;
  width: 100%;
  height: 68svh;
  min-height: 520px;
  max-height: 680px;
  overflow: hidden;
  border-radius: var(--fx-radius);
  background: var(--fx-hero-fallback);
  isolation: isolate;
}

.fx-home-hero__media,
.fx-home-hero__content {
  grid-area: 1 / 1;
}

.fx-home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fx-home-hero__media::after {
  position: absolute;
  inset: 0;
  background: var(--fx-hero-overlay);
  content: "";
}

.fx-bleed-media,
.fx-home-hero__media img {
  width: 100%;
  height: 100%;
}

.fx-bleed-media {
  display: block;
}

.fx-home-hero__media img {
  object-fit: cover;
  object-position: center;
}

.fx-bleed-media__placeholder {
  width: 100%;
  height: 100%;
  background: var(--fx-hero-fallback);
}

.fx-home-hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 900px;
  padding: 48px;
  color: #ffffff;
}

.fx-home-hero .fx-display-title,
.fx-home-hero .fx-display-title a,
.fx-home-hero .fx-standfirst,
.fx-home-hero .fx-meta-row,
.fx-home-hero .fx-text-link {
  color: #ffffff;
}

.fx-home-hero .fx-display-title {
  font-size: 64px;
  text-wrap: balance;
}

.fx-home-hero .fx-standfirst {
  display: -webkit-box;
  max-width: 58ch;
  margin-top: 18px;
  overflow: hidden;
  color: #edf5f1;
  font-size: 18px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.fx-home-hero .fx-text-link {
  margin-top: 12px;
}

.fx-home-hero .fx-kicker-chip {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(3, 16, 13, 0.44);
  color: #ffffff;
}

.fx-editorial-grid {
  display: grid;
  gap: 18px;
}

.fx-editorial-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fx-story-card,
.fx-related-card,
.fx-post-card {
  overflow: hidden;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  background: var(--fx-surface);
}

.fx-story-card {
  display: grid;
  grid-template-rows: 3px 1fr;
}

.fx-story-card__rail {
  background: var(--fx-highlight);
}

.fx-story-card__body,
.fx-related-card__body,
.fx-post-card__body {
  padding: 22px;
}

.fx-story-card__kicker,
.fx-article-list__kicker {
  color: var(--fx-accent);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.fx-story-card__title,
.fx-related-card__title,
.fx-post-card__title {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.24;
}

.fx-story-card__excerpt,
.fx-story-card__meta,
.fx-related-card__excerpt,
.fx-archive-featured__excerpt,
.fx-archive-list__excerpt,
.fx-article-list__excerpt,
.fx-post-card__meta {
  color: var(--fx-muted);
}

.fx-story-card__excerpt,
.fx-archive-featured__excerpt,
.fx-archive-list__excerpt,
.fx-article-list__excerpt {
  margin: 0;
  line-height: 1.7;
}

.fx-story-card__meta,
.fx-post-card__meta {
  margin: 18px 0 0;
  font-size: 13px;
}

.fx-article-list,
.fx-archive-list {
  display: grid;
}

.fx-article-list__item,
.fx-archive-list__item {
  display: grid;
  align-items: center;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--fx-border);
}

.fx-article-list__item {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.fx-archive-list__item {
  grid-template-columns: 320px minmax(0, 1fr);
}

.fx-article-list__item:first-child,
.fx-archive-list__item:first-child {
  border-top: 0;
}

.fx-archive-list__item .fx-archive-list__thumb {
  grid-column: 1;
  grid-row: 1;
}

.fx-archive-list__item .fx-archive-list__content {
  grid-column: 2;
  grid-row: 1;
}

.fx-article-list__title,
.fx-archive-list__title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
}

.fx-article-list__thumb,
.fx-archive-list__thumb,
.fx-related-card__media,
.fx-archive-featured__media {
  display: block;
  overflow: hidden;
  border-radius: var(--fx-radius);
  background: var(--fx-surface-soft);
}

.fx-article-list__thumb,
.fx-archive-list__thumb {
  aspect-ratio: 16 / 10;
}

.fx-article-list__thumb img,
.fx-archive-list__thumb img,
.fx-related-card__media img,
.fx-archive-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blog, archives, and search */
.fx-archive-header {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--fx-border);
}

.fx-display-title--archive {
  max-width: 18ch;
  font-size: 56px;
}

.fx-archive-featured__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 42px;
  padding: 34px;
  border-radius: var(--fx-radius);
  background: var(--fx-surface-soft);
}

.fx-archive-featured__title {
  margin: 8px 0 14px;
  font-size: 42px;
  line-height: 1.12;
}

.fx-archive-featured__media {
  aspect-ratio: 16 / 10;
}

.fx-search-page-form {
  max-width: 680px;
  margin-top: 28px;
}

.fx-search-page-form > label {
  display: block;
  margin-bottom: 6px;
  color: var(--fx-muted);
  font-size: 14px;
  font-weight: 700;
}

.fx-search-page-form__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.fx-empty-state {
  padding: 32px 0;
  border-top: 1px solid var(--fx-border);
  color: var(--fx-muted);
}

.fx-pagination {
  margin-top: 36px;
}

.fx-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-pagination a,
.fx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--fx-border);
  border-radius: 4px;
  background: var(--fx-surface);
  color: var(--fx-ink);
  text-decoration: none;
}

.fx-pagination .current {
  border-color: var(--fx-accent);
  background: var(--fx-accent);
  color: #ffffff;
}

/* Single article */
.fx-editorial-single {
  width: 100%;
  max-width: none;
  padding-top: 40px;
}

.fx-editorial-single .fx-shell {
  width: min(calc(100% - 48px), var(--fx-content));
}

.fx-single-header {
  padding: 10px 0 34px;
}

.fx-display-title--single {
  max-width: 1050px;
  font-size: 62px;
}

.fx-standfirst--single {
  max-width: 68ch;
}

.fx-single-media-wrap {
  margin-bottom: 56px;
}

.fx-single-media {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-radius: var(--fx-radius);
  background: var(--fx-surface-soft);
}

.fx-single-media__link,
.fx-single-media img {
  width: 100%;
  height: 100%;
}

.fx-single-media img {
  object-fit: cover;
}

.fx-single-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--fx-reading));
  justify-content: center;
  align-items: start;
  gap: 50px;
}

.fx-single-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 22px;
}

body.admin-bar .fx-single-sidebar {
  top: 140px;
}

.fx-sidebar-panel {
  padding: 16px 0;
  border-top: 1px solid var(--fx-border);
}

.fx-sidebar-toc {
  padding: 18px;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  background: var(--fx-surface-soft);
}

.fx-sidebar-toc__list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.fx-sidebar-toc__list a {
  color: var(--fx-ink);
  text-decoration: none;
}

.fx-sidebar-toc__list a:hover {
  color: var(--fx-accent);
  text-decoration: underline;
}

.fx-sidebar-meta {
  margin: 4px 0;
  color: var(--fx-muted);
  font-size: 13px;
}

.fx-single-content {
  width: 100%;
  max-width: var(--fx-reading);
  color: var(--fx-ink);
  font-size: 18px;
  line-height: 1.85;
}

.fx-single-content > :first-child {
  margin-top: 0;
}

.fx-single-content p,
.fx-single-content ul,
.fx-single-content ol,
.fx-single-content blockquote,
.fx-single-content table,
.fx-single-content figure,
.fx-single-content section,
.fx-single-content aside {
  margin-top: 0;
  margin-bottom: 26px;
}

.fx-single-content h2 {
  margin: 54px 0 18px;
  font-size: 34px;
  line-height: 1.18;
  scroll-margin-top: 128px;
}

body.admin-bar .fx-single-content h2 {
  scroll-margin-top: 160px;
}

.fx-single-content h3 {
  margin: 40px 0 14px;
  font-size: 25px;
  line-height: 1.22;
}

.fx-single-content h4 {
  margin: 32px 0 12px;
  font-size: 21px;
}

.fx-single-content a {
  color: var(--fx-accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fx-single-content ul,
.fx-single-content ol {
  padding-left: 24px;
}

.fx-single-content li + li {
  margin-top: 8px;
}

.fx-single-content blockquote {
  margin-inline: 0;
  padding: 24px 26px;
  border-left: 4px solid var(--fx-highlight);
  border-radius: 0 var(--fx-radius) var(--fx-radius) 0;
  background: var(--fx-surface-warm);
  color: var(--fx-ink);
  font-family: var(--fx-display);
  font-size: 24px;
  line-height: 1.5;
}

.fx-single-content figure {
  width: 100%;
}

.fx-single-content figure img {
  width: 100%;
  border-radius: var(--fx-radius);
}

.fx-single-content figcaption {
  margin-top: 8px;
  color: var(--fx-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.fx-single-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--fx-surface);
}

.fx-single-content th,
.fx-single-content td {
  min-width: 140px;
  padding: 13px 15px;
  border-right: 1px solid var(--fx-border);
  border-bottom: 1px solid var(--fx-border);
  text-align: left;
  vertical-align: top;
}

.fx-single-content th {
  background: var(--fx-surface-soft);
  color: var(--fx-ink);
  font-size: 15px;
}

.fx-single-content tr:last-child td {
  border-bottom: 0;
}

.fx-single-content th:last-child,
.fx-single-content td:last-child {
  border-right: 0;
}

.reader-public-lead {
  color: var(--fx-ink);
  font-size: 21px;
  font-weight: 560;
  line-height: 1.75;
}

.reader-opening-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reader-opening-brief__item,
.reader-opening-brief > div {
  padding: 18px;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  background: var(--fx-surface);
}

.reader-opening-brief h3,
.reader-opening-brief p {
  margin: 0;
}

.reader-opening-brief h3 {
  margin-bottom: 8px;
  color: var(--fx-accent-strong);
  font-family: var(--fx-body);
  font-size: 15px;
  font-weight: 750;
}

.reader-opening-brief p {
  color: var(--fx-muted);
  font-size: 14px;
  line-height: 1.65;
}

.reader-opening-brief--legacy a {
  color: var(--fx-ink);
  font-weight: 650;
  text-decoration-color: var(--fx-accent);
  text-decoration-thickness: 2px;
}

.reader-opening-brief--legacy a:hover {
  color: var(--fx-accent-strong);
}

.reader-quick-scan,
.reader-metric-points,
.reader-claim-classification,
.reader-comparison-table,
.reader-decision-box,
.reader-action-checklist,
.reader-block-source-links,
.reader-community-reaction,
.reader-community-signal,
.author-bio-container,
.fx-follow-path {
  padding: 22px 24px;
  border: 1px solid var(--fx-border);
  border-left: 4px solid var(--fx-accent);
  border-radius: var(--fx-radius);
  background: var(--fx-surface-soft);
}

.reader-decision-box,
.reader-action-checklist {
  border-left-color: var(--fx-highlight);
  background: var(--fx-surface-warm);
}

.reader-block-source-links ul {
  display: grid;
  gap: 8px;
}

.reader-block-source-links a {
  word-break: break-all;
}

.author-bio-title,
.author-bio-desc {
  margin: 0;
}

.author-bio-title {
  font-size: 24px;
}

.author-bio-desc {
  margin-top: 8px;
  color: var(--fx-muted);
}

.fx-breadcrumb {
  width: min(calc(100% - 48px), var(--fx-content));
  margin: 0 auto 12px;
  color: var(--fx-muted);
  font-size: 13px;
}

.fx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-breadcrumb li + li::before {
  margin-right: 6px;
  color: var(--fx-border-strong);
  content: "/";
}

.fx-follow-path__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fx-editorial-grid--related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fx-related-card__media {
  aspect-ratio: 16 / 9;
}

.fx-readmode-toggle {
  min-height: 36px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--fx-border-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--fx-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fx-readmode-toggle:hover,
.fx-readmode-toggle[aria-pressed="true"] {
  border-color: var(--fx-accent);
  background: var(--fx-surface-soft);
  color: var(--fx-accent-strong);
}

.fx-reading-mode .fx-single-sidebar {
  display: none;
}

.fx-reading-mode .fx-single-layout {
  display: block;
}

.fx-reading-mode .fx-single-content {
  margin-inline: auto;
  font-size: 19px;
  line-height: 1.95;
}

/* Generic fallback cards */
.fx-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fx-post-card {
  display: flex;
  flex-direction: column;
}

.fx-post-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--fx-surface-soft);
}

.fx-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fx-post-card__thumb--placeholder {
  min-height: 180px;
}

/* Static pages */
body.page:not(.home) .site-main,
body.error404 .site-main {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
  padding: 56px 0 88px;
}

body.page:not(.home) .entry-header,
body.error404 .page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fx-border);
}

body.page:not(.home) .entry-title,
body.error404 .page-title {
  margin: 0;
  font-size: 48px;
}

body.page:not(.home) .entry-content {
  color: var(--fx-ink);
  font-size: 18px;
  line-height: 1.8;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--fx-border);
  background: #13251e !important;
  color: #eff6f2;
}

.site-footer .site-below-footer-wrap,
.site-footer .ast-builder-grid-row-container-inner,
.site-footer .ast-builder-footer-grid-columns {
  background: transparent !important;
}

.site-footer .ast-builder-grid-row-container-inner {
  max-width: var(--fx-content);
  padding: 28px 24px;
}

.fx-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.fx-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fx-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #eff6f2;
  font-size: 14px;
  text-decoration: none;
}

.fx-footer__links a:hover {
  color: #83ddd2;
}

.fx-footer__meta {
  color: #b6c8bf;
  font-size: 13px;
}

@media (max-width: 980px) {
  .fx-display-title,
  .fx-home-hero .fx-display-title,
  .fx-display-title--single {
    font-size: 52px;
  }

  .fx-editorial-grid--featured {
    grid-template-columns: 1fr;
  }

  .fx-story-card__body {
    padding: 24px;
  }

  .fx-archive-featured__grid {
    grid-template-columns: 1fr;
  }

  .fx-archive-featured__media {
    aspect-ratio: 16 / 9;
  }

  .fx-single-layout {
    grid-template-columns: minmax(0, var(--fx-reading));
  }

  .fx-single-sidebar {
    display: none;
  }

  .fx-article-list__item,
  .fx-archive-list__item {
    gap: 24px;
  }

  .fx-article-list__item {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .fx-archive-list__item {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  body.admin-bar #fluxaivory-header {
    top: 46px;
  }

  #fluxaivory-header {
    backdrop-filter: none;
  }

  body.single #fluxaivory-header,
  body.single.admin-bar #fluxaivory-header {
    position: relative;
    top: auto;
  }

  .fx-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 0 14px;
    gap: 8px;
  }

  .fx-header-left {
    grid-column: 2;
    grid-row: 1;
  }

  .fx-header-center {
    grid-column: 1;
    grid-row: 1;
  }

  .fx-header-right {
    grid-column: 3;
    grid-row: 1;
  }

  .fx-logo__text {
    font-size: 19px;
  }

  .fx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--fx-border);
    background: var(--fx-surface);
    box-shadow: var(--fx-shadow);
  }

  .fx-nav.is-open {
    display: block;
  }

  .fx-nav__list {
    display: grid;
    gap: 0;
  }

  .fx-nav__list > li {
    border-bottom: 1px solid var(--fx-border);
  }

  .fx-nav__list > li:last-child {
    border-bottom: 0;
  }

  .fx-nav__list li a {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
  }

  .fx-nav__list .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .fx-nav__list .is-submenu-open > .sub-menu {
    display: block;
  }

  .fx-mobile-menu-toggle {
    display: inline-flex;
  }

  .fx-editorial {
    padding: 20px 16px 64px;
  }

  .fx-editorial-home {
    padding-top: 16px;
  }

  .fx-editorial-home > .fx-shell,
  .fx-editorial-home > .fx-home-hero,
  .fx-breadcrumb {
    width: calc(100% - 32px);
  }

  .fx-single-article {
    padding: 0 !important;
  }

  .fx-editorial-single .fx-shell {
    width: 100%;
    margin-inline: 0;
  }

  .fx-single-layout {
    width: 100%;
    margin-inline: 0;
  }

  .fx-home-hero,
  .fx-home-sections,
  .fx-archive-header,
  .fx-archive-featured,
  .fx-single-related {
    margin-bottom: 48px;
  }

  .fx-home-hero__grid {
    height: 72svh;
    min-height: 570px;
    max-height: 660px;
  }

  .fx-home-hero__content {
    padding: 26px 22px;
  }

  .fx-display-title,
  .fx-home-hero .fx-display-title,
  .fx-display-title--archive {
    font-size: 38px;
    line-height: 1.08;
  }

  .fx-display-title--single {
    font-size: 36px;
    line-height: 1.2;
  }

  .fx-home-hero .fx-standfirst {
    font-size: 16px;
    -webkit-line-clamp: 3;
  }

  .fx-section-heading {
    font-size: 31px;
  }

  .fx-section-heading-wrap--split {
    align-items: flex-start;
    flex-direction: column;
  }

  .fx-standfirst {
    font-size: 17px;
  }

  .fx-article-list__item,
  .fx-archive-list__item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fx-archive-list__item .fx-archive-list__thumb,
  .fx-archive-list__item .fx-archive-list__content {
    grid-column: 1;
    grid-row: auto;
  }

  .fx-article-list__thumb,
  .fx-archive-list__thumb {
    order: -1;
  }

  .fx-article-list__title,
  .fx-archive-list__title {
    font-size: 25px;
  }

  .fx-archive-featured__grid {
    gap: 24px;
    padding: 22px;
  }

  .fx-archive-featured__title {
    font-size: 31px;
  }

  .fx-single-media-wrap {
    margin-bottom: 32px;
  }

  .fx-single-content {
    font-size: 18px;
    line-height: 1.85;
  }

  .fx-single-content h2 {
    margin: 48px 0 16px;
    font-size: 28px;
    line-height: 1.3;
  }

  .fx-single-content h3 {
    margin: 36px 0 12px;
    font-size: 22px;
    line-height: 1.35;
  }

  .fx-single-content h4 {
    font-size: 20px;
    line-height: 1.4;
  }

  .fx-single-content blockquote {
    padding: 18px;
    font-size: 19px;
    line-height: 1.7;
  }

  .fx-single-content figcaption {
    font-size: 14px;
    line-height: 1.6;
  }

  .fx-single-content th,
  .fx-single-content td {
    min-width: 130px;
    padding: 12px;
    font-size: 16px;
    line-height: 1.6;
  }

  .reader-public-lead {
    font-size: 19px;
    line-height: 1.8;
  }

  .reader-opening-brief {
    grid-template-columns: 1fr;
  }

  .reader-opening-brief__item,
  .reader-opening-brief > div {
    padding: 16px;
  }

  .reader-opening-brief p {
    font-size: 15px;
    line-height: 1.7;
  }

  .reader-quick-scan,
  .reader-metric-points,
  .reader-claim-classification,
  .reader-comparison-table,
  .reader-decision-box,
  .reader-action-checklist,
  .reader-block-source-links,
  .reader-community-reaction,
  .reader-community-signal,
  .author-bio-container,
  .fx-follow-path {
    padding: 18px 16px;
  }

  .fx-editorial-grid--related,
  .fx-post-grid {
    grid-template-columns: 1fr;
  }

  .fx-search-overlay {
    padding: 100px 16px 16px;
  }

  .fx-search-overlay__panel {
    padding: 26px 18px 20px;
  }

  .fx-search-form,
  .fx-search-page-form__controls {
    grid-template-columns: 1fr;
  }

  .fx-search-submit,
  .fx-search-page-form button {
    width: 100%;
  }

  .fx-readmode-toggle {
    margin-left: 0;
    min-height: 44px;
  }

  .fx-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body.page:not(.home) .site-main,
  body.error404 .site-main {
    width: calc(100% - 32px);
    padding: 40px 0 64px;
  }

  body.page:not(.home) .entry-title,
  body.error404 .page-title {
    font-size: 38px;
  }
}

@media (max-width: 390px) {
  .fx-search-toggle,
  .fx-theme-toggle,
  .fx-mobile-menu-toggle {
    width: 42px;
    min-width: 42px;
  }

  .fx-display-title,
  .fx-home-hero .fx-display-title,
  .fx-display-title--archive {
    font-size: 34px;
  }

  .fx-display-title--single {
    font-size: 32px;
    line-height: 1.22;
  }

  .fx-home-hero__grid {
    min-height: 590px;
  }

  .fx-home-hero__content {
    padding: 22px 18px;
  }

  .fx-meta-row {
    gap: 7px;
  }

  .fx-kicker-chip {
    padding-inline: 9px;
  }
}

@media (max-width: 320px) {
  .fx-header-inner {
    padding-inline: 10px;
  }

  .fx-logo__text {
    font-size: 17px;
  }

  .fx-search-toggle,
  .fx-theme-toggle,
  .fx-mobile-menu-toggle {
    width: 40px;
    min-width: 40px;
  }

  .fx-display-title,
  .fx-home-hero .fx-display-title,
  .fx-display-title--archive {
    font-size: 31px;
  }

  .fx-display-title--single {
    font-size: 30px;
    line-height: 1.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  #fluxaivory-header,
  .site-footer,
  .fx-single-sidebar,
  .fx-readmode-toggle,
  .fx-single-related {
    display: none !important;
  }

  body,
  #page,
  .site {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .fx-single-content {
    max-width: none;
    color: #000000;
    font-size: 11pt;
  }
}

.fx-kicker-chip--editorial {
  color: var(--fx-highlight);
  border-color: color-mix(in srgb, var(--fx-highlight) 46%, var(--fx-border));
  background: color-mix(in srgb, var(--fx-highlight) 8%, var(--fx-surface));
}

.fx-editorial-disclosure {
  margin: 30px 0 36px;
  padding: 22px 24px;
  border: 1px solid var(--fx-border);
  border-left: 4px solid var(--fx-accent);
  border-radius: var(--fx-radius);
  background: var(--fx-surface-soft);
  color: var(--fx-ink);
}

.fx-editorial-disclosure p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
}

.fx-editorial-disclosure p:last-child {
  margin-bottom: 0;
}

.fx-editorial-label {
  color: var(--fx-accent-strong);
  font-family: var(--fx-label);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.fx-editorial-byline a,
.fx-editorial-meta a,
.fx-sidebar-meta a {
  color: var(--fx-accent-strong);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.fx-editorial-evidence {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--fx-border-strong);
}

.fx-editorial-evidence ul {
  display: grid;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.fx-editorial-evidence li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: start;
  margin: 0;
}

.fx-evidence-claim {
  min-width: 0;
  font-weight: 600;
}

.fx-evidence-links {
  display: flex;
  max-width: 280px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  font-size: 13px;
}

.fx-evidence-links a {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .fx-editorial-disclosure {
    margin: 24px 0 30px;
    padding: 18px 16px;
  }

  .fx-editorial-disclosure p {
    font-size: 16px;
    line-height: 1.75;
  }

  .fx-editorial-evidence li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .fx-evidence-links {
    max-width: none;
    justify-content: flex-start;
  }
}
