/* =====================================================================
   Challan Guide — Brand Kit · "Navy & Signal Amber"
   Header and footer are navy; the page between them is a quiet off-white.
   Amber is the one accent: the logo, the main buttons and the road-line
   dashes that run under the header and over the footer.
   Colour values come from settings as custom properties (inline :root
   block); dark-mode values (optional) are tuned here for contrast.
   ================================================================== */

:root {
  --cgk-radius: 14px;
  --cgk-soft: #EEF2F6;
  --cgk-code: #E9EDF2;
  --cgk-focus: #0E7C7B;
  --cgk-answer: #FFF8E6;
  --cgk-answer-line: #F2D58A;
  --cgk-alert: #FDF0F0;
  --cgk-alert-line: #F1C4C4;
  --cgk-alert-ink: #8E1B1B;
  --cgk-danger: #C62828;
  --cgk-success: #1F7A3A;
  --cgk-shadow: 0 1px 2px rgba(18, 38, 63, .05), 0 18px 36px -26px rgba(18, 38, 63, .35);
  --cgk-on-dark: #E3EAF2;
  --cgk-on-dark-muted: #A9BACB;
  --cgk-header-h: 74px;
  --cgk-road: repeating-linear-gradient(90deg, var(--cgk-amber) 0 26px, transparent 26px 42px);
  color-scheme: light;
}
html[data-theme="dark"] {
  --cgk-bg: #0B1622;
  --cgk-surface: #112131;
  --cgk-soft: #142838;
  --cgk-code: #16293B;
  --cgk-text: #DCE5EE;
  --cgk-heading: #F3F7FB;
  --cgk-muted: #9FB1C3;
  --cgk-border: #22384D;
  --cgk-link: #5CC8C6;
  --cgk-focus: #5CC8C6;
  --cgk-answer: #2A2410;
  --cgk-answer-line: #5C4A12;
  --cgk-alert: #2B1517;
  --cgk-alert-line: #5A2629;
  --cgk-alert-ink: #F5B4B4;
  --cgk-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 36px -26px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ── base page ────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
html:has(body.cgk-sticky) { scroll-padding-top: calc(var(--cgk-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.cgk-kit {
  background-color: var(--cgk-bg);
  color: var(--cgk-text);
  font-family: var(--cgk-font-body);
  font-size: var(--cgk-size);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.cgk-kit :is(button, input, select, textarea) { font-family: inherit; }
/* Heading colour uses :where() so components that colour their own headings still win. */
body.cgk-kit :is(h1, h2, h3, h4, h5, h6, .entry-title, .wp-block-post-title) {
  font-family: var(--cgk-font-head);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.22;
  text-wrap: balance;
}
body.cgk-kit :where(h1, h2, h3, h4, h5, h6, .entry-title, .wp-block-post-title) { color: var(--cgk-heading); }
body.cgk-kit ::selection { background: rgba(242, 169, 0, .3); color: inherit; }
body.cgk-kit :focus-visible { outline: 3px solid var(--cgk-focus); outline-offset: 2px; }
body.cgk-kit .cgk-sr, body.cgk-kit .screen-reader-text:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.cgk-ico { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.cgk-wrap { width: 100%; max-width: var(--cgk-wrap, 1200px); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }

/* Urdu text (lang="ur") */
body.cgk-kit :is([lang="ur"], [lang="ur-PK"]) { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; line-height: 2.1; direction: rtl; text-align: right; }

/* Theme surfaces follow the tokens (Astra, GeneratePress, Kadence, block and classic themes) */
body.cgk-kit :is(#page, .site, .site-content, .wp-site-blocks, #content) { background-color: transparent; }
body.cgk-kit:is(.ast-separate-container, .ast-plain-container, .ast-page-builder-template) { background-color: var(--cgk-bg); }
body.cgk-kit :is(.ast-container, .grid-container) { max-width: var(--cgk-wrap, 1200px); }
body.cgk-kit.ast-separate-container :is(.ast-article-single, .ast-article-post, .comments-area, .ast-author-box, .ast-archive-description),
body.cgk-kit.separate-containers :is(.inside-article, .comments-area, .page-header, .paging-navigation) {
  background-color: var(--cgk-surface);
  border: 1px solid var(--cgk-border);
  border-radius: 18px;
  box-shadow: var(--cgk-shadow);
}
body.cgk-kit :is(.entry-meta, .entry-meta *, .ast-blog-meta-container, .posted-on) { color: var(--cgk-muted); }
body.cgk-kit :is(.widget-title, .widget h2, .widget h3) { font-family: var(--cgk-font-head); }
/* The byline replaces the theme's own author/date line on posts (no exposed emails, no duplicates). */
body.cgk-byline-on :is(.entry-meta, .ast-blog-single-element.ast-blog-meta-container) { display: none !important; }

/* ── skip link ────────────────────────────────────────────────────── */
.cgk-skip {
  position: absolute; left: 12px; top: -80px; z-index: 3000;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--cgk-amber); color: var(--cgk-navy);
  transition: top .2s ease;
}
.cgk-skip:focus { top: 12px; color: var(--cgk-navy); }

/* ── hide the theme's own header/footer and Elementor templates ──── */
.cgk-hide-theme-header :is(#masthead, #site-header, header.site-header, .site-header, header.wp-block-template-part, .wp-site-blocks > header),
.cgk-has-header :is(.elementor-location-header, [data-elementor-type="header"]) { display: none !important; }
.cgk-hide-theme-footer :is(#colophon, #site-footer, footer.site-footer, .site-footer, footer.wp-block-template-part, .wp-site-blocks > footer),
.cgk-has-footer :is(.elementor-location-footer, [data-elementor-type="footer"]) { display: none !important; }

/* =====================================================================
   INDEPENDENCE NOTICE + ANNOUNCEMENT
   ================================================================== */
.cgk-topbar { position: relative; z-index: 1001; background: var(--cgk-navy-lo); color: var(--cgk-on-dark-muted); font-size: 13px; line-height: 1.45; }
.cgk-topbar__inner { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.cgk-topbar__icon { width: 15px; height: 15px; color: var(--cgk-amber); }
.cgk-topbar__text { margin: 0; }
.cgk-topbar__short { display: none; }
.cgk-topbar a { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: #FFD36B; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cgk-topbar a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cgk-topbar a .cgk-ico { width: 13px; height: 13px; }

.cgk-announce { position: relative; z-index: 1001; background: var(--cgk-amber); color: var(--cgk-navy); font-size: 14px; line-height: 1.4; }
.cgk-announce__inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.cgk-announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cgk-navy); flex-shrink: 0; }
.cgk-announce__text { color: var(--cgk-navy); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
a.cgk-announce__text:hover { color: var(--cgk-navy); text-decoration: underline; }
a.cgk-announce__text .cgk-ico { width: 15px; height: 15px; transition: transform .2s; }
a.cgk-announce__text:hover .cgk-ico { transform: translateX(3px); }
.cgk-announce__close { margin-left: 6px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--cgk-navy); cursor: pointer; padding: 0; }
.cgk-announce__close:hover { background: rgba(18, 38, 63, .1); }
.cgk-announce__close .cgk-ico { width: 16px; height: 16px; }

/* =====================================================================
   HEADER
   ================================================================== */
.cgk-header {
  position: relative; z-index: 1000;
  color: var(--cgk-on-dark);
  font-family: var(--cgk-font-body);
  background:
    radial-gradient(60% 160% at 92% 0%, rgba(59, 110, 165, .32) 0%, rgba(59, 110, 165, 0) 60%),
    linear-gradient(135deg, var(--cgk-navy-hi) 0%, var(--cgk-navy) 68%);
  transition: box-shadow .3s ease;
}
/* The signature: a road line under the header. */
.cgk-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none;
  background: var(--cgk-road); opacity: .9;
}
.cgk-sticky .cgk-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.cgk-header.is-scrolled { box-shadow: 0 14px 34px -18px rgba(5, 14, 26, .75); }
.cgk-header__inner { display: flex; align-items: center; gap: 20px; height: var(--cgk-header-h); transition: height .25s ease; }
.cgk-header.is-scrolled .cgk-header__inner { height: 62px; }

/* logo */
.cgk-brand { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 10px; text-decoration: none; }
.cgk-brand:focus-visible { outline: 3px solid var(--cgk-amber); outline-offset: 4px; }
.cgk-logo { display: inline-flex; align-items: center; gap: 10px; }
.cgk-logo__mark { width: 44px; height: 44px; display: block; flex-shrink: 0; transition: width .25s ease, height .25s ease; }
.cgk-logo__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.cgk-logo__name { font-family: var(--cgk-font-head); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.cgk-logo__sub { font-family: var(--cgk-font-body); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cgk-on-dark-muted); white-space: nowrap; }
.cgk-header.is-scrolled .cgk-logo__mark { width: 38px; height: 38px; }
.cgk-logo-img { display: block; height: 40px; width: auto; }
.cgk-nav-spacer { flex: 1; }

/* main menu */
.cgk-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.cgk-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.cgk-menu li { position: relative; list-style: none; margin: 0; }
.cgk-menu a {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none; white-space: nowrap;
  color: var(--cgk-on-dark); font-size: 15px; font-weight: 500; line-height: 1.2;
  transition: color .2s ease, background-color .2s ease;
}
.cgk-menu a:hover, .cgk-menu a:focus-visible { color: #fff; background: rgba(255, 255, 255, .07); }
.cgk-menu > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--cgk-amber); transform: scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.cgk-menu > li > a:hover::after,
.cgk-menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current-page-ancestor, .current-post-ancestor) > a::after { transform: scaleX(1); }
.cgk-menu > li:is(.current-menu-item, .current-menu-ancestor, .current_page_item, .current-page-ancestor, .current-post-ancestor) > a { color: #fff; }
.cgk-menu .menu-item-has-children > a::before {
  content: ''; order: 2; width: 6px; height: 6px; margin: -3px 0 0 2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7;
}
.cgk-menu .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 10; min-width: 240px;
  list-style: none; margin: 0; padding: 8px;
  background: #0F2236; border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cgk-menu .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.cgk-menu li:hover > .sub-menu, .cgk-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.cgk-menu .sub-menu a { display: flex; width: 100%; padding: 10px 12px; font-size: 14.5px; white-space: normal; box-sizing: border-box; }
.cgk-menu .sub-menu a:hover { background: rgba(242, 169, 0, .12); color: #fff; }

/* actions */
.cgk-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.cgk-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; margin: 0; cursor: pointer; border-radius: 12px;
  color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s ease, border-color .2s ease;
}
.cgk-iconbtn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
.cgk-iconbtn .cgk-ico { width: 19px; height: 19px; }
.cgk-searchbtn .is-close, .cgk-searchbtn[aria-expanded="true"] .is-open { display: none; }
.cgk-searchbtn[aria-expanded="true"] .is-close { display: inline-block; }

/* main button */
.cgk-cta {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; white-space: nowrap;
  font-family: var(--cgk-font-head); font-size: 15px; font-weight: 600; letter-spacing: .005em; text-decoration: none;
  color: var(--cgk-navy); background: linear-gradient(180deg, #FFC22B 0%, var(--cgk-amber) 100%);
  box-shadow: 0 10px 22px -14px rgba(242, 169, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease, background .2s ease;
}
.cgk-cta:hover, .cgk-cta:focus-visible { color: var(--cgk-navy); transform: translateY(-1px); background: linear-gradient(180deg, var(--cgk-amber) 0%, var(--cgk-amber-hi) 100%); box-shadow: 0 14px 26px -14px rgba(242, 169, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .45); }
.cgk-cta .cgk-ico { width: 18px; height: 18px; }
.cgk-cta.is-block { width: 100%; height: 50px; font-size: 16px; }
.cgk-header .cgk-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* search panel */
.cgk-searchbar { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0 20px; }
.cgk-searchbar[hidden] { display: none; }
.cgk-sform { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.cgk-sform__field { position: relative; flex: 1; display: flex; align-items: center; }
.cgk-sform__field .cgk-ico { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--cgk-muted); pointer-events: none; }
body.cgk-kit .cgk-sform input[type="search"] {
  width: 100%; height: 48px; margin: 0; padding: 0 16px 0 44px; box-sizing: border-box;
  border: 1px solid transparent; border-radius: 12px; background: #fff; color: #1F2933; font-size: 16px; box-shadow: none; outline: none;
}
body.cgk-kit .cgk-sform input[type="search"]:focus { border-color: var(--cgk-amber); box-shadow: 0 0 0 3px rgba(242, 169, 0, .35); }
.cgk-sform__go {
  height: 48px; padding: 0 20px; border: 0; border-radius: 12px; cursor: pointer;
  font-family: var(--cgk-font-head); font-size: 15px; font-weight: 600; color: var(--cgk-navy); background: var(--cgk-amber);
}
.cgk-sform__go:hover { background: var(--cgk-amber-hi); }
.cgk-sform.is-drawer { max-width: none; }

/* burger */
.cgk-burger {
  display: none; position: relative; width: 44px; height: 44px; padding: 0; margin: 0; cursor: pointer;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
}
.cgk-burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s ease, opacity .2s ease, top .3s ease; }
.cgk-burger span:nth-child(1) { top: 15px; }
.cgk-burger span:nth-child(2) { top: 21px; }
.cgk-burger span:nth-child(3) { top: 27px; }
.cgk-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.cgk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cgk-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* light/dark switch (optional) */
.cgk-mode { appearance: none; -webkit-appearance: none; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; border-radius: 999px; line-height: 0; flex-shrink: 0; }
.cgk-mode__track { position: relative; display: block; width: 58px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .3s ease; }
.cgk-mode__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--cgk-navy); transition: transform .35s cubic-bezier(.4, 0, .2, 1), background .3s ease, color .3s ease; }
.cgk-mode__knob .cgk-ico { width: 14px; height: 14px; position: absolute; transition: opacity .25s ease; }
.cgk-mode__knob .is-moon { opacity: 0; }
html[data-theme="dark"] .cgk-mode__track { background: rgba(242, 169, 0, .16); border-color: rgba(242, 169, 0, .45); }
html[data-theme="dark"] .cgk-mode__knob { transform: translateX(26px); background: var(--cgk-navy); color: var(--cgk-amber); }
html[data-theme="dark"] .cgk-mode__knob .is-sun { opacity: 0; }
html[data-theme="dark"] .cgk-mode__knob .is-moon { opacity: 1; }

/* drawer */
.cgk-drawer { position: fixed; inset: 0; z-index: 2000; }
.cgk-drawer[hidden] { display: none; }
.cgk-drawer__scrim { position: absolute; inset: 0; background: rgba(5, 12, 22, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.cgk-drawer__panel {
  box-sizing: border-box;
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px; padding: 18px 22px 28px;
  color: var(--cgk-on-dark); font-family: var(--cgk-font-body);
  background: radial-gradient(90% 60% at 100% 0%, rgba(59, 110, 165, .3), transparent 60%), linear-gradient(170deg, var(--cgk-navy-hi), var(--cgk-navy) 60%);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .7);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.cgk-drawer.is-open .cgk-drawer__scrim { opacity: 1; }
.cgk-drawer.is-open .cgk-drawer__panel { transform: none; }
.cgk-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cgk-drawer__top .cgk-logo__mark { width: 38px; height: 38px; }
.cgk-drawer__top .cgk-logo__name { font-size: 18px; }
.cgk-dmenu, .cgk-dmenu .sub-menu { list-style: none; margin: 0; padding: 0; }
.cgk-dmenu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); color: #F0F4F9; text-decoration: none; font-size: 17px; font-weight: 500; }
.cgk-dmenu a:hover, .cgk-dmenu .current-menu-item > a { color: #FFD36B; }
.cgk-dmenu .sub-menu a { padding-left: 18px; font-size: 15.5px; color: var(--cgk-on-dark-muted); }
.cgk-drawer__mode { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-weight: 500; }
.cgk-drawer__note { display: flex; gap: 8px; align-items: flex-start; margin: auto 0 0; font-size: 13.5px; line-height: 1.55; color: var(--cgk-on-dark-muted); }
.cgk-drawer__note .cgk-ico { color: var(--cgk-amber); margin-top: 2px; }
.cgk-drawer__note a { color: #FFD36B; }
body.cgk-lock { overflow: hidden; }

/* ── guard: themes style every <button>; the kit's buttons keep their own look ── */
body.cgk-kit :is(.cgk-header, .cgk-drawer, .cgk-announce) button,
body.cgk-kit button.cgk-fab {
  min-height: 0; min-width: 0; line-height: 1; text-transform: none; letter-spacing: normal; text-decoration: none; text-shadow: none; font-weight: 500;
}
body.cgk-kit :is(.cgk-header, .cgk-drawer) button.cgk-iconbtn { padding: 0; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
body.cgk-kit :is(.cgk-header, .cgk-drawer) button.cgk-iconbtn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
body.cgk-kit .cgk-header button.cgk-burger { padding: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
body.cgk-kit .cgk-sform button.cgk-sform__go { height: 48px; padding: 0 20px; border: 0; border-radius: 12px; box-shadow: none; font-family: var(--cgk-font-head); font-size: 15px; font-weight: 600; color: var(--cgk-navy); background: var(--cgk-amber); }
body.cgk-kit .cgk-sform button.cgk-sform__go:hover, body.cgk-kit .cgk-sform button.cgk-sform__go:focus-visible { color: var(--cgk-navy); background: var(--cgk-amber-hi); }
body.cgk-kit button.cgk-fab { padding: 0; border: 0; border-radius: 50%; color: var(--cgk-navy); background: var(--cgk-amber); }
body.cgk-kit button.cgk-fab:hover { color: var(--cgk-navy); background: var(--cgk-amber-hi); }
body.cgk-kit .cgk-announce button.cgk-announce__close { padding: 0; border: 0; background: transparent; color: var(--cgk-navy); box-shadow: none; }
body.cgk-kit button.cgk-mode { padding: 0; border: 0; background: transparent; box-shadow: none; }

/* =====================================================================
   SCAM WARNING (above the footer)
   ================================================================== */
.cgk-scam { margin-top: 64px; }
.cgk-scam__card {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  border-radius: 18px; background: var(--cgk-alert); border: 1px solid var(--cgk-alert-line);
}
.cgk-scam__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; color: #fff; background: var(--cgk-danger); }
.cgk-scam__icon .cgk-ico { width: 22px; height: 22px; }
.cgk-scam__copy { flex: 1; min-width: 0; }
.cgk-scam__copy p { margin: 0; }
.cgk-scam__title { font-family: var(--cgk-font-head); font-size: 16px; font-weight: 600; color: var(--cgk-alert-ink); }
.cgk-scam__text { font-size: 15px; line-height: 1.55; color: var(--cgk-text); }
.cgk-scam__link { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-weight: 600; color: var(--cgk-alert-ink); text-decoration: underline; text-underline-offset: 3px; }
.cgk-scam__link:hover { color: var(--cgk-danger); }
.cgk-scam__link .cgk-ico { width: 16px; height: 16px; }

/* =====================================================================
   FOOTER
   ================================================================== */
.cgk-footer {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 32px;
  color: var(--cgk-on-dark-muted); font-family: var(--cgk-font-body); font-size: 15px; line-height: 1.65;
  background:
    radial-gradient(55% 90% at 0% 0%, rgba(59, 110, 165, .22) 0%, rgba(59, 110, 165, 0) 60%),
    linear-gradient(180deg, var(--cgk-navy) 0%, var(--cgk-navy-lo) 100%);
}
:not(.cgk-scam) + .cgk-footer { margin-top: 72px; }
.cgk-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cgk-road); }
.cgk-footer::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.cgk-footer a { color: var(--cgk-on-dark); text-decoration: none; transition: color .2s ease; }
.cgk-footer a:hover { color: #fff; }

.cgk-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.cgk-footer__grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.cgk-fbrand__logo { display: inline-block; border-radius: 10px; }
.cgk-fbrand__about { max-width: 46ch; margin: 16px 0 18px; color: var(--cgk-on-dark-muted); }
.cgk-badges, .cgk-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.cgk-badges li, .cgk-social a {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--cgk-on-dark);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
}
.cgk-badges .cgk-ico { width: 15px; height: 15px; color: var(--cgk-amber); }
.cgk-social a .cgk-ico { width: 13px; height: 13px; opacity: .7; }
.cgk-social a:hover { border-color: rgba(242, 169, 0, .5); }
.cgk-fcol__title { margin: 4px 0 14px; font-family: var(--cgk-font-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cgk-amber); }
.cgk-flinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cgk-flinks li { margin: 0; }
.cgk-flinks a { color: var(--cgk-on-dark-muted); display: inline-block; transition: color .2s ease, transform .2s ease; }
.cgk-flinks a:hover { color: #fff; transform: translateX(2px); }

.cgk-footer__base { padding-top: 22px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .08); }
.cgk-disclaimer { max-width: 110ch; margin: 0 0 16px; font-size: 13px; line-height: 1.65; color: #93A6BA; }
.cgk-disclaimer a { color: #FFD36B; text-decoration: underline; text-underline-offset: 2px; }
.cgk-footer__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; }
.cgk-copy { margin: 0; color: var(--cgk-on-dark-muted); }
.cgk-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.cgk-legal li { margin: 0; }
.cgk-legal a { color: var(--cgk-on-dark-muted); }
.cgk-totop { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #FFD36B !important; font-weight: 500; }
.cgk-totop .cgk-ico { width: 16px; height: 16px; }

/* floating back-to-top */
.cgk-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--cgk-navy); background: var(--cgk-amber); border: 0;
  box-shadow: 0 14px 30px -12px rgba(18, 38, 63, .55); opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
}
.cgk-fab.is-visible { opacity: 1; transform: none; }
.cgk-fab:hover { background: var(--cgk-amber-hi); }
.cgk-fab .cgk-ico { width: 20px; height: 20px; }

/* =====================================================================
   CONTENT (when "Style page content" is on)
   ================================================================== */
.cgk-styled :where(.entry-content, .wp-block-post-content, .post-content, .page-content) a:where(:not(.wp-block-button__link):not(.cgk-cta):not(.cgk-obox__btn):not(.elementor-button)) {
  color: var(--cgk-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.cgk-styled :where(.entry-content, .wp-block-post-content, .post-content, .page-content) a:where(:not(.wp-block-button__link):not(.cgk-cta):not(.cgk-obox__btn):not(.elementor-button)):hover { color: var(--cgk-heading); text-decoration-thickness: 2px; }
.cgk-styled :is(.entry-content, .wp-block-post-content) :is(h2, h3) { margin-top: 1.8em; margin-bottom: .55em; }
.cgk-styled :is(.entry-content, .wp-block-post-content) h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.cgk-styled :is(.entry-content, .wp-block-post-content) h3 { font-size: clamp(1.2rem, 1.9vw, 1.4rem); }
.cgk-styled :is(.entry-content, .wp-block-post-content) :is(ul, ol) li::marker { color: var(--cgk-link); font-weight: 600; }
.cgk-styled :is(.entry-content, .wp-block-post-content) blockquote {
  margin: 1.6em 0; padding: 18px 22px; border: 0; border-radius: 14px;
  background: var(--cgk-soft); color: var(--cgk-text); font-size: 1.04em; font-style: normal;
  box-shadow: inset 4px 0 0 var(--cgk-amber);
}
.cgk-styled :is(.entry-content, .wp-block-post-content) blockquote p:last-child { margin-bottom: 0; }
.cgk-styled :is(.entry-content, .wp-block-post-content) table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: .94em;
  border: 1px solid var(--cgk-border); border-radius: 14px; overflow: hidden; background: var(--cgk-surface);
  font-variant-numeric: tabular-nums;
}
.cgk-styled :is(.entry-content, .wp-block-post-content) :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--cgk-border); text-align: left; vertical-align: top; }
.cgk-styled :is(.entry-content, .wp-block-post-content) thead th { background: var(--cgk-navy); color: #fff; font-family: var(--cgk-font-head); font-weight: 600; font-size: .9em; }
.cgk-styled :is(.entry-content, .wp-block-post-content) tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--cgk-soft) 55%, transparent); }
.cgk-styled :is(.entry-content, .wp-block-post-content) tbody tr:last-child td { border-bottom: 0; }
.cgk-styled :is(.entry-content, .wp-block-post-content) .wp-block-table { overflow-x: auto; }
.cgk-styled :is(.entry-content, .wp-block-post-content) :is(img, .wp-block-image img, video) { border-radius: 14px; }
.cgk-styled :is(.entry-content, .wp-block-post-content) figcaption { color: var(--cgk-muted); font-size: .86em; text-align: center; }
.cgk-styled :is(.entry-content, .wp-block-post-content) :not(pre) > code { padding: .12em .4em; border-radius: 6px; background: var(--cgk-code); font-size: .9em; }
.cgk-styled :is(.entry-content, .wp-block-post-content) pre { padding: 18px 20px; border-radius: 14px; background: var(--cgk-navy); color: #E3EAF2; overflow-x: auto; }
.cgk-styled :is(.entry-content, .wp-block-post-content) hr { border: 0; height: 4px; background: var(--cgk-road); opacity: .55; margin: 2.4em 0; width: 132px; border-radius: 2px; }
.cgk-styled :is(.entry-content, .wp-block-post-content) mark { background: rgba(242, 169, 0, .28); color: inherit; padding: 0 .2em; border-radius: 4px; }
.cgk-styled :is(.entry-content, .wp-block-post-content) details { margin: 12px 0; border: 1px solid var(--cgk-border); border-radius: 14px; background: var(--cgk-surface); padding: 0 18px; }
.cgk-styled :is(.entry-content, .wp-block-post-content) details > summary { cursor: pointer; padding: 14px 0; font-family: var(--cgk-font-head); font-weight: 600; color: var(--cgk-heading); }
.cgk-styled :is(.entry-content, .wp-block-post-content) details[open] > summary { border-bottom: 1px solid var(--cgk-border); margin-bottom: 12px; }
.cgk-styled .wp-block-button__link, .cgk-styled .wp-element-button {
  border-radius: 12px; padding: .8em 1.4em; font-family: var(--cgk-font-head); font-weight: 600; text-decoration: none;
  background: var(--cgk-navy); color: #fff; border: 2px solid var(--cgk-navy); transition: background .2s ease, transform .2s ease;
}
.cgk-styled .wp-block-button__link:hover, .cgk-styled .wp-element-button:hover { background: var(--cgk-navy-hi); border-color: var(--cgk-navy-hi); color: #fff; transform: translateY(-1px); }
.cgk-styled .is-style-outline > .wp-block-button__link { background: transparent; color: var(--cgk-heading); border-color: currentColor; }
html[data-theme="dark"] .cgk-styled .wp-block-button__link:not(.has-background) { background: var(--cgk-amber); border-color: var(--cgk-amber); color: var(--cgk-navy); }
.cgk-styled :is(.entry-content, .wp-block-post-content, .comment-respond) :is(input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="number"], textarea, select) {
  border: 1px solid var(--cgk-border); border-radius: 10px; background: var(--cgk-surface); color: var(--cgk-text); padding: 10px 12px;
}

/* breadcrumbs (ours and Yoast's) */
.cgk-crumbs { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--cgk-muted); }
.cgk-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; }
.cgk-crumbs li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.cgk-crumbs li + li::before { content: '/'; opacity: .45; }
.cgk-crumbs a { color: var(--cgk-muted); text-decoration: none; }
.cgk-crumbs a:hover { color: var(--cgk-link); text-decoration: underline; text-underline-offset: 3px; }
.cgk-crumbs :is([aria-current], .breadcrumb_last) { color: var(--cgk-heading); font-weight: 500; }
.ast-page-builder-template .cgk-crumbs, .elementor-page .cgk-crumbs { max-width: var(--cgk-wrap, 1200px); margin: 18px auto; padding: 0 24px; box-sizing: border-box; }

/* byline */
.cgk-byline { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 14px 16px; border: 1px solid var(--cgk-border); border-radius: var(--cgk-radius); background: var(--cgk-surface); }
.cgk-byline__avatar { border-radius: 50%; flex-shrink: 0; }
.cgk-byline__text p { margin: 0; }
.cgk-byline__who { font-size: 15px; color: var(--cgk-text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cgk-styled .cgk-byline a { color: var(--cgk-heading); font-weight: 600; text-decoration: none; }
.cgk-styled .cgk-byline a:hover { color: var(--cgk-link); }
.cgk-byline__rev .cgk-ico { width: 16px; height: 16px; margin: -2px 5px 0 0; color: var(--cgk-link); }
.cgk-byline__cred { color: var(--cgk-muted); }
.cgk-byline__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--cgk-muted); margin-top: 2px !important; }
.cgk-byline__meta .cgk-ico { width: 15px; height: 15px; }
.cgk-byline__meta .cgk-ico:first-child { color: var(--cgk-success); }

/* contents box */
.cgk-toc { margin: 8px 0 30px; border: 1px solid var(--cgk-border); border-radius: 16px; background: var(--cgk-surface); box-shadow: var(--cgk-shadow); }
.cgk-styled .cgk-toc details { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.cgk-styled .cgk-toc details > summary { border-bottom: 0; margin-bottom: 0; }
.cgk-styled .cgk-toc details[open] > summary { border-bottom: 1px solid var(--cgk-border); }
.cgk-toc summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-family: var(--cgk-font-head); font-weight: 600; color: var(--cgk-heading); }
.cgk-toc summary::-webkit-details-marker { display: none; }
.cgk-toc summary .cgk-ico { color: var(--cgk-amber-hi); }
.cgk-toc__count { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--cgk-soft); font-size: 12px; text-align: center; color: var(--cgk-muted); }
.cgk-toc ol { margin: 0; padding: 12px 18px 16px 40px; display: grid; gap: 6px; }
.cgk-toc li { padding-left: 4px; }
.cgk-toc li::marker { color: var(--cgk-link); font-weight: 600; }
.cgk-styled .cgk-toc a { color: var(--cgk-text); text-decoration: none; }
.cgk-styled .cgk-toc a:hover { color: var(--cgk-link); text-decoration: underline; }
@media (min-width: 900px) { .cgk-toc ol:has(li:nth-child(7)) { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* quick-answer box [cgk_official_box] */
.cgk-obox { margin: 1.6em 0; padding: 22px 24px; border-radius: 18px; background: var(--cgk-answer); border: 1px solid var(--cgk-answer-line); }
.cgk-obox__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cgk-obox__mark { width: 36px; height: 36px; flex-shrink: 0; }
.cgk-obox__title { margin: 0 !important; font-family: var(--cgk-font-head); font-size: 1.15em; font-weight: 600; color: var(--cgk-heading); line-height: 1.3; }
.cgk-obox__steps { list-style: none; counter-reset: cgk; margin: 0 0 18px !important; padding: 0 !important; display: grid; gap: 10px; }
.cgk-obox__steps li { counter-increment: cgk; position: relative; padding-left: 40px; line-height: 1.55; }
.cgk-obox__steps li::before {
  content: counter(cgk); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--cgk-font-head); font-size: 14px; font-weight: 700; color: var(--cgk-navy); background: var(--cgk-amber);
}
.cgk-obox__steps li::marker { content: ''; }
.cgk-styled a.cgk-obox__btn, a.cgk-obox__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px;
  font-family: var(--cgk-font-head); font-size: 16px; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--cgk-navy); transition: background .2s ease, transform .2s ease;
}
a.cgk-obox__btn:hover { color: #fff; background: var(--cgk-navy-hi); transform: translateY(-1px); }
a.cgk-obox__btn .cgk-ico { width: 16px; height: 16px; }
.cgk-obox__note { margin: 12px 0 0 !important; font-size: 13.5px; color: var(--cgk-muted); }
html[data-theme="dark"] a.cgk-obox__btn { background: var(--cgk-amber); color: var(--cgk-navy); }

/* inline alert [cgk_scam_alert] */
.cgk-alert { display: flex; gap: 14px; align-items: flex-start; margin: 1.6em 0; padding: 16px 18px; border-radius: 16px; background: var(--cgk-alert); border: 1px solid var(--cgk-alert-line); }
.cgk-alert__icon { width: 22px; height: 22px; margin-top: 2px; color: var(--cgk-danger); }
.cgk-alert p { margin: 0 !important; }
.cgk-alert__title { font-family: var(--cgk-font-head); font-weight: 600; color: var(--cgk-alert-ink); }
.cgk-alert__text { font-size: .96em; }
.cgk-styled .cgk-alert a { color: var(--cgk-alert-ink); }

/* last verified [cgk_last_verified] */
.cgk-verified { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--cgk-success); background: color-mix(in srgb, var(--cgk-success) 10%, transparent); }
.cgk-verified .cgk-ico { width: 15px; height: 15px; }

/* sources box */
.cgk-sources { margin: 36px 0 8px; padding: 18px 22px; border-radius: 16px; background: var(--cgk-soft); border: 1px solid var(--cgk-border); }
.cgk-sources__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-family: var(--cgk-font-head); font-weight: 600; color: var(--cgk-heading); }
.cgk-sources__title .cgk-ico { color: var(--cgk-link); }
.cgk-sources ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: .95em; }
.cgk-sources a .cgk-ico { width: 13px; height: 13px; margin-left: 4px; opacity: .6; }

/* author box */
.cgk-author { display: flex; gap: 18px; align-items: flex-start; margin: 28px 0 8px; padding: 20px 22px; border: 1px solid var(--cgk-border); border-radius: 18px; background: var(--cgk-surface); box-shadow: var(--cgk-shadow); }
.cgk-author__avatar { border-radius: 50%; flex-shrink: 0; }
.cgk-author p { margin: 0; }
.cgk-author__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cgk-muted); }
.cgk-author__name { font-family: var(--cgk-font-head); font-size: 18px; font-weight: 600; margin: 2px 0 6px !important; }
.cgk-styled .cgk-author__name a { color: var(--cgk-heading); text-decoration: none; }
.cgk-author__bio { font-size: 15px; color: var(--cgk-text); }

