/* ============================================================
   Flashdecks — lightweight app-style theme stylesheet
   Variables are set at runtime by inc/setup.php (flashdecks-vars).
   ============================================================ */

:root {
  --fdc-primary: #e5322d;
  --fdc-primary-dark: #c9231f;
  --fdc-heading: #101828;
  --fdc-text: #475467;
  --fdc-muted: #667085;
  --fdc-bg: #f7f8fa;
  --fdc-surface: #ffffff;
  --fdc-link: #e5322d;
  --fdc-line: #e6e8ec;
  --fdc-body-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fdc-heading-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fdc-body-size: 16px;
  --fdc-radius: 12px;
  --fdc-radius-sm: 8px;
  --fdc-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --fdc-header-h: 64px;
  --fdc-logo-h: 40px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fdc-body-font);
  font-size: var(--fdc-body-size);
  line-height: 1.6;
  color: var(--fdc-text);
  background: var(--fdc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fdc-link); text-decoration: none; transition: color .15s; }
a:hover { color: var(--fdc-primary-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fdc-heading-font);
  color: var(--fdc-heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button { font-family: inherit; }
::selection { background: var(--fdc-primary); color: #fff; }

/* ---------- Utilities ---------- */
.fdc-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  background: var(--fdc-primary); color: #fff; padding: 10px 16px;
  border-radius: var(--fdc-radius-sm); clip: auto; clip-path: none;
  width: auto; height: auto;
}

/* ---------- Header ---------- */
.fdc-header {
  position: relative;
  z-index: 1000;
  background: var(--fdc-header-bg);
  border-bottom: 1px solid var(--fdc-line);
  transition: box-shadow .2s;
}
.fdc-sticky .fdc-header { position: sticky; top: 0; }
.fdc-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(16, 24, 40, .4); }
.fdc-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--fdc-header-h); }
.fdc-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.fdc-brand a { display: inline-flex; align-items: center; }
.fdc-brand img { max-height: var(--fdc-logo-h); width: auto; }
.fdc-brand__title {
  font-family: var(--fdc-heading-font);
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  color: var(--fdc-heading); white-space: nowrap;
}
.fdc-brand__title:hover { color: var(--fdc-primary); }
.fdc-tagline { font-size: 12.5px; color: var(--fdc-muted); border-left: 1px solid var(--fdc-line); padding-left: 12px; }

