/*
Theme Name: Tirexp
Theme URI: https://tire.xo2.ru
Description: Custom theme for Шинный Эксперт - apple.com style
Version: 1.0.0
Author: Tirexp Team
Text Domain: tirexp
*/

:root {
  --orange: #EF7A1C;
  --gray-dark: #818181;
  --gray-light: #BABABA;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --bg-dark: #1A1A1A;
  --text: #1A1A1A;
  --text-secondary: #818181;
  --text-inverse: #FFFFFF;
  --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Bitter', Georgia, 'Times New Roman', serif;
  --reader-scale: 1;
  --fs-micro: calc(11px * var(--reader-scale));
  --fs-label: calc(12px * var(--reader-scale));
  --fs-caption: calc(13px * var(--reader-scale));
  --fs-ui: calc(14px * var(--reader-scale));
  --fs-menu: calc(15px * var(--reader-scale));
  --fs-body: calc(17px * var(--reader-scale));
  --fs-body-lg: calc(18px * var(--reader-scale));
  --fs-card-title: calc(21px * var(--reader-scale));
  --fs-card-title-lg: calc(31px * var(--reader-scale));
  --fs-display: calc(34px * var(--reader-scale));
  --fs-popular-title: calc(15px * var(--reader-scale));
  --fs-popular-head: calc(28px * var(--reader-scale));
  --fs-section-title: calc(34px * var(--reader-scale));
  --site-shell: 1360px;
  --sidebar-width: 228px;
  --site-gutter: max(0px, calc((100vw - var(--site-shell)) / 2));
  --radius: 8px;
  --radius-sm: 8px;
  --radius-section: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.tirexp-font-sm { --reader-scale: 0.94; }
html.tirexp-font-md { --reader-scale: 1; }
html.tirexp-font-lg { --reader-scale: 1.12; }

body {
  font-family: var(--font-heading);
  color: #fff;
  background: var(--bg);
  line-height: 1.58;
  font-size: var(--fs-body-lg);
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

h1,
h2,
h3,
.section-title,
.article-title,
.hero-title,
.portal-lead h1,
.portal-main-story h2,
.portal-brief h2,
.portal-section-head h2,
.portal-card h3,
.portal-brief a strong,
.portal-side-list a strong,
.card-title {
  font-family: var(--font-heading);
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: #d06a15; }
img { max-width: 100%; height: auto; display: block; }

/* NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(58,58,60,0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav::after {
  content: "";
  position: absolute;
  left: calc(var(--site-gutter) + var(--sidebar-width) + 28px);
  right: calc(var(--site-gutter) + 28px);
  bottom: -2px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0, rgba(239,122,28,0.25) 24%, var(--orange) 50%, rgba(239,122,28,0.25) 76%, transparent 100%);
}

.nav-inner {
  position: relative;
  max-width: var(--site-shell);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  gap: 16px;
}

.nav-inner > *,
.site-content,
.container,
.portal-top-grid,
.portal-layout,
.portal-lead,
.portal-main-story,
.portal-brief,
.portal-card,
.archive-card,
.article-main-column {
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  position: fixed;
  left: var(--site-gutter);
  top: 0;
  width: var(--sidebar-width);
  height: 100%;
  flex: 0 0 var(--sidebar-width);
  justify-content: center;
  order: 2;
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: none;
}

.nav-tagline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: calc(32px * var(--reader-scale));
  font-weight: 500;
  line-height: 1.05;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  flex: 0 0 auto;
  order: 3;
}

.nav-menu {
  display: none;
  gap: clamp(10px, 0.9vw, 16px);
  list-style: none;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  overflow: hidden;
  order: 4;
}

.nav-menu a {
  color: rgba(255,255,255,0.92);
  font-size: var(--fs-ui);
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover { color: var(--orange); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: max-content;
  order: 5;
  position: relative;
  margin-left: auto;
}

.nav-font-size {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  overflow: hidden;
}

.nav-font-size button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: rgba(255,255,255,0.82);
  font: 800 calc(16px * var(--reader-scale))/1 var(--font);
  cursor: pointer;
}

.nav-font-size button:last-child {
  border-right: 0;
}

.nav-font-size button.active,
.nav-font-size button:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

.nav-settings-toggle,
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: 800 var(--fs-ui)/1 var(--font);
  cursor: pointer;
}

.nav-settings-toggle svg,
.nav-contact svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-contact {
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-settings-toggle:hover,
.nav-actions.settings-open .nav-settings-toggle,
.nav-contact:hover {
  border-color: var(--orange);
  background: #111;
  color: #fff;
}

.nav-contact:hover {
  transform: scale(1.02);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 324px;
  padding: 18px;
  border: 1px solid rgba(239,122,28,0.45);
  border-radius: 10px;
  background: #151515;
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-actions.settings-open .settings-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.settings-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.settings-row span {
  color: rgba(255,255,255,0.72);
  font: 700 var(--fs-caption)/1 var(--font);
}

.settings-langs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.search-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #fff;
}

.nav-search {
  display: flex;
  align-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  transition: width 0.24s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-search:not(.active):not(:focus-within):hover {
  border-color: var(--orange);
  background: #111;
}

.nav-search:not(.active):not(:focus-within):hover .nav-search-button {
  color: #fff;
}

.nav-search.active,
.nav-search.is-searching,
.nav-search:focus-within {
  width: clamp(210px, 18vw, 280px);
  min-width: clamp(210px, 18vw, 280px);
  flex-basis: clamp(210px, 18vw, 280px);
  background: #fff;
  border-color: #fff;
}

.nav-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-search.active .nav-search-button,
.nav-search.is-searching .nav-search-button,
.nav-search:focus-within .nav-search-button {
  color: var(--orange);
}

.nav-search-button svg {
  display: block;
}

.nav-search input {
  width: 0;
  min-width: 0;
  height: 40px;
  border: 0;
  background: #fff;
  color: var(--text);
  padding: 0;
  font-size: var(--fs-ui);
  outline: none;
  opacity: 0;
  transition: width 0.24s ease, opacity 0.16s ease, padding 0.24s ease;
}

.nav-search.active input,
.nav-search.is-searching input,
.nav-search:focus-within input {
  width: 100%;
  padding: 0 14px 0 2px;
  opacity: 1;
}

.nav-search input::placeholder {
  color: rgba(26,26,26,0.58);
}

.nav-search input:focus {
  border-color: transparent;
}

.nav-search input::-webkit-search-cancel-button,
.search-input::-webkit-search-cancel-button,
.portal-search-band input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  cursor: pointer;
  background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3.2 2.2 8 7l4.8-4.8 1 1L9 8l4.8 4.8-1 1L8 9l-4.8 4.8-1-1L7 8 2.2 3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M3.2 2.2 8 7l4.8-4.8 1 1L9 8l4.8 4.8-1 1L8 9l-4.8 4.8-1-1L7 8 2.2 3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: none;
  transition: all var(--transition);
}

.lang-switch:hover { border-color: var(--orange); color: var(--orange); }

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-login svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-login:hover {
  border-color: var(--orange);
  background: #111;
  color: #fff;
  transform: scale(1.02);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  order: 1;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 0;
  transition: all var(--transition);
}

.site-content {
  width: calc(min(100vw, var(--site-shell)) - var(--sidebar-width));
  max-width: calc(var(--site-shell) - var(--sidebar-width));
  margin-left: calc(var(--site-gutter) + var(--sidebar-width));
  min-height: 100vh;
}

.site-sidebar {
  position: fixed;
  top: 64px;
  left: var(--site-gutter);
  bottom: 0;
  z-index: 900;
  width: var(--sidebar-width);
  padding: 40px 14px 22px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.sidebar-label {
  margin: 0 8px 8px;
  color: var(--orange);
  font: 800 var(--fs-label)/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.sidebar-home-menu {
  margin-bottom: 4px;
}

.sidebar-extra-menu {
  margin-top: 4px;
}

.sidebar-home-menu a {
  background: #f7f7f8;
  color: var(--text);
}

.sidebar-menu a {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 9px 12px 9px 16px;
  border-radius: 8px;
  color: rgba(26,26,26,0.86);
  font: 800 calc(18px * var(--reader-scale))/1.16 var(--font-heading);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.sidebar-menu a::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  bottom: 7px;
  width: 3px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.sidebar-menu a:hover,
.sidebar-menu .current-menu-item > a,
.sidebar-menu .current_page_item > a {
  color: var(--text);
  background: #f2f2f3;
  transform: translateX(2px);
}

.sidebar-menu a:hover::before,
.sidebar-menu .current-menu-item > a::before,
.sidebar-menu .current_page_item > a::before {
  transform: scaleY(1);
}

/* HERO */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-dark);
}

/* MEDIA PORTAL HOME */
.portal-top {
  background: #f7f7f8;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 18px 0 22px;
  border-radius: 0 0 var(--radius-section) 0;
  overflow: hidden;
}

.portal-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.portal-lead,
.portal-main-story,
.portal-brief {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  align-self: stretch;
  height: 100%;
  min-height: 0;
}

.portal-lead {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #fff;
  color: var(--text);
}

.portal-lead h1,
.portal-main-story h2,
.portal-brief h2 {
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 900;
  overflow-wrap: break-word;
}

.portal-lead h1 {
  font-size: var(--fs-display);
  margin: 8px 0 12px;
}

.portal-main-story p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.48;
}

