/*
 * HyundaiHQ: "Front page" direction. A warm paper page, navy ink and serif headlines in sentence case, in place of
 * the parent's condensed uppercase type and coloured header. Loaded after the parent's theme.css, so the tokens below
 * restyle every shared page; the hq- classes belong to this theme's own home page and model files.
 * Breakpoints: phone < 700, tablet 700-1079, desktop >= 1080 (the parent's own nav switches at 1200).
 */

:root {
	--red: #8fb7ea;
	--red-dark: #b5cff2;
	--red-dark-bg: #8fb7ea;
	--red-on-dark: #8fb7ea;
	--night: #0f1826;
	--surface: #172334;
	--adband: #172334;
	--chip: #1e2c40;
	--chip-2: #243449;
	--line: #26364c;
	--line-2: #3a4c64;
	--text: #f3eee3;
	--body: #dcd7cb;
	--secondary: #bcb8ad;
	--secondary-2: #d3cec2;
	--muted: #9ba3ad;
	--faint: #8c95a0;
	--ph-a: #1e2c40;
	--ph-b: #172334;
	--ad-border: #3a4c64;
	--archive-bg: #0f1826;
	--recall-bg: #33190e;
	--recall-border: #7a3a1c;
	--recall-text: #f4a877;
	--error: #f4a877;
	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--mono: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--wp--preset--font-family--archivo: var(--sans);
	--hq-ink: #f3eee3;
	--hq-band: #0a1420;
	--hq-radius: 3px;
}

:root:not([data-theme="dark"]) {
	--red: #002c5f;
	--red-dark: #001f45;
	--red-dark-bg: #0b4f9e;
	--red-on-dark: #8fb7ea;
	--night: #f7f3ea;
	--surface: #efe9db;
	--adband: #efe9db;
	--chip: #efe9db;
	--chip-2: #e7dfce;
	--line: #e0d8c6;
	--line-2: #cbc1ab;
	--text: #10213a;
	--body: #1d2d45;
	--secondary: #3a4a61;
	--secondary-2: #3a4a61;
	--muted: #5a6778;
	--faint: #5a6778;
	--ph-a: #efe9db;
	--ph-b: #e7dfce;
	--ad-border: #cbc1ab;
	--archive-bg: #f7f3ea;
	--recall-bg: #fbece1;
	--recall-border: #ecc6ab;
	--recall-text: #a23c0e;
	--error: #a23c0e;
	--wp--preset--color--night: #f7f3ea;
	--wp--preset--color--surface: #efe9db;
	--wp--preset--color--ad-band: #efe9db;
	--wp--preset--color--chip: #efe9db;
	--wp--preset--color--chip-2: #e7dfce;
	--wp--preset--color--text: #10213a;
	--wp--preset--color--secondary: #3a4a61;
	--wp--preset--color--secondary-2: #3a4a61;
	--wp--preset--color--muted: #5a6778;
	--wp--preset--color--faint: #5a6778;
	--wp--preset--color--red-on-dark: #0b4f9e;
	--hq-ink: #10213a;
	--hq-band: #002c5f;
}

body { font-size: 18px; }
.tr-container { max-width: calc(1240px + 2 * var(--gutter)); }
@media (min-width: 700px) { :root { --gutter: 28px; } }