/* ---------- Navigation ---------- */
.fdc-nav { display: flex; align-items: center; gap: 16px; }
.fdc-menu { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fdc-menu a {
  display: inline-block; padding: 8px 16px; border-radius: var(--fdc-radius-sm);
  color: var(--fdc-menu-link); font-weight: 500; font-size: var(--fdc-menu-size);
  transition: background .15s, color .15s;
}
.fdc-menu a:hover { background: rgba(16, 24, 40, .05); color: var(--fdc-menu-link-hover); }
.fdc-menu .current-menu-item > a,
.fdc-menu .current_page_item > a { color: var(--fdc-menu-active); font-weight: 600; }
/* Fallback menu links also carry the helper class */
.fdc-menu__link { color: var(--fdc-heading); }

.fdc-nav-toggle {
  display: none; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; padding: 8px;
  border-radius: var(--fdc-radius-sm); color: var(--fdc-heading);
}
.fdc-nav-toggle:hover { background: rgba(16, 24, 40, .05); }
.fdc-nav-toggle .fdc-icon { width: 26px; height: 26px; }
.fdc-nav-toggle__close { display: none; }

/* ---------- Buttons ---------- */
.fdc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--fdc-primary); color: #fff; font-weight: 600; font-size: 15px;
  font-family: var(--fdc-body-font); line-height: 1.2;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 8px 18px -8px var(--fdc-primary);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.fdc-btn:hover { background: var(--fdc-primary-dark); color: #fff; transform: translateY(-1px); }
.fdc-btn--cta { white-space: nowrap; }
.fdc-btn--sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Main / pages ---------- */
.fdc-main { min-height: 62vh; }
.fdc-page { padding-top: 40px; padding-bottom: 88px; }
.fdc-page-header { margin-bottom: 28px; }
.fdc-page-title { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.fdc-page-desc { color: var(--fdc-text); max-width: 680px; margin: 0; }
.fdc-page-query { color: var(--fdc-primary); }
.fdc-search-form { max-width: 420px; margin-top: 16px; }
.fdc-search-form .search-field { width: 100%; padding: 11px 14px; border: 1px solid var(--fdc-line); border-radius: var(--fdc-radius-sm); font-size: 15px; }

/* ---------- Blog grid / post cards ---------- */
.fdc-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fdc-post {
  display: flex; flex-direction: column;
  background: var(--fdc-surface); border: 1px solid var(--fdc-line);
  border-radius: var(--fdc-radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: transform .15s, box-shadow .15s;
}
.fdc-post:hover { transform: translateY(-2px); box-shadow: var(--fdc-shadow); }
.fdc-post__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fdc-post__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fdc-post__title { font-size: 19px; margin: 0; }
.fdc-post__title a { color: var(--fdc-heading); }
.fdc-post__title a:hover { color: var(--fdc-primary); }
.fdc-post__meta { font-size: 13px; color: var(--fdc-muted); }
.fdc-post__excerpt { margin: 0; font-size: 15px; }
.fdc-post .fdc-btn { margin-top: auto; align-self: flex-start; }
.fdc-pagination { margin-top: 36px; }
.fdc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.fdc-pagination .page-numbers {
  min-width: 40px; padding: 9px 13px; text-align: center;
  background: var(--fdc-surface); border: 1px solid var(--fdc-line);
  border-radius: var(--fdc-radius-sm); color: var(--fdc-heading); font-weight: 500;
}
.fdc-pagination .page-numbers.current { background: var(--fdc-primary); border-color: var(--fdc-primary); color: #fff; }

/* ---------- Entry content (pages / posts) ---------- */
.fdc-entry__content { font-size: var(--fdc-body-size); line-height: 1.7; }
.fdc-entry__content h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.5em; }
.fdc-entry__content h3 { font-size: clamp(19px, 2.5vw, 23px); margin-top: 1.3em; }
.fdc-entry__content h4 { font-size: 19px; }
.fdc-entry__content img { border-radius: var(--fdc-radius); }
.fdc-entry__content blockquote {
  margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--fdc-primary);
  background: var(--fdc-surface); border-radius: 0 var(--fdc-radius) var(--fdc-radius) 0;
  color: var(--fdc-heading);
}
.fdc-entry__content blockquote p:last-child { margin-bottom: 0; }
.fdc-entry__content pre, .fdc-entry__content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.fdc-entry__content pre { background: #101828; color: #e6e8ec; padding: 18px; border-radius: var(--fdc-radius); overflow: auto; }
.fdc-entry__content code { background: rgba(16, 24, 40, .06); padding: 2px 6px; border-radius: 4px; }
.fdc-entry__content pre code { background: transparent; padding: 0; }
.fdc-entry__content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.fdc-entry__content th, .fdc-entry__content td { border: 1px solid var(--fdc-line); padding: 10px 14px; text-align: left; }
.fdc-entry__content th { background: var(--fdc-surface); color: var(--fdc-heading); }
.fdc-entry__content .alignleft { float: left; margin: .5em 1.5em 1em 0; }
.fdc-entry__content .alignright { float: right; margin: .5em 0 1em 1.5em; }
.fdc-entry__content .aligncenter { margin-left: auto; margin-right: auto; }
.fdc-entry__content .wp-caption { max-width: 100%; }
.fdc-entry__content .wp-caption-text, .fdc-entry__content figcaption { font-size: 13px; color: var(--fdc-muted); text-align: center; margin-top: 6px; }

.fdc-single__meta { color: var(--fdc-muted); font-size: 14px; margin-top: 8px; }
.fdc-single__thumb { margin: 24px 0; }
.fdc-single__thumb img { width: 100%; border-radius: var(--fdc-radius); }
.fdc-single__tags { margin: 28px 0 8px; }
.fdc-single__tags a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; background: var(--fdc-surface); border: 1px solid var(--fdc-line); border-radius: 999px; font-size: 13px; color: var(--fdc-heading); }
.fdc-single__tags a:hover { border-color: var(--fdc-primary); color: var(--fdc-primary); }

/* ---------- Comments ---------- */
.fdc-comments { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--fdc-line); }
.fdc-comments__title { font-size: 20px; }
.fdc-comments__list { list-style: none; padding: 0; }
.fdc-comments__list .comment-body { background: var(--fdc-surface); border: 1px solid var(--fdc-line); border-radius: var(--fdc-radius); padding: 18px; margin-bottom: 14px; }
.fdc-comments .comment-reply-link { font-size: 14px; }
.fdc-comments .comment-form input[type="text"], .fdc-comments .comment-form input[type="email"], .fdc-comments .comment-form input[type="url"], .fdc-comments .comment-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--fdc-line); border-radius: var(--fdc-radius-sm); font-size: 15px; margin-bottom: 10px; }
.fdc-comments .comment-form .submit { background: var(--fdc-primary); color: #fff; border: 0; padding: 11px 22px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.fdc-comments__closed { color: var(--fdc-muted); }

/* ---------- Footer ---------- */
.fdc-footer { background: var(--fdc-surface); border-top: 1px solid var(--fdc-line); }
.fdc-footer--dark { background: var(--fdc-footer-bg); color: var(--fdc-footer-text); border-top: 0; }
.fdc-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 56px 20px 44px;
}
.fdc-footer--dark .fdc-brand__title { color: var(--fdc-footer-heading); }
.fdc-brand--footer img { max-height: 36px; }
.fdc-footer--dark a { color: var(--fdc-footer-link); }
.fdc-footer--dark a:hover { color: var(--fdc-footer-link-hover); }
.fdc-footer__about { font-size: var(--fdc-footer-size); line-height: 1.6; margin: 14px 0 0; max-width: 300px; }
.fdc-footer__col .widget-title {
  font-size: 14px; margin: 0 0 16px; color: var(--fdc-heading);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.fdc-footer--dark .fdc-footer__col .widget-title { color: var(--fdc-footer-heading); }
.fdc-footer__col ul { list-style: none; margin: 0; padding: 0; }
.fdc-footer__col ul li { margin-bottom: 10px; font-size: var(--fdc-footer-size); }
.fdc-footer__col .widget { margin-bottom: 24px; }
.fdc-footer__col .widget:last-child { margin-bottom: 0; }
.fdc-socials { display: flex; gap: 10px; margin-top: 20px; }
.fdc-socials__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(16, 24, 40, .04); border: 1px solid var(--fdc-line);
  color: var(--fdc-heading);
  transition: color .15s, border-color .15s, transform .15s;
}
.fdc-socials__link:hover { color: var(--fdc-primary); border-color: var(--fdc-primary); transform: translateY(-2px); }
.fdc-footer--dark .fdc-socials__link { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); color: #fff; }
.fdc-footer--dark .fdc-socials__link:hover { color: var(--fdc-primary); border-color: var(--fdc-primary); }
.fdc-footer__bottom { border-top: 1px solid var(--fdc-line); }
.fdc-footer--dark .fdc-footer__bottom { border-top-color: rgba(255, 255, 255, .08); }
.fdc-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.fdc-footer__copy { margin: 0; font-size: var(--fdc-footer-size); }
.fdc-footer--dark .fdc-footer__copy { color: var(--fdc-footer-text); }
.fdc-footer__menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.fdc-footer__menu a { font-size: var(--fdc-footer-size); }

