/*
Theme Name: SCC Times
Theme URI: https://scctimes.com/
Author: SCC Times
Description: An editorial WordPress theme for SCC Times, inspired by its legal-news publication design.
Version: 1.0.9
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: scc-times
*/

:root {
  --scc-red: #c00000;
  --scc-red-dark: #8f0000;
  --scc-ink: #171719;
  --scc-muted: #626168;
  --scc-paper: #fff;
  --scc-soft: #f7f6f4;
  --scc-rule: #dedcd5;
  --scc-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --scc-reading: "Lora", Georgia, "Times New Roman", serif;
  --scc-sans: "Roboto", Arial, Helvetica, sans-serif;
}

body {
  color: var(--scc-ink);
  background: var(--scc-paper);
  font-family: var(--scc-sans);
}

a { color: inherit; }
a:hover { color: var(--scc-red); }
button, input { font: inherit; }

.scc-wrap {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.scc-topline {
  background: var(--scc-ink);
  color: #e7e5e4;
  font-size: 11px;
}

.scc-topline .scc-wrap,
.scc-brand-row,
.scc-nav-list,
.scc-meta,
.scc-section-heading {
  display: flex;
  align-items: center;
}

.scc-topline .scc-wrap {
  min-height: 31px;
  justify-content: space-between;
  gap: 18px;
}

.scc-topline a { text-decoration: none; }
.scc-topline-links { display: flex; gap: 18px; }
.scc-topline .scc-edition { color: #fff; font-weight: 700; }

.scc-brand-row {
  min-height: 116px;
  justify-content: space-between;
  gap: 34px;
  padding-block: 18px;
}

.scc-brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.scc-brand img { width: min(310px, 42vw); max-height: 76px; object-fit: contain; }
.scc-brand-tagline { margin-top: 4px; color: #333; font: 11px var(--scc-sans); letter-spacing: .04em; }

.scc-search-form {
  display: flex;
  width: min(300px, 32vw);
  border: 1px solid var(--scc-rule);
  background: var(--scc-soft);
}
.scc-search-form label { flex: 1; min-width: 0; }
.scc-search-form input[type="search"] {
  width: 100%;
  min-height: 40px;
  border: 0;
  padding: 8px 12px;
  color: var(--scc-ink);
  background: transparent;
}
.scc-search-form input[type="submit"] {
  border: 0;
  padding: 0 15px;
  color: #fff;
  background: var(--scc-red);
  cursor: pointer;
}
.scc-search-form input[type="submit"]:hover { background: var(--scc-red-dark); }

.scc-navigation {
  position: relative;
  z-index: 10;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}
.scc-nav-list {
  min-height: 48px;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scc-nav-list > li { position: relative; flex: 0 0 auto; }
.scc-nav-list li + li { border-left: 1px solid #ececec; }
.scc-nav-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 11px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.scc-nav-list a:hover,
.scc-nav-list .current-menu-item > a,
.scc-nav-list .current-menu-ancestor > a { color: var(--scc-red); }
.scc-nav-list .menu-item-has-children > a::after {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}
.scc-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: -1px;
  z-index: 20;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 5px 0;
  border: 1px solid var(--scc-rule);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  list-style: none;
}
.scc-nav-list .menu-item:hover > .sub-menu,
.scc-nav-list .menu-item:focus-within > .sub-menu { display: block; }
.scc-nav-list .sub-menu li { border: 0; }
.scc-nav-list .sub-menu a { min-height: 0; padding: 10px 14px; white-space: normal; }
.scc-nav-list .sub-menu .sub-menu { top: -6px; left: 100%; }
.scc-nav-toggle { display: none; }

.scc-ticker {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  background: var(--scc-ink);
  color: #fff;
  font-size: 12px;
}
.scc-ticker-label {
  flex: 0 0 auto;
  padding: 5px 9px;
  background: var(--scc-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scc-ticker a { overflow: hidden; text-overflow: ellipsis; text-decoration: none; white-space: nowrap; }

.scc-main { min-height: 55vh; }
.scc-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(235px, .85fr);
  gap: 24px;
  padding-block: 30px;
  border-bottom: 1px solid var(--scc-rule);
}
.scc-feature {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #282426;
}
.scc-feature::after {
  position: absolute;
  inset: 30% 0 0;
  content: "";
  background: linear-gradient(0deg, rgba(0,0,0,.89), transparent);
}
.scc-feature-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scc-feature-copy { position: relative; z-index: 1; width: 100%; padding: 26px 30px; }
.scc-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--scc-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scc-feature .scc-kicker { color: #ff7777; }
.scc-feature-title {
  max-width: 760px;
  margin: 0 0 12px;
  font: 700 clamp(27px, 3.5vw, 46px)/1.1 var(--scc-serif);
}
.scc-feature-title a, .scc-card-title a { text-decoration: none; }
.scc-feature-deck { max-width: 680px; margin: 0 0 15px; color: #efeeee; font-size: 14px; line-height: 1.6; }
.scc-meta { flex-wrap: wrap; gap: 6px 12px; color: var(--scc-muted); font-size: 11px; }
.scc-feature .scc-meta { color: #e8e5e5; }
.scc-meta a { text-decoration: none; }

.scc-hero-list { display: flex; flex-direction: column; }
.scc-hero-list-heading {
  margin: 0 0 4px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--scc-ink);
  font: italic 700 22px/1.2 var(--scc-serif);
}
.scc-hero-list .scc-story-row { flex: 1; }
.scc-story-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--scc-rule);
}
.scc-story-row img { width: 96px; height: 74px; object-fit: cover; }
.scc-story-row .scc-kicker { margin: 0 0 4px; font-size: 9px; }
.scc-story-row .scc-card-title { margin: 0; font: 700 15px/1.3 var(--scc-serif); }

.scc-content-area { padding-block: 30px 46px; }
.scc-section-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--scc-rule);
}
.scc-section-heading h1,
.scc-section-heading h2 {
  margin: 0;
  font: italic 700 clamp(24px, 3vw, 31px)/1.15 var(--scc-serif);
}
.scc-section-heading h1::first-letter,
.scc-section-heading h2::first-letter { color: var(--scc-red); }
.scc-section-heading p { max-width: 560px; margin: 6px 0 0; color: var(--scc-muted); font-size: 13px; }
.scc-section-link { color: var(--scc-red); font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; white-space: nowrap; }

.scc-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px 22px;
}
.scc-story-card { min-width: 0; }
.scc-card-image { display: block; overflow: hidden; margin-bottom: 12px; background: var(--scc-soft); }
.scc-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.scc-card-image:hover img { transform: scale(1.035); }
.scc-term-list { display: flex; flex-wrap: wrap; gap: 5px 9px; }
.scc-category-list { margin-bottom: 7px; }
.scc-category-list .scc-kicker { margin: 0; }
.scc-tag-list { margin: 0 0 10px; }
.scc-tag-list a {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--scc-rule);
  border-radius: 2px;
  color: var(--scc-muted);
  font-size: 10px;
  line-height: 1.3;
  text-decoration: none;
}
.scc-tag-list a:hover { border-color: var(--scc-red); color: var(--scc-red); }
.scc-card-title { margin: 0 0 8px; font: 700 21px/1.25 var(--scc-serif); }
.scc-card-excerpt { margin: 0 0 10px; color: var(--scc-muted); font-size: 13px; line-height: 1.55; }
.scc-archive-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: -4px 0 23px;
  padding: 14px;
  border: 1px solid var(--scc-rule);
  background: var(--scc-soft);
}
.scc-archive-filters label { display: grid; gap: 5px; color: var(--scc-muted); font-size: 11px; font-weight: 700; }
.scc-archive-filters select {
  min-width: 170px;
  min-height: 38px;
  padding: 7px 30px 7px 9px;
  border: 1px solid var(--scc-rule);
  color: var(--scc-ink);
  background: var(--scc-paper);
  font: 12px var(--scc-sans);
}
.scc-archive-filters button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  color: #fff;
  background: var(--scc-red);
  font: 700 11px var(--scc-sans);
  cursor: pointer;
}
.scc-archive-filters button:hover { background: var(--scc-red-dark); }
.scc-archive-filters > a { padding: 10px 0; color: var(--scc-red); font-size: 11px; font-weight: 700; text-decoration: none; }
.scc-pagination { margin-top: 32px; }
.scc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.scc-pagination a, .scc-pagination span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--scc-rule);
  font-size: 12px;
  text-decoration: none;
}
.scc-pagination .current { border-color: var(--scc-red); color: #fff; background: var(--scc-red); }

.scc-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(220px, 1fr);
  gap: 52px;
  align-items: start;
  padding-block: 38px 55px;
}
.scc-article-header { padding-bottom: 20px; border-bottom: 1px solid var(--scc-rule); }
.scc-article-title { margin: 0 0 14px; font: 700 clamp(32px, 5vw, 54px)/1.12 var(--scc-serif); letter-spacing: -.025em; }
.scc-article-deck { margin: 0 0 17px; color: #4d4b50; font: 18px/1.55 var(--scc-serif); }
.scc-article-media { margin: 22px 0; }
.scc-article-media img { width: 100%; max-height: 560px; object-fit: cover; }
.scc-article-media figcaption { margin-top: 7px; color: var(--scc-muted); font-size: 11px; }
.scc-prose { font: 17px/1.8 var(--scc-reading); }
.scc-prose > * + * { margin-top: 1.25em; }
.scc-prose h2, .scc-prose h3 { margin-top: 1.7em; font-family: var(--scc-serif); line-height: 1.25; }
.scc-prose h2 { font-size: 30px; }
.scc-prose h3 { font-size: 23px; }
.scc-prose a { color: var(--scc-red); text-decoration: underline; text-underline-offset: 2px; }
.scc-prose blockquote { margin-left: 0; padding: 8px 0 8px 20px; border-left: 3px solid var(--scc-red); color: #49474b; font-style: italic; }
.scc-article-sidebar { padding-top: 14px; }
.scc-sidebar-box { margin-bottom: 25px; padding: 17px; border: 1px solid var(--scc-rule); background: var(--scc-soft); }
.scc-sidebar-box h2 { margin: 0 0 12px; font: italic 700 20px var(--scc-serif); }
.scc-sidebar-box ul { margin: 0; padding-left: 18px; }
.scc-sidebar-box li { margin: 0 0 10px; font-size: 13px; }
.scc-author-box { margin-top: 34px; padding: 20px; border-top: 2px solid var(--scc-ink); background: var(--scc-soft); }
.scc-author-box h2 { margin: 0 0 7px; font: 700 18px var(--scc-serif); }
.scc-author-box p { margin: 0; color: var(--scc-muted); font-size: 13px; line-height: 1.6; }

.scc-page-layout { max-width: 900px; margin: 0 auto; padding-block: 42px 56px; }
.scc-page-title { margin: 0 0 22px; font: 700 clamp(32px, 5vw, 50px)/1.15 var(--scc-serif); }
.scc-context-label {
  display: block;
  margin-bottom: 8px;
  color: var(--scc-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.scc-context-meta { margin: 8px 0 0; color: var(--scc-muted); font-size: 11px; }
.scc-archive-description { max-width: 670px; margin-top: 7px; color: var(--scc-muted); font-size: 14px; line-height: 1.6; }
.scc-archive-description p { margin: 0; }
.scc-category-breadcrumb { margin-bottom: 15px; color: var(--scc-muted); font-size: 11px; }
.scc-category-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 5px 8px; margin: 0; padding: 0; list-style: none; }
.scc-category-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--scc-rule); }
.scc-category-breadcrumb a { text-decoration: none; }
.scc-category-breadcrumb a:hover,
.scc-category-breadcrumb li[aria-current="page"] { color: var(--scc-red); }
.scc-category-heading { margin-bottom: 15px; padding: 19px 0 17px; border-top: 2px solid var(--scc-ink); }
.scc-category-heading h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -.025em; }
.scc-category-heading .scc-archive-description { max-width: 700px; font: 16px/1.65 var(--scc-reading); }
.scc-category-heading .scc-archive-description p { margin: 0; }
.scc-category-browse { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin: 0 0 6px; padding: 10px 0; border-top: 1px solid var(--scc-rule); border-bottom: 1px solid var(--scc-rule); }
.scc-category-browse-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.scc-category-browse-label { color: var(--scc-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.scc-category-current { padding: 3px 7px; border-left: 2px solid var(--scc-red); color: var(--scc-ink); background: var(--scc-soft); font: italic 700 12px var(--scc-serif); }
.scc-category-browse ul { display: flex; flex: 1; flex-wrap: wrap; gap: 3px 14px; margin: 0; padding: 0; list-style: none; }
.scc-category-browse a { display: inline-block; padding: 3px 0; color: var(--scc-muted); font-size: 12px; text-decoration: none; }
.scc-category-browse a:hover,
.scc-category-browse a[aria-current="page"] { color: var(--scc-red); text-decoration: underline; text-underline-offset: 4px; }
.scc-all-categories { position: relative; display: inline-block; margin: 0 0 16px; }
.scc-all-categories summary { color: var(--scc-red); font-size: 11px; font-weight: 700; cursor: pointer; }
.scc-all-categories summary:hover { color: var(--scc-red-dark); }
.scc-all-categories:not([open]) > ul { display: none; }
.scc-all-categories[open] > ul { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; width: min(390px, calc(100vw - 40px)); max-height: min(240px, 40vh); overflow: auto; margin: 0; padding: 10px 14px; border: 1px solid var(--scc-rule); background: var(--scc-paper); box-shadow: 0 8px 22px rgb(23 23 25 / 14%); list-style: none; }
.scc-all-categories a { display: block; padding: 5px 0; color: var(--scc-muted); font-size: 12px; text-decoration: none; }
.scc-all-categories a:hover,
.scc-all-categories a[aria-current="page"] { color: var(--scc-red); text-decoration: underline; text-underline-offset: 3px; }
.scc-category-breadcrumb a:focus-visible,
.scc-category-browse a:focus-visible,
.scc-all-categories summary:focus-visible,
.scc-all-categories a:focus-visible { outline: 2px solid var(--scc-red); outline-offset: 3px; }
.scc-category-archive .scc-archive-filters { margin-top: 0; }
.scc-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scc-archive-grid .scc-story-card { padding-bottom: 17px; border-bottom: 1px solid var(--scc-rule); }
.scc-search-term { color: var(--scc-red); }
.scc-search-results { grid-template-columns: 1fr; gap: 0; }
.scc-search-results .scc-story-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 19px;
  padding: 18px 0;
  border-bottom: 1px solid var(--scc-rule);
}
.scc-search-results .scc-card-image { grid-column: 1; grid-row: 1 / 5; margin: 0; }
.scc-search-results .scc-card-image img { aspect-ratio: 16 / 11; }
.scc-search-results .scc-kicker,
.scc-search-results .scc-card-title,
.scc-search-results .scc-card-excerpt,
.scc-search-results .scc-meta { grid-column: 2; }
.scc-search-results .scc-kicker { margin-bottom: 5px; }
.scc-search-results .scc-card-title { align-self: start; }
.scc-search-results .scc-card-excerpt { margin-top: 5px; }
.scc-search-results .scc-meta { align-self: end; }
.scc-author-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 34px;
  padding: 25px;
  border-top: 3px solid var(--scc-red);
  background: var(--scc-soft);
}
.scc-author-avatar { flex: 0 0 88px; }
.scc-author-avatar img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.scc-author-intro h1 { margin: 0; font: 700 clamp(27px, 4vw, 38px)/1.2 var(--scc-serif); }
.scc-author-intro > p { max-width: 700px; margin: 7px 0 10px; color: var(--scc-muted); font-size: 14px; line-height: 1.6; }
.scc-author-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--scc-muted); font-size: 11px; }
.scc-author-stats a { color: var(--scc-red); font-weight: 700; text-decoration: none; }
.scc-author-stories { max-width: 1040px; }
.scc-page-layout { max-width: 1040px; }
.scc-page-header { margin-bottom: 28px; padding: 20px 24px 22px; border-bottom: 1px solid var(--scc-rule); background: linear-gradient(90deg, var(--scc-soft), #fff); }
.scc-page-header .scc-page-title { margin-bottom: 0; }
.scc-page-intro { max-width: 700px; margin: 10px 0 0; color: var(--scc-muted); font: 18px/1.55 var(--scc-reading); }
.scc-page-columns { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 42px; align-items: start; }
.scc-page-aside { margin-top: 8px; padding: 18px; border-top: 2px solid var(--scc-ink); background: var(--scc-soft); }
.scc-page-aside h2 { margin: 0 0 8px; font: italic 700 19px/1.25 var(--scc-serif); }
.scc-page-aside p { margin: 0 0 12px; color: var(--scc-muted); font-size: 12px; line-height: 1.5; }
.scc-page-aside ul { margin: 0; padding: 0; list-style: none; }
.scc-page-aside li { padding: 9px 0; border-top: 1px solid var(--scc-rule); font-size: 12px; font-weight: 700; }
.scc-page-aside a { text-decoration: none; }
.scc-empty { padding: 30px 0; color: var(--scc-muted); }
.scc-site-footer { padding-block: 32px; color: #d8d6d6; background: var(--scc-ink); }
.scc-footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 45px; }
.scc-footer-brand img { width: 245px; padding: 7px; background: #fff; }
.scc-footer-brand p { max-width: 460px; color: #c5c2c2; font: 13px/1.6 var(--scc-sans); }
.scc-footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 20px; }
.scc-footer-links a { color: #fff; font-size: 12px; text-decoration: none; }
.scc-footer-bottom { margin-top: 26px; padding-top: 13px; border-top: 1px solid #47464a; color: #c5c2c2; font-size: 11px; }
.scc-skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; padding: 10px 14px; color: #fff; background: var(--scc-red); }
.scc-skip-link:focus { left: 8px; }

/* Reader-selected color mode */
:root {
  color-scheme: light;
}

.scc-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.scc-theme-toggle {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--scc-rule);
  color: var(--scc-ink);
  background: var(--scc-paper);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.scc-theme-toggle:hover {
  border-color: var(--scc-red);
  color: var(--scc-red);
}

.scc-theme-toggle:focus-visible {
  outline: 2px solid var(--scc-red);
  outline-offset: 3px;
}

.scc-theme-toggle-icon {
  color: var(--scc-red);
  font-size: 17px;
  line-height: 1;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #141416;
  --surface-1: #1d1d20;
  --surface-2: #252529;
  --text-1: #f0eff1;
  --text-2: #b9b7bf;
  --divider: #3a393f;
  --scc-red: #f06b72;
  --scc-red-dark: #cf414a;
  --scc-muted: #b9b7bf;
  --scc-paper: #141416;
  --scc-soft: #202024;
  --scc-rule: #3a393f;
  --off: #202024;
  --band: #28282c;
  --line: #3a393f;
  --line-light: #343338;
  --gray: #b9b7bf;
  --gray-light: #9d9ba3;
  --red: #f06b72;
  --red-deep: #c00000;
  --red-tint: rgba(192, 0, 0, .14);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .scc-site {
  color: var(--text-1);
  background: var(--surface-page);
}

html[data-theme="dark"] .scc-brand-tagline,
html[data-theme="dark"] .scc-article-deck,
html[data-theme="dark"] .scc-prose blockquote {
  color: var(--text-2);
}

html[data-theme="dark"] .scc-nav-toggle {
  color: var(--text-1);
}

html[data-theme="dark"] .scc-hero-list-heading,
html[data-theme="dark"] .scc-author-box,
html[data-theme="dark"] .scc-page-aside {
  border-color: var(--scc-rule);
}

html[data-theme="dark"] .scc-brand img {
  padding: 5px 9px;
  border-radius: 2px;
  background: #fff;
}

html[data-theme="dark"] .scc-search-form,
html[data-theme="dark"] .scc-navigation,
html[data-theme="dark"] .scc-nav-list .sub-menu,
html[data-theme="dark"] .scc-sidebar-box,
html[data-theme="dark"] .scc-author-box,
html[data-theme="dark"] .scc-page-aside {
  border-color: var(--scc-rule);
  background-color: var(--scc-soft);
}

html[data-theme="dark"] .scc-navigation {
  border-top-color: var(--scc-rule);
  border-bottom-color: var(--scc-rule);
}

html[data-theme="dark"] .scc-nav-list li + li {
  border-color: var(--scc-rule);
}

html[data-theme="dark"] .scc-page-header {
  background: linear-gradient(90deg, var(--scc-soft), var(--scc-paper));
}

html[data-theme="dark"] .scc-theme-toggle {
  border-color: var(--scc-rule);
  color: var(--text-1);
  background: var(--surface-1);
}

html[data-theme="dark"] .scc-theme-toggle:hover {
  border-color: var(--scc-red);
  color: var(--scc-red);
}

html[data-theme="dark"] .scc-search-form input[type="submit"] {
  background: var(--scc-red-dark);
}

html[data-theme="dark"] .scc-skip-link {
  background: var(--scc-red-dark);
}

html[data-theme="dark"] .scc-pagination .current,
html[data-theme="dark"] .ip-page .ip-tag,
html[data-theme="dark"] .ip-page .ip-chip.active,
html[data-theme="dark"] .ip-page .ip-pager .current,
html[data-theme="dark"] .comment-submit {
  border-color: var(--red-deep);
  color: #fff;
  background: var(--red-deep);
}

html[data-theme="dark"] .scc-feature {
  background: #282426;
}

html[data-theme="dark"] .ip-page {
  --ip-red: #f06b72;
  --ip-red-deep: #c00000;
  --ip-line: var(--divider);
  --ip-surface: var(--surface-1);
  --ip-surface-2: var(--surface-2);
  --ip-text: var(--text-1);
  --ip-muted: var(--text-2);
  --ta: #ff737a;
  color: var(--text-1);
}

html[data-theme="dark"] .ip-news input,
html[data-theme="dark"] .ip-event .date,
html[data-theme="dark"] .ip-lead .badge b {
  border-color: var(--divider);
  color: var(--text-1);
  background: var(--surface-2);
}

html[data-theme="dark"] .scc-theme-toggle,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  color-scheme: dark;
}

html[data-theme="dark"] input:not([type="submit"]):not([type="button"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border-color: var(--divider);
  color: var(--text-1);
  background-color: var(--surface-1);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--text-2);
  opacity: 1;
}

@media (max-width: 640px) {
  .scc-header-tools {
    gap: 6px;
  }
}

/* Homepage fidelity: restore the source editorial grid while retaining theme controls. */
  .sticky-wrap {
    color: var(--ink);
    background: var(--white);
  }

  .topbar-edition {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
  }

  .header-row {
    min-height: 82px;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .logo img {
    width: auto;
    max-width: min(270px, 31vw);
    height: 36px;
    object-fit: contain;
  }

  .logo-tagline {
    margin: 0;
    font-size: 10px;
  }

  .header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }

  .header-tools .theme-toggle-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--off);
  }

  .header-tools .theme-toggle-btn .scc-theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .scc-navigation .wrap {
    max-width: 1400px;
  }

  .hero-section {
    padding: 24px 0 14px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }

  .hero-carousel {
    min-height: 440px;
    aspect-ratio: auto;
  }

  .hero-slide[aria-hidden="true"] {
    pointer-events: none;
  }

  .hero-title a {
    color: inherit;
  }

  .hero-controls {
    bottom: 18px;
    right: 20px;
  }

  .hero-sidebar .section-head {
    margin: 0 0 12px;
  }

  .hero-sidebar .section-title {
    margin: 0;
  }

  .latest-stories-section {
    padding: 30px 0 26px;
  }

  .latest-stories-section .section-head,
  .home-band-section .section-head {
    margin-bottom: 18px;
  }

  .latest-stories-section .section-head .htext,
  .home-band-section .section-head .htext,
  .hero-sidebar .section-head .htext {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 18px;
  }

  .latest-stories-section .section-title,
  .home-band-section .section-title,
  .hero-sidebar .section-title {
    color: var(--ink);
    font: 700 clamp(22px, 2.5vw, 30px)/1.2 var(--ff-title);
    white-space: nowrap;
  }

  .latest-stories-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .latest-stories-column {
    min-width: 0;
  }

  .latest-story-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    min-width: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .latest-story-row:first-child {
    padding-top: 0;
  }

  .row-thumb {
    width: 118px;
    height: 86px;
    overflow: hidden;
    background: var(--off);
  }

  .row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 5px;
    color: var(--gray);
    font-size: 10px;
  }

  .row-meta .cat {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
  }

  .row-title {
    margin: 0 0 5px;
    font: 700 16px/1.3 var(--ff-body);
  }

  .row-title a {
    color: inherit;
  }

  .row-foot {
    color: var(--gray);
    font-size: 10px;
  }

  .legis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .legis-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .legis-thumb {
    width: 35%;
    min-width: 145px;
    min-height: 150px;
  }

  .legis-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .legis-body {
    padding: 16px;
  }

  .legis-title {
    margin: 9px 0;
    font: 700 18px/1.3 var(--ff-head);
  }

  .legis-desc {
    color: var(--gray);
    font-size: 12px;
    line-height: 1.55;
  }

  .legis-date {
    color: var(--gray);
    font-size: 10px;
  }

  .home-band-section,
  .band {
    padding: 34px 0;
    background: var(--off);
  }

  .home-band-section .latest-stories-columns,
  .band .latest-stories-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-empty-state {
    padding: 54px 0;
    text-align: center;
  }

  .home-empty-state p {
    margin-top: 12px;
    color: var(--gray);
  }

  .mobile-menu .mobile-nav-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-secondary-title {
    margin: 20px 0 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--gray);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .mobile-nav-list > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-nav-list .sub-menu {
    grid-column: 1 / -1;
    padding: 0 0 8px 14px;
  }

  .mobile-nav-list .sub-menu[hidden] {
    display: none !important;
  }

  .mobile-submenu-toggle {
    width: 38px;
    min-height: 42px;
    color: var(--scc-red);
    font-size: 20px;
  }

  .mobile-nav-list .sub-menu li {
    border: 0;
  }

  .mobile-nav-list .sub-menu a {
    min-height: 34px;
    font-size: 12px;
    font-weight: 500;
  }

  .mobile-menu-open {
    overflow: hidden;
  }

  html[data-theme="dark"] .sticky-wrap,
  html[data-theme="dark"] .latest-stories-section,
  html[data-theme="dark"] .home-empty-state {
    color: var(--text-1);
    background: var(--surface-page);
  }

  html[data-theme="dark"] .latest-stories-section .section-title,
  html[data-theme="dark"] .home-band-section .section-title,
  html[data-theme="dark"] .hero-sidebar .section-title,
  html[data-theme="dark"] .row-title,
  html[data-theme="dark"] .legis-title {
    color: var(--text-1);
  }

  html[data-theme="dark"] .home-band-section,
  html[data-theme="dark"] .band,
  html[data-theme="dark"] .legis-card,
  html[data-theme="dark"] .featured-story-card,
  html[data-theme="dark"] .header-tools .theme-toggle-btn,
  html[data-theme="dark"] .mobile-menu {
    color: var(--text-1);
    background: var(--surface-1);
  }

  html[data-theme="dark"] .legis-card,
  html[data-theme="dark"] .featured-story-foot,
  html[data-theme="dark"] .latest-story-row,
  html[data-theme="dark"] .section-rule {
    border-color: var(--divider);
  }

  html[data-theme="dark"] .featured-story-title,
  html[data-theme="dark"] .featured-story-byline,
  html[data-theme="dark"] .featured-story-date,
  html[data-theme="dark"] .featured-story-excerpt {
    color: var(--text-1);
  }

  html[data-theme="dark"] .row-foot,
  html[data-theme="dark"] .row-meta,
  html[data-theme="dark"] .legis-desc,
  html[data-theme="dark"] .legis-date {
    color: var(--text-2);
  }

  @media (max-width: 1300px) {
    .scc-navigation {
      display: none;
    }
  }

  @media (max-width: 1080px) {
    .hero-layout {
      grid-template-columns: minmax(0, 1fr);
    }

    .hero-sidebar {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: stretch;
    }

    .hero-sidebar .latest-stories-column {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 22px;
    }

    .hero-carousel {
      aspect-ratio: auto;
    }
  }

  @media (max-width: 680px) {
    .header-row {
      gap: 9px;
    }

    .logo img {
      max-width: 42vw;
      height: 32px;
    }

    .scc-search-form {
      width: min(44vw, 210px);
    }

    .header-tools {
      gap: 6px;
    }

    .hero-carousel {
      min-height: 460px;
    }

    .hero-sidebar .latest-stories-column,
    .latest-stories-columns,
    .legis-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    .latest-story-row {
      grid-template-columns: 96px minmax(0, 1fr);
      gap: 12px;
    }

    .row-thumb {
      width: 96px;
      height: 74px;
    }

    .legis-card {
      flex-direction: column;
    }

    .legis-thumb {
      width: 100%;
      height: 180px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide img,
    .mobile-menu,
    .mobile-overlay {
      transition-duration: .01ms !important;
    }
  }

  .topbar .header-tools {
    gap: 12px;
  }

  .topbar .scc-theme-toggle-label {
    display: none;
  }

  .topbar .hamburger {
    margin-left: 0;
  }

  .topbar .hamburger:focus-visible,
  .connect-social-grid a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  .connect-social-grid a span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -.04em;
  }

  .topbar .header-tools .theme-toggle-btn {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 22px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
  }

  .topbar .scc-theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .topbar .theme-toggle-btn:hover,
  .topbar .theme-toggle-btn:focus-visible {
    color: #fff;
    background: transparent;
  }

  .topbar .theme-toggle-btn:focus-visible,
  .topbar .connect-btn:focus-visible,
  .topbar .write-toggle-btn:focus-visible,
  .topbar .subscribe-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  .header-language {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
  }

  .connect-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
  }

  .connect-pop-links {
    display: grid;
    gap: 8px;
  }

  .connect-pop-links a {
    color: var(--ink);
    font-size: 12px;
    text-decoration: none;
  }

  .connect-pop-links a:hover,
  .connect-pop-links a:focus-visible {
    color: var(--red);
  }

  .write-dropdown-menu a:focus-visible,
  .connect-pop a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
  }

  .home-bottom-promo {
    padding: 42px 0 46px;
  }

  .mobile-subscribe-btn {
    display: block;
    margin: 20px 20px 0;
    padding: 11px 14px;
    height: auto;
    text-align: center;
  }

  .nav-level-1-inline .nav-dropdown-col.cols-2 {
    width: 500px;
    max-width: min(500px, calc(100vw - 48px));
  }

  .nav-level-1-inline .nav-dropdown-col.cols-2 > ul {
    column-count: 2;
    column-gap: 28px;
  }

  .nav-level-1-inline .nav-dropdown-col.cols-2 li {
    break-inside: avoid;
  }

  .nav-level-1-inline .nav-dropdown-col.cols-3 {
    width: 780px;
    max-width: min(780px, calc(100vw - 48px));
  }

  .nav-level-1-inline .nav-dropdown-col.cols-3 > ul {
    column-count: 3;
    column-gap: 28px;
  }

  .nav-level-1-inline .nav-dropdown-col.cols-3 li {
    break-inside: avoid;
  }

  .nav-level-1-inline .nav-dropdown-col > ul > li > a::after {
    display: none;
  }

  .lang-toggle-btn {
    cursor: pointer;
  }

  .lang-dropdown-menu .lang-item {
    width: 100%;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  .lang-item-name {
    flex: 1;
  }

  .lang-item-code {
    margin-left: 10px;
    color: var(--gray);
    font-size: 10px;
    font-weight: 700;
  }

  .google-translate-utility {
    position: fixed;
    z-index: -1;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  body > .skiptranslate,
  .goog-te-banner-frame,
  #goog-gt-tt {
    display: none !important;
  }

  html.translated-ltr,
  html.translated-rtl {
    margin-top: 0 !important;
  }

  .nav-level-1-inline .nav-dropdown {
    z-index: 1100;
  }

  html[data-theme="dark"] .lang-dropdown-menu {
    border-color: var(--divider);
    background: var(--surface-1);
  }

  html[data-theme="dark"] .lang-dropdown-menu .lang-item {
    color: var(--text-1);
  }

  html[data-theme="dark"] .lang-dropdown-menu .lang-item:hover,
  html[data-theme="dark"] .lang-dropdown-menu .lang-item.active {
    color: var(--scc-red);
    background: var(--surface-2);
  }

  @media (max-width: 1100px) {
    .nav-level-1-inline .nav-dropdown {
      display: none !important;
    }
  }

  .footer-brand > a {
    display: inline-block;
  }

  .footer-brand img {
    filter: brightness(0) invert(1);
  }

  .footer-brand img.footer-logo-custom {
    filter: none;
  }

  html[data-theme="dark"] .topbar,
  html[data-theme="dark"] .site-footer {
    color: #f5f2f2;
  }

  html[data-theme="dark"] .topbar .header-tools .theme-toggle-btn,
  html[data-theme="dark"] .topbar .header-tools .theme-toggle-btn:hover {
    color: #fff;
    background: transparent;
  }

  html[data-theme="dark"] .topbar .write-dropdown-menu,
  html[data-theme="dark"] .topbar .connect-pop {
    border-color: var(--divider);
    background: var(--surface-1);
  }

  html[data-theme="dark"] .topbar .write-item-label,
  html[data-theme="dark"] .connect-pop-links a {
    color: var(--text-1);
  }

  html[data-theme="dark"] .topbar .write-item:hover,
  html[data-theme="dark"] .topbar .connect-pop-links a:hover {
    background: var(--surface-2);
    color: var(--scc-red);
  }

  html[data-theme="dark"] .product-carousel-section {
    background: var(--surface-1);
  }

  html[data-theme="dark"] .product-carousel-title {
    color: var(--text-1);
  }

  html[data-theme="dark"] .product-carousel .product-logo {
    border-color: var(--divider);
    background: #fff;
  }

  @media (max-width: 600px) {
    .topbar .wrap {
      min-height: 32px;
    }

    .topbar-right {
      margin-left: auto;
    }

    .topbar .header-tools {
      gap: 9px;
    }
  }

  @media (max-width: 400px) {
    .topbar .header-tools {
      gap: 6px;
    }

    .header-language {
      font-size: 10px;
    }
  }

@media (max-width: 640px) {
  .scc-search-form {
    width: min(145px, 31vw);
  }

  .scc-theme-toggle {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .scc-theme-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .scc-site {
    transition: color .16s ease, background-color .16s ease;
  }
}

/* Compact editorial masthead: keep search quiet and aligned with the logo/nav. */
.header-row {
  min-height: 72px;
  gap: clamp(12px, 1.4vw, 22px);
}

.logo img {
  max-width: min(248px, 26vw);
}

.scc-search-form.header-search-fixed {
  box-sizing: border-box;
  flex: 0 1 192px;
  width: min(192px, 17vw);
  min-width: 142px;
  max-width: 192px;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid var(--line, #dedcd5);
  background: transparent;
}

.scc-search-form.header-search-fixed label {
  min-width: 0;
}

.scc-search-form.header-search-fixed input[type="search"] {
  box-sizing: border-box;
  min-height: 32px;
  padding: 5px 0;
  color: var(--ink, #171719);
  font-size: 11px;
  outline: 0;
}

.scc-search-form.header-search-fixed input[type="search"]::placeholder {
  color: var(--gray, #777);
  opacity: 1;
}

.scc-search-submit {
  display: inline-flex;
  width: 26px;
  height: 30px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--gray, #777);
  background: transparent;
  cursor: pointer;
}

.scc-search-submit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.scc-search-submit:hover,
.scc-search-submit:focus-visible {
  color: var(--red, #c00000);
}

.scc-search-submit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

@media (max-width: 680px) {
  .logo img {
    max-width: min(248px, 42vw);
  }

  .scc-search-form.header-search-fixed {
    width: min(44vw, 210px);
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .scc-search-form.header-search-fixed {
    width: min(40vw, 160px);
  }
}

@media (max-width: 850px) {
  .scc-home-hero { grid-template-columns: minmax(0, 1.35fr) minmax(220px, .9fr); gap: 16px; }
  .scc-feature { min-height: 380px; }
  .scc-feature-copy { padding: 22px; }
  .scc-single-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .scc-article-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .scc-sidebar-box { margin: 0; }
}
@media (max-width: 1000px) {
  .scc-nav-list a { padding-inline: 8px; font-size: 11px; }
}
@media (max-width: 700px) {
  .scc-navigation .scc-wrap { width: 100%; }
  .scc-nav-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: var(--scc-ink);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }
  .scc-nav-toggle-icon { color: var(--scc-red); font-size: 20px; line-height: 1; }
  .scc-nav-toggle:focus-visible { outline-offset: -3px; }
  .scc-navigation-ready:not(.is-open) .scc-nav-list { display: none; }
  .scc-nav-list { display: block; max-height: min(65vh, 480px); overflow-y: auto; border-top: 1px solid var(--scc-rule); }
  .scc-nav-list > li { border: 0 !important; border-bottom: 1px solid var(--scc-rule) !important; }
  .scc-nav-list a { min-height: 42px; padding: 10px 16px; font-size: 13px; white-space: normal; }
  .scc-nav-list .sub-menu,
  .scc-nav-list .sub-menu .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 5px 13px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .scc-nav-list .sub-menu a { min-height: 36px; padding-block: 8px; font-size: 12px; font-weight: 500; }
}
@media (max-width: 640px) {
  .scc-wrap { width: min(100% - 28px, 1200px); }
  .scc-topline .scc-wrap { min-height: 30px; }
  .scc-topline-links { gap: 10px; }
  .scc-topline-links a:nth-child(n+2), .scc-edition { display: none; }
  .scc-brand-row { min-height: 0; align-items: center; gap: 12px; padding-block: 14px; }
  .scc-brand { align-items: flex-start; }
  .scc-brand img { width: min(215px, 48vw); max-height: 56px; }
  .scc-brand-tagline { text-align: left; font-size: 9px; }
  .scc-search-form { width: 43%; }
  .scc-search-form input[type="submit"] { padding-inline: 9px; }
  .scc-nav-list { padding-inline: 0; }
  .scc-ticker { min-height: 31px; gap: 8px; font-size: 11px; }
  .scc-ticker-label { padding-inline: 7px; }
  .scc-home-hero { grid-template-columns: 1fr; padding-block: 18px; }
  .scc-feature { min-height: 380px; }
  .scc-feature-title { font-size: clamp(26px, 8vw, 37px); }
  .scc-feature-copy { padding: 19px; }
  .scc-hero-list-heading { margin-top: 8px; }
  .scc-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .scc-card-title { font-size: 18px; }
  .scc-section-heading { align-items: flex-start; }
  .scc-section-link { font-size: 10px; }
  .scc-content-area { padding-block: 24px 36px; }
  .scc-category-heading { padding-block: 13px 11px; }
  .scc-category-heading .scc-archive-description { font-size: 14px; }
  .scc-category-browse { gap: 5px 9px; padding-block: 8px; }
  .scc-category-browse ul { gap: 2px 10px; }
  .scc-all-categories { margin-bottom: 12px; }
  .scc-single-layout { padding-block: 28px 40px; }
  .scc-article-title { font-size: clamp(31px, 9vw, 43px); }
  .scc-article-deck { font-size: 16px; }
  .scc-prose { font-size: 16px; line-height: 1.75; }
  .scc-article-sidebar { grid-template-columns: 1fr; }
  .scc-footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .scc-page-columns { grid-template-columns: 1fr; gap: 24px; }
  .scc-page-aside { margin-top: 0; }
  .scc-author-heading { align-items: flex-start; padding: 18px; }
  .scc-archive-grid { grid-template-columns: 1fr; }
  .scc-search-results .scc-story-card { grid-template-columns: 116px minmax(0, 1fr); column-gap: 13px; }
  .scc-search-results .scc-card-title { font-size: 17px; }
  .scc-search-results .scc-card-excerpt { font-size: 12px; }
}
@media (max-width: 420px) {
  .scc-story-grid { grid-template-columns: 1fr; }
  .scc-story-row { grid-template-columns: 82px minmax(0, 1fr); }
  .scc-story-row img { width: 82px; height: 67px; }
  .scc-story-row .scc-card-title { font-size: 14px; }
  .scc-search-results .scc-story-card { grid-template-columns: 90px minmax(0, 1fr); column-gap: 11px; }
  .scc-search-results .scc-card-title { font-size: 15px; }
  .scc-author-heading { gap: 13px; padding: 15px; }
  .scc-author-avatar, .scc-author-avatar img { width: 58px; height: 58px; }
}

@media (max-width: 640px) {
  .scc-header-tools {
    gap: 6px;
  }

  .scc-search-form {
    width: min(145px, 31vw);
  }
}

.hero-sidebar > .video-card {
  margin-bottom: 0;
}

.hero-sidebar .video-card .play-btn {
  z-index: 3;
}

.aside-block.newsletter-split .newsletter-half-sub > .ui-btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
  text-decoration: none;
}

html[data-theme="dark"] .aside-block.newsletter-split {
  border-color: var(--divider);
  background: var(--surface-1);
}

html[data-theme="dark"] .aside-block.newsletter-split .newsletter-half-sub {
  background: var(--surface-2);
}

html[data-theme="dark"] .aside-block.newsletter-split .newsletter-half-sub h5,
html[data-theme="dark"] .aside-block.newsletter-split .newsletter-half-sub p,
html[data-theme="dark"] .aside-block.newsletter-split .newsletter-half-today h5 {
  color: var(--text-1);
}

html[data-theme="dark"] .aside-block.newsletter-split .newsletter-half-today {
  border-color: var(--divider);
  background: var(--surface-1);
}

/* Homepage sections: keep optional ad inventory from reserving empty space. */
.band .split-2 > :only-child {
  grid-column: 1 / -1;
}

.experts-layout {
  grid-template-columns: minmax(0, 1fr);
}

.experts-layout.has-ad {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.ad-card {
  min-width: 0;
  min-height: 320px;
  padding: 8px;
  background: var(--off);
  border: 1px solid var(--line);
}

.ad-card .ad-label {
  align-self: flex-start;
  padding: 2px 0 8px;
  color: var(--gray);
}

.ad-card .ad-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.ad-card .ad-link img {
  width: 100%;
  height: auto;
  max-height: 460px;
  margin: 0;
  object-fit: contain;
}

.home-video-desk .section-head {
  margin-bottom: 18px;
}

.home-video-desk .video-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr);
  min-height: 340px;
  gap: 18px;
}

.home-video-desk .video-grid:not(.has-video-side) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  max-width: 860px;
}

.home-video-desk .video-main-card,
.home-video-desk .video-side-card {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.home-video-desk .video-main-card {
  height: 100%;
  padding-bottom: 13px;
  background: var(--white);
  border: 1px solid var(--line);
}

.home-video-desk .video-main-card .video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
}

.home-video-desk .video-main-body {
  display: block;
  padding: 8px 14px 0;
}

.home-video-desk .video-main-card .video-title {
  display: block;
  margin: 0;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.35;
}

.home-video-desk .video-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 10px;
}

.home-video-desk .video-side-card {
  display: grid;
  grid-template-columns: minmax(100px, 40%) minmax(0, 1fr);
  align-items: center;
  gap: 0 12px;
  min-height: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.home-video-desk .video-side-card:last-child {
  border-bottom: 0;
}

.home-video-desk .video-side-card .video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.home-video-desk .video-side-card .play-btn {
  width: 36px;
  height: 36px;
}

.home-video-desk .video-side-card .video-title {
  display: block;
  margin: 0;
  padding: 8px 4px;
  font-size: 13px;
  line-height: 1.4;
}

.home-video-desk .video-card:focus-visible,
.video-modal-close:focus-visible,
.interview-scroll-nav button:focus-visible,
.interview-slide:focus-visible,
.interview-scroll:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.video-modal-overlay[hidden] {
  display: none !important;
}

.video-modal-overlay:not([hidden]) {
  position: fixed;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(6px);
  opacity: 1;
  visibility: visible;
  transition: none;
}

.video-modal-overlay:not([hidden]) .video-modal-box {
  width: min(100%, 900px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: none;
}

.video-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.video-player-open {
  overflow: hidden;
}

.interview-scroll-nav button:disabled {
  color: var(--gray-light);
  background: transparent;
  opacity: 0.45;
  cursor: not-allowed;
}

.interview-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-light) transparent;
}

.interview-scroll::-webkit-scrollbar {
  height: 6px;
}

.interview-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-light);
  border-radius: 0;
}

