@font-face {
  font-family: "Noto Sans Sinhala";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/sinhala-400.woff2") format("woff2");
  unicode-range: U+0D80-0DFF, U+200C-200D;
}
@font-face {
  font-family: "Noto Sans Sinhala";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/sinhala-700.woff2") format("woff2");
  unicode-range: U+0D80-0DFF, U+200C-200D;
}
:root {
  --red: #b81328;
  --ink: #22272d;
  --muted: #606975;
  --line: #e0e3e7;
  --paper: #fff;
  --surface: #f3f5f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.6 Arial,
    "Noto Sans Sinhala",
    "Iskoola Pota",
    sans-serif;
}
h1,
h2,
h3 {
  font-weight: 750;
  line-height: 1.25;
  color: inherit;
}
a {
  color: inherit;
}
a:hover {
  color: var(--red);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #1c70bf;
  outline-offset: 3px;
}
img {
  max-width: 100%;
}
.wrap {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}
.topbar {
  background: #22272d;
  color: #fff;
  font-size: 0.85rem;
}
.topinner {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 34px;
}
.topinner a:hover {
  color: #fff;
  text-decoration: underline;
}
.topinner .language {
  margin-left: auto;
}
.language {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  line-height: 1.35;
  font-weight: 600;
}
.language[aria-disabled="true"] {
  font-weight: 400;
}
.article-language {
  margin-block: 8px 16px;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
}
.masthead img,
.desk-header img {
  display: block;
}
.navband.header--navbar {
  background: var(--red);
  color: #fff;
  margin: 0;
  border: 0;
  border-radius: 0;
  min-height: 0;
}
.navlinks {
  display: flex;
  flex-wrap: wrap;
}
.navlinks a {
  padding: 11px 13px;
  color: white;
  text-decoration: none;
}
.navlinks a:hover,
.navlinks a:focus {
  background: #861021;
}
.searchbox {
  display: flex;
  border: 1px solid var(--line);
  max-width: 48%;
}
.searchbox input {
  border: 0;
  padding: 8px;
  width: min(190px, 31vw);
  min-width: 0;
}
.searchbox button {
  border: 0;
  background: var(--surface);
  min-width: 39px;
}
.main {
  padding-block: 24px 55px;
  min-height: 52vh;
}
.ticker.news--ticker {
  display: flex;
  margin: 0 0 22px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.ticker strong {
  background: var(--red);
  color: #fff;
  padding: 9px 13px;
  white-space: nowrap;
}
.ticker div {
  display: flex;
  overflow: auto;
  align-items: center;
  gap: 20px;
  padding-inline: 12px;
}
.ticker a {
  white-space: nowrap;
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(155px, 17vw));
  gap: 5px;
}
.hero-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #30363d;
  color: #fff;
}
.hero-card:first-child {
  grid-row: span 2;
}
.hero-card a,
.hero-card .photo {
  display: block;
  height: 100%;
  color: inherit;
}
.hero-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #15191f;
}
.photo-empty {
  width: 100%;
  height: 100%;
  background: #323a45;
  min-height: 120px;
}
.hero-card .card-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 13px 11px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.94) 45%);
}
.hero-card h3 {
  font-size: clamp(0.88rem, 1.55vw, 1.25rem);
}
.hero-card:first-child h3 {
  font-size: clamp(1.3rem, 3vw, 2.4rem);
}
.hero-card a:hover h3,
.story-card a:hover h3 {
  text-decoration: underline;
}
.card-copy h3 {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.card-copy time,
.byline {
  font-size: 0.83rem;
}
.category-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 2px 7px;
  font-size: 0.75rem;
}
.section-heading {
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  font-size: 1.3rem;
  margin: 30px 0 16px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.story-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.story-card a {
  display: block;
}
.story-card .photo {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.story-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #15191f;
}
.story-card .card-copy {
  padding-top: 10px;
}
.story-card h3 {
  font-size: 1.13rem;
}
.story-card time,
.byline,
figcaption {
  color: var(--muted);
}
.foot {
  background: #eceff2;
  color: var(--ink);
  border-top: 4px solid var(--red);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-inner nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.archive-title {
  margin: 0 0 18px;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr);
  gap: 38px;
}
.article-grid aside .cards {
  grid-template-columns: 1fr;
}
.reading {
  max-width: 850px;
  overflow-wrap: anywhere;
}
.reading h1 {
  font-size: clamp(1.75rem, 4.1vw, 3.1rem);
  margin: 12px 0;
}
.reading .standfirst {
  font-size: 1.18rem;
  color: var(--muted);
}
.reading .byline,
.share,
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 15px 0;
}
.reading figure {
  margin: 20px 0;
}
.reading figure img {
  width: 100%;
  height: auto;
}
.reading figcaption {
  font-size: 0.8rem;
}
.article-body {
  font-size: 1.08rem;
  line-height: 1.9;
}
.article-body p {
  margin: 0 0 1.15em;
}
.article-body a,
.share a,
.crumb a,
.pager a,
.desk a:not(.button),
.empty a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body h2,
.article-body h3 {
  margin: 22px 0 10px;
}
.notice,
.empty {
  padding: 15px;
  background: var(--surface);
  margin-block: 14px;
}
.trust {
  padding-block: 20px;
}
.skip,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  padding: 12px;
  background: white;
  z-index: 2;
}
.desk {
  min-height: 100vh;
  background: var(--surface);
}
.desk-header {
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
}
.desk-grid {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  min-height: 88vh;
}
.desk-nav {
  padding: 22px 12px;
  background: #252b34;
  color: white;
}
.desk-nav a {
  display: block;
  padding: 8px 10px;
}
.desk-nav a:hover {
  color: white;
  background: #444c57;
}
.desk-main {
  padding: 24px 32px;
  max-width: 1350px;
  width: 100%;
}
.desk-main h1,
.login h1 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}
.panel {
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0 0 15px;
}
.flow label,
.login label,
.desk-actions label,
.desk form label {
  display: block;
  margin-bottom: 12px;
}
.desk input:not([type="hidden"]),
.desk select,
.desk textarea,
.login input {
  display: block;
  width: 100%;
  border: 1px solid #aeb6c0;
  border-radius: 3px;
  padding: 8px;
  background: white;
  color: var(--ink);
}
.desk textarea {
  min-height: 85px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.primary,
.button,
button {
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 3px;
  background: white;
  display: inline-block;
  color: var(--ink);
}
.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.primary:hover {
  color: white;
  background: #8d1021;
}
.desk-links,
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block: 12px;
}
.desk-actions,
.metrics,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 12px;
}
.metrics strong,
.metrics span {
  display: block;
}
.rich-editor {
  margin: 12px 0;
}
.rich-editor .tiptap {
  padding: 12px;
  min-height: 240px;
  border: 1px solid #aeb6c0;
}
.rich-editor .tiptap p {
  margin-bottom: 0.7rem;
}
.table-wrap {
  overflow: auto;
  margin-top: 15px;
}
table {
  background: white;
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
th,
td {
  text-align: left;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--surface);
  padding: 16px;
}
.login .panel {
  width: min(100%, 430px);
}
.login .panel img {
  margin-bottom: 15px;
}
.form-error {
  color: #991326;
  background: #feecee;
  padding: 8px;
}
.asset-grid figure img,
.cover-thumb {
  height: auto;
}
.news--ticker:before,
.news--ticker:after {
  display: none;
}
.mobile-header {
  display: none;
}
@media (max-width: 800px) {
  .desktop-header {
    display: none;
  }
  .mobile-header {
    display: block;
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom: 3px solid var(--red);
  }
  .mobile-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 62px;
  }
  .mobile-brand {
    flex: 1;
    min-width: 0;
  }
  .mobile-brand img {
    display: block;
    width: min(155px, 100%);
    height: auto;
  }
  .mobile-header-row > .language,
  .mobile-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
  }
  .mobile-header-row > .language {
    font-size: 0.85rem;
    border-color: var(--line);
    color: var(--red);
  }
  .mobile-menu summary {
    width: 44px;
    cursor: pointer;
    list-style: none;
    background: var(--red);
    color: white;
  }
  .mobile-menu summary::-webkit-details-marker,
  .mobile-menu .menu-close,
  .mobile-menu[open] .menu-bars {
    display: none;
  }
  .mobile-menu[open] .menu-close {
    display: inline;
  }
  .mobile-menu-panel {
    position: absolute;
    inset: 100% 0 auto;
    max-height: 75vh;
    overflow: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgb(0 0 0 / 15%);
  }
  .mobile-menu-inner {
    display: grid;
    gap: 12px;
    padding-block: 14px;
  }
  .mobile-menu .searchbox {
    max-width: none;
    min-height: 44px;
    border-radius: 6px;
  }
  .mobile-menu .searchbox input {
    flex: 1;
    width: auto;
    padding-inline: 12px;
    font-size: 16px;
    border-radius: 6px 0 0 6px;
  }
  .mobile-menu .searchbox button {
    width: 44px;
    display: grid;
    place-items: center;
    border-radius: 0 6px 6px 0;
    color: var(--red);
  }
  .mobile-sections,
  .mobile-utility {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }
  .mobile-sections a,
  .mobile-utility a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 10px;
  }
  .mobile-sections a {
    background: var(--surface);
    border-radius: 6px;
    font-weight: 600;
  }
  .mobile-utility {
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: minmax(150px, 27vw);
  }
  .hero-card:first-child {
    grid-row: auto;
    grid-column: span 2;
    min-height: 230px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .article-grid aside .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desk-grid {
    grid-template-columns: 1fr;
  }
  .desk-nav {
    display: flex;
    overflow: auto;
    padding: 4px;
  }
  .desk-main {
    padding: 20px;
  }
  .desk-header {
    flex-wrap: wrap;
  }
  .wrap {
    width: calc(100% - 28px);
  }
}
@media (max-width: 430px) {
  .hero-grid {
    grid-auto-rows: minmax(130px, 30vw);
  }
  .hero-card .card-copy {
    padding: 12px 6px 5px;
  }
  .hero-card time {
    display: none;
  }
  .cards {
    gap: 12px;
  }
  .story-card h3 {
    font-size: 0.95rem;
  }
  .desk-header img {
    width: 126px;
    height: auto;
  }
  .main {
    padding-top: 16px;
  }
}