.portal-lead p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.44;
}

.portal-lead-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 0;
}

.portal-lead-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  color: var(--text);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.portal-lead-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.portal-main-story .portal-feature-primary {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 18px 20px;
  color: var(--text);
}

.portal-top-thumb {
  position: relative;
  aspect-ratio: 16/8.4;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  margin-bottom: 12px;
}

.portal-top-thumb img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  background: transparent;
}

.portal-main-story h2 {
  font-size: calc(31px * var(--reader-scale));
  margin: 8px 0 10px;
}

.portal-feature-card .portal-feature-primary {
  min-height: 455px;
}

.portal-feature-card .portal-top-thumb {
  aspect-ratio: 16/8.6;
}

.portal-feature-video .portal-text-link {
  margin-top: auto;
}

.portal-feature-video {
  display: flex;
  flex-direction: column;
}

.portal-feature-video .portal-feature-primary {
  flex: 1 1 auto;
  min-height: 318px;
}

.portal-feature-video .portal-top-thumb .card-duration {
  right: 2px;
  bottom: 8px;
}

.portal-feature-pick {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 20px 20px;
  padding: 12px;
  border: 1px solid rgba(239,122,28,0.25);
  border-radius: 8px;
  background: #fff8f2;
  color: var(--text);
}

.portal-feature-pick:hover {
  border-color: var(--orange);
}

.portal-feature-pick-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt);
}

.portal-feature-pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-feature-pick-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.portal-feature-pick strong {
  font-family: var(--font-heading);
  font-size: calc(17px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.portal-feature-pick-date {
  color: var(--text-secondary);
  font-size: var(--fs-label);
  font-weight: 800;
}

.portal-text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--orange);
  font-weight: 800;
}

.portal-story-meta {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: var(--fs-label);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-hero {
  position: relative;
  min-height: 640px;
  background: var(--bg-dark);
  overflow: hidden;
}

.portal-hero-media,
.portal-hero-media img,
.portal-hero-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-hero-media img {
  object-fit: cover;
}

.portal-hero-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: calc(56px * var(--reader-scale));
  font-weight: 700;
  background: #262626;
}

.portal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.18) 100%);
}

.portal-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: end;
  gap: 40px;
}

.portal-hero-main {
  max-width: 760px;
  color: #fff;
}

.portal-hero-main h1 {
  font-size: calc(64px * var(--reader-scale));
  line-height: 0.98;
  letter-spacing: 0;
  margin: 12px 0 18px;
}

.portal-hero-main p {
  max-width: 620px;
  color: rgba(255,255,255,0.82);
  font-size: calc(19px * var(--reader-scale));
}

.portal-kicker {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-button,
.portal-search-band button,
.portal-catalog-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  padding: 10px 22px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.portal-button {
  margin-top: 26px;
}

.portal-brief {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px 10px;
  align-self: start;
}

.portal-brief-wide {
  grid-column: 1 / -1;
  align-self: stretch;
  height: auto;
  padding: 18px 20px;
}

.portal-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-brief h2 {
  color: var(--text);
  font-size: var(--fs-popular-head);
  margin-bottom: 14px;
}

.portal-side-list h3 {
  color: var(--text);
  font-size: var(--fs-body-lg);
  margin-bottom: 8px;
}

.portal-brief a,
.portal-side-list a {
  display: block;
  padding: 7px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--text);
}

.portal-brief a.portal-brief-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 0;
}

.portal-brief-wide a.portal-brief-item {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  min-height: 104px;
  padding: 0;
  border-top: 0;
}

.portal-brief-wide .portal-brief-thumb {
  border-radius: 8px;
}

.portal-side-list a.portal-side-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
}

.portal-side-list a.portal-side-item-no-thumb {
  grid-template-columns: 1fr;
}

.portal-brief-thumb,
.portal-side-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}

.portal-brief-thumb img,
.portal-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.portal-thumb-empty,
.archive-thumb-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(239,122,28,0.22);
  background: #fff7f0;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: calc(22px * var(--reader-scale));
  font-weight: 900;
  line-height: 1;
}

.portal-thumb-empty span {
  transform: translateY(1px);
}

.portal-brief-copy,
.portal-side-copy {
  min-width: 0;
}

.portal-brief-copy > span,
.portal-side-date {
  display: block;
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.portal-brief a strong,
.portal-side-list a strong {
  display: block;
  color: var(--text);
  font-size: var(--fs-popular-title);
  line-height: 1.2;
  font-weight: 800;
}

.portal-search-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.portal-search-band form {
  display: flex;
  gap: 10px;
}

.portal-search-band input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  padding: 0 18px;
  font-size: var(--fs-menu);
}

.portal-topics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-topics-label {
  color: var(--text);
  font-size: var(--fs-ui);
  font-weight: 800;
  margin-right: 2px;
}

.portal-topics a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: var(--fs-caption);
}

.portal-section {
  padding: 58px 0;
  border-radius: 0 var(--radius-section) var(--radius-section) 0;
  overflow: hidden;
}

.portal-section-compact {
  padding-top: 0;
}

.portal-section-dark {
  background: #202020;
  color: #fff;
}

#shorts.portal-section {
  position: relative;
  background: #fff;
  color: var(--text);
  padding: 48px 0 62px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  border-radius: 0 var(--radius-section) 0 0;
}

