/* Kota Holding: Newsroom (news.html, news-<slug>.html, homepage teaser)
   Only design tokens from styles.css are used (--ink, --text, --muted, --line, --bg-2, --accent, --radius, --container ...),
   so a new overall design carries over. One typeface (Montserrat), no mono, no serif.
   Article text is English in every language version and is wrapped in lang="en" dir="ltr" by the build. */

:root {
  --nr-gap: clamp(28px, 4vw, 64px);
  --nr-pad: clamp(56px, 7vw, 104px);
}

.nr-page main { display: block; }
.nr-page .container { padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- shared: stories ---------- */
.story { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.story-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); aspect-ratio: 3 / 2; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.story:hover .story-media img { transform: scale(1.035); }
.story-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.story-cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); line-height: 1.3; }
.story-text { display: flex; flex-direction: column; gap: 10px; }
.story-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; color: var(--ink); text-wrap: balance; }
.story-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.story:hover .story-title a, .story-title a:focus-visible { background-size: 100% 1px; }
.story-dek { font-size: 1rem; line-height: 1.55; color: var(--text); }
.story-sum { font-size: .95rem; line-height: 1.6; color: var(--text); }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.story-more { align-self: flex-start; position: relative; z-index: 2; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink); padding-bottom: 3px; border-bottom: 1.5px solid currentColor; transition: color .2s, border-color .2s; }
.story-more:hover { color: var(--accent-ink); }
.nr-h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.025em; color: var(--ink); }

/* compact stories: text left, small photo right (also used for the side column) */
.story--side, .story--compact { display: grid; grid-template-columns: minmax(0, 1fr) clamp(104px, 11vw, 144px); gap: 18px; align-items: start; padding-block: 22px; border-top: 1px solid var(--line); }
.story--side .story-media, .story--compact .story-media { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.story--side .story-body, .story--compact .story-body { grid-column: 1; grid-row: 1; }
.story--side:first-child { border-top: 0; padding-top: 0; }
.story--side .story-title, .story--compact .story-title { font-size: 1.08rem; }

/* ---------- newsroom front page ---------- */
.nr-top { background: var(--bg); padding: calc(var(--header-h, 76px) + clamp(36px, 6vw, 80px)) 0 clamp(28px, 4vw, 44px); }
.nr-masthead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.nr-title { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 600; letter-spacing: -.055em; line-height: .95; color: var(--ink); }
.nr-edition { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink); font-weight: 500; padding-bottom: .6em; }
.nr-edition span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nr-tagline { margin-top: clamp(14px, 2vw, 22px); font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--text); max-width: 46ch; }
.nr-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 4vw, 44px); }
.nr-filter[hidden] { display: none; }
.nr-chip { appearance: none; font: inherit; font-size: 14px; font-weight: 500; line-height: 1; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.nr-chip:hover { border-color: var(--ink); }
.nr-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.nr-front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--nr-gap); padding-block: clamp(36px, 5vw, 64px) var(--nr-pad); align-items: start; }
.story--lead .story-media { aspect-ratio: 16 / 10; }
.story--lead { gap: 26px; }
.story--lead .story-title { font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1.06; }
.story--lead .story-dek { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink); font-weight: 400; max-width: 52ch; }
.story--lead .story-sum { max-width: 56ch; }
.nr-side { display: flex; flex-direction: column; }

/* figures band */
.nr-figures { background: var(--bg); padding: clamp(48px, 6vw, 80px) 0; }
.nr-figures h2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.025em; color: var(--ink); margin-bottom: clamp(24px, 3vw, 40px); }
.nr-fig-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px 0; }
.nr-fig-list li { padding-inline: 0 20px; border-inline-start: 1px solid var(--line-2); padding-inline-start: 20px; }
.nr-fig-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.nr-fig-num { font-size: clamp(1.8rem, 2.8vw, 2.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); transition: color .2s; }
.nr-fig-label { font-size: 13.5px; line-height: 1.45; color: var(--text); }
.nr-fig-list a:hover .nr-fig-num, .nr-fig-list a:focus-visible .nr-fig-num { color: var(--accent); }

