/* KIN Newsroom — theme styles. Kia palette: midnight black, live red, white. */
@font-face { font-family: "Kia Signature"; src: url("../fonts/KiaSignatureLight.woff2") format("woff2");   font-weight: 300; font-display: swap; }
@font-face { font-family: "Kia Signature"; src: url("../fonts/KiaSignatureRegular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kia Signature"; src: url("../fonts/KiaSignatureBold.woff2") format("woff2");    font-weight: 700; font-display: swap; }

:root {
	--ink: #05141f; --red: #bb162b; --red-dark: #9a1122;
	--paper: #ffffff; --line: #e4e7ea; --text: #05141f; --text-2: #5b646b; --text-body: #3d474f;
	--text-on-ink: #aab4bc; --placeholder: #d9dee2;
	--font: "Kia Signature", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--wrap: 1180px; --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 .9em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.3rem; border-radius: 6px; font-weight: 700; font-size: 14px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.text-link { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 1px; }
.text-link:hover { color: var(--red); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; min-height: 72px; }
.brand a { display: inline-block; }
.brand img { height: 32px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.nav-list a { display: inline-block; padding: .35rem 0; font-size: 15px; color: var(--ink); border-bottom: 2px solid transparent; }
.nav-list a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-list .current-menu-item > a, .nav-list a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 700; }
.header-link { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero-track { position: relative; aspect-ratio: 16 / 6; min-height: 320px; max-height: 620px; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s ease; display: flex; align-items: flex-end; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,20,31,.75), rgba(5,20,31,0) 50%); pointer-events: none; }
.hero-link { position: absolute; inset: 0; z-index: 2; }
.hero-copy { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 2.5rem; padding-bottom: 2.4rem; pointer-events: none; }
.hero-headline h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; }
.hero-headline p { margin: .3rem 0 0; font-size: 15px; color: #e6eaee; }
.hero-price { border-left: 1px solid rgba(255,255,255,.5); padding-left: 1.4rem; line-height: 1.15; }
.hero-price span { display: block; font-size: 13px; color: #d5dce2; }
.hero-price strong { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; }
.hero-features { margin-left: auto; display: flex; gap: .8rem; font-size: 12.5px; color: #e6eaee; }
.hero-features li + li::before { content: "|"; margin-right: .8rem; color: #8a97a1; }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 6px; background: var(--paper); }
.hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #c9ced2; cursor: pointer; transition: width .25s, background .25s; }
.hero-dots button[aria-selected="true"] { width: 34px; background: var(--ink); }

/* Content */
.content { padding: 1.5rem 0 3rem; }
.article-meta { font-size: 12.5px; color: var(--text-2); margin: .15rem 0 .5rem; }
.summary { color: var(--text-body); font-size: 15px; max-width: 62ch; }
.thumb-empty { display: block; background: var(--placeholder); }

/* Region block (home) */
.region-block { padding: 2.3rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.region-block:last-child { border-bottom: 0; }
.region-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.lead-article { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 2.25rem; align-items: start; }
.lead-copy { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.lead-copy h3 { font-size: 1.3rem; }
.lead-media img, .lead-media .thumb-empty { border-radius: var(--radius); aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.article-rows { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.article-rows li { display: grid; grid-template-columns: 84px 1fr; gap: .9rem; align-items: center; }
.article-rows .row-thumb img, .article-rows .thumb-empty { aspect-ratio: 4 / 3; border-radius: 6px; object-fit: cover; width: 100%; }
.row-title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.article-rows .article-meta { display: block; margin: .15rem 0 0; }
.explore { margin: 1.6rem 0 0; }

/* Region listing / archives */
.page-head { margin: 1rem 0 1.75rem; }
.page-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rss-link { display: inline-flex; align-items: center; gap: .4rem; font-size: 13px; font-weight: 700; color: var(--text-2); }
.crumbs { display: flex; align-items: center; gap: .35rem; font-size: 12.5px; color: var(--text-2); margin-bottom: .6rem; }
.page-intro { color: var(--text-2); max-width: 60ch; }
.article-list { display: grid; gap: 1.75rem; }
.article-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.75rem; align-items: start; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.article-card:last-child { border-bottom: 0; }
.card-media img, .card-media .thumb-empty { border-radius: var(--radius); aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.card-copy { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.card-copy h2 { font-size: 1.3rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Single article */
.single-article .page-head h1 { max-width: 26ch; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.single-media { margin: 0 0 1.5rem; }
.single-media img { border-radius: var(--radius); width: 100%; }
.single-media figcaption { font-size: 12.5px; color: var(--text-2); margin-top: .5rem; }
.standfirst { font-size: 19px; line-height: 1.5; max-width: 60ch; }
.entry-content { max-width: 68ch; font-size: 17px; line-height: 1.7; color: #1f2a33; }
.entry-content h2 { font-size: 1.4rem; margin: 1.8rem 0 .6rem; color: var(--ink); }
.entry-content h3 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; color: var(--ink); }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1em; list-style: revert; }
.entry-content blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--red); color: var(--text-2); }
.entry-content a { color: var(--red); text-decoration: underline; }
.topics { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.topics a { font-size: 12.5px; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); }
.topics a::before { content: "#"; }
.topics a:hover { border-color: var(--ink); color: var(--ink); }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.4rem; }
.search-form { display: flex; gap: .5rem; margin: 1rem 0; max-width: 480px; }
.search-form input { flex: 1; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; }

/* Footer — social row + logo, then Home + assistance lines */
.site-footer { background: var(--ink); color: var(--text-on-ink); padding: 2.5rem 0 2rem; font-size: 15px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.socials { display: flex; gap: 1.25rem; }
.socials a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 18px; background: #fff; color: var(--ink); }
.socials a:hover { background: var(--red); color: #fff; }
.foot-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }
.foot-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-top: 3.5rem; }
.foot-home { display: inline-flex; align-items: center; gap: .6rem; color: var(--text-on-ink); }
.foot-home:hover, .foot-assist a:hover { color: #fff; }
.foot-assist { text-align: right; line-height: 1.3; }
.foot-assist p { margin: 0 0 .6rem; }
.foot-assist p:last-child { margin: 0; }
.foot-assist a { color: var(--text-on-ink); }

/* Responsive */
@media (max-width: 860px) {
	.header-inner { grid-template-columns: auto 1fr auto; gap: 1rem; }
	.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; justify-self: end; }
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
	.nav-toggle-bar::before { position: absolute; top: -7px; }
	.nav-toggle-bar::after { position: absolute; top: 7px; }
	.primary-nav { display: none; grid-column: 1 / -1; padding: .5rem 0 1rem; }
	.primary-nav.is-open { display: block; }
	.nav-list { flex-direction: column; gap: .2rem; }
	.nav-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); }
	.hero-track { aspect-ratio: 4 / 3; }
	.hero-copy { flex-direction: column; align-items: flex-start; gap: .8rem; padding-bottom: 1.4rem; }
	.hero-price { border-left: 0; padding-left: 0; }
	.hero-features { margin-left: 0; flex-wrap: wrap; }
	.lead-article, .article-card { grid-template-columns: 1fr; }
	.lead-media { order: -1; }
	.article-rows { grid-template-columns: 1fr; }
	.foot-top, .foot-bottom { flex-direction: column; align-items: flex-start; }
	.foot-assist { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-dots button { transition: none; } }