#shorts.portal-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(760px, calc(100% - 56px));
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 18%, var(--orange) 82%, transparent 100%);
  transform: translateX(-50%);
}

#shorts .portal-section-head {
  margin-bottom: 18px;
}

#shorts .portal-section-head h2 {
  font-size: calc(30px * var(--reader-scale));
  color: var(--text);
}

#shorts .portal-section-head a,
#shorts .portal-card h3 {
  color: var(--text);
}

#shorts .portal-card-video {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

#shorts .portal-rail-button {
  background: #fff;
  color: var(--orange);
  border-color: var(--orange);
}

#shorts .portal-rail-button:hover {
  background: var(--orange);
  color: #fff;
}

.portal-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.portal-section-head h2 {
  font-size: var(--fs-section-title);
  line-height: 1.08;
  margin-top: 6px;
  letter-spacing: 0;
  max-width: 780px;
  font-weight: 800;
  overflow-wrap: break-word;
}

.portal-section-dark .portal-section-head a,
.portal-section-dark .portal-card h3,
.portal-section-dark .portal-card p {
  color: #fff;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.portal-main-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portal-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.portal-card a {
  color: inherit;
}

.portal-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.portal-card-image {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.portal-card-large .portal-card-image {
  aspect-ratio: 16/9;
}

.portal-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
  transition: none;
}

.portal-card:hover img {
  transform: none;
}

.portal-video-preview-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: cover;
  pointer-events: none;
}

.portal-card-image .card-duration,
.card-image .card-duration {
  z-index: 3;
}

.portal-card-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-weight: 800;
  font-size: calc(28px * var(--reader-scale));
}

.portal-card-body {
  padding: 18px;
}

.portal-card h3 {
  font-size: var(--fs-card-title);
  line-height: 1.22;
  margin: 7px 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: break-word;
}

.portal-card-large h3 {
  font-size: var(--fs-card-title-lg);
}

.portal-card p {
  color: var(--text-secondary);
  font-size: calc(17px * var(--reader-scale));
  line-height: 1.45;
}

.portal-meta {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: var(--fs-label);
}

.portal-side-list {
  border-left: 1px solid rgba(0,0,0,0.08);
  padding-left: 24px;
}

.portal-side-list .portal-side-date {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 700;
}

.portal-news-section {
  background: #f7f7f8;
  color: var(--text);
  padding: 40px 0 72px;
}

.portal-news-section .container {
  max-width: 1180px;
}

.portal-news-section .portal-section-head {
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.portal-news-section .portal-section-head h2 {
  color: var(--text);
}

.portal-news-layout {
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 28px;
  align-items: start;
}

.portal-news-feed {
  display: grid;
  gap: 14px;
}

.portal-news-pagination {
  margin-top: 14px;
}

.portal-news-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.portal-news-item a {
  display: grid;
  grid-template-columns: 72px 168px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 152px;
  padding: 18px;
  color: var(--text);
}

.portal-news-item-no-thumb a {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 0;
}

.portal-news-calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 72px;
  border: 1px solid rgba(239,122,28,0.45);
  border-radius: 8px;
  background: #fff8f2;
  font-family: var(--font-heading);
}

.portal-news-calendar span {
  color: var(--text);
  font-size: calc(30px * var(--reader-scale));
  font-weight: 900;
  line-height: 0.95;
}

.portal-news-calendar em {
  margin-top: 5px;
  color: var(--orange);
  font: 800 var(--fs-label)/1 var(--font);
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-news-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-alt);
}

.portal-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.portal-news-thumb.portal-thumb-empty {
  display: grid;
}

.portal-news-copy {
  display: block;
  min-width: 0;
}

.portal-news-copy .portal-kicker {
  display: none;
}

.portal-news-copy h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(24px * var(--reader-scale));
  font-weight: 800;
  line-height: 1.14;
  overflow-wrap: break-word;
}

.portal-news-copy p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: calc(16px * var(--reader-scale));
  line-height: 1.45;
}

.portal-news-item .portal-news-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.portal-news-section .portal-meta {
  margin-top: 12px;
}

.portal-news-section .portal-side-list {
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  background: #fff;
}

.portal-news-section .portal-side-list h3 {
  font-family: var(--font-heading);
  font-size: calc(24px * var(--reader-scale));
  line-height: 1.1;
  margin-bottom: 10px;
}

.portal-news-section .portal-side-list a.portal-side-item {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
}

.portal-news-section .portal-side-list a strong {
  font-size: calc(14px * var(--reader-scale));
  line-height: 1.2;
}

.portal-news-section .portal-side-thumb {
  border-radius: 8px;
}

.portal-video-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, calc((100% - 80px) / 6));
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-padding: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portal-video-rail::-webkit-scrollbar {
  display: none;
}

.portal-rail-frame {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
}

.portal-rail-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: #111;
  color: var(--orange);
  font: 800 calc(30px * var(--reader-scale))/1 var(--font);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.portal-rail-button:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.portal-card-video {
  background: #2b2b2b;
  border-color: rgba(255,255,255,0.08);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: var(--radius);
  height: 100%;
}

.portal-card-video > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portal-card-video .portal-card-image {
  aspect-ratio: 9/16;
  border-radius: var(--radius) var(--radius) 0 0;
}

#shorts .portal-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 12px 14px;
}

#shorts .portal-card h3 {
  display: -webkit-box;
  font-size: var(--fs-body);
  line-height: 1.18;
  margin: 5px 0;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

#shorts .portal-kicker,
#shorts .portal-meta {
  font-size: var(--fs-micro);
}

#shorts .portal-meta {
  color: var(--text-secondary);
  margin-top: auto;
}

.portal-social-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}

.portal-social-strip a {
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: var(--fs-ui);
  font-weight: 700;
}

.portal-video-reviews {
  padding-top: 64px;
  padding-bottom: 34px;
  background: #f7f7f8;
  color: var(--text);
  border-top: 1px solid #fff;
  border-radius: 0 0 var(--radius-section) 0;
}

.portal-video-reviews .portal-section-head h2 {
  color: var(--text);
}

.portal-video-reviews .portal-card-image {
  aspect-ratio: 16/9;
}

.portal-video-reviews .portal-card-body {
  padding-bottom: 16px;
}

.portal-review-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, calc((100% - 60px) / 4));
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 2px 8px 0;
  scroll-padding: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portal-review-rail::-webkit-scrollbar {
  display: none;
}

.portal-review-card {
  height: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.portal-review-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portal-video-reviews .portal-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 14px 16px 15px;
}

.portal-video-reviews .portal-card h3 {
  display: -webkit-box;
  font-size: calc(16px * var(--reader-scale));
  line-height: 1.16;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.portal-video-reviews .portal-meta {
  margin-top: auto;
}

.portal-video-reviews .portal-rail-button {
  background: #fff;
  color: var(--orange);
  border-color: var(--orange);
}

.portal-video-reviews .portal-rail-button:hover {
  background: var(--orange);
  color: #fff;
}

.portal-four-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.portal-catalog-band {
  padding: 72px 0;
  background: #1A1A1A;
  color: #fff;
}

.portal-catalog-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.portal-catalog-band h2 {
  font-size: calc(48px * var(--reader-scale));
  margin: 6px 0 8px;
}

.portal-catalog-band p {
  color: rgba(255,255,255,0.7);
}

.portal-catalog-actions {
  display: flex;
  gap: 12px;
}

.portal-team-card {
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.portal-team-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--bg-alt);
}

