:root {
  --editorial-max: var(--page-shell);
  --reading-max: 780px;
}

body { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.editorial-shell { width: min(calc(100% - 48px), var(--editorial-max)); margin-inline: auto; }
.editorial-kicker { margin: 0 0 10px; color: var(--gold-700); font-size: .72rem; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.editorial-muted { color: var(--muted); }
.editorial-section { padding: 76px 0; }
.editorial-section--soft { background: var(--porcelain); }
.editorial-heading { max-width: 760px; margin-bottom: 30px; }
.editorial-heading h2 { margin: 0; color: var(--navy-950); font: 750 clamp(2rem, 4vw, 3.3rem)/1.08 var(--display); letter-spacing: -.05em; }
.editorial-heading p { max-width: 62ch; margin: 12px 0 0; color: var(--muted); }

.news-hero { padding: 62px 0 34px; background: linear-gradient(180deg, #f3f6fb 0%, #fff 100%); }
.news-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .58fr); gap: clamp(42px, 8vw, 110px); align-items: end; }
.news-hero h1, .search-hero h1 { max-width: 900px; margin: 0; color: var(--navy-950); font: 760 clamp(2.6rem, 5vw, 4.7rem)/1.02 var(--display); letter-spacing: -.055em; }
.news-hero-copy > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.editorial-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgb(16 24 42 / .09); }
.editorial-search label { min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 8px; }
.editorial-search label i { color: var(--gold-700); font-size: 1.15rem; }
.editorial-search input { min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; color: var(--navy-950); background: transparent; }
.editorial-search input::placeholder { color: #788398; opacity: 1; }
.editorial-search .button { min-height: 46px; }
.news-categories { display: flex; gap: 8px; padding: 18px 0 0; overflow-x: auto; scrollbar-width: none; }
.news-categories::-webkit-scrollbar { display: none; }
.news-categories a { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: #fff; font-size: .78rem; font-weight: 700; }
.news-categories a:hover, .news-categories a[aria-current="page"] { border-color: var(--navy-950); color: #f5d56e; background: var(--navy-950); }

.news-feature-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .7fr); gap: 22px; }
.feature-story { position: relative; min-height: 550px; overflow: hidden; border-radius: 12px; background: var(--navy-950); }
.feature-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgb(10 18 34 / .88) 100%); }
.feature-story-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 4vw, 42px); color: #fff; }
.feature-story-content .editorial-kicker { color: #f7d66e; }
.feature-story h2 { max-width: 820px; margin: 0 0 12px; font: 740 clamp(2rem, 4vw, 3.65rem)/1.08 var(--display); letter-spacing: -.05em; }
.feature-story p { max-width: 65ch; margin: 0; color: #d6deeb; }
.story-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.side-story { display: grid; grid-template-columns: 145px 1fr; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.side-story img { width: 100%; height: 100%; object-fit: cover; }
.side-story-content { align-self: center; padding: 20px; }
.story-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: .7rem; }
.story-meta span { display: inline-flex; align-items: center; gap: 5px; }
.side-story h3 { margin: 8px 0 12px; color: var(--navy-950); font: 720 1.12rem/1.35 var(--display); letter-spacing: -.025em; }

.archive-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.archive-toolbar .editorial-heading { margin: 0; }
.archive-toolbar select { height: 44px; padding: 0 38px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--navy-900); background: #fff; font-weight: 650; }
.news-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; }
.news-card { min-width: 0; }
.news-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 11px; background: var(--surface-blue); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.news-card:hover img { transform: scale(1.035); }
.news-card-body { padding: 17px 0 0; }
.news-card h3 { margin: 9px 0 10px; color: var(--navy-950); font: 720 1.18rem/1.36 var(--display); letter-spacing: -.025em; }
.news-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 44px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-800); background: #fff; font-weight: 700; }
.pagination a[aria-current="page"], .pagination a:hover { border-color: var(--navy-950); color: #f5d56e; background: var(--navy-950); }

.search-hero { padding: 60px 0 48px; background: linear-gradient(180deg, #f3f6fb, #fff); }
.search-hero h1 { font-size: clamp(2.5rem, 5.2vw, 5rem); }
.search-hero .editorial-search { max-width: 760px; margin-top: 28px; }
.search-context { margin: 16px 0 0; color: var(--muted); }
.search-properties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.search-property { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-property img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.search-property-body { padding: 18px; }
.search-property-body > span { color: var(--gold-700); font-size: .7rem; font-weight: 800; }
.search-property h3 { margin: 7px 0 14px; color: var(--navy-950); font: 720 1.08rem/1.35 var(--display); }
.search-property p { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--muted); font-size: .75rem; }
.search-property p strong { color: var(--navy-950); font-size: .9rem; }
.search-divider { height: 1px; margin: 60px 0; background: var(--line); }
.article-search-list { display: grid; gap: 0; }
.search-article { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-article[hidden] { display: none; }
.search-article img { width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; object-fit: cover; }
.search-article h3 { margin: 7px 0 8px; color: var(--navy-950); font: 720 1.28rem/1.3 var(--display); }
.search-article p { margin: 0; color: var(--muted); }
.search-article > i { color: var(--gold-700); font-size: 1.25rem; }
.search-empty { padding: 44px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; }
.search-empty[hidden] { display: none; }

.article-header { padding: 38px 0 30px; background: linear-gradient(180deg, #f3f6fb, #fff); }
.article-header-inner { max-width: 1240px; }
.article-header h1 { max-width: 820px; margin: 0; color: var(--navy-950); font: 740 clamp(1.9rem, 2.7vw, 2.25rem)/1.18 var(--display); letter-spacing: -.035em; }
.article-deck { max-width: 760px; margin: 12px 0 18px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.65; }
.article-author { display: flex; align-items: center; gap: 12px; }
.article-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.article-author div { display: grid; line-height: 1.35; }
.article-author span { color: var(--muted); font-size: .72rem; }
.article-thumbnail { width: min(100%, 640px); height: auto; aspect-ratio: 16 / 9; margin: 0 0 26px; border-radius: 11px; object-fit: cover; object-position: center; }
.article-main { display: grid; grid-template-columns: minmax(0, var(--reading-max)) minmax(280px, 320px); gap: clamp(42px, 5vw, 68px); justify-content: center; align-items: start; padding: 42px 0 90px; }
.article-sidebar { position: sticky; top: 94px; grid-column: 2; grid-row: 1; display: grid; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgb(16 24 42 / .07); }
.sidebar-block { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sidebar-title { display: block; margin-bottom: 14px; color: var(--navy-950); font: 720 1rem var(--display); }
.sidebar-search { display: grid; grid-template-columns: 1fr 42px; gap: 7px; }
.sidebar-search input { min-width: 0; height: 42px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--navy-950); background: #fff; }
.sidebar-search button { border: 0; border-radius: 7px; color: #f5d56e; background: var(--navy-950); cursor: pointer; }
.interest-list { display: grid; gap: 14px; }
.interest-item { display: grid; grid-template-columns: 76px 1fr; gap: 11px; align-items: center; }
.interest-item img { width: 76px; height: 62px; border-radius: 7px; object-fit: cover; }
.interest-item strong { color: var(--navy-950); font: 680 .79rem/1.35 var(--display); }
.sidebar-cta { position: relative; min-height: 340px; overflow: hidden; border-radius: 12px; color: #fff; background: var(--navy-950); }
.sidebar-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sidebar-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 18 34 / .08), rgb(10 18 34 / .95)); }
.sidebar-cta-content { position: absolute; inset: auto 0 0; z-index: 1; padding: 22px; }
.sidebar-cta-content span { color: #f6d46d; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-cta h3 { margin: 7px 0 14px; font: 720 1.35rem/1.25 var(--display); }
.sidebar-cta .button { width: 100%; color: var(--navy-950); letter-spacing: 0; text-transform: none; }

.article-prose { min-width: 0; grid-column: 1; grid-row: 1; color: #303b50; font-size: 1.02rem; line-height: 1.76; }
.article-prose > p:first-of-type { margin-top: 0; color: var(--navy-900); font-size: 1.12rem; font-weight: 500; }
.article-prose h2 { scroll-margin-top: 100px; margin: 30px 0 8px; color: var(--navy-950); font: 740 clamp(1.2rem, 1.45vw, 1.38rem)/1.32 var(--display); letter-spacing: -.02em; }
.article-prose h3 { scroll-margin-top: 100px; margin: 21px 0 6px; color: var(--navy-800); font: 700 clamp(1.05rem, 1.15vw, 1.16rem)/1.38 var(--display); letter-spacing: -.012em; }
.article-prose p { margin: 0 0 18px; }
.article-prose a { color: #8a5a08; text-decoration: underline; text-underline-offset: 3px; }
.article-prose figure { max-width: 600px; margin: 26px auto; }
.article-prose figure img { width: 100%; max-height: 330px; border-radius: 10px; object-fit: cover; }
.article-prose figcaption { margin-top: 8px; color: var(--muted); font-size: .75rem; text-align: center; }
.article-prose blockquote { margin: 34px 0; padding: 24px 26px; border-left: 4px solid var(--gold-600); color: var(--navy-900); background: #f5f7fb; font: 620 1.15rem/1.65 var(--display); }
.article-toc { margin: 0 0 30px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
.article-toc-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.article-toc h2 { margin: 0; font-size: 1.18rem; }
.article-toc-list { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.article-toc-list li::marker { color: var(--gold-700); font-weight: 800; }
.article-toc-list a { color: var(--navy-800); text-decoration: none; }
.article-toc-list li:nth-child(n+6) { display: none; }
.article-toc.is-expanded li { display: list-item; }
.toc-toggle { padding: 0; border: 0; color: #815506; background: transparent; cursor: pointer; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.table-wrap { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.article-prose table { width: 100%; border-collapse: collapse; background: #fff; font-size: .88rem; }
.article-prose th { padding: 14px 16px; color: #f6d36a; background: var(--navy-950); text-align: left; }
.article-prose td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.article-prose tbody tr:last-child td { border-bottom: 0; }
.article-prose tbody tr:nth-child(even) { background: #f7f9fc; }

.article-feedback { position: relative; display: grid; grid-template-columns: minmax(190px, 1fr) auto auto; align-items: center; gap: 18px; margin-top: 46px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; text-align: left; }
.feedback-copy { min-width: 0; }
.article-feedback h2 { margin: 0; font-size: 1rem; line-height: 1.35; letter-spacing: -.015em; }
.feedback-copy p { display: none; }
.rating-stars { display: flex; justify-content: flex-start; gap: 1px; margin: 0; }
.rating-stars button { padding: 2px; border: 0; color: #aeb8c7; background: transparent; cursor: pointer; font-size: 1.35rem; line-height: 1; }
.rating-stars button.is-active { color: #d49a11; }
.helpful-actions { display: flex; justify-content: flex-end; gap: 6px; }
.helpful-actions .button { min-height: 38px; padding: 0 12px; font-size: .76rem; white-space: nowrap; }
.feedback-status { position: absolute; left: 18px; bottom: -25px; min-height: 20px; margin: 0 !important; color: var(--navy-700); font-size: .72rem; }
.comment-section { margin-top: 28px; }
.comment-trigger { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); background: #fff; cursor: text; text-align: left; }
.comment-trigger[hidden] { display: none; }
.comment-trigger i { color: var(--gold-700); font-size: 1.2rem; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: max-height 240ms var(--ease), opacity 200ms var(--ease), margin 200ms var(--ease), visibility 0s linear 240ms; }
.comment-form.is-open { max-height: 650px; margin-top: 16px; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.comment-field { display: grid; gap: 6px; }
.comment-field--wide { grid-column: 1 / -1; }
.comment-field label { color: var(--navy-800); font-size: .75rem; font-weight: 700; }
.comment-field input, .comment-field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--navy-950); background: #fff; }
.comment-field textarea { min-height: 132px; resize: vertical; }
.comment-form .button { justify-self: start; }
.comment-status { align-self: center; margin: 0; color: var(--navy-700); font-size: .75rem; }

.related-articles { padding: 74px 0 88px; background: var(--porcelain); }
.related-articles .editorial-heading h2 { font-size: clamp(1.7rem, 2.6vw, 2rem); line-height: 1.18; letter-spacing: -.03em; }
.carousel-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.carousel-head .editorial-heading { margin: 0; }
.carousel-controls { display: flex; gap: 7px; }
.carousel-controls button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--navy-950); background: #fff; cursor: pointer; }
.related-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.related-track::-webkit-scrollbar { display: none; }
.related-track .news-card { scroll-snap-align: start; }

@media (max-width: 1000px) {
  .news-feature-layout { grid-template-columns: 1fr; }
  .feature-story { min-height: 500px; }
  .story-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .side-story { grid-template-columns: 120px 1fr; }
  .news-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-main { grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); gap: 34px; }
  .search-properties { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .editorial-shell { width: min(calc(100% - 24px), var(--editorial-max)); }
  .news-hero { padding: 34px 0 22px; }
  .news-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .news-hero h1, .search-hero h1 { font-size: clamp(2.25rem, 11vw, 3.55rem); }
  .editorial-search { grid-template-columns: 1fr 44px; padding: 6px; }
  .editorial-search .button { width: 44px; padding: 0; }
  .editorial-search .button span { display: none; }
  .editorial-section { padding: 54px 0; }
  .feature-story { min-height: 470px; }
  .feature-story h2 { font-size: 2rem; }
  .story-stack { grid-template-columns: 1fr; }
  .side-story { grid-template-columns: 112px 1fr; }
  .archive-toolbar { align-items: flex-start; flex-direction: column; }
  .archive-toolbar select { width: 100%; }
  .news-archive-grid { grid-template-columns: 1fr; }
  .search-properties { display: flex; margin-right: -12px; padding-right: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .search-property { flex: 0 0 88%; scroll-snap-align: start; }
  .search-divider { margin: 44px 0; }
  .search-article { grid-template-columns: 110px 1fr; gap: 14px; }
  .search-article > i { display: none; }
  .search-article p { display: none; }
  .search-article h3 { font-size: .98rem; }
  .article-header { padding: 34px 0 26px; }
  .article-header h1 { font-size: clamp(1.9rem, 7.4vw, 2.25rem); }
  .article-thumbnail { min-height: 0; }
  .article-main { width: min(calc(100% - 24px), var(--reading-max)); grid-template-columns: 1fr; gap: 38px; padding: 38px 0 66px; }
  .article-sidebar { position: static; grid-column: 1; grid-row: 2; order: 2; }
  .article-prose { grid-column: 1; grid-row: 1; order: 1; font-size: 1rem; }
  .article-prose h2 { margin-top: 30px; }
  .article-toc { padding: 18px; }
  .table-wrap { overflow: visible; border: 0; }
  .article-prose table, .article-prose thead, .article-prose tbody, .article-prose tr, .article-prose th, .article-prose td { display: block; }
  .article-prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article-prose tbody { display: grid; gap: 12px; }
  .article-prose tr { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff !important; }
  .article-prose td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
  .article-prose td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; }
  .article-prose td:last-child { border-bottom: 0; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-field--wide { grid-column: auto; }
  .article-feedback { grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px; }
  .feedback-copy { grid-column: 1 / -1; }
  .feedback-copy p { display: block; margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
  .helpful-actions { justify-content: flex-end; }
  .helpful-actions .button { padding-inline: 9px; }
  .feedback-status { left: 14px; }
  .related-track { grid-auto-columns: 85%; }
  .carousel-controls { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card-media img, .comment-form, .related-track { scroll-behavior: auto; transition: none; }
}
