/* Keep the desktop menu stable while the posts column uses all remaining viewport width. */
#root .tpn-web-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; width: 100%; max-width: none; min-height: 100dvh; padding: 0 16px; margin: 0; background: #f3f5f7; color: #14232e; }
.tpn-web-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; position: sticky; top: 0; z-index: 30; background: #fff; margin: 0 -16px; padding: 0 20px; border-bottom: 1px solid #e2e6eb; }
.tpn-web-brand { display: flex; align-items: center; gap: 10px; color: #111e2a; text-decoration: none; min-width: 0; white-space: nowrap; font: 750 25px/1.3 Arial, sans-serif; letter-spacing: 0; }
.tpn-web-brand img { object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.tpn-web-brand strong { color: #d60000; }
.tpn-web-account { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 220px; border: 1px solid #e0e4e9; background: #f6f7f9; color: #17252f; padding: 8px 12px; border-radius: 6px; font: 600 14px/1.3 Arial, sans-serif; cursor: pointer; }
.tpn-web-account img { flex-shrink: 0; object-fit: cover; border-radius: 50%; }
.tpn-web-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpn-web-sidebar { grid-column: 1; grid-row: 2; position: sticky; top: 96px; padding: 12px 0 20px; max-height: calc(100dvh - 96px); overflow-y: auto; }
.tpn-web-menu { display: grid; gap: 6px; }
.tpn-web-menu-link { min-width: 0; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 14px; border: 0; border-radius: 6px; background: transparent; color: #3c4955; text-decoration: none; text-align: left; font: 600 15px/1.4 Arial, sans-serif; letter-spacing: 0; cursor: pointer; }
.tpn-web-menu-link img { flex-shrink: 0; opacity: .8; }
.tpn-web-menu-link:hover { background: #e9edf1; }
.tpn-web-menu-link[aria-current="page"] { background: #fff; color: #c80000; box-shadow: inset 3px 0 #d60000; }
.tpn-web-menu-link[aria-current="page"] img { filter: invert(14%) sepia(96%) saturate(6642%) hue-rotate(358deg) brightness(86%) contrast(117%); opacity: 1; }
.tpn-web-sidebar-extra { border-top: 1px solid #dce2e7; padding-top: 14px; margin-top: 24px; }
.tpn-web-get-app { margin-top: 8px; }
.tpn-web-get-app small { display: block; margin-top: 3px; font-size: 12px; color: #76818b; font-weight: 400; }
.tpn-web-sidebar-footer { display: flex; flex-wrap: wrap; gap: 18px; padding: 24px 14px 0; font: 12px/1.4 Arial, sans-serif; }
.tpn-web-sidebar-footer a { color: #64727d; text-decoration: none; }
.tpn-web-main { grid-column: 2; grid-row: 2; min-width: 0; padding-top: 16px; }
/* Keep RN scrolling containers shrinkable inside the grid and avoid nested fixed-height panes. */
.tpn-web-main > div { min-width: 0; }
.tpn-web-main > div > div { min-width: 0; }
.tpn-web-main [data-tpn-news-card="true"] { box-shadow: none; border-color: #dfe4e9; border-radius: 8px; }
.tpn-web-news-title { color: inherit; text-decoration: none; display: block; }
.tpn-web-news-title:hover { text-decoration: underline; text-decoration-color: #9c1928; }
.tpn-web-feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 4px; }
.tpn-web-feed-heading h1 { margin: 0; font: 700 22px/1.3 Arial, sans-serif; color: #16232f; }
.tpn-web-refresh { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #dfe4e9; border-radius: 6px; background: #fff; cursor: pointer; }
.tpn-web-refresh:hover { background: #edf1f5; }
.tpn-web-refresh:disabled { opacity: .45; cursor: default; }
.tpn-web-mobile-label { display: none; }
.tpn-web-shell :is(button,a):focus-visible { outline: 3px solid #1367bc; outline-offset: 3px; }
.tpn-web-shell .tpn-location-trigger { margin: 0; }
/* Stable SVG icons replace the legacy text glyphs, with shrinkable columns on small phones. */
.tpn-news-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 18px; padding: 14px 0; border-bottom: 1px solid #e2e6eb; font-family: Arial, sans-serif; }
.tpn-news-metrics > div { min-width: 0; text-align: center; padding: 0 4px; }
.tpn-news-metrics > div + div { border-left: 1px solid #e2e6eb; }
.tpn-news-metrics dt { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: #65717c; font-size: 12px; line-height: 1.4; }
.tpn-news-metrics dt img { width: 18px; height: 18px; flex-shrink: 0; opacity: .75; }
.tpn-news-metrics dd { margin: 8px 0 0; color: #17252f; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.tpn-news-verdict { margin: 16px 16px 0; padding: 16px; border: 1px solid #dfe4e9; border-radius: 8px; background: #fff; font: 14px/1.5 Arial, sans-serif; }
.tpn-news-verdict-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tpn-news-verdict-heading h2 { margin: 0; color: #17252f; font-size: 16px; line-height: 1.4; }
.tpn-news-verdict-heading > span { color: #65717c; font-size: 12px; }
.tpn-news-verdict p { margin: 10px 0 0; color: #586572; }
.tpn-news-verdict p[data-tone="real"] { color: #087b59; }
.tpn-news-verdict p[data-tone="fake"] { color: #bd2544; }
.tpn-news-vote-bar { display: flex; height: 8px; margin-top: 14px; overflow: hidden; border-radius: 4px; background: #e35670; }
.tpn-news-vote-bar > span { height: 100%; background: #06976c; }
.tpn-news-vote-counts { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12px; color: #65717c; }
/* Phone navigation stays thumb-reachable; all stories retain the full available width. */
@media (max-width: 767px) {
  #root .tpn-web-shell { display: block; padding: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tpn-web-header { height: 68px; padding: 0 12px; margin: 0; gap: 8px; }
  .tpn-web-brand { gap: 7px; font-size: 20px; }
  .tpn-web-brand > img { width: 36px; height: 36px; }
  .tpn-web-account { padding: 8px; max-width: 104px; font-size: 13px; }
  .tpn-web-account img { width: 20px; height: 20px; }
  .tpn-web-sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; max-height: none; z-index: 35; padding: 0 8px env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid #e0e5ea; overflow: visible; }
  .tpn-web-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .tpn-web-menu-link { flex-direction: column; justify-content: center; gap: 5px; min-height: 68px; padding: 9px 3px; font-size: 12px; text-align: center; border-radius: 0; }
  .tpn-web-menu-link[aria-current="page"] { box-shadow: inset 0 3px #d60000; background: #fff; }
  .tpn-web-sidebar-extra, .tpn-web-desktop-label { display: none; }
  .tpn-web-mobile-label { display: inline; }
  .tpn-web-main { padding-top: 4px; }
  .tpn-web-feed-heading h1 { font-size: 20px; }
  .tpn-app-promo { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) {
  .tpn-web-brand { font-size: 18px; gap: 5px; }
  .tpn-web-brand > img { width: 30px; height: 30px; }
  .tpn-web-account { max-width: 80px; gap: 5px; }
}