.portal-team-card h3,
.portal-team-card p {
  padding: 0 18px;
}

.portal-team-card h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: var(--fs-card-title);
  font-weight: 800;
  line-height: 1.18;
  margin-top: 16px;
}

.portal-team-card p {
  margin: 6px 0 18px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.35;
}

.editorial-page {
  min-height: calc(100vh - 64px);
}

.editorial-header {
  margin-bottom: 22px;
}

.editorial-header .archive-description {
  max-width: 1040px;
  font-weight: 600;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.editorial-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.editorial-card-inner {
  display: grid;
  color: var(--text);
}

.editorial-photo {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}

.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.editorial-photo > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--orange);
  font: 900 calc(52px * var(--reader-scale))/1 var(--font-heading);
}

.editorial-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.editorial-copy h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(26px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.12;
}

.editorial-name span {
  display: block;
}

.editorial-copy p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.4;
}

.editorial-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.editorial-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  color: var(--text);
  font-size: var(--fs-caption);
  font-weight: 900;
}

.editorial-socials a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--text-inverse);
}

.hero-rubric {
  display: inline-block;
  background: var(--orange);
  color: var(--text-inverse);
  padding: 4px 14px;
  border-radius: 980px;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: calc(56px * var(--reader-scale));
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero-excerpt {
  font-size: var(--fs-body-lg);
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 24px;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--text-inverse);
  padding: 14px 32px;
  border-radius: 980px;
  font-size: calc(16px * var(--reader-scale));
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-play:hover { background: #d06a15; transform: scale(1.04); }

/* SECTIONS */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: calc(48px * var(--reader-scale));
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-link {
  display: inline-block;
  color: var(--orange);
  font-size: calc(16px * var(--reader-scale));
  font-weight: 500;
  margin-top: 12px;
}

.section-link:hover { text-decoration: underline; }

.section-alt { background: var(--bg-alt); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* CARDS */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
  transition: none;
}

.card:hover .card-image img { transform: none; }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: var(--text-inverse);
  padding: 3px 10px;
  border-radius: 980px;
  font-size: var(--fs-micro);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  background: var(--orange);
  color: #fff;
  padding: 0 8px;
  border-radius: 7px;
  font-size: var(--fs-label);
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(239,122,28,0.24);
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover .card-play { opacity: 1; }

.card-play-btn {
  width: 56px;
  height: 56px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(239,122,28,0.4);
}

.card-play-btn svg { margin-left: 3px; }

.card-body { padding: 20px; }

.card-title {
  font-size: var(--fs-body);
  font-weight: 800;
  line-height: 1.26;
  margin-bottom: 8px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* VIDEO HORIZONTAL SCROLL */
.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

.scroll-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* FEATURED LAYOUT */
.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.featured-main .card-image { aspect-ratio: 16/9; }
.featured-main .card-title { font-size: calc(22px * var(--reader-scale)); }

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.featured-side .card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.featured-side .card-image { aspect-ratio: 1/1; }

/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 60px 0 30px;
  width: calc(min(100vw, var(--site-shell)) - var(--sidebar-width));
  max-width: calc(var(--site-shell) - var(--sidebar-width));
  margin-left: calc(var(--site-gutter) + var(--sidebar-width));
  border-radius: 0 var(--radius-section) 0 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  text-align: center;
  max-width: 360px;
}

.footer-brand {
  font-size: calc(20px * var(--reader-scale));
  font-weight: 700;
  width: min(calc(218px * var(--reader-scale)), 100%);
  text-align: center;
  margin-bottom: 12px;
}

.footer-logo {
  display: block;
  width: min(calc(218px * var(--reader-scale)), 100%);
  height: auto;
  margin: 0 auto 24px;
  padding: 0;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  object-position: center;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-ui);
  line-height: 1.6;
  max-width: 310px;
  margin-inline: auto;
}

.footer-contact {
  margin-top: 18px;
  text-align: center;
}

.footer-contact a {
  color: rgba(255,255,255,0.82);
  font-size: var(--fs-ui);
  font-weight: 700;
}

.footer-contact a:hover {
  color: var(--orange);
}

.footer-heading {
  font-size: var(--fs-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-ui);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--orange); }

.footer-social-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 50%;
  color: rgba(255,255,255,0.88);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer-social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-social-icon--max svg,
.footer-social-icon--dzen svg {
  width: 18px;
  height: 18px;
}

.footer-social-icon--dzen .footer-social-cutout {
  fill: #1a1a1a;
}

.footer-social-mark {
  display: block;
  transform: translateY(1px);
}

.footer-links a:hover .footer-social-icon {
  border-color: var(--orange);
  background: rgba(239,122,28,0.12);
  color: var(--orange);
}

.footer-media {
  margin: 0 0 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-media-title {
  margin-bottom: 14px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-heading);
  font-size: calc(18px * var(--reader-scale));
  font-weight: 800;
}

.footer-media-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
}

.footer-media-list div {
  min-width: 0;
}

.footer-media-list dt {
  margin: 0 0 4px;
  color: rgba(255,255,255,0.42);
  font-size: calc(12px * var(--reader-scale));
  font-weight: 700;
  line-height: 1.25;
}

.footer-media-list dd {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: calc(13px * var(--reader-scale));
  font-weight: 600;
  line-height: 1.35;
}

.footer-bottom {
  padding-top: 0;
  display: block;
  text-align: center;
  font-size: var(--fs-caption);
  color: rgba(255,255,255,0.4);
}

.footer-legal-link {
  color: rgba(255,255,255,0.62);
  margin-left: 10px;
}

.footer-legal-link:hover {
  color: var(--orange);
}

.legal-page {
  background: var(--bg);
  padding: 56px 0 72px;
}

.legal-card {
  max-width: 880px;
  margin: 28px 0 0;
  padding: 36px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  color: var(--text);
}

.legal-card h2 {
  margin: 28px 0 12px;
  font-family: var(--font-heading);
  font-size: calc(26px * var(--reader-scale));
  line-height: 1.15;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: calc(18px * var(--reader-scale));
  line-height: 1.65;
}

.legal-card a {
  color: var(--orange);
  font-weight: 700;
}

.contact-lead {
  margin-bottom: 24px !important;
}

.contact-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: calc(16px * var(--reader-scale));
  font-weight: 700;
  line-height: 1.4;
}

.contact-status p {
  margin: 0 0 6px;
  font-size: inherit;
  line-height: inherit;
}

.contact-status p:last-child {
  margin-bottom: 0;
}

.contact-status-ok {
  background: rgba(239,122,28,0.1);
  color: var(--orange);
}

.contact-status-error {
  background: rgba(0,0,0,0.05);
  color: var(--text);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: calc(15px * var(--reader-scale));
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  outline: none;
}

.contact-form input {
  min-height: 48px;
  padding: 0 18px;
}

.contact-form textarea {
  resize: vertical;
  padding: 16px 18px;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239,122,28,0.14);
}

.contact-form-wide {
  grid-column: 1 / -1;
}

.contact-field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button {
  align-self: end;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: calc(18px * var(--reader-scale));
  font-weight: 800;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--orange-dark);
}

@media (max-width: 700px) {
  .contact-card {
    padding: 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active { display: flex; }

.search-box {
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
}

body.video-modal-open {
  overflow: hidden;
}

.portal-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.portal-video-modal.active {
  display: flex;
}

.portal-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}

.portal-video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
}

