/* Subaru Kenya additions on top of the SGWS styles. SUBARU blue #003f87 / link blue #1e9bd7. */
:root { --kn-blue: #003f87; --kn-link: #1e9bd7; --kn-ink: #222; --kn-grey: #f4f5f6; --kn-line: #d9dcdf; }

.kn-wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
.kn-consent { display: grid !important; grid-template-columns: 22px 1fr; gap: 8px; font-weight: 400 !important; }
.kn-consent input { margin-top: 4px; }
@media (max-width: 768px) { .kn-wrap { padding: 0 16px; } }
.kn-hero { background: var(--kn-blue); color: #fff; padding: 56px 0 44px; }
.kn-hero.has-img { background-size: cover; background-position: center; padding: 0; min-height: 420px; display: flex; align-items: center;
  position: relative; }
.kn-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 65%); }
.kn-hero.has-img .kn-wrap { position: relative; width: 100%; }
.kn-hero.has-img h1 { font-size: 42px; font-weight: 400; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.kn-lead { text-align: center; }
.kn-lead h2 { font-size: 28px; font-weight: 400; }
.kn-lead p { margin-left: auto; margin-right: auto; }
.kn-center { text-align: center; font-weight: 400; font-size: 28px; }
.kn-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px; }
.kn-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; display: block; }
.kn-checks { columns: 2; column-gap: 48px; list-style: none; padding: 0; margin: 0; }
.kn-checks li { break-inside: avoid; padding: 0 0 16px 30px; position: relative; font-size: 15px; }
.kn-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border: 1.5px solid var(--kn-blue);
  border-radius: 50%; font-size: 12px; line-height: 20px; text-align: center; color: var(--kn-blue); }
