/*
Theme Name: Keyword Guide
Theme URI: https://example.invalid/
Author: Internal Editorial Team
Description: 빠르고 읽기 쉬운 정보형 사이트 전용 테마
Version: 2.0.1
Text Domain: keyword-guide
*/
:root {
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --ink: #172033;
  --muted: #667085;
  --line: #dfe6ec;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(23, 32, 51, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: var(--font-ui,"Noto Sans KR",Pretendard,sans-serif); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--site-wrap,1160px), calc(100% - 36px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(223,230,236,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.header-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.035em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--brand),var(--brand-dark)); box-shadow: 0 8px 18px color-mix(in srgb,var(--brand) 28%,transparent); }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.hero { padding: 82px 0 70px; color: #fff; background: radial-gradient(circle at 84% 20%, rgba(255,255,255,.18), transparent 28%), linear-gradient(135deg,var(--brand-dark),var(--brand)); }
.hero-kicker { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; font-size: 13px; font-weight: 750; background: rgba(255,255,255,.1); }
.hero h1 { max-width: 820px; margin: 20px 0 12px; font-family: var(--font-display,var(--font-ui)); font-size: clamp(36px,6vw,68px); line-height: 1.08; letter-spacing: -.055em; }
.hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.85); font-size: clamp(16px,2vw,20px); }
.search-box { max-width: 720px; margin-top: 30px; display: flex; padding: 7px; gap: 8px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.search-box input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; outline: 0; font: inherit; }
.search-box button { border: 0; border-radius: 11px; padding: 0 22px; color: #fff; background: var(--brand-dark); font-weight: 750; cursor: pointer; }
.section { padding: 58px 0 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(28px,4vw,40px); line-height: 1.2; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--card-gap,22px); }
.card { overflow: hidden; border: var(--card-border,1px) solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .2s ease,box-shadow .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-image { aspect-ratio: 16/9; background: #dce8ed; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-tag { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.card h3 { margin: 9px 0 10px; font-family: var(--font-display,var(--font-ui)); font-size: 20px; line-height: 1.45; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.pagination { margin-top: 42px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pagination .current { color: #fff; border-color: var(--brand); background: var(--brand); }
.article-shell { padding: 54px 0 90px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 34px; align-items: start; }
.article { padding: clamp(24px,5vw,58px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 12px 0 15px; font-family: var(--font-display,var(--font-ui)); font-size: clamp(32px,5vw,52px); line-height: 1.2; letter-spacing: -.055em; }
.article-meta { color: var(--muted); font-size: 13px; }
.article-content { font-size: 17px; }
.article-content h2 { scroll-margin-top: 92px; margin: 56px 0 18px; font-size: clamp(25px,3.5vw,34px); line-height: 1.35; letter-spacing: -.04em; }
.article-content h3 { margin: 32px 0 10px; font-size: 20px; }
.article-content p { margin: 0 0 20px; word-break: keep-all; }
.article-summary { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: color-mix(in srgb,var(--brand) 8%,#fff); }
.article-summary p { margin: 0; font-weight: 620; }
.article-visual { margin: 38px 0 28px; overflow: hidden; border-radius: 18px; box-shadow: 0 12px 30px rgba(23,32,51,.13); }
.article-faq { margin-top: 58px; padding-top: 1px; }
.article-faq h3 { padding-top: 20px; border-top: 1px solid var(--line); }
.editorial-note { margin-top: 45px !important; padding: 20px; border-radius: 14px; color: var(--muted); background: var(--wash); font-size: 14px; }
.toc { position: sticky; top: 94px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.toc strong { display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.toc li { margin: 7px 0; }
.site-footer { padding: 38px 0; color: #cbd5e1; background: #111827; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.empty { padding: 60px; border-radius: var(--radius); text-align: center; background: #fff; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .article-layout { grid-template-columns: 1fr; } .toc { position: static; order: -1; } }
@media (max-width: 620px) { .wrap { width: min(100% - 24px,1160px); } .nav-links { display: none; } .hero { padding: 58px 0 54px; } .search-box button { padding: 0 15px; } .card-grid { grid-template-columns: 1fr; } .article-shell { padding-top: 24px; } .article { padding: 24px 19px; border-radius: 17px; } .footer-row { display: block; } }

/* One shared, accessible six-image carousel is retained across all 40 designs. */
.factory-carousel { position: relative; margin: 32px 0 42px; isolation: isolate; }
.factory-carousel-viewport { overflow: hidden; border-radius: max(12px,var(--radius)); background: #08111f; box-shadow: 0 20px 48px rgba(2,8,23,.18); }
.factory-carousel-track { display: flex; transform: translate3d(0,0,0); transition: transform .48s cubic-bezier(.22,.72,.24,1); will-change: transform; }
.factory-carousel-slide { position: relative; flex: 0 0 100%; min-width: 100%; margin: 0; aspect-ratio: 16/9; }
.factory-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.factory-carousel-slide figcaption { position: absolute; right: 16px; bottom: 14px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(2,8,23,.62); backdrop-filter: blur(10px); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.factory-carousel-arrow { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: #fff; background: rgba(2,8,23,.58); box-shadow: 0 8px 22px rgba(0,0,0,.2); backdrop-filter: blur(10px); cursor: pointer; transform: translateY(-50%); font: 400 31px/1 sans-serif; }
.factory-carousel-prev { left: 14px; }
.factory-carousel-next { right: 14px; }
.factory-carousel-arrow:hover,.factory-carousel-arrow:focus-visible { background: var(--brand); outline: 3px solid color-mix(in srgb,var(--brand) 35%,transparent); outline-offset: 2px; }
.factory-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.factory-carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb,var(--muted) 38%,transparent); cursor: pointer; transition: width .2s ease,background .2s ease; }
.factory-carousel-dots button.is-active { width: 30px; background: var(--brand); }

/* Four independent tone systems multiply the ten structural families into 40 designs. */
.kg-tone-1 { --shadow: 0 14px 36px rgba(23,32,51,.09); }
.kg-tone-2 { --shadow: 0 20px 54px rgba(20,52,82,.13); }
.kg-tone-3 { --shadow: 0 10px 0 color-mix(in srgb,var(--brand) 18%,transparent); }
.kg-tone-4 { --shadow: 0 26px 68px rgba(25,36,30,.16); }
.kg-tone-2 .hero>.wrap { text-align: center; }
.kg-tone-2 .hero h1,.kg-tone-2 .hero p,.kg-tone-2 .search-box { margin-left: auto; margin-right: auto; }
.kg-tone-3 .card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.kg-tone-3 .card-body { padding: 17px; }
.kg-tone-3 .card h3 { font-size: 17px; }
.kg-tone-4 .hero>.wrap { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); column-gap: 46px; align-items: center; }
.kg-tone-4 .hero .hero-kicker,.kg-tone-4 .hero h1 { grid-column: 1; }
.kg-tone-4 .hero p,.kg-tone-4 .hero .search-box { grid-column: 2; }
.kg-tone-4 .hero p { grid-row: 1 / span 2; align-self: end; }

/* 01/11/21/31: editorial newsroom */
.kg-family-1 .site-header { position: static; border-bottom: 4px double var(--ink); background: var(--paper); }
.kg-family-1 .brand { font-family: var(--font-display); font-size: 20px; }
.kg-family-1 .brand-mark { border-radius: 50%; background: var(--ink); box-shadow: none; }
.kg-family-1 .hero { padding: 62px 0 56px; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--paper); }
.kg-family-1 .hero-kicker { color: var(--brand); border-color: var(--brand); background: transparent; }
.kg-family-1 .hero h1 { font-size: clamp(46px,7vw,82px); }
.kg-family-1 .hero p { color: var(--muted); }
.kg-family-1 .search-box { border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
.kg-family-1 .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.kg-family-1 .card { display: grid; grid-template-columns: 42% 58%; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
.kg-family-1 .card>a { display: contents; }
.kg-family-1 .card-image { height: 100%; }
.kg-family-1 .site-footer { border-top: 4px double currentColor; background: var(--paper); color: var(--ink); }

/* 02/12/22/32: floating glass studio */
.kg-family-2 { background: radial-gradient(circle at var(--hero-x) var(--hero-y),color-mix(in srgb,var(--brand) 16%,transparent),transparent 32%),var(--wash); }
.kg-family-2 .site-header { top: 14px; width: min(var(--site-wrap),calc(100% - 28px)); margin: 14px auto 0; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; background: color-mix(in srgb,var(--paper) 76%,transparent); box-shadow: var(--shadow); }
.kg-family-2 .header-row { width: calc(100% - 34px); }
.kg-family-2 .brand-mark { border-radius: 50% 50% 14px 50%; }
.kg-family-2 .hero { margin: -84px 0 0; padding: 180px 0 88px; background: radial-gradient(circle at var(--hero-x) var(--hero-y),var(--accent),transparent 28%),linear-gradient(var(--hero-angle),var(--brand-dark),var(--brand)); }
.kg-family-2 .hero>.wrap { text-align: center; }
.kg-family-2 .hero h1,.kg-family-2 .hero p,.kg-family-2 .search-box { margin-left: auto; margin-right: auto; }
.kg-family-2 .card { border-color: color-mix(in srgb,var(--brand) 20%,var(--line)); border-radius: calc(var(--radius) + 12px); box-shadow: 0 10px 30px rgba(15,23,42,.07); }
.kg-family-2 .card-image { margin: 10px; border-radius: calc(var(--radius) + 5px); }
.kg-family-2 .article { border-radius: calc(var(--radius) + 18px); }

/* 03/13/23/33: bold block system */
.kg-family-3 * { border-radius: 0 !important; }
.kg-family-3 .site-header { position: static; border-bottom: 3px solid var(--ink); background: var(--accent); }
.kg-family-3 .brand-mark { color: var(--ink); border: 2px solid var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--ink); }
.kg-family-3 .nav-links { color: var(--ink); font-weight: 800; }
.kg-family-3 .hero { color: var(--ink); border-bottom: 3px solid var(--ink); background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--brand) 28%,#fff) 0 18px,#fff 18px 36px); }
.kg-family-3 .hero-kicker { border: 2px solid var(--ink); background: #fff; }
.kg-family-3 .search-box,.kg-family-3 .card,.kg-family-3 .article,.kg-family-3 .toc { border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.kg-family-3 .search-box button { color: #fff; background: var(--ink); }
.kg-family-3 .card:hover { transform: translate(-3px,-3px); box-shadow: 11px 11px 0 var(--accent); }
.kg-family-3 .site-footer { border-top: 3px solid var(--ink); color: #fff; background: var(--brand-dark); }

/* 04/14/24/34: soft wellness cards */
.kg-family-4 .site-header { border: 0; background: color-mix(in srgb,var(--wash) 88%,transparent); }
.kg-family-4 .brand-mark { border-radius: 50%; background: linear-gradient(145deg,var(--accent),var(--brand)); }
.kg-family-4 .hero { padding: 74px 0; color: var(--ink); background: radial-gradient(circle at var(--hero-x) var(--hero-y),color-mix(in srgb,var(--accent) 32%,#fff),transparent 30%),linear-gradient(150deg,var(--paper),color-mix(in srgb,var(--brand) 12%,var(--wash))); }
.kg-family-4 .hero-kicker { color: var(--brand); border-color: color-mix(in srgb,var(--brand) 28%,transparent); background: color-mix(in srgb,var(--brand) 8%,#fff); }
.kg-family-4 .hero p { color: var(--muted); }
.kg-family-4 .search-box { border-radius: 999px; box-shadow: 0 14px 40px color-mix(in srgb,var(--brand) 14%,transparent); }
.kg-family-4 .search-box button { border-radius: 999px; }
.kg-family-4 .card { border: 0; border-radius: max(24px,var(--radius)); box-shadow: 0 16px 40px rgba(31,52,41,.08); }
.kg-family-4 .card-image { border-radius: 0 0 42% 0; }
.kg-family-4 .article,.kg-family-4 .toc { border: 0; border-radius: 32px; }

/* 05/15/25/35: dark magazine */
.kg-family-5 .site-header { border-color: var(--line); background: rgba(7,13,25,.9); }
.kg-family-5 .brand-mark { background: var(--accent); }
.kg-family-5 .hero { min-height: 520px; display: grid; align-items: end; background: radial-gradient(circle at var(--hero-x) var(--hero-y),color-mix(in srgb,var(--accent) 46%,transparent),transparent 34%),linear-gradient(var(--hero-angle),#020617,var(--brand-dark)); }
.kg-family-5 .hero h1 { font-size: clamp(52px,8vw,92px); text-transform: uppercase; }
.kg-family-5 .card { border-color: var(--line); background: var(--paper); box-shadow: none; }
.kg-family-5 .card-image { filter: saturate(.78) contrast(1.08); }
.kg-family-5 .card:hover .card-image { filter: saturate(1.1); }
.kg-family-5 .article,.kg-family-5 .toc,.kg-family-5 .pagination .page-numbers { color: var(--ink); border-color: var(--line); background: var(--paper); }
.kg-family-5 .site-footer { border-top: 1px solid var(--line); background: #020617; }

/* 06/16/26/36: restrained minimal */
.kg-family-6 .site-header { position: static; border: 0; background: var(--wash); }
.kg-family-6 .brand-mark { color: var(--brand); border: 1px solid var(--brand); border-radius: 0; background: transparent; box-shadow: none; }
.kg-family-6 .nav-links a { border-bottom: 1px solid transparent; }
.kg-family-6 .nav-links a:hover { border-color: currentColor; }
.kg-family-6 .hero { padding: 110px 0 100px; color: var(--ink); background: var(--wash); }
.kg-family-6 .hero-kicker { padding-left: 0; color: var(--brand); border: 0; background: transparent; }
.kg-family-6 .hero h1 { max-width: 980px; font-size: clamp(54px,9vw,106px); font-weight: 500; }
.kg-family-6 .hero p { color: var(--muted); }
.kg-family-6 .search-box { padding: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; box-shadow: none; }
.kg-family-6 .search-box input { background: transparent; }
.kg-family-6 .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 54px 28px; }
.kg-family-6 .card { border: 0; border-radius: 0; background: transparent; }
.kg-family-6 .card:hover { box-shadow: none; }
.kg-family-6 .card-body { padding-left: 0; padding-right: 0; }
.kg-family-6 .article { border: 0; border-radius: 0; box-shadow: none; }

/* 07/17/27/37: asymmetric split composition */
.kg-family-7 .site-header { border: 0; background: var(--brand-dark); }
.kg-family-7 .brand,.kg-family-7 .nav-links { color: #fff; }
.kg-family-7 .brand-mark { color: var(--brand-dark); background: var(--accent); }
.kg-family-7 .hero { position: relative; overflow: hidden; padding: 94px 0; background: linear-gradient(90deg,var(--brand-dark) 0 58%,var(--accent) 58% 100%); }
.kg-family-7 .hero::after { content:""; position:absolute; inset:0 0 0 58%; background: repeating-linear-gradient(45deg,transparent 0 20px,rgba(255,255,255,.12) 20px 22px); }
.kg-family-7 .hero>.wrap { position: relative; z-index: 1; }
.kg-family-7 .hero h1,.kg-family-7 .hero p { max-width: 56%; }
.kg-family-7 .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: dense; }
.kg-family-7 .card:nth-child(7n+1) { grid-column: span 2; }
.kg-family-7 .card:nth-child(7n+1) .card-image { aspect-ratio: 2.1/1; }
.kg-family-7 .card { border: 0; box-shadow: var(--shadow); }
.kg-family-7 .article-layout { grid-template-columns: 260px minmax(0,1fr); }
.kg-family-7 .article { grid-column: 2; }
.kg-family-7 .toc { grid-column: 1; grid-row: 1; }

/* 08/18/28/38: technical dashboard */
.kg-family-8 { background-image: linear-gradient(rgba(148,163,184,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.07) 1px,transparent 1px); background-size: 24px 24px; }
.kg-family-8 .site-header { border-bottom: 1px solid var(--accent); background: #07101f; }
.kg-family-8 .brand,.kg-family-8 .nav-links { color: #dce7fa; }
.kg-family-8 .brand-mark { border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); background: transparent; box-shadow: none; }
.kg-family-8 .hero { border-bottom: 1px solid var(--accent); background: linear-gradient(var(--hero-angle),#07101f,color-mix(in srgb,var(--brand) 54%,#07101f)); }
.kg-family-8 .hero-kicker,.kg-family-8 .card-tag { color: var(--accent); }
.kg-family-8 .search-box,.kg-family-8 .card,.kg-family-8 .article,.kg-family-8 .toc { border: 1px solid #34445f; border-radius: 5px; background: #111827; }
.kg-family-8 .card-image { border-bottom: 1px solid #34445f; }
.kg-family-8 .article-summary { border-radius: 0; }
.kg-family-8 .site-footer { border-top: 1px solid var(--accent); background: #020617; }

/* 09/19/29/39: warm journal */
.kg-family-9 { background: #f6f0e6; }
.kg-family-9 .site-header { position: static; border-bottom: 1px solid #9b8c78; background: #f6f0e6; }
.kg-family-9 .brand,.kg-family-9 h1,.kg-family-9 h2,.kg-family-9 h3 { font-family: Georgia,"Noto Serif KR",serif; }
.kg-family-9 .brand-mark { border-radius: 50% 50% 50% 8px; background: #6f4e37; box-shadow: none; }
.kg-family-9 .hero { padding: 72px 0 58px; color: #352a22; border-bottom: 1px solid #9b8c78; background: radial-gradient(circle at var(--hero-x) var(--hero-y),rgba(160,116,78,.2),transparent 30%),#efe4d4; }
.kg-family-9 .hero-kicker { color: #6f4e37; border-color: #9b8c78; background: transparent; }
.kg-family-9 .hero p { color: #75685c; }
.kg-family-9 .search-box { border: 1px solid #9b8c78; border-radius: 4px; box-shadow: none; }
.kg-family-9 .card { border-width: 0 0 1px; border-color: #b9aa98; border-radius: 0; background: transparent; box-shadow: none; }
.kg-family-9 .card-image { filter: sepia(.12); }
.kg-family-9 .article,.kg-family-9 .toc { border-color: #cbbda9; background: #fffaf2; box-shadow: none; }
.kg-family-9 .site-footer { color: #eadfce; background: #352a22; }

/* 10/20/30/40: vivid capsule */
.kg-family-10 .site-header { border: 0; background: var(--brand-dark); }
.kg-family-10 .brand,.kg-family-10 .nav-links { color: #fff; }
.kg-family-10 .brand-mark { border-radius: 999px; color: var(--brand-dark); background: var(--accent); }
.kg-family-10 .hero { padding: 94px 0 86px; background: radial-gradient(circle at var(--hero-x) var(--hero-y),var(--accent),transparent 27%),conic-gradient(from var(--hero-angle) at 70% 30%,var(--brand),var(--brand-dark),var(--brand)); }
.kg-family-10 .hero h1 { text-shadow: 0 5px 28px rgba(0,0,0,.22); }
.kg-family-10 .search-box { border-radius: 999px; }
.kg-family-10 .search-box button { border-radius: 999px; background: linear-gradient(135deg,var(--brand),var(--accent)); }
.kg-family-10 .card { border: 0; border-radius: 36px 12px 36px 12px; box-shadow: var(--shadow); }
.kg-family-10 .card:nth-child(even) { border-radius: 12px 36px 12px 36px; }
.kg-family-10 .card-image { border-radius: inherit; }
.kg-family-10 .article { border: 0; border-radius: 42px 14px 42px 14px; }
.kg-family-10 .toc { border-radius: 999px 999px 24px 24px; }
.kg-family-10 .site-footer { background: linear-gradient(135deg,var(--brand-dark),#111827); }

@media (max-width: 1050px) {
  .kg-tone-3 .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kg-tone-4 .hero>.wrap { display: block; }
  .kg-tone-4 .hero p,.kg-tone-4 .hero .search-box { margin-top: 18px; }
  .kg-family-7 .article-layout { grid-template-columns: 1fr; }
  .kg-family-7 .article,.kg-family-7 .toc { grid-column: 1; }
}
@media (max-width: 700px) {
  .factory-carousel { margin: 24px 0 34px; }
  .factory-carousel-arrow { width: 40px; height: 40px; }
  .factory-carousel-prev { left: 8px; }
  .factory-carousel-next { right: 8px; }
  .kg-family-1 .card,.kg-family-6 .card-grid,.kg-family-7 .card-grid { display: block; }
  .kg-family-1 .card-grid,.kg-family-3 .card-grid,.kg-family-4 .card-grid,.kg-family-5 .card-grid,.kg-family-6 .card-grid,.kg-family-7 .card-grid,.kg-family-8 .card-grid,.kg-family-9 .card-grid,.kg-family-10 .card-grid,.kg-tone-3 .card-grid { grid-template-columns: 1fr; }
  .kg-family-7 .hero { background: linear-gradient(150deg,var(--brand-dark),var(--brand)); }
  .kg-family-7 .hero h1,.kg-family-7 .hero p { max-width: 100%; }
  .kg-family-7 .hero::after { display: none; }
}

/* 2.0.1 — calm, consistent hero treatment across every visual family. */
body[class*="kg-family-"] .site-header {
  position: relative;
  border: 0;
  border-bottom: 1px solid #e5e9ef;
  background: rgba(255,255,255,.98);
  box-shadow: none;
}
body[class*="kg-family-"] .brand,
body[class*="kg-family-"] .nav-links { color: #172033; }
body[class*="kg-family-"] .brand-mark {
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: var(--brand-dark);
  box-shadow: none;
}
body[class*="kg-family-"] .hero {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 72px 0 68px;
  overflow: hidden;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg,var(--brand-dark),color-mix(in srgb,var(--brand) 72%,#172033));
}
body[class*="kg-family-"] .hero::before,
body[class*="kg-family-"] .hero::after { display: none; content: none; }
body[class*="kg-family-"] .hero>.wrap {
  position: relative;
  z-index: 1;
  display: block;
  text-align: left;
}
body[class*="kg-family-"] .hero .hero-kicker {
  display: inline-flex;
  padding: 7px 12px;
  color: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px !important;
  background: rgba(255,255,255,.09);
  box-shadow: none;
  backdrop-filter: none;
}
body[class*="kg-family-"] .hero h1 {
  max-width: 840px;
  margin: 18px 0 12px;
  color: #fff;
  font-family: var(--font-display,var(--font-ui));
  font-size: clamp(38px,5.4vw,68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
  text-transform: none;
  text-shadow: none;
}
body[class*="kg-family-"] .hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(16px,2vw,19px);
}
body[class*="kg-family-"] .hero .search-box {
  width: min(720px,100%);
  max-width: 720px;
  margin: 28px 0 0;
  padding: 6px;
  display: flex;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px !important;
  background: #fff;
  box-shadow: 0 14px 34px rgba(2,8,23,.18);
}
body[class*="kg-family-"] .hero .search-box input {
  color: #172033;
  background: #fff;
}
body[class*="kg-family-"] .hero .search-box button {
  min-height: 46px;
  padding: 0 22px;
  color: #fff;
  border-radius: 10px !important;
  background: var(--brand-dark);
  box-shadow: none;
}
@media (max-width: 620px) {
  body[class*="kg-family-"] .hero { padding: 52px 0 48px; }
  body[class*="kg-family-"] .hero h1 { font-size: clamp(34px,11vw,48px); }
  body[class*="kg-family-"] .hero .search-box { margin-top: 22px; }
}
