@font-face {
  font-family: 'Noto Sans Thai';
  src: url('assets/noto-sans-thai-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Sans Thai';
  src: url('assets/noto-sans-thai-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC;
}

:root {
  --rail: 1232px;
  --paper: #f7f8fc;
  --surface: #ffffff;
  --navy: #0c1430;
  --text: #121a35;
  --muted: #566078;
  --line: #e2e6ef;
  --blue: #2549e8;
  --blue-ink: #2441ce;
  --blue-soft: #e9eeff;
  --font: 'Noto Sans Thai', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

button { color: inherit; cursor: pointer; }

img { display: block; width: 100%; }

h1, h2, h3, p { margin: 0; }

[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #5574ff; outline-offset: 4px; }

.shell {
  width: min(var(--rail), calc(100% - 92px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  inset: 10px auto auto 10px;
  padding: 8px 13px;
  transform: translateY(-150%);
  background: white;
  color: var(--blue-ink);
}

.skip-link:focus { transform: translateY(0); }

.masthead {
  color: #f8faff;
  background: var(--navy);
}

.masthead-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  width: fit-content;
}

.brand-icon {
  display: inline-flex;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #3356ff;
  border: 1px solid #6281ff;
  border-radius: 9px;
  box-shadow: 0 3px 10px #182f9c55;
}

.brand-icon i {
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 1px;
}

.brand-icon i:nth-child(1) { translate: 0 2px; }
.brand-icon i:nth-child(2) { translate: 0 -2px; }
.brand-icon i:nth-child(3) { translate: 0 3px; }

.wordmark {
  font-size: 25px;
  letter-spacing: -.055em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark strong { font-weight: 800; }
.wordmark strong span { color: #90a7ff; }

.top-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  column-gap: clamp(13px, 1.9vw, 27px);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.top-nav a {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 42px;
  color: #bfc8e1;
  transition: color .2s ease;
}

.top-nav a:hover, .top-nav a[aria-current] { color: #fff; }

.top-nav a[aria-current]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #7993ff;
  content: '';
}

.utilities {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  width: clamp(135px, 15vw, 203px);
  min-height: 40px;
  border: 1px solid #374362;
  border-radius: 8px;
  background: #192442;
}

.search-form:focus-within { border-color: #8fa4ff; }
.search-form:focus-within .search-icon { color: #e8eeff; }

.search-submit {
  display: grid;
  place-content: center;
  flex: 0 0 39px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #b9c7ed;
  background: transparent;
}

.search-icon {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  margin-right: 3px;
  margin-bottom: 2px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  width: 6px;
  height: 1.5px;
  right: -5px;
  bottom: -2px;
  border-radius: 2px;
  background: currentColor;
  content: '';
  rotate: 47deg;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 4px 8px 4px 0;
  border: 0;
  outline: 0;
  color: #f5f7ff;
  background: transparent;
  font-size: 13px;
}

.search-form input::placeholder { color: #bac5e0; }

.saved-link, .bookmark-button {
  position: relative;
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #374362;
  border-radius: 8px;
  background: #192442;
  color: #d0dcff;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.saved-link:hover, .saved-link[aria-current] { background: #22356c; }

.bookmark-icon {
  --bookmark-cutout: #192442;
  position: relative;
  display: block;
  width: 14px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 71%,0 100%);
}

.bookmark-icon::before {
  position: absolute;
  inset: 1.5px;
  clip-path: polygon(0 0,100% 0,100% 95%,50% 65%,0 95%);
  background: var(--bookmark-cutout);
  content: '';
}

.saved-link:hover .bookmark-icon, .saved-link[aria-current] .bookmark-icon { --bookmark-cutout: #22356c; }

#saved-count {
  position: absolute;
  top: -8px;
  right: -7px;
  min-width: 19px;
  padding: 1px 4px;
  border: 1px solid var(--navy);
  border-radius: 12px;
  background: #a3b5ff;
  color: #0c1430;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.main { min-height: 56vh; }
.main:focus { outline: none; }

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-block: 36px 26px;
}

.intro h1, .listing-head h1 {
  font-size: clamp(41px, 4.8vw, 68px);
  font-weight: 800;
  line-height: 1.21;
  letter-spacing: -.035em;
}

.intro h1 span, .listing-head h1 span {
  margin-left: .05em;
  color: var(--blue);
}

.intro p, .listing-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 17px);
}

.issue-date {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
  padding: 7px 12px;
  border: 1px solid #dfe5f1;
  border-radius: 7px;
  background: #ffffffb3;
  color: #3e4765;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.calendar-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: var(--blue);
}

.calendar-icon::before {
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  border-top: 1.5px solid currentColor;
  content: '';
}

.calendar-icon::after {
  position: absolute;
  top: -3px;
  left: 3px;
  width: 1.5px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 5px 0 currentColor;
  content: '';
}












.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}



.category-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: none;
}

.theme-business { color: #714309; background: #fce8c1; }
.theme-ai { color: #333bad; background: #e4e6ff; }
.theme-gadgets { color: #0c6454; background: #d9f6ec; }
.theme-cybersecurity { color: #982e49; background: #ffe4eb; }
.theme-software { color: #25498e; background: #e9efff; }






.arrow-icon {
  display: inline-block;
  position: relative;
  width: .7em;
  aspect-ratio: 1;
  rotate: -45deg;
  vertical-align: -.04em;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.arrow-icon::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 0;
  width: 52%;
  aspect-ratio: 1;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  rotate: 45deg;
}

.arrow-right { rotate: 0deg; }

.latest { margin: 44px 0 65px; }

.section-head, .listing-bar {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(25px, 2.3vw, 33px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.03em;
}

.section-title::before {
  width: 5px;
  height: .82em;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--blue);
  content: '';
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.filters a, .outline-button {
  display: inline-flex;
  min-height: 38px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 5px 12px;
  border: 1px solid #dee4ef;
  border-radius: 7px;
  background: #fff;
  color: #404b67;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.filters a:hover, .outline-button:hover {
  border-color: #a6b6fa;
  background: #f0f3ff;
  color: var(--blue-ink);
}

.filters a[aria-current] {
  border-color: #294be7;
  background: #294be7;
  color: #fff;
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(238px, 24%);
  align-items: start;
  gap: 23px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 17px;
}

.news-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 5px #16245306;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  border-color: #c2cee9;
  box-shadow: 0 5px 17px #11215a0d;
}

.card-link { display: block; flex: 1; border-radius: 12px 12px 0 0; }

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 11px 11px 0 0;
  background: #e7eafb;
}

.card-image img { height: 100%; object-fit: cover; transition: transform .35s ease; }
.card-link:hover img { transform: scale(1.05); }

.card-content { padding: 13px 14px 8px; }

.article-meta { color: var(--muted); }

.card-content :is(h2, h3) {
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.014em;
  overflow-wrap: anywhere;
}

.card-link:hover :is(h2, h3) { color: var(--blue-ink); }

.card-content p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.card-bottom {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 13px 4px 14px;
}

.card-bottom a {
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 750;
}

.card-bottom a:hover { text-decoration: underline; }

.bookmark-button {
  border-color: #e2e8f4;
  background: #fff;
  color: #48598d;
}

.bookmark-button .bookmark-icon { --bookmark-cutout: #fff; }

.bookmark-button:hover {
  border-color: #a6b6fa;
  background: #f0f3ff;
  color: var(--blue-ink);
}

.bookmark-button:hover .bookmark-icon { --bookmark-cutout: #f0f3ff; }

.bookmark-button[aria-pressed="true"] {
  border-color: #c5d0ff;
  background: #e9eeff;
  color: var(--blue-ink);
}

.bookmark-button[aria-pressed="true"] .bookmark-icon::before { display: none; }

.all-stories { display: flex; justify-content: center; margin-top: 24px; }

.all-stories a, .empty-state a { padding-inline: 16px; color: var(--blue-ink); }

.watchlist {
  padding: 18px 17px 5px;
  border: 1px solid #dfe6f6;
  border-radius: 12px;
  background: #edf1ff;
}

.watchlist h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 13px;
  border-bottom: 1px solid #d5def9;
  font-size: 20px;
  line-height: 1.45;
}

.watch-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: 3px;
  border-radius: 50%;
  background: #3155ff;
  box-shadow: 0 0 0 3px #d8e2ff;
}

.watchlist ol { margin: 0; padding: 0; list-style: none; }
.watchlist li + li { border-top: 1px solid #d5def9; }

.watchlist li a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.watch-arrow {
  color: var(--blue-ink);
  font-size: 17px;
}

.watchlist li a:hover strong { color: var(--blue-ink); }

.watch-category {
  display: block;
  margin-bottom: 2px;
  color: var(--blue-ink);
  font-size: 11px;
  font-weight: 750;
}

.watchlist li strong {
  display: block;
  font-size: 14px;
  line-height: 1.52;
}

.footer {
  border-top: 1px solid #223250;
  background: var(--navy);
  color: #e9efff;
}

.footer-inner {
  display: flex;
  min-height: 138px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 26px;
}

.footer-brand .brand-icon { width: 31px; height: 31px; flex-basis: 31px; border-radius: 7px; }
.footer-brand .wordmark { font-size: 21px; }
.footer p { margin-top: 9px; color: #bcc6df; font-size: 13px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: #cbd3ec;
  font-size: 13px;
  font-weight: 650;
}

.footer-nav a:hover { color: white; text-decoration: underline; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a { color: var(--blue-ink); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

.listing { padding-block: 35px 68px; }
.listing-head { margin-bottom: 24px; }
.listing-bar { justify-content: space-between; }
.listing-bar p { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

.archive-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 730px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.archive-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.archive-controls select {
  width: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid #bac4db;
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 15px;
}

.archive-controls select:disabled { color: var(--muted); background: var(--paper); }
.archive-month + .archive-month { margin-top: 27px; }

.archive-month h2, .archive-issue-head h2 {
  font-size: clamp(19px, 3vw, 24px);
  line-height: 1.45;
}

.archive-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.archive-days a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 650;
}

.archive-days a:hover { border-color: #a1aff6; background: var(--blue-soft); }
.archive-days .arrow-icon { margin-inline-start: auto; color: var(--blue-ink); }

.archive-issue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.archive-issue-head p { color: var(--muted); white-space: nowrap; }
.archive-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }

.browse-grid { gap: 21px; }
.browse-grid :is(h2, h3) { font-size: 19px; }

.empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 560px;
  padding: 22px 24px;
  border: 1px solid #dfe6f6;
  border-radius: 12px;
  background: #fff;
}

.empty-state h2 { font-size: 21px; }
.empty-state p { color: var(--muted); }
.empty-state a { margin-top: 8px; }

.story {
  width: min(940px, 100%);
  margin: 0 auto;
  padding-top: 34px;
}

.story-header { max-width: 840px; }

.story-header h1 {
  margin-top: 13px;
  font-size: clamp(30px, 5vw, 55px);
  letter-spacing: -.029em;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.story-dek {
  margin-top: 13px;
  color: #414e6b;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.7;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 9px;
  padding-inline: 12px;
  font-size: 13px;
  font-weight: 650;
}

.story-image { margin: 25px 0 0; }

.story-image .story-visual {
  max-height: 530px;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  background: #e7eafb;
}

.story-image img { height: 100%; width: 100%; object-fit: contain; }
.story-image figcaption { margin-top: 7px; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
.story-image figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.photo-credit, .news-credit {
  display: block;
  margin-block: 5px 3px;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
[data-story-view="photo"] :is(.story-graphic, .graphic-credit),
[data-story-view="graphic"] :is([data-editorial-image], [data-original-credit]) { display: none; }

.story-visual { position: relative; container-type: inline-size; }
.story-graphic {
  --graphic-ink: #8ec5ff;
  --graphic-mid: #183c7c;
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: clamp(11px, 5cqw, 42px);
  color: #fff;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, #ffffff0e 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 23px, #ffffff0e 24px 25px),
    linear-gradient(var(--graphic-angle), #0d152b 20%, var(--graphic-mid));
}
.graphic-football { --graphic-ink: #b1ffca; --graphic-mid: #12543d; }
.graphic-running { --graphic-ink: #a6e9ff; --graphic-mid: #0d5263; }
.graphic-weather { --graphic-ink: #bae7ff; --graphic-mid: #0d5974; }
.graphic-science-space { --graphic-ink: #c9baff; --graphic-mid: #45337c; }
.graphic-gamestation { --graphic-ink: #e2b9ff; --graphic-mid: #46227a; }
.graphic-automotive { --graphic-ink: #ffd6a0; --graphic-mid: #684225; }
.story-graphic svg {
  position: absolute;
  z-index: -1;
  inset: 3% -3% auto auto;
  width: 61%;
  height: 95%;
  color: var(--graphic-ink);
  filter: drop-shadow(0 0 9px var(--graphic-ink));
  opacity: .48;
  transform: rotate(var(--graphic-tilt));
}
.story-graphic-text { min-width: 0; width: 82%; }
.story-graphic-text span {
  color: var(--graphic-ink);
  font-weight: 700;
  font-size: clamp(.75rem, 3.2cqw, 1.125rem);
}
.story-graphic-text strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(.875rem, 5cqw, 2.75rem);
  line-height: 1.35;
  text-shadow: 0 2px 8px #0d152b;
}
@container (max-width: 205px) {
  .story-graphic-text strong { display: none; }
  .story-graphic svg { inset: 0 12% auto auto; width: 75%; height: 82%; }
}

.story-body {
  max-width: 720px;
  margin: 29px auto 0;
  font-size: 17px;
  line-height: 1.9;
}

.story-body h2 { margin-bottom: 7px; font-size: 24px; line-height: 1.4; }
.story-body p + p { margin-top: 13px; }

.impact {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 9px 9px 0;
  background: #edf1ff;
}

.impact h2 { color: #263ca6; }
.sources { margin-top: 27px; }
.sources ul { margin: 0; padding-left: 22px; }
.sources a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

.related { margin-block: 43px 64px; }
.related .section-title { margin-bottom: 16px; }

.notice {
  position: fixed;
  z-index: 3;
  inset: auto 25px 25px auto;
  max-width: calc(100% - 50px);
  padding: 12px 18px;
  border: 1px solid #344a77;
  border-radius: 9px;
  background: #17264a;
  color: #fff;
  box-shadow: 0 4px 16px #111d4333;
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(9px);
  transition: transform .2s ease, opacity .2s ease;
}

.notice.visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .shell { width: calc(100% - 64px); }
  .masthead-inner { gap: 22px; }
  .top-nav { column-gap: 19px; }
  .news-grid.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0;
    padding-top: 12px;
  }
  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    row-gap: 0;
    column-gap: 25px;
    min-height: 46px;
    margin-top: 4px;
  }
  .search-form { width: clamp(135px, 30vw, 225px); }
}

@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .latest-layout { grid-template-columns: 1fr; }
  .watchlist { max-width: 460px; }
}

@media (max-width: 590px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { column-gap: 10px; }
  .brand { gap: 7px; }
  .wordmark { font-size: 21px; }
  .brand-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; }
  .utilities { gap: 6px; min-width: 0; }
  .search-form { width: clamp(96px, 28vw, 160px); }
  .search-submit { flex-basis: 29px; }
  .search-form input { font-size: 12px; }
  .saved-link { width: 34px; }
  .top-nav { width: 100%; justify-content: space-between; column-gap: 8px; font-size: 12px; }
  .intro { display: block; margin-block: 25px 17px; }
  .intro h1, .listing-head h1 { font-size: clamp(37px, 10vw, 48px); }
  .listing-with-topics .listing-head h1 {
    font-size: clamp(25px, 8.6vw, 48px);
    overflow-wrap: anywhere;
  }
  .intro p { margin-top: 5px; }
  .issue-date { margin: 11px 0 0; font-size: 11px; padding: 5px 8px; }
  .latest { margin: 29px 0 45px; }
  .section-head { flex-wrap: wrap; margin-bottom: 13px; gap: 8px 14px; }
  .filters { gap: 5px; }
  .filters a { min-height: 36px; padding-inline: 8px; font-size: 12px; }
  .latest-layout { gap: 20px; }
  .news-grid, .browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-content { padding-inline: 9px; }
  .card-content :is(h2, h3) { font-size: 15px; }
  .card-content p { font-size: 12px; }
  .article-meta { gap: 5px 7px; }
  .card-bottom { margin-inline: 9px; }
  .card-bottom a { font-size: 12px; }
  .watchlist { max-width: none; }
  .footer-inner { align-items: start; flex-direction: column; gap: 16px; }
  .footer-nav { gap: 8px 15px; }
  .listing { padding-block: 22px 45px; }
  .listing-bar { flex-wrap: wrap; }
  .archive-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .archive-controls label:last-child { grid-column: 1 / -1; }
  .story { padding-top: 24px; }
  .story-body { font-size: 16px; }
  .story-image .story-visual { border-radius: 11px; }
  .notice { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

@media (max-width: 520px) {
  .top-nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    padding-bottom: 2px;
  }
  .top-nav a { justify-self: start; min-height: 38px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .masthead-inner { column-gap: 8px; }
  .brand { gap: 6px; }
  .wordmark { font-size: 18px; }
  .brand-icon { width: 27px; height: 27px; flex-basis: 27px; }
  .search-form { width: 86px; }
  .search-submit { flex-basis: 25px; }
  .saved-link { width: 31px; }
  .top-nav { font-size: 11px; }
  .news-grid.home-grid, .browse-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Select an edition directly from the displayed date. */
.issue-date-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}
.issue-date-picker:hover { border-color: var(--blue); }
.issue-date-picker:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.issue-date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px;
}
.issue-date-picker input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.date-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.archive > .issue-date-picker { margin: 16px 0 24px; }

.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.hub-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.hub-tile { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #dfe5f1; border-radius: 14px; background: #fff; transition: border-color .2s, transform .2s; }
.hub-tile:hover { border-color: #3356ff; transform: translateY(-2px); }
.hub-logo { width: 60px; height: 60px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
.hub-tile strong { display: block; font-size: 16px; line-height: 1.5; }
.hub-tile small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hub-roundup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.hub-block { border: 1px solid #dfe5f1; border-radius: 16px; padding: 18px; background: #fff; }
.hub-block h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.hub-block h2 img { width: 44px; height: 44px; }
.hub-news { display: grid; gap: 12px; }
.hub-news .news-card { box-shadow: none; }
.hub-pending { color: var(--muted); padding: 24px 0; font-size: 16px; }
.listing-logo { width: 90px; height: 90px; object-fit: contain; border-radius: 18px; margin-bottom: 14px; }
.date-filters { margin-bottom: 24px; flex-wrap: wrap; }
.filters { flex-wrap: wrap; }
.theme-gamestation { color: #6b23ad; background: #f3e8ff; }
.theme-manchester-united, .theme-football-news { color: #a91430; background: #ffe8ee; }
.theme-running-news, .theme-running-knowledge { color: #08704a; background: #e4f8ed; }
.theme-weather { color: #0b5877; background: #e1f3fc; }
.theme-science-space { color: #523594; background: #eee8ff; }
.theme-automotive { color: #7a4115; background: #fff0df; }
.depth-badge { color: #354264; background: #e9eef9; }
.hub-symbol { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; }
.hub-symbol svg { width: 73%; height: 73%; }
.source-author { color: var(--muted); }
.ticker-credit .news-credit { margin: 4px 0 0; color: inherit; }
@media(max-width: 1120px) { .hub-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 680px) {
  .hub-roundup { grid-template-columns: 1fr; }
  .hub-nav { gap: 9px; } .hub-tile { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hub-tile small { font-size: 14px; } .hub-logo { width: 48px; height: 48px; }
  .top-nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; }
  .top-nav a { font-size: 14px; min-height: 42px; }
  .hub-news .news-card { min-width: 0; }
  .filters a { font-size: 14px; }
}
