/*
Theme Name: FixMyDigital
Theme URI: https://fixmydigital.net/
Author: FixMyDigital
Description: Full FixMyDigital digital help theme recreated from the AI Studio prototype. Includes responsive topic hubs, featured guides, article table of contents, social sharing, social profiles, ad-ready widget areas and Gutenberg-friendly publishing.
Version: 3.0.20
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: fixmydigital
*/

:root {
  --fmd-bg: #f8fafc;
  --fmd-surface: #ffffff;
  --fmd-surface-2: #f1f5f9;
  --fmd-text: #0f172a;
  --fmd-muted: #64748b;
  --fmd-border: #e2e8f0;
  --fmd-blue: #2563eb;
  --fmd-blue-2: #3b82f6;
  --fmd-indigo: #6366f1;
  --fmd-dark: #0f172a;
  --fmd-dark-2: #111827;
  --fmd-green: #059669;
  --fmd-radius: 16px;
  --fmd-shadow: 0 12px 30px rgba(15, 23, 42, .07);
  --fmd-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fmd-bg);
  color: var(--fmd-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--fmd-blue); text-decoration: none; }
a:hover { color: #1d4ed8; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.fmd-skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; background: #fff; padding: 10px 14px; border-radius: 8px; }
.fmd-skip-link:focus { top: 16px; }
.fmd-container { width: min(calc(100% - 32px), var(--fmd-container)); margin-inline: auto; }

/* Header */
.fmd-site-header {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--fmd-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.fmd-site-header.is-scrolled {
  background: rgba(255,255,255,.68);
  border-bottom-color: rgba(203,213,225,.55);
  box-shadow: 0 8px 26px rgba(15,23,42,.08);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  backdrop-filter: blur(18px) saturate(175%);
}
.admin-bar .fmd-site-header { top: 32px; }
.fmd-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.fmd-brand { flex: 0 0 auto; }
.fmd-brand-link, .fmd-brand .custom-logo-link { display: inline-flex; align-items: center; }
.fmd-brand .custom-logo, .fmd-default-logo { display: block; width: auto; max-width: 270px; max-height: 58px; object-fit: contain; }
.fmd-primary-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.fmd-menu { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.fmd-menu > li { position: relative; }
.fmd-menu > li > a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; color: #334155; font-size: 14px; font-weight: 650; border-radius: 9px; }
.fmd-menu > li > a:hover, .fmd-menu > li.current-menu-item > a, .fmd-menu > li.current-menu-ancestor > a { background: #eff6ff; color: var(--fmd-blue); }
.fmd-menu .menu-item-has-children > a::after { content: "⌄"; margin-left: 6px; font-size: 11px; color: #94a3b8; }
.fmd-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--fmd-border); border-radius: 12px; box-shadow: 0 18px 46px rgba(15,23,42,.14);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s ease;
}
.fmd-menu li:hover > .sub-menu, .fmd-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fmd-menu .sub-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: #475569; font-size: 13px; font-weight: 600; }
.fmd-menu .sub-menu a:hover { background: #f8fafc; color: var(--fmd-blue); }
.fmd-header-search { display: flex; align-items: center; width: 210px; height: 38px; border: 1px solid var(--fmd-border); border-radius: 10px; background: #f8fafc; overflow: hidden; }
.fmd-header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 4px 8px 11px; color: var(--fmd-text); font-size: 12px; }
.fmd-header-search button { width: 40px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; color: #64748b; }
.fmd-header-search svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.fmd-menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--fmd-border); border-radius: 10px; background: #fff; padding: 10px; }
.fmd-menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; background: #334155; margin: 4px 0; border-radius: 2px; }

.fmd-submenu-toggle { display: none; border: 0; background: transparent; color: #64748b; cursor: pointer; }
.fmd-submenu-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.fmd-menu li.is-open > .fmd-submenu-toggle svg { transform: rotate(180deg); }

/* Hero */
.fmd-home-main { overflow: hidden; }
.fmd-hero { position: relative; overflow: hidden; background: linear-gradient(180deg,#0f172a 0%,#111827 52%,#0f172a 100%); color: #fff; padding: 64px 0 58px; }
.fmd-hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .22; pointer-events: none; }
.fmd-hero-glow-one { background: #2563eb; top: -160px; left: 18%; }
.fmd-hero-glow-two { background: #6366f1; bottom: -220px; right: 15%; }
.fmd-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.fmd-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(30,64,175,.28); border: 1px solid rgba(96,165,250,.35); color: #bfdbfe; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.fmd-hero-badge svg { width: 15px; fill: none; stroke: #60a5fa; stroke-width: 1.8; }
.fmd-hero h1 { margin: 18px 0 16px; font-size: clamp(38px,6vw,62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 850; }
.fmd-hero h1 span { color: transparent; background: linear-gradient(90deg,#60a5fa,#a5b4fc); background-clip: text; -webkit-background-clip: text; }
.fmd-hero > .fmd-container > p, .fmd-hero-inner > p { max-width: 720px; margin: 0 auto 26px; color: #cbd5e1; font-size: 16px; }
.fmd-hero-search { max-width: 720px; margin: 0 auto; }
.fmd-search-form { width: 100%; display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 44px rgba(0,0,0,.22); }
.fmd-search-form > svg { width: 21px; margin-left: 17px; fill: none; stroke: #94a3b8; stroke-width: 2; flex: 0 0 auto; }
.fmd-search-form .search-field { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; color: #0f172a; padding: 16px 13px; background: transparent; font-size: 14px; }
.fmd-search-button { align-self: stretch; border: 0; background: #2563eb; color: #fff; padding: 0 24px; font-weight: 750; }
.fmd-search-button:hover { background: #1d4ed8; }
.fmd-quick-searches { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: #64748b; font-size: 11px; }
.fmd-quick-searches a { color: #cbd5e1; background: rgba(30,41,59,.88); border: 1px solid #334155; border-radius: 7px; padding: 5px 9px; }
.fmd-quick-searches a:hover { color: #fff; border-color: #475569; background: #334155; }

/* Common sections */
.fmd-section { padding: 52px 0; }
.fmd-section-heading { margin-bottom: 24px; }
.fmd-section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.fmd-kicker { display: inline-block; color: var(--fmd-blue); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 850; margin-bottom: 5px; }
.fmd-kicker-light { color: #93c5fd; }
.fmd-section-heading h2, .fmd-archive-header h1, .fmd-category-hero h1, .fmd-related-section h2 { margin: 0; font-size: clamp(27px,3vw,36px); line-height: 1.15; letter-spacing: -.025em; }
.fmd-section-heading p, .fmd-archive-header p, .fmd-category-hero p { margin: 7px 0 0; color: var(--fmd-muted); font-size: 14px; }
.fmd-text-link { font-size: 13px; font-weight: 750; white-space: nowrap; }

/* Categories */
.fmd-category-section { background: #f8fafc; }
.fmd-category-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; }
.fmd-category-card { min-height: 136px; padding: 16px 12px; border: 1px solid var(--fmd-border); border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #334155; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.fmd-category-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: 0 12px 28px rgba(37,99,235,.08); color: var(--fmd-blue); }
.fmd-category-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; background: #f1f5f9; color: #2563eb; margin-bottom: 10px; }
.fmd-category-icon svg, .fmd-category-hero-icon svg, .fmd-card-category-icon svg, .fmd-article-category svg, .fmd-sidebar-categories svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fmd-category-name { font-size: 12px; font-weight: 800; line-height: 1.25; }
.fmd-category-meta { margin-top: 3px; color: #94a3b8; font-size: 10px; }

/* Featured */
.fmd-featured-section { padding-top: 12px; padding-bottom: 34px; }
.fmd-featured-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; border-radius: 20px; color: #fff; background: linear-gradient(100deg,#0f172a 0%,#312e81 52%,#0f172a 100%); border: 1px solid #1e293b; box-shadow: 0 18px 50px rgba(15,23,42,.18); }
.fmd-featured-card::after { content: ""; position: absolute; right: -50px; top: -100px; width: 320px; height: 320px; background: rgba(37,99,235,.2); filter: blur(70px); border-radius: 50%; }
.fmd-featured-content { position: relative; z-index: 2; max-width: 820px; }
.fmd-featured-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #94a3b8; font-size: 11px; }
.fmd-featured-meta a { color: #bfdbfe; }
.fmd-featured-label { color: #fde68a; background: rgba(245,158,11,.13); border: 1px solid rgba(245,158,11,.24); border-radius: 999px; padding: 3px 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.fmd-featured-card h2 { margin: 12px 0 8px; font-size: clamp(24px,3vw,34px); line-height: 1.2; letter-spacing: -.02em; }
.fmd-featured-card h2 a { color: #fff; }
.fmd-featured-card h2 a:hover { color: #bfdbfe; }
.fmd-featured-excerpt { color: #cbd5e1; font-size: 14px; }
.fmd-featured-excerpt p { margin: 0; }
.fmd-featured-button { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 11px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.fmd-featured-button:hover { background: #3b82f6; color: #fff; }

/* Post cards */
.fmd-latest-section { padding-top: 34px; }
.fmd-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.fmd-post-card { display: flex; flex-direction: column; min-height: 245px; padding: 22px; background: #fff; border: 1px solid var(--fmd-border); border-radius: 15px; box-shadow: 0 2px 8px rgba(15,23,42,.025); transition: .18s ease; }
.fmd-post-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: var(--fmd-shadow); }
.fmd-post-card-top { min-height: 26px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fmd-card-category { display: inline-flex; align-items: center; gap: 6px; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; }

/* v3.0.5: keep uploaded category icons compact inside post/search cards.
   Uploaded category images have intrinsic dimensions, so the wrapper needs an
   explicit box; otherwise width:100% on the image can expand the category pill. */
.fmd-card-category-icon {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  overflow: hidden;
  border-radius: 3px;
}
.fmd-card-category-icon svg { width: 14px; height: 14px; }
.fmd-card-category-icon img,
.fmd-card-category-icon .fmd-category-icon-image {
  display: block;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  max-width: 14px !important;
  min-height: 14px;
  max-height: 14px !important;
  padding: 0 !important;
  object-fit: contain;
  border-radius: 3px;
}
.fmd-card-time { color: #94a3b8; font-size: 10px; white-space: nowrap; }
.fmd-card-title { margin: 15px 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.fmd-card-title a { color: #0f172a; }
.fmd-card-title a:hover { color: #2563eb; }
.fmd-card-excerpt { color: #64748b; font-size: 13px; line-height: 1.65; }
.fmd-card-excerpt p { margin: 0; }
.fmd-card-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #94a3b8; font-size: 10px; }
.fmd-read-link { font-size: 11px; font-weight: 800; }

/* Help CTA */
.fmd-help-cta-section { padding-top: 26px; }
.fmd-help-cta { border-radius: 20px; padding: 38px; background: #0f172a; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.fmd-help-cta h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.fmd-help-cta p { max-width: 760px; color: #cbd5e1; margin: 9px 0 0; font-size: 14px; }
.fmd-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: #2563eb; color: #fff; padding: 11px 16px; font-weight: 800; font-size: 13px; }
.fmd-button:hover { background: #1d4ed8; color: #fff; }
.fmd-button-light { background: #fff; color: #0f172a; white-space: nowrap; }
.fmd-button-light:hover { background: #dbeafe; color: #0f172a; }

/* Archive & pages */
.fmd-archive-main, .fmd-page-main, .fmd-single-main { padding: 38px 0 58px; }
.fmd-archive-shell { max-width: 1120px; }
.fmd-archive-header { margin-bottom: 28px; padding: 30px; border: 1px solid var(--fmd-border); border-radius: 18px; background: #fff; }
.fmd-category-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding: 30px; border: 1px solid var(--fmd-border); border-radius: 18px; background: #fff; }
.fmd-category-hero-icon { width: 66px; height: 66px; border-radius: 16px; background: #eff6ff; color: #2563eb; display: grid; place-items: center; flex: 0 0 auto; }
.fmd-category-hero-icon svg { width: 32px; height: 32px; }
.fmd-category-description p { margin: 7px 0 0; }
.fmd-pagination { margin-top: 30px; }
.fmd-pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.fmd-pagination .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--fmd-border); background: #fff; color: #475569; font-size: 13px; }
.fmd-pagination .current { background: #2563eb; color: #fff; border-color: #2563eb; }
.fmd-empty-state { padding: 52px 28px; text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; color: #64748b; }
.fmd-empty-state h2, .fmd-empty-state h3 { color: #0f172a; margin-top: 0; }
.fmd-search-page-form { max-width: 690px; margin-top: 20px; }
.fmd-search-page-form .fmd-search-form { box-shadow: none; }

.fmd-page-container { max-width: 900px; }
.fmd-page-card { background: #fff; border: 1px solid var(--fmd-border); border-radius: 18px; padding: clamp(24px,5vw,48px); box-shadow: 0 3px 12px rgba(15,23,42,.03); }
.fmd-back-link { display: inline-flex; margin-bottom: 20px; color: #64748b; font-size: 12px; font-weight: 700; }
.fmd-page-header h1 { margin: 0 0 24px; font-size: clamp(32px,5vw,48px); line-height: 1.1; letter-spacing: -.03em; }
.fmd-error-card { text-align: center; }
.fmd-error-card .fmd-search-form { max-width: 650px; margin: 24px auto; box-shadow: none; }

/* Single */
.fmd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: #94a3b8; font-size: 11px; }
.fmd-breadcrumb a { color: #64748b; font-weight: 650; }
.fmd-single-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 26px; align-items: start; }
.fmd-article-card { background: #fff; border: 1px solid var(--fmd-border); border-radius: 18px; padding: clamp(22px,4vw,38px); box-shadow: 0 3px 12px rgba(15,23,42,.025); min-width: 0; }
.fmd-article-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fmd-article-category { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 999px; font-size: 11px; font-weight: 800; }
.fmd-article-category span { display: inline-flex; }
.fmd-article-category svg { width: 15px; height: 15px; }
.fmd-guide-label { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 800; }
.fmd-article-title { margin: 0 0 16px; font-size: clamp(32px,4.5vw,48px); line-height: 1.08; letter-spacing: -.035em; }
.fmd-article-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-bottom: 19px; margin-bottom: 24px; border-bottom: 1px solid #f1f5f9; color: #64748b; font-size: 11px; }
.fmd-author-badge { width: 27px; height: 27px; display: grid; place-items: center; background: #2563eb; color: #fff; border-radius: 50%; font-size: 10px; font-weight: 850; }
.fmd-meta-dot { color: #cbd5e1; }
.fmd-copy-link { margin-left: auto; border: 1px solid var(--fmd-border); background: #fff; color: #64748b; border-radius: 8px; padding: 5px 8px; font-size: 10px; font-weight: 700; }
.fmd-copy-link:hover { background: #f8fafc; color: #2563eb; }
.fmd-article-intro { padding: 16px 18px; margin-bottom: 24px; background: #f8fafc; border-left: 3px solid #60a5fa; border-radius: 0 10px 10px 0; color: #475569; font-size: 15px; }
.fmd-article-intro p { margin: 0; }
.fmd-entry-content { color: #334155; }
.fmd-entry-content > *:first-child { margin-top: 0; }
.fmd-entry-content h2 { scroll-margin-top: 105px; margin: 38px 0 14px; color: #0f172a; font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
.fmd-entry-content h3 { scroll-margin-top: 105px; margin: 28px 0 10px; color: #0f172a; font-size: 21px; line-height: 1.25; }
.fmd-entry-content p, .fmd-entry-content li { font-size: 16px; line-height: 1.78; }
.fmd-entry-content ul, .fmd-entry-content ol { padding-left: 23px; }
.fmd-entry-content li + li { margin-top: 6px; }
.fmd-entry-content blockquote { margin: 26px 0; padding: 14px 18px; border-left: 4px solid #60a5fa; background: #eff6ff; color: #334155; border-radius: 0 10px 10px 0; }
.fmd-entry-content code { background: #f1f5f9; color: #be123c; border-radius: 5px; padding: 2px 5px; font-size: .9em; }
.fmd-entry-content pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: #0f172a; color: #e2e8f0; font-size: 13px; line-height: 1.6; }
.fmd-entry-content pre code { background: transparent; color: inherit; padding: 0; }
.fmd-entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fmd-entry-content th, .fmd-entry-content td { padding: 11px 12px; border: 1px solid var(--fmd-border); text-align: left; }
.fmd-entry-content th { background: #f8fafc; }
.fmd-entry-content img { border-radius: 12px; }
.fmd-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 34px; padding-top: 22px; border-top: 1px solid #f1f5f9; font-size: 11px; }
.fmd-tags a { background: #f1f5f9; color: #475569; border-radius: 999px; padding: 5px 9px; }

.fmd-article-sidebar { position: sticky; top: 104px; display: grid; gap: 18px; }
.admin-bar .fmd-article-sidebar { top: 136px; }
.fmd-sidebar-box { background: #fff; border: 1px solid var(--fmd-border); border-radius: 14px; padding: 18px; }
.fmd-sidebar-box h2 { margin: 0 0 13px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.fmd-toc-list { margin: 0; padding-left: 20px; color: #94a3b8; font-size: 11px; }
.fmd-toc-list li + li { margin-top: 7px; }
.fmd-toc-list a { color: #64748b; }
.fmd-toc-list a:hover, .fmd-toc-list a.is-active { color: #2563eb; }
.fmd-toc-list .toc-h3 { margin-left: 10px; font-size: 10px; }
.fmd-mobile-toc { display: none; margin: 0 0 24px; border: 1px solid var(--fmd-border); border-radius: 12px; background: #f8fafc; }
.fmd-mobile-toc-toggle { width: 100%; border: 0; background: transparent; display: flex; justify-content: space-between; padding: 12px 14px; font-weight: 800; color: #334155; }
.fmd-mobile-toc .fmd-toc-list { display: none; padding: 0 28px 14px; }
.fmd-mobile-toc.is-open .fmd-toc-list { display: block; }

/* v3.0.14: one responsive TOC node, moved between desktop/sidebar and mobile/content slots. */
.fmd-toc-mobile-slot { display: none; }
.fmd-toc-mobile-title { display: none; }
.fmd-responsive-toc .fmd-toc-list { display: block; }
@media (max-width: 920px) {
  .fmd-toc-mobile-slot { display: block; margin: 0 0 24px; }
  .fmd-responsive-toc { margin: 0; padding: 0; border: 1px solid var(--fmd-border); border-radius: 12px; background: #f8fafc; }
  .fmd-responsive-toc .fmd-toc-desktop-title { display: none; }
  .fmd-responsive-toc .fmd-toc-mobile-title { display: flex; }
  .fmd-responsive-toc .fmd-toc-list { display: none; padding: 0 28px 14px; }
  .fmd-responsive-toc.is-open .fmd-toc-list { display: block; }
}
.fmd-sidebar-categories { display: grid; gap: 5px; }
.fmd-sidebar-categories a { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; color: #475569; font-size: 11px; font-weight: 650; }
.fmd-sidebar-categories a:hover, .fmd-sidebar-categories a.is-active { color: #1d4ed8; background: #eff6ff; }
.fmd-sidebar-categories svg { width: 16px; height: 16px; }
.fmd-related-section { margin-top: 36px; }

/* Comments */
.fmd-comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid #e2e8f0; }
.fmd-comments-title, .comment-reply-title { font-size: 21px; margin-bottom: 18px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 16px; margin-bottom: 12px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.comment-author { display: flex; align-items: center; gap: 9px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 4px 0 9px 51px; font-size: 10px; }
.comment-content { font-size: 14px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 10px 12px; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { font-weight: 400; }

/* Ads */
.fmd-ad-area, .fmd-footer-ad { margin: 22px auto; }
.fmd-ad-widget { min-height: 1px; text-align: center; }

/* Footer */
.fmd-site-footer { margin-top: 20px; padding: 54px 0 26px; background: #0f172a; color: #94a3b8; border-top: 1px solid #1e293b; }
.fmd-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 34px; border-bottom: 1px solid #1e293b; }
.fmd-footer-logo-wrap { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.fmd-footer-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #2563eb; color: #fff; }
.fmd-footer-mark svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fmd-footer-logo-text { font-size: 20px; font-weight: 850; letter-spacing: -.025em; }
.fmd-footer-logo-text span { color: #60a5fa; }
.fmd-footer-brand p { max-width: 430px; font-size: 12px; line-height: 1.7; }
.fmd-footer-contact { display: inline-block; margin-top: 6px; color: #bfdbfe; font-size: 12px; font-weight: 750; }
.fmd-site-footer h3 { margin: 4px 0 13px; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.fmd-site-footer ul { list-style: none; margin: 0; padding: 0; }
.fmd-site-footer li + li { margin-top: 8px; }
.fmd-site-footer li a { color: #94a3b8; font-size: 12px; }
.fmd-site-footer li a:hover { color: #bfdbfe; }
.fmd-ad-disclosure { padding: 18px 0; border-bottom: 1px solid #1e293b; color: #64748b; font-size: 10px; line-height: 1.7; }
.fmd-ad-disclosure strong { color: #cbd5e1; }
.fmd-footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 22px; font-size: 11px; }
.fmd-back-top { color: #cbd5e1; }

/* WordPress alignment */
.alignwide { width: min(1100px,100%); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption, .wp-block-image { max-width: 100%; }

/* Responsive */
@media (max-width: 1080px) {
  .fmd-header-search { display: none; }
  .fmd-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .fmd-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fmd-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .fmd-footer-grid > div:last-child { grid-column: 2 / span 2; }
}

@media (max-width: 860px) {
  .admin-bar .fmd-site-header { top: 46px; }
  .fmd-header-inner { min-height: 70px; }
  .fmd-brand .custom-logo, .fmd-default-logo { max-width: 220px; max-height: 50px; }
  .fmd-menu-toggle { display: block; margin-left: auto; }
  .fmd-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 12px 16px 18px; background: #fff; border-bottom: 1px solid var(--fmd-border); box-shadow: 0 18px 30px rgba(15,23,42,.08); }
  .fmd-primary-nav.is-open { display: block; }
  .fmd-menu { display: block; }
  .fmd-menu > li { position: relative; }
  .fmd-menu > li > a { display: flex; width: 100%; justify-content: space-between; }
  .fmd-menu .menu-item-has-children > a { padding-right: 54px; }
  .fmd-menu .menu-item-has-children > a::after { display: none; }
  .fmd-submenu-toggle { position: absolute; z-index: 2; top: 0; right: 0; width: 46px; height: 42px; display: grid; place-items: center; border-radius: 8px; }
  .fmd-submenu-toggle:hover, .fmd-submenu-toggle:focus-visible { background: #eff6ff; color: var(--fmd-blue); outline: none; }
  .fmd-menu .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 4px 15px; min-width: 0; }
  .fmd-menu li.is-open > .sub-menu { display: block; }
  .fmd-header-search { display: flex; width: 100%; margin-top: 10px; }
  .fmd-hero { padding: 54px 0 50px; }
  .fmd-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fmd-featured-card, .fmd-help-cta { align-items: flex-start; flex-direction: column; }
  .fmd-single-grid { grid-template-columns: 1fr; }
  .fmd-article-sidebar { position: static; }
  .fmd-desktop-toc { display: none; }
  .fmd-mobile-toc { display: block; }
}

@media (max-width: 680px) {
  .fmd-container { width: min(calc(100% - 24px), var(--fmd-container)); }
  .fmd-hero h1 { font-size: 38px; }
  .fmd-hero-inner > p { font-size: 14px; }
  .fmd-search-form { border-radius: 12px; }
  .fmd-search-form > svg { margin-left: 13px; }
  .fmd-search-form .search-field { padding: 14px 9px; font-size: 12px; }
  .fmd-search-button { padding: 0 15px; font-size: 12px; }
  .fmd-quick-searches span { width: 100%; }
  .fmd-section { padding: 40px 0; }
  .fmd-section-heading-row { align-items: flex-start; flex-direction: column; }
  .fmd-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fmd-category-card { min-height: 125px; }
  .fmd-post-grid { grid-template-columns: 1fr; }
  .fmd-featured-card { padding: 24px; }
  .fmd-help-cta { padding: 28px; }
  .fmd-help-cta h2 { font-size: 25px; }
  .fmd-archive-main, .fmd-page-main, .fmd-single-main { padding-top: 24px; }
  .fmd-category-hero { align-items: flex-start; padding: 22px; }
  .fmd-category-hero-icon { width: 54px; height: 54px; }
  .fmd-category-hero-icon svg { width: 26px; height: 26px; }
  .fmd-article-title { font-size: 34px; }
  .fmd-copy-link { margin-left: 0; }
  .fmd-footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .fmd-footer-brand { grid-column: 1 / -1; }
  .fmd-footer-grid > div:last-child { grid-column: auto; }
  .fmd-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .fmd-brand .custom-logo, .fmd-default-logo { max-width: 185px; max-height: 44px; }
  .fmd-category-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .fmd-category-name { font-size: 11px; }
  .fmd-footer-grid { grid-template-columns: 1fr; }
  .fmd-footer-grid > div:last-child { grid-column: auto; }
}


/* Article reference layout v1.1 */
.fmd-article-shell { max-width: 1120px; }
.fmd-reference-article-layout { grid-template-columns: minmax(0, 760px) minmax(260px, 310px); gap: 34px; justify-content: center; }
.fmd-reference-article { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.fmd-reference-category { margin-bottom: 12px; }
.fmd-reference-article .fmd-article-title { max-width: 760px; margin-bottom: 14px; font-size: clamp(34px,4.2vw,46px); line-height: 1.08; }
.fmd-reference-meta { margin-bottom: 12px; padding-bottom: 14px; }
.fmd-article-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.fmd-article-actions a, .fmd-article-actions .fmd-copy-link { display: inline-flex; align-items: center; min-height: 30px; margin: 0; padding: 6px 10px; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; color: #475569; font-size: 10px; font-weight: 750; cursor: pointer; }
.fmd-article-actions a:hover, .fmd-article-actions .fmd-copy-link:hover { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.fmd-problem-glance { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin: 0 0 22px; padding: 15px 17px; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; color: #78350f; }
.fmd-glance-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #f59e0b; color: #fff; font-size: 13px; font-weight: 900; }
.fmd-problem-glance h2 { margin: 0 0 4px; color: #92400e; font-size: 13px; line-height: 1.3; }
.fmd-problem-glance p { margin: 0; color: #78521c; font-size: 12px; line-height: 1.65; }
.fmd-article-cover { width: 100%; min-height: 310px; margin: 0 0 8px; overflow: hidden; border-radius: 8px; background: #111827; }
.fmd-article-cover img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; display: block; border-radius: 0; }
.fmd-article-cover-placeholder { display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.18), transparent 32%), linear-gradient(145deg,#0b1220,#111827 62%,#172554); color: #fff; text-align: center; }
.fmd-article-cover-placeholder span { max-width: 560px; font-size: clamp(18px,2.5vw,27px); font-weight: 800; line-height: 1.25; }
.fmd-reference-sidebar { top: 92px; gap: 16px; }
.fmd-reference-sidebar .fmd-sidebar-box { padding: 16px; border-radius: 10px; }
.fmd-reference-sidebar .fmd-sidebar-box h2 { font-size: 11px; letter-spacing: .04em; text-transform: none; }
.fmd-reference-sidebar .fmd-toc-list { padding-left: 17px; font-size: 10px; line-height: 1.45; }
.fmd-reference-sidebar .fmd-toc-list li + li { margin-top: 6px; }
.fmd-newsletter-box { padding: 20px; border-radius: 11px; background: linear-gradient(145deg,#047857,#0f766e); color: #ecfdf5; box-shadow: 0 10px 24px rgba(4,120,87,.16); }
.fmd-newsletter-mark { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 9px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-weight: 900; }
.fmd-newsletter-box h2 { margin: 0 0 7px; color: #fff; font-size: 15px; }
.fmd-newsletter-box p { margin: 0 0 13px; color: #d1fae5; font-size: 11px; line-height: 1.6; }
.fmd-newsletter-button { display: block; padding: 9px 11px; border-radius: 7px; background: #fff; color: #047857; text-align: center; font-size: 10px; font-weight: 850; }
.fmd-newsletter-button:hover { background: #ecfdf5; color: #065f46; }
.fmd-compact-hubs .fmd-sidebar-categories a { padding: 6px 7px; font-size: 10px; }
.fmd-compact-hubs .fmd-sidebar-categories svg { width: 14px; height: 14px; }
.fmd-reference-article .fmd-entry-content { margin-top: 24px; }
.fmd-reference-article .fmd-entry-content h2 { margin: 34px 0 13px; padding-bottom: 9px; border-bottom: 1px solid #dbe3ee; font-size: 23px; }
.fmd-reference-article .fmd-entry-content h3 { font-size: 17px; }
.fmd-reference-article .fmd-entry-content p, .fmd-reference-article .fmd-entry-content li { font-size: 14px; line-height: 1.7; }
.fmd-solution-card { position: relative; margin: 12px 0; padding: 17px 18px 15px 48px; border: 1px solid #dbe3ee; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.025); }
.fmd-solution-card > h2:first-of-type,
.fmd-solution-card > h3:first-of-type { margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; line-height: 1.35; }
.fmd-solution-step { position: absolute; left: 15px; top: 16px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; background: #0f9f8f; color: #fff; font-size: 10px; font-weight: 900; }
.fmd-solution-card p, .fmd-solution-card li { font-size: 12px !important; line-height: 1.65 !important; }
.fmd-solution-card ul, .fmd-solution-card ol { margin-top: 8px; }
.fmd-solution-card blockquote { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #99f6e4; border-left: 3px solid #14b8a6; border-radius: 6px; background: #f0fdfa; color: #115e59; }
.fmd-solution-card blockquote p { color: inherit; }
.fmd-reference-article .wp-block-separator { border-color: #e2e8f0; }
@media (max-width: 980px) {
  .fmd-reference-article-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 24px; }
}
@media (max-width: 760px) {
  .fmd-reference-article-layout { grid-template-columns: 1fr; }
  .fmd-reference-sidebar { position: static; }
  .fmd-reference-article .fmd-article-title { font-size: 34px; }
  .fmd-article-cover, .fmd-article-cover img { min-height: 220px; }
  .fmd-solution-card { padding-left: 46px; }
}

/* =========================================================
   FixMyDigital 2.0 — AI Studio parity / full publishing UI
   ========================================================= */

/* Homepage stream + sidebar */
.fmd-featured-section { padding: 0 0 34px; }
.fmd-ai-featured-card { margin-top: 0; }
.fmd-home-stream-section { padding: 6px 0 64px; }
.fmd-home-stream-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.fmd-stream-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--fmd-border); }
.fmd-stream-heading h2 { margin: 2px 0 0; font-size: 17px; text-transform: uppercase; letter-spacing: .05em; }
.fmd-post-stream { display: grid; gap: 14px; }
.fmd-post-row { padding: 19px 20px; border: 1px solid var(--fmd-border); border-radius: 14px; background: #fff; box-shadow: 0 2px 9px rgba(15,23,42,.025); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.fmd-post-row:hover { transform: translateY(-2px); border-color: #bfdbfe; box-shadow: 0 10px 24px rgba(37,99,235,.06); }
.fmd-post-row-top, .fmd-post-row-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fmd-post-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #94a3b8; font-size: 11px; }
.fmd-row-category { display: inline-flex; align-items: center; gap: 5px; color: #475569; font-weight: 750; }
.fmd-row-category span { width: 17px; height: 17px; color: var(--fmd-blue); }
.fmd-row-category svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fmd-post-row h3 { margin: 10px 0 7px; font-size: 20px; line-height: 1.28; letter-spacing: -.015em; }
.fmd-post-row h3 a { color: var(--fmd-text); }
.fmd-post-row h3 a:hover { color: var(--fmd-blue); }
.fmd-post-row-excerpt p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.65; }
.fmd-post-row-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f1f5f9; color: #94a3b8; font-size: 11px; }
.fmd-post-row-footer a { font-size: 11px; font-weight: 800; }
.fmd-feed-ad { margin: 4px 0; }

.fmd-home-sidebar { display: grid; gap: 18px; position: sticky; top: 98px; }
.fmd-sidebar-widget { padding: 18px; border: 1px solid var(--fmd-border); border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.035); }
.fmd-widget-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fmd-widget-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #eff6ff; font-size: 13px; }
.fmd-widget-heading h3 { margin: 0; color: #0f172a; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.fmd-instant-checklist > p { margin: 0 0 12px; color: #64748b; font-size: 12px; line-height: 1.6; }
.fmd-instant-checklist ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: fmd-check; }
.fmd-instant-checklist li { position: relative; padding-left: 27px; color: #475569; font-size: 11px; line-height: 1.55; counter-increment: fmd-check; }
.fmd-instant-checklist li::before { content: counter(fmd-check); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-size: 9px; font-weight: 900; }
.fmd-popular-list { display: grid; gap: 12px; }
.fmd-popular-item { display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; color: #334155; }
.fmd-popular-rank { color: #94a3b8; font: 800 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.fmd-popular-item strong { display: block; color: #334155; font-size: 11px; line-height: 1.45; }
.fmd-popular-item:hover strong { color: var(--fmd-blue); }
.fmd-popular-item small { display: block; margin-top: 2px; color: #94a3b8; font-size: 9px; }
.fmd-help-sidebar-card { padding: 20px; border: 1px solid rgba(59,130,246,.28); border-radius: 14px; background: linear-gradient(145deg,#172554,#312e81 60%,#0f172a); color: #e2e8f0; box-shadow: 0 12px 25px rgba(30,41,59,.12); }
.fmd-help-shield { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(96,165,250,.18); color: #93c5fd; font-weight: 900; }
.fmd-help-sidebar-card h3 { margin: 10px 0 6px; color: #fff; font-size: 15px; }
.fmd-help-sidebar-card p { margin: 0 0 13px; color: #cbd5e1; font-size: 11px; line-height: 1.65; }
.fmd-help-sidebar-card a { display: block; padding: 9px 11px; border-radius: 8px; background: #2563eb; color: #fff; text-align: center; font-size: 11px; font-weight: 850; }
.fmd-help-sidebar-card a:hover { background: #3b82f6; color: #fff; }
.fmd-home-footer-ad { margin-bottom: 36px; }

/* Social profile icons */
.fmd-footer-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fmd-footer-email { color: #94a3b8; font-size: 11px; }
.fmd-footer-email:hover { color: #bfdbfe; }
.fmd-social-profiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fmd-social-profiles a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #334155; border-radius: 9px; background: #1e293b; color: #cbd5e1; transition: .18s ease; }
.fmd-social-profiles a:hover { border-color: #60a5fa; background: #172554; color: #93c5fd; transform: translateY(-2px); }
.fmd-social-profiles svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fmd-social-profiles a:first-child svg, .fmd-social-profiles a:nth-child(4) svg { fill: currentColor; stroke: none; }
.fmd-footer-grid-wide { grid-template-columns: minmax(0,2.1fr) repeat(3,minmax(0,1fr)); }
.fmd-footer-bottom-actions { display: flex; align-items: center; gap: 16px; }
.fmd-lightweight-note { color: #34d399; }

/* Article share bar */
.fmd-reference-meta small { color: #94a3b8; font-weight: 500; }
.fmd-share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.fmd-share-label { color: #64748b; font-size: 10px; font-weight: 800; }
.fmd-share-row a, .fmd-share-row button { width: 31px; height: 31px; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid #dbe3ee; border-radius: 7px; background: #fff; color: #64748b; cursor: pointer; transition: .15s ease; }
.fmd-share-row a:hover, .fmd-share-row button:hover { transform: translateY(-1px); border-color: #bfdbfe; background: #eff6ff; color: #2563eb; }
.fmd-share-row svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fmd-share-row .share-facebook svg, .fmd-share-row .share-x svg { fill: currentColor; stroke: none; }
.fmd-author-box { padding: 17px; border: 1px solid var(--fmd-border); border-radius: 11px; background: #fff; }
.fmd-author-box-top { display: flex; align-items: center; gap: 10px; }
.fmd-author-box-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #2563eb; color: #fff; font-size: 13px; font-weight: 900; }
.fmd-author-box h2 { margin: 0; font-size: 12px; }
.fmd-author-box-top p { margin: 1px 0 0; color: #94a3b8; font-size: 10px; }
.fmd-author-box-copy { margin: 12px 0 10px; color: #64748b; font-size: 10px; line-height: 1.65; }
.fmd-author-box > a { font-size: 10px; font-weight: 800; }

/* Gutenberg content extras */
.fmd-article-content pre, .fmd-article-content .wp-block-code { overflow-x: auto; padding: 14px 16px; border-radius: 9px; background: #0f172a; color: #d1fae5; font-size: 12px; line-height: 1.6; }
.fmd-article-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.fmd-article-content p code, .fmd-article-content li code { padding: 2px 5px; border-radius: 4px; background: #f1f5f9; color: #0f766e; font-size: .9em; }
.fmd-article-content blockquote:not(.wp-block-quote) { margin: 16px 0; padding: 12px 14px; border-left: 3px solid #14b8a6; background: #f0fdfa; color: #115e59; }
.fmd-article-content .wp-block-quote { margin: 15px 0; padding: 11px 13px; border: 1px solid #99f6e4; border-left: 3px solid #14b8a6; border-radius: 7px; background: #f0fdfa; color: #115e59; }
.fmd-article-content .wp-block-details { margin: 10px 0; padding: 13px 15px; border: 1px solid #dbe3ee; border-radius: 9px; background: #fff; }
.fmd-article-content .wp-block-details summary { cursor: pointer; color: #0f172a; font-weight: 800; }
.fmd-article-content .wp-block-details p { margin-bottom: 0; }

/* WordPress comments */
.comments-area { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--fmd-border); }
.comments-title, .comment-reply-title { margin: 0 0 16px; font-size: 20px; }
.comment-list { margin: 0 0 24px; padding: 0; list-style: none; }
.comment-list .comment-body { margin-bottom: 12px; padding: 14px; border: 1px solid var(--fmd-border); border-radius: 10px; background: #f8fafc; }
.comment-meta { color: #64748b; font-size: 11px; }
.comment-content { color: #475569; font-size: 13px; }
.comment-form { display: grid; gap: 10px; }
.comment-form p { margin: 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.comment-form .submit { border: 0; border-radius: 8px; background: var(--fmd-blue); color: #fff; padding: 10px 16px; font-weight: 800; }

/* WPForms Lite styling */
.wpforms-container .wpforms-field input, .wpforms-container .wpforms-field textarea, .wpforms-container .wpforms-field select { border: 1px solid #cbd5e1 !important; border-radius: 8px !important; background: #fff !important; }
.wpforms-container .wpforms-submit { border: 0 !important; border-radius: 8px !important; background: var(--fmd-blue) !important; color: #fff !important; font-weight: 800 !important; }

@media (max-width: 1080px) {
  .fmd-home-stream-grid { grid-template-columns: minmax(0,1.65fr) minmax(260px,1fr); gap: 24px; }
  .fmd-footer-grid-wide { grid-template-columns: 2fr 1fr 1fr; }
  .fmd-footer-grid-wide > div:last-child { grid-column: 2 / span 2; }
}
@media (max-width: 860px) {
  .fmd-home-stream-grid { grid-template-columns: 1fr; }
  .fmd-home-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fmd-home-sidebar > *:first-child, .fmd-help-sidebar-card { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .fmd-post-row-top, .fmd-post-row-footer { align-items: flex-start; }
  .fmd-post-row-top { flex-direction: column; }
  .fmd-post-row h3 { font-size: 18px; }
  .fmd-home-sidebar { grid-template-columns: 1fr; }
  .fmd-home-sidebar > * { grid-column: auto !important; }
  .fmd-footer-grid-wide { grid-template-columns: 1fr 1fr; }
  .fmd-footer-grid-wide > div:last-child { grid-column: auto; }
  .fmd-footer-brand { grid-column: 1 / -1; }
  .fmd-footer-bottom-actions { flex-direction: column; align-items: flex-start; gap: 7px; }
}
@media (max-width: 430px) {
  .fmd-footer-grid-wide { grid-template-columns: 1fr; }
  .fmd-footer-brand { grid-column: auto; }
  .fmd-share-row { gap: 6px; }
}
.fmd-share-row .is-copied { border-color:#86efac; background:#ecfdf5; color:#059669; }


/* v2.0.4 scalable category navigation + directory */
.fmd-auto-menu .fmd-category-dropdown {
  width: min(620px, calc(100vw - 32px));
  max-height: 430px;
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 10px;
}
.fmd-auto-menu .fmd-category-dropdown li { min-width: 0; }
.fmd-auto-menu .fmd-category-dropdown a { display: flex; align-items: center; gap: 9px; min-height: 40px; }
.fmd-menu-category-icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #eff6ff; color: #2563eb; }
.fmd-menu-category-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fmd-menu-all-categories { grid-column: 1 / -1; border-top: 1px solid var(--fmd-border); margin-top: 4px; padding-top: 5px; }
.fmd-menu-all-categories a { justify-content: center; color: var(--fmd-blue) !important; font-weight: 800 !important; }

/* Keep homepage categories in one professional row; more categories scroll horizontally instead of creating endless rows. */
.fmd-category-grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 1fr);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
  padding: 4px 2px 12px;
}
.fmd-category-card { scroll-snap-align: start; }
.fmd-category-grid::-webkit-scrollbar { height: 7px; }
.fmd-category-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.fmd-category-grid::-webkit-scrollbar-track { background: transparent; }

/* Friendly rotating icon palette for category cards, including future categories. */
.fmd-category-card:nth-child(7n+1) .fmd-category-icon { background: #e0e7ff; color: #4f46e5; }
.fmd-category-card:nth-child(7n+2) .fmd-category-icon { background: #e0f2fe; color: #0284c7; }
.fmd-category-card:nth-child(7n+3) .fmd-category-icon { background: #ecfeff; color: #0891b2; }
.fmd-category-card:nth-child(7n+4) .fmd-category-icon { background: #f5f3ff; color: #7c3aed; }
.fmd-category-card:nth-child(7n+5) .fmd-category-icon { background: #dbeafe; color: #2563eb; }
.fmd-category-card:nth-child(7n+6) .fmd-category-icon { background: #fef3c7; color: #d97706; }
.fmd-category-card:nth-child(7n+7) .fmd-category-icon { background: #fce7f3; color: #db2777; }

.fmd-category-directory-hero { padding: 62px 0 26px; background: linear-gradient(180deg,#f8fafc 0%,#fff 100%); border-bottom: 1px solid var(--fmd-border); }
.fmd-category-directory-hero h1 { margin: 5px 0 8px; font-size: clamp(34px,4vw,48px); line-height: 1.1; letter-spacing: -.035em; }
.fmd-category-directory-hero p { margin: 0; color: var(--fmd-muted); max-width: 720px; }
.fmd-category-grid-all { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }

.fmd-footer-grid-compact { grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr); }
.fmd-footer-view-all a { color: #93c5fd !important; font-weight: 750; }

@media (max-width: 860px) {
  .fmd-auto-menu .fmd-category-dropdown { width: auto; max-height: none; display: none; grid-template-columns: 1fr; overflow: visible; }
  .fmd-auto-menu li.is-open > .fmd-category-dropdown { display: grid; }
  .fmd-category-grid { grid-auto-columns: minmax(155px, 42vw); }
  .fmd-category-grid-all { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fmd-footer-grid-compact { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .fmd-category-grid-all { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fmd-footer-grid-compact { grid-template-columns: 1fr 1fr; }
  .fmd-footer-grid-compact > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .fmd-category-grid { grid-auto-columns: minmax(145px, 72vw); }
  .fmd-category-grid-all { grid-template-columns: 1fr 1fr; gap: 9px; }
  .fmd-footer-grid-compact { grid-template-columns: 1fr; }
  .fmd-footer-grid-compact > div:first-child { grid-column: auto; }
}


/* v2.0.5 footer cleanup + reliable category directory */
html { scroll-behavior: smooth; }
.fmd-footer-brand p {
  max-width: 360px;
  margin: 14px 0 8px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.65;
}
.fmd-footer-bottom-actions { margin-left: auto; }
.fmd-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: #172033;
  color: #dbeafe !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.fmd-back-top:hover {
  background: #1d4ed8;
  border-color: #3b82f6;
  color: #fff !important;
  transform: translateY(-1px);
}
@media (max-width: 700px) {
  .fmd-footer-bottom-actions { margin-left: 0; }
}


/* v2.0.7: uploaded category icon images */
.fmd-category-icon-image,
.fmd-category-icon img,
.fmd-category-hero-icon img,
.fmd-card-category-icon img,
.fmd-article-category img,
.fmd-sidebar-categories img,
.fmd-menu-category-icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.fmd-category-icon img { padding: 7px; }
.fmd-category-hero-icon img { padding: 10px; }
.fmd-menu-category-icon img { padding: 4px; }
.fmd-card-category-icon img { padding: 2px; }
.fmd-article-category img { width: 16px; height: 16px; }
.fmd-sidebar-categories img { width: 20px; height: 20px; }


/* v2.0.8: compact, balanced professional footer */
.fmd-site-footer {
  margin-top: 28px;
  padding: 34px 0 16px;
}
.fmd-footer-grid-compact {
  grid-template-columns: minmax(0,1.35fr) minmax(210px,.9fr) minmax(210px,.9fr);
  gap: 54px;
  align-items: start;
  padding-bottom: 22px;
}
.fmd-footer-logo-wrap { margin-bottom: 8px; }
.fmd-footer-brand p {
  max-width: 330px;
  margin: 8px 0 10px;
  font-size: 11.5px;
  line-height: 1.55;
}
.fmd-footer-contact-row {
  margin-top: 2px;
  gap: 12px;
}
.fmd-footer-contact { margin-top: 0; font-size: 11.5px; }
.fmd-social-profiles { margin-top: 13px; }
.fmd-site-footer h3 { margin: 2px 0 12px; }
.fmd-site-footer li + li { margin-top: 6px; }
.fmd-site-footer li a { font-size: 11.5px; line-height: 1.45; }
.fmd-ad-disclosure {
  padding: 11px 0;
  font-size: 9.5px;
  line-height: 1.55;
}
.fmd-footer-bottom {
  padding-top: 14px;
  min-height: 44px;
  font-size: 10.5px;
}
.fmd-back-top {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 10.5px;
}
@media (max-width: 900px) {
  .fmd-footer-grid-compact {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .fmd-site-footer { padding-top: 30px; }
  .fmd-footer-grid-compact {
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
  }
  .fmd-footer-grid-compact > div:first-child { grid-column: 1 / -1; }
  .fmd-footer-bottom { align-items: center; flex-direction: row; }
  .fmd-footer-bottom-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .fmd-footer-grid-compact { grid-template-columns: 1fr; gap: 24px; }
  .fmd-footer-grid-compact > div:first-child { grid-column: auto; }
  .fmd-ad-disclosure { font-size: 9px; }
  .fmd-footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fmd-footer-bottom-actions { margin-left: 0; }
}


/* v2.1.0 lightweight category carousel, compact footer, contact form */
.fmd-category-carousel { position: relative; }
.fmd-category-carousel .fmd-category-grid {
  grid-auto-columns: clamp(174px, 16.5vw, 192px);
  gap: 14px;
  padding: 4px 42px 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.fmd-category-carousel .fmd-category-grid::-webkit-scrollbar { display: none; }
.fmd-carousel-button {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #1e3a8a;
  box-shadow: 0 8px 22px rgba(15,23,42,.12);
  display: none;
  place-items: center;
  font: 800 25px/1 system-ui,sans-serif;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}
.fmd-category-carousel.is-scrollable .fmd-carousel-button { display: grid; }
.fmd-carousel-prev { left: 2px; }
.fmd-carousel-next { right: 2px; }
.fmd-carousel-button:hover { background: #eff6ff; transform: scale(1.04); }
.fmd-carousel-button:disabled { opacity: .3; cursor: default; transform: none; }
.fmd-category-carousel .fmd-category-card { min-height: 154px; }

/* More balanced footer: brand + categories + company + legal. */
.fmd-site-footer { padding: 30px 0 14px; }
.fmd-footer-grid-compact {
  grid-template-columns: minmax(280px,1.45fr) minmax(180px,.9fr) minmax(140px,.65fr) minmax(180px,.8fr);
  gap: 34px;
  padding-bottom: 18px;
}
.fmd-footer-grid-compact ul { margin: 0; padding: 0; }
.fmd-footer-grid-compact h3 { margin-bottom: 10px; }
.fmd-footer-brand p { margin: 7px 0 8px; }
.fmd-footer-contact-row { margin-bottom: 0; }
.fmd-footer-social-block { margin-top: 14px; }
.fmd-footer-social-label { display: block; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fmd-footer-social-block .fmd-social-profiles { margin-top: 8px; }
.fmd-ad-disclosure { margin-top: 0; }
.fmd-footer-bottom { padding-top: 12px; }

/* Contact page */
.fmd-contact-hero { padding: 68px 0 38px; background: linear-gradient(180deg,#f8fafc 0%,#fff 100%); border-bottom: 1px solid var(--fmd-border); }
.fmd-contact-hero h1 { margin: 7px 0 10px; font-size: clamp(36px,5vw,54px); line-height: 1.08; letter-spacing: -.04em; }
.fmd-contact-hero p { max-width: 760px; margin: 0; color: var(--fmd-muted); font-size: 17px; }
.fmd-contact-section { padding: 44px 0 70px; }
.fmd-contact-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.7fr); gap: 28px; align-items: start; }
.fmd-contact-form-card, .fmd-contact-info-card { background: #fff; border: 1px solid var(--fmd-border); border-radius: 18px; box-shadow: 0 10px 28px rgba(15,23,42,.045); }
.fmd-contact-form-card { padding: 28px; }
.fmd-contact-info-card { padding: 22px; }
.fmd-contact-info-card + .fmd-contact-info-card { margin-top: 18px; }
.fmd-contact-info-card h2 { margin: 0 0 12px; font-size: 20px; }
.fmd-contact-info-card ul { margin: 0; padding-left: 19px; color: #475569; }
.fmd-contact-info-card li + li { margin-top: 8px; }
.fmd-contact-form { display: grid; gap: 17px; }
.fmd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fmd-contact-form label { display: grid; gap: 7px; color: #1e293b; font-size: 13px; font-weight: 750; }
.fmd-contact-form input, .fmd-contact-form textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; padding: 12px 13px; font: inherit; font-weight: 450; outline: none; }
.fmd-contact-form input:focus, .fmd-contact-form textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.fmd-contact-form textarea { resize: vertical; min-height: 170px; }
.fmd-contact-submit { justify-self: start; border: 0; border-radius: 10px; background: #2563eb; color: #fff; min-height: 46px; padding: 0 20px; font-weight: 800; cursor: pointer; }
.fmd-contact-submit:hover { background: #1d4ed8; }
.fmd-form-privacy { margin: -4px 0 0; color: #64748b; font-size: 11px; }
.fmd-form-notice { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.fmd-form-notice.is-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.fmd-form-notice.is-error { background: #fff1f2; border: 1px solid #fecdd3; color: #be123c; }
.fmd-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.fmd-contact-socials a { color: #1d4ed8; background: #eff6ff; border-color: #dbeafe; }

@media (max-width: 980px) {
  .fmd-footer-grid-compact { grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
  .fmd-footer-grid-compact > div:last-child { grid-column: 2 / span 2; }
  .fmd-contact-grid { grid-template-columns: 1fr; }
  .fmd-contact-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .fmd-contact-info-card + .fmd-contact-info-card { margin-top: 0; }
}
@media (max-width: 720px) {
  .fmd-category-carousel .fmd-category-grid { padding-left: 4px; padding-right: 4px; grid-auto-columns: minmax(155px, 70vw); }
  .fmd-carousel-button { display: none !important; }
  .fmd-footer-grid-compact { grid-template-columns: 1fr 1fr; }
  .fmd-footer-grid-compact > div:first-child { grid-column: 1 / -1; }
  .fmd-footer-grid-compact > div:last-child { grid-column: auto; }
  .fmd-form-row { grid-template-columns: 1fr; }
  .fmd-contact-aside { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fmd-footer-grid-compact { grid-template-columns: 1fr; gap: 20px; }
  .fmd-footer-grid-compact > div:first-child { grid-column: auto; }
  .fmd-contact-hero { padding-top: 46px; }
  .fmd-contact-section { padding-top: 28px; }
  .fmd-contact-form-card { padding: 20px; }
}


/* v2.2.0 professional configurable footer */
.fmd-site-footer-pro {
  margin-top: 24px;
  padding: 34px 0 16px;
  background: var(--fmd-footer-bg, #0f172a);
  color: var(--fmd-footer-text, #94a3b8);
  border-top: 1px solid rgba(148,163,184,.12);
}
.fmd-footer-grid-pro {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148,163,184,.14);
}
.fmd-site-footer-pro .fmd-footer-brand { min-width: 0; }
.fmd-site-footer-pro .fmd-footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #fff;
  text-decoration: none;
}
.fmd-footer-logo-image {
  display: block;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}
.fmd-site-footer-pro .fmd-footer-description {
  max-width: 390px;
  margin: 10px 0 10px;
  color: var(--fmd-footer-text, #94a3b8);
  font-size: 12.5px;
  line-height: 1.65;
}
.fmd-site-footer-pro .fmd-footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
}
.fmd-site-footer-pro .fmd-footer-contact,
.fmd-site-footer-pro .fmd-footer-email,
.fmd-site-footer-pro .fmd-footer-view-all a {
  color: var(--fmd-footer-link, #bfdbfe) !important;
}
.fmd-site-footer-pro .fmd-footer-contact { font-weight: 800; }
.fmd-site-footer-pro .fmd-footer-social-block { margin-top: 16px; }
.fmd-site-footer-pro .fmd-footer-social-label {
  display: block;
  margin-bottom: 8px;
  color: var(--fmd-footer-text, #94a3b8);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fmd-site-footer-pro .fmd-social-profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.fmd-site-footer-pro .fmd-social-profiles a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--fmd-footer-link, #bfdbfe);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(148,163,184,.16);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.fmd-site-footer-pro .fmd-social-profiles a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(191,219,254,.38);
}
.fmd-site-footer-pro .fmd-social-profiles svg { width: 16px; height: 16px; }
.fmd-site-footer-pro .fmd-footer-nav h3 {
  margin: 3px 0 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fmd-site-footer-pro .fmd-footer-nav ul { list-style: none; margin: 0; padding: 0; }
.fmd-site-footer-pro .fmd-footer-nav li + li { margin-top: 7px; }
.fmd-site-footer-pro .fmd-footer-nav a {
  color: var(--fmd-footer-text, #94a3b8);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}
.fmd-site-footer-pro .fmd-footer-nav a:hover { color: var(--fmd-footer-link, #bfdbfe); }
.fmd-site-footer-pro .fmd-ad-disclosure {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(148,163,184,.14);
  color: color-mix(in srgb, var(--fmd-footer-text, #94a3b8) 88%, transparent);
  font-size: 10.5px;
  line-height: 1.55;
}
.fmd-site-footer-pro .fmd-ad-disclosure strong { color: #dbeafe; }
.fmd-site-footer-pro .fmd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  color: var(--fmd-footer-text, #94a3b8);
  font-size: 11px;
}
.fmd-site-footer-pro .fmd-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255,255,255,.035);
  font-weight: 800;
  text-decoration: none;
}
.fmd-site-footer-pro .fmd-back-top:hover { color: #fff; border-color: rgba(191,219,254,.42); background: rgba(255,255,255,.075); }

@media (max-width: 920px) {
  .fmd-footer-grid-pro { grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, 1fr)); gap: 26px; }
  .fmd-site-footer-pro .fmd-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .fmd-site-footer-pro { padding-top: 28px; }
  .fmd-footer-grid-pro { grid-template-columns: 1fr 1fr; gap: 24px; }
  .fmd-site-footer-pro .fmd-footer-brand { grid-column: 1 / -1; }
  .fmd-site-footer-pro .fmd-footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 430px) {
  .fmd-footer-grid-pro { grid-template-columns: 1fr; gap: 20px; }
  .fmd-site-footer-pro .fmd-footer-brand { grid-column: auto; }
}

/* ==========================================================
   FixMyDigital editor content blocks (v2.3)
   These classes are used by Gutenberg block styles/patterns.
   ========================================================== */
.fmd-entry-content .is-style-fmd-lead,
.is-style-fmd-lead {
  font-size: 1.14em;
  line-height: 1.75;
  color: #475569;
}

.fmd-entry-content .is-style-fmd-technician-note,
.is-style-fmd-technician-note,
.fmd-entry-content .is-style-fmd-tip,
.is-style-fmd-tip,
.fmd-entry-content .is-style-fmd-warning,
.is-style-fmd-warning,
.fmd-entry-content .is-style-fmd-command-panel,
.is-style-fmd-command-panel,
.fmd-entry-content .is-style-fmd-step-card,
.is-style-fmd-step-card {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 12px;
  box-sizing: border-box;
}

.fmd-entry-content .is-style-fmd-technician-note,
.is-style-fmd-technician-note {
  border: 1px solid #99f6e4;
  border-left: 4px solid #14b8a6;
  background: #f0fdfa;
  color: #115e59;
}
.fmd-entry-content .is-style-fmd-technician-note::before,
.is-style-fmd-technician-note::before {
  content: "Technician Note";
  display: block;
  margin-bottom: 7px;
  color: #0f766e;
  font-weight: 850;
  font-size: 13px;
}

.fmd-entry-content .is-style-fmd-tip,
.is-style-fmd-tip {
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  color: #1e3a8a;
}
.fmd-entry-content .is-style-fmd-tip::before,
.is-style-fmd-tip::before {
  content: "Quick Tip";
  display: block;
  margin-bottom: 7px;
  color: #1d4ed8;
  font-weight: 850;
  font-size: 13px;
}

.fmd-entry-content .is-style-fmd-warning,
.is-style-fmd-warning {
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  color: #78350f;
}
.fmd-entry-content .is-style-fmd-warning::before,
.is-style-fmd-warning::before {
  content: "Important";
  display: block;
  margin-bottom: 7px;
  color: #b45309;
  font-weight: 850;
  font-size: 13px;
}

.fmd-entry-content .is-style-fmd-command-panel,
.is-style-fmd-command-panel {
  border: 1px solid #dbe3ee;
  background: #f8fafc;
}
.fmd-entry-content .is-style-fmd-command-panel > *:first-child,
.is-style-fmd-command-panel > *:first-child { margin-top: 0; }
.fmd-entry-content .is-style-fmd-command-panel > *:last-child,
.is-style-fmd-command-panel > *:last-child { margin-bottom: 0; }
.fmd-entry-content .is-style-fmd-command-panel .wp-block-code,
.is-style-fmd-command-panel .wp-block-code,
.fmd-entry-content .is-style-fmd-terminal,
.is-style-fmd-terminal {
  margin: 9px 0;
  padding: 10px 13px;
  border: 0;
  border-radius: 7px;
  background: #0f172a;
  color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
}
.fmd-entry-content .is-style-fmd-command-panel .wp-block-code code,
.is-style-fmd-command-panel .wp-block-code code,
.fmd-entry-content .is-style-fmd-terminal code,
.is-style-fmd-terminal code { color: inherit; background: transparent; }

.fmd-entry-content .is-style-fmd-step-card,
.is-style-fmd-step-card {
  position: relative;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 7px 22px rgba(15,23,42,.055);
}
.fmd-entry-content .is-style-fmd-step-card h3,
.is-style-fmd-step-card h3 {
  margin-top: 0;
  color: #0f172a;
  font-size: 19px;
}

.fmd-entry-content .is-style-fmd-checklist,
.is-style-fmd-checklist {
  padding-left: 0;
  list-style: none;
}
.fmd-entry-content .is-style-fmd-checklist li,
.is-style-fmd-checklist li {
  position: relative;
  padding-left: 28px;
}
.fmd-entry-content .is-style-fmd-checklist li::before,
.is-style-fmd-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .05em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
}

.fmd-entry-content .is-style-fmd-screenshot,
.is-style-fmd-screenshot {
  padding: 8px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.fmd-entry-content .is-style-fmd-screenshot img,
.is-style-fmd-screenshot img { border-radius: 8px; }
.fmd-entry-content .is-style-fmd-screenshot figcaption,
.is-style-fmd-screenshot figcaption {
  margin: 8px 4px 2px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.fmd-inline-command {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: #0f172a !important;
  color: #67e8f9 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  white-space: nowrap;
}

/* ==========================================================
   FixMyDigital v2.4 — responsive polish, contact content,
   true logo sizing and professional troubleshooting cards.
   ========================================================== */

/* Header logo width is controlled by the Customizer inline CSS. Keep height proportional. */
.fmd-brand .custom-logo,
.fmd-default-logo { height: auto; max-height: none; object-fit: contain; }

/* Footer logo slider now controls the real rendered width; no hidden max-height cap. */
.fmd-footer-logo-image {
  width: auto;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  object-position: left center;
}

/* Category carousel: true horizontal track instead of squeezing cards on phones/tablets. */
.fmd-category-carousel { overflow: hidden; }
.fmd-category-carousel .fmd-category-grid {
  display: grid;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: clamp(174px, 13.5vw, 194px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 42px;
}
.fmd-category-carousel .fmd-category-card {
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Contact page: content written in Gutenberg appears above the secure form. */
.fmd-contact-page-copy { padding: 30px 0 0; background: #fff; }
.fmd-contact-page-copy-inner {
  max-width: 920px;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}
.fmd-contact-page-copy-inner > *:first-child { margin-top: 0; }
.fmd-contact-page-copy-inner > *:last-child { margin-bottom: 0; }
.fmd-contact-page-copy-inner h2,
.fmd-contact-page-copy-inner h3 { color: #0f172a; }

/* Troubleshooting articles: reference-style step cards with a nested action panel. */
.fmd-solution-card {
  margin: 14px 0;
  padding: 18px 18px 16px 52px;
  border-color: #d7dee8;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(15,23,42,.035);
}
.fmd-solution-step {
  left: 16px;
  top: 17px;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #078b7f;
}
.fmd-solution-card > h3:first-of-type {
  font-size: 16px;
  font-weight: 850;
  color: #172033;
}
.fmd-solution-card > ul,
.fmd-solution-card > ol {
  margin: 10px 0 0;
  padding: 12px 14px 12px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}
.fmd-solution-card > ul li + li,
.fmd-solution-card > ol li + li { margin-top: 4px; }
.fmd-solution-card pre,
.fmd-solution-card .wp-block-code {
  margin: 10px 0 0;
  border-radius: 7px;
}
.fmd-solution-card .is-style-fmd-technician-note,
.fmd-solution-card blockquote {
  margin-top: 12px;
}

/* Tablet: article must not be squeezed beside a sidebar. */
@media (max-width: 920px) {
  .fmd-reference-article-layout { grid-template-columns: minmax(0,1fr) !important; gap: 0; }
  .fmd-reference-sidebar { display: none; }
  .fmd-mobile-toc { display: block; }
  .fmd-category-carousel .fmd-category-grid {
    grid-auto-columns: clamp(190px, 31vw, 235px);
    padding-inline: 38px;
    scroll-padding-inline: 38px;
  }
}

/* Phone: one readable category card with a subtle preview of the next card. */
@media (max-width: 600px) {
  .fmd-category-section { overflow: hidden; }
  .fmd-category-carousel .fmd-category-grid {
    grid-auto-columns: min(78vw, 286px);
    gap: 12px;
    padding: 4px 12px 10px 0;
    scroll-padding-inline: 0;
  }
  .fmd-category-carousel .fmd-category-card { min-height: 166px; }
  .fmd-category-carousel .fmd-carousel-button { display: none !important; }
  .fmd-section-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .fmd-section-heading-row .fmd-text-link { align-self: flex-start; }

  .fmd-reference-article .fmd-article-title { font-size: clamp(30px, 9vw, 36px); }
  .fmd-reference-article .fmd-entry-content p,
  .fmd-reference-article .fmd-entry-content li { font-size: 15px; line-height: 1.75; }
  .fmd-solution-card { padding: 17px 15px 15px 48px; }
  .fmd-solution-step { left: 14px; top: 16px; }
  .fmd-solution-card > ul,
  .fmd-solution-card > ol { padding: 11px 12px 11px 28px; }

  .fmd-footer-logo-image { max-width: min(270px, 82vw) !important; }
}

/* ==========================================================
   FixMyDigital v2.5 — editable contact page, compact footer logo,
   and editor-native content blocks.
   ========================================================== */
.fmd-site-footer-pro .fmd-footer-logo-wrap {
  line-height: 0;
  margin: 0 0 8px;
  align-items: flex-start;
}
.fmd-site-footer-pro .fmd-footer-logo-image { display:block; margin:0; }

.fmd-custom-step-block { position:relative; padding-left:58px !important; }
.fmd-custom-step-number {
  position:absolute;left:16px;top:17px;width:30px;height:30px;border-radius:9px;
  display:grid;place-items:center;background:#0f8a7b;color:#fff;font-weight:900;font-size:14px;
}
.fmd-entry-content .fmd-command-box pre { margin:9px 0; }

@media (max-width: 640px) {
  .fmd-custom-step-block { padding-left:50px !important; }
  .fmd-custom-step-number { left:12px; top:15px; }
}

/* =========================================================
   v2.6.0 — Guide library / category archive redesign
   SEO-friendly category tabs, article grid and pagination
   ========================================================= */
.fmd-guide-library-main { background: #f8fafc; }
.fmd-guide-library-hero {
  padding: 48px 0 28px;
  background: #f8fafc;
  border-bottom: 1px solid var(--fmd-border);
}
.fmd-guide-library-hero h1 {
  margin: 4px 0 8px;
  color: var(--fmd-text);
  font-size: clamp(34px,4vw,50px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.fmd-guide-library-hero p,
.fmd-guide-category-description {
  max-width: 760px;
  margin: 0;
  color: var(--fmd-muted);
  font-size: 14px;
}
.fmd-guide-category-description p { margin: 0; }
.fmd-guide-category-title-row { display: flex; align-items: center; gap: 18px; }
.fmd-guide-category-title-icon {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eff6ff;
  color: var(--fmd-blue);
  border: 1px solid #dbeafe;
}
.fmd-guide-category-title-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.fmd-guide-tabs-section {
  position: relative;
  z-index: 3;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--fmd-border);
}
.fmd-guide-tabs-wrap {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) 36px;
  align-items: center;
  gap: 8px;
}
.fmd-guide-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  padding: 2px 1px;
}
.fmd-guide-tabs::-webkit-scrollbar { display: none; }
.fmd-guide-tab {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.fmd-guide-tab:hover { color: var(--fmd-blue); border-color: #93c5fd; background: #f8fbff; transform: translateY(-1px); }
.fmd-guide-tab.is-active { color: #fff; border-color: var(--fmd-blue); background: var(--fmd-blue); box-shadow: 0 5px 14px rgba(37,99,235,.18); }
.fmd-guide-tab-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.fmd-guide-tab-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fmd-guide-tabs-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(15,23,42,.04);
}
.fmd-guide-tabs-arrow:hover:not(:disabled) { color: #fff; border-color: var(--fmd-blue); background: var(--fmd-blue); }
.fmd-guide-tabs-arrow:disabled { opacity: .35; cursor: default; }

.fmd-guide-library-section { padding: 30px 0 62px; }
.fmd-guide-library-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(270px,300px);
  gap: 28px;
  align-items: start;
}
.fmd-guide-library-content { min-width: 0; }
.fmd-guide-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.fmd-guide-library-heading h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.fmd-guide-result-count { color: #94a3b8; font-size: 11px; white-space: nowrap; }

.fmd-guide-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.fmd-guide-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--fmd-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fmd-guide-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 12px 28px rgba(37,99,235,.08); }
.fmd-guide-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}
.fmd-guide-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.fmd-guide-card:hover .fmd-guide-card-media img { transform: scale(1.025); }
.fmd-guide-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #bfdbfe;
  background: linear-gradient(135deg,#0f172a,#172554 55%,#1e3a8a);
}
.fmd-guide-card-placeholder > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.08); }
.fmd-guide-card-placeholder svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fmd-guide-card-placeholder small { color: #dbeafe; font-size: 10px; font-weight: 750; }
.fmd-guide-card-body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 14px; }
.fmd-guide-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #94a3b8; font-size: 9px; }
.fmd-guide-card-meta a { color: #64748b; font-weight: 750; }
.fmd-guide-card-meta a:hover { color: var(--fmd-blue); }
.fmd-guide-card h2 { margin: 9px 0 7px; font-size: 16px; line-height: 1.34; letter-spacing: -.015em; }
.fmd-guide-card h2 a { color: #0f172a; }
.fmd-guide-card h2 a:hover { color: var(--fmd-blue); }
.fmd-guide-card-body > p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.65; }
.fmd-guide-card-footer { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f1f5f9; color: #94a3b8; font-size: 9px; }
.fmd-guide-card-footer a { color: var(--fmd-blue); font-size: 10px; font-weight: 800; }

.fmd-guide-library-sidebar { position: sticky; top: 100px; display: grid; gap: 16px; }
.admin-bar .fmd-guide-library-sidebar { top: 132px; }
.fmd-guide-sidebar-category-list { max-height: 390px; overflow-y: auto; display: grid; gap: 3px; padding-right: 3px; scrollbar-width: thin; }
.fmd-guide-sidebar-category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 7px 8px; border-radius: 7px; color: #475569; font-size: 10px; }
.fmd-guide-sidebar-category-list a:hover,
.fmd-guide-sidebar-category-list a.is-active { color: #1d4ed8; background: #eff6ff; }
.fmd-guide-sidebar-category-list strong { min-width: 24px; color: #94a3b8; text-align: right; font-size: 9px; }
.fmd-guide-sidebar-category-list a.is-active strong { color: #2563eb; }

.fmd-guide-pagination { margin-top: 24px; }
.fmd-guide-pagination .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fmd-guide-pagination > .page-numbers,
.fmd-guide-pagination .page-numbers > .page-numbers { display: inline-flex; }
.fmd-guide-pagination a.page-numbers,
.fmd-guide-pagination span.page-numbers {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid var(--fmd-border);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 10px;
  font-weight: 750;
}
.fmd-guide-pagination a.page-numbers:hover { border-color: #93c5fd; color: var(--fmd-blue); }
.fmd-guide-pagination span.current { color: #fff; border-color: var(--fmd-blue); background: var(--fmd-blue); }

@media (max-width: 980px) {
  .fmd-guide-library-layout { grid-template-columns: 1fr; }
  .fmd-guide-library-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fmd-guide-library-sidebar > *:first-child,
  .fmd-guide-library-sidebar > .fmd-help-sidebar-card { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .fmd-guide-library-hero { padding: 34px 0 22px; }
  .fmd-guide-library-hero h1 { font-size: 34px; }
  .fmd-guide-category-title-row { align-items: flex-start; gap: 13px; }
  .fmd-guide-category-title-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .fmd-guide-category-title-icon svg { width: 25px; height: 25px; }
  .fmd-guide-tabs-wrap { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 6px; }
  .fmd-guide-tabs-arrow { width: 32px; height: 32px; border-radius: 8px; }
  .fmd-guide-tab { min-height: 34px; padding: 7px 10px; font-size: 10px; }
  .fmd-guide-library-section { padding-top: 24px; }
  .fmd-guide-library-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fmd-guide-card-grid { grid-template-columns: 1fr; }
  .fmd-guide-card h2 { font-size: 17px; }
  .fmd-guide-library-sidebar { grid-template-columns: 1fr; }
  .fmd-guide-library-sidebar > * { grid-column: auto !important; }
}
.fmd-guide-tab-icon img { width: 16px; height: 16px; object-fit: contain; display: block; }
.fmd-guide-category-title-icon img { width: 38px; height: 38px; object-fit: contain; display: block; }
.fmd-guide-card-placeholder > span img { width: 28px; height: 28px; object-fit: contain; display: block; }
.fmd-guide-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* ==========================================================
   FixMyDigital v2.9 — production navigation + content IA fixes
   ========================================================== */
.fmd-category-directory-card { min-height: 170px; }
.fmd-category-directory-card .fmd-category-meta { margin-top: 2px; }

@media (max-width: 860px) {
  .fmd-primary-nav { z-index: 50; }
  .fmd-menu [data-mobile-submenu-parent] > a { touch-action: manipulation; }
  .fmd-menu [data-mobile-submenu-parent] > .fmd-submenu-toggle { touch-action: manipulation; }
  .fmd-menu [data-mobile-submenu-parent].is-open > a { background: #eff6ff; color: var(--fmd-blue); }
  .fmd-menu [data-mobile-submenu-parent]:focus-within > .fmd-category-dropdown { display: grid; }
}

@media (max-width: 600px) {
  .fmd-category-grid-all { grid-template-columns: 1fr; }
  .fmd-category-directory-card { min-height: 132px; }
  .fmd-stream-heading { align-items: flex-start; gap: 10px; }
  .fmd-stream-heading .fmd-text-link { flex: 0 0 auto; }
}


/* ==========================================================
   FixMyDigital v3.0.14 — Single responsive TOC + editorial byline cleanup
   Targeted only: article related cards and above-the-fold shell.
   ========================================================== */

/* Keep Related Guides visually secondary to the article itself. */
.fmd-related-section {
  margin-top: 44px;
  padding-top: 6px;
}
.fmd-related-section .fmd-section-heading {
  margin-bottom: 16px;
}
.fmd-related-section .fmd-section-heading h2 {
  font-size: clamp(27px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.fmd-related-section .fmd-post-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.fmd-related-section .fmd-post-card {
  min-height: 250px;
  padding: 20px;
  border-color: #dbe4ef;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fmd-related-section .fmd-post-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .09);
}
.fmd-related-section .fmd-post-card-top {
  min-height: 24px;
}
.fmd-related-section .fmd-card-category {
  padding: 4px 9px;
  font-size: 10px;
}
.fmd-related-section .fmd-card-time {
  font-size: 10px;
}
.fmd-related-section .fmd-card-title {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: -.018em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.fmd-related-section .fmd-card-excerpt {
  font-size: 13px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.fmd-related-section .fmd-card-footer {
  padding-top: 14px;
  font-size: 10px;
}
.fmd-related-section .fmd-read-link {
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .fmd-related-section { margin-top: 34px; }
  .fmd-related-section .fmd-section-heading { margin-bottom: 13px; }
  .fmd-related-section .fmd-section-heading h2 { font-size: 27px; }
  .fmd-related-section .fmd-post-grid { gap: 14px; }
  .fmd-related-section .fmd-post-card {
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
  }
  .fmd-related-section .fmd-card-title {
    margin-top: 11px;
    font-size: 16px;
    line-height: 1.3;
  }
  .fmd-related-section .fmd-card-excerpt {
    font-size: 12.5px;
    line-height: 1.55;
  }
}


/* v3.0.15: audit cleanup — homepage generic checklist removed; authorship and media accessibility hardened. */

/* v3.0.16: advertising disclosure copy cleanup; no layout changes. */

/* v3.0.17: robust live legal-copy cleanup and legacy image-alt repair; no layout changes. */

/* GA4-only fallback. Hidden/omitted automatically when the existing consent
   banner is available. This is not an advertising consent management platform. */
.fmd-consent-fallback[hidden] { display: none !important; }
.fmd-consent-fallback {
  position: fixed; bottom: 20px; left: 20px; z-index: 9999;
  width: min(410px, calc(100vw - 32px)); padding: 18px 20px;
  border: 1px solid var(--fmd-border); border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
  color: var(--fmd-text); background: #fff;
  font-size: 14px; line-height: 1.55;
}
.fmd-consent-heading { display: block; margin-bottom: 8px; font-size: 15px; }
.fmd-consent-copy { margin: 0 0 8px; }
.fmd-consent-privacy { text-decoration: underline; }
.fmd-consent-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.fmd-consent-actions button { padding: 8px 12px; border: 1px solid #2563eb; border-radius: 8px; }
.fmd-consent-reject { background: white; color: #1d4ed8; }
.fmd-consent-accept { background: #2563eb; color: white; }
.fmd-consent-settings {
  position: fixed; left: 12px; bottom: 8px; z-index: 9998;
  border: 1px solid #d5dfef; border-radius: 8px 8px 0 0;
  padding: 4px 9px; font-size: 12px; background: #fff; color: #1e3a8a;
}
@media(max-width:600px) { .fmd-consent-fallback { bottom: 36px; left: 16px; } }