/* =====================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1100px) {
  .cgk-nav { display: none; }
  .cgk-nav-spacer { display: block; flex: 1; }
  .cgk-burger { display: inline-block; }
  .cgk-header__inner { gap: 12px; }
}
@media (max-width: 900px) {
  .cgk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .cgk-fbrand { grid-column: 1 / -1; }
  .cgk-scam__card { flex-wrap: wrap; }
  .cgk-scam__link { margin-left: 62px; }
}
@media (max-width: 640px) {
  :root { --cgk-header-h: 64px; }
  .cgk-wrap { padding-left: 16px; padding-right: 16px; }
  .cgk-logo__mark { width: 38px; height: 38px; }
  .cgk-logo__name { font-size: 18px; }
  .cgk-logo__sub { font-size: 9.5px; letter-spacing: .12em; }
  .cgk-header .cgk-actions > :is(.cgk-mode, .cgk-cta) { display: none; }
  .cgk-topbar { font-size: 12px; }
  .cgk-topbar__icon { display: none; }
  .cgk-topbar__full { display: none; }
  .cgk-topbar__short { display: inline; }
  .cgk-topbar a { margin-left: 2px; }
  .cgk-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cgk-totop { margin-left: 0; }
  .cgk-byline { align-items: flex-start; }
  .cgk-author { flex-direction: column; }
  .cgk-scam__card { align-items: flex-start; }
  .cgk-scam__link { margin-left: 0; }
  .cgk-sform { flex-direction: column; }
  body.cgk-kit.ast-separate-container :is(.ast-article-single, .ast-article-post) { padding: 28px 18px; }
  body.cgk-kit.separate-containers .inside-article { padding: 28px 18px; }
}
@media (max-width: 380px) {
  .cgk-logo__sub { display: none; }
}

@media print {
  .cgk-header, .cgk-footer, .cgk-drawer, .cgk-fab, .cgk-announce, .cgk-topbar, .cgk-skip, .cgk-scam { display: none !important; }
  body.cgk-kit { background: #fff !important; color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .cgk-kit *, .cgk-kit *::before, .cgk-kit *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