/* archive: rhythm of wide / narrow / full-width rows */
.nr-archive { padding-block: var(--nr-pad) calc(var(--nr-pad) * .8); }
.nr-archive .nr-h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.nr-archive-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) var(--nr-gap); align-items: start; }
.story--feature { grid-column: span 7; }
.story--std { grid-column: span 5; }
.story--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--nr-gap); align-items: center; padding-block: clamp(32px, 4vw, 48px); border-block: 1px solid var(--line); }
.story--feature .story-media { aspect-ratio: 16 / 10; }
.story--feature .story-title { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.03em; line-height: 1.12; }
.story--std .story-media { aspect-ratio: 4 / 3; }
.story--std .story-title { font-size: 1.3rem; }
.story--wide .story-media { aspect-ratio: 3 / 2; }
.story--wide .story-title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; }

/* filter results (filled by news.js) */
.nr-results-wrap { padding-block: clamp(36px, 5vw, 64px) var(--nr-pad); }
.story--row { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 28px; border-top: 1px solid var(--line); }
.story--row:first-child { border-top: 0; padding-top: 0; }
.story--row .story-title { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.nr-empty { font-size: 1.05rem; color: var(--text); }

.nr-press { padding-block: var(--nr-pad); border-top: 1px solid var(--line); }
.nr-press .nr-h2 { margin-bottom: 14px; }
.nr-press p { max-width: 52ch; }
.nr-press p + p { margin-top: 22px; }

/* ---------- article ---------- */
.ar-top { position: relative; background: var(--bg); padding: calc(var(--header-h, 76px) + clamp(32px, 5vw, 72px)) 0 clamp(120px, 13vw, 210px); }
.ar-top-in { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 28px); }
.ar-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ar-crumbs a { transition: color .2s; }
.ar-crumbs a:hover { color: var(--ink); }
.ar-crumbs a:last-child { color: var(--accent); }
.ar-headblock { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); width: 100%; }
.ar-title { max-width: 960px; }
.ar-title { font-size: clamp(2.1rem, 4.8vw, 4.1rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; color: var(--ink); text-wrap: balance; }
.ar-dek { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 56ch; }
.ar-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--ink); font-weight: 500; }
.en-notice { display: none; font-size: 13px; color: var(--muted); }
html:not(:lang(en)) .en-notice { display: block; }

.ar-photo { position: relative; z-index: 2; margin-top: calc(-1 * clamp(88px, 10vw, 170px)); margin-bottom: 0; }
.ar-photo-img { width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius); background: var(--bg-3); }
.ar-photo figcaption { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 80ch; }
.ar-credit { display: block; margin-top: 2px; }
.ar-credit a { text-decoration: underline; text-underline-offset: 3px; }

.ar-wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px); gap: 0 clamp(40px, 6vw, 96px); padding-block: clamp(44px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.ar-aside { position: sticky; top: calc(var(--header-h, 76px) + 24px); align-self: start; }
.ar-metrics { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.ar-metrics li { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 18px; border-inline-start: 3px solid var(--ink); }
.ar-metric-num { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); }
.ar-metric-label { font-size: 13px; line-height: 1.4; color: var(--muted); }

.ar-main { min-width: 0; grid-column: 2; }
.ar-aside { grid-column: 1; grid-row: 1; }
.ar-main { grid-row: 1; }
.ar-body { font-size: 1.125rem; line-height: 1.75; color: var(--ink); max-width: 68ch; }
.ar-body h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin: 2.1em 0 .6em; color: var(--ink); }
.ar-body h2:first-child { margin-top: 0; }
.ar-body p { margin: 0 0 1.1em; }
.ar-body p + p { margin-top: 0; }
.ar-body ul { list-style: disc; padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.ar-body li { margin-bottom: .5em; padding-inline-start: .2em; }
.ar-body li::marker { color: var(--accent); }
.ar-quote { margin: 2em 0; padding-inline-start: 24px; border-inline-start: 4px solid var(--accent); }
.ar-quote p { margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.3; color: var(--ink); }

.ar-sources { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 2px solid var(--ink); max-width: 68ch; }
.ar-sources h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-bottom: 14px; }
.ar-sources ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ar-sources li a { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s, color .2s; }
.ar-sources li a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.ar-linkedin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; font-size: 14px; color: var(--muted); }

