/*
 * KODUNG CMS — Premium Edition / Public Site Design System
 * Applied after legacy page styles by _core/public.php.
 * Preserves original text, imagery, URLs, PHP, analytics and partner credits.
 * CSS-only layout enhancements; the directory search is progressive JS.
 */
:root {
  --bg: #f2f6fa;
  --bg-2: #eaf3fa;
  --ink: #152c43;
  --muted: #557087;
  --navy: #102d49;
  --brand: #146eb8;
  --brand-2: #37a8ea;
  --pink: #bd6ab7;
  --line: #dbe6ee;
  --card: #fff;
  --radius: 18px;
  --radius-sm: 13px;
  --shadow: 0 9px 30px rgba(17, 49, 76, .07);
  --container: min(1416px, calc(100% - clamp(28px, 5.5vw, 88px)));
  --kdc-focus: #1481c7;
}
html { scroll-padding-top: 116px; overflow-x: clip; }
body[data-kdc-premium="1"] {
  color: var(--ink);
  background: linear-gradient(180deg, #eef5fa 0%, #f7fafc 28%, #f3f7fa 72%, #edf3f7 100%);
  line-height: 1.59;
  overflow-x: clip; /* Unlike hidden, clip does not disable sticky headers. */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-kdc-premium="1"] h1,
body[data-kdc-premium="1"] h2,
body[data-kdc-premium="1"] h3 {
  color: #102b45;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
body[data-kdc-premium="1"] h1 { font-size: clamp(2.12rem, 3.45vw, 3.75rem); }
body[data-kdc-premium="1"] h2 { font-size: clamp(1.65rem, 2.45vw, 2.65rem); }
body[data-kdc-premium="1"] h3 { font-size: clamp(1.09rem, 1.42vw, 1.39rem); }
body[data-kdc-premium="1"] p { text-wrap: pretty; }
body[data-kdc-premium="1"] a,
body[data-kdc-premium="1"] button,
body[data-kdc-premium="1"] input { -webkit-tap-highlight-color: transparent; }
body[data-kdc-premium="1"] :is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--kdc-focus);
  outline-offset: 3px;
}
body[data-kdc-premium="1"] :is(.text-gradient) {
  background-image: linear-gradient(110deg, #176db5 6%, #467cce 47%, #b75c9f 97%);
}

/* Compact, confident, sticky navigation */
body[data-kdc-premium="1"] .site-header {
  background: rgba(255,255,255,.955);
  border-bottom: 1px solid rgba(204,220,231,.95);
  box-shadow: 0 3px 22px rgba(18,50,76,.045);
  backdrop-filter: blur(18px) saturate(150%);
}
body[data-kdc-premium="1"] .nav-wrap {
  min-height: 73px;
  gap: 22px;
  padding: 8px 0;
}
body[data-kdc-premium="1"] .brand { gap: 11px; }
body[data-kdc-premium="1"] .brand img {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #dce9f3;
  box-shadow: 0 5px 18px rgba(19,63,99,.09);
}
body[data-kdc-premium="1"] .brand strong { font-size: 1.12rem; font-weight: 800; letter-spacing: -.025em; }
body[data-kdc-premium="1"] .brand small { font-size: .77rem; line-height: 1.4; }
body[data-kdc-premium="1"] .nav { gap: 3px; }
body[data-kdc-premium="1"] .nav a {
  padding: 8px 12px;
  font-weight: 600;
  font-size: .90rem;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
body[data-kdc-premium="1"] .nav a:not(.btn):hover { background: #edf5fb; color: #07578f; }
body[data-kdc-premium="1"] .nav a.btn {
  margin-left: 7px;
  padding: 10px 18px;
  border-radius: 11px;
  color: white;
  background: linear-gradient(120deg, #0e3b63, #176fae);
  box-shadow: 0 5px 13px rgba(15,78,124,.16);
}

/* Global rhythm: less air, greater information density */
body[data-kdc-premium="1"] .section { padding: 39px 0; }
body[data-kdc-premium="1"] .section-title { margin-bottom: 19px; gap: 12px; }
body[data-kdc-premium="1"] .section-title p { max-width: 102ch; }
body[data-kdc-premium="1"] .grid-3,
body[data-kdc-premium="1"] .grid-2,
body[data-kdc-premium="1"] .keyword-grid,
body[data-kdc-premium="1"] .semantic-grid,
body[data-kdc-premium="1"] .faq-grid { gap: 15px; }
body[data-kdc-premium="1"] .review-grid { gap: 12px; }
body[data-kdc-premium="1"] .card,
body[data-kdc-premium="1"] .keyword-card,
body[data-kdc-premium="1"] .review,
body[data-kdc-premium="1"] .mini-article,
body[data-kdc-premium="1"] .article-panel,
body[data-kdc-premium="1"] .faq details {
  padding: 19px 20px;
  border: 1px solid #dce7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 23px rgba(19,55,82,.052);
}
body[data-kdc-premium="1"] .keyword-card {
  position: relative;
  border-top: 3px solid #badcf1;
}
body[data-kdc-premium="1"] .keyword-card h3 { color: #153852; }
body[data-kdc-premium="1"] :is(.keyword-card,.card,.review,.mini-article) p { line-height: 1.7; margin-bottom: 0; }
body[data-kdc-premium="1"] .card:hover,
body[data-kdc-premium="1"] .keyword-card:hover {
  border-color: #a9ccdf;
  box-shadow: 0 11px 26px rgba(24,80,126,.09);
}
body[data-kdc-premium="1"] .icon-box { border-radius: 13px; width: 48px; height: 48px; }
body[data-kdc-premium="1"] .btn,
body[data-kdc-premium="1"] .btn-outline {
  padding: 11px 19px;
  min-height: 46px;
  border-radius: 12px;
  font-size: .98rem;
  box-shadow: 0 7px 18px rgba(24,91,139,.11);
}
body[data-kdc-premium="1"] .btn {
  background: linear-gradient(125deg, #0f5f9f, #217fbc);
}
body[data-kdc-premium="1"] .btn:hover { box-shadow: 0 10px 23px rgba(24,91,139,.2); }
body[data-kdc-premium="1"] .btn-outline { background: #fff; border-color: #bfd5e3; }
body[data-kdc-premium="1"] .check-list { gap: 9px; }
body[data-kdc-premium="1"] .check-list li { padding: 10px 12px; border-radius: 12px; }
body[data-kdc-premium="1"] .check { width: 23px; height: 23px; flex-basis: 23px; }

/* Banner and hero retain original aspect ratio; text is not cropped. */
body[data-kdc-premium="1"] .hero { padding: 17px 0 23px; }
body[data-kdc-premium="1"] .hero-main,
body[data-kdc-premium="1"] .hero-card {
  margin-bottom: 18px;
  padding: 6px;
  background: #fff;
  border-radius: 21px;
  border: 1px solid #d9e5ef;
  box-shadow: 0 14px 36px rgba(16,54,85,.09);
}
body[data-kdc-premium="1"] .hero-main img,
body[data-kdc-premium="1"] .hero-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}
body[data-kdc-premium="1"] .floating-badge {
  right: 20px;
  bottom: 20px;
  padding: 9px 14px;
  background: rgba(10,37,59,.93);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(9,30,48,.22);
}
body[data-kdc-premium="1"] .hero-grid { gap: 12px; }
body[data-kdc-premium="1"] .hero-copy {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: left;
}
body[data-kdc-premium="1"] .hero-copy .eyebrow {
  padding: 7px 12px;
  border: 1px solid #c9e1ef;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 700;
  background: #e9f5fc;
  color: #155d90;
}
body[data-kdc-premium="1"] .hero-copy h1 { max-width: 1260px; margin: 14px 0 9px; }
body[data-kdc-premium="1"] .hero-copy .lead {
  max-width: 95ch;
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.7;
}
body[data-kdc-premium="1"] .hero-copy .hero-actions,
body[data-kdc-premium="1"] .hero-copy .chips { justify-content: flex-start; }
body[data-kdc-premium="1"] .hero-actions { gap: 9px; margin-top: 15px; }
body[data-kdc-premium="1"] .chips { gap: 7px; margin-top: 15px; }
body[data-kdc-premium="1"] .chip {
  padding: 6px 11px;
  font-size: .87rem;
  border-radius: 9px;
  background: #fff;
  border-color: #d8e6ef;
}
body[data-kdc-premium="1"] .marquee {
  gap: 12px;
  margin: 20px auto 0;
}
body[data-kdc-premium="1"] .mini-stat {
  min-height: 104px;
  padding: 16px 15px;
  border: 1px solid #dae6ee;
  border-top: 3px solid #b5dbf0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(20,67,100,.05);
  text-align: left;
  align-items: flex-start;
}
body[data-kdc-premium="1"] .mini-stat strong,
body[data-kdc-premium="1"] .mini-stat span {
  margin: 0;
  max-width: none;
}
body[data-kdc-premium="1"] .mini-stat strong { font-size: 1.08rem; }
body[data-kdc-premium="1"] .mini-stat span { margin-top: 4px; font-size: .91rem; line-height: 1.53; }

/* Wide desktop: image + business message share the first screen.
   Never crop the existing banner artwork, which contains important text. */
@media (min-width: 1150px) {
  body[data-kdc-premium="1"] .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: 16px 23px;
    width: var(--container);
    margin-inline: auto;
    padding: 20px 0 14px;
  }
  body[data-kdc-premium="1"] .hero .hero-main {
    width: 100%;
    margin: 0;
    align-self: center;
  }
  body[data-kdc-premium="1"] .hero .hero-grid {
    width: 100%;
    margin: 0;
    align-self: center;
  }
  body[data-kdc-premium="1"] .hero .hero-copy h1 {
    font-size: clamp(1.98rem, 2.5vw, 3rem);
  }
  body[data-kdc-premium="1"] .hero .hero-copy .lead {
    font-size: .95rem;
    line-height: 1.6;
  }
  body[data-kdc-premium="1"] .hero .hero-copy .eyebrow { font-size: .75rem; }
  body[data-kdc-premium="1"] .hero .hero-copy .chips { gap: 5px; margin-top: 10px; }
  body[data-kdc-premium="1"] .hero .hero-copy .chip { font-size: .8rem; padding: 4px 7px; }
  body[data-kdc-premium="1"] .hero .floating-badge { display: none; } /* Duplicates banner and CTA contact text. */
  body[data-kdc-premium="1"] .hero .marquee {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
}

/* Editorial sections: productive on desktop, readable on mobile */
body[data-kdc-premium="1"] .feature-slab {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #d7e4ee;
  box-shadow: 0 8px 24px rgba(19,55,82,.06);
}
body[data-kdc-premium="1"] .feature-slab img {
  width: 100%; height: auto; max-height: none;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: none;
}
body[data-kdc-premium="1"] .feature-slab > div { padding: 6px 10px; }
body[data-kdc-premium="1"] .steps { gap: 20px; }
body[data-kdc-premium="1"] .steps .visual,
body[data-kdc-premium="1"] .wide-banner { border-radius: 17px; overflow: hidden; }
body[data-kdc-premium="1"] .steps .visual img,
body[data-kdc-premium="1"] .wide-banner img { border-radius: 15px; }
body[data-kdc-premium="1"] .step-list { gap: 9px; }
body[data-kdc-premium="1"] .step { padding: 14px; border-radius: 14px; }
body[data-kdc-premium="1"] .gallery-grid { gap: 14px; }
body[data-kdc-premium="1"] .faq details { padding: 16px 18px; }
body[data-kdc-premium="1"] .faq summary { padding-right: 25px; }
body[data-kdc-premium="1"] .faq details[open] { border-color: #a9cfe7; }
body[data-kdc-premium="1"] .cta-band {
  padding: 24px 26px;
  border-radius: 19px;
  background: linear-gradient(118deg, #0b2842, #125789 90%);
  box-shadow: 0 12px 28px rgba(13,51,84,.14);
}
body[data-kdc-premium="1"] .pill-cloud { gap: 7px; }
body[data-kdc-premium="1"] .pill-cloud span { padding: 7px 11px; font-size: .88rem; }

/* Services directory: enterprise-style split intro and dense, responsive catalogue. */
body[data-kdc-premium="1"] .link-directory-section {
  padding: 30px 0 30px;
  background: linear-gradient(180deg, #edf5fa 0%, #e9f2f8 100%);
  border-top: 1px solid #dae6ed;
}
body[data-kdc-premium="1"] .link-directory-head {
  position: relative;
  max-width: none;
  width: 100%;
  min-height: 186px;
  margin: 0 0 14px;
  padding: 27px 31px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  grid-template-rows: auto auto;
  grid-template-areas: "badge badge" "heading intro";
  align-items: center;
  column-gap: 32px;
  row-gap: 10px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: radial-gradient(circle at 90% 0%, rgba(30,147,196,.24), transparent 32%),
              linear-gradient(118deg, #09243e 0%, #123d62 60%, #164d78 100%);
  border: 1px solid #173f60;
  border-radius: 22px;
  box-shadow: 0 15px 31px rgba(13,42,67,.13);
}
body[data-kdc-premium="1"] .link-directory-head::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -170px;
  bottom: -230px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 105px rgba(255,255,255,.018);
  pointer-events: none;
  z-index: -1;
}
body[data-kdc-premium="1"] .link-directory-head .kicker {
  grid-area: badge;
  margin: 0;
  padding: 5px 11px;
  width: max-content;
  max-width: 100%;
  font-size: .80rem;
  line-height: 1.6;
  font-weight: 600;
  border: 1px solid rgba(137,210,255,.23);
  border-radius: 8px;
  color: #b4e7ff;
  background: rgba(105,190,245,.09);
  box-shadow: none;
}
body[data-kdc-premium="1"] .link-directory-head h2 {
  grid-area: heading;
  max-width: 720px;
  margin: 0;
  color: #f7fbff;
  font-weight: 800;
  font-size: clamp(1.8rem, 2.75vw, 2.7rem);
  line-height: 1.2;
}
body[data-kdc-premium="1"] .link-directory-head h2 .text-gradient {
  color: #85d5ff;
  background: linear-gradient(115deg, #77d9ff, #b5ccff 56%, #e6b5ec);
  -webkit-background-clip: text;
  background-clip: text;
}
body[data-kdc-premium="1"] .link-directory-head p {
  grid-area: intro;
  margin: 0;
  max-width: 58ch;
  color: #c0d4e3;
  font-size: .90rem;
  line-height: 1.73;
}
body[data-kdc-premium="1"] .kdc-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 13px 15px;
  margin: 0 0 13px;
  border: 1px solid #d7e5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(22,64,93,.045);
}
body[data-kdc-premium="1"] .kdc-directory-search {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 770px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #d8e5ee;
  border-radius: 11px;
  background: #f7fafc;
  color: #667f93;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
body[data-kdc-premium="1"] .kdc-directory-search:focus-within {
  border-color: #87bfe4;
  background: white;
  box-shadow: 0 0 0 3px rgba(36,135,205,.12);
}
body[data-kdc-premium="1"] .kdc-directory-search svg { flex: 0 0 18px; }
body[data-kdc-premium="1"] .kdc-directory-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: none;
  color: #14334d;
  background: transparent;
  font: inherit;
  font-size: .94rem;
}
body[data-kdc-premium="1"] .kdc-directory-search input::placeholder { color: #8296a7; }
body[data-kdc-premium="1"] .kdc-directory-search input:focus-visible { outline: 0; }
body[data-kdc-premium="1"] .kdc-directory-search-kbd {
  white-space: nowrap;
  color: #7890a2;
  background: #e9f1f6;
  border-radius: 6px;
  font: 600 .7rem "Kanit", sans-serif;
  padding: 2px 7px;
}
body[data-kdc-premium="1"] .kdc-directory-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px 12px;
}
body[data-kdc-premium="1"] .kdc-directory-count {
  white-space: nowrap;
  color: #4e718a;
  font-size: .87rem;
  font-weight: 600;
}
body[data-kdc-premium="1"] .kdc-directory-reset {
  cursor: pointer;
  color: #0b68a7;
  background: #eaf5fb;
  border: 1px solid #cfe5f4;
  border-radius: 8px;
  font: 600 .83rem "Kanit", sans-serif;
  padding: 5px 10px;
}
body[data-kdc-premium="1"] .kdc-directory-reset:hover { background: #d9effb; }
body[data-kdc-premium="1"] .kdc-directory-reset[hidden] { display: none !important; }
body[data-kdc-premium="1"] .link-hub.compact {
  counter-reset: kdc-directory;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 10px 12px;
  padding: 13px;
  border: 1px solid #d9e5ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 11px 34px rgba(17,52,79,.075);
}
body[data-kdc-premium="1"] .link-hub.compact .catGroup {
  counter-increment: kdc-directory;
  min-width: 0;
  margin: 0;
  border: 1px solid #dee7ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
body[data-kdc-premium="1"] .link-hub.compact .catGroup[hidden] { display: none !important; }
body[data-kdc-premium="1"] .link-hub.compact .catGroup:hover {
  border-color: #a9d0e8;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18,74,114,.06);
}
body[data-kdc-premium="1"] .link-hub.compact .catGroup[open] {
  grid-column: 1 / -1;
  border-color: #9bc7e3;
  box-shadow: 0 7px 18px rgba(16,86,135,.065);
}
body[data-kdc-premium="1"] .link-hub.compact summary {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 11px;
  min-height: 67px;
  padding: 10px 15px;
  margin: 0;
  color: #17364f;
  background: #fff;
  list-style: none;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
body[data-kdc-premium="1"] .link-hub.compact summary::-webkit-details-marker { display: none; }
body[data-kdc-premium="1"] .link-hub.compact summary::before {
  content: counter(kdc-directory, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: #1b77ae;
  background: #e9f4fa;
  border: 1px solid #d7eaf5;
  font: 800 .79rem "Kanit", sans-serif;
}
body[data-kdc-premium="1"] .link-hub.compact summary > span {
  min-width: 0;
  flex: unset;
  font-size: .98rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}
body[data-kdc-premium="1"] .link-hub.compact summary > em {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #36769f;
  background: #edf7fd;
  border: 1px solid #d4e9f5;
  border-radius: 8px;
  font-size: .79rem;
  font-weight: 600;
  padding: 4px 9px;
}
body[data-kdc-premium="1"] .link-hub.compact summary::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #7995aa;
  border-bottom: 2px solid #7995aa;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
body[data-kdc-premium="1"] .link-hub.compact .catGroup[open] summary {
  background: linear-gradient(100deg, #eaf5fc, #f9fcff 65%);
  border-bottom: 1px solid #d6e8f4;
}
body[data-kdc-premium="1"] .link-hub.compact .catGroup[open] summary::after { transform: rotate(225deg) translateY(-2px); }
body[data-kdc-premium="1"] .link-hub.compact .catLinks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  padding: 14px;
  background: #fafcfe;
}
body[data-kdc-premium="1"] .link-hub.compact .catLinks a {
  display: flex;
  min-width: 0;
  min-height: 39px;
  align-items: center;
  padding: 8px 11px;
  color: #355670;
  border: 1px solid #e0eaf1;
  background: white;
  border-radius: 9px;
  box-shadow: none;
  font-size: .86rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: unset;
  transition: border-color .15s, background .15s, color .15s;
}
body[data-kdc-premium="1"] .link-hub.compact .catLinks a:hover {
  color: #1269a0;
  border-color: #a7d2eb;
  background: #f0f9ff;
  transform: none;
  box-shadow: none;
}
body[data-kdc-premium="1"] .link-hub.compact .catLinks a[hidden] { display: none !important; }
body[data-kdc-premium="1"] .kdc-directory-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  text-align: center;
  color: #567389;
  background: #f8fbfd;
  border: 1px dashed #c3d9e9;
  border-radius: 12px;
  font-size: .94rem;
}
body[data-kdc-premium="1"] .kdc-directory-empty[hidden] { display: none !important; }

/* Footer and partner strip: tidy, clearly grouped, still readable. */
body[data-kdc-premium="1"] .footer {
  margin-top: 0;
  color: #fff;
  background: radial-gradient(circle at 90% -10%, rgba(47,143,202,.16), transparent 34%),
              linear-gradient(118deg, #081e33, #0b2b47 64%, #103956);
}
body[data-kdc-premium="1"] .footer-shell {
  padding: 30px 0 16px;
}
body[data-kdc-premium="1"] .footer-topline {
  gap: 18px;
  margin-bottom: 16px;
  padding: 17px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  box-shadow: none;
}
body[data-kdc-premium="1"] .footer-topline h2 { font-size: clamp(1.36rem, 2vw, 2.05rem); color: white; }
body[data-kdc-premium="1"] .footer-topline-actions a { min-height: 44px; border-radius: 11px; }
body[data-kdc-premium="1"] .footer-box { gap: 12px; }
body[data-kdc-premium="1"] .footer-panel {
  padding: 17px;
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}
body[data-kdc-premium="1"] .footer .foot-brand img { border-radius: 12px; }
body[data-kdc-premium="1"] .footer .contact-chip { padding: 9px 10px; }
body[data-kdc-premium="1"] .footer-keywords { margin-top: 14px; padding: 13px 15px; }
body[data-kdc-premium="1"] .footer-bottom { margin-top: 13px; padding-top: 12px; }
body[data-kdc-premium="1"] .kdc-credits__inner { width: var(--container); }

/* Legacy article page (plain HTML with no shared page layout). */
body[data-kdc-premium="1"][data-kdc-layout="article"] {
  max-width: none;
  padding: 24px max(24px, calc((100vw - 1000px)/2));
  background: #edf4f9;
  font-size: 1.03rem;
}
body[data-kdc-premium="1"][data-kdc-layout="article"] > :is(h1,h2,h3,p,ul,ol,div,blockquote) {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
body[data-kdc-premium="1"][data-kdc-layout="article"] > h1 { padding-top: 20px; }
body[data-kdc-premium="1"][data-kdc-layout="article"] > :is(p,ul,ol) { line-height: 1.8; }
body[data-kdc-premium="1"][data-kdc-layout="article"] > .kdc-credits { margin-top: 38px; }
body[data-kdc-premium="1"][data-kdc-layout="privacy"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #edf4f9;
}
body[data-kdc-premium="1"][data-kdc-layout="privacy"] main {
  width: min(970px, calc(100% - 32px));
  margin: 32px auto 42px;
  padding: clamp(23px, 4vw, 40px);
  background: #fff;
  border: 1px solid #dce8f0;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(16,53,82,.08);
}
body[data-kdc-premium="1"][data-kdc-layout="privacy"] main h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
body[data-kdc-premium="1"][data-kdc-layout="privacy"] main p { color: #4f6b81; }
body[data-kdc-premium="1"][data-kdc-layout="privacy"] main button {
  font-family: inherit;
  font-weight: 700;
  background: linear-gradient(125deg,#0e588e,#207fb8);
  border-radius: 10px;
  margin: 0 8px 8px 0;
}
body[data-kdc-premium="1"][data-kdc-layout="privacy"] main button.secondary { background: #eaf2f8; color: #123a58; }
body[data-kdc-premium="1"][data-kdc-layout="privacy"] .kdc-credits { margin-top: auto; }

/* /link.php is a pre-existing HTML fragment; style it if directly viewed. */
body > .catGroup { margin: 10px auto; padding: 10px 15px; max-width: 1150px; background: #fff; border: 1px solid #dce7ef; border-radius: 12px; }
body > .catGroup summary { cursor: pointer; font-weight: 700; color: #173c5b; }
body > .catGroup .catLinks { padding-top: 9px; display: flex; gap: 7px; flex-wrap: wrap; }
body > .catGroup .catLinks a { padding: 6px 9px; border: 1px solid #dce7ef; border-radius: 8px; background: #f6fbfe; color: #246190; }

@media (max-width: 1200px) {
  body[data-kdc-premium="1"] .feature-slab { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  body[data-kdc-premium="1"] .nav a { padding: 8px 9px; }
  body[data-kdc-premium="1"] .footer-box { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body[data-kdc-premium="1"] .link-hub.compact .catLinks { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 950px) {
  body[data-kdc-premium="1"] .feature-slab { grid-template-columns: 1fr; }
  body[data-kdc-premium="1"] .feature-slab > img { max-height: none; }
  body[data-kdc-premium="1"] .link-directory-head { grid-template-columns: 1fr; grid-template-areas: "badge" "heading" "intro"; padding: 23px; }
  body[data-kdc-premium="1"] .link-directory-head p { max-width: 94ch; }
  body[data-kdc-premium="1"] .link-hub.compact .catLinks { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  :root { --container: calc(100% - 26px); }
  html { scroll-padding-top: 118px; }
  body[data-kdc-premium="1"] .site-header { position: sticky; }
  body[data-kdc-premium="1"] .nav-wrap { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 0 0; }
  body[data-kdc-premium="1"] .brand { width: 100%; gap: 8px; padding-bottom: 5px; }
  body[data-kdc-premium="1"] .brand img { width: 40px; height: 40px; border-radius: 10px; }
  body[data-kdc-premium="1"] .brand strong { font-size: 1rem; }
  body[data-kdc-premium="1"] .brand small { font-size: .68rem; }
  body[data-kdc-premium="1"] .nav {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: nowrap;
    gap: 2px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 1px 0 7px;
    scrollbar-width: none;
  }
  body[data-kdc-premium="1"] .nav::-webkit-scrollbar { display: none; }
  body[data-kdc-premium="1"] .nav a { flex: 0 0 auto; font-size: .82rem; padding: 6px 10px; border-radius: 9px; }
  body[data-kdc-premium="1"] .nav a.btn { margin-left: 2px; padding: 6px 13px; }
  body[data-kdc-premium="1"] .section { padding: 29px 0; }
  body[data-kdc-premium="1"] .hero { padding: 11px 0 18px; }
  body[data-kdc-premium="1"] .hero-main { width: var(--container); padding: 4px; margin-bottom: 15px; border-radius: 14px; }
  body[data-kdc-premium="1"] .hero-main img { border-radius: 10px; }
  body[data-kdc-premium="1"] .floating-badge { position: static; margin-top: 6px; border-radius: 10px; }
  body[data-kdc-premium="1"] .hero-copy .eyebrow { font-size: .76rem; padding: 6px 9px; }
  body[data-kdc-premium="1"] h1 { font-size: clamp(1.8rem, 6.4vw, 2.6rem); }
  body[data-kdc-premium="1"] h2 { font-size: clamp(1.45rem, 5vw, 2.12rem); }
  body[data-kdc-premium="1"] .hero-copy h1 { margin-top: 12px; }
  body[data-kdc-premium="1"] .hero-copy .lead { font-size: .96rem; }
  body[data-kdc-premium="1"] .hero-actions { margin-top: 14px; }
  body[data-kdc-premium="1"] .chip { font-size: .81rem; padding: 5px 9px; }
  body[data-kdc-premium="1"] .marquee { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
  body[data-kdc-premium="1"] .mini-stat { min-height: 100px; padding: 12px; }
  body[data-kdc-premium="1"] .mini-stat strong { font-size: .99rem; }
  body[data-kdc-premium="1"] .mini-stat span { font-size: .83rem; }
  body[data-kdc-premium="1"] .grid-3,
  body[data-kdc-premium="1"] .grid-2,
  body[data-kdc-premium="1"] .keyword-grid,
  body[data-kdc-premium="1"] .faq-grid,
  body[data-kdc-premium="1"] .semantic-grid,
  body[data-kdc-premium="1"] .review-grid { gap: 9px; }
  body[data-kdc-premium="1"] .feature-slab { padding: 9px; gap: 10px; border-radius: 14px; }
  body[data-kdc-premium="1"] .feature-slab > div { padding: 6px 7px; }
  body[data-kdc-premium="1"] .card,
  body[data-kdc-premium="1"] .keyword-card,
  body[data-kdc-premium="1"] .review,
  body[data-kdc-premium="1"] .article-panel,
  body[data-kdc-premium="1"] .faq details { padding: 16px; border-radius: 13px; }
  body[data-kdc-premium="1"] .cta-band { padding: 18px; border-radius: 14px; }
  body[data-kdc-premium="1"] .link-directory-section { padding: 19px 0 23px; }
  body[data-kdc-premium="1"] .link-directory-head { min-height: 0; padding: 20px 18px; border-radius: 15px; gap: 10px; }
  body[data-kdc-premium="1"] .link-directory-head h2 { font-size: clamp(1.62rem, 5.1vw, 2.25rem); }
  body[data-kdc-premium="1"] .link-directory-head p { font-size: .84rem; line-height: 1.7; }
  body[data-kdc-premium="1"] .kdc-directory-toolbar { flex-direction: column; align-items: stretch; padding: 11px; gap: 9px; border-radius: 12px; }
  body[data-kdc-premium="1"] .kdc-directory-search { max-width: none; }
  body[data-kdc-premium="1"] .kdc-directory-toolbar-meta { justify-content: space-between; }
  body[data-kdc-premium="1"] .link-hub.compact { grid-template-columns: 1fr; gap: 8px; padding: 9px; border-radius: 13px; }
  body[data-kdc-premium="1"] .link-hub.compact .catGroup { border-radius: 11px; }
  body[data-kdc-premium="1"] .link-hub.compact .catGroup[open] { grid-column: 1; }
  body[data-kdc-premium="1"] .link-hub.compact summary { min-height: 59px; padding: 9px 11px; grid-template-columns: 31px minmax(0,1fr) auto 14px; gap: 8px; flex-wrap: nowrap; align-items: center; }
  body[data-kdc-premium="1"] .link-hub.compact summary::before { width: 31px; height: 31px; border-radius: 8px; font-size: .74rem; }
  body[data-kdc-premium="1"] .link-hub.compact summary > span { font-size: .91rem; flex: unset; }
  body[data-kdc-premium="1"] .link-hub.compact summary > em { font-size: .73rem; padding: 3px 7px; }
  body[data-kdc-premium="1"] .link-hub.compact .catLinks { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 9px; }
  body[data-kdc-premium="1"] .link-hub.compact .catLinks a { font-size: .83rem; padding: 8px 9px; }
  body[data-kdc-premium="1"] .footer-shell { padding-top: 22px; }
  body[data-kdc-premium="1"] .footer-topline { padding: 16px; border-radius: 12px; }
  body[data-kdc-premium="1"] .footer-box { grid-template-columns: 1fr; gap: 9px; }
  body[data-kdc-premium="1"] .footer-panel { padding: 15px; border-radius: 12px; }
  body[data-kdc-premium="1"] .footer-topline-actions { max-width: none; }
  body[data-kdc-premium="1"] .sticky-cta { border-radius: 13px; }
  body[data-kdc-premium="1"] .sticky-cta .btn,
  body[data-kdc-premium="1"] .sticky-cta .btn-outline { min-height: 42px; padding: 9px 7px; font-size: .84rem; }
}
@media (max-width: 440px) {
  body[data-kdc-premium="1"] .link-directory-head .kicker { white-space: normal; font-size: .75rem; }
  body[data-kdc-premium="1"] .link-hub.compact summary { grid-template-columns: 29px minmax(0,1fr) auto 12px; gap: 6px; padding: 9px 7px; }
  body[data-kdc-premium="1"] .link-hub.compact summary > span { font-size: .85rem; }
  body[data-kdc-premium="1"] .link-hub.compact summary > em { font-size: .70rem; padding: 3px 5px; }
  body[data-kdc-premium="1"] .link-hub.compact .catLinks { grid-template-columns: 1fr; }
  body[data-kdc-premium="1"] .marquee { grid-template-columns: 1fr 1fr; }
  body[data-kdc-premium="1"] .kdc-directory-search-kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-kdc-premium="1"] :is(.nav a, .catGroup, .catGroup summary::after, .btn, .btn-outline) { transition: none; }
}


/* Global premium FAQ block: same placement, same styling, every page. */
body[data-kdc-premium="1"] [data-kdc-legacy-faq="1"],
body[data-kdc-premium="1"] #faq-legacy { display: none !important; }
body[data-kdc-premium="1"] .kdc-global-faq {
  padding: 34px 0 30px;
}
body[data-kdc-premium="1"] .kdc-faq-shell {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,251,254,.94));
  border: 1px solid #d7e5ef;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(16,52,80,.085);
  padding: clamp(22px, 3vw, 34px);
}
body[data-kdc-premium="1"] .kdc-faq-header {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
body[data-kdc-premium="1"] .kdc-faq-kicker {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  flex-direction: column;
}
body[data-kdc-premium="1"] .kdc-faq-kicker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 10px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #14314d, #214d73);
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  letter-spacing: -.03em;
  box-shadow: 0 9px 24px rgba(15,54,87,.14);
}
body[data-kdc-premium="1"] .kdc-faq-kicker small {
  color: #67849a;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
}
body[data-kdc-premium="1"] .kdc-faq-title-wrap h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.45vw, 3rem);
  line-height: 1.14;
}
body[data-kdc-premium="1"] .kdc-faq-title-wrap p {
  margin: 0;
  max-width: 92ch;
  color: #5f788d;
  font-size: 1rem;
  line-height: 1.72;
}
body[data-kdc-premium="1"] .kdc-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
body[data-kdc-premium="1"] .kdc-faq-item {
  margin: 0;
  border: 1px solid #dbe6ef;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 8px 22px rgba(17, 54, 84, .05);
  overflow: clip;
}
body[data-kdc-premium="1"] .kdc-faq-item summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
  cursor: pointer;
  user-select: none;
}
body[data-kdc-premium="1"] .kdc-faq-item summary::-webkit-details-marker { display: none; }
body[data-kdc-premium="1"] .kdc-faq-no {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #edf5fb;
  color: #176ba9;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .84rem;
  border: 1px solid #d7e7f2;
  flex: none;
}
body[data-kdc-premium="1"] .kdc-faq-question {
  font-size: 1.02rem;
  font-weight: 700;
  color: #14314d;
  line-height: 1.45;
}
body[data-kdc-premium="1"] .kdc-faq-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(180deg, #edf6fc, #e4f0f8);
  border: 1px solid #d0e2ef;
  flex: none;
}
body[data-kdc-premium="1"] .kdc-faq-toggle::before,
body[data-kdc-premium="1"] .kdc-faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: #1f77b4;
  border-radius: 99px;
  transform: translate(-50%, -50%);
  transition: transform .22s ease;
}
body[data-kdc-premium="1"] .kdc-faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
body[data-kdc-premium="1"] .kdc-faq-item[open] {
  border-color: #b8d6e8;
  box-shadow: 0 14px 30px rgba(19, 68, 104, .08);
}
body[data-kdc-premium="1"] .kdc-faq-item[open] .kdc-faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
body[data-kdc-premium="1"] .kdc-faq-answer {
  padding: 0 18px 18px 74px;
}
body[data-kdc-premium="1"] .kdc-faq-answer p {
  margin: 0;
  color: #587286;
  line-height: 1.78;
}
body[data-kdc-premium="1"] .kdc-faq-cta {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #d8e6ef;
  background: linear-gradient(116deg, #f5fbff, #f7f5fb 92%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body[data-kdc-premium="1"] .kdc-faq-cta strong {
  display: block;
  margin-bottom: 4px;
  color: #15344f;
  font-size: 1.05rem;
}
body[data-kdc-premium="1"] .kdc-faq-cta p {
  margin: 0;
  color: #607a8d;
}
body[data-kdc-premium="1"] .kdc-faq-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  body[data-kdc-premium="1"] .kdc-faq-header,
  body[data-kdc-premium="1"] .kdc-faq-grid,
  body[data-kdc-premium="1"] .kdc-faq-cta {
    grid-template-columns: 1fr;
    display: grid;
  }
  body[data-kdc-premium="1"] .kdc-faq-kicker { gap: 7px; }
}
@media (max-width: 720px) {
  body[data-kdc-premium="1"] .kdc-global-faq { padding: 28px 0 24px; }
  body[data-kdc-premium="1"] .kdc-faq-shell { border-radius: 21px; padding: 16px; }
  body[data-kdc-premium="1"] .kdc-faq-grid { grid-template-columns: 1fr; gap: 11px; }
  body[data-kdc-premium="1"] .kdc-faq-item summary { padding: 14px 14px; gap: 10px; }
  body[data-kdc-premium="1"] .kdc-faq-no { width: 36px; height: 36px; border-radius: 11px; }
  body[data-kdc-premium="1"] .kdc-faq-question { font-size: .95rem; }
  body[data-kdc-premium="1"] .kdc-faq-answer { padding: 0 14px 14px 14px; }
  body[data-kdc-premium="1"] .kdc-faq-cta { padding: 15px; }
  body[data-kdc-premium="1"] .kdc-faq-cta-actions .btn,
  body[data-kdc-premium="1"] .kdc-faq-cta-actions .btn-outline { width: 100%; }
}