.portal-video-modal-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.portal-video-modal.is-short .portal-video-modal-dialog {
  width: min(430px, calc(100vw - 32px));
}

.portal-video-modal.is-short .portal-video-modal-frame {
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 72px);
}

.portal-video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.portal-video-modal-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.portal-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font: 400 28px/1 var(--font);
  cursor: pointer;
}

.portal-video-modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.portal-video-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(239,122,28,0.9);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: var(--orange);
  font: 900 36px/0.88 var(--font);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.portal-video-modal-prev {
  left: -62px;
}

.portal-video-modal-next {
  right: -62px;
}

.portal-video-modal-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.search-input {
  width: 100%;
  font-size: 32px;
  font-weight: 300;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 2px solid var(--gray-light);
}

.search-input:focus { border-bottom-color: var(--orange); }

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ARCHIVES */
.tirexp-breadcrumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  color: var(--text-secondary);
  font-size: var(--fs-ui);
  font-weight: 800;
}

.tirexp-breadcrumbs a {
  color: var(--text-secondary);
}

.tirexp-breadcrumbs a:hover {
  color: var(--orange);
}

.tirexp-breadcrumbs strong {
  display: inline-block;
  max-width: min(100%, 560px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 900;
  vertical-align: bottom;
}

.archive-page {
  background: #f7f7f8;
  color: var(--text);
  padding: 54px 0 72px;
  border-radius: 0 var(--radius-section) var(--radius-section) 0;
  overflow: hidden;
}

.archive-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 28px;
}

.archive-header {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.archive-kicker,
.archive-card-kicker {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-header h1 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(42px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.08;
  max-width: 780px;
}

.archive-description {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
  line-height: 1.45;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.archive-card a {
  display: grid;
  grid-template-columns: 72px 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  color: var(--text);
  cursor: pointer;
}

.archive-card-no-thumb a {
  grid-template-columns: 72px minmax(0, 1fr);
}

.archive-card:hover,
.archive-card:focus-within {
  border-color: rgba(239,122,28,0.42);
  background: #fffaf6;
  transform: translateY(-1px);
}

.archive-card:hover .archive-copy h2,
.archive-card:focus-within .archive-copy h2 {
  color: var(--orange);
}

.archive-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-height: 72px;
  border: 1px solid rgba(239,122,28,0.45);
  border-radius: 8px;
  background: #fff8f2;
  font-family: var(--font-heading);
}

.archive-date span {
  color: var(--text);
  font-size: calc(30px * var(--reader-scale));
  font-weight: 900;
  line-height: 0.95;
}

.archive-date em {
  margin-top: 5px;
  color: var(--orange);
  font: 800 var(--fs-label)/1 var(--font);
  font-style: normal;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.archive-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.archive-copy {
  display: block;
  min-width: 0;
}

.archive-copy h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(25px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.14;
  margin: 6px 0 8px;
  overflow-wrap: break-word;
}

.archive-copy p {
  display: -webkit-box;
  overflow: hidden;
  min-height: calc(16px * var(--reader-scale) * 1.42 * 2);
  color: var(--text-secondary);
  font-size: calc(16px * var(--reader-scale));
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.archive-card-meta {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: var(--fs-caption);
}

.archive-aside {
  display: grid;
  gap: 16px;
}

.archive-aside-card {
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
}

.archive-aside-card h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(24px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}

.archive-aside-card ul {
  display: grid;
  gap: 2px;
  list-style: none;
}

.archive-aside-card li a,
.archive-recent {
  color: var(--text);
}

.archive-aside-card li a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: var(--fs-ui);
  font-weight: 800;
}

.archive-aside-card li:first-child a {
  border-top: 0;
}

.archive-recent {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.archive-recent span {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}

.archive-recent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.archive-recent strong {
  color: var(--text);
  font-size: calc(14px * var(--reader-scale));
  font-weight: 800;
  line-height: 1.18;
}

.archive-calendar-card {
  display: grid;
  gap: 12px;
}

.archive-calendar-head,
.archive-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.archive-calendar-head h2 {
  margin-bottom: 0;
}

.archive-calendar-reset {
  color: var(--orange);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.archive-calendar-nav {
  padding: 8px 0 4px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.archive-calendar-nav strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(18px * var(--reader-scale));
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.archive-calendar-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(239,122,28,0.45);
  border-radius: 50%;
  color: var(--orange);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.archive-calendar-nav a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.archive-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.archive-calendar-weekday {
  color: var(--text-secondary);
  font-size: calc(10px * var(--reader-scale));
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.archive-calendar-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: calc(13px * var(--reader-scale));
  font-weight: 800;
}

.archive-calendar-day.is-empty {
  visibility: hidden;
}

.archive-calendar-day.has-post {
  border-color: rgba(239,122,28,0.36);
  background: #fff8f2;
  color: var(--text);
}

.archive-calendar-day.has-post::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

a.archive-calendar-day.has-post:hover,
.archive-calendar-day.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

a.archive-calendar-day.has-post:hover::after,
.archive-calendar-day.is-active::after {
  background: #fff;
}

.archive-search-form {
  display: grid;
  gap: 10px;
}

.archive-search-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--text);
  font-size: var(--fs-ui);
}

.archive-search-form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.archive-empty {
  padding: 28px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-secondary);
  font-size: var(--fs-body-lg);
}

.archive-empty-state {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.archive-empty-state h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(30px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.1;
}

.archive-empty-state p {
  max-width: 620px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.archive-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.archive-empty-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
}

.archive-empty-actions a:hover {
  border-color: rgba(239,122,28,0.45);
  color: var(--orange);
}

.archive-pagination {
  margin-top: 30px;
}

.not-found-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
}

.not-found-card h2,
.not-found-subtitle {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(28px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.1;
}

.not-found-search {
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0;
}

.not-found-search button {
  min-width: 104px;
  padding: 0 22px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.not-found-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
}

.not-found-links a:hover {
  border-color: rgba(239,122,28,0.45);
  color: var(--orange);
}

.not-found-subtitle {
  margin-top: 20px;
}

.catalog-page .archive-header {
  margin-bottom: 18px;
}

.catalog-filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
}

.catalog-filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.catalog-filter-panel label > span {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.catalog-filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font: 800 var(--fs-ui)/1 var(--font);
}

.catalog-filter-panel select:focus {
  border-color: var(--orange);
  outline: none;
}

.catalog-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.catalog-filter-actions button,
.catalog-filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 20px;
  font: 900 var(--fs-ui)/1 var(--font);
}

.catalog-filter-actions button {
  border: 0;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
}

.catalog-filter-actions a {
  border: 1px solid rgba(0,0,0,0.14);
  color: var(--text);
  background: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
}

.catalog-card a {
  display: grid;
  color: var(--text);
  height: 100%;
}

.catalog-card-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.catalog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.catalog-card-thumb em {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  font: 900 calc(28px * var(--reader-scale))/1 var(--font-heading);
  font-style: normal;
}

.catalog-card-body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  min-width: 0;
}

.catalog-card h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(23px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.catalog-card-season {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.catalog-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.catalog-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f7f7f8;
  color: var(--text);
  font: 800 var(--fs-caption)/1 var(--font);
}

.catalog-empty {
  display: grid;
  gap: 4px;
}

.catalog-empty strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(24px * var(--reader-scale));
  line-height: 1.12;
}

.fitment-page {
  background: #f7f7f8;
}

.fitment-header {
  max-width: 880px;
}

.fitment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  margin: 0 0 18px;
}

