/* DEFAULT_THEME_POLISH_V1 — presentación editorial (solo theme default) */

body.theme-default {
  font-family: var(--theme-font-family, var(--font-family-sans, system-ui, sans-serif));
  color: var(--theme-color-text, #111827);
  background: var(--theme-color-background, #f4f5f7);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.theme-default .site-header__inner,
body.theme-default .site-footer__inner,
body.theme-default .home-section__inner,
body.theme-default .container-wide,
body.theme-default .container-content {
  max-width: var(--theme-max-width, 72rem);
  margin-left: auto;
  margin-right: auto;
}

/* —— Shell —— */
body.theme-default .site-header--editorial {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
}

body.theme-default .site-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  min-height: 4rem;
  padding: 0.65rem var(--spacing-md, 1rem);
}

body.theme-default .site-brand {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

body.theme-default .site-brand:hover {
  color: var(--theme-color-accent, #dc2626);
}

body.theme-default .site-nav {
  display: flex;
  gap: 0.35rem;
}

body.theme-default .site-nav__link {
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  border-radius: 999px;
}

body.theme-default .site-nav__link:hover {
  color: #111827;
  background: rgba(17, 24, 39, 0.06);
}

body.theme-default .site-search--toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-left: auto;
  flex: 1 1 16rem;
  max-width: 22rem;
}

body.theme-default .site-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  background: #fff;
}

body.theme-default .site-search__input:focus {
  outline: 2px solid var(--theme-color-accent, #dc2626);
  outline-offset: 1px;
  border-color: transparent;
}

body.theme-default .site-search__submit {
  flex-shrink: 0;
}

body.theme-default .site-main {
  min-height: 55vh;
}

body.theme-default .site-footer--editorial {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

body.theme-default .site-footer__inner {
  padding: 0 var(--spacing-md, 1rem);
  text-align: center;
}

body.theme-default .site-footer__tagline {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

body.theme-default .site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

body.theme-default .btn--primary,
body.theme-default .site-search__submit {
  background-color: var(--theme-color-accent, #dc2626);
  border-color: var(--theme-color-accent, #dc2626);
  color: #fff;
}

body.theme-default .btn--primary:hover,
body.theme-default .site-search__submit:hover {
  filter: brightness(0.95);
}

body.theme-default .theme-marker {
  display: none;
}

/* —— Layout home —— */
body.theme-default .home-page {
  padding-bottom: 2.5rem;
}

body.theme-default .home-section {
  padding: 2.25rem 0;
}

body.theme-default .home-section:nth-child(even) {
  background: rgba(255, 255, 255, 0.65);
}

body.theme-default .home-section__inner {
  padding: 0 var(--spacing-md, 1rem);
}

body.theme-default .home-section__header {
  margin-bottom: 1.25rem;
}

body.theme-default .home-section__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

body.theme-default .home-section__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  color: #6b7280;
}

body.theme-default .home-section__grid--cards,
body.theme-default .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* —— Hero —— */
body.theme-default .frontpage-hero {
  padding-top: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
}

body.theme-default .frontpage-hero__card {
  margin: 0;
}

body.theme-default .frontpage-hero__link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.theme-default .frontpage-hero__link:hover {
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

body.theme-default .frontpage-hero__content {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.theme-default .frontpage-hero__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

body.theme-default .frontpage-hero__excerpt {
  margin: 0 0 1rem;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.55;
}

body.theme-default .frontpage-hero__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-color-accent, #dc2626);
}

/* —— Hero mosaic (FRONTPAGE_POLISH_V2) —— */
body.theme-default .frontpage-hero-mosaic__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

body.theme-default .frontpage-hero-mosaic__main {
  margin: 0;
  min-width: 0;
}

body.theme-default .frontpage-hero-mosaic__main-link {
  min-height: 100%;
}

body.theme-default .frontpage-hero-mosaic__rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

body.theme-default .frontpage-hero-mosaic__secondary {
  margin: 0;
  flex: 1;
  min-height: 0;
}

body.theme-default .frontpage-hero-mosaic__secondary-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  height: 100%;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.theme-default .frontpage-hero-mosaic__secondary-link:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

body.theme-default .frontpage-hero-mosaic__secondary-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

body.theme-default .frontpage-hero-mosaic__date {
  font-size: 0.75rem;
  color: #6b7280;
}

/* —— Latest feed —— */
body.theme-default .frontpage-latest-feed__layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

body.theme-default .frontpage-latest-feed__lead .article-card--hero {
  border-radius: 1rem;
  overflow: hidden;
}

body.theme-default .frontpage-latest-feed__lead .article-card--hero .article-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
}

body.theme-default .frontpage-latest-feed__lead .article-card--hero .article-card__media {
  min-height: 14rem;
}

body.theme-default .frontpage-latest-feed__lead .article-card--hero .article-card__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

body.theme-default .frontpage-latest-feed__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.theme-default .frontpage-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

body.theme-default .frontpage-pagination__hint {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* —— Entity cards —— */
body.theme-default .frontpage-entity-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

body.theme-default .frontpage-entity-card__link {
  gap: 0.5rem;
}

body.theme-default .frontpage-entity-card__name {
  font-size: 1.05rem;
}

body.theme-default .frontpage-entity-card__stats {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

body.theme-default .frontpage-entity-card__stat-value {
  font-weight: 700;
  color: #111827;
}

/* —— Topic ranking —— */
body.theme-default .frontpage-topic-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

body.theme-default .frontpage-topic-rank__link {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
}

body.theme-default .frontpage-topic-rank__name {
  font-weight: 600;
  font-size: 0.95rem;
}

body.theme-default .frontpage-topic-rank__bar {
  display: block;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

body.theme-default .frontpage-topic-rank__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--theme-color-accent, #dc2626), #f87171);
  border-radius: 999px;
}

body.theme-default .frontpage-topic-rank__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

/* —— Knowledge cards —— */
body.theme-default .frontpage-knowledge-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

body.theme-default .frontpage-knowledge-card__stats {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

body.theme-default .frontpage-knowledge-card__value {
  font-weight: 700;
  color: #111827;
}

/* —— Editorial trends —— */
body.theme-default .frontpage-trend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

body.theme-default .frontpage-trend__link {
  display: flex;
  align-items: baseline;
  gap: 0.4rem 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.65rem;
}

body.theme-default .frontpage-trend__arrow {
  color: var(--theme-color-accent, #dc2626);
  font-weight: 700;
}

body.theme-default .frontpage-trend__name {
  font-weight: 600;
}

body.theme-default .frontpage-trend__detail {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* —— Citation archive (GEO_V2.3 opt-in) —— */
body.theme-default .frontpage-citation-archive {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

body.theme-default .frontpage-citation-archive__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

body.theme-default .frontpage-citation-archive__subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

body.theme-default .frontpage-citation-archive__link-list,
body.theme-default .frontpage-citation-archive__entities ul,
body.theme-default .frontpage-citation-archive__citations ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-default .frontpage-citation-archive__link,
body.theme-default .frontpage-citation-archive__entity,
body.theme-default .frontpage-citation-archive__citation {
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

body.theme-default .frontpage-citation-archive__link:hover,
body.theme-default .frontpage-citation-archive__entity:hover,
body.theme-default .frontpage-citation-archive__citation:hover {
  text-decoration: underline;
}

/* —— Footer editorial —— */
body.theme-default .site-footer__stack {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* —— Media / placeholder —— */
body.theme-default .theme-media {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
  min-height: 12rem;
  max-height: 16rem;
}

body.theme-default .frontpage-hero__link .theme-media {
  max-height: none;
  min-height: 14rem;
  max-height: 20rem;
}

body.theme-default .theme-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 20rem;
  object-fit: cover;
}

body.theme-default .theme-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  max-height: 14rem;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

body.theme-default .frontpage-hero__link .theme-media--placeholder {
  min-height: 14rem;
  max-height: 20rem;
}

body.theme-default .theme-media__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Cards genéricas —— */
body.theme-default .theme-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

body.theme-default .theme-card-grid--stats {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

body.theme-default .theme-card-grid--quotes {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

body.theme-default .theme-card {
  margin: 0;
}

body.theme-default .theme-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.theme-default .theme-card__link:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

body.theme-default .theme-card__title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}

body.theme-default .theme-card__meta,
body.theme-default .theme-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.45;
}

body.theme-default .theme-card--compact .theme-card__link {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

body.theme-default .theme-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--theme-color-accent, #dc2626);
}

body.theme-default .theme-badge--muted {
  background: #f3f4f6;
  color: #6b7280;
}

/* —— Article cards —— */
body.theme-default .article-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

body.theme-default .article-card:hover {
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.1);
  transform: translateY(-2px);
}

body.theme-default .article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

body.theme-default .article-card__media img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

body.theme-default .article-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

body.theme-default .article-card__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

body.theme-default .article-card__excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

body.theme-default .article-card__meta {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* —— Search CTA home —— */
body.theme-default .home-section__inner--cta {
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #f9fafb;
}

body.theme-default .home-section__inner--cta .home-section__title,
body.theme-default .home-section__inner--cta .home-section__lead {
  color: inherit;
}

body.theme-default .home-section__inner--cta .home-section__lead {
  opacity: 0.85;
}

body.theme-default .search-bar,
body.theme-default .search-bar--home {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 36rem;
}

body.theme-default .search-bar__field {
  flex: 1 1 12rem;
  margin: 0;
}

body.theme-default .search-bar__input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
}

body.theme-default .search-bar__submit {
  flex-shrink: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* —— Search page —— */
body.theme-default .search-page {
  padding: 2rem var(--spacing-md, 1rem) 3rem;
}

body.theme-default .search-header {
  margin-bottom: 1.5rem;
}

body.theme-default .search-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

body.theme-default .search-count {
  margin: 0;
  color: #6b7280;
}

body.theme-default .search-filters--toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
}

body.theme-default .search-filters__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
}

body.theme-default .search-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  min-width: 10rem;
}

body.theme-default .search-filters__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.theme-default .search-v2-section {
  margin-bottom: 2rem;
}

body.theme-default .search-v2-section__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

body.theme-default .search-v2-list--cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

body.theme-default .search-v2-list--single {
  grid-template-columns: 1fr;
}

body.theme-default .search-v2-section--best .search-result-card {
  padding: 1.15rem 1.25rem;
  border-width: 2px;
  border-color: rgba(220, 38, 38, 0.25);
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
}

body.theme-default .search-result-card {
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
  list-style: none;
}

body.theme-default .search-result-card__type {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

body.theme-default .search-result-card__title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  text-decoration: none;
}

body.theme-default .search-result-card__title:hover {
  color: var(--theme-color-accent, #dc2626);
}

body.theme-default .search-result-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

body.theme-default .search-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.theme-default .search-chip {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #111827;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}

body.theme-default .search-chip:hover {
  border-color: var(--theme-color-accent, #dc2626);
  color: var(--theme-color-accent, #dc2626);
  background: #fef2f2;
}

body.theme-default .search-results--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

body.theme-default .theme-empty-state {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 0.75rem;
}

/* —— Entity —— */
body.theme-default .entity-page {
  padding: 1.5rem var(--spacing-md, 1rem) 3rem;
}

body.theme-default .site-breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

body.theme-default .site-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-default .site-breadcrumb__item + .site-breadcrumb__item::before {
  content: "/";
  margin-right: 0.35rem;
  color: #9ca3af;
}

body.theme-default .site-breadcrumb a {
  color: #4b5563;
  text-decoration: none;
}

body.theme-default .site-breadcrumb a:hover {
  color: var(--theme-color-accent, #dc2626);
}

body.theme-default .entity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.06);
}

body.theme-default .entity-hero__media .theme-media {
  border-radius: 0.65rem;
  max-height: 14rem;
}

body.theme-default .entity-hero__media .theme-media img {
  max-height: 14rem;
}

body.theme-default .entity-hero__badge {
  margin: 0 0 0.5rem;
}

body.theme-default .entity-hero__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.theme-default .entity-hero__desc {
  margin: 0;
  font-size: 1.0625rem;
  color: #4b5563;
  line-height: 1.55;
}

body.theme-default .entity-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

body.theme-default .entity-panel {
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.75rem;
}

body.theme-default .entity-panel__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

body.theme-default .entity-stat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

body.theme-default .entity-stat {
  text-align: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

body.theme-default .entity-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

body.theme-default .entity-stat__label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.theme-default .entity-panel--articles {
  padding: 0;
  border: none;
  background: transparent;
}

body.theme-default .entity-panel--articles .entity-panel__title {
  margin-bottom: 1rem;
}

/* —— Frontpage collections V2.1 —— */
body.theme-default .frontpage-collection-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-default .frontpage-collection-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

body.theme-default .frontpage-collection-card__media .theme-media {
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}

body.theme-default .frontpage-collection-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

body.theme-default .frontpage-collection-card__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.1rem;
  line-height: 1.25;
}

body.theme-default .frontpage-collection-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #6b7280;
}

body.theme-default .frontpage-collection-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

/* —— Collection V2 —— */
body.theme-default .collection-page {
  padding: 1.5rem var(--spacing-md, 1rem) 3rem;
}

body.theme-default .collections-index-page {
  padding: 1.5rem var(--spacing-md, 1rem) 3rem;
}

body.theme-default .collections-index-header__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

body.theme-default .collections-index-header__lead {
  margin: 0 0 1.5rem;
  color: #6b7280;
  max-width: 42rem;
}

body.theme-default .collections-index-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.45;
}

body.theme-default .collections-index-card__highlights {
  margin-top: 0.5rem;
}

body.theme-default .collections-index-card__highlights-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

body.theme-default .collections-index-card__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.theme-default .collections-index-card__chip {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

body.theme-default .collections-index-empty {
  padding: 2rem 0;
  color: #6b7280;
}

body.theme-default .collection-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.06);
}

body.theme-default .collection-hero__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

body.theme-default .collection-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: #4b5563;
}

body.theme-default .collection-hero__metrics li span {
  font-weight: 500;
}

body.theme-default .collection-hero__desc,
body.theme-default .collection-hero__summary {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.55;
}

body.theme-default .collection-hero__summary {
  font-size: 1.0625rem;
  max-width: 52ch;
}

body.theme-default .collection-panel__context {
  margin: -0.5rem 0 1rem;
  font-size: 0.9375rem;
  color: #6b7280;
}

body.theme-default .search-chip__count {
  font-weight: 500;
  color: #6b7280;
}

body.theme-default .collection-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.theme-default .collection-nav__link {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
}

body.theme-default .collection-panel {
  margin-bottom: 2rem;
}

body.theme-default .collection-panel__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

body.theme-default .collection-citations {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.theme-default .collection-citation {
  padding: 0.65rem 0;
  border-bottom: 1px solid #e5e7eb;
}

body.theme-default .collection-citation a {
  color: #111827;
  text-decoration: none;
}

@media (max-width: 768px) {
  body.theme-default .collection-hero {
    grid-template-columns: 1fr;
  }

  body.theme-default .collection-hero__body {
    display: flex;
    flex-direction: column;
  }

  body.theme-default .collection-hero__metrics {
    order: 1;
    margin-bottom: 0.75rem;
  }

  body.theme-default .collection-hero__title {
    order: 0;
  }

  body.theme-default .collection-hero__badge {
    order: -1;
  }

  body.theme-default .frontpage-collection-card-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Article / category —— */
body.theme-default .article-page,
body.theme-default .category-page {
  padding: 2rem var(--spacing-md, 1rem) 3rem;
}

body.theme-default .article-title,
body.theme-default .category-title {
  font-family: var(--font-display, Georgia, serif);
  letter-spacing: -0.02em;
}

body.theme-default .article-cover.theme-media {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  max-height: 18rem;
}

body.theme-default .article-cover.theme-media img {
  max-height: 18rem;
}

body.theme-default .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  body.theme-default .frontpage-hero__link,
  body.theme-default .frontpage-hero-mosaic__main-link {
    grid-template-columns: 1fr;
  }

  body.theme-default .frontpage-hero-mosaic__grid {
    grid-template-columns: 1fr;
  }

  body.theme-default .frontpage-hero-mosaic__rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.theme-default .frontpage-latest-feed__lead .article-card--hero .article-card__link {
    grid-template-columns: 1fr;
  }

  body.theme-default .entity-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.theme-default .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  body.theme-default .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  body.theme-default .site-search--toolbar {
    order: 2;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }

  body.theme-default .home-section__grid--cards,
  body.theme-default .theme-card-grid,
  body.theme-default .search-results--cards,
  body.theme-default .frontpage-latest-feed__cards,
  body.theme-default .frontpage-entity-card-grid,
  body.theme-default .frontpage-knowledge-card-grid,
  body.theme-default .frontpage-trend-list {
    grid-template-columns: 1fr;
  }

  body.theme-default .frontpage-hero-mosaic__rail {
    grid-template-columns: 1fr;
  }

  body.theme-default .frontpage-topic-rank__link {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  body.theme-default .entity-stat-grid {
    grid-template-columns: 1fr;
  }

  body.theme-default .home-section__inner--cta {
    padding: 1.25rem;
  }
}

/* —— Entry / showcase article body —— */
body.theme-default .article-page .article-content h2,
body.theme-default .article-page .article-content h3,
body.theme-default .article-page .article-content h4 {
  font-family: var(--font-display, Georgia, serif);
  margin: 1.75rem 0 0.85rem;
  line-height: 1.25;
}

body.theme-default .article-page .article-content h4 {
  font-size: 1.05rem;
  color: #4b5563;
}

body.theme-default .article-page .article-content blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--theme-color-accent, #dc2626);
  background: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #374151;
}

body.theme-default .article-page .article-content blockquote p {
  margin: 0;
}

body.theme-default .article-page .article-content .article-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.35rem;
  line-height: 1.55;
}

body.theme-default .article-page .article-content .article-list li {
  margin: 0.35rem 0;
}

body.theme-default .article-page .article-content .article-link-wrap {
  margin: 1rem 0;
}

body.theme-default .article-page .article-content .article-link {
  color: var(--theme-color-accent, #dc2626);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.theme-default .article-page .article-content .article-link--external::after {
  content: " ↗";
  font-size: 0.85em;
}

body.theme-default .article-page .article-content .article-hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

body.theme-default .article-page .article-content .article-code {
  margin: 1.25rem 0;
}

body.theme-default .article-page .article-content .article-code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #111827;
  color: #f3f4f6;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.theme-default .article-page .article-content .article-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body.theme-default .article-page .article-content strong {
  font-weight: 700;
}

body.theme-default .article-page .article-content em {
  font-style: italic;
}

body.theme-default .article-page .article-content u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.theme-default .article-page .article-content .article-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  color: #111827;
}

body.theme-default .article-page .article-content .article-code__label {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
}

body.theme-default .article-page .article-content .article-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.theme-default .article-page .article-content .article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

body.theme-default .article-page .article-content .article-table th,
body.theme-default .article-page .article-content .article-table td {
  border: 1px solid #e5e7eb;
  padding: 0.55rem 0.75rem;
  text-align: left;
}

body.theme-default .article-page .article-content .article-table th {
  background: #f9fafb;
  font-weight: 600;
}

body.theme-default .article-page .article-content .article-figure {
  margin: 1.5rem 0;
}

body.theme-default .article-page .article-content .article-figure img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
}

body.theme-default .article-page .article-content .embed-responsive {
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.1);
}

body.theme-default .article-page .article-cover.theme-media {
  max-height: 16rem;
}
