body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #828282;
}
td {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #828282;
}
.subtext td {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 7pt;
  color: #828282;
}
a:link {
  color: #000000;
  text-decoration: none;
}
a:visited {
  color: #828282;
  text-decoration: none;
}
.title {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #828282;
  overflow: hidden;
}
.subtext {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 7pt;
  color: #828282;
}
.yclinks {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 8pt;
  color: #828282;
}
.pagetop {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #222222;
  line-height: 12px;
}
.comhead {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 8pt;
  color: #828282;
}
.hnname {
  margin-left: 1px;
  margin-right: 5px;
}
#main-content {
  width: 100%;
  overflow-x: clip;
}

#main-content > center {
  display: block;
  width: 100%;
}

#hnmain,
.hn-main-table {
  background-color: #f6f6ef;
}

/* Legacy centered table (unused on feed pages) */
.hn-main-table:not(.hn-main-table--nav):not(.hn-main-table--body) {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 796px) {
  .hn-main-table:not(.hn-main-table--nav):not(.hn-main-table--body) {
    width: 85%;
    min-width: 796px;
  }
}

.sbn-main {
  width: 100%;
  max-width: 100%;
  background-color: #f6f6ef;
}

.hn-main-table--nav {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.hn-main-table--body {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  text-align: left;
}

.sbn-page-matrix {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  background-color: #f6f6ef;
}

.sbn-page-matrix__center {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  padding: 0 6px 12px;
  text-align: left;
}

.sbn-page-matrix__rail {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  padding: 8px 4px 12px;
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 8px;
  align-self: flex-start;
  cursor: default;
}

.sbn-page-matrix__rail-mrect {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .sbn-page-matrix__rail {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .sbn-page-matrix__rail {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .sbn-page-matrix__center {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding-left: max(6px, env(safe-area-inset-left, 0px));
    padding-right: max(6px, env(safe-area-inset-right, 0px));
  }
}

.sbn-feed-column {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.sbn-feed-column .hn-story-table {
  width: 100%;
  margin: 0;
}

.hn-header-bar {
  background-color: #ff6600;
  padding: 0;
}

.hn-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav meta";
  align-items: center;
  gap: 6px 10px;
  padding: 4px 8px;
}

.hn-header__logo {
  grid-area: logo;
  flex-shrink: 0;
  line-height: 0;
}

.hn-header-logo {
  border: 1px white solid;
  display: block;
  width: 18px;
  height: 18px;
}

.hn-header__nav {
  grid-area: nav;
  min-width: 0;
}

.hn-header__nav-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  line-height: 1.35;
}

.hn-header__sitename {
  margin-right: 4px;
}

.hn-header__sitename--desktop {
  flex: 0 0 auto;
  align-self: center;
}

.hn-header__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  row-gap: 2px;
}

.hn-header__nav-sep--before-tabs {
  margin-left: 2px;
}

@media (min-width: 768px) {
  .hn-header__nav-scroll {
    align-items: baseline;
    row-gap: 0;
  }

  .hn-header__tabs .hn-header__nav-link.hn-header__tab {
    display: inline-block;
    margin: 1px 0;
    padding: 2px 4px;
    font-weight: normal;
    color: #000000;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    box-shadow: none;
  }

  .hn-header__tabs .hn-header__nav-link.hn-header__tab:hover {
    text-decoration: underline;
  }

  .hn-header__tabs .hn-header__nav-link.hn-header__tab.nav-active {
    padding: 2px 8px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.95);
    border-color: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
    text-decoration: none;
  }

  .hn-header__tabs .hn-header__nav-link.hn-header__tab.nav-active:hover {
    background: #ffffff;
    text-decoration: none;
  }

  .pagetop .hn-header__tabs .hn-header__nav-link.hn-header__tab:visited {
    color: #000000;
  }
}

.hn-header__nav-link {
  display: inline-block;
  padding: 2px 3px;
}

.hn-header__nav-item {
  display: inline-flex;
  align-items: center;
}

.hn-header__nav-sep {
  margin: 0 3px;
  color: #222222;
  user-select: none;
}

