/* =====================================================================================================
   Korea Guidebook design layer (kgb-platform 1.8)
   Loaded after Astra, its customizer CSS, kgb.css and kgb-seo-helper, so it restyles them without
   touching theme or third-party files. Design tokens live at the top of kgb.css (:root --kgb-*).
   To undo the redesign: delete the wp_enqueue_style('kgb-design', …) line in includes/assets.php.
   ===================================================================================================== */

/* Self-hosted fonts (1.8.2). font-display: optional → the page never re-flows when a font arrives (no CLS).
   Pretendard Variable: only the subsets with Latin letters and punctuation (the site is English); Hangul uses the
   system Korean font. Plus Jakarta Sans: Google Fonts latin subset (one variable file, 700–800). Both SIL OFL 1.1. */
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-91.woff2") format("woff2-variations"), url("fonts/pretendard-91.woff2") format("woff2");
  unicode-range: U+20-22,U+27-2a,U+2c-39,U+3a-3b,U+3f,U+41-4e,U+4f-5d,U+61-7b,U+7d,U+a0-a1,U+ab,U+ad-ae,U+b7,U+bb,U+bf,U+2013-2014,U+201c-201d,U+2122,U+ac00,U+ace0,U+ae30,U+b2e4,U+b85c,U+b9ac,U+c0ac,U+c2a4,U+c2dc,U+c774,U+c778,U+c9c0,U+d558; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-88.woff2") format("woff2-variations"), url("fonts/pretendard-88.woff2") format("woff2");
  unicode-range: U+26,U+2b,U+3e,U+40,U+7e,U+ac01,U+ac19,U+ac1d,U+aca0,U+aca9,U+acb0,U+ad8c,U+ae09,U+ae38,U+ae40,U+aed8,U+b09c,U+b0a0,U+b108,U+b204,U+b298,U+b2d8,U+b2eb-b2ec,U+b2f4,U+b313,U+b358,U+b450,U+b4e0,U+b54c,U+b610,U+b780,U+b78c,U+b791,U+b8e8,U+b958,U+b974,U+b984,U+b9b0,U+b9bc-b9bd,U+b9ce,U+ba70,U+bbfc,U+bc0f,U+bc15,U+bc1b,U+bc31,U+bc95,U+bcc0,U+bcc4,U+bd81,U+bd88,U+c0c8,U+c11d,U+c13c,U+c158,U+c18d,U+c1a1,U+c21c,U+c4f0,U+c54a,U+c560,U+c5b8,U+c5c8,U+c5f4,U+c628,U+c62c,U+c678,U+c6cc,U+c808,U+c810,U+c885,U+c88b,U+c900,U+c988,U+c99d,U+c9c8,U+cc3d-cc3e,U+cc45,U+cd08,U+ce20,U+cee4,U+d074,U+d0a4,U+d0dd,U+d2b9,U+d3b8,U+d3c9,U+d488,U+d544,U+d559,U+d56d,U+d588,U+d615,U+d648,U+d655,U+d658,U+d65c; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-87.woff2") format("woff2-variations"), url("fonts/pretendard-87.woff2") format("woff2");
  unicode-range: U+23,U+25,U+5f,U+a9,U+ac08,U+ac78,U+aca8,U+acac,U+ace8,U+ad70,U+adc0,U+addc,U+b137,U+b140,U+b208,U+b290,U+b2f5,U+b3c5,U+b3cc,U+b420,U+b429,U+b529,U+b530,U+b77d,U+b79c,U+b7a8,U+b7c9,U+b7f0,U+b7fc,U+b828,U+b860,U+b9ad,U+b9c1,U+b9c9,U+b9dd-b9de,U+b9e8,U+ba38-ba39,U+babb,U+bc00,U+bc8c,U+bca0,U+bca4,U+bcd1,U+bcfc,U+bd09,U+bdf0,U+be60,U+c0ad,U+c0b4,U+c0bc,U+c190,U+c1fc,U+c220,U+c288,U+c2b9,U+c2f6,U+c528,U+c545,U+c558,U+c5bc,U+c5d4,U+c600,U+c644,U+c6c0,U+c6c3,U+c721,U+c798,U+c7a1,U+c811,U+c838,U+c871,U+c904,U+c990,U+c9dc,U+cc38,U+cc44,U+cca0,U+cd1d,U+cd95,U+cda9,U+ce5c,U+cf00,U+cf58,U+d150,U+d22c,U+d305,U+d328,U+d37c,U+d3f0,U+d551,U+d5a5,U+d5c8,U+d5d8,U+d63c,U+d64d,U+d669,U+d734,U+d76c; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-86.woff2") format("woff2-variations"), url("fonts/pretendard-86.woff2") format("woff2");
  unicode-range: U+3c-3d,U+2026,U+24d2,U+314b,U+ac11,U+acf3,U+ad74,U+ad81,U+adf9,U+ae34,U+af43,U+afb8,U+b05d,U+b07c,U+b110,U+b118,U+b17c,U+b180,U+b18d,U+b192,U+b2cc,U+b355,U+b378,U+b4a4,U+b4ef,U+b78d,U+b799,U+b7a9,U+b7fd,U+b807,U+b80c,U+b839,U+b9b4,U+b9db,U+ba3c,U+bab0,U+bba4,U+bc94,U+be4c,U+c154,U+c1c4,U+c26c,U+c2ac,U+c2ed,U+c4f4,U+c55e,U+c561,U+c571,U+c5b5,U+c5c4,U+c654-c655,U+c695,U+c6e8,U+c6f9,U+c724,U+c751,U+c775,U+c7a0,U+c7c1,U+c874,U+c880,U+c9d5,U+c9f8,U+cabd,U+cc29,U+cc2c,U+cca8,U+ccab,U+ccd0,U+ce21,U+ce35,U+ce7c,U+ce90,U+cee8,U+cef4,U+cfe0,U+d070,U+d0b9,U+d0c1,U+d0c4,U+d0c8,U+d15c,U+d1a1,U+d2c0,U+d300,U+d314,U+d3ed,U+d478,U+d480,U+d48d,U+d508,U+d53d,U+d5e4,U+d611,U+d61c,U+d68d,U+d6a8,U+d798; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-71.woff2") format("woff2-variations"), url("fonts/pretendard-71.woff2") format("woff2");
  unicode-range: U+81-82,U+84,U+a2-a5,U+a7-a8,U+aa,U+ac,U+b1-b3,U+b6,U+b8-ba,U+bc-be,U+c0,U+c2,U+c6-cb,U+ce-d0,U+d4,U+d8-d9,U+db-dc,U+de-df,U+e6,U+eb,U+ee-f0,U+f4,U+f7-f9,U+fb,U+fe-ff,U+111,U+126-127,U+132-133,U+138,U+13f-142,U+149-14b,U+152-153,U+166-167,U+2bc,U+2c7,U+2d0,U+2d8-2d9,U+2db-2dd,U+391-394,U+396-3a1,U+3a3-3a9,U+3b2-3b6,U+3b8,U+3bc,U+3be-3c1,U+3c3-3c9,U+2010,U+2015-2016,U+2018-2019,U+201b,U+201f-2021,U+2025,U+2030,U+2033-2036,U+203c,U+203e,U+2042,U+2074,U+207a-207f,U+2081-2084,U+2109,U+2113,U+2116,U+2121,U+2126,U+212b,U+2153-2154; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-81.woff2") format("woff2-variations"), url("fonts/pretendard-81.woff2") format("woff2");
  unicode-range: U+24,U+60,U+3b9,U+3bb,U+3bd,U+2191,U+2606,U+300c-300d,U+3131,U+3134,U+3139,U+3141-3142,U+3148,U+3161,U+3163,U+321c,U+4eba,U+5317,U+ac31,U+ac77,U+ac9f,U+acb9,U+acf0-acf1,U+acfd,U+ad73,U+af3d,U+b00c,U+b04a,U+b057,U+b0c4,U+b188,U+b1cc,U+b214,U+b2db,U+b2ee,U+b304,U+b4ed,U+b518,U+b5bc,U+b625,U+b69c-b69d,U+b7ac,U+b801,U+b86c,U+b959,U+b95c,U+b985,U+ba48,U+bb58,U+bc0c,U+bc38,U+bc85,U+bc9a,U+bf40,U+c068,U+c0bd,U+c0cc,U+c12f,U+c149,U+c1e0,U+c22b,U+c22d,U+c250,U+c2fc,U+c300,U+c313,U+c370,U+c3d8,U+c557,U+c580,U+c5e3,U+c62e,U+c634,U+c6f0,U+c74d,U+c783,U+c78e,U+c796,U+c7bc,U+c92c,U+ca4c,U+cc1c,U+cc54,U+cc59,U+ce04,U+cf30,U+cfc4,U+d140,U+d321,U+d38c,U+d399,U+d54f,U+d587,U+d5d0,U+d6e8,U+d770; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-82.woff2") format("woff2-variations"), url("fonts/pretendard-82.woff2") format("woff2");
  unicode-range: U+d7,U+ea,U+fc,U+2192,U+25bc,U+3000,U+3137,U+3145,U+315c,U+7f8e,U+ac13,U+ac71,U+ac90,U+acb8,U+ace7,U+ad7f,U+ae50,U+aef4,U+af34,U+afbc,U+b048,U+b09a,U+b0ad,U+b0bc,U+b113,U+b125,U+b141,U+b20c,U+b2d9,U+b2ed,U+b367,U+b369,U+b374,U+b3cb,U+b4ec,U+b611,U+b760,U+b81b,U+b834,U+b8b0,U+b8e1,U+b989,U+b9d1,U+b9e1,U+b9fa,U+ba4d,U+ba78,U+bb35,U+bb54,U+bbf9,U+bc11,U+bcb3,U+bd05,U+bd95,U+bdd4,U+be10,U+bed0,U+bf51,U+c0d8,U+c232,U+c2b7,U+c2eb,U+c378,U+c500,U+c52c,U+c549,U+c568,U+c598,U+c5c9,U+c61b,U+c639,U+c67c,U+c717,U+c78a,U+c80a,U+c90c-c90d,U+c950,U+c9e7,U+cbe4,U+cca9,U+cce4,U+cdb0,U+ce78,U+ce94,U+ce98,U+cf8c,U+d018,U+d034,U+d0f1,U+d1b1,U+d280,U+d2f8,U+d338,U+d380,U+d3b4,U+d610,U+d69f,U+d6fc,U+d758; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-85.woff2") format("woff2-variations"), url("fonts/pretendard-85.woff2") format("woff2");
  unicode-range: U+5e,U+25b2,U+25b6,U+314e,U+ac24,U+ace1,U+ace4,U+ae68,U+af2d,U+b0d0,U+b0e5,U+b150,U+b155,U+b193,U+b2c9,U+b2dd,U+b3c8,U+b3fc,U+b410,U+b458,U+b4dd,U+b5a0,U+b5a4,U+b5bb,U+b7b5,U+b838,U+b840,U+b86f,U+b8f9,U+b960,U+b9e5,U+bab8,U+bb50,U+bc1d,U+bc24-bc25,U+bca8,U+bcbd,U+bd04,U+bd10,U+bd24,U+be48,U+be5b,U+be68,U+c05c,U+c12c,U+c140,U+c15c,U+c168,U+c194,U+c219,U+c27d,U+c2a8,U+c2f1,U+c2f8,U+c368,U+c554-c555,U+c559,U+c564,U+c5d8,U+c5fc,U+c625,U+c65c,U+c6b1,U+c728,U+c794,U+c84c,U+c88c,U+c8e0,U+c8fd,U+c998,U+c9dd,U+cc0d,U+cc30,U+ceec,U+cf13,U+cf1c,U+cf5c,U+d050,U+d07c,U+d0a8,U+d134,U+d138,U+d154,U+d1f4,U+d2bc,U+d329,U+d32c,U+d3d0,U+d3f4,U+d3fc,U+d56b,U+d5cc,U+d600-d601,U+d639,U+d6c8,U+d754,U+d765; }