.article-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.article-editor-column {
  min-width: 0;
}
.article-workspace .fields {
  grid-template-columns: 1fr;
}
.article-categories {
  padding: 12px;
  border: 1px solid var(--line);
}
.article-categories label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-categories input[type="checkbox"] {
  width: auto;
}
.cover-picker details > label {
  margin-top: 10px;
}
@media (max-width: 980px) {
  .article-workspace {
    grid-template-columns: 1fr;
  }
}

.article-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.rich-editor .tiptap {
  height: clamp(240px, 42vh, 380px);
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
.article-category-picker {
  margin-block: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.article-category-picker summary, .article-preview summary {
  cursor: pointer;
  font-weight: 600;
}
.category-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.desk form .category-options label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.desk form .category-options input {
  width: auto;
}
.category-options label:has(input:checked) {
  background: #fff2f4;
  border-color: #a61930;
}
.article-preview-content, #english-review.panel {
  max-height: 65vh;
  overflow: auto;
  overflow-wrap: anywhere;
}
.article-preview-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}
[data-ttv-theme="dark"] .site-shell {
  color-scheme: dark;
  --ink: #edf1f5;
  --muted: #b7c0cb;
  --line: #39424d;
  --paper: #15191f;
  --surface: #212832;
  --red: #c6253c;
}
.site-shell .header--section { background: var(--paper); }
.site-shell .masthead { min-height: 66px; padding-block: 9px; }
.masthead-tools, .site-socials, .nav-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead-date { color: var(--muted); white-space: nowrap; font-size: .84rem; }
.site-socials { flex-wrap: wrap; gap: 7px 13px; font-size: .84rem; font-weight: 600; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex: none;
}
.theme-toggle > svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
}
.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.site-shell .navband.header--navbar { background: var(--paper); color: var(--ink); border-block: 1px solid var(--line); }
.nav-row { justify-content: space-between; }
.site-shell .navlinks a { color: var(--ink); padding: 9px 10px; }
.site-shell .navlinks a:hover, .site-shell .navlinks a:focus { background: var(--surface); }
.site-shell .searchbox input { background: var(--paper); color: var(--ink); width: min(145px, 20vw); }
.site-shell .searchbox button { color: var(--ink); }
.latest-strip { background: var(--red); color: white; }
.latest-inner { display: flex; align-items: center; min-height: 40px; gap: 12px; }
.latest-inner strong { flex: none; background: #20252d; padding: 5px 10px; border-radius: 3px; font-size: .85rem; }
.latest-viewport { flex: 1; min-width: 0; overflow: hidden; }
.latest-headline {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: white;
  animation: headline-slide 240ms ease-out;
}
.latest-headline:hover, .latest-headline:focus { color: white; text-decoration: underline; }
.latest-controls { display: flex; flex: none; gap: 2px; }
.latest-controls button { background: transparent; border: 0; color: white; min-width: 28px; min-height: 34px; }
@keyframes headline-slide {
  from { transform: translateX(18px); opacity: .45; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .latest-headline { animation: none; } }
[data-ttv-theme="dark"] .site-shell .site-brand img,
[data-ttv-theme="dark"] .site-shell .mobile-brand img,
[data-ttv-theme="dark"] .site-shell .footer-inner img {
  background: white;
  border-radius: 4px;
  padding: 3px;
  box-sizing: content-box;
}
[data-ttv-theme="dark"] .site-shell .skip:focus { background: var(--paper); }
@media (max-width: 800px) {
  .site-shell .mobile-header, .site-shell .mobile-menu-panel { background: var(--paper); }
  .site-shell .mobile-menu .searchbox input { width: auto; }
  .mobile-header-row > .theme-toggle { width: 44px; height: 44px; }
  .latest-inner { gap: 6px; }
  .latest-inner strong { padding-inline: 5px; font-size: .75rem; }
  .latest-headline { font-size: .85rem; }
  .latest-controls button { min-width: 24px; }
}

.site-socials { gap: 5px; }
.site-socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: inherit; }
.site-socials a:hover, .site-socials a:focus-visible { background: var(--surface); color: var(--red); }
.newsroom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.newsroom-main { min-width: 0; }
.newsroom-sidebar { min-width: 0; display: grid; gap: 18px; }
.home-rail { min-width: 0; display: grid; gap: 16px; }
.home-widget { border: 1px solid var(--line); background: var(--surface); padding: 12px; border-radius: 8px; }
.home-widget h2 { font-size: 1.125rem; line-height: 1.4; margin: 0 0 10px; padding-top: 7px; border-top: 2px solid var(--red); }
.home-widget p { font-size: .82rem; color: var(--muted); margin: 8px 0; }
.home-widget a { display: inline-block; font-size: .95rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.home-widget dl { display: grid; gap: 6px; font-size: .9rem; margin-block: 8px; }
.home-widget dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.home-widget dd { margin: 0; font-variant-numeric: tabular-nums; }
.temperature { font-size: 2rem; }
.home-widget iframe { display: block; border: 0; margin-bottom: 8px; width: 100%; }
.youtube-widget { aspect-ratio: 16 / 9; }
.facebook-widget { max-width: 260px; height: 400px; }
.ad-slot { display: grid; place-items: center; min-height: 145px; padding: 10px; border: 1px dashed var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .72rem; text-align: center; }
.ad-banner { min-height: 58px; margin: 18px 0 22px; }
.newsroom-lead .story-card .photo { aspect-ratio: 16 / 9; }
.newsroom-lead .card-copy { padding: 14px 0 0; }
.newsroom-lead .card-copy h3 { font-size: clamp(22px, 2.6vw, 37px); line-height: 1.24; }
.newsroom-feed .cards { display: block; }
.newsroom-feed .story-card { border-bottom: 1px solid var(--line); padding: 12px 0; }
.newsroom-feed .story-card > a { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); align-items: center; gap: 12px; }
.newsroom-feed .card-copy { padding: 0; }
@media (max-width: 950px) {
  .newsroom-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; }
}
@media (max-width: 700px) {
  .newsroom-layout { display: flex; flex-direction: column; gap: 18px; }
  .newsroom-layout > * { width: 100%; }
  .ad-banner { min-height: 60px; }
}