.hn-header__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.hn-header__brand {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hn-header__sitename--mobile {
  display: none;
  flex: 1;
  min-width: 0;
  margin: 0;
}

.hn-header__sitename--mobile a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hn-header__menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  min-height: 40px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  font-weight: bold;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.hn-header__menu-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

.hn-header__menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
  height: 14px;
}

.hn-header__menu-icon span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hn-header--menu-open .hn-header__menu-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hn-header--menu-open .hn-header__menu-icon span:nth-child(2) {
  opacity: 0;
}

.hn-header--menu-open .hn-header__menu-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hn-header__menu-label {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hn-header__drawer {
  display: none;
}

.hn-header__backdrop {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  z-index: 200;
}

.hn-header__panel {
  position: relative;
  z-index: 201;
  background: #f6f6ef;
  border-bottom: 3px solid #ff6600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  max-height: min(72vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hn-header__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e0e0d6;
  background: #ffffff;
}

.hn-header__panel-title {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  font-weight: bold;
  color: #222222;
}

.hn-header__panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  font-size: 22pt;
  line-height: 1;
  color: #222222;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hn-header__panel-close:hover {
  background: #f0f0ea;
}

.hn-header__panel-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 8px;
}

.hn-header__panel-list li {
  margin: 0;
  padding: 0;
}

.hn-header__panel-list .hn-header__nav-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 11pt;
  color: #000000;
  box-sizing: border-box;
}

.hn-header__panel-list .hn-header__nav-link.nav-active {
  font-weight: bold;
  background: #ffffff;
  border-left: 4px solid #ff6600;
  padding-left: 12px;
}

.hn-header__panel-list .hn-header__nav-link:active {
  background: #ecece4;
}

.hn-header__panel-live {
  margin: 0;
  padding: 10px 16px 14px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9pt;
  color: #5a5a5a;
  border-top: 1px solid #e0e0d6;
}

.hn-header__panel-live-hint {
  color: #828282;
}

body.hn-mobile-nav-open {
  overflow: hidden;
}

.hn-footer-bar {
  background-color: #ff6600;
}

.hn-gap-row {
  height: 10px;
}

.row-spacer-5 {
  height: 5px;
}

.hn-story-table {
  width: 100%;
}

.lang-toggle {
  font-size: 8pt;
  color: #ffffff;
  margin-right: 6px;
}

.lang-toggle__btn {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 8pt;
  font-weight: bold;
  color: #ffffff;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.lang-toggle__btn--active {
  text-decoration: none;
  opacity: 1;
}

.lang-toggle__btn:not(.lang-toggle__btn--active) {
  opacity: 0.75;
}

.client-status__btn {
  font-family: Verdana, Geneva, sans-serif;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
}