@font-face { font-family: "Pretendard Variable"; font-weight: 45 920; font-style: normal; font-display: optional;
  src: url("fonts/pretendard-89.woff2") format("woff2-variations"), url("fonts/pretendard-89.woff2") format("woff2");
  unicode-range: U+d,U+7c,U+ac10,U+ac15,U+ac74,U+ac80,U+ac83,U+acc4,U+ad11,U+ad50,U+ad6d,U+adfc,U+ae00,U+ae08,U+ae4c,U+b0a8,U+b124,U+b144,U+b178,U+b274,U+b2a5,U+b2e8,U+b2f9,U+b354,U+b370,U+b418,U+b41c,U+b4f1,U+b514,U+b798,U+b808,U+b824-b825,U+b8cc,U+b978,U+b9d0,U+b9e4,U+baa9,U+bb3c,U+bc18,U+bc1c,U+bc30,U+bc84,U+bcf5,U+bcf8,U+bd84,U+be0c,U+be14,U+c0b0,U+c0c9,U+c0dd,U+c124,U+c2dd,U+c2e4,U+c2ec,U+c54c,U+c57c-c57d,U+c591,U+c5c5-c5c6,U+c5ed,U+c608,U+c640,U+c6b8,U+c6d4,U+c784,U+c7ac,U+c800-c801,U+c9c1,U+c9d1,U+cc28,U+cc98,U+cc9c,U+ccad,U+cd5c,U+cd94,U+cd9c,U+cde8,U+ce68,U+cf54,U+d0dc,U+d14c,U+d1a0,U+d1b5,U+d2f0,U+d30c,U+d310,U+d398,U+d45c,U+d50c,U+d53c,U+d560,U+d568,U+d589,U+d604,U+d6c4,U+d788; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700 800; font-style: normal; font-display: optional;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------------ 0. Astra palette → our tokens
   Astra's own elements (links, buttons, menus, headings) use these, so they follow the new palette too. */
:root {
  --ast-global-color-0: var(--kgb-primary);
  --ast-global-color-1: var(--kgb-primary-hover);
  --ast-global-color-2: var(--kgb-ink);
  --ast-global-color-3: var(--kgb-text);
  --ast-global-color-4: var(--kgb-surface);
  --ast-global-color-5: var(--kgb-bg);
  --ast-global-color-6: var(--kgb-border);
  --ast-global-color-7: var(--kgb-ink);
  --ast-global-color-8: var(--kgb-muted);
  --ast-border-color: var(--kgb-border);
  --kgb-band-pad: clamp(56px, 8vw, 92px);
  --kgb-header-h: 72px;
}

/* ------------------------------------------------------------------ 1. Type */
body,
button, input, select, textarea,
.ast-button, .ast-custom-button, .menu-link {
  font-family: var(--kgb-font-body);
}
body {
  font-size: 17px; line-height: 1.7; color: var(--kgb-text); background-color: var(--kgb-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-title, .site-title, .site-title a, .ast-archive-title, .kgb-hero__title {
  font-family: var(--kgb-font-heading); color: var(--kgb-ink); text-transform: none;
}
h1, .entry-content h1, .entry-title, .ast-archive-title, .kgb-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
h2, .entry-content h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
h3, .entry-content h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.site-title, .site-title a { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.single-post .entry-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.ast-separate-container,
body.ast-separate-container { background-color: var(--kgb-bg); }

/* Reading width: about 70 characters. */
.single-post .entry-content > :where(p, ul, ol, h2, h3, h4, blockquote, .kgb-tip, .kgb-note, .kgb-warning, .kgb-summary) { max-width: 720px; }
.entry-content :where(p, li, td, th, dd, blockquote, figcaption) > a,
.entry-content :where(p, li, td, th, dd, blockquote) > :where(strong, em) > a { color: var(--kgb-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content :where(p, li, td, th, dd, blockquote, figcaption) > a:hover { color: var(--kgb-primary-hover); }
/* Components are not prose links: no underline, their own colours (beats Astra's ".entry-content a"). */
.entry-content a:is(.kgb-topic, .kgb-qchip, .kgb-link-arrow, .kgb-btn, .kgb-box__more),
.entry-content :is(.kgb-gcard, .kgb-section__head, .kgb-li, .kgb-cards, .kgb-trow, .kgb-board, .kgb-related, .kgb-toc-box, .kgb-toc-float, .kgb-askbox, .kgb-hero__credit) a,
.kgb-home a { text-decoration: none; }
.entry-content a.kgb-topic { color: #fff; }
.entry-content a.kgb-topic:hover { color: var(--kgb-primary); }
.entry-content a.kgb-qchip { color: var(--kgb-ink); }
.entry-content a.kgb-qchip:hover { color: var(--kgb-primary-hover); }
.entry-content a.kgb-btn, .entry-content a.kgb-btn:hover { color: #fff; }
.entry-content a.kgb-link-arrow { color: var(--kgb-primary); }
.entry-content .kgb-gcard__title a { color: var(--kgb-ink); }
.entry-content .kgb-gcard__title a:hover { color: var(--kgb-primary); }

/* Secondary text */
.entry-meta, .entry-meta *, .ast-blog-meta-container, .kgb-meta, .kgb-small, .kgb-related__date, .kgb-gcard__meta,
.posted-on, .byline, .ast-reading-time, .kgb-trow__date, .kgb-trow__views, .kgb-trow__likes {
  font-size: 14px; color: var(--kgb-muted);
}
.entry-meta a, .kgb-meta a { color: var(--kgb-text); }

/* Focus ring on everything interactive (keyboard only). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--kgb-primary); outline-offset: 2px; border-radius: 4px;
}
:where(input, select, textarea):focus-visible { outline: none; }

/* ------------------------------------------------------------------ 2. Header: sticky, translucent, border once scrolled */
#masthead.site-header {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 99;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.kgb-is-scrolled #masthead.site-header { border-bottom-color: var(--kgb-border); }
#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-above-header-bar,
#masthead .ast-below-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar { background: transparent !important; border-bottom: 0 !important; box-shadow: none; }
#masthead .main-header-bar { min-height: var(--kgb-header-h); }
#masthead .main-header-menu .menu-link { color: var(--kgb-ink); font-weight: 500; font-size: 15px; }
#masthead .main-header-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .current-menu-item > .menu-link,
#masthead .main-header-menu .current-menu-ancestor > .menu-link { color: var(--kgb-primary); }
#masthead .sub-menu { border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius-sm); box-shadow: var(--kgb-shadow); overflow: hidden; }
#masthead .menu-toggle, #masthead .ast-mobile-menu-trigger-minimal {
  background: transparent !important; color: var(--kgb-ink) !important; border: 1px solid var(--kgb-border) !important; border-radius: var(--kgb-radius-sm);
}
#masthead .menu-toggle svg { fill: currentColor; }
/* Header button: only the visible copy of each viewport. Astra prints a hidden off-canvas copy too; keep it hidden. */
#masthead [data-section*="section-hb-button-"] .menu-link { display: none !important; }

/* ------------------------------------------------------------------ 3. Buttons */
.kgb-btn, .ast-custom-button, .wp-block-button__link, .ast-button, #comments .submit, #respond input[type="submit"],
.kgb-search__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: var(--kgb-radius-pill) !important; border: 1px solid var(--kgb-primary);
  background: var(--kgb-primary); color: #fff; font-family: var(--kgb-font-body); font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; box-shadow: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.kgb-btn:hover, .ast-custom-button:hover, .wp-block-button__link:hover, .ast-button:hover, #comments .submit:hover, #respond input[type="submit"]:hover,
.kgb-search__btn:hover {
  background: var(--kgb-primary-hover); border-color: var(--kgb-primary-hover); color: #fff;
}
.kgb-btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.kgb-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
/* Secondary */
.kgb-btn--secondary, .is-style-outline .wp-block-button__link {
  background: var(--kgb-bg); color: var(--kgb-ink); border-color: var(--kgb-border);
}
.kgb-btn--secondary:hover, .is-style-outline .wp-block-button__link:hover { background: var(--kgb-surface); color: var(--kgb-ink); border-color: var(--kgb-border); }
/* Header button = primary (Astra "Button 1"). The Google-styled variant (.kgb-gjoin) keeps Google's white style. */
#masthead .ast-header-button-1 .ast-custom-button:not(.kgb-gjoin) {
  min-height: 44px; padding: 0 20px; background: var(--kgb-primary); color: #fff; border: 1px solid var(--kgb-primary);
}
#masthead .ast-header-button-1 .ast-custom-button:not(.kgb-gjoin):hover { background: var(--kgb-primary-hover); border-color: var(--kgb-primary-hover); color: #fff; }
/* Ghost / text links with an arrow */
.kgb-link-arrow, .kgb-section__head > a, .kgb-box__more {
  display: inline-flex; align-items: center; gap: 6px; color: var(--kgb-primary); font-weight: 600; font-size: 15px; text-decoration: none;
}
.kgb-link-arrow .kgb-icon { transition: transform .2s; }
.kgb-link-arrow:hover { color: var(--kgb-primary-hover); }
.kgb-link-arrow:hover .kgb-icon { transform: translateX(4px); }

/* ------------------------------------------------------------------ 4. Home: bands with alternating backgrounds */
.kgb-home { --kgb-gap: 24px; }
.kgb-band { position: relative; padding: var(--kgb-band-pad) 0; }
.kgb-band--surface { background: var(--kgb-surface); box-shadow: 0 0 0 100vmax var(--kgb-surface); clip-path: inset(0 -100vmax); }
.kgb-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.kgb-section__head h2 { margin: 0; }
.kgb-home .kgb-box--hot { background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); box-shadow: var(--kgb-shadow-sm); padding: 8px 24px 20px; }
.kgb-home .kgb-cta {
  margin: 0; padding: clamp(32px, 5vw, 56px); text-align: center; border-radius: var(--kgb-radius-lg);
  background: var(--kgb-primary-soft); border: 1px solid color-mix(in srgb, var(--kgb-primary) 14%, transparent);
}
.kgb-home .kgb-cta h2 { margin: 0 0 8px; }
.kgb-home .kgb-cta p { color: var(--kgb-text); margin: 0 auto; max-width: 560px; }
.kgb-cta .kgb-google-btn { display: flex; justify-content: center; margin-top: 20px; }
.kgb-cta__fallback { margin-top: 20px; }
.kgb-cta .kgb-google-btn[data-done] + .kgb-cta__fallback { display: none; }

/* ------------------------------------------------------------------ 5. Hero: one photo, rounded, no corner gaps
   Gap cause (before 1.8): the hero box had radius 0 0 32px 32px on a dark background, while the photo inside got
   border-radius 14px from ".entry-content img" and was scaled 1.06 → the background showed at the corners.
   Fix: the frame clips (overflow hidden + radius), the photo has no radius of its own and fills the frame. */
.kgb-hero, .kgb-hero.kgb-hero--one {
  position: relative; isolation: isolate; overflow: hidden;
  width: auto; margin: 24px 0 0; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 88px);
  min-height: clamp(420px, 58vh, 560px); display: grid; place-items: center; text-align: center;
  border-radius: var(--kgb-radius-lg); background: var(--kgb-ink); color: #fff;
}
.kgb-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(15, 23, 42, .35) 0%, rgba(15, 23, 42, .55) 55%, rgba(15, 23, 42, .78) 100%);
}
/* 1.9.1: the frame has no z-index (no stacking context of its own): the photo sits under the dark overlay (::after, -1)
   while the credit chip (z-index 2) sits above it. Before, the whole frame was at -2, so the overlay dimmed the credit. */
.kgb-hero__media { position: absolute; inset: 0; z-index: auto; margin: 0; padding: 0; background: none; border-radius: inherit; overflow: hidden; }
.kgb-hero__media img, .entry-content .kgb-hero__media img {
  position: absolute; inset: 0; z-index: -2;
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transform: none;
}
.kgb-hero__credit {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: calc(100% - 32px); margin: 0; padding: 5px 12px;
  border-radius: var(--kgb-radius-pill); background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; line-height: 1.4; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kgb-hero__credit a { color: #fff !important; text-decoration: underline; text-underline-offset: 2px; }
.kgb-hero__inner { width: 100%; max-width: 780px; display: flex; flex-direction: column; align-items: center; }
.kgb-hero__title, .kgb-hero--one .kgb-hero__title { color: #fff; margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.25rem); text-wrap: balance; }
.kgb-hero__sub { color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; margin: 0 0 28px; max-width: 620px; }

/* ------------------------------------------------------------------ 6. Search box */
.kgb-search, .kgb-hero .kgb-search {
  box-sizing: border-box; position: relative; display: flex; align-items: center; width: 100%; max-width: 680px; height: 60px; margin: 0 auto;
  padding: 0 6px 0 0; background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius-pill);
  box-shadow: var(--kgb-shadow); transition: border-color .2s, box-shadow .2s; text-align: left;
}
.kgb-search:focus-within { border-color: var(--kgb-primary); box-shadow: var(--kgb-shadow), 0 0 0 4px var(--kgb-primary-soft); }
.kgb-search__icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: flex; color: var(--kgb-muted); pointer-events: none; }
.kgb-search .kgb-search__input, .kgb-search input[type="search"].kgb-search__input, .entry-content .kgb-search input[type="search"] {
  flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0 12px 0 52px !important; border: 0 !important; border-radius: var(--kgb-radius-pill);
  background: transparent; box-shadow: none !important; outline: none; color: var(--kgb-ink); font-size: 16px;
}
.kgb-search__input::placeholder { color: var(--kgb-muted); opacity: 1; }
.kgb-search__input::-webkit-search-cancel-button { cursor: pointer; }
.kgb-search .kgb-search__btn {
  position: static; flex: none; width: auto; height: 46px; min-height: 46px; padding: 0 22px; margin: 0; transform: none;
}
.kgb-search__btn .kgb-icon { display: none; }
.kgb-search.is-loading .kgb-search__icon { animation: kgb-pulse 1s ease-in-out infinite; }
@keyframes kgb-pulse { 50% { opacity: .35; } }
.kgb-search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 50; margin: 0; padding: 6px; list-style: none;
  background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); box-shadow: var(--kgb-shadow-hover);
  max-height: min(420px, 60vh); overflow: auto; text-align: left;
}
.kgb-search__results [role="option"] a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--kgb-radius-sm); color: var(--kgb-ink); text-decoration: none; }
.kgb-search__results [role="option"] img, .kgb-search__emoji { width: 44px; height: 44px; flex: none; border-radius: var(--kgb-radius-sm); object-fit: cover; }
.kgb-search__emoji { display: grid; place-items: center; background: var(--kgb-surface); }
.kgb-search__results strong { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.kgb-search__results small { display: block; color: var(--kgb-muted); font-size: 13px; }
.kgb-search__results [role="option"].is-active a, .kgb-search__results [role="option"] a:hover { background: var(--kgb-primary-soft); }
.kgb-search__empty { padding: 12px; color: var(--kgb-muted); font-size: 14px; }
.kgb-search__all button {
  width: 100%; margin-top: 4px; padding: 10px; border: 0; border-top: 1px solid var(--kgb-border); background: none;
  color: var(--kgb-primary); font-weight: 600; font-size: 14px; text-align: left; cursor: pointer; border-radius: 0 0 var(--kgb-radius-sm) var(--kgb-radius-sm);
}
/* Popular searches */
.kgb-qchips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 16px 0 0; }
.kgb-qchips__label { color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 500; }
.kgb-qchip {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--kgb-radius-pill);
  background: var(--kgb-surface); color: var(--kgb-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s;
}
.kgb-qchip:hover { background: var(--kgb-primary-soft); color: var(--kgb-primary-hover); }
/* Topic chips (icon + label) */
.kgb-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.kgb-topic {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--kgb-radius-pill);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .2s, color .2s, border-color .2s;
}
.kgb-topic:hover { background: var(--kgb-bg); border-color: var(--kgb-bg); color: var(--kgb-primary); }
.kgb-topic .kgb-icon { flex: none; }
/* Search overlay (header icon) */
.kgb-overlay .kgb-search { max-width: 720px; }