.lead-slide:not([hidden]) { animation: headline-slide 280ms ease-out; }
.lead-controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); }
.lead-controls button { min-width: 38px; min-height: 36px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); }
.lead-controls button[aria-pressed="true"] { border-color: var(--red); }
@media (prefers-reduced-motion: reduce) { .lead-slide:not([hidden]) { animation: none; } }

.ad-slot.ad-creative { padding: 0; border: 0; min-height: 0; overflow: hidden; }
.ad-creative a, .ad-creative img { width: 100%; display: block; }
.ad-creative img { height: auto; }
@media (max-width: 700px) { .newsroom-layout > .newsroom-sidebar { display: none; } }

/* Keep the inherited foreground and the footer surface in the same theme. */
.site-shell .footer--section.foot { background: var(--surface); color: var(--ink); }
.site-shell .foot a { color: var(--ink); }
.site-shell .foot a:hover, .site-shell .foot a:focus-visible { color: var(--ink); text-decoration: underline; }
.site-shell .foot a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.site-shell .foot small { color: var(--muted); }
.footer-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-credit a { text-decoration: underline; text-underline-offset: 2px; }

.facebook-video { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }

.editorial-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .28fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 34px);
}
.main:has(> .editorial-home) { width: min(1380px, calc(100% - 44px)); }
.editorial-front {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  grid-template-areas: "latest lead" "sections sections";
  align-items: start;
  gap: 20px 26px;
}
.editorial-lead { grid-area: lead; min-width: 0; }
.editorial-latest { grid-area: latest; min-width: 0; border-inline-end: 1px solid var(--line); padding-inline-end: 20px; }
.editorial-sections { grid-area: sections; min-width: 0; }
.editorial-lead > .section-heading, .editorial-latest > .section-heading {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
}
.editorial-lead > .section-heading::after, .editorial-latest > .section-heading::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--red);
  margin-bottom: -12px;
  margin-top: 9px;
}
.editorial-lead .photo { border-radius: 10px; background: var(--surface); }
.editorial-lead .lead-excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editorial-latest .cards { display: block; }
.editorial-latest .story-card { padding: 12px 0; }
.editorial-latest .story-card:first-child { padding-top: 0; }
.editorial-latest .story-card > a { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 10px; align-items: start; }
.editorial-latest .story-card .photo { aspect-ratio: 4 / 3; border-radius: 5px; }
.editorial-latest .card-copy { padding: 0; }
.editorial-latest .card-copy .category-label { display: none; }
.editorial-latest .card-copy h3 { font-size: 15px; line-height: 1.45; margin: 0 0 5px; }
.editorial-latest .card-copy time { font-size: 12px; }
.editorial-media .home-widget { background: var(--paper); }
.editorial-sections .ad-banner { margin-top: 0; }
@media (max-width: 1050px) {
  .editorial-front { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "latest" "sections"; }
  .editorial-latest { border: 0; padding: 0; }
}
@media (max-width: 700px) {
  .main:has(> .editorial-home) { width: calc(100% - 28px); }
  .editorial-home { display: block; }
  .editorial-media { display: none; }
  .editorial-lead .card-copy h3 { font-size: 24px; }
}