.client-status.muted .client-status__btn {
  font-size: 8pt;
}
.title a {
  word-break: break-word;
}
.subtext a:link,
.subtext a:visited {
  color: #828282;
}
.subtext a:hover {
  text-decoration: underline;
}
.comhead a:hover {
  text-decoration: underline;
}
.pagetop a:visited {
  color: #000000;
}
.votearrow {
  width: 10px;
  height: 10px;
  border: 0;
  margin: 3px 2px 6px;
  background: url("/triangle.svg"), linear-gradient(transparent, transparent) no-repeat;
  background-size: 10px;
}
.votelinks {
  min-width: 18px;
}
.client-status {
  padding: 8px;
  text-align: center;
  font-size: 9pt;
}
.client-status--error {
  color: #af0000;
}
.morelink {
  text-decoration: underline;
}
.morespace {
  height: 10px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px 1px;
  border-radius: 50%;
  background: #5fba7d;
  vertical-align: middle;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.live-badge {
  color: #5a5a5a;
}
.header-clock {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9pt;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pagetop .nav-active {
  font-weight: bold;
}
.client-status.muted {
  font-size: 8pt;
  color: #828282;
}
.pagetop .nav-categories {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
}

@media only screen and (max-width: 767px) {
  body {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  #hnmain,
  .hn-main-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hn-header {
    position: relative;
    z-index: 30;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo brand meta";
    gap: 8px;
    padding: 8px 10px;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .hn-header__logo {
    grid-area: logo;
  }

  .hn-header__brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .hn-header__sitename--mobile {
    display: block;
  }

  .hn-header__sitename--desktop {
    display: none;
  }

  .hn-header__nav--desktop {
    display: none;
  }

  .hn-header__menu-btn {
    display: inline-flex;
  }

  .hn-header__drawer.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
  }

  .hn-header__backdrop {
    touch-action: manipulation;
  }

  .hn-header__nav-link,
  .hn-header__menu-btn,
  .hn-header__logo {
    touch-action: manipulation;
  }

  .pagetop {
    font-size: 11pt;
    line-height: 1.35;
  }

  .hnname {
    font-size: 11pt;
  }

  .lang-toggle__select {
    font-size: 9pt;
    max-width: 9em;
    min-height: 32px;
    padding: 4px 6px;
  }

  .header-clock {
    font-size: 8pt;
  }

  .title {
    font-size: 11pt;
    line-height: 14pt;
  }

  .subtext {
    font-size: 9pt;
  }

  .hn-story-table .votelinks {
    padding-top: 2px;
  }

  .sbn-page-header {
    padding-left: 4px;
    padding-right: 4px;
  }

  .sbn-page-heading {
    font-size: 12pt;
  }

  .sbn-legal-doc {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .sbn-footer-compliance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    padding: 0 12px;
    font-size: 9pt;
  }

  .sbn-footer-compliance__sep {
    display: none;
  }

  .sbn-footer-compliance a {
    padding: 6px 4px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .sbn-empty-category {
    margin-left: 8px;
    margin-right: 8px;
  }

  .client-status {
    padding: 12px 10px;
    font-size: 10pt;
  }

  .client-status__btn {
    min-height: 36px;
    padding: 6px 8px;
  }

  .morelink {
    display: inline-block;
    padding: 8px 4px;
    min-height: 36px;
  }

  #bigbox > td {
    padding-left: 4px;
    padding-right: 4px;
  }

  .hn-gap-row {
    height: 6px;
  }
}

button.morelink {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
}

button.morelink:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media only screen and (min-width: 768px) and (max-width: 900px) {
  .hn-header__tabs {
    row-gap: 4px;
  }
}

/* SEO semantic headings (preserve HN visual scale) */
.sbn-page-header {
  margin: 0 0 8px;
  padding: 4px 0 2px;
  text-align: left;
}

.sbn-page-heading {
  margin: 0 0 4px;
  font-size: 11pt;
  font-weight: 700;
  color: #222222;
  line-height: 1.3;
}

.sbn-page-heading--context {
  font-weight: 600;
}

.sbn-section-heading {
  margin: 0;
  font-size: 9pt;
  font-weight: 600;
  color: #828282;
  text-transform: none;
}

h1.sbn-story__headline,
h3.sbn-story__headline,
h4.sbn-story__headline {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: inline;
}

h1.sbn-story__headline a,
h3.sbn-story__headline a,
h4.sbn-story__headline a {
  font-weight: inherit;
}

.sbn-empty .client-status {
  margin-top: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-toggle--select {
  display: inline-block;
}

.lang-toggle__select {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 8pt;
  color: #000000;
  background: #f6f6ef;
  border: 1px solid #828282;
  padding: 1px 2px;
  max-width: 11em;
}

.sbn-story__headline h4 {
  font-size: inherit;
}

/* Adsterra slots inside HN table */
.sbn-ad-row__cell {
  padding: 4px 0 8px;
  vertical-align: top;
  max-width: 100%;
  overflow-x: hidden;
}

.sbn-ad-feed-zone,
.sbn-ad-header-zone {
  max-width: 100%;
  overflow-x: hidden;
}

.sbn-smartlink-cta a {
  text-decoration: none;
}

.sbn-header-ad-row__cell {
  padding: 0;
  vertical-align: top;
  background: transparent;
  border: none;
}

.sbn-header-ad-row__cell .sbn-ad-header-zone {
  background: #f6f6ef;
}

.sbn-mobile-footer-ad-row__cell {
  padding: 0;
  vertical-align: top;
  background: #f6f6ef;
}

/* In-feed ads: desktop only (mobile uses header 320×50 + footer 300×250) */
@media (max-width: 767px) {
  .sbn-ad-row--in-feed {
    display: none;
  }
}

.sbn-native-feed-ad,
.sbn-native-feed-ad__mount {
  font: inherit;
  font-size: inherit;
  line-height: 1.35;
  color: #828282;
}

[data-sbn-popunder-rail] {
  cursor: default;
}

.sbn-rail-ad {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.sbn-ad-skeleton {
  background-color: #eceae4;
  border: 1px solid #e0ddd4;
  border-radius: 2px;
}

.sbn-ad-skeleton:not(.opacity-0) {
  animation: sbn-ad-pulse 1.4s ease-in-out infinite;
}

@keyframes sbn-ad-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Crawler / no-JS shell (removed when React mounts) */
.sbn-static-crawl {
  max-width: 796px;
  margin: 12px auto;
  padding: 8px 10px;
  background-color: #f6f6ef;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #828282;
  text-align: left;
}

.sbn-static-crawl__title {
  margin: 0 0 8px;
  font-size: 13pt;
  color: #222222;
}

.sbn-static-crawl__lead {
  margin: 0 0 10px;
  line-height: 1.45;
}

.sbn-static-crawl__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.sbn-static-crawl__nav a,
.sbn-static-crawl__locales a {
  color: #000000;
  text-decoration: underline;
}

.sbn-static-crawl__locales {
  margin: 0 0 10px;
  padding-left: 20px;
}

.sbn-static-crawl__hint,
.sbn-static-crawl__loading {
  margin: 0;
  font-size: 9pt;
}

.sbn-static-crawl__legal {
  margin: 10px 0 0;
  font-size: 9pt;
}

.sbn-static-crawl__legal a {
  color: #000000;
  text-decoration: underline;
}

/* Footer compliance links */
.sbn-footer-compliance {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 8pt;
  line-height: 1.5;
}

.sbn-footer-compliance a {
  color: #828282;
  text-decoration: underline;
}

.sbn-footer-compliance a:hover {
  color: #000000;
}

.sbn-footer-compliance__sep {
  color: #828282;
}

/* Statutory / compliance pages */
.sbn-legal-page {
  text-align: left;
}

.sbn-legal-doc {
  max-width: 52em;
  margin: 0 auto;
  padding: 12px 10px 24px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  color: #222222;
  line-height: 1.55;
}

.sbn-legal-doc__header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0d6;
}

.sbn-legal-doc__title {
  margin: 0 0 6px;
  font-size: 14pt;
  color: #000000;
}

.sbn-legal-doc__meta {
  margin: 0;
  font-size: 9pt;
  color: #828282;
}

.sbn-legal-doc h2 {
  margin: 20px 0 8px;
  font-size: 11pt;
  color: #000000;
}

.sbn-legal-doc h3 {
  margin: 14px 0 6px;
  font-size: 10pt;
  color: #222222;
}

.sbn-legal-doc p,
.sbn-legal-doc li {
  margin: 0 0 10px;
  color: #222222;
}

.sbn-legal-doc ul,
.sbn-legal-doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.sbn-legal-doc a {
  color: #000000;
  text-decoration: underline;
}

.sbn-legal-doc__back {
  margin-top: 20px;
  font-size: 9pt;
}

.sbn-legal-doc__back a {
  color: #828282;
}

.sbn-legal-contact-block {
  margin: 16px 0;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e0e0d6;
}

.sbn-legal-contact-dl {
  margin: 8px 0 0;
}

.sbn-legal-contact-dl dt {
  font-weight: bold;
  margin: 8px 0 2px;
  color: #000000;
}

.sbn-legal-contact-dl dd {
  margin: 0 0 6px;
  color: #222222;
}

/* Empty category state */
.sbn-empty-category {
  max-width: 52em;
  margin: 16px auto 24px;
  padding: 14px 16px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e0e0d6;
  font-family: Verdana, Geneva, sans-serif;
}

.sbn-empty-category__title {
  margin: 0 0 8px;
  font-size: 11pt;
  color: #000000;
}

.sbn-empty-category__message {
  margin: 0 0 12px;
  font-size: 10pt;
  color: #828282;
  line-height: 1.5;
}

.sbn-empty-category .morelink {
  font-size: 9pt;
}

.sbn-source-badge .sitestr,
.sbn-category-badge {
  font-weight: 600;
}

.sbn-category-badge {
  margin-left: 4px;
}