/* ---------- Shared type: serif, sentence case, nothing condensed ---------- */
.tr-empty h1, .tr-lead__title, .tr-row__title, .tr-compact__title, .tr-article__title, .tr-feature__title, .tr-archive-head__title,
.tr-prose h2, .tr-prose h3, .tr-follow__title, .tr-nl-head__title, .tr-404__title, .tr-soon__title, .tr-band-news__title, .tr-result__title,
.tr-trend__title, .tr-recall__title, .tr-video__title, .tr-tile__title {
	font-family: var(--serif);
	font-stretch: normal;
	font-weight: 500;
	text-transform: none;
	letter-spacing: -.012em;
	line-height: 1.14;
}
.tr-kicker, .tr-sresult__kicker, .tr-crumbs, .tr-section__title, .tr-label, .tr-deals__title, .tr-specs__title, .tr-share__label, .tr-author-box__label,
.tr-footer__col h2, .tr-models__label, .tr-overlay__label, .tr-facts__title, .tr-table th, .tr-deals__label, .tr-recall__kicker {
	letter-spacing: .01em;
	text-transform: none;
	font-weight: 600;
}
.tr-kicker, .tr-sresult__kicker { font-size: 13px; }
.tr-section { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--text); }
.tr-section__title { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.tr-section__rule { display: none; }
.tr-section__link { margin-left: auto; font-weight: 600; }
.tr-label { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.tr-img { border-radius: var(--hq-radius); }
.tr-btn { border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; padding: 11px 22px; }
.tr-btn--black { background: var(--red); }
.tr-chip { border-radius: var(--hq-radius); background: transparent; border-color: var(--line-2); font-weight: 500; }
.tr-chip.is-active, .tr-chip--filter.is-active { background: var(--text); border-color: var(--text); color: var(--night); }

/* ---------- Header: paper bar with a rule, one row, no coloured band ---------- */
.tr-part-header { box-shadow: none; }
.tr-utility { display: none !important; }
.tr-bar { background: var(--night); color: var(--text); border-bottom: 1px solid var(--text); }
.tr-iconbtn, .tr-iconbtn:hover { color: var(--text); }
.tr-logo, .tr-logo:hover, .tr-logo--word:hover { color: var(--text); }
.tr-logo--word { gap: 0; font-family: var(--serif); font-size: 25px; font-weight: 500; font-stretch: normal; letter-spacing: -.02em; text-transform: none; }
.tr-logo--word span { font-weight: 500; }
.tr-overlay__head { background: var(--night); border-bottom: 1px solid var(--text); }
.tr-overlay__list a { font-family: var(--serif); font-weight: 500; font-stretch: normal; text-transform: none; }
.tr-subbar { border-bottom: 1px solid var(--line); }
.tr-chips--models { gap: 18px; padding: 9px 0; }
.tr-chips--models .tr-chip { padding: 0; border: 0; background: none; font-size: 14px; }
.tr-chips--models .tr-chip.is-active { color: var(--red-dark-bg); background: none; }

@media (min-width: 1200px) {
	.tr-bar__inner { min-height: 56px; align-items: center; }
	.tr-nav { justify-content: center; }
	.tr-nav__item, .tr-nav__item:hover { color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
	.tr-nav__item.is-active { color: var(--red-dark-bg); }
	.tr-nav__caret { opacity: .45; }
	.tr-dropdown { background: var(--night); border: 1px solid var(--line-2); box-shadow: 0 10px 28px rgba(16, 33, 58, .14); }
	.tr-dropdown a { color: var(--text); font-size: 15px; font-weight: 500; font-stretch: normal; letter-spacing: 0; text-transform: none; }
	.tr-dropdown a:hover { background: var(--surface); color: var(--text); }
	.home .tr-bar__logo { visibility: hidden; width: 0; margin-right: -28px; }
}

.tr-mode { background: var(--chip-2); color: var(--text); }

/* ---------- Masthead (home page only) ---------- */
.hq-masthead { display: none; }
@media (min-width: 1200px) {
	.hq-masthead { display: block; padding: 10px 0 18px; text-align: center; }
	.hq-masthead__line { display: flex; justify-content: space-between; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
	.hq-masthead__word, .hq-masthead__word:hover { font-family: var(--serif); font-size: 76px; font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--text); }
	.hq-masthead__word em { color: var(--red-dark-bg); }
}

/* ---------- Home: front page ---------- */
.hq-kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--red-dark-bg); }
.hq-kicker:hover { color: var(--text); }
.hq-byline { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.hq-front { display: grid; gap: 28px; padding-block: 20px 36px; }
.hq-lead__media { display: block; aspect-ratio: 3 / 2; margin-bottom: 12px; overflow: hidden; }
.hq-lead__title { margin: 4px 0 8px; font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.08; letter-spacing: -.02em; }
.hq-lead__dek { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--secondary); }

.hq-wire__title { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--text); font-family: var(--serif); font-size: 22px; font-weight: 500; font-style: italic; }
.hq-wire__list { margin: 0; padding: 0; list-style: none; }
.hq-wire__item { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; line-height: 1.22; }
.hq-wire__item a { display: block; }
.hq-wire__time { display: inline; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); }
.hq-wire__section { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.hq-wire__time::after { content: " ·"; }
.hq-wire__item { display: grid; grid-template-columns: auto 1fr; column-gap: 4px; }
.hq-wire__item a { grid-column: 1 / -1; grid-row: 2; margin-top: 2px; }
.hq-wire__section { grid-column: 2; grid-row: 1; }

.hq-sidecol { display: grid; gap: 24px; }
.hq-side__media { display: block; aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; }
.hq-side__title { margin: 2px 0 0; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.16; letter-spacing: -.01em; }

.hq-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--text); }
.hq-head__title { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.hq-head__note { margin: 0; font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--muted); }
.hq-head__link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--red-dark-bg); }

