/* Informed Clearly shared UI foundation.
   This file is the final, authoritative web layer while legacy selectors are
   retired incrementally. Keep tokens aligned with the Android Compose theme. */

:root {
  --ic-navy: #071126;
  --ic-action: #145bc7;
  --ic-action-hover: #0f4aa8;
  --ic-ink: #172235;
  --ic-muted: #5c6676;
  --ic-surface: #ffffff;
  --ic-surface-alt: #f6f8fc;
  --ic-info: #eaf2ff;
  --ic-rule: #d3dbea;
  --ic-success: #0f7b4c;
  --ic-danger: #b4232f;
  --ic-space-1: 4px;
  --ic-space-2: 8px;
  --ic-space-3: 12px;
  --ic-space-4: 16px;
  --ic-space-5: 24px;
  --ic-space-6: 32px;
  --ic-space-7: 48px;
  --ic-radius-control: 8px;
  --ic-radius-card: 12px;
  --ic-radius-pill: 999px;
  --ic-shadow-overlay: 0 12px 30px rgba(7, 17, 38, .16);
  --ic-content-max: 1180px;
  --topbar-height: 56px;
}

html,
body {
  color: var(--ic-ink);
  background: var(--ic-surface-alt);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--ic-action);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(20, 91, 199, .28);
  outline-offset: 2px;
}

.top-bar {
  min-height: var(--topbar-height);
  height: var(--topbar-height);
  padding: 0 max(16px, calc((100vw - var(--ic-content-max)) / 2));
  background: var(--ic-navy);
  box-shadow: none;
}

.logo-image {
  width: 220px;
  height: 44px;
  object-fit: contain;
}

.theme-toggle,
.language-dropdown-toggle,
.mobile-nav-toggle,
#live-search-input {
  min-height: 40px;
  border-radius: var(--ic-radius-control);
  box-shadow: none;
}

.theme-toggle,
.language-dropdown-toggle {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
}

.nav-stack {
  position: relative;
  top: 0 !important;
  z-index: 18;
  border-bottom: 1px solid var(--ic-rule);
  background: rgba(255, 255, 255, .98);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.site-nav-row {
  display: flex;
  align-items: center;
  gap: var(--ic-space-3);
  width: min(100%, var(--ic-content-max));
  min-height: 52px;
  margin: 0 auto;
  padding: 6px var(--ic-space-4);
}

.category-bar {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
}

.category-bar__inner {
  width: 100%;
  max-width: none;
  min-height: 40px;
  padding: 0;
  gap: var(--ic-space-1);
  overflow: visible;
}

.category-bar__item,
.category-bar__item_fixed,
.category-bar__more-btn {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--ic-radius-control);
  color: var(--ic-ink);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.category-bar__item:hover,
.category-bar__item_fixed:hover,
.category-bar__more-btn:hover {
  color: var(--ic-action);
  background: var(--ic-info);
}

.category-bar__more-menu,
.language-dropdown-menu,
.mobile-nav-menu__panel,
.live-search-results {
  border: 1px solid var(--ic-rule);
  border-radius: var(--ic-radius-card);
  background: var(--ic-surface);
  box-shadow: var(--ic-shadow-overlay);
}

.category-bar__more-menu {
  min-width: 280px;
  padding: var(--ic-space-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ic-space-1);
}

.category-bar__more.is-open .category-bar__more-menu {
  display: grid;
}

.category-bar__more-item {
  padding: 8px 10px;
  border-radius: var(--ic-radius-control);
}

.live-search-bar {
  flex: 0 1 340px;
  width: min(340px, 34vw);
  padding: 0;
  border: 0;
  background: transparent;
}

.live-search-container {
  width: 100%;
  max-width: none;
}

.live-search-input-wrap {
  width: 100%;
}

#live-search-input {
  width: 100%;
  border: 1px solid var(--ic-rule);
  background: var(--ic-surface);
  color: var(--ic-ink);
}

#live-search-input:focus {
  border-color: var(--ic-action);
  box-shadow: 0 0 0 3px rgba(20, 91, 199, .12);
}

.container {
  width: min(100%, calc(var(--ic-content-max) + 32px));
}

.home-v2 {
  --v2-gap: var(--ic-space-4);
  --v2-radius: var(--ic-radius-card);
  --v2-border: var(--ic-rule);
  --v2-shadow: none;
  padding-top: var(--ic-space-3);
}

.v2-grid--top {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: var(--ic-space-5);
}