/* ---------- Bottom navigation (mobile app bar) ---------- */
.fdc-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--fdc-line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(16, 24, 40, .06);
}
.fdc-bottomnav__item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px; border-radius: 10px;
  color: var(--fdc-muted); font-size: 11px; font-weight: 500;
  min-width: 64px; transition: color .15s, transform .15s;
}
.fdc-bottomnav__item .fdc-icon { width: 22px; height: 22px; }
.fdc-bottomnav__item:hover { color: var(--fdc-primary); }
.fdc-bottomnav__item.is-active { color: var(--fdc-primary); }
.fdc-bottomnav__item:active { transform: scale(.94); }
body.fdc-has-bottomnav { padding-bottom: 62px; }

/* ---------- Back to top ---------- */
.fdc-to-top {
  position: fixed; right: 18px; bottom: 86px; z-index: 900;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--fdc-line); background: var(--fdc-surface);
  color: var(--fdc-heading); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.fdc-to-top:hover { color: var(--fdc-primary); }
.fdc-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 404 ---------- */
.fdc-page--404 { padding-top: 60px; }
.fdc-404 { text-align: center; padding: 40px 0 70px; }
.fdc-404__code {
  font-family: var(--fdc-heading-font);
  font-size: clamp(72px, 14vw, 140px); font-weight: 800; line-height: 1;
  color: var(--fdc-primary); display: block; margin-bottom: 12px;
}
.fdc-404 p { max-width: 420px; margin: 0 auto 24px; }