/* ------------------------------------------------------------------ 7. Cards */
.kgb-cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.kgb-gcard {
  position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0;
  background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); overflow: hidden;
  box-shadow: var(--kgb-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.kgb-gcard:hover, .kgb-gcard:focus-within { transform: translateY(-4px); box-shadow: var(--kgb-shadow-hover); }
.kgb-gcard__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--kgb-surface); }
.kgb-gcard__media img, .entry-content .kgb-gcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.kgb-gcard__ph { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.kgb-gcard__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.kgb-gcard__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.kgb-pill-cat, .kgb-pill-new {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--kgb-radius-pill); font-size: 12px; font-weight: 600; line-height: 1;
}
.kgb-pill-cat { background: var(--kgb-primary-soft); color: var(--kgb-primary-hover); }
.kgb-pill-new, .kgb-trow__newtag { background: color-mix(in srgb, var(--kgb-accent) 18%, transparent); color: var(--kgb-ink); }
.kgb-gcard__title, .entry-content .kgb-gcard__title { margin: 0; font-size: 1.1rem; line-height: 1.4; font-weight: 700; letter-spacing: -0.005em; }
.kgb-gcard__title a {
  color: var(--kgb-ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kgb-gcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.kgb-gcard__title a:focus-visible { outline: none; }
.kgb-gcard:has(.kgb-gcard__title a:focus-visible) { outline: 3px solid var(--kgb-primary); outline-offset: 2px; }
.kgb-gcard__meta { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.kgb-gcard__likes { display: inline-flex; align-items: center; gap: 3px; }
.kgb-gcard__likes .kgb-icon { color: var(--kgb-accent); fill: currentColor; }
/* 1.9: views + likes on every card, and next to the date at the top of a post */
.kgb-gcard__stats { display: inline-flex; align-items: center; gap: 10px; }
.kgb-gcard__stat { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.kgb-meta-stats { display: inline-flex; align-items: center; gap: 12px; margin-left: 10px; vertical-align: middle; }
.kgb-meta-stats::before { content: "·"; margin-right: -2px; }
.kgb-meta-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The theme's ".entry-meta *" grey also hits the <path> inside the svg, so colour the path too (1.9.0 showed a grey heart) */
.kgb-meta-stat--likes .kgb-icon, .kgb-meta-stat--likes .kgb-icon * { color: var(--kgb-accent) !important; fill: currentColor; }
@media (max-width: 1023px) { .kgb-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .kgb-cardgrid { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .kgb-gcard, .kgb-gcard:hover, .kgb-gcard:focus-within, .kgb-link-arrow .kgb-icon, .archive .ast-article-inner { transition: none; transform: none; }
}

/* ------------------------------------------------------------------ 8. Category / search / blog archives (Astra grid) as cards */
:is(.archive, .search, .blog) .ast-separate-container .ast-article-post,
:is(.archive, .search, .blog) .ast-article-post { background: transparent; padding: 0; margin: 0; border: 0; box-shadow: none; }
:is(.archive, .search, .blog) .site-main > .ast-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0;
}
:is(.archive, .search, .blog) .site-main > .ast-row > article { width: auto; max-width: none; margin: 0; padding: 0; flex: none; }
:is(.archive, .search, .blog) .ast-article-inner {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); overflow: hidden;
  box-shadow: var(--kgb-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
:is(.archive, .search, .blog) .ast-article-inner:hover { transform: translateY(-4px); box-shadow: var(--kgb-shadow-hover); }
:is(.archive, .search, .blog) .ast-article-inner .post-content { padding: 0 0 18px !important; margin: 0 !important; width: 100%; display: flex; flex-direction: column; height: 100%; }
:is(.archive, .search, .blog) .ast-blog-featured-section { margin: 0 0 14px; padding: 0; }
:is(.archive, .search, .blog) .post-thumb-img-content { aspect-ratio: 16 / 9; overflow: hidden; background: var(--kgb-surface); }
:is(.archive, .search, .blog) .post-thumb-img-content img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
:is(.archive, .search, .blog) .ast-article-post .entry-title { margin: 0 18px 8px; font-size: 1.1rem; line-height: 1.4; letter-spacing: -0.005em; }
:is(.archive, .search, .blog) .ast-article-post .entry-title a {
  color: var(--kgb-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
:is(.archive, .search, .blog) .ast-article-post .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:is(.archive, .search, .blog) .ast-article-post .entry-meta { margin: 0 18px 6px; padding: 0; }
:is(.archive, .search, .blog) .ast-excerpt-container { margin: 0 18px; color: var(--kgb-text); font-size: 15px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:is(.archive, .search, .blog) .ast-excerpt-container p { margin: 0; }
:is(.archive, .search, .blog) .read-more { display: none; }
.ast-archive-description { background: transparent !important; padding: 8px 0 32px !important; margin: 0 0 8px; border: 0; }
.ast-archive-description .ast-archive-title { margin: 0 0 12px; }
.ast-archive-description p { max-width: 720px; margin-left: auto; margin-right: auto; color: var(--kgb-text); font-size: 17px; }
.ast-pagination, .navigation.pagination { margin-top: 40px; }
.ast-pagination .page-numbers, .navigation .page-numbers { border-radius: var(--kgb-radius-sm); }
.kgb-empty-suggest { margin: 32px 0 0; }
.kgb-empty-suggest h2 { margin: 0 0 20px; font-size: 1.5rem; }
@media (max-width: 1023px) { :is(.archive, .search, .blog) .site-main > .ast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { :is(.archive, .search, .blog) .site-main > .ast-row { grid-template-columns: 1fr; gap: 16px; } }
@media (prefers-reduced-motion: reduce) { :is(.archive, .search, .blog) .ast-article-inner:hover { transform: none; } }

/* ------------------------------------------------------------------ 9. Single post */
.single-post.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-single:not(.ast-related-post) { background: transparent; }
.single-post article.ast-article-single { position: relative; }
.single-post .entry-content > p { line-height: 1.7; }
.single-post .post-thumb-img-content img, .single-post .ast-single-post-featured-section img { border-radius: var(--kgb-radius-lg); }

/* Tip / note / warning */
.entry-content .kgb-tip, .entry-content .kgb-note, .entry-content .kgb-warning {
  margin: 1.6em 0; padding: 16px 20px; border: 0; border-left: 4px solid var(--kgb-primary); border-radius: 0 var(--kgb-radius-sm) var(--kgb-radius-sm) 0;
  background: var(--kgb-primary-soft); color: var(--kgb-text);
}
.entry-content .kgb-warning { border-left-color: var(--kgb-accent); background: color-mix(in srgb, var(--kgb-accent) 10%, var(--kgb-bg)); }
.entry-content .kgb-tip strong:first-child, .entry-content .kgb-note strong:first-child { color: var(--kgb-ink); }
.entry-content .kgb-summary { border-radius: var(--kgb-radius); border: 1px solid var(--kgb-border); background: var(--kgb-surface); padding: 20px 24px; }
.entry-content .kgb-summary-title, .entry-content .kgb-summary-title strong { color: var(--kgb-primary-hover); font-size: 13px; letter-spacing: .06em; }
/* kgb-seo-helper boxes in the new palette (that plugin keeps its own file; overridden here) */
.entry-content .kgb-figure img { border-radius: var(--kgb-radius); }
.entry-content .kgb-figure figcaption, .entry-content .kgb-credit { opacity: 1; color: var(--kgb-muted); font-size: 13px; }
.entry-content .kgb-figure figcaption a, .entry-content .kgb-credit a { color: inherit; }
.entry-content .kgb-recipe { border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius-lg); background: var(--kgb-surface); }
.entry-content .kgb-recipe-meta { opacity: 1; color: var(--kgb-muted); }
.entry-content .kgb-checklist li { border-bottom: 1px solid var(--kgb-border); }
.entry-content .kgb-checklist li::before { background: var(--kgb-primary); }
.entry-content .kgb-toc { border-radius: var(--kgb-radius); }

/* Tables: header on surface, row lines only, sideways scroll on phones */
.entry-content .kgb-table-wrap, .entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); }
.entry-content table { width: 100%; border-collapse: collapse; border: 0; margin: 0; font-size: 15px; }
.entry-content table th, .entry-content table td,
.entry-content .kgb-table-wrap th, .entry-content .kgb-table-wrap td { border: 0; border-bottom: 1px solid var(--kgb-border); padding: 12px 14px; text-align: left; vertical-align: top; }
.entry-content table thead th, .entry-content .kgb-table-wrap thead th { background: var(--kgb-surface); color: var(--kgb-ink); font-weight: 600; }
.entry-content table tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) { .entry-content table { min-width: 560px; } }

/* Table of contents: collapsible box on phones/tablets, sticky panel at the right on wide screens */
.kgb-toc--inline { display: none; }
.kgb-toc-box { margin: 1.6em 0; border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); background: var(--kgb-surface); max-width: 720px; }
.kgb-toc-box summary { padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--kgb-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.kgb-toc-box summary::-webkit-details-marker { display: none; }
.kgb-toc-box summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.kgb-toc-box[open] summary::after { transform: rotate(-135deg); }
.kgb-toc-box ol, .kgb-toc-box ul { margin: 0; padding: 0 18px 16px 36px; font-size: 15px; }
.kgb-toc-box li { margin: 6px 0; }
.kgb-toc-box a, .kgb-toc-float a { color: var(--kgb-text); text-decoration: none; }
.kgb-toc-box a:hover, .kgb-toc-float a:hover, .kgb-toc-box a.is-current, .kgb-toc-float a.is-current { color: var(--kgb-primary); }
.kgb-toc-float { display: none; }
@media (min-width: 1360px) {
  .kgb-toc-box { display: none; }
  .kgb-toc-float { display: block; position: absolute; top: 0; bottom: 0; left: calc(100% + 40px); width: 250px; }
  .kgb-toc-float__inner { position: sticky; top: calc(var(--kgb-header-h) + 40px); max-height: calc(100vh - 160px); overflow: auto; padding: 4px 0 4px 16px; border-left: 1px solid var(--kgb-border); }
  .kgb-toc-float__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kgb-muted); }
  .kgb-toc-float ol, .kgb-toc-float ul { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; }
  .kgb-toc-float li { margin: 0 0 10px; }
  .kgb-toc-float a { display: block; position: relative; }
  .kgb-toc-float a.is-current { font-weight: 600; }
  .kgb-toc-float a.is-current::before { content: ""; position: absolute; left: -18px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: var(--kgb-primary); }
}

/* Related guides + "ask the community" box */
.kgb-related--cards { margin: 48px 0 0; padding: 0; border: 0; background: none; }
.kgb-related--cards .kgb-related__title { margin: 0 0 20px; font-size: 1.5rem; }
.entry-content .kgb-related--cards .kgb-cardgrid { max-width: none; }
.kgb-askbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 32px 0 0; padding: 28px 32px; border-radius: var(--kgb-radius-lg); background: var(--kgb-surface); border: 1px solid var(--kgb-border);
}
.kgb-askbox p { margin: 0; }
.kgb-askbox__title { font-family: var(--kgb-font-heading); font-weight: 700; font-size: 1.25rem; color: var(--kgb-ink); }
.kgb-askbox__text { color: var(--kgb-muted); font-size: 15px; }
.entry-content .kgb-askbox a.kgb-btn { color: #fff; text-decoration: none; }
.kgb-prevnext__btn { border-radius: var(--kgb-radius) !important; border-color: var(--kgb-border) !important; }

/* Comment form */
#respond input[type="text"], #respond input[type="email"], #respond input[type="url"], #respond textarea,
.kgb-form input[type="text"], .kgb-form input[type="email"], .kgb-form textarea, .kgb-form select {
  border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius-sm); background: var(--kgb-bg); color: var(--kgb-ink);
  padding: 10px 14px; transition: border-color .2s, box-shadow .2s;
}
#respond input:focus, #respond textarea:focus, .kgb-form input:focus, .kgb-form textarea:focus, .kgb-form select:focus {
  border-color: var(--kgb-primary); box-shadow: 0 0 0 4px var(--kgb-primary-soft); outline: none;
}
.comment-reply-title, .comments-title { font-family: var(--kgb-font-heading); }

/* Back to top: round, white, after 400px of scrolling */
#ast-scroll-top {
  display: none !important; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; right: 20px; bottom: 20px;
  border-radius: 50% !important; background: var(--kgb-bg) !important; color: var(--kgb-ink) !important; border: 1px solid var(--kgb-border);
  box-shadow: var(--kgb-shadow);
}
.kgb-show-top #ast-scroll-top { display: flex !important; }
#ast-scroll-top:hover { color: var(--kgb-primary) !important; }
#ast-scroll-top .ast-icon svg { width: 14px; height: 14px; fill: currentColor; }