.v2-main,
.v2-side {
  gap: var(--ic-space-3);
}

.v2-panel,
.v2-feature,
.v2-sidecard,
.v2-card,
.list-card,
.v2-catgrid__list,
.v2-breadcrumb-card,
.v2-author,
.v2-how-we-know,
.v2-social-discussion,
.v2-interactive-card {
  border: 1px solid var(--ic-rule);
  border-radius: var(--ic-radius-card);
  background: var(--ic-surface);
  box-shadow: none;
}

.v2-panel--flat {
  box-shadow: none !important;
}

.v2-android-app {
  min-height: 42px;
  padding: 6px 38px 6px 8px;
  border: 1px solid rgba(20, 91, 199, .20);
  border-radius: var(--ic-radius-control);
  background: var(--ic-info);
}

.v2-android-app__label,
.news-pin-badge,
.v2-chip,
.v2-keyword,
.v2-topic-chip,
.v2-living-story__badge {
  border-radius: var(--ic-radius-pill);
}

.v2-android-app__download {
  min-height: 32px;
  border-radius: var(--ic-radius-control);
  background: var(--ic-action);
}

.v2-android-app__download:hover {
  background: var(--ic-action-hover);
}

.v2-android-app__close {
  top: 8px;
  width: 26px;
  height: 26px;
}

.v2-hero-carousel {
  border: 1px solid var(--ic-rule);
  border-radius: var(--ic-radius-card);
  box-shadow: none;
}

.v2-hero-carousel__viewport {
  aspect-ratio: 16 / 7;
}

.v2-hero-carousel__title {
  max-width: 19ch;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.04;
}

.v2-hero-carousel__summary {
  max-width: 58ch;
  font-size: 1rem;
}

.v2-hero-carousel__dots {
  padding: 9px 12px;
  background: var(--ic-surface);
}

.v2-hero-carousel__arrow {
  width: 38px;
  height: 38px;
}

.v2-panel--latest .v2-panel__head,
.v2-section__head {
  padding: 12px 14px;
}

.v2-latest-item {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--ic-space-3);
  padding: 10px 14px;
}

.v2-latest-thumb,
.v2-latest-thumb img {
  width: 88px;
  height: 58px;
  border-radius: var(--ic-radius-control);
}

.v2-latest-meta,
.v2-meta,
.list-card__meta,
.v2-article-meta {
  color: var(--ic-muted);
  font-size: .78rem;
  line-height: 1.4;
}

.v2-latest-title,
.v2-card__title,
.list-card__title {
  line-height: 1.24;
}

.v2-latest-summary,
.v2-card__summary,
.list-card__summary {
  color: var(--ic-muted);
}

.v2-latest-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.v2-cards {
  gap: var(--ic-space-4);
}

.v2-card {
  border-radius: var(--ic-radius-card);
}

.v2-card__media,
.v2-card__media img {
  border-radius: var(--ic-radius-card) var(--ic-radius-card) 0 0;
}

.v2-card__body {
  padding: 12px 14px 14px;
}

.v2-sidecard {
  padding: var(--ic-space-4);
}

.v2-side .v2-sidecard {
  border-color: var(--ic-rule);
  box-shadow: none;
}

.v2-sidecard__text {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ic-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.v2-sidecard--collapsible {
  padding: 0;
  overflow: visible;
}

.v2-sidecard__summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--ic-ink);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.v2-sidecard__summary::-webkit-details-marker {
  display: none;
}

.v2-sidecard__summary::after {
  content: "+";
  color: var(--ic-action);
  font-size: 1.25rem;
}

.v2-sidecard--collapsible[open] .v2-sidecard__summary::after {
  content: "−";
}

.v2-sidecard__content {
  padding: 0 14px 14px;
}

.list-page {
  display: grid;
  gap: var(--ic-space-4);
}

.list-page__hero {
  padding: var(--ic-space-5);
}

.list-page__title {
  margin-bottom: var(--ic-space-1);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.list-page__subtitle {
  max-width: 68ch;
  color: var(--ic-muted);
}

.list-page__chips {
  margin-top: var(--ic-space-3);
}

.list-page__results {
  display: grid;
  gap: var(--ic-space-3);
}

.list-card {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: var(--ic-space-4);
  min-height: 176px;
  padding: var(--ic-space-3);
  overflow: hidden;
}

.list-card__media {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 152px;
  border-radius: var(--ic-radius-control);
  overflow: hidden;
}

.list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 4px 4px 4px 0;
}

