:root {
  --ufowk-primary: #0B1220;
  --ufowk-primary-2: #111827;
  --ufowk-text: #111827;
  --ufowk-muted: #475569;
  --ufowk-muted-2: #64748B;
  --ufowk-border: #CBD5E1;
  --ufowk-border-soft: #E2E8F0;
  --ufowk-bg: #F8FAFC;
  --ufowk-surface: #FFFFFF;
  --ufowk-surface-muted: #F1F5F9;
  --ufowk-accent: #2563EB;
  --ufowk-alert: #F59E0B;
  --ufowk-success: #16A34A;
  --ufowk-uap: #7C3AED;
  --ufowk-danger: #DC2626;
  --ufowk-radius-xs: 6px;
  --ufowk-radius-sm: 10px;
  --ufowk-radius-md: 16px;
  --ufowk-radius-lg: 24px;
  --ufowk-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --ufowk-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --ufowk-max-width: 1180px;
  --ufowk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --ufowk-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ufowk-bg);
  color: var(--ufowk-text);
  font-family: var(--ufowk-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a { color: var(--ufowk-accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover, a:focus { color: var(--ufowk-uap); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.55em;
  color: var(--ufowk-primary-2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p { margin: 0 0 1rem; }
ul, ol { margin-top: 0; }

.container {
  width: min(calc(100% - 32px), var(--ufowk-max-width));
  margin-inline: auto;
}

.narrow-container { width: min(calc(100% - 32px), 880px); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; top: 8px; width: auto; z-index: 100000; background: #fff; color: #000; padding: 12px 16px; border-radius: 8px; box-shadow: var(--ufowk-shadow); }

.skip-link { z-index: 100000; }

.button, button, input[type="submit"], .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.button:hover, button:hover, input[type="submit"]:hover, .search-submit:hover { transform: translateY(-1px); }
.button--primary, input[type="submit"], .search-submit { background: var(--ufowk-accent); color: #fff; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18); }
.button--primary:hover, .button--primary:focus, input[type="submit"]:hover, .search-submit:hover { background: #1D4ED8; color: #fff; }
.button--light { background: #fff; color: var(--ufowk-primary); }
.button--light:hover, .button--light:focus { color: var(--ufowk-accent); }

/* Header */
.site-header {
  background: var(--ufowk-primary);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
}

.utility-bar { background: rgba(0, 0, 0, 0.18); font-size: 0.82rem; color: #CBD5E1; }
.utility-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.utility-bar__tagline { color: #E2E8F0; font-weight: 700; }
.utility-menu, .primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.utility-menu a { color: #E2E8F0; text-decoration: none; }

.masthead { background: linear-gradient(135deg, var(--ufowk-primary), #111C31); }
.masthead__inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-branding { min-width: 0; }
.site-logo img { max-height: 74px; width: auto; }
.site-title { color: #fff; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.35rem; font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
.site-title__mark { color: #fff; }
.site-title__text { color: var(--ufowk-alert); }
.site-description { color: #CBD5E1; margin: 0.45rem 0 0; font-weight: 600; }
.masthead__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.search-toggle { width: 44px; height: 44px; padding: 0; color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); font-size: 1.3rem; }
.search-toggle:hover, .search-toggle:focus { background: rgba(255,255,255,0.14); color: #fff; }
.report-button { white-space: nowrap; }
.header-search { background: #fff; border-top: 1px solid var(--ufowk-border-soft); padding: 1rem 0; }

.primary-navigation { background: #fff; color: var(--ufowk-primary-2); box-shadow: 0 1px 0 var(--ufowk-border-soft); }
.primary-navigation__inner { display: flex; align-items: center; min-height: 52px; }
.primary-menu-wrap { width: 100%; }
.primary-menu { gap: 0.25rem; align-items: center; }
.primary-menu a { display: block; color: var(--ufowk-primary-2); padding: 0.82rem 0.75rem; text-decoration: none; border-radius: 999px; font-weight: 750; font-size: 0.93rem; }
.primary-menu a:hover, .primary-menu a:focus, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { background: var(--ufowk-surface-muted); color: var(--ufowk-accent); }
.primary-menu a.menu-report-cta { background: var(--ufowk-alert); color: #111827; }
.menu-toggle { display: none; background: transparent; color: var(--ufowk-primary); border: 0; box-shadow: none; padding-inline: 0; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 99px; content: ''; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -7px; }
.menu-toggle__bars::after { position: absolute; top: 7px; }

/* Forms */
.search-form { display: flex; gap: 0.5rem; width: 100%; }
.search-form label { flex: 1; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], input[type="number"], textarea, select {
  width: 100%;
  border: 1px solid var(--ufowk-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ufowk-text);
  padding: 0.82rem 0.95rem;
  font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(37, 99, 235, 0.16); border-color: var(--ufowk-accent); }

/* Layout */
.section-block { padding: clamp(2rem, 5vw, 4.25rem) 0; }
.section-block--compact { padding: 2rem 0; }
.section-block--tinted { background: var(--ufowk-surface-muted); }
.section-block--dark { background: radial-gradient(circle at 20% 0%, rgba(124, 58, 237, 0.22), transparent 30%), linear-gradient(135deg, var(--ufowk-primary), #111827); color: #E2E8F0; }
.section-block--dark h2, .section-block--dark h3 { color: #fff; }
.section-block--dark .section-kicker { color: var(--ufowk-alert); }
.section-block--dark .section-link { color: #fff; border-color: rgba(255,255,255,0.2); }

.section-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.4rem; }
.section-kicker { margin: 0 0 0.4rem; color: var(--ufowk-accent); font-size: 0.78rem; line-height: 1.2; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.section-title { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 0; }
.section-link { color: var(--ufowk-primary-2); border: 1px solid var(--ufowk-border); padding: 0.52rem 0.8rem; border-radius: 999px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.section-link:hover, .section-link:focus { border-color: var(--ufowk-accent); color: var(--ufowk-accent); background: #fff; }

/* Front page */
.front-hero { padding-top: 1.25rem; }
.breaking-strip { display: flex; align-items: center; gap: 0.85rem; background: #fff; border: 1px solid var(--ufowk-border-soft); border-radius: 999px; padding: 0.45rem 0.7rem; margin-bottom: 1.25rem; box-shadow: var(--ufowk-shadow-soft); overflow: hidden; }
.breaking-strip__label { background: var(--ufowk-alert); color: #111827; border-radius: 999px; padding: 0.25rem 0.62rem; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.breaking-strip__items { display: flex; gap: 1rem; overflow: auto; white-space: nowrap; scrollbar-width: none; }
.breaking-strip__items a { color: var(--ufowk-primary-2); text-decoration: none; font-weight: 700; }
.breaking-strip__items a::after { content: '•'; color: var(--ufowk-border); margin-left: 1rem; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr); gap: 1.1rem; align-items: stretch; }
.hero-card, .news-card, .list-card, .tool-card, .signal-card, .dashboard-card, .tool-feature-card, .video-placeholder-card, .map-preview-card, .error-card, .disclosure-box, .empty-state {
  background: var(--ufowk-surface);
  border: 1px solid var(--ufowk-border-soft);
  border-radius: var(--ufowk-radius-md);
  box-shadow: var(--ufowk-shadow-soft);
}
.hero-card--lead { overflow: hidden; min-height: 100%; display: grid; grid-template-rows: minmax(280px, 1fr) auto; }
.hero-card__media { display: block; color: inherit; text-decoration: none; background: var(--ufowk-primary); }
.hero-card__media img, .hero-image { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.hero-card__content { padding: clamp(1.2rem, 3vw, 2rem); }
.hero-card__title { font-size: clamp(2rem, 4vw, 3.3rem); }
.hero-card__title a, .news-card__title a, .list-card__title a { color: inherit; text-decoration: none; }
.hero-card__title a:hover, .news-card__title a:hover, .list-card__title a:hover { color: var(--ufowk-accent); }
.hero-card__excerpt { color: var(--ufowk-muted); font-size: 1.06rem; }
.hero-secondary-grid { display: grid; gap: 1.1rem; }

.card-grid { display: grid; gap: 1.1rem; }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-list-grid { display: grid; gap: 1rem; }

.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-card__media { display: block; min-height: 168px; background: var(--ufowk-primary); color: inherit; text-decoration: none; }
.news-card__media img, .news-card__media .image-placeholder { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card__body { padding: 1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.news-card__title { font-size: 1.08rem; margin: 0; }
.news-card__excerpt { color: var(--ufowk-muted); font-size: 0.94rem; }
.news-card--compact { flex-direction: row; align-items: stretch; min-height: 138px; }
.news-card--compact .news-card__media { flex: 0 0 38%; min-height: 100%; }
.news-card--compact .news-card__media img, .news-card--compact .image-placeholder { height: 100%; aspect-ratio: auto; }
.news-card--compact .news-card__body { padding: 0.95rem; }

.list-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1rem; padding: 0.85rem; }
.list-card__media { min-height: 120px; background: var(--ufowk-primary); border-radius: 12px; overflow: hidden; text-decoration: none; }
.list-card__media img, .list-card__media .image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.list-card__title { font-size: 1.2rem; margin: 0.2rem 0; }
.list-card__excerpt { color: var(--ufowk-muted); }

.image-placeholder { display: grid; min-height: 160px; place-items: center; background: radial-gradient(circle at 25% 20%, rgba(124,58,237,0.42), transparent 30%), linear-gradient(135deg, #0B1220, #1E293B); color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; padding: 1rem; }
.image-placeholder span { max-width: 14rem; }
.category-pill { display: inline-flex; width: fit-content; align-items: center; gap: 0.35rem; color: var(--ufowk-accent); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.14); border-radius: 999px; padding: 0.22rem 0.58rem; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.category-pill:hover, .category-pill:focus { background: rgba(124, 58, 237, 0.08); color: var(--ufowk-uap); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; color: var(--ufowk-muted-2); font-size: 0.82rem; font-weight: 650; }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: var(--ufowk-accent); }
.meta-separator { color: var(--ufowk-border); margin: 0 0.15rem; }

/* Sky tools */
.sky-tools-strip { background: #fff; }
.tool-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tool-card { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.15rem; text-decoration: none; color: var(--ufowk-text); min-height: 170px; }
.tool-card:hover, .tool-card:focus { transform: translateY(-2px); box-shadow: var(--ufowk-shadow); color: var(--ufowk-text); border-color: rgba(37, 99, 235, 0.28); }
.tool-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(37, 99, 235, 0.10); color: var(--ufowk-accent); font-size: 1.4rem; }
.tool-card__label { font-weight: 900; font-size: 1.04rem; color: var(--ufowk-primary-2); }
.tool-card__text { color: var(--ufowk-muted); font-size: 0.92rem; }
.tool-card--cta { background: linear-gradient(135deg, var(--ufowk-accent), var(--ufowk-uap)); color: #fff; }
.tool-card--cta .tool-card__label, .tool-card--cta .tool-card__text { color: #fff; }
.tool-card--cta .tool-card__icon { background: rgba(255,255,255,0.18); color: #fff; }

.split-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 1.25rem; align-items: start; }
.stacked-list { display: grid; gap: 1rem; }
.map-preview-card { padding: 1.4rem; position: sticky; top: 1rem; }
.map-preview-card h3 { font-size: 1.5rem; }

/* Video */
.video-placeholder-card { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); overflow: hidden; }
.video-placeholder-card__media { min-height: 300px; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 35%), linear-gradient(135deg, #0B1220, #271245); color: #fff; }
.play-indicator { width: 82px; height: 82px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,0.55); border-radius: 999px; background: rgba(255,255,255,0.12); font-size: 2rem; padding-left: 0.2rem; }
.video-placeholder-card__body { padding: clamp(1.2rem, 3vw, 2rem); }
.video-placeholder-card--page { margin-top: 1.4rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 0.24rem 0.65rem; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--uap { background: rgba(124, 58, 237, 0.10); color: var(--ufowk-uap); }
.disclosure-box { padding: 1rem; border-left: 4px solid var(--ufowk-alert); margin: 1rem 0; color: var(--ufowk-muted); }
.disclosure-box strong { display: block; color: var(--ufowk-primary-2); margin-bottom: 0.35rem; }
.disclosure-box p { margin: 0; }

/* Quickening */
.quickening-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.signal-card { padding: 1.2rem; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); box-shadow: none; }
.signal-card p { color: #CBD5E1; margin-bottom: 0; }
.signal-card__score, .dashboard-card span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 0.55rem; border-radius: 999px; background: rgba(245, 158, 11, 0.16); color: var(--ufowk-alert); font-family: var(--ufowk-mono); font-weight: 900; margin-bottom: 0.85rem; }
.dashboard-card { padding: 1.2rem; }
.dashboard-card p { color: var(--ufowk-muted); }

/* Pages and single */
.content-sidebar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.content-area { min-width: 0; }
.widget-area { display: grid; gap: 1rem; }
.widget { padding: 1.1rem; background: #fff; border: 1px solid var(--ufowk-border-soft); border-radius: var(--ufowk-radius-md); box-shadow: var(--ufowk-shadow-soft); }
.widget-title { font-size: 1rem; margin-bottom: 0.8rem; }
.widget ul { padding-left: 1.1rem; margin-bottom: 0; }

.archive-header, .page-header, .page-hero { margin-bottom: 1.5rem; }
.page-hero { background: #fff; border: 1px solid var(--ufowk-border-soft); border-radius: var(--ufowk-radius-lg); padding: clamp(1.35rem, 4vw, 2.5rem); box-shadow: var(--ufowk-shadow-soft); }
.page-hero--dark { background: radial-gradient(circle at 10% 0, rgba(124,58,237,0.28), transparent 36%), linear-gradient(135deg, var(--ufowk-primary), #111827); color: #E2E8F0; }
.page-hero--dark h1 { color: #fff; }
.page-hero p { max-width: 760px; font-size: 1.06rem; color: var(--ufowk-muted); }
.page-hero--dark p { color: #CBD5E1; }
.page-title { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-intro-content { margin-bottom: 2rem; }

.single-hero { padding: clamp(2rem, 5vw, 4rem) 0 1.5rem; background: #fff; border-bottom: 1px solid var(--ufowk-border-soft); }
.single-title { font-size: clamp(2.2rem, 5vw, 4.25rem); }
.single-featured-media { margin-top: 1.5rem; border-radius: var(--ufowk-radius-lg); overflow: hidden; box-shadow: var(--ufowk-shadow); background: var(--ufowk-primary); }
.single-featured-media img, .single-featured-media .image-placeholder { width: 100%; max-height: 620px; object-fit: cover; }
.single-layout { padding: 2rem 0 4rem; }
.single-layout .content-area, .page-article, .prose-content { min-width: 0; }

.prose-content { background: #fff; border: 1px solid var(--ufowk-border-soft); border-radius: var(--ufowk-radius-md); padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--ufowk-shadow-soft); }
.prose-content > *:first-child { margin-top: 0; }
.prose-content > *:last-child { margin-bottom: 0; }
.prose-content p, .prose-content li { font-size: 1.06rem; }
.prose-content h2, .prose-content h3 { margin-top: 1.8em; }
.prose-content blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--ufowk-accent); background: var(--ufowk-surface-muted); border-radius: 0 var(--ufowk-radius-sm) var(--ufowk-radius-sm) 0; color: var(--ufowk-muted); }
.prose-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose-content th, .prose-content td { border: 1px solid var(--ufowk-border-soft); padding: 0.75rem; text-align: left; }
.prose-content th { background: var(--ufowk-surface-muted); }

.tags-footer, .post-navigation-wrap, .comments-area, .report-checklist { margin-top: 1.5rem; background: #fff; border: 1px solid var(--ufowk-border-soft); border-radius: var(--ufowk-radius-md); padding: 1.2rem; box-shadow: var(--ufowk-shadow-soft); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation a { display: block; padding: 1rem; background: var(--ufowk-surface-muted); border-radius: var(--ufowk-radius-sm); text-decoration: none; }
.nav-subtitle { display: block; color: var(--ufowk-muted-2); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-title { color: var(--ufowk-primary-2); font-weight: 850; }

.tool-feature-grid { display: grid; gap: 1.2rem; }
.tool-feature-card { padding: 1.2rem; }
.embedded-tool, .legacy-map-wrap { border: 1px solid var(--ufowk-border-soft); border-radius: var(--ufowk-radius-md); overflow: hidden; background: var(--ufowk-surface-muted); margin-top: 1rem; }
#starlink-tracker { min-height: 460px; border-radius: var(--ufowk-radius-md); overflow: hidden; }
.tool-placeholder { min-height: 260px; display: grid; place-items: center; text-align: center; padding: 1.5rem; border: 1px dashed var(--ufowk-border); border-radius: var(--ufowk-radius-md); background: var(--ufowk-surface-muted); color: var(--ufowk-muted); font-weight: 800; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding-left: 0; list-style: none; }
.checklist-grid li { background: var(--ufowk-surface-muted); border-radius: var(--ufowk-radius-sm); padding: 0.75rem 0.9rem; }
.checklist-grid li::before { content: '✓'; color: var(--ufowk-success); font-weight: 900; margin-right: 0.5rem; }

.empty-state { padding: 1rem; color: var(--ufowk-muted); }
.pagination-wrap { margin-top: 1.5rem; }
.pagination-wrap ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--ufowk-border); border-radius: 999px; text-decoration: none; padding: 0 0.75rem; background: #fff; }
.pagination-wrap .current { background: var(--ufowk-primary); color: #fff; border-color: var(--ufowk-primary); }

.responsive-embed { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--ufowk-radius-md); }
.responsive-embed iframe, .responsive-embed video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Footer */
.site-footer { background: var(--ufowk-primary); color: #CBD5E1; }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) repeat(3, minmax(180px, 1fr)); gap: 2rem; padding: 3rem 0; }
.footer-title { color: #fff; font-size: 1.8rem; font-weight: 950; text-decoration: none; letter-spacing: -0.04em; }
.footer-title span { color: var(--ufowk-alert); }
.footer-brand p { max-width: 420px; }
.footer-widget-title { color: #fff; font-size: 1rem; }
.footer-menu { display: grid; gap: 0.45rem; }
.footer-menu a, .footer-widget a { color: #E2E8F0; text-decoration: none; }
.footer-menu a:hover, .footer-widget a:hover { color: var(--ufowk-alert); }
.footer-widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.footer-bottom { background: rgba(0,0,0,0.25); font-size: 0.86rem; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.footer-bottom p { margin: 0; }

/* WordPress alignment helpers */
.alignwide { margin-left: calc(50% - min(590px, 50vw - 16px)); margin-right: calc(50% - min(590px, 50vw - 16px)); max-width: var(--ufowk-max-width); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption, .wp-caption-text, .gallery-caption { color: var(--ufowk-muted); font-size: 0.9rem; }
.bypostauthor { outline: 2px solid rgba(37, 99, 235, 0.16); }

/* Current first-party plugin compatibility */
#ufo-tts-container, .ufo-tts-container { background: var(--ufowk-surface-muted); border: 1px solid var(--ufowk-border-soft); border-radius: var(--ufowk-radius-md); padding: 1rem; margin: 1rem 0; }
#ufo-audio { width: 100%; margin-top: 0.75rem; }
.wpgmza_map, .wpgmza_map div { max-width: 100%; }

@media (max-width: 1100px) {
  .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split-section, .content-sidebar-layout, .single-layout { grid-template-columns: 1fr; }
  .widget-area { display: none; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .utility-bar__date, .utility-nav { display: none; }
  .utility-bar__inner { justify-content: center; }
  .masthead__inner { min-height: 88px; }
  .masthead__actions .report-button { display: none; }
  .site-title { font-size: 2.25rem; }
  .site-description { font-size: 0.9rem; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation__inner { justify-content: space-between; }
  .primary-menu-wrap { display: none; padding: 0.5rem 0 1rem; }
  .primary-menu-wrap.is-open { display: block; }
  .primary-navigation__inner { flex-wrap: wrap; }
  .primary-menu { flex-direction: column; align-items: stretch; width: 100%; }
  .primary-menu a { border-radius: 10px; }
  .hero-grid, .hero-card--lead { display: block; }
  .news-card--compact, .list-card, .video-placeholder-card { grid-template-columns: 1fr; flex-direction: column; }
  .news-card--compact .news-card__media { min-height: 180px; }
  .list-card__media { min-height: 180px; }
  .quickening-grid, .dashboard-grid, .card-grid--three, .card-grid--four, .tool-card-grid { grid-template-columns: 1fr; }
  .section-header { align-items: start; flex-direction: column; }
  .search-form { flex-direction: column; }
  .checklist-grid { grid-template-columns: 1fr; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom__inner { grid-template-columns: 1fr; display: grid; }
}

@media (max-width: 520px) {
  .container, .narrow-container { width: min(calc(100% - 24px), var(--ufowk-max-width)); }
  .section-block { padding: 2rem 0; }
  .breaking-strip { border-radius: 16px; align-items: start; }
  .breaking-strip__items { white-space: normal; flex-direction: column; gap: 0.25rem; }
  .breaking-strip__items a::after { content: ''; margin: 0; }
  .hero-card__title, .single-title, .page-title { word-break: break-word; }
}

/* --------------------------------------------------------------------------
   V2 refinement pass: safer menu handling and tighter news homepage layout.
   -------------------------------------------------------------------------- */

/* Keep assigned WordPress menus from expanding into visible bullet lists. */
.primary-navigation {
  position: relative;
  z-index: 120;
}
.primary-navigation__inner {
  min-height: 56px;
  position: relative;
}
.primary-navigation ul,
.utility-nav ul,
.site-footer .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  width: 100%;
}
.primary-menu > li {
  position: relative;
  margin: 0;
}
.primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.68rem 0.78rem;
  line-height: 1.1;
}
.primary-menu .menu-item-has-children > a::after,
.primary-menu .page_item_has_children > a::after {
  content: '▾';
  color: var(--ufowk-muted-2);
  font-size: 0.72em;
  margin-top: 0.05rem;
}
.primary-menu .sub-menu,
.primary-menu .children {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  display: block;
  min-width: 235px;
  max-width: min(330px, calc(100vw - 32px));
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid var(--ufowk-border-soft);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 999;
}
.primary-menu .sub-menu::before,
.primary-menu .children::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li:hover > .children,
.primary-menu li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.primary-menu .sub-menu li,
.primary-menu .children li {
  display: block;
  width: 100%;
  margin: 0;
}
.primary-menu .sub-menu a,
.primary-menu .children a {
  display: block;
  width: 100%;
  padding: 0.68rem 0.75rem;
  border-radius: 10px;
  color: var(--ufowk-primary-2);
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
}
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus,
.primary-menu .children a:hover,
.primary-menu .children a:focus {
  background: var(--ufowk-surface-muted);
  color: var(--ufowk-accent);
}
.primary-menu .sub-menu .sub-menu,
.primary-menu .children .children {
  display: none;
}
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-parent > a,
.primary-menu .current_page_item > a,
.primary-menu .current_page_parent > a {
  background: var(--ufowk-surface-muted);
  color: var(--ufowk-accent);
}

/* More controlled homepage lead package. */
.front-hero {
  padding-top: clamp(1.1rem, 2.5vw, 1.8rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.breaking-strip {
  border-radius: 18px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  align-items: start;
  gap: 1rem;
}
.hero-card--lead {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(390px, 42vw, 520px);
  overflow: hidden;
  border-radius: var(--ufowk-radius-lg);
  isolation: isolate;
  color: #fff;
}
.hero-card--lead::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.08) 0%, rgba(11, 18, 32, 0.28) 42%, rgba(11, 18, 32, 0.92) 100%);
  pointer-events: none;
}
.hero-card--lead .hero-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-card--lead .hero-card__media img,
.hero-card--lead .hero-card__media .image-placeholder,
.hero-card--lead .hero-image,
.hero-card--lead .post-thumbnail {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.hero-card--lead .hero-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  padding: clamp(1.35rem, 3.6vw, 2.35rem);
  color: #fff;
}
.hero-card--lead .hero-card__title {
  max-width: 820px;
  margin-top: 0.4rem;
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: clamp(2rem, 4.1vw, 3.7rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}
.hero-card--lead .hero-card__title a,
.hero-card--lead .hero-card__title a:hover,
.hero-card--lead .hero-card__title a:focus {
  color: #fff;
}
.hero-card--lead .hero-card__excerpt {
  max-width: 690px;
  color: #E2E8F0;
  font-size: 1rem;
}
.hero-card--lead .post-meta {
  color: #CBD5E1;
}
.hero-card--lead .category-pill {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-secondary-grid {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.hero-secondary-grid .news-card--compact {
  display: grid;
  grid-template-columns: minmax(145px, 38%) minmax(0, 1fr);
  height: calc((clamp(390px, 42vw, 520px) - 1rem) / 2);
  min-height: 185px;
  overflow: hidden;
}
.news-card--compact {
  display: grid;
  grid-template-columns: minmax(140px, 36%) minmax(0, 1fr);
  align-items: stretch;
}
.news-card--compact .news-card__media {
  min-height: 0;
  height: 100%;
  flex: none;
}
.news-card--compact .news-card__media img,
.news-card--compact .news-card__media .image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.news-card--compact .news-card__body {
  min-width: 0;
}
.news-card__title,
.list-card__title,
.hero-card__title {
  overflow-wrap: anywhere;
}

/* A little more editorial polish on card images and long embedded media. */
.news-card__media img,
.list-card__media img,
.single-featured-media img {
  background: #0B1220;
}
.news-card__media,
.list-card__media {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .primary-menu > li > a {
    padding-inline: 0.62rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
  .hero-secondary-grid .news-card--compact {
    height: auto;
    min-height: 205px;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .primary-navigation__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding-block: 0.35rem;
  }
  .primary-menu-wrap {
    display: none;
    width: 100%;
    padding: 0.45rem 0 0.75rem;
  }
  .primary-menu-wrap.is-open {
    display: block;
  }
  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    width: 100%;
  }
  .primary-menu > li > a {
    justify-content: space-between;
    border-radius: 12px;
    padding: 0.78rem 0.9rem;
  }
  .primary-menu .sub-menu,
  .primary-menu .children {
    position: static;
    display: block;
    min-width: 0;
    max-width: none;
    margin: 0.2rem 0.4rem 0.55rem 1rem;
    padding: 0.35rem;
    background: var(--ufowk-surface-muted);
    border: 1px solid var(--ufowk-border-soft);
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .primary-menu .sub-menu::before,
  .primary-menu .children::before {
    display: none;
  }
  .primary-menu .sub-menu a,
  .primary-menu .children a {
    padding: 0.6rem 0.7rem;
  }
}

@media (max-width: 782px) {
  .hero-grid,
  .hero-card--lead {
    display: grid;
  }
  .hero-card--lead {
    display: flex;
    min-height: 420px;
  }
  .hero-secondary-grid {
    grid-template-columns: 1fr;
  }
  .hero-secondary-grid .news-card--compact,
  .news-card--compact {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .news-card--compact .news-card__media {
    height: auto;
    min-height: 190px;
  }
  .news-card--compact .news-card__media img,
  .news-card--compact .news-card__media .image-placeholder {
    height: auto;
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }
  .hero-card--lead .hero-card__title {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }
}

@media (max-width: 520px) {
  .hero-card--lead {
    min-height: 390px;
    border-radius: 18px;
  }
  .hero-card--lead .hero-card__excerpt {
    display: none;
  }
  .breaking-strip {
    border-radius: 18px;
  }
}
