/*
Theme Name: FixMyDigital
Theme URI: https://fixmydigital.net/
Author: FixMyDigital
Description: Full FixMyDigital troubleshooting blog theme recreated from the AI Studio prototype. Includes responsive category hubs, featured guides, article table of contents, social sharing, social profiles, ad-ready widget areas and Gutenberg-friendly publishing.
Version: 2.0.9
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; }

/* 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; }
.fmd-card-category-icon svg { width: 14px; height: 14px; }
.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; }
.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%; 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 > a { display: flex; width: 100%; justify-content: space-between; }
  .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 > h3:first-of-type { margin: 0 0 8px; padding: 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-guide-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid #a7f3d0; border-radius: 6px; background: #ecfdf5; color: #047857; font-size: 10px; font-weight: 800; white-space: nowrap; }
.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: 980px) {
  .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; }
}
