:root {
  --kk8-red: #e63b32;
  --kk8-rust: #bd3411;
  --kk8-orange: #ff7421;
  --kk8-ink: #261610;
  --kk8-muted: #7d6358;
  --kk8-cream: #fff9f5;
  --kk8-soft: #fff2e8;
  --kk8-line: #efd9cb;
  --kk8-white: #fff;
  --kk8-shadow: 0 10px 30px rgba(112, 49, 20, .08);
  --kk8-radius: 16px;
  --kk8-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.kk8-home-page {
  margin: 0;
  color: var(--kk8-ink);
  background: #fff;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.kk8-home-page a { color: inherit; text-decoration: none; }
.kk8-home-page svg { width: 22px; height: 22px; flex: 0 0 auto; }
.kk8-home-page .container { width: min(calc(100% - 40px), var(--kk8-width)); margin-inline: auto; }
.kk8-skip { position: fixed; left: 16px; top: -100px; z-index: 999; padding: 10px 16px; background: #fff; border-radius: 8px; }
.kk8-skip:focus { top: 16px; }

.site-header { position: relative; z-index: 50; height: 72px; background: rgba(255,255,255,.96); border-top: 3px solid var(--kk8-orange); border-bottom: 1px solid rgba(86,45,24,.08); backdrop-filter: blur(12px); }
.nav-wrap { height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; line-height: 0; }
.brand img { display: block; width: auto; height: auto; object-fit: contain; }
.site-header .brand { width: clamp(118px, 11vw, 142px); max-width: calc(100% - 74px); height: 100%; justify-content: flex-start; }
.site-header .brand img { width: 100%; max-height: 50px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.desktop-nav a { position: relative; padding: 24px 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 15px; height: 2px; background: var(--kk8-orange); transition: right .2s ease; }
.desktop-nav a:hover::after { right: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown-panel { display: none; position: absolute; top: 100%; left: -16px; width: 230px; padding: 9px; border: 1px solid var(--kk8-line); border-radius: 12px; background: #fff; box-shadow: var(--kk8-shadow); }
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { display: grid; }
.nav-dropdown-panel a { padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav-dropdown-panel a:hover { background: var(--kk8-soft); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { width: 42px; height: 42px; border-radius: 10px; background: var(--kk8-soft); list-style: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 20px; height: 2px; background: var(--kk8-rust); }
.mobile-nav-panel { position: absolute; right: 0; top: 50px; width: 210px; padding: 12px; display: grid; background: #fff; border: 1px solid var(--kk8-line); border-radius: 14px; box-shadow: var(--kk8-shadow); }
.mobile-nav-panel a { padding: 10px 12px; border-radius: 8px; font-weight: 700; }
.mobile-nav-panel a:hover { background: var(--kk8-soft); }

.hero { position: relative; min-height: 440px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, #3fc3ff 0%, #279aff 38%, #268fff 72%, #2695ff 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(circle at center, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, transparent, #000 50%, transparent); }
.hero-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-orb-one { width: 390px; height: 390px; right: -120px; top: -210px; }
.hero-orb-two { width: 280px; height: 280px; left: 42%; bottom: -230px; border: 1px solid rgba(255,255,255,.12); background: transparent; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 64px 0 58px; }
.eyebrow { margin: 0 0 10px; color: var(--kk8-rust); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: #ffd3b3; }
.hero h1 { max-width: 1040px; margin: 0 auto 16px; color: #fff; font-size: clamp(38px, 4vw, 52px); font-weight: 900; line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
.hero-lead { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.82); font-size: 17px; }
.hero-actions { margin-top: 26px; display: flex; justify-content: center; gap: 12px; }
.button { min-height: 46px; padding: 11px 24px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(52, 21, 8, .18); }
.hero .button-warm { min-width: 210px; color: #5b240a; background: #ffbd72; }
.hero .button-light { min-width: 210px; color: var(--kk8-rust); background: #fff; }
.button-primary { margin-top: 12px; color: #fff; background: linear-gradient(135deg, var(--kk8-rust), var(--kk8-orange)); box-shadow: 0 7px 20px rgba(189,52,17,.18); }
.hero-trust { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 7px; color: rgba(255,255,255,.76); font-size: 13px; }
.hero-trust span { padding: 2px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.hero-trust svg { width: 16px; height: 16px; }

.status-strip { position: relative; z-index: 3; background: #fff; border-bottom: 1px solid var(--kk8-line); box-shadow: 0 5px 14px rgba(96,42,17,.04); }
.status-grid { min-height: 78px; display: grid; grid-template-columns: repeat(4, 1fr) 170px; }
.status-item { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-right: 1px solid var(--kk8-line); }
.status-icon, .card-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--kk8-rust); background: var(--kk8-soft); flex: 0 0 auto; }
.status-icon svg, .card-icon svg { width: 18px; height: 18px; }
.status-icon.success { color: #31845b; background: #e9f6ef; }
.status-item small, .status-item strong { display: block; line-height: 1.35; }
.status-item small { color: var(--kk8-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.status-item strong { font-size: 13px; }
.support-item { display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff; background: var(--kk8-rust); font-weight: 800; font-size: 14px; }

.section { padding: 76px 0; scroll-margin-top: 70px; }
.section-tint { background: var(--kk8-cream); }
.section-heading { margin-bottom: 30px; }
.section-heading.centered { text-align: center; }
.section-heading h2, .copy-block h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 42px); font-weight: 900; line-height: 1.18; letter-spacing: -.035em; }
.section-heading p:last-child { margin: 0; color: var(--kk8-muted); }

.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.quick-card { position: relative; min-height: 148px; padding: 18px 40px 18px 16px; border: 1px solid var(--kk8-line); border-top: 3px solid #ff8b43; border-radius: 13px; display: flex; align-items: flex-start; gap: 12px; background: rgba(255,255,255,.72); box-shadow: 0 8px 22px rgba(103,46,19,.04); transition: transform .2s ease, box-shadow .2s ease; }
.quick-card:hover, .service-card:hover, .news-card:hover { transform: translateY(-3px); box-shadow: var(--kk8-shadow); }
.quick-card strong, .quick-card small { display: block; }
.quick-card strong { margin-bottom: 5px; line-height: 1.35; font-size: 15px; }
.quick-card small { color: var(--kk8-muted); font-size: 12px; line-height: 1.5; }
.quick-card i { position: absolute; right: 13px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); border-radius: 50%; display: grid; place-items: center; color: var(--kk8-orange); background: var(--kk8-soft); }
.quick-card i svg { width: 15px; height: 15px; }

.split-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 76px; align-items: center; }
.copy-block p:not(.eyebrow) { color: var(--kk8-muted); }
.need-card { padding: 24px 28px; border: 1px solid var(--kk8-line); border-radius: var(--kk8-radius); background: var(--kk8-cream); box-shadow: var(--kk8-shadow); }
.need-card h3 { margin: -2px 0 8px; font-size: 22px; }
.need-card > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--kk8-line); }
.need-card > a:last-child { border-bottom: 0; }
.need-card > a > svg { width: 17px; color: var(--kk8-orange); }
.need-card strong, .need-card small { display: block; }
.need-card small { color: var(--kk8-muted); font-size: 12px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card { min-height: 100px; padding: 18px; border: 1px solid #e8ddd6; border-radius: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: #fff; box-shadow: 0 7px 18px rgba(70,35,17,.04); transition: transform .2s ease, box-shadow .2s ease; }
.service-card > svg { width: 17px; color: var(--kk8-orange); }
.service-card strong, .service-card small { display: block; }
.service-card strong { margin-bottom: 5px; }
.service-card small { color: var(--kk8-muted); font-size: 12px; }

.notice-card { padding: 15px 18px; border: 1px solid #efc8ae; border-radius: 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: #fff0e4; }
.notice-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--kk8-rust); }
.notice-card strong, .notice-card small { display: block; }
.notice-card small { color: var(--kk8-muted); }
.notice-card a { display: flex; align-items: center; gap: 8px; color: var(--kk8-rust); font-size: 13px; font-weight: 800; }
.notice-card a svg { width: 17px; }
.trouble-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trouble-card { min-height: 150px; padding: 18px; border: 1px solid var(--kk8-line); border-radius: 13px; background: #fff; }
.trouble-card strong { display: block; margin: 14px 0 5px; }
.trouble-card p { margin: 0; color: var(--kk8-muted); font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-card { position: relative; min-height: 164px; padding: 18px 42px 18px 16px; border: 1px solid var(--kk8-line); border-radius: 13px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 13px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.news-card em, .news-card strong, .news-card small { display: block; }
.news-card em { margin: 1px 0 5px; color: var(--kk8-orange); font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.news-card strong { margin-bottom: 6px; line-height: 1.35; }
.news-card small { color: var(--kk8-muted); font-size: 12px; line-height: 1.55; }
.news-card i { position: absolute; top: 18px; right: 16px; color: var(--kk8-orange); }
.news-card i svg { width: 17px; }

.faq-layout { display: grid; grid-template-columns: 280px 1fr; gap: 70px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--kk8-line); border-radius: 12px; background: var(--kk8-cream); overflow: hidden; }
.faq-list summary { padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--kk8-rust); background: #fff; font-size: 18px; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 18px 18px; color: var(--kk8-muted); font-size: 14px; }

.site-footer { color: #eaf7ff; background: linear-gradient(180deg, #3fc3ff 0%, #279aff 38%, #268fff 72%, #2695ff 100%); font-family: Arial, "Helvetica Neue", sans-serif; font-size: 13px; line-height: 1.7; }
.kk8-home-page .site-footer .container { width: min(calc(100% - 40px), 1160px); }
.footer-grid { min-height: 235px; padding: 20px 0 22px; display: grid; grid-template-columns: minmax(0,440px) minmax(0,302px) minmax(0,1fr); gap: 50px; }
.site-footer .footer-brand { margin: 0 0 16px; padding: 5px 10px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(8,72,160,.16); }
.site-footer .footer-brand img { height: 46px; }
.footer-about .footer-description { max-width: 440px; margin: 0 0 18px; font-size: 13px; line-height: 22.5px; }
.footer-contact { color: #eaf7ff; font-size: 12px; font-style: normal; font-weight: 700; line-height: 20px; }
.footer-address, .footer-contact-row a { display: flex; align-items: center; gap: 10px; }
.footer-address { padding-left: 10px; }
.site-footer .footer-contact svg { width: 16px; height: 16px; color: #d7f1ff; }
.footer-contact strong { color: #fff; }
.footer-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; margin-top: 16px; padding-left: 10px; }
.footer-grid h3 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 700; line-height: 22px; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { position: relative; padding-left: 12px; line-height: 29px; }
.footer-links li::before { content: "â¢"; position: absolute; left: 0; color: #efac68; }
.footer-links a { font-size: 13px; font-weight: 700; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.22); background: rgba(6,53,130,.18); }
.footer-bottom .container { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; line-height: 15px; }
.footer-responsibility { display: flex; align-items: center; gap: 8px; max-width: 440px; }
.footer-age { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(255,255,255,.08); color: #eaf7ff; font-size: 12px; font-weight: 700; }
.footer-policies { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-weight: 700; }
.footer-copyright { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 1050px) {
  .desktop-nav { gap: 18px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-contact-row { gap: 8px 20px; }
  .footer-responsibility { max-width: 360px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .status-grid { grid-template-columns: repeat(4, 1fr); }
  .support-item { display: none; }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .site-header .brand { width: 132px; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .status-item:nth-child(2) { border-right: 0; }
  .status-item:nth-child(-n+2) { border-bottom: 1px solid var(--kk8-line); }
  .quick-grid, .service-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .split-layout { grid-template-columns: 1fr; gap: 40px; }
  .trouble-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 34px; padding: 26px 0; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about .footer-description { max-width: 540px; }
  .footer-bottom .container { flex-wrap: wrap; padding: 12px 0; gap: 12px 20px; }
  .footer-responsibility { max-width: none; flex-basis: 100%; }
}

@media (max-width: 580px) {
  .kk8-home-page .container { width: min(calc(100% - 28px), var(--kk8-width)); }
  .site-header { height: 64px; }
  .nav-wrap { height: 61px; }
  .site-header .brand { width: 116px; }
  .site-header .brand img { max-height: 40px; }
  .hero { min-height: 520px; }
  .hero-content { padding: 54px 0; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button-warm, .button-light { width: 100%; min-width: 0; }
  .status-grid { width: 100%; grid-template-columns: 1fr 1fr; }
  .status-item { padding: 13px 14px; }
  .status-item:nth-child(even) { border-right: 0; }
  .status-item:nth-child(3), .status-item:nth-child(4) { border-bottom: 0; }
  .section { padding: 58px 0; }
  .section-heading h2, .copy-block h2 { font-size: 32px; }
  .quick-grid, .service-grid, .news-grid, .trouble-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 120px; }
  .need-card { padding: 21px 18px; }
  .notice-card { grid-template-columns: auto 1fr; }
  .notice-card a { grid-column: 1 / -1; justify-content: flex-end; }
  .faq-layout { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-about { grid-column: 1 / -1; }
  .kk8-home-page .site-footer .container { width: calc(100% - 28px); }
  .footer-contact-row { gap: 10px 24px; }
  .footer-bottom .container { padding: 12px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
  .footer-responsibility { flex-basis: auto; }
  .footer-policies { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.detail-hero { padding: 52px 0 58px; color: #fff; background: linear-gradient(115deg,#861f08,#c43710 48%,#ff7421); }
.detail-hero .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; color: #ffddc7; font-size: 13px; }
.detail-hero .breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.detail-hero h1 { max-width: 800px; margin: 0 0 16px; color: #fff; font-size: clamp(36px,4vw,56px); font-weight: 900; line-height: 1.18; }
.detail-hero p:last-child { max-width: 760px; margin: 0; color: #ffe6d4; font-size: 17px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 54px; padding-top: 62px; padding-bottom: 75px; }
.detail-article { min-width: 0; }
.detail-intro { padding: 23px 26px; border-left: 4px solid var(--kk8-orange); border-radius: 0 12px 12px 0; background: var(--kk8-cream); font-size: 18px; font-weight: 600; }
.detail-article section { padding: 30px 0; border-bottom: 1px solid var(--kk8-line); scroll-margin-top: 90px; }
.detail-number { display: inline-block; margin-bottom: 5px; color: var(--kk8-rust); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.detail-article h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.3; }
.detail-article section p { max-width: 70ch; margin: 0; color: var(--kk8-muted); }
.detail-note { margin-top: 32px; padding: 20px 24px; border: 1px solid #edc6aa; border-radius: 12px; background: #fff3e8; }
.detail-note strong { color: var(--kk8-rust); }
.detail-note p { margin: 6px 0 0; color: var(--kk8-muted); }
.detail-next { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; color: var(--kk8-rust); font-weight: 800; }
.detail-sidebar { display: grid; align-content: start; gap: 16px; }
.sidebar-panel { padding: 20px; border: 1px solid var(--kk8-line); border-radius: 14px; background: var(--kk8-cream); }
.sidebar-panel h2 { margin: 0 0 12px; font-size: 17px; }
.sidebar-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--kk8-line); color: var(--kk8-muted); font-size: 13px; }
.sidebar-panel a:hover { color: var(--kk8-rust); }
.directory-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.directory-card { padding: 23px; border: 1px solid var(--kk8-line); border-radius: 14px; background: #fff; }
.directory-card h3 { margin: 0 0 11px; font-size: 18px; }
.directory-card a { display: block; padding: 5px 0; color: var(--kk8-muted); font-size: 14px; }
.directory-card a:hover { color: var(--kk8-rust); }
.promo-layout { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.promo-layout h2 { margin: 0 0 10px; font-size: clamp(29px,3vw,40px); line-height: 1.2; }
.promo-layout p:last-child { max-width: 720px; margin: 0; color: var(--kk8-muted); }
.promo-layout .button { flex: 0 0 auto; }
@media (max-width: 820px) { .detail-layout { grid-template-columns: 1fr; gap: 28px; } .detail-sidebar { grid-template-columns: 1fr 1fr; } .directory-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .detail-hero { padding: 38px 0 45px; } .detail-layout { padding-top: 32px; padding-bottom: 50px; } .detail-sidebar,.directory-grid { grid-template-columns: 1fr; } .detail-next { flex-direction: column; } .promo-layout { display: block; } .promo-layout .button { margin-top: 20px; } }

/* Reference-aligned category archives */
.kk8-category-page { background: #f5f6f8; }
.category-main { min-height: 70vh; padding: 38px 0 72px; }
.category-breadcrumb { display: flex; gap: 6px; margin-bottom: 18px; color: #795e52; font-size: 13px; }
.category-breadcrumb a { color: var(--kk8-rust); font-weight: 800; }
.category-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.category-heading > div { max-width: 820px; }
.category-heading h1 { margin: 0 0 10px; font-size: clamp(34px,4vw,48px); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.category-heading p:last-child { margin: 0; color: #715e55; }
.post-count { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--kk8-line); border-radius: 999px; background: #fff; color: #684b3e; font-size: 12px; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.category-card { min-height: 178px; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; border: 1px solid #e4e5e8; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(43,27,19,.05); }
.category-thumb { min-height: 178px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; color: #fff; background: linear-gradient(135deg,#9c2609,#ef5c17); }
.category-thumb:has(img) { padding: 0; background: #ead8ca; }
.category-thumb img { width: 100%; height: 100%; min-height: 178px; display: block; object-fit: cover; transition: transform .3s ease; }
.category-card:hover .category-thumb img { transform: scale(1.025); }
.category-thumb::after { content: ""; position: absolute; }
.category-thumb span { color: #ffcab0; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.category-thumb strong { font-size: 18px; line-height: 1.25; }
.category-thumb.thumb-2 { background: linear-gradient(135deg,#4e1c10,#d33c10 65%,#f8a04d); }
.category-thumb.thumb-3 { background: linear-gradient(135deg,#be3a0f,#ff872b); }
.category-thumb.thumb-4 { background: linear-gradient(135deg,#72200b,#be3a0f 60%,#f0a35b); }
.category-card-body { padding: 15px 16px; min-width: 0; }
.category-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #887269; font-size: 10px; }
.category-meta span { color: var(--kk8-rust); font-weight: 900; text-transform: uppercase; }
.category-card h2 { margin: 7px 0 6px; font-size: 18px; line-height: 1.3; }
.category-card p { display: -webkit-box; margin: 0 0 8px; overflow: hidden; color: var(--kk8-muted); font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.read-more { color: var(--kk8-rust); font-size: 12px; font-weight: 900; }

/* Reference-aligned article pages */
.kk8-detail-page { background: #f7f4f1; }
.kk8-detail-page .detail-hero { padding: 24px 0 22px; color: var(--kk8-ink); border-bottom: 1px solid var(--kk8-line); background: radial-gradient(circle at 96% 100%,rgba(255,148,67,.17) 0 110px,transparent 112px), linear-gradient(110deg,#fff8f2,#fff0e2); }
.kk8-detail-page .detail-hero .breadcrumbs { margin-bottom: 12px; color: #765f54; }
.kk8-detail-page .detail-hero .breadcrumbs a { color: var(--kk8-rust); font-weight: 800; }
.kk8-detail-page .detail-hero h1 { max-width: 960px; margin: 0 0 12px; color: var(--kk8-ink); font-size: clamp(34px,3.5vw,48px); }
.kk8-detail-page .detail-hero .eyebrow { margin-bottom: 6px; color: var(--kk8-rust); }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 11px; border-top: 1px solid #ead8ca; color: #735f55; font-size: 12px; font-weight: 700; }
.kk8-detail-page .detail-layout { grid-template-columns: minmax(0,750px) 280px; justify-content: center; gap: 20px; padding-top: 20px; padding-bottom: 56px; }
.kk8-detail-page .detail-article { padding: 28px; border: 1px solid var(--kk8-line); border-radius: 14px; background: #fff; }
.kk8-detail-page .detail-intro { margin-top: 0; border-left: 0; border-radius: 0; background: transparent; font-size: 17px; }
.kk8-detail-page .detail-intro-extra { margin: 0 0 18px; color: var(--kk8-ink); font-size: 16px; }
.kk8-detail-page .detail-article section { padding: 24px 0; }
.kk8-detail-page .detail-article h2 { font-size: 26px; }
.kk8-detail-page .detail-article section p + p { margin-top: 12px; }
.kk8-detail-page .detail-article .detail-bullet { position: relative; margin: 8px 0 8px 24px; }
.kk8-detail-page .detail-article .detail-bullet::before { content: "â¢"; position: absolute; left: -18px; color: var(--kk8-orange); font-weight: 900; }
.article-image { margin: 20px 0 8px; overflow: hidden; border: 1px solid #ead8ca; border-radius: 12px; background: #fff8f2; }
.article-image img { width: 100%; height: auto; display: block; }
.article-image figcaption { padding: 9px 13px; color: #745f55; font-size: 12px; line-height: 1.45; }
.kk8-detail-page .detail-sidebar { position: sticky; top: 88px; }
.kk8-detail-page .sidebar-panel { background: #fff; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; }
  .kk8-detail-page .detail-layout { grid-template-columns: minmax(0,1fr) 260px; }
}
@media (max-width: 720px) {
  .category-heading { display: block; }
  .post-count { display: inline-block; margin-top: 16px; }
  .category-card { grid-template-columns: 38% 1fr; }
  .kk8-detail-page .detail-layout { grid-template-columns: 1fr; }
  .kk8-detail-page .detail-sidebar { position: static; }
}
@media (max-width: 500px) {
  .category-main { padding-top: 24px; }
  .category-card { display: block; }
  .category-thumb { min-height: 140px; }
  .kk8-detail-page .detail-article { padding: 20px; }
  .article-meta { gap: 8px 14px; }
}