.hq-sisters { padding-block: 32px; background: var(--surface); }
.hq-pairs { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.hq-pairs::-webkit-scrollbar { display: none; }
.hq-pair__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.hq-pair__names { margin: 8px 0 0; font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.hq-pair__names span { font-style: italic; color: var(--muted); }
.hq-pair__names a:hover { color: var(--red-dark-bg); }

.hq-desks { padding-block: 36px 8px; }
.hq-desks__grid { display: grid; gap: 32px; }
.hq-desk__title { margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--text); font-family: var(--serif); font-size: 24px; font-weight: 500; }
.hq-desk__list { margin: 0; padding: 0; list-style: none; }
.hq-desk__list li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hq-desk__list time { padding-top: 2px; font-size: 13px; color: var(--muted); }
.hq-desk__list a { font-family: var(--serif); font-size: 18px; line-height: 1.22; }
.hq-desk--recalls .hq-desk__title { border-color: var(--recall-text); color: var(--recall-text); }
.hq-desk__vin { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--recall-text); }

.hq-stream { display: grid; gap: 32px; padding-block: 28px 44px; }
.hq-stream .tr-row { grid-template-columns: 1fr 112px; padding: 16px 0; }
.hq-stream .tr-row__media { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.hq-stream .tr-row__body { grid-column: 1; grid-row: 1; }
.hq-stream .tr-row__title { font-size: 21px; font-weight: 500; }
.tr-card__dek { font-family: var(--serif); font-size: 16px; color: var(--secondary); }
.hq-also { padding: 18px; background: var(--surface); border-radius: var(--hq-radius); }
.hq-also__title { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 500; font-style: italic; }
.hq-also ul { margin: 0; padding: 0; list-style: none; }
.hq-also li { padding: 10px 0; border-top: 1px solid var(--line-2); font-family: var(--serif); font-size: 17px; line-height: 1.22; }
.hq-also li:first-child { border-top: 0; }
.hq-stream__rail { display: grid; align-content: start; gap: 24px; }
.tr-loadmore { margin-top: 20px; }

@media (min-width: 700px) {
	.hq-front { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hq-lead { grid-column: 1 / -1; }
	.hq-sidecol { grid-template-columns: 1fr; }
	.hq-pairs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
	.hq-desks__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
	.hq-stream .tr-row { grid-template-columns: 1fr 208px; gap: 24px; }
	.hq-stream .tr-row__title { font-size: 25px; }
	.hq-lead__title { font-size: 44px; }
}
@media (min-width: 1080px) {
	.hq-front { grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 32px; padding-top: 24px; }
	.hq-wire { grid-column: 1; grid-row: 1; padding-right: 28px; border-right: 1px solid var(--line); margin-right: -4px; }
	.hq-lead { grid-column: 2; grid-row: 1; }
	.hq-sidecol { grid-column: 3; grid-row: 1; align-content: start; }
	.hq-lead__title { font-size: 50px; }
	.hq-stream { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
	.hq-stream__rail { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
}

/* ---------- Model file ---------- */
.hq-file { padding-block: 20px 0; }
.hq-file__inner { display: grid; gap: 18px; }
.hq-file__crumbs { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.hq-file__crumbs a { color: var(--red-dark-bg); font-weight: 600; }
.hq-file__title { margin: 0; font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1.02; letter-spacing: -.025em; }
.hq-file__sub { margin: 6px 0 0; font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--secondary); }
.hq-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin: 18px 0 0; }
.hq-facts div { padding: 10px 0; border-top: 1px solid var(--line-2); }
.hq-facts dt { font-size: 13px; color: var(--muted); }
.hq-facts dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.hq-file__photo { aspect-ratio: 16 / 10; overflow: hidden; order: -1; }
.hq-filetabs { margin-top: 22px; border-block: 1px solid var(--text); }
.hq-filetabs .tr-scroller { gap: 22px; align-items: center; }
.hq-filetab { flex: none; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--muted); }
.hq-filetab.is-active { color: var(--text); font-weight: 700; }
.hq-filetabs__gap { flex: none; width: 1px; height: 18px; background: var(--line-2); }
.hq-variant { flex: none; font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--secondary); }
.hq-variant.is-active { color: var(--text); font-weight: 600; }

.hq-filebody { display: grid; gap: 32px; padding-block: 28px 48px; }
.hq-filebody__title { margin: 0 0 14px; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.015em; }
.hq-time { border-left: 1px solid var(--line-2); padding-left: 18px; }
.hq-time__month { position: relative; margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hq-time__month::before { content: ""; position: absolute; left: -22.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-dark-bg); }
.hq-time__list { margin: 0 0 22px; padding: 0; list-style: none; }
.hq-entry { display: grid; grid-template-columns: 30px minmax(0, 1fr) 84px; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.hq-entry__day { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--muted); }
.hq-entry__section { font-size: 13px; font-weight: 600; color: var(--red-dark-bg); }
.hq-entry__title { margin: 1px 0 0; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.16; letter-spacing: -.01em; }
.hq-entry__dek { display: none; margin: 4px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.35; color: var(--secondary); }
.hq-entry__media { aspect-ratio: 4 / 3; overflow: hidden; }

.hq-filebody__rail { display: grid; align-content: start; gap: 22px; }
.hq-notice { padding: 16px; background: var(--recall-bg); border-left: 3px solid var(--recall-text); border-radius: var(--hq-radius); }
.hq-notice__label { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--recall-text); }
.hq-notice__title { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.hq-notice__vin { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--recall-text); }
.hq-sister__media { display: block; aspect-ratio: 16 / 10; margin-bottom: 8px; overflow: hidden; }
.hq-sister__label { margin: 0; font-size: 13px; color: var(--muted); }
.hq-sister__name { font-family: var(--serif); font-size: 22px; }
.hq-trims__title { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.hq-trims ul { margin: 0; padding: 0; list-style: none; }
.hq-trims li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }

@media (min-width: 700px) {
	.hq-facts { grid-template-columns: repeat(3, 1fr); }
	.hq-entry { grid-template-columns: 40px minmax(0, 1fr) 150px; gap: 18px; }
	.hq-entry__dek { display: block; }
	.hq-entry__day { font-size: 30px; }
	.hq-entry__title { font-size: 24px; }
	.hq-filebody__rail { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
	.hq-file { padding-top: 32px; }
	.hq-file__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
	.hq-file__photo { order: 0; }
	.hq-file__title { font-size: 68px; }
	.hq-filebody { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
	.hq-filebody__rail { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
}

/* ---------- Newsletter and footer ---------- */
.hq-letter { padding-block: 44px; background: var(--hq-band); color: #f7f3ea; }
.hq-letter__inner { display: grid; gap: 20px; align-items: end; }
.hq-letter__eyebrow { margin: 0 0 2px; font-size: 13px; opacity: .75; }
.hq-letter__title { margin: 0; color: #f7f3ea; font-family: var(--serif); font-size: 42px; font-style: italic; font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.hq-letter__text { margin: 8px 0 0; max-width: 560px; font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.hq-letter .tr-subscribe__email { border-radius: 999px 0 0 999px; }
.hq-letter .tr-btn--black { background: #f7f3ea; color: #002c5f; border-radius: 0 999px 999px 0; }
.hq-letter .tr-btn--black:hover { background: #fff; color: #002c5f; }
.hq-letter .tr-subscribe__msg { color: #f7f3ea; }
@media (min-width: 1080px) { .hq-letter__inner { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; } }

.tr-footer { border-top: 1px solid var(--text); }
.tr-footer .tr-logo--word { font-size: 32px; }
.tr-footer__col h2 { font-family: var(--serif); font-size: 18px; font-weight: 500; }

/* ---------- Articles, archives and pages inherit the tokens; these keep them in step ---------- */
.tr-prose { font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.tr-prose table { font-family: var(--sans); }
.tr-article__title { font-size: 36px; letter-spacing: -.02em; }
.tr-article__dek { font-family: var(--serif); font-size: 21px; line-height: 1.32; }
.tr-prose h2 { font-size: 27px; }
.tr-prose h3 { font-size: 22px; }
.tr-prose blockquote, .tr-prose .wp-block-quote { font-family: var(--serif); font-style: italic; font-weight: 400; }
.tr-archive-head { border-bottom: 1px solid var(--text); }
.tr-archive-head__title { font-size: 52px; }
.tr-archive-head__desc { font-family: var(--serif); font-size: 19px; }
.tr-feature__title { font-size: 34px; }
.tr-compact__title { font-size: 21px; }
.tr-recall { border-radius: var(--hq-radius); }
@media (min-width: 1200px) { .tr-article__title { font-size: 50px; } .tr-compact__title { font-size: 24px; } }
.tr-trend__n { font-family: var(--serif); font-size: 30px; font-weight: 400; font-stretch: normal; font-style: italic; color: var(--red-dark-bg); }
.tr-trend__title { line-height: 1.22; }