.fitment-panel,
.fitment-note,
.fitment-result-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
}

.fitment-panel {
  padding: 20px;
}

.fitment-page.is-provider-empty .fitment-layout,
.fitment-page.is-provider-empty .fitment-status {
  display: none;
}

.fitment-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: #f2f2f3;
}

.fitment-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: 900 var(--fs-ui)/1 var(--font);
}

.fitment-tabs button.is-active {
  background: var(--orange);
  color: #fff;
}

.fitment-form {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.fitment-form.is-active {
  display: grid;
}

.fitment-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fitment-form label span,
.fitment-note span,
.fitment-result-card span {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fitment-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  font: 800 var(--fs-ui)/1 var(--font);
}

.fitment-form select:disabled {
  color: var(--text-secondary);
  background: #f7f7f8;
}

.fitment-form button {
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  font: 900 var(--fs-ui)/1 var(--font);
  white-space: nowrap;
}

.fitment-note {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.fitment-note strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(24px * var(--reader-scale));
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.fitment-note p {
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.fitment-note-warning {
  background: #1a1a1a;
}

.fitment-note-warning strong {
  color: #fff;
}

.fitment-note-warning p {
  color: rgba(255,255,255,0.72);
}

.fitment-status {
  min-height: 24px;
  margin: 8px 0 14px;
  color: var(--text-secondary);
  font-size: var(--fs-ui);
  font-weight: 800;
}

.fitment-status.is-error {
  color: var(--orange);
}

.fitment-status.is-ok {
  color: var(--text-secondary);
}

.fitment-result-block {
  padding: 22px;
}

.fitment-result-block h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(30px * var(--reader-scale));
  line-height: 1.12;
  margin: 0 0 16px;
}

.fitment-result-block p {
  color: var(--text-secondary);
}

.fitment-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fitment-result-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #f7f7f8;
}

.fitment-result-card strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(26px * var(--reader-scale));
  line-height: 1.08;
  overflow-wrap: break-word;
}

.fitment-result-card em {
  color: var(--text-secondary);
  font-style: normal;
  font-size: var(--fs-ui);
  font-weight: 700;
}

.fitment-result-warning {
  background: #1a1a1a;
}

.fitment-result-warning strong,
.fitment-result-warning em {
  color: #fff;
}

.fitment-source-empty {
  display: grid;
  gap: 16px;
  max-width: 880px;
}

.fitment-source-empty > span {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fitment-source-empty ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: 1.42;
}

.fitment-source-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fitment-source-steps strong,
.fitment-source-steps em {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(239,122,28,0.28);
  border-radius: 999px;
  padding: 0 14px;
  background: #fff7f0;
  color: var(--text);
  font-size: var(--fs-ui);
  font-style: normal;
  font-weight: 900;
}

.tirexp-pagination {
  display: grid;
  gap: 12px;
  width: 100%;
}

.tirexp-pagination-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
}

.tirexp-pagination-track span {
  display: block;
  width: var(--pagination-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(239,122,28,0.15), var(--orange));
}

.tirexp-pagination-main {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 10px;
}

.tirexp-page-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  background: #fff;
}

.tirexp-page-number,
.tirexp-page-arrow,
.tirexp-page-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 900;
  line-height: 1;
}

.tirexp-page-number {
  min-width: 38px;
  padding: 0 12px;
}

.tirexp-page-arrow {
  width: max-content;
  min-width: 108px;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  font-size: var(--fs-ui);
}

.tirexp-page-prev {
  justify-self: start;
}

.tirexp-page-next {
  justify-self: end;
}

.tirexp-page-number:hover,
.tirexp-page-arrow:hover {
  color: var(--text);
  background: #f2f2f3;
}

.tirexp-page-number.is-current {
  background: var(--orange);
  color: #fff;
}

.tirexp-page-next {
  border-color: rgba(239,122,28,0.45);
  color: var(--orange);
}

.tirexp-page-next:hover {
  background: var(--orange);
  color: #fff;
}

.tirexp-page-arrow.is-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.tirexp-page-dots {
  min-width: 28px;
  color: var(--text-secondary);
}

.tirexp-pagination-count {
  color: var(--text-secondary);
  text-align: center;
  font-size: var(--fs-ui);
  font-weight: 800;
}

/* SINGLE ARTICLE */
.article-page {
  background: #f7f7f8;
  color: var(--text);
  padding-bottom: 56px;
  border-radius: 0 var(--radius-section) var(--radius-section) 0;
  overflow: hidden;
}

.article-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0 28px;
}

.article-header {
  padding: 42px 0 20px;
}

.article-kicker {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-title {
  color: var(--text);
  font-size: calc(41px * var(--reader-scale));
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 860px;
  margin: 0 0 18px;
  overflow-wrap: break-word;
}

.article-excerpt {
  max-width: 740px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: calc(20px * var(--reader-scale));
  line-height: 1.45;
}

.article-meta {
  font-size: var(--fs-ui);
  color: var(--text-secondary);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
}

.article-meta > * {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-secondary);
}

.article-meta a {
  color: var(--text);
  font-weight: 700;
}

.article-cover {
  width: min(100%, 900px);
  margin: 0 auto 24px;
  padding: 0 28px;
}

.article-cover-frame {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 18px;
}

.article-image-note {
  max-width: 820px;
  margin: 10px auto 0;
  color: var(--text-secondary);
  font-size: calc(12px * var(--reader-scale));
  line-height: 1.45;
  text-align: left;
}

.article-image-note span {
  display: block;
}

.article-image-caption {
  color: var(--text);
  font-weight: 700;
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 36px 40px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-size: calc(20px * var(--reader-scale));
  line-height: 1.68;
  font-family: var(--font);
}

.article-body h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: 0;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body p,
.article-body li {
  color: var(--text);
}

.article-body > p:first-of-type::first-letter {
  float: left;
  margin: 7px 10px 0 0;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: calc(58px * var(--reader-scale));
  font-weight: 900;
  line-height: 0.78;
}

.article-body a {
  color: var(--orange);
  font-weight: 700;
}

.article-body img {
  border-radius: var(--radius-sm);
  margin: 32px 0;
}

.article-body figure.wp-block-image,
.article-body .wp-caption {
  margin: 32px 0;
}

.article-body figure.wp-block-image img,
.article-body .wp-caption img {
  margin: 0;
}

.article-body figure.wp-block-image figcaption,
.article-body .wp-caption-text {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: calc(12px * var(--reader-scale));
  line-height: 1.45;
}

.article-body figure.wp-block-image::after,
.article-body .wp-caption::after {
  content: "Изображение используется в информационных целях. Права на изображение принадлежат правообладателю.";
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: calc(12px * var(--reader-scale));
  line-height: 1.45;
}

.article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 0 16px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  margin: 32px 0;
  border: none;
}

.article-video-embed {
  margin-bottom: 24px;
}

.article-content {
  display: grid;
  grid-template-columns: minmax(0, 820px) 280px;
  gap: 24px;
  align-items: start;
  width: min(100%, 1120px);
}

