:root {
  --hub-ink: #172130;
  --hub-blue: #1d59e8;
  --hub-gold: #ad8b62;
  --hub-paper: #f7f1e7;
}

.articles-hub-main { padding-bottom: 46px; }
.articles-hub-intro { padding: 34px 0 18px; }
.articles-hub-heading { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.7fr); align-items: end; gap: 32px; }
.articles-hub-heading h1 { max-width: 870px; margin: 7px 0 0; color: var(--strong); font-size: clamp(36px,5.1vw,67px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
.articles-hub-heading h1 em { color: var(--blue); font-style: normal; }
.articles-hub-heading > p { max-width: 520px; margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.82; }

.editorial-deck { position: relative; min-height: 450px; overflow: hidden; overflow: clip; border: 1px solid var(--line); border-radius: 26px; background: #0c1728; box-shadow: 0 24px 70px rgba(39,49,67,.15); }
.editorial-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.82fr); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .55s ease,visibility .55s; }
.editorial-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.editorial-slide-copy { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 48px 62px 112px; color: #fff; }
.editorial-slide-copy::before { content: ""; position: absolute; inset: 0 34% 0 0; z-index: -1; background: linear-gradient(90deg,rgba(8,18,32,.98) 0%,rgba(8,18,32,.91) 72%,rgba(8,18,32,0) 100%); }
.editorial-slide-label { display: inline-flex; align-items: center; gap: 8px; width: max-content; margin-bottom: 16px; color: #c8a979; font-family: "Manrope","Noto Sans Thai",sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.editorial-slide-label::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.editorial-slide h2 { max-width: 730px; margin: 0; color: #fff; font-size: clamp(30px,4vw,52px); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.editorial-slide p { max-width: 650px; margin: 15px 0 0; color: #cad3de; font-size: 14px; line-height: 1.75; }
.editorial-slide-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.editorial-slide-actions .button { width: auto; white-space: nowrap; }
.editorial-slide-media { min-height: 450px; overflow: hidden; }
.editorial-slide-media img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transform: scale(1.035); transition: transform 7s linear; }
.editorial-slide.is-active .editorial-slide-media img { transform: scale(1); }
.excel-entry-card .editorial-slide-media img { filter: saturate(.96) contrast(1.02); }
.excel-entry-level-2 .editorial-slide-media img { filter: hue-rotate(8deg) saturate(.92) contrast(1.03); }
.excel-entry-level-3 .editorial-slide-media img { filter: hue-rotate(-8deg) saturate(.9) contrast(1.04); }
.excel-entry-card .editorial-slide-copy { padding: 32px 54px 48px; }
.excel-entry-card .editorial-slide-label { margin-bottom: 12px; }
.excel-entry-card h2 { font-size: clamp(28px,3.4vw,44px); }
.excel-entry-card p { margin-top: 11px; }
.excel-entry-card .editorial-slide-actions { margin-top: 19px; }
.editorial-deck-controls { position: absolute; z-index: 5; right: 20px; bottom: 18px; left: calc(55% + 20px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.editorial-deck-dots { display: flex; gap: 5px; }
.editorial-deck-dots button { width: 18px; height: 4px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.28); cursor: pointer; transition: width .2s,background .2s; }
.editorial-deck-dots button.is-active { width: 36px; background: #c7a26d; }
.editorial-deck-arrows { display: flex; gap: 7px; }
.editorial-deck-arrows button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; background: rgba(5,12,22,.46); cursor: pointer; }
.editorial-deck-arrows svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.article-portals { padding-top: 22px; }
.article-portals-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 15px; }
.article-portals-head h2 { margin: 5px 0 0; color: var(--strong); font-size: clamp(24px,3vw,35px); font-weight: 550; }
.article-portals-head p { max-width: 530px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.article-portal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.article-portal { position: relative; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #172233; box-shadow: 0 14px 40px rgba(39,49,67,.1); }
.article-portal > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.article-portal:hover > img { transform: scale(1.025); }
.article-portal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,11,20,.03) 32%,rgba(5,11,20,.92) 100%); }
.article-portal-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 76px 30px 29px; color: #fff; }
.article-portal-kicker { font-family: "Manrope","Noto Sans Thai",sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.article-portal h3 { margin: 8px 0 0; color: #fff; font-size: clamp(27px,3vw,40px); font-weight: 400; line-height: 1.2; }
.article-portal p { max-width: 620px; margin: 9px 0 0; color: #d8e0e8; font-size: 13px; line-height: 1.72; }
.article-portal-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.article-portal-meta span { min-height: 27px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: rgba(9,19,31,.28); font-size: 10px; font-weight: 700; }
.article-portal-link { min-width: 136px; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; padding: 0 18px; border-radius: 999px; color: #172130; background: #fff; font-size: 12px; font-weight: 800; }
.article-portal.perspectives .article-portal-link { color: #fff; background: #a98862; }

.knowledge-page-main { padding-bottom: 46px; }
.knowledge-hero { padding: 34px 0 20px; }
.knowledge-hero-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: end; padding: 34px 38px; border: 1px solid var(--line); border-radius: 23px; background: linear-gradient(125deg,rgba(255,255,255,.93),rgba(244,237,227,.75)); }
.knowledge-hero h1 { max-width: 900px; margin: 7px 0 0; color: var(--strong); font-size: clamp(34px,4.7vw,58px); font-weight: 600; line-height: 1.15; }
.knowledge-hero p { max-width: 750px; margin: 12px 0 0; color: var(--muted); line-height: 1.75; }
.knowledge-count { display: grid; grid-template-columns: repeat(2,110px); text-align: center; }
.knowledge-count div { padding: 13px; border-left: 1px solid var(--line); }
.knowledge-count strong { display: block; color: var(--blue); font-family: "Manrope",sans-serif; font-size: 34px; line-height: 1; }
.knowledge-count span { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.knowledge-toolbar { position: sticky; z-index: 20; top: 71px; display: grid; grid-template-columns: minmax(230px,.48fr) minmax(0,1fr); gap: 10px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 17px; background: rgba(248,245,239,.93); backdrop-filter: blur(18px); box-shadow: 0 10px 24px rgba(50,42,35,.06); }
.knowledge-search { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.knowledge-search svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.knowledge-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--strong); background: transparent; font: inherit; font-size: 12px; }
.knowledge-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.knowledge-filters button { flex: 0 0 auto; min-height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(255,255,255,.72); font-size: 10px; font-weight: 750; cursor: pointer; }
.knowledge-filters button.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }
.knowledge-result-line { display: flex; justify-content: space-between; gap: 20px; margin: 0 3px 14px; color: var(--muted); font-size: 11px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.knowledge-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: 0 9px 25px rgba(61,48,37,.055); transition: transform .2s,box-shadow .2s; }
.knowledge-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(61,48,37,.11); }
.knowledge-card-media { position: relative; display: block; aspect-ratio: 16/8.8; overflow: hidden; background: #ded7ce; }
.knowledge-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.knowledge-card:hover img { transform: scale(1.035); }
.knowledge-card-number { position: absolute; top: 10px; left: 10px; min-width: 35px; min-height: 27px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: rgba(9,20,34,.82); font: 800 10px/1 "Manrope",sans-serif; }
.knowledge-card-body { padding: 15px 16px 17px; }
.knowledge-card-category { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.knowledge-card h2 { margin: 6px 0 0; color: var(--strong); font-size: 17px; line-height: 1.42; }
.knowledge-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 55px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.knowledge-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; color: #70665c; font-size: 9px; }
.knowledge-card-foot strong { color: var(--warm-dark); font-size: 10px; }
.knowledge-empty { grid-column: 1/-1; padding: 46px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }

.perspectives-paper-main { min-height: calc(100vh - 240px); padding: 42px 0 56px; }
.kraft-stage { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; border-radius: 26px; background: #e8dfd0; box-shadow: 0 24px 70px rgba(46,34,23,.14); }
.kraft-stage::before { content: ""; position: absolute; inset: 0; opacity: .58; background-image: radial-gradient(rgba(86,60,35,.12) .7px,transparent .8px),linear-gradient(114deg,transparent 0 47%,rgba(110,79,45,.07) 48%,transparent 49%); background-size: 6px 6px,100% 100%; }
.kraft-sheet { position: relative; width: min(720px,78%); min-height: 410px; display: grid; place-items: center; padding: 58px; transform: rotate(-1.2deg); text-align: center; background: #b88955; box-shadow: 0 24px 65px rgba(51,34,18,.24); }
.kraft-sheet::before,.kraft-sheet::after { content: ""; position: absolute; width: 100px; height: 28px; opacity: .62; background: #e6d2aa; }
.kraft-sheet::before { top: 16px; left: -25px; transform: rotate(-6deg); }
.kraft-sheet::after { right: -28px; bottom: 17px; transform: rotate(5deg); }
.kraft-copy { position: relative; z-index: 2; color: #2d241c; }
.kraft-copy .eyebrow { justify-content: center; color: #2d241c; }
.kraft-copy h1 { margin: 18px 0 0; color: inherit; font-family: "Noto Sans Thai",sans-serif; font-size: clamp(43px,7vw,84px); font-weight: 400; line-height: 1.05; transform: rotate(.5deg); }
.kraft-copy p { max-width: 540px; margin: 25px auto 0; color: inherit; font-size: 15px; line-height: 1.9; }
.kraft-copy a { display: inline-flex; margin-top: 28px; color: inherit; border-bottom: 1px solid currentColor; font-weight: 700; }

html[data-theme="dark"] .knowledge-hero-card { background: linear-gradient(125deg,rgba(11,28,44,.94),rgba(26,31,36,.9)); }
html[data-theme="dark"] .knowledge-toolbar { background: rgba(6,18,30,.93); }
html[data-theme="dark"] .knowledge-search,html[data-theme="dark"] .knowledge-filters button,html[data-theme="dark"] .knowledge-card { background: rgba(9,27,43,.86); }
html[data-theme="dark"] .knowledge-search input { color: #f5f7fa; }
html[data-theme="dark"] .knowledge-card-foot { color: #a7bacb; }
html[data-theme="dark"] .knowledge-card-media { color: #fff; }
html[data-theme="dark"] .article-portal.perspectives .article-portal-link { color: #17120d; background: #e2bf86; }
html[data-theme="dark"] .kraft-stage { background: #080a0c; }
html[data-theme="dark"] .kraft-stage::before { opacity: .4; background-image: radial-gradient(rgba(255,255,255,.09) .7px,transparent .8px),linear-gradient(114deg,transparent 0 47%,rgba(255,255,255,.035) 48%,transparent 49%); }
html[data-theme="dark"] .kraft-sheet { background: #151718; box-shadow: 0 24px 65px rgba(0,0,0,.52); }
html[data-theme="dark"] .kraft-sheet::before,html[data-theme="dark"] .kraft-sheet::after { background: #65605a; }
html[data-theme="dark"] .kraft-copy,html[data-theme="dark"] .kraft-copy .eyebrow { color: #f5f1e8; }

@media (max-width: 1050px) {
  .articles-hub-heading { grid-template-columns: 1fr; gap: 14px; }
  .editorial-slide { grid-template-columns: minmax(0,1fr) 40%; }
  .editorial-slide-copy { padding: 42px 40px 108px; }
  .editorial-deck-controls { left: calc(60% + 16px); }
  .knowledge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .knowledge-hero-card { grid-template-columns: 1fr; }
  .knowledge-count { width: min(100%,320px); }
  .knowledge-count div:first-child { border-left: 0; }
}

@media (max-width: 760px) {
  .articles-hub-intro { padding-top: 24px; }
  .articles-hub-heading h1 { font-size: clamp(34px,10.5vw,48px); }
  .articles-hub-heading > p { font-size: 13px; }
  .editorial-deck { min-height: 560px; border-radius: 20px; }
  .editorial-slide { grid-template-columns: 1fr; grid-template-rows: 43% 57%; }
  .editorial-slide-copy { grid-row: 2; justify-content: end; padding: 58px 20px 82px; }
  .editorial-slide-copy::before { inset: 32% 0 0; background: linear-gradient(180deg,rgba(8,18,32,0),rgba(8,18,32,.98) 31%); }
  .editorial-slide-media { grid-row: 1; min-height: 0; }
  .editorial-slide h2 { font-size: clamp(25px,8vw,34px); }
  .editorial-slide p { font-size: 11px; line-height: 1.58; }
  .editorial-slide-actions { margin-top: 15px; }
  .editorial-slide-actions .button { min-height: 38px; padding-inline: 15px; font-size: 10px; }
  .editorial-deck-controls { right: 15px; bottom: 14px; left: 20px; }
  .editorial-deck-dots { gap: 4px; }
  .editorial-deck-dots button { width: 10px; }
  .editorial-deck-dots button.is-active { width: 22px; }
  .editorial-deck-arrows button { width: 34px; height: 34px; }
  .excel-entry-deck { min-height: 650px; }
  .excel-entry-card { grid-template-rows: 38% 62%; }
  .excel-entry-card .editorial-slide-copy { padding: 36px 20px 68px; }
  .excel-entry-card .editorial-slide-label { margin-bottom: 10px; }
  .excel-entry-card h2 { font-size: clamp(23px,7vw,30px); }
  .excel-entry-card p { margin-top: 8px; font-size: 11px; line-height: 1.55; }
  .excel-entry-card .editorial-slide-actions { margin-top: 12px; }
  .article-portals-head { display: block; }
  .article-portals-head p { margin-top: 7px; }
  .article-portal-grid { grid-template-columns: 1fr; }
  .article-portal { min-height: 450px; }
  .article-portal-copy { padding: 60px 21px 22px; }
  .knowledge-hero { padding-top: 24px; }
  .knowledge-hero-card { padding: 25px 21px; }
  .knowledge-toolbar { position: static; grid-template-columns: 1fr; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-result-line { display: block; }
  .knowledge-result-line span { display: block; margin-top: 4px; }
  .kraft-stage { min-height: 570px; border-radius: 20px; }
  .kraft-sheet { width: 87%; min-height: 400px; padding: 42px 25px; }
  .kraft-copy p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-slide,.editorial-slide-media img,.article-portal > img,.knowledge-card { transition: none !important; }
}