.interview-track {
  width: max-content;
  min-width: 100%;
  transform: none !important;
  transition: none;
  will-change: auto;
}

.interview-slide {
  flex: 0 0 210px;
  scroll-snap-align: start;
}

.is-body h3 {
  margin: 0;
  color: #fff;
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
}

@media (max-width: 1024px) {
  .experts-layout.has-ad {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-card {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .home-video-desk .video-grid,
  .home-video-desk .video-grid:not(.has-video-side) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .home-video-desk .video-main-card .video-thumb {
    aspect-ratio: 16 / 9;
  }

  .home-video-desk .video-side {
    grid-template-rows: none;
  }

  .home-video-desk .video-side-card {
    min-height: 86px;
  }
}

@media (max-width: 768px) {
  .interview-scroll-nav {
    display: none;
  }

  .interview-scroll {
    scrollbar-width: none;
  }

  .interview-scroll::-webkit-scrollbar {
    display: none;
  }

  .interview-slide {
    flex-basis: min(72vw, 280px);
  }

  .video-modal-overlay:not([hidden]) {
    padding: 10px;
  }

  .video-modal-overlay:not([hidden]) .video-modal-box {
    max-height: calc(100vh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interview-scroll {
    scroll-behavior: auto;
  }
}

@media (max-width: 680px) {
  .hero-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep homepage sections on one shared measure and preserve editorial grids on laptops. */
body.home .wrap {
  width: min(var(--maxw), calc(100% - 40px));
  padding-inline: 0 !important;
}

body.home .hero-layout,
body.home .content-layout,
body.home .split-2,
body.home .split-section {
  min-width: 0;
}

body.home .hero-carousel,
body.home .hero-sidebar {
  min-width: 0;
}

@media (min-width: 901px) {
  body.home .hero-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }

  body.home .hero-sidebar {
    display: flex;
    flex-direction: column;
  }

  body.home .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

  body.home .split-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 36px;
  }

  body.home .split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .experts-main .law-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.home .legis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.home .wrap {
    width: calc(100% - 28px);
  }
}

@media (max-width: 900px) {
  body.home .hero-carousel {
    min-height: 400px;
  }

  body.home .hero-sidebar {
    align-items: start;
  }

  body.home .hero-sidebar > .promo-card {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  body.home .hero-section {
    padding-top: 14px;
  }

  body.home .hero-carousel {
    min-height: 380px;
  }

  body.home .hero-sidebar > .promo-card {
    aspect-ratio: 16 / 9;
  }

  body.home .newsletter-half-today .today-spotlight-link {
    aspect-ratio: 16 / 8;
  }

  body.home .latest-stories-section,
  body.home .home-band-section,
  body.home .band {
    padding-block: 24px;
  }
}

@media (max-width: 680px) {
  body.home .hero-carousel {
    min-height: 380px;
  }

  body.home .hero-sidebar > .promo-card {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 420px) {
  body.home .hero-carousel {
    min-height: 350px;
  }
}

.case-analysis-section .section-head {
  margin-bottom: 18px;
}

.featured-story-foot {
  gap: 12px;
}

.featured-story-share {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--scc-red);
  color: var(--scc-red);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.featured-story-share:hover,
.featured-story-share:focus-visible {
  color: #fff;
  background: var(--scc-red);
}

.featured-story-share:focus-visible,
.home-app-link:focus-visible,
.home-social-list button:focus-visible {
  outline: 2px solid var(--scc-red);
  outline-offset: 3px;
}

.home-app-social-strip {
  margin: 0 auto 18px;
}

.home-app-social-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
}

.home-app-downloads {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(110deg, #a90000, #d00000);
  box-shadow: 0 8px 18px rgba(20, 20, 20, .12);
}

.home-app-downloads h2,
.home-social-links h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font: 700 16px/1.2 var(--ff-head);
  white-space: nowrap;
}

.home-app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.home-app-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  background: #111113;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.home-app-link:hover {
  color: #fff;
  background: #29292d;
  transform: translateY(-1px);
}

.home-app-link > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.home-app-link small {
  color: #d6d6d8;
  font-size: 8px;
}

.home-app-link strong {
  font-size: 12px;
}

.home-app-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 18px;
}

.home-app-mark svg {
  width: 20px;
  height: 20px;
}

.home-app-mark:not(.home-play-mark) svg {
  fill: currentColor;
}

.home-play-mark svg {
  fill: initial;
}

.home-social-links {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  background: #111113;
  box-shadow: 0 8px 18px rgba(20, 20, 20, .12);
}

.home-social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-social-list button,
.home-social-list a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  opacity: 1;
}

.home-social-list a { text-decoration: none; }
.home-social-list a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.home-social-list button:disabled {
  opacity: 1;
}

.home-social-list .social-whatsapp button,
.home-social-list .social-whatsapp a { background: #1fc76a; }
.home-social-list .social-telegram button,
.home-social-list .social-telegram a { background: #229ed9; }
.home-social-list .social-instagram button,
.home-social-list .social-instagram a { background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 65%, #4f5bd5); }
.home-social-list .social-linkedin button,
.home-social-list .social-linkedin a { background: #0a66c2; }
.home-social-list .social-facebook button,
.home-social-list .social-facebook a { background: #1877f2; }
.home-social-list .social-x button,
.home-social-list .social-x a { background: #222; border-color: #555; }
.home-social-list .social-youtube button,
.home-social-list .social-youtube a { background: #ff0000; }

.home-social-list svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-social-list .social-facebook svg path {
  fill: currentColor;
  stroke: none;
}

.home-social-list .icon-dot {
  fill: currentColor;
  stroke: none;
}

.footer-social-row a {
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.footer-sub-item .val {
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .home-app-downloads {
  background: linear-gradient(110deg, #a90000, #d00000);
}

@media (max-width: 1100px) {
  .home-app-social-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .home-app-social-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-app-downloads,
  .home-social-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .home-app-downloads,
  .home-social-links {
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .home-app-downloads h2,
  .home-social-links h2 {
    width: 100%;
    font-size: 15px;
  }

  .home-app-links {
    width: 100%;
    justify-content: flex-start;
  }

  .home-app-link {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 8px;
  }

  .home-social-list {
    justify-content: flex-start;
  }

  .home-social-list button {
    width: 38px;
    height: 38px;
  }
}

.footer-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  column-gap: 28px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }
}

.aside-block.newsletter-split .newsletter-half-email-label {
  position: relative;
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  font-weight: 600;
}

.aside-block.newsletter-split .newsletter-half-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  width: 100%;
}

.aside-block.newsletter-split .newsletter-half-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

.aside-block.newsletter-split .newsletter-half-form button,
.aside-block.newsletter-split .newsletter-half-form button:disabled,
.aside-block.newsletter-split .newsletter-half-form button:disabled:hover {
  width: auto;
  min-height: 42px;
  padding: 0 14px;
  background: var(--red-deep);
  color: #fff;
  cursor: not-allowed;
  opacity: .78;
  filter: none;
}

.aside-block.newsletter-split .newsletter-half-note {
  position: relative;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .aside-block.newsletter-split .newsletter-half-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .aside-block.newsletter-split .newsletter-half-form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ===== SCC nav ===== */
#siteHeader,
#siteHeader .wrap,
#siteHeader .header-row {
  overflow: visible !important;
}

.nav-level-1-inline,
.nav-level-1-inline > ul {
  overflow: visible;
}

/* top items uppercase (More From Court bhi) */
.nav-level-1-inline > ul > li > a {
  text-transform: uppercase;
}

/* home icon */
.nav-level-1-inline .home-item .home-icon {
  display: inline-flex;
  align-items: center;
  color: #e0533d;
}

/* dropdown hover + click fix */
.nav-level-1-inline .has-dropdown {
  position: relative;
}

.nav-level-1-inline .has-dropdown > .nav-dropdown {
  margin-top: 0 !important;
  z-index: 99999;
}

.nav-level-1-inline .has-dropdown > .nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-level-1-inline .has-dropdown:hover > .nav-dropdown,
.nav-level-1-inline .has-dropdown:focus-within > .nav-dropdown {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-level-1-inline .nav-dropdown a {
  display: block;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.product-carousel { overflow: hidden; }
.product-carousel .product-carousel-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: sccProductMarquee 35s linear infinite;
}
.product-carousel .product-logo { flex: 0 0 auto; margin-right: 48px; }
.product-carousel:hover .product-carousel-track { animation-play-state: paused; }
@keyframes sccProductMarquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .product-carousel { overflow-x: auto; }
  .product-carousel .product-carousel-track { animation: none; }
}