.article-main-column {
  min-width: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tirexp-engagement {
  display: none !important;
}

.article-aside {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
}

.article-aside h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(24px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
}

.article-aside-link {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--text);
}

.article-aside-link span {
  display: block;
  grid-row: span 2;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}

.article-aside-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.article-aside-link strong {
  color: var(--text);
  font-size: calc(14px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.18;
}

.article-aside-link em {
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  font-style: normal;
}

.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.article-neighbor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.article-neighbor-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.article-neighbor-copy span {
  color: var(--orange);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-neighbor-thumb {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.article-neighbor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.article-neighbor-thumb em {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  font: 900 calc(22px * var(--reader-scale))/1 var(--font-heading);
  font-style: normal;
}

.article-neighbor strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(21px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: break-word;
}

.article-neighbor-next {
  text-align: left;
}

.article-fresh {
  margin-top: 26px;
}

.article-fresh-head {
  margin-bottom: 14px;
}

.article-fresh-head h2 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(30px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.1;
  margin-top: 5px;
}

.article-fresh-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.article-fresh-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.article-fresh-card span {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.article-fresh-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-alt);
}

.article-fresh-card strong {
  display: block;
  padding: 12px 12px 0;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(17px * var(--reader-scale));
  font-weight: 900;
  line-height: 1.16;
}

.article-fresh-card em {
  display: block;
  margin-top: auto;
  padding: 8px 12px 14px;
  color: var(--text-secondary);
  font-size: var(--fs-caption);
  font-style: normal;
}

.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-alt);
  border-radius: 980px;
  font-size: var(--fs-caption);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tag:hover { background: var(--orange); color: var(--text-inverse); }

/* COMMENTS */
.comments-section {
  background: #f7f7f8;
  color: var(--text);
  padding: 0 0 80px;
}

.comments-section .article-shell {
  max-width: 820px;
  padding-top: 24px;
}

.comments-section h2,
.comment-reply-title {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: calc(28px * var(--reader-scale));
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 18px;
}

.comment-respond,
.must-log-in {
  color: var(--text);
}

.comment-form textarea {
  width: 100%;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 15px;
  font-family: var(--font);
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--transition);
}

.comment-form textarea:focus { border-color: var(--orange); outline: none; }

.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.comment-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.comment-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-inner { gap: 12px; }
  .nav::after {
    left: 12px;
    right: 12px;
  }
  .menu-toggle { display: flex; }
  .nav-logo {
    position: static;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .nav-tagline { display: none; }
  .nav-search.active,
  .nav-search:focus-within {
    width: min(240px, 42vw);
  }
  .site-content,
  .footer {
    width: auto;
    max-width: none;
    margin-left: 0;
  }
  .site-sidebar {
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }
  body.sidebar-open .site-sidebar {
    transform: translateX(0);
  }
  .portal-top-grid { grid-template-columns: 1fr 1fr; }
  .portal-top-grid .portal-brief { grid-column: 1 / -1; max-width: none; }
  .portal-brief-grid { grid-template-columns: 1fr; }
  .portal-hero-inner,
  .portal-layout { grid-template-columns: 1fr; }
  .portal-news-layout { grid-template-columns: 1fr; }
  .archive-layout { grid-template-columns: 1fr; }
  .archive-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-content {
    grid-template-columns: 1fr;
    width: min(100%, 900px);
  }
  .article-aside {
    position: static;
  }
  .portal-brief { max-width: 560px; }
  .portal-search-band { grid-template-columns: 1fr; }
  .portal-video-rail { grid-auto-columns: minmax(170px, calc((100% - 32px) / 3)); }
  .portal-review-rail { grid-auto-columns: minmax(230px, calc((100% - 20px) / 2)); }
  .portal-main-grid,
  .portal-four-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-filter-panel,
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fitment-layout { grid-template-columns: 1fr; }
  .fitment-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fitment-form button { grid-column: 1 / -1; }
  .fitment-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-media-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .nav-inner {
    max-width: none;
    padding: 0 18px;
  }
  .nav-menu {
    gap: 11px;
  }
  .nav-menu a {
    font-size: var(--fs-caption);
  }
  .nav-tagline {
    display: none;
  }
}

@media (max-width: 1120px) {
  .nav-search.active,
  .nav-search:focus-within {
    width: min(250px, 38vw);
  }
}