.kn-checks b { display: block; margin-bottom: 4px; }
.kn-cols { columns: 2; column-gap: 48px; } .kn-cols p { max-width: none; }
.kn-band { background: #2b2d30; padding: 22px 0; }
.kn-band ul { display: flex; flex-wrap: wrap; justify-content: space-around; list-style: none; margin: 0; padding: 0; gap: 10px; }
.kn-band a { color: #fff !important; text-decoration: none; font-size: 16px; letter-spacing: .02em; }
.kn-band a::after { content: " \203A"; color: var(--kn-link); }
@media (max-width: 768px) { .kn-checks, .kn-cols { columns: 1; } .kn-hero.has-img { min-height: 260px; } .kn-hero.has-img h1 { font-size: 30px; } }
.kn-hero h1 { font-size: 34px; letter-spacing: .02em; margin: 0 0 8px; border-left: 4px solid var(--kn-link); padding-left: 16px; }
.kn-hero p { font-size: 16px; margin: 0; padding-left: 20px; opacity: .9; }
.kn-sec { padding: 40px 0; color: var(--kn-ink); line-height: 1.7; }
.kn-sec + .kn-sec { border-top: 1px solid var(--kn-line); }
.kn-sec h2 { font-size: 24px; margin: 0 0 18px; }
.kn-sec p { margin: 0 0 12px; max-width: 860px; }
.kn-sec a { color: var(--kn-link); }
.kn-list { margin: 0 0 16px 20px; list-style: disc; }
.kn-list li { margin: 4px 0; }

.kn-btn, .kn-form button[type=submit], .kn-cookie button {
  display: inline-block; background: var(--kn-blue); color: #fff !important; border: 0; border-radius: 2px;
  padding: 12px 26px; font-size: 15px; text-decoration: none; cursor: pointer; margin: 4px 6px 4px 0; }
.kn-btn.kn-sec, .kn-cookie button.kn-sec { background: #fff; color: var(--kn-blue) !important; border: 1px solid var(--kn-blue); }
.kn-actions { margin-top: 18px; }

.kn-form { max-width: 760px; }
.kn-form label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.kn-form input:not([type=radio]):not([type=checkbox]), .kn-form select, .kn-form textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid var(--kn-line); border-radius: 2px; background: #fff; }
.kn-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.kn-form legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.kn-check { display: inline-flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; margin-right: 24px !important; }
.kn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.kn-note { font-size: 13px; color: #555; }
.kn-hp { position: absolute; left: -9999px; }
.kn-msg { font-weight: 600; }
.kn-msg.ok { color: #1a7f37; } .kn-msg.err { color: #b42318; }
.kn-form .kn-invalid { border-color: #b42318 !important; }

.kn-map iframe { width: 100%; height: 380px; border: 0; margin-bottom: 24px; }
.kn-lead p, .kn-lead .kn-actions { margin-left: auto !important; margin-right: auto !important; text-align: center; }
.kn-carousel { position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden; }
.kn-carousel img { display: none; width: 100%; height: auto; }
.kn-carousel img.on { display: block; }
.kn-carousel .kn-prev, .kn-carousel .kn-next { position: absolute; top: 45%; background: none; border: 0; font-size: 56px; color: var(--kn-link);
  cursor: pointer; padding: 0 14px; line-height: 1; }
.kn-carousel .kn-prev { left: 0; } .kn-carousel .kn-next { right: 0; }
.kn-dots { text-align: center; margin: 10px 0 0 !important; max-width: none !important; }
.kn-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; margin: 0 5px; background: #bbb; cursor: pointer; padding: 0; }
.kn-dots button.on { background: var(--kn-link); }
.kn-filter { text-align: center; max-width: none !important; }
.kn-filter button { border: 1px solid var(--kn-blue); background: #fff; color: var(--kn-blue); padding: 8px 18px; margin: 4px; cursor: pointer; }
.kn-filter button.on { background: var(--kn-blue); color: #fff; }
.kn-newslist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 24px; }
.kn-news { display: grid; grid-template-columns: 380px 1fr; gap: 24px; background: var(--kn-grey); }
.kn-news img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.kn-news > div { padding: 18px 20px 18px 0; } .kn-news h3 { margin: 4px 0 8px; font-size: 20px; }
.kn-tag { color: var(--kn-link); font-weight: 600; font-size: 13px; text-transform: uppercase; margin: 0 !important; }
@media (max-width: 768px) { .kn-news { grid-template-columns: 1fr; } .kn-news > div { padding: 0 16px 16px; } }
/* keep SGWS slanted image sections inside the page width (they bleed to the right edge by default) */
.dt-basic-slide-image-section { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; overflow: hidden; }
.kn-acc details { border-bottom: 1px solid var(--kn-line); }
.kn-acc summary { cursor: pointer; list-style: none; padding: 14px 4px; font-size: 17px; font-weight: 600; position: relative; }
.kn-acc summary::-webkit-details-marker { display: none; }
.kn-acc summary::after { content: "+"; position: absolute; right: 8px; color: var(--kn-link); font-size: 22px; line-height: 1; }
.kn-acc details[open] summary::after { content: "\2212"; }
.kn-acc summary span { color: #777; font-weight: 400; font-size: 14px; }
.kn-acc .kn-table { margin: 0 0 14px; }
/* heritage decades collapsible (kenya.js) */
.dt-history-decade .c_heritage_title-a { cursor: pointer; }
.dt-history-decade .c_heritage_title-a::after { content: " \2212"; color: var(--kn-link); font-weight: 400; }
.dt-history-decade.kn-closed .c_heritage_title-a::after { content: " +"; }
.dt-history-decade.kn-closed > *:not(:first-child) { display: none !important; }
/* heritage: use the empty left space (keep ~260px on the right for the year menu) */
@media (min-width: 1025px) {
  .js_heritage .c_heritage_box-b .c_heritage_box_inner, .js_heritage .c_heritage_box-c .c_heritage_box_inner {
    width: auto !important; max-width: 1240px !important; margin-left: 60px !important; margin-right: 280px !important; }
  .js_heritage .c_heritage_box-c { width: auto !important; max-width: none !important; margin-left: 40px !important; margin-right: 260px !important; }
  .js_heritage .c_heritage_box-c .c_heritage_box_inner { margin-left: 20px !important; margin-right: 20px !important; }
  .js_heritage .c_heritage_box-c .c_heritage_txt-a { columns: 2; column-gap: 40px; text-align: left; }
  .js_heritage .c_heritage_column_item { width: 48% !important; }
}
/* model pages: keep big SGWS images to a sensible size */
.hb-basic-exterior360-multi-internal .c_exterior360_multi_image { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.dt-list-card img { max-height: 240px; width: 100%; object-fit: cover; }
.hb-highlight-basic .c_hero-c, .hb-highlight-basic .c_hero-c .bg { max-height: 62vh; overflow: hidden; }
.hb-highlight-basic .c_hero-c .bg img, .hb-highlight-basic .c_hero-c .bg video { max-height: 62vh; width: 100%; object-fit: cover; }
.dt-basic-section-with-image-or-youtube .image, .dt-basic-section-with-image-or-youtube img,
.dt-basic-section-with-image-or-youtube iframe { max-width: 900px !important; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 1025px) {
}
.c_heritage_txt-a.kn-clamp { max-height: 9.5em; overflow: hidden; position: relative; }
.c_heritage_txt-a.kn-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em;
  background: linear-gradient(rgba(255,255,255,0), #fff); }
.kn-more { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--kn-link); font-size: 15px; cursor: pointer; }
.kn-cards { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)) !important; }
/* footer: compact centred columns like the old site (SGWS spreads 5 columns over the full width) */
#l_footer .l_structure-a { max-width: 1200px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
#l_footer .c_nav_footer { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 0 24px; }
#l_footer .c_nav_footer > div { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }
@media (max-width: 900px) {
  #l_footer .l_structure-a { display: block !important; padding: 0 16px; }
  #l_footer .c_nav_footer { width: 100% !important; float: none !important; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  #l_footer .c_nav_footer > div { text-align: left; }
  #l_footer .u_sitemap, #l_footer .c_sns, #l_footer .l_structure-a > p { float: none !important; width: auto !important; clear: both;
    text-align: center; position: static !important; margin-left: 0 !important; margin-right: 0 !important; }
}
#l_footer .c_sns { justify-content: center; text-align: center; float: none !important; position: static !important; margin: 12px auto; }
@media (max-width: 768px) { #l_footer .c_nav_footer { gap: 0 24px; } }
.kn-form { margin-left: auto; margin-right: auto; }
#l_footer .u_sitemap { position: static !important; float: none !important; width: auto !important; text-align: center; margin: 18px 0 6px; }
#l_footer .l_structure-a > p:last-child { position: static !important; float: none !important; clear: both; text-align: center; padding: 0 16px; }
.kn-branches, .kn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.kn-branch, .kn-cards li { background: var(--kn-grey); padding: 18px; }
.kn-branch h3, .kn-cards h3 { font-size: 17px; margin: 0 0 4px; }
.kn-branch p { margin: 0 0 6px; font-size: 14px; }
.kn-type { color: var(--kn-link); font-weight: 600; }
.kn-table { overflow-x: auto; }
.kn-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.kn-table th, .kn-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--kn-line); }
.kn-table th { background: var(--kn-grey); }

.kn-h1 { font-size: 28px; margin: 0 0 22px; border-left: 4px solid var(--kn-link); padding-left: 14px; }
.kn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0 0 8px; padding: 0; }
.kn-tiles li { background: var(--kn-grey); padding: 18px 20px; }
.kn-tiles h3 { font-size: 16px; margin: 0 0 6px; }
.kn-tiles a { font-weight: 600; }
.kn-avail { background: #fff; }
.kn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.kn-split img { width: 100%; height: auto; display: block; }
.kn-split th { width: 40%; }
@media (max-width: 768px) { .kn-split { grid-template-columns: 1fr; } }
.u_page_top { bottom: 96px !important; }   /* lift SGWS back-to-top above the WhatsApp button */
.kn-wa { position: fixed; right: 18px; bottom: 24px; z-index: 900; background: #25d366; color: #fff !important; border-radius: 24px;
  padding: 10px 18px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.kn-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(20,24,28,.95); color: #fff;
  padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; }
.kn-cookie[hidden] { display: none; }
.kn-cookie p { margin: 0; flex: 1 1 320px; } .kn-cookie a { color: #8fd3ff; }

@media (max-width: 768px) {
  .kn-row { grid-template-columns: 1fr; }
  .kn-hero h1 { font-size: 26px; }
  .kn-wa { bottom: 132px; right: 12px; padding: 8px 14px; }
  .u_page_top { bottom: 184px !important; }
}