/* Public editorial typography. Sinhala glyphs use the bundled font. */
.site-shell {
  font-family: "Noto Sans Sinhala", Arial, "Iskoola Pota", sans-serif;
  line-height: 1.55;
}
.site-shell :is(h1, h2, h3) { font-weight: 700; }
.site-shell :is(.navlinks, .mobile-menu-panel) a { font-size: 15px; }
.site-shell .section-heading { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.45; }
.site-shell .editorial-latest .card-copy h3 { font-size: 16px; line-height: 1.5; }
.site-shell .newsroom-lead .card-copy h3 { font-size: clamp(25px, 2.7vw, 40px); line-height: 1.33; }
.site-shell .lead-excerpt { font-size: 16px; line-height: 1.75; }
.site-shell .home-widget h2 { font-size: 19px; line-height: 1.45; }
.site-shell :is(.story-card, .byline) time { font-size: 12px; font-variant-numeric: tabular-nums; }
.site-shell .reading h1 { line-height: 1.34; }
.site-shell .reading .standfirst { line-height: 1.7; }
.site-shell .reading :is(p, li) { line-height: 1.8; }
:lang(si) .site-shell .reading :is(p, li) { line-height: 1.9; }
@media (max-width: 700px) {
  .site-shell .newsroom-lead .card-copy h3 { font-size: clamp(23px, 6vw, 30px); }
}

.article-list-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.article-list-filters label { display: grid; gap: 4px; }
.article-row-action summary { cursor: pointer; white-space: nowrap; }
.article-row-action code { display: block; overflow-wrap: anywhere; min-width: 145px; }
.article-row-action form { min-width: 190px; }

.language-switcher { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.language-switcher a { white-space: nowrap; }
:lang(zh-Hans) .site-shell { font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
:lang(hi) .site-shell { font-family: "Noto Sans Devanagari", Mangal, "Kohinoor Devanagari", sans-serif; }
@media (max-width: 700px) { .language-switcher { font-size: .75rem; } }