/* ---------- Full width / canvas ---------- */
.fdc-full { width: 100%; }
.fdc-entry__content--full { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .fdc-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .fdc-nav-toggle { display: inline-flex; }
  .fdc-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--fdc-surface); border-bottom: 1px solid var(--fdc-line);
    padding: 12px 20px 20px; display: none;
    box-shadow: 0 24px 30px -22px rgba(16, 24, 40, .25);
  }
  body.fdc-nav-open .fdc-nav { display: flex; }
  body.fdc-nav-open .fdc-nav-toggle__open { display: none; }
  body.fdc-nav-open .fdc-nav-toggle__close { display: inline-flex; }
  .fdc-menu { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .fdc-menu a { display: block; padding: 12px 16px; }
  .fdc-btn--cta { margin-top: 10px; }
  .fdc-to-top { bottom: 78px; }
  body.fdc-hide-header-mobile .fdc-header { display: none; }
  body .fdc-cookiebar { bottom: 78px; left: 12px; right: 12px; }
}

@media (min-width: 901px) {
  .fdc-bottomnav { display: none; }
  body.fdc-has-bottomnav { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .fdc-footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 44px 24px 36px; }
  .fdc-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 24px; }
  .fdc-footer__menu { gap: 18px; }
  .fdc-footer__copy { font-size: var(--fdc-footer-size); }
  .fdc-page { padding-top: 28px; }
  .fdc-tagline { display: none; }
}