.list-card__title {
  margin: 6px 0;
  font-size: 1.22rem;
}

.list-card__title a::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

.list-card__summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.list-card__footer {
  margin-top: auto;
  padding-top: var(--ic-space-2);
}

.list-card__chips,
.list-card__chips a,
.list-card__more,
.admin-toolbar {
  position: relative;
  z-index: 2;
}

.list-card__chips {
  gap: 6px;
}

.list-card__more {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--ic-radius-pill);
  color: var(--ic-muted);
  background: var(--ic-surface-alt);
  font-size: .75rem;
  font-weight: 800;
}

.v2-grid--article {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.v2-grid--article > .v2-side {
  display: none;
}

#content.v2-article .v2-main {
  gap: var(--ic-space-3);
}

#content.v2-article .v2-article-header {
  display: block;
  padding: var(--ic-space-2) 0 0;
}

#content.v2-article .v2-article-title {
  margin: 0 0 var(--ic-space-3);
  color: var(--ic-ink);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}

#content.v2-article .v2-article-meta {
  display: flex;
  gap: 6px 9px;
  align-items: center;
  margin: 0;
  color: var(--ic-muted);
}

#content.v2-article .v2-adminbar {
  order: 99;
  flex: 1 1 100%;
  margin-top: var(--ic-space-1);
}

#content.v2-article .v2-rating {
  order: 98;
  margin-left: auto;
}

#content.v2-article .v2-article-lede {
  margin: var(--ic-space-4) 0 0;
  color: var(--ic-ink);
  font-size: 1.08rem;
  line-height: 1.55;
}

#content.v2-article .v2-read-progress {
  margin-top: var(--ic-space-3);
}

#content.v2-article .v2-article-hero {
  margin: 0;
  border-radius: var(--ic-radius-card);
  overflow: hidden;
}

.v2-article-tools {
  position: relative;
  z-index: 12;
  display: flex;
  gap: var(--ic-space-2);
  align-items: flex-start;
}

.v2-action-menu {
  position: relative;
}

.v2-action-menu > summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: var(--ic-space-2);
  padding: 8px 12px;
  border: 1px solid var(--ic-rule);
  border-radius: var(--ic-radius-control);
  color: var(--ic-ink);
  background: var(--ic-surface);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 800;
  list-style: none;
}

.v2-action-menu > summary::-webkit-details-marker {
  display: none;
}

.v2-action-menu > summary::after {
  content: "▾";
  color: var(--ic-muted);
  font-size: .75rem;
}

.v2-action-menu[open] > summary {
  border-color: var(--ic-action);
  color: var(--ic-action);
}

.v2-action-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 25;
  display: grid;
  min-width: 190px;
  padding: var(--ic-space-2);
  border: 1px solid var(--ic-rule);
  border-radius: var(--ic-radius-card);
  background: var(--ic-surface);
  box-shadow: var(--ic-shadow-overlay);
}

.v2-edition-picker .v2-action-menu__panel {
  left: auto;
  right: 0;
}

.v2-action-menu__item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: var(--ic-space-2);
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--ic-radius-control);
  color: var(--ic-ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
  text-align: left;
  text-decoration: none;
}

.v2-action-menu__item:hover {
  color: var(--ic-action);
  background: var(--ic-info);
  text-decoration: none;
}

.v2-living-story {
  margin: var(--ic-space-2) 0;
  padding: var(--ic-space-4);
  border: 1px solid #b8d3f7;
  border-left: 4px solid var(--ic-action);
  border-radius: var(--ic-radius-card);
  background: #f7fbff;
  box-shadow: none;
}

.v2-living-story h2 {
  margin: var(--ic-space-3) 0 var(--ic-space-1);
  font-size: 1.25rem;
}

.v2-living-story__brief {
  font-size: 1rem;
  line-height: 1.5;
}

.v2-living-story__recent {
  display: grid;
  gap: var(--ic-space-2);
  margin-top: var(--ic-space-3);
}

.v2-living-story__recent:empty {
  display: none;
}

.v2-living-story__recent-item {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid #c8daf1;
  border-radius: var(--ic-radius-control);
  color: var(--ic-ink);
  background: var(--ic-surface);
  text-decoration: none;
}

.v2-living-story__recent-item span {
  color: var(--ic-muted);
  font-size: .72rem;
}

.v2-living-story__recent-item strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-living-story__timeline {
  margin-top: var(--ic-space-3);
  padding-top: var(--ic-space-3);
}