@media (max-width: 768px) {
  .nav-inner {
    display: grid;
    grid-template-columns: 40px minmax(96px, 1fr) auto;
    gap: 8px;
    padding: 0 12px;
    height: 64px;
    width: 100%;
    max-width: 100%;
  }
  .nav-logo {
    grid-column: 2;
    min-width: 0;
  }
  .nav-logo img { height: 50px; }
  .nav-tagline { display: none; }
  .nav-actions {
    grid-column: 3;
    gap: 6px;
    margin-left: 0;
    position: static;
    min-width: max-content;
  }
  .nav-search {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .nav-search-button {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .nav-settings-toggle,
  .nav-contact,
  .btn-login {
    width: 36px;
    min-width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .btn-login svg {
    width: 17px;
    height: 17px;
  }
  .lang-switch { display: none; }
  .nav-search.active,
  .nav-search:focus-within {
    position: absolute;
    top: 50%;
    right: 138px;
    z-index: 2;
    width: min(242px, calc(100vw - 198px));
    transform: translateY(-50%);
  }
  .settings-panel {
    position: fixed;
    top: 72px;
    right: 12px;
    width: min(324px, calc(100vw - 24px));
  }
  .settings-panel .nav-font-size {
    display: grid;
  }
  .settings-panel .lang-switch {
    display: inline-flex;
  }
  .menu-toggle {
    grid-column: 1;
    width: 40px;
    height: 40px;
  }
  .site-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .nav-tagline {
    display: none;
  }
  .portal-top-grid {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
  .portal-lead h1 { font-size: calc(30px * var(--reader-scale)); }
  .portal-main-story h2 { font-size: calc(24px * var(--reader-scale)); }
  .portal-lead h1,
  .portal-main-story h2,
  .portal-section-head h2,
  .archive-header h1,
  .article-title {
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .portal-hero-main h1 { font-size: calc(36px * var(--reader-scale)); }
  .portal-section-head h2 { font-size: calc(28px * var(--reader-scale)); }
  .portal-card-large h3 { font-size: calc(24px * var(--reader-scale)); }
  .not-found-search {
    grid-template-columns: 1fr;
  }
  .not-found-search button {
    width: 100%;
  }
  .portal-catalog-band h2 { font-size: var(--fs-section-title); }
  .hero-title,
  .section-title,
  .article-title { font-size: calc(32px * var(--reader-scale)); }
  .portal-hero,
  .portal-hero-inner { min-height: auto; }
  .portal-hero-inner { padding: 80px 24px 32px; }
  .portal-brief:not(.portal-brief-wide) { display: none; }
  .portal-brief-wide { display: block; }
  .portal-brief-wide a.portal-brief-item {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 82px;
  }
  .portal-feature-card .portal-feature-primary {
    min-height: 0;
  }
  .portal-main-grid,
  .portal-four-grid { grid-template-columns: 1fr; }
  .catalog-filter-panel,
  .catalog-grid { grid-template-columns: 1fr; }
  .fitment-panel { padding: 16px; }
  .fitment-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .fitment-tabs button {
    min-width: 0;
    padding: 0 10px;
    font-size: calc(13px * var(--reader-scale));
  }
  .fitment-form,
  .fitment-result-grid { grid-template-columns: 1fr; }
  .fitment-form button { width: 100%; }
  .catalog-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .catalog-filter-actions button,
  .catalog-filter-actions a {
    width: 100%;
  }
  .portal-card-large { grid-column: auto; grid-row: auto; }
  .archive-page { padding: 38px 0 52px; }
  .archive-shell,
  .article-shell,
  .article-cover {
    padding-left: 20px;
    padding-right: 20px;
  }
  .archive-header h1 { font-size: calc(31px * var(--reader-scale)); }
  .archive-card a {
    grid-template-columns: 54px 104px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .archive-card-no-thumb a {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .archive-thumb {
    grid-column: auto;
    order: 0;
    align-self: start;
  }
  .archive-date {
    width: 54px;
    min-height: 62px;
  }
  .archive-date span {
    font-size: calc(25px * var(--reader-scale));
  }
  .archive-copy h2 {
    font-size: calc(20px * var(--reader-scale));
  }
  .archive-aside { grid-template-columns: 1fr; }
  .tirexp-pagination-main {
    grid-template-columns: 1fr 1fr;
  }
  .tirexp-page-list {
    grid-column: 1 / -1;
    order: -1;
    justify-content: center;
    width: 100%;
  }
  .tirexp-page-arrow { min-width: 0; flex: 1; }
  .article-page { padding-bottom: 42px; }
  .article-header { padding-top: 38px; }
  .article-body {
    padding: 24px 22px 32px;
    font-size: calc(18px * var(--reader-scale));
  }
  .tirexp-breadcrumbs {
    font-size: var(--fs-caption);
  }
  .tirexp-breadcrumbs strong {
    max-width: min(62vw, 260px);
  }
  .article-neighbors,
  .article-fresh-grid {
    grid-template-columns: 1fr;
  }
  .article-neighbor-next {
    text-align: left;
  }
  .portal-news-section { padding: 42px 0 52px; }
  .portal-news-section .portal-section-head { align-items: flex-start; }
  .portal-news-item a {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "date thumb"
      "date copy";
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }
  .portal-news-item-no-thumb a {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "date copy";
  }
  .portal-news-thumb {
    grid-area: thumb;
    align-self: start;
    width: 100%;
  }
  .portal-news-calendar {
    grid-area: date;
    width: 60px;
    min-height: 68px;
    align-self: start;
  }
  .portal-news-calendar span {
    font-size: calc(27px * var(--reader-scale));
  }
  .portal-news-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .portal-news-copy .portal-kicker {
    display: none;
  }
  .portal-news-copy h3 {
    margin-top: 10px;
    font-size: calc(20px * var(--reader-scale));
    line-height: 1.12;
  }
  .portal-news-copy p {
    margin-top: 8px;
    font-size: var(--fs-body);
  }
  .portal-news-section .portal-meta {
    margin-top: 12px;
    align-self: flex-start;
  }
  .portal-news-section .portal-side-list {
    padding: 14px;
  }
  .portal-section-head,
  .portal-catalog-band .container,
  .portal-catalog-actions { align-items: flex-start; flex-direction: column; }
  .portal-side-list { border-left: 0; padding-left: 0; }
  .portal-search-band form { flex-direction: column; }
  .menu-toggle { display: flex; }
  .portal-video-rail {
    grid-auto-columns: minmax(210px, 72%);
    scroll-padding-inline: 8%;
  }
  .portal-review-rail {
    grid-auto-columns: minmax(240px, 86%);
    scroll-padding-inline: 7%;
  }
  .portal-rail-frame {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
  }
  .portal-rail-button {
    width: 36px;
    height: 36px;
    font-size: calc(25px * var(--reader-scale));
  }
  .portal-video-modal-nav {
    width: 38px;
    height: 38px;
    font-size: calc(31px * var(--reader-scale));
  }
  .portal-video-modal-prev {
    left: 8px;
  }
  .portal-video-modal-next {
    right: 8px;
  }
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }
  .featured-side .card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-media-list { grid-template-columns: 1fr; }
  .footer-legal-link {
    display: block;
    margin: 8px 0 0;
  }
  .section { padding: 60px 0; }
  .hero { min-height: 60vh; }
  .hero-content { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .nav-inner {
    grid-template-columns: 36px minmax(104px, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
    overflow: hidden;
  }
  .nav-actions {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }
  .nav-logo img {
    height: 50px;
  }
  .nav-tagline {
    display: none;
  }
  .nav-search,
  .nav-settings-toggle,
  .nav-contact,
  .btn-login {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
  .nav-search-button {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .nav-search.active,
  .nav-search:focus-within {
    right: 138px;
    width: min(232px, calc(100vw - 198px));
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .container {
    max-width: 100vw;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }
  .portal-lead,
  .portal-main-story .portal-feature-primary {
    width: 100%;
    max-width: calc(100vw - 32px);
    padding: 16px;
    overflow: hidden;
  }
  .portal-feature-pick {
    grid-template-columns: 72px minmax(0, 1fr);
    margin: 0 16px 16px;
    padding: 10px;
  }
  .portal-lead h1,
  .archive-header h1,
  .article-title {
    max-width: 100%;
    font-size: calc(20px * var(--reader-scale));
    line-height: 1.12;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .portal-main-story h2,
  .portal-section-head h2 {
    max-width: 100%;
    font-size: calc(21px * var(--reader-scale));
    line-height: 1.12;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .portal-lead p,
  .portal-main-story p {
    font-size: calc(16px * var(--reader-scale));
    line-height: 1.38;
  }
  .portal-video-rail,
  .portal-review-rail {
    grid-auto-columns: var(--rail-card-width, 100vw);
    scroll-padding-inline: 0;
  }
}

@media (max-width: 420px) {
  .nav-inner {
    grid-template-columns: 36px minmax(104px, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
    overflow: hidden;
  }
  .nav-actions {
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }
  .nav-logo img {
    height: 38px;
  }
  .nav-tagline {
    display: none;
  }
  .nav-search,
  .nav-settings-toggle,
  .nav-contact,
  .btn-login {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
  .nav-search-button {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  .nav-search.active,
  .nav-search:focus-within {
    right: 138px;
    width: min(232px, calc(100vw - 198px));
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .container {
    max-width: 100vw;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }
  .portal-lead,
  .portal-main-story .portal-feature-primary {
    width: 100%;
    max-width: calc(100vw - 32px);
    padding: 16px;
    overflow: hidden;
  }
  .portal-lead h1,
  .archive-header h1,
  .article-title {
    max-width: 100%;
    font-size: calc(20px * var(--reader-scale));
    line-height: 1.12;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .portal-main-story h2 {
    max-width: 100%;
    font-size: calc(21px * var(--reader-scale));
    line-height: 1.12;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }
  .portal-lead p,
  .portal-main-story p {
    font-size: calc(16px * var(--reader-scale));
    line-height: 1.38;
  }
  .portal-section-head h2 {
    font-size: calc(27px * var(--reader-scale));
  }
  .portal-rail-frame {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 6px;
  }
  .portal-video-rail {
    grid-auto-columns: var(--rail-card-width, 100vw);
    scroll-padding-inline: 0;
  }
  .portal-review-rail {
    grid-auto-columns: var(--rail-card-width, 100vw);
    scroll-padding-inline: 0;
  }
}