/* ---------- Cookie consent ---------- */
.fdc-cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--fdc-surface); border: 1px solid var(--fdc-line);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .18);
  opacity: 1; transform: translateY(0);
  transition: opacity .3s, transform .3s;
}
.fdc-cookiebar.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.fdc-cookiebar__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fdc-text); flex: 1 1 260px; }
.fdc-cookiebar__link { font-weight: 600; white-space: nowrap; }
.fdc-cookiebar__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.fdc-cookiebar__btn { border: 0; cursor: pointer; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.fdc-cookiebar__btn--accept { background: var(--fdc-primary); color: #fff; }
.fdc-cookiebar__btn--accept:hover { background: var(--fdc-primary-dark); }
.fdc-cookiebar__btn--decline { background: transparent; color: var(--fdc-text); border: 1px solid var(--fdc-line); }
.fdc-cookiebar__btn--decline:hover { border-color: var(--fdc-primary); color: var(--fdc-primary); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Elementor font alignment ----------
   Elementor's own Google Fonts are disabled for performance, so widgets
   would fall back to the OS sans-serif. Force them onto the theme stack
   (Inter) instead so the whole page stays visually consistent. */
body .elementor-widget .elementor-widget-container,
body .elementor-widget p,
body .elementor-widget .elementor-icon-box-description,
body .elementor-widget .elementor-text-editor,
body .elementor-widget .elementor-counter,
body .elementor-widget .elementor-testimonial-content { font-family: var(--fdc-body-font); }
body .elementor-widget-heading .elementor-heading-title,
body .elementor-widget-icon-box .elementor-icon-box-title,
body .elementor-widget-counter .elementor-counter-title,
body .elementor-widget-testimonial .elementor-testimonial-wrapper,
body .elementor-widget-accordion .elementor-accordion-title,
body .elementor-widget-icon-list .elementor-icon-list-text,
body .elementor-widget-button .elementor-button { font-family: var(--fdc-heading-font); }

/* ---------- Blog: grid + sidebar layout ---------- */
.fdc-blog-layout, .fdc-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.fdc-blog-layout.has-sidebar, .fdc-single-layout.has-sidebar {
  grid-template-columns: minmax(0, 1fr) 300px;
}
@media (max-width: 900px) {
  .fdc-blog-layout.has-sidebar, .fdc-single-layout.has-sidebar { grid-template-columns: 1fr; }
}

/* Post cards — explicit responsive grid */
.fdc-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fdc-blog-layout.has-sidebar .fdc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .fdc-posts, .fdc-blog-layout.has-sidebar .fdc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fdc-posts, .fdc-blog-layout.has-sidebar .fdc-posts { grid-template-columns: 1fr; }
}
.fdc-post { position: relative; }
.fdc-post__thumb { position: relative; display: block; }
.fdc-post__cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-block; max-width: calc(100% - 24px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 11px; border-radius: 999px;
  background: var(--fdc-primary); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.fdc-post__cat--inline { position: static; margin-bottom: 2px; align-self: flex-start; }
.fdc-post__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--fdc-muted); }
.fdc-post__meta a { color: var(--fdc-muted); }
.fdc-post__meta a:hover { color: var(--fdc-primary); }
.fdc-post__sep { color: #c4c9d2; }

/* Related posts */
.fdc-related { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--fdc-line); }
.fdc-related__title { font-size: 22px; margin: 0 0 20px; }

/* Blog sidebar */
.fdc-blog-sidebar { position: sticky; top: 90px; min-width: 0; }
@media (max-width: 900px) { .fdc-blog-sidebar { position: static; } }
.fdc-blog-widget {
  margin-bottom: 16px; padding: 18px;
  background: var(--fdc-surface); border: 1px solid var(--fdc-line);
  border-radius: var(--fdc-radius);
}
.fdc-blog-widget__title {
  margin: 0 0 12px; padding-bottom: 10px;
  font-size: 15px; letter-spacing: -.01em;
  border-bottom: 1px solid var(--fdc-line);
}
.fdc-blog-widget ul { list-style: none; margin: 0; padding: 0; }
.fdc-blog-widget li { margin-bottom: 9px; font-size: 14px; }
.fdc-blog-widget li:last-child { margin-bottom: 0; }
.fdc-blog-widget a { color: var(--fdc-text); }
.fdc-blog-widget a:hover { color: var(--fdc-primary); }
.fdc-blog-widget ul.children { margin: 8px 0 0 14px; }
.fdc-blog-widget select { width: 100%; padding: 9px 11px; border: 1px solid var(--fdc-line); border-radius: var(--fdc-radius-sm); font: inherit; }
.fdc-blog-widget .search-field, .fdc-blog-widget input[type="search"], .fdc-blog-widget input[type="text"] {
  width: 100%; padding: 9px 12px; border: 1px solid var(--fdc-line);
  border-radius: var(--fdc-radius-sm); font: inherit; margin-bottom: 8px;
}
.fdc-blog-widget .search-submit { width: 100%; }
.fdc-blog-widget .wp-block-search__button { margin-top: 8px; }
.fdc-blog-widget .tag-cloud-link {
  display: inline-block; margin: 0 4px 6px 0; padding: 4px 10px;
  border: 1px solid var(--fdc-line); border-radius: 999px; font-size: 12px !important;
  line-height: 1.6;
}

/* ---------- Header flush-to-top guarantee ----------
   Ensures the header/menu bar always sits at the very top edge of the page,
   even if a plugin, theme option or Elementor injects a top margin/offset
   (e.g. a stray strip of empty background above the menu). */
html, body { margin-top: 0 !important; padding-top: 0 !important; }
.fdc-header { top: 0 !important; margin-top: 0 !important; transform: none !important; }

/* Keep the header visible below the WordPress admin bar (logged-in users). */
body.admin-bar .fdc-header { margin-top: 32px !important; }
@media (max-width: 782px) {
  body.admin-bar .fdc-header { margin-top: 46px !important; }
}