.v2-living-story__timeline summary {
  min-height: 40px;
  align-items: center;
}

.v2-article-body {
  max-width: 72ch;
  color: var(--ic-ink);
  font-size: 1.05rem;
  line-height: 1.72;
}

.v2-article-body h2 {
  margin: 1.8em 0 .55em;
  font-size: 1.6rem;
  line-height: 1.2;
}

.v2-article-body h3 {
  margin: 1.5em 0 .5em;
  font-size: 1.25rem;
  line-height: 1.25;
}

.v2-how-we-know {
  padding: var(--ic-space-4);
}

.v2-author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--ic-space-3);
  align-items: start;
  padding: var(--ic-space-4);
}

.v2-author img {
  width: 64px;
  height: 64px;
}

.v2-author p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 8px;
  color: var(--ic-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.footer {
  margin-top: var(--ic-space-7);
  border-top: 1px solid var(--ic-rule);
  background: var(--ic-surface);
}

.footer-grid {
  grid-template-columns: 1.1fr repeat(5, minmax(0, 1fr));
  gap: var(--ic-space-5);
}

.footer-col {
  gap: 6px;
}

.footer-col a {
  font-size: .85rem;
}

.footer-app-download__link {
  border-radius: var(--ic-radius-control);
}

html[data-theme="dark"] {
  --ic-ink: #eaf0fa;
  --ic-muted: #a8b3c7;
  --ic-surface: #0d172a;
  --ic-surface-alt: #050a16;
  --ic-info: #162238;
  --ic-rule: #2e3a52;
  --ic-action: #78a9ff;
  --ic-action-hover: #9bc0ff;
  --ic-shadow-overlay: 0 14px 34px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .nav-stack,
html[data-theme="dark"] .category-bar,
html[data-theme="dark"] .live-search-bar,
html[data-theme="dark"] #live-search-input,
html[data-theme="dark"] .v2-panel,
html[data-theme="dark"] .v2-feature,
html[data-theme="dark"] .v2-sidecard,
html[data-theme="dark"] .v2-card,
html[data-theme="dark"] .list-card,
html[data-theme="dark"] .v2-catgrid__list,
html[data-theme="dark"] .v2-breadcrumb-card,
html[data-theme="dark"] .v2-author,
html[data-theme="dark"] .v2-how-we-know,
html[data-theme="dark"] .v2-action-menu > summary,
html[data-theme="dark"] .v2-action-menu__panel,
html[data-theme="dark"] .v2-action-menu__item,
html[data-theme="dark"] .v2-living-story__recent-item,
html[data-theme="dark"] .footer {
  border-color: var(--ic-rule);
  color: var(--ic-ink);
  background: var(--ic-surface);
  box-shadow: none;
}

html[data-theme="dark"] .v2-living-story {
  border-color: #344962;
  border-left-color: var(--ic-action);
  background: #101d31;
}

html[data-theme="dark"] .v2-android-app {
  border-color: #344962;
  background: #162238;
}

html[data-theme="dark"] .v2-hero-carousel__dots {
  background: var(--ic-surface);
}

@media (max-width: 980px) {
  .site-nav-row {
    min-height: 60px;
    padding: 7px 12px;
  }

  .category-bar {
    display: none;
  }

  .live-search-bar {
    flex: 1 1 auto;
    width: 100%;
  }

  .live-search-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--ic-space-2);
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .v2-grid--top {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-side {
    gap: var(--ic-space-2);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ic-space-5);
  }
}

@media (max-width: 720px) {
  .top-bar {
    padding: 0 10px;
  }

  .mobile-logo-image {
    width: min(54vw, 205px);
    height: 48px;
    object-fit: contain;
  }

  .theme-toggle,
  .language-dropdown-toggle {
    min-height: 38px;
  }

  .theme-toggle__text {
    display: none;
  }

  .site-nav-row {
    min-height: 56px;
  }

  #live-search-input {
    min-height: 40px;
  }

  .container {
    padding-right: 8px;
    padding-left: 8px;
  }

  .home-v2 {
    --v2-gap: var(--ic-space-3);
    padding-top: var(--ic-space-2);
  }

  .v2-main {
    gap: var(--ic-space-2);
  }

  .v2-breadcrumb-card {
    padding: 8px 10px;
  }

  .v2-hero-carousel {
    border-radius: var(--ic-radius-card);
  }

  .v2-hero-carousel__viewport {
    height: 216px;
    aspect-ratio: auto;
    background: var(--ic-navy);
  }

  .v2-hero-carousel__image-link {
    position: absolute;
    inset: 0 0 auto;
    display: block;
    width: 100%;
    height: 96px;
  }

  .v2-hero-carousel__image {
    object-position: center 46%;
  }

  .v2-hero-carousel__shade {
    display: none;
  }

  .v2-hero-carousel__copy {
    inset: 96px 0 0;
    display: flex;
    height: auto;
    max-width: none;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px 12px;
    background: var(--ic-navy);
  }

  .v2-hero-carousel__meta {
    display: flex;
    max-width: 100%;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: transparent;
    backdrop-filter: none;
    font-size: .68rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-hero-carousel__title {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    font-size: 1.08rem;
    line-height: 1.12;
    letter-spacing: -.015em;
    text-shadow: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .v2-hero-carousel__summary,
  .v2-hero-carousel__arrow,
  .v2-hero-carousel__dots {
    display: none;
  }

  .v2-android-app {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 44px;
    padding: 6px 36px 6px 8px;
  }

  .v2-android-app__label,
  .v2-android-app__text {
    display: none;
  }

  .v2-android-app__download {
    grid-column: auto;
    width: 100%;
  }

  .v2-panel--latest .v2-panel__head,
  .v2-section__head {
    padding: 10px 12px;
  }

  .v2-latest-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 12px;
  }

  .v2-latest-thumb,
  .v2-latest-thumb img {
    width: 76px;
    height: 54px;
  }

  .v2-latest-summary {
    display: none;
  }

  .v2-latest-title {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    font-size: .93rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .v2-latest-meta {
    overflow: hidden;
    font-size: .68rem;
    white-space: nowrap;
  }

  .v2-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-page__hero {
    padding: var(--ic-space-4);
  }

  .list-page__subtitle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .list-page__chips .v2-keyword:nth-of-type(n+5) {
    display: none;
  }

  .list-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    min-height: 124px;
    padding: 10px;
  }

  .list-card__media {
    min-height: 104px;
  }

  .list-card__body {
    padding: 0;
  }

  .list-card__title {
    display: -webkit-box;
    margin: 4px 0;
    overflow: hidden;
    font-size: 1rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .list-card__summary,
  .list-card__footer {
    display: none;
  }

  .list-card__meta {
    display: -webkit-box;
    overflow: hidden;
    font-size: .68rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #content.v2-article .v2-article-header {
    padding-top: 0;
  }

  #content.v2-article .v2-article-title {
    margin-bottom: 10px;
    font-size: 1.85rem;
    line-height: 1.06;
  }

  #content.v2-article .v2-article-meta {
    gap: 4px 7px;
    font-size: .72rem;
  }

  #content.v2-article .v2-rating {
    margin-left: 0;
  }

  #content.v2-article .v2-adminbar {
    display: none;
  }

  #content.v2-article .v2-article-lede {
    margin-top: var(--ic-space-3);
    font-size: .98rem;
  }

  #content.v2-article .v2-article-hero {
    max-height: 230px;
  }

  #content.v2-article .v2-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .v2-article-tools {
    gap: 6px;
  }

  .v2-action-menu > summary {
    min-height: 38px;
    padding: 7px 10px;
  }

  .v2-action-menu__panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: min(70vh, 520px);
    overflow: auto;
  }

  .v2-living-story {
    padding: 14px;
  }

  .v2-living-story__head {
    gap: 6px;
  }

  .v2-living-story__brief {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .v2-living-story__recent-item {
    padding: 8px 10px;
  }

  .v2-living-story__timeline summary {
    min-height: 36px;
    flex-direction: row;
    align-items: center;
  }

  .v2-article-body {
    font-size: 1rem;
    line-height: 1.65;
  }

  .v2-author {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 12px;
  }

  .v2-author img {
    width: 52px;
    height: 52px;
  }

  .footer {
    margin-top: var(--ic-space-6);
  }

  .footer-grid {
    gap: var(--ic-space-4);
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .mobile-logo-image {
    width: min(50vw, 184px);
  }

  .top-actions {
    gap: 4px;
  }

  .language-dropdown-toggle {
    padding-right: 7px;
    padding-left: 7px;
  }

  .mobile-nav-toggle {
    padding-right: 9px;
    padding-left: 9px;
  }

  .v2-hero-carousel__title {
    font-size: 1.02rem;
  }

  .list-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .v2-action-menu > summary {
    font-size: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