/* ------------------------------------------------------------------ 10. Footer (4 columns on dark) */
.kgb-footer-on #colophon { display: none; }
.kgb-sitefooter { background: var(--kgb-ink); color: rgba(255, 255, 255, .7); padding: 64px 24px 28px; font-size: 15px; }
.kgb-sitefooter__inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.kgb-sitefooter__logo { font-family: var(--kgb-font-heading); font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.kgb-sitefooter__brand p { margin: 12px 0 0; max-width: 340px; line-height: 1.6; }
.kgb-sitefooter__title { margin: 0 0 14px; color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.kgb-sitefooter ul { list-style: none; margin: 0; padding: 0; }
.kgb-sitefooter li { margin: 0 0 10px; }
.kgb-sitefooter a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s; }
.kgb-sitefooter a:hover, .kgb-sitefooter a:focus-visible { color: #fff; }
.kgb-sitefooter :focus-visible { outline-color: #fff; }
.kgb-sitefooter__bottom {
  max-width: 1200px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px;
}
.kgb-sitefooter__bottom p { margin: 0; }
@media (max-width: 860px) { .kgb-sitefooter__inner { grid-template-columns: 1fr 1fr; } .kgb-sitefooter__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .kgb-sitefooter { padding: 48px 20px 24px; } .kgb-sitefooter__inner { grid-template-columns: 1fr; gap: 28px; } }

/* ------------------------------------------------------------------ 11. Community board touches */
.kgb-board__hero { border-radius: var(--kgb-radius-lg); }
.kgb-sort { border-radius: var(--kgb-radius-pill); }
.kgb-trow__title { color: var(--kgb-ink); }
.kgb-chip { border-radius: var(--kgb-radius-pill); }

/* ------------------------------------------------------------------ 12. Phones */
@media (max-width: 600px) {
  .kgb-home { padding-left: 16px; padding-right: 16px; }   /* the home page uses Astra's full-width layout: keep a gutter */
  body { font-size: 16.5px; }
  .kgb-hero, .kgb-hero.kgb-hero--one { margin-top: 12px; min-height: 0; padding: 40px 16px 64px; border-radius: var(--kgb-radius); }
  .kgb-hero__sub { display: none; }
  .kgb-search, .kgb-hero .kgb-search { height: 56px; }
  .kgb-search .kgb-search__btn { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .kgb-search__btn .kgb-icon { display: block; }
  .kgb-search__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kgb-search .kgb-search__input, .entry-content .kgb-search input[type="search"] { padding-left: 46px !important; font-size: 16px; }
  .kgb-search__icon { left: 16px; }
  .kgb-qchips { gap: 6px; }
  .kgb-qchips__label { width: 100%; }
  .kgb-topics { gap: 8px; }
  .kgb-topic { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .kgb-hero__credit { left: 12px; bottom: 12px; font-size: 11px; }
  .kgb-askbox { padding: 22px 20px; }
}

/* ================================================================== 13. 1.8.3: mobile hero
   Bug fixed: .kgb-hero is a grid and its content column could not shrink below its min-content width
   (grid items default to min-width:auto), so on narrow phones (360-375px) the H1, search box and buttons
   were pushed right and clipped (up to 12px off centre). */
.kgb-hero, .kgb-hero.kgb-hero--one { grid-template-columns: minmax(0, 1fr); }
.kgb-hero__inner { min-width: 0; max-width: min(780px, 100%); box-sizing: border-box; }
.kgb-hero__media picture { display: block; width: 100%; height: 100%; }
.kgb-hero__join { display: none; }

/* Tablet: search box 560px, the 4 topic buttons on one line */
@media (min-width: 768px) and (max-width: 1023px) {
  .kgb-hero .kgb-search { max-width: 560px; }
  .kgb-topics { flex-wrap: nowrap; }
  .kgb-topic { padding: 0 14px; font-size: 14px; }
}

/* Phones: one column, one centre line. Order: H1 → intro → search → popular searches → topics → CTA.
   1.9: the photo is the background of the whole hero again (1.8.3 put it in a separate 4:3 card under the search box). */
@media (max-width: 767px) {
  :root { --kgb-header-h: 60px; }
  #masthead .ast-mobile-header-wrap .site-primary-header-wrap,
  #masthead .ast-mobile-header-wrap .ast-primary-header-bar { min-height: 60px; }
  #masthead .menu-toggle { min-width: 44px; min-height: 44px; }

  /* the only horizontal padding of the page content (+ notch safe areas) */
  .kgb-home { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .kgb-home *, .kgb-home *::before, .kgb-home *::after { box-sizing: border-box; }
  .kgb-hero, .kgb-hero.kgb-hero--one {
    display: flex; flex-direction: column; align-items: stretch; gap: 18px;
    width: 100%; min-height: 0; margin: 12px 0 0; padding: 32px 12px 52px;
    background: var(--kgb-ink); color: #fff; border-radius: 20px; overflow: hidden; isolation: isolate; text-align: center;
  }
  /* darker than desktop: on a narrow screen the text covers most of the photo */
  .kgb-hero::after { display: block; background: linear-gradient(180deg, rgba(15, 23, 42, .45) 0%, rgba(15, 23, 42, .58) 50%, rgba(15, 23, 42, .8) 100%); }
  /* children take the container width (not their content width), so the swipeable chip row can't widen the page */
  .kgb-hero__inner { order: 1; width: 100%; max-width: 100%; align-items: stretch; }
  .kgb-hero__inner > * { min-width: 0; max-width: 100%; }
  .kgb-hero__title, .kgb-hero--one .kgb-hero__title {
    color: #fff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35); margin: 0 0 10px; font-size: clamp(1.75rem, 7vw, 2.25rem); line-height: 1.2; text-wrap: balance;
  }
  .kgb-hero__sub, .kgb-hero--one .kgb-hero__sub {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    max-width: 100%; margin: 0 0 18px; color: rgba(255, 255, 255, .92); font-size: 15px; line-height: 1.55;
    opacity: 1; text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
  }
  .kgb-search, .kgb-hero .kgb-search { width: 100%; max-width: 100%; height: 52px; box-shadow: var(--kgb-shadow-sm); }
  .kgb-search .kgb-search__btn { width: 44px; height: 44px; min-height: 44px; }

  /* popular searches: one swipeable row instead of 2-3 wrapped rows */
  .kgb-qchips, .entry-content .kgb-hero p.kgb-qchips {   /* beat Astra's paragraph bottom margin */
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 12px 0 0; padding: 0 0 2px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .kgb-qchips::-webkit-scrollbar { display: none; }
  .kgb-qchips__label { width: auto; flex: none; color: rgba(255, 255, 255, .85); font-size: 14px; }
  .kgb-qchip, .entry-content a.kgb-qchip {
    flex: none; min-height: 44px; padding: 0 14px; scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .16); color: #fff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .kgb-qchip:hover, .entry-content a.kgb-qchip:hover { background: rgba(255, 255, 255, .28); color: #fff; }

  /* topics: 2 × 2, equal height, labels never wrap */
  .kgb-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
  .kgb-topic, .entry-content a.kgb-topic {
    min-width: 0; min-height: 48px; padding: 0 10px; justify-content: center; gap: 6px;
    border-radius: var(--kgb-radius); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); box-shadow: none;
    color: #fff; font-size: clamp(13px, 3.6vw, 15px); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .kgb-topic span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kgb-topic .kgb-icon { flex: none; color: #fff; }
  .kgb-topic:hover, .entry-content a.kgb-topic:hover { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .45); color: #fff; }

  /* photo: background of the whole hero (same as desktop: .kgb-hero__media is absolute, inset 0, z-index -2) */
  /* the frame has no z-index (no stacking context), so the photo sits under the dark overlay but the credit chip above it */
  .kgb-hero__media { position: absolute; inset: 0; z-index: auto; width: auto; height: auto; aspect-ratio: auto; margin: 0; border-radius: inherit; }
  .kgb-hero__media img, .entry-content .kgb-hero__media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
  .kgb-hero__credit { left: 12px; right: auto; bottom: 12px; max-width: calc(100% - 24px); font-size: 11px; }

  .kgb-hero__join, .entry-content a.kgb-hero__join { order: 3; display: flex; width: 100%; min-height: 48px; margin: 4px 0 0; color: #fff; }

  /* post meta: the views / likes go on their own line under "By … / date" on narrow screens */
  .kgb-meta-stats { display: flex; margin: 6px 0 0; }
  .kgb-meta-stats::before { content: none; }
}

/* Phones turned sideways (short screens): compact text-over-photo hero so the topics stay on screen */
@media (orientation: landscape) and (max-height: 500px) {
  .kgb-hero, .kgb-hero.kgb-hero--one { min-height: 0; padding: 20px 16px 24px; margin-top: 12px; }
  .kgb-hero__title, .kgb-hero--one .kgb-hero__title { font-size: 1.6rem; margin-bottom: 12px; }
  .kgb-hero__sub, .kgb-qchips { display: none; }
  .kgb-topics { margin-top: 14px; }
  .kgb-topic { min-height: 44px; }
  .kgb-hero__credit { top: 10px; right: 10px; bottom: auto; left: auto; max-width: 50%; }   /* clear of the buttons */
}

/* GTranslate's floating language menu (third-party plugin, restyled only): on phones it covered the search box
   and buttons. Smaller pill at the bottom-left, away from the back-to-top button. */
@media (max-width: 1023px) {
  .gt_switcher_wrapper { right: auto !important; left: max(12px, env(safe-area-inset-left)) !important; bottom: 12px !important; }
  .gt_switcher_wrapper .gt_selector {
    width: auto !important; max-width: 128px; height: 40px; padding: 0 10px; font-size: 16px;
    border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius-pill); background: var(--kgb-bg); box-shadow: var(--kgb-shadow);
  }
}

/* ------------------------------------------------------------------ 1.13 home: board-style boxes
   Community (most viewed, forum table) → Popular | Latest guides (thumbnail + title rows, side by side ≥1024px).
   Same tokens as the Community board (.kgb-boardbox): white box, 1px border, header bar on the surface colour. */
.kgb-home .kgb-band--boards { padding: clamp(36px, 5vw, 56px) 0; }
.kgb-hbox { background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); box-shadow: var(--kgb-shadow-sm); overflow: hidden; min-width: 0; }
.kgb-hbox__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--kgb-surface); border-bottom: 1px solid var(--kgb-border);
  box-shadow: inset 0 3px 0 var(--kgb-primary);   /* thin coloured top line, portal-board style */
}
.kgb-hbox__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem; line-height: 1.3; color: var(--kgb-ink); letter-spacing: -.01em; }
.kgb-hbox__title .kgb-icon { color: var(--kgb-primary); flex: none; }
.kgb-home a.kgb-hbox__more { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: .85rem; font-weight: 600; color: var(--kgb-muted); }
.kgb-home a.kgb-hbox__more:hover { color: var(--kgb-primary); }
.kgb-hbox__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 20px; border-top: 1px solid var(--kgb-border); background: var(--kgb-surface); }
.kgb-hbox .kgb-trow { padding-top: 11px; padding-bottom: 11px; }
.kgb-hbox .kgb-trow--head { background: var(--kgb-bg); }
.kgb-hbox--community .kgb-hbox__head { box-shadow: inset 0 3px 0 var(--kgb-accent); }
.kgb-hbox--community .kgb-hbox__title .kgb-icon { color: var(--kgb-accent); }

/* rank numbers: top 3 filled, the rest plain (home community list + Community board sorted by views) */
.kgb-table--rank .kgb-trow:not(.kgb-trow--head) .kgb-trow__num { font-weight: 700; color: var(--kgb-muted); font-size: .85rem; }
.kgb-table--rank .kgb-trow:not(.kgb-trow--head):not(.is-notice) .kgb-trow__num { display: grid; place-items: center; }
.kgb-table--rank .kgb-trow:not(.kgb-trow--head):not(.is-notice):nth-child(-n+4) .kgb-trow__num {
  width: 26px; height: 26px; margin: 0 auto; border-radius: 8px; background: var(--kgb-primary); color: #fff; font-size: .8rem;
}
@media (max-width: 760px) {
  .kgb-table--rank .kgb-trow:not(.kgb-trow--head) {
    grid-template-columns: 28px auto auto auto 1fr;
    grid-template-areas: "num main main main main" ". author views likes date";
  }
  .kgb-table--rank .kgb-trow:not(.kgb-trow--head) .kgb-trow__num { display: grid; grid-area: num; align-self: start; margin: 1px 0 0; }
  .kgb-table--rank .kgb-trow:not(.kgb-trow--head):not(.is-notice):nth-child(-n+4) .kgb-trow__num { width: 22px; height: 22px; margin: 0; font-size: .72rem; border-radius: 6px; }
  .kgb-hbox__head, .kgb-hbox__foot { padding-left: 16px; padding-right: 16px; }
}

/* guide rows: thumbnail · category / title / meta */
.kgb-hduo { display: grid; gap: var(--kgb-gap); }
@media (min-width: 1024px) { .kgb-hduo { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.kgb-glist { list-style: none; margin: 0; padding: 0; }
.kgb-grow { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--kgb-border); transition: background .15s; }
.kgb-grow:last-child { border-bottom: 0; }
.kgb-grow:hover { background: var(--kgb-primary-soft); }
.kgb-grow__thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--kgb-surface); }
.kgb-grow__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.kgb-grow:hover .kgb-grow__thumb img { transform: scale(1.05); }
.kgb-grow__ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.6rem; }
.kgb-grow__rank {
  position: absolute; top: 6px; left: 6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 6px; background: rgba(15, 23, 42, .72); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.kgb-grow:nth-child(-n+3) .kgb-grow__rank { background: var(--kgb-primary); }
.kgb-grow__body { min-width: 0; }
.kgb-grow__cat { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--kgb-primary); }
.kgb-home a.kgb-grow__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 650; font-size: .98rem; line-height: 1.4; color: var(--kgb-ink);
}
.kgb-home a.kgb-grow__title:hover { color: var(--kgb-primary-hover); text-decoration: underline; }
.kgb-home a.kgb-grow__title:visited { color: #5b4a7a; }
.kgb-grow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 4px 0 0; font-size: .78rem; color: var(--kgb-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .kgb-grow { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .kgb-home a.kgb-grow__title { font-size: .94rem; }
}
/* theme overrides inside the page content (Astra .entry-content margins / list indents / underlines / h2 size) */
.kgb-home .kgb-hbox :is(.kgb-glist, .kgb-table) { margin: 0; padding: 0; list-style: none; }
.kgb-home .kgb-hbox :is(.kgb-grow__cat, .kgb-grow__meta) { margin-bottom: 0; }
.kgb-home .kgb-hbox .kgb-grow__cat { margin-top: 0; }
.kgb-home .kgb-hbox h2.kgb-hbox__title { font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin: 0; }
.kgb-home .kgb-hbox a, .kgb-home .kgb-hbox a:hover { text-decoration: none; }
.kgb-home .kgb-hbox a.kgb-grow__title:hover { text-decoration: underline; text-underline-offset: 3px; }
/* phones: title and [comments] / N / 🔥 flow on one line, no snippet in the home box (rows stay short) */
@media (max-width: 760px) {
  .kgb-table--rank .kgb-trow__main { display: block; line-height: 1.45; }
  .kgb-table--rank .kgb-trow__main > span { display: inline; margin-left: 4px; vertical-align: baseline; }
  .kgb-table--rank .kgb-trow__main > .kgb-trow__title { margin-left: 0; }
  .kgb-table--rank .kgb-trow__main > .kgb-trow__new { display: inline-grid; vertical-align: 1px; }
  .kgb-table--rank .kgb-trow__main > .kgb-trow__snip { display: block; margin: 2px 0 0; }
  .kgb-hbox .kgb-trow__snip { display: none !important; }
  .kgb-hbox .kgb-trow { padding-top: 12px; padding-bottom: 12px; }
}

/* ------------------------------------------------ 1.14 affiliate box ("Book what this guide mentions") */
.kgb-affbox { max-width: 720px; margin: 40px 0 8px; padding: 18px 18px 16px; border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius); background: var(--kgb-surface); }
.kgb-affbox__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.entry-content .kgb-affbox__title { margin: 0; font-family: var(--kgb-font-heading); font-size: 1.08rem; font-weight: 800; color: var(--kgb-ink); line-height: 1.3; }
.kgb-affbox__ad { flex: none; font-size: .72rem; font-weight: 600; color: var(--kgb-muted); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius-pill); padding: 2px 8px; background: #fff; }
.kgb-affbox__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.entry-content a.kgb-affcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--kgb-border); border-radius: 14px; background: #fff; color: var(--kgb-ink); text-decoration: none; box-shadow: var(--kgb-shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.entry-content a.kgb-affcard:hover { border-color: var(--kgb-primary); box-shadow: var(--kgb-shadow); transform: translateY(-1px); color: var(--kgb-ink); }
.kgb-affcard__thumb { flex: none; width: 72px; height: 72px; border-radius: 12px; display: grid; place-items: center; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--kgb-aff-c, #2563EB), color-mix(in srgb, var(--kgb-aff-c, #2563EB) 65%, #0F172A)); }
.kgb-affcard__thumb--img { background: var(--kgb-surface); }
.kgb-affcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.kgb-affcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kgb-affcard__prog { font-size: .72rem; font-weight: 700; color: var(--kgb-muted); text-transform: uppercase; letter-spacing: .04em; }
.kgb-affcard__name { font-weight: 700; font-size: .98rem; line-height: 1.3; color: var(--kgb-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kgb-affcard__desc { font-size: .82rem; line-height: 1.4; color: var(--kgb-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kgb-affcard__cta { flex: none; align-self: center; font-size: .82rem; font-weight: 700; color: #fff; background: var(--kgb-primary); border-radius: var(--kgb-radius-pill); padding: 6px 12px; white-space: nowrap; }
.kgb-affcard:hover .kgb-affcard__cta { background: var(--kgb-primary-hover); }
@media (max-width: 480px) { .kgb-affbox { padding: 14px 12px 12px; } .kgb-affcard__thumb { width: 60px; height: 60px; } .kgb-affcard__desc { -webkit-line-clamp: 1; } .kgb-affcard__cta { padding: 6px 10px; font-size: .78rem; } }

/* ------------------------------------------------ 1.14 community post: list + guides printed after the comments */
.kgb-after-comments { margin: 8px 24px 0; }   /* printed inside Astra's .comments-area: line up with the post text */
@media (min-width: 544px) { .kgb-after-comments { margin-inline: 32px; } }
@media (min-width: 922px) { .kgb-after-comments { margin-inline: 40px; } }
.kgb-after-comments a { text-decoration: none; }
.kgb-after-comments .kgb-related--cards .kgb-cardgrid { max-width: none; }

/* ------------------------------------------------------------------ 1.15 home: "Start here" paths
   Three cards (first trip / moving / studying), each a hub page link + its first 5 guides in order. */
.kgb-home .kgb-band--paths { padding: clamp(32px, 4.5vw, 52px) 0 clamp(8px, 2vw, 16px); }
.kgb-home .kgb-paths__heading { margin: 0 0 16px; font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.3; color: var(--kgb-ink); letter-spacing: -.01em; }
.kgb-paths { display: grid; gap: var(--kgb-gap); }
@media (min-width: 900px) { .kgb-paths { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kgb-path {
  display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px;
  background: var(--kgb-bg); border: 1px solid var(--kgb-border); border-radius: var(--kgb-radius);
  box-shadow: inset 0 3px 0 var(--kgb-primary), var(--kgb-shadow-sm);
}
.kgb-home .kgb-path__title { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.3; }
.kgb-home .kgb-path__title a { display: inline-flex; align-items: center; gap: 8px; color: var(--kgb-ink); text-decoration: none; }
.kgb-home .kgb-path__title a:hover { color: var(--kgb-primary-hover); }
.kgb-path__title .kgb-icon { color: var(--kgb-primary); flex: none; }
.kgb-home .kgb-path__lead { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--kgb-muted); }
.kgb-home .kgb-path__steps { counter-reset: kgbstep; list-style: none; margin: 0 0 14px; padding: 0; }
.kgb-home .kgb-path__steps li { counter-increment: kgbstep; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: start; margin: 0; padding: 7px 0; border-top: 1px solid var(--kgb-border); font-size: .92rem; line-height: 1.4; }
.kgb-home .kgb-path__steps li::before {
  content: counter(kgbstep); display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 6px; background: var(--kgb-primary-soft); color: var(--kgb-primary); font-size: .75rem; font-weight: 700;
}
.kgb-home .kgb-path__steps a { color: var(--kgb-ink); text-decoration: none; }
.kgb-home .kgb-path__steps a:hover { color: var(--kgb-primary-hover); text-decoration: underline; }
.kgb-home a.kgb-path__more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 650; color: var(--kgb-primary); text-decoration: none; }
.kgb-home a.kgb-path__more:hover { text-decoration: underline; }