.ar-more { background: var(--bg-2); padding-block: var(--nr-pad); }
.ar-more .nr-h2 { margin-bottom: clamp(26px, 4vw, 44px); }
.ar-more-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 var(--nr-gap); align-items: start; }
.ar-more-grid .story--feature, .nr-teaser-grid .story--feature { grid-column: 1; }
.story-stack { display: flex; flex-direction: column; }
.story-stack .story--compact:first-child { border-top: 0; padding-top: 0; }

.ar-pn { display: flex; justify-content: space-between; gap: 32px; padding-block: clamp(36px, 5vw, 56px); }
.ar-pn a { display: flex; flex-direction: column; gap: 6px; max-width: 46%; }
.ar-pn-none { flex: 1; }
.ar-pn-next { text-align: end; align-items: flex-end; }
.ar-pn-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ar-pn-title { font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); transition: color .2s; }
.ar-pn a:hover .ar-pn-title { color: var(--accent-ink); }
.ar-pn-next .ar-pn-title { text-align: end; }

/* ---------- homepage teaser ---------- */
.nr-teaser-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.nr-teaser-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.nr-textlink { font-size: 15px; font-weight: 600; color: var(--ink); padding-bottom: 3px; border-bottom: 1.5px solid currentColor; transition: color .2s; }
.nr-textlink:hover { color: var(--accent-ink); }
.nr-teaser-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 var(--nr-gap); align-items: start; }

/* ---------- language: RTL pages keep English articles left-to-right inside their own box ---------- */
.story-text[lang="en"], .ar-headblock[lang="en"], .ar-body[lang="en"], .ar-photo figcaption[lang="en"] { text-align: left; }
[dir="rtl"] .ar-pn-next { text-align: start; }
[dir="rtl"] .ar-pn-title[lang="en"] { text-align: left; }
.nr-fig-list a[lang="en"], .ar-metrics li[lang="en"] { text-align: left; }

/* ---------- motion ---------- */
.js .nr-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .nr-reveal.is-in { opacity: 1; transform: none; }
.js .story--lead.nr-reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nr-front { grid-template-columns: minmax(0, 1fr); }
  .story--feature, .story--std { grid-column: 1 / -1; }
  .story--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; border-block: 0; border-top: 1px solid var(--line); padding-block: 28px 0; }
  .ar-wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ar-aside { position: static; }
  .ar-main, .ar-aside { grid-column: 1; grid-row: auto; }
  .ar-metrics { flex-direction: row; flex-wrap: wrap; gap: 20px 28px; }
  .ar-metrics li { min-width: 120px; flex: 1 1 140px; }
  .ar-more-grid, .nr-teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-more-grid .story--feature, .nr-teaser-grid .story--feature { grid-column: 1; margin-bottom: 12px; }
  .story-stack .story--compact:first-child { border-top: 1px solid var(--line); padding-top: 22px; }
}
@media (max-width: 640px) {
  .story:not(.story--lead) .story-sum { display: none; }
  .nr-masthead { align-items: flex-start; }
  .ar-photo-img { aspect-ratio: 4 / 3; }
  .story--row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ar-pn { flex-direction: column; }
  .ar-pn a { max-width: 100%; }
  .ar-pn-next, .ar-pn-next .ar-pn-title { text-align: start; align-items: flex-start; }
  .nr-fig-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-body { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .nr-reveal { opacity: 1; transform: none; transition: none; }
  .story-media img, .story-title a { transition: none; }
  .story:hover .story-media img { transform: none; }
}
