/* -------------------------------------------------------------------------- */
/* Pro Enhancement Layer                                                      */
/* -------------------------------------------------------------------------- */
:root {
  --thm-surface-2: color-mix(in srgb, var(--thm-surface) 72%, #ffffff);
  --thm-surface-3: color-mix(in srgb, var(--thm-surface) 40%, #ffffff);
  --thm-shadow-sm: 0 8px 20px rgba(11, 15, 25, 0.05);
  --thm-shadow-md: 0 16px 34px rgba(11, 15, 25, 0.1);
}

body {
  background-image:
    radial-gradient(circle at 15% -10%, color-mix(in srgb, var(--thm-accent) 12%, transparent), transparent 45%),
    radial-gradient(circle at 85% -20%, color-mix(in srgb, var(--thm-accent) 8%, transparent), transparent 52%);
  background-attachment: fixed;
}

.thm-main {
  padding-top: clamp(28px, 4vw, 56px);
}

.thm-header {
  background: color-mix(in srgb, var(--thm-bg) 84%, #ffffff);
  backdrop-filter: blur(8px);
  border-bottom-color: color-mix(in srgb, var(--thm-border) 60%, #ffffff);
}

.thm-header__inner {
  min-height: 84px;
  gap: 20px;
}

.thm-nav > ul {
  gap: 6px;
}

.thm-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.thm-nav .sub-menu {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--thm-border) 75%, #ffffff);
  background: color-mix(in srgb, var(--thm-bg) 90%, #ffffff);
  box-shadow: var(--thm-shadow-sm);
}

.thm-search-toggle,
.thm-menu-toggle {
  border: 1px solid color-mix(in srgb, var(--thm-border) 80%, #ffffff);
  background: color-mix(in srgb, var(--thm-bg) 85%, #ffffff);
}

.thm-section {
  margin-top: clamp(34px, 5vw, 58px);
}

.thm-section__head {
  margin-bottom: 20px;
  align-items: flex-end;
}

.thm-section__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(21px, 2.1vw, 30px);
}

.thm-section__head h2::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--thm-accent);
}

.thm-section__head-main {
  display: grid;
  gap: 6px;
}

.thm-section__subtitle {
  margin: 0;
  color: color-mix(in srgb, var(--thm-muted) 85%, #1e2531);
  font-size: 14px;
  line-height: 1.5;
}

.thm-section__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: color-mix(in srgb, var(--thm-text) 80%, var(--thm-accent));
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.thm-section__more::after {
  content: "→";
  font-size: 14px;
  line-height: 1;
}

.thm-hero {
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, #0d1117 76%, var(--thm-accent) 24%), #0f1723 58%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
  box-shadow: var(--thm-shadow-md);
}

.thm-hero h1 {
  max-width: 14ch;
}

.thm-hero p {
  max-width: 58ch;
}

.thm-news-grid,
.thm-podcast-grid {
  gap: clamp(20px, 2.2vw, 34px);
}

.thm-card,
.thm-news-card,
.thm-podcast-card {
  background: color-mix(in srgb, var(--thm-bg) 78%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--thm-border) 68%, #ffffff);
  border-radius: calc(var(--thm-card-radius) + 2px);
  overflow: hidden;
  padding: 10px;
}

.thm-card__media,
.thm-news-card__media,
.thm-podcast-card__media {
  border-radius: calc(var(--thm-card-radius) - 2px);
}

.thm-card:hover,
.thm-news-card:hover,
.thm-podcast-card:hover {
  background: color-mix(in srgb, var(--thm-surface-2) 88%, #ffffff);
  border-color: color-mix(in srgb, var(--thm-accent) 28%, var(--thm-border));
  box-shadow: var(--thm-shadow-sm);
}

.thm-card__title,
.thm-news-card__title {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.35;
}

.thm-card__excerpt,
.thm-news-card__excerpt {
  color: color-mix(in srgb, var(--thm-muted) 92%, #2b3036);
}

.thm-card__meta,
.thm-news-card__meta {
  color: color-mix(in srgb, var(--thm-muted) 88%, #272c34);
}

.thm-card--density-compact .thm-card__title {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.32;
}

.thm-card--density-compact .thm-card__excerpt {
  -webkit-line-clamp: 2;
}

.thm-card--density-balanced .thm-card__title {
  font-size: clamp(18px, 1.5vw, 23px);
}

.thm-card--density-immersive .thm-card__title {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
}

.thm-card--density-immersive .thm-card__excerpt {
  -webkit-line-clamp: 3;
  font-size: 15px;
}

.thm-card--density-immersive .thm-card__meta {
  font-size: 14px;
}

.thm-load-more {
  border-radius: 999px;
  min-height: 46px;
  padding-inline: 24px;
  background: linear-gradient(120deg, #10141d, #1a2230);
  box-shadow: var(--thm-shadow-sm);
}

.thm-filter-btn {
  border-radius: 999px;
  min-height: 38px;
  font-weight: 600;
  background: color-mix(in srgb, var(--thm-bg) 86%, #ffffff);
}

.thm-filter-btn.is-active {
  background: linear-gradient(120deg, #141924, #1d2636);
  border-color: #141924;
  color: #ffffff;
}

.thm-archive-header {
  background: color-mix(in srgb, var(--thm-surface-3) 76%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--thm-border) 70%, #ffffff);
  box-shadow: var(--thm-shadow-sm);
}

.thm-footer {
  border-top-color: color-mix(in srgb, var(--thm-border) 75%, #ffffff);
  background: color-mix(in srgb, var(--thm-bg) 88%, #ffffff);
}

.thm-footer__meta {
  border-top-color: color-mix(in srgb, var(--thm-border) 75%, #ffffff);
}

@media (max-width: 980px) {
  .thm-header__inner {
    min-height: 72px;
  }

  .thm-nav {
    background: color-mix(in srgb, var(--thm-bg) 90%, #ffffff);
  }

  .thm-nav a {
    font-size: 22px;
  }

  .thm-card,
  .thm-news-card,
  .thm-podcast-card {
    padding: 8px;
  }

  .thm-section__head {
    align-items: flex-start;
    gap: 10px;
  }

  .thm-section__more {
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  .thm-container {
    width: min(100% - 22px, var(--thm-site-width));
  }

  .thm-hero {
    border-radius: 20px;
  }

  .thm-hero h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .thm-section__head h2::before {
    width: 22px;
  }
}

/* -------------------------------------------------------------------------- */
/* Pro Layout Uplift v2                                                       */
/* -------------------------------------------------------------------------- */
.thm-container {
  width: min(100% - 52px, 1240px);
}

.thm-main {
  padding-top: clamp(34px, 5vw, 72px);
}

.thm-header__inner {
  min-height: 88px;
}

.thm-brand img {
  max-height: 42px;
}

.thm-hero {
  padding: clamp(34px, 5vw, 62px);
  border-radius: 26px;
  box-shadow: 0 24px 48px rgba(8, 14, 28, 0.18);
}

.thm-hero h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.thm-hero p {
  font-size: 17px;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.78);
}

.thm-section {
  margin-top: clamp(42px, 6vw, 78px);
}

.thm-section__head {
  margin-bottom: 24px;
}

.thm-section__head h2 {
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.thm-section__head h2::before {
  width: 38px;
  height: 3px;
}

.thm-section__subtitle {
  font-size: 15px;
}

.thm-lead-featured {
  margin-bottom: 28px;
  padding-bottom: 0;
}

.thm-lead-featured .thm-card.thm-card--lead {
  padding: 0;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--thm-border) 72%, #ffffff);
  background: color-mix(in srgb, var(--thm-surface) 58%, #ffffff);
  box-shadow: var(--thm-shadow-sm);
  overflow: hidden;
  gap: 0;
}

.thm-lead-featured .thm-card.thm-card--lead .thm-card__media {
  width: 56%;
  aspect-ratio: 16/10;
  border-radius: 0;
}

.thm-lead-featured .thm-card__body {
  padding: clamp(18px, 2.5vw, 30px);
}

.thm-lead-featured .thm-card__title {
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.06;
  margin-bottom: 12px;
}

.thm-lead-featured .thm-card__excerpt {
  font-size: 16px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
}

.thm-lead-grid {
  gap: 18px;
}

.thm-lead-grid .thm-card.thm-card--horizontal {
  padding: 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--thm-bg) 74%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--thm-border) 65%, #ffffff);
}

.thm-lead-grid .thm-card.thm-card--horizontal .thm-card__media {
  width: 138px;
  height: 110px;
}

.thm-lead-grid .thm-card__title {
  font-size: 20px;
  line-height: 1.25;
}

.thm-news-grid:not(.thm-news-grid--list):not(.thm-news-grid--timeline):not(.thm-news-grid--masonry):not(.thm-news-grid--overlay) > .thm-card.thm-card--horizontal {
  display: block;
}

.thm-news-grid:not(.thm-news-grid--list):not(.thm-news-grid--timeline):not(.thm-news-grid--masonry):not(.thm-news-grid--overlay) > .thm-card.thm-card--horizontal .thm-card__media {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  margin-bottom: 12px;
  border-radius: 14px;
}

.thm-news-grid:not(.thm-news-grid--list):not(.thm-news-grid--timeline):not(.thm-news-grid--masonry):not(.thm-news-grid--overlay) > .thm-card.thm-card--horizontal .thm-card__title {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.thm-news-grid:not(.thm-news-grid--list):not(.thm-news-grid--timeline):not(.thm-news-grid--masonry):not(.thm-news-grid--overlay) > .thm-card.thm-card--horizontal .thm-card__excerpt {
  -webkit-line-clamp: 3;
  font-size: 15px;
}

.thm-news-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thm-news-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thm-card__category {
  background: color-mix(in srgb, var(--thm-accent) 18%, #ffffff);
  color: color-mix(in srgb, var(--thm-text) 74%, #7e5a18);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thm-podcast-grid > .thm-card,
.thm-news-grid > .thm-card {
  border-radius: 16px;
}

.thm-news-spotlight-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
}

.thm-news-spotlight-split__rail {
  display: grid;
  gap: 14px;
}

.thm-news-editorial-stream {
  display: grid;
  gap: 14px;
}

.thm-news-editorial-stream__item {
  border-radius: 16px;
}

.thm-news-editorial-stream__item.is-featured .thm-card__title {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.06;
}

.thm-news-editorial-stream__item:not(.is-featured) .thm-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
}

.thm-news-editorial-stream__item:not(.is-featured) .thm-card__media {
  width: 100%;
  height: 130px;
  margin-bottom: 0;
}

.thm-footer {
  margin-top: clamp(68px, 10vw, 130px);
}

@media (max-width: 980px) {
  .thm-container {
    width: min(100% - 30px, 1240px);
  }

  .thm-hero h1 {
    font-size: clamp(34px, 6.8vw, 54px);
  }

  .thm-lead-featured .thm-card.thm-card--lead {
    display: block;
  }

  .thm-lead-featured .thm-card.thm-card--lead .thm-card__media {
    width: 100%;
    border-radius: 0;
  }

  .thm-lead-featured .thm-card__title {
    font-size: clamp(30px, 5.2vw, 46px);
  }

  .thm-news-grid--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thm-news-spotlight-split {
    grid-template-columns: 1fr;
  }

  .thm-news-editorial-stream__item:not(.is-featured) .thm-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .thm-container {
    width: min(100% - 22px, 1240px);
  }

  .thm-header__inner {
    min-height: 72px;
  }

  .thm-section__head h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .thm-news-grid--cols-3,
  .thm-news-grid--cols-2 {
    grid-template-columns: 1fr;
  }

  .thm-news-grid:not(.thm-news-grid--list):not(.thm-news-grid--timeline):not(.thm-news-grid--masonry):not(.thm-news-grid--overlay) > .thm-card.thm-card--horizontal .thm-card__title {
    font-size: clamp(21px, 6.2vw, 28px);
  }

  .thm-news-editorial-stream__item:not(.is-featured) .thm-card {
    grid-template-columns: 1fr;
  }

  .thm-news-editorial-stream__item:not(.is-featured) .thm-card__media {
    height: auto;
    aspect-ratio: 16/10;
    margin-bottom: 10px;
  }
}

/* -------------------------------------------------------------------------- */
/* Professional Layout Stabilization (Hotfix)                                 */
/* -------------------------------------------------------------------------- */
body.home .thm-main,
body.blog .thm-main {
  gap: clamp(34px, 4.8vw, 62px);
}

body.home .thm-hero,
body.blog .thm-hero {
  padding: clamp(30px, 4.2vw, 50px);
  border-radius: 22px;
}

body.home .thm-hero h1,
body.blog .thm-hero h1 {
  font-size: clamp(42px, 5vw, 66px);
  max-width: 12ch;
}

body.home .thm-section__head h2,
body.blog .thm-section__head h2 {
  font-size: clamp(30px, 3vw, 40px);
}

body.home .thm-lead-featured .thm-card.thm-card--lead,
body.blog .thm-lead-featured .thm-card.thm-card--lead {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border-radius: 16px;
}

body.home .thm-lead-featured .thm-card__title,
body.blog .thm-lead-featured .thm-card__title {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
}

body.home .thm-lead-grid,
body.blog .thm-lead-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.home .thm-lead-grid .thm-card.thm-card--horizontal,
body.blog .thm-lead-grid .thm-card.thm-card--horizontal {
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 146px;
  padding: 12px;
}

body.home .thm-lead-grid .thm-card.thm-card--horizontal .thm-card__media,
body.blog .thm-lead-grid .thm-card.thm-card--horizontal .thm-card__media {
  width: 120px;
  height: 120px;
}

body.home .thm-lead-grid .thm-card__title,
body.blog .thm-lead-grid .thm-card__title {
  font-size: 22px;
  line-height: 1.2;
}

body.home .thm-news-section .thm-news-grid--cols-2,
body.blog .thm-news-section .thm-news-grid--cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card,
body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
  border-radius: 14px;
}

body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__media,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__media,
body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__media,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__media {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  margin: 0 0 12px;
  border-radius: 12px;
}

body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__body,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__body,
body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__body,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__body {
  padding: 0 2px 2px;
}

body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__title,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__title,
body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__title,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__title {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.12;
  margin-bottom: 8px;
}

body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__excerpt,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__excerpt,
body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__excerpt,
body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

@media (max-width: 1100px) {
  body.home .thm-news-section .thm-news-grid--cols-2,
  body.blog .thm-news-section .thm-news-grid--cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body.home .thm-lead-featured .thm-card.thm-card--lead,
  body.blog .thm-lead-featured .thm-card.thm-card--lead {
    grid-template-columns: 1fr;
  }

  body.home .thm-lead-grid,
  body.blog .thm-lead-grid {
    grid-template-columns: 1fr;
  }

  body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__title,
  body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__title,
  body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__title,
  body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__title {
    font-size: clamp(24px, 5.2vw, 34px);
  }
}

@media (max-width: 680px) {
  body.home .thm-hero h1,
  body.blog .thm-hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__title,
  body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card .thm-card__title,
  body.home .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__title,
  body.blog .thm-news-section .thm-news-grid--cols-2 > .thm-card:first-child .thm-card__title {
    font-size: clamp(21px, 7vw, 28px);
  }
}

/* -------------------------------------------------------------------------- */
