:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-strong: #f7f8fa;
  --text: #15171b;
  --muted: #66707d;
  --line: #d9dee6;
  --brand: #005eb8;
  --brand-dark: #05080d;
  --accent: #e40f21;
  --accent-dark: #a90715;
  --silver: #c8d0da;
  --road: #080b10;
  --positive: #17724f;
  --warning: #b96a16;
  --shadow: 0 18px 42px rgba(7, 11, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(0, 94, 184, 0.08), rgba(242, 244, 247, 0) 330px),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(228, 15, 33, 0.55);
  background: rgba(5, 8, 13, 0.95);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 250px;
}

.brand img {
  flex: 0 0 auto;
  width: 250px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
}

.main-nav,
.header-actions,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: #eef3f8;
  font-weight: 700;
  font-size: 0.92rem;
}

.main-nav a:hover {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  padding-bottom: 14px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.mobile-menu a {
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.ghost-button,
.solid-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 800;
  font-size: 0.88rem;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.solid-button {
  background: linear-gradient(180deg, #ff1e33, var(--accent-dark));
  color: #fff;
}

.page-shell {
  padding-bottom: 42px;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.98), rgba(20, 26, 36, 0.94) 55%, rgba(0, 94, 184, 0.82)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0 18px, transparent 18px 36px);
  color: #fff;
}

.hero-band::before {
  position: absolute;
  left: -90px;
  top: 22px;
  width: 52%;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(228, 15, 33, 0.95), rgba(0, 94, 184, 0.78));
  clip-path: polygon(0 40%, 100% 0, 96% 100%, 4% 100%);
  content: "";
}

.hero-band::after {
  position: absolute;
  right: -70px;
  bottom: 0;
  width: 48%;
  height: 44px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 94, 184, 0.98) 35%, rgba(228, 15, 33, 0.98)),
    var(--road);
  clip-path: polygon(8% 18%, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: stretch;
  padding: 38px 0;
}

.hero-copy,
.site-card,
.post,
.sidebar-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.065));
  padding: 30px;
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.breadcrumb a {
  color: #fff;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 14px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill-green {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #ff2639, #b30816);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(2.05rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.thread-summary {
  max-width: 810px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
}

.thread-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thread-stats div {
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.105);
}

.thread-stats strong,
.thread-stats span {
  display: block;
}

.thread-stats strong {
  font-size: 1.35rem;
}

.thread-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.site-card h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.2rem;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  color: #27302f;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stars {
  color: var(--accent);
  letter-spacing: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
  padding-top: 28px;
}

.thread-column,
.reviews-list,
.sidebar {
  display: grid;
  gap: 14px;
}

.post {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  overflow: hidden;
  box-shadow: none;
}

.author-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 22px 14px;
  text-align: center;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef2f7, var(--silver));
  color: var(--road);
  font-weight: 800;
}

.author-block strong {
  font-size: 0.94rem;
}

.author-block span,
.author-block small {
  color: var(--muted);
  font-size: 0.78rem;
}

.post-body {
  padding: 22px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-body h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.post-body p {
  color: #3c4644;
}

.info-box {
  margin: 18px 0;
  border: 1px solid rgba(0, 94, 184, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 94, 184, 0.07), rgba(228, 15, 33, 0.035));
  padding: 14px;
}

.info-box strong {
  display: block;
  margin-bottom: 8px;
}

.info-box ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.info-box span {
  color: var(--muted);
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-actions a {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 12px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
}

.sidebar-panel {
  padding: 18px;
  box-shadow: none;
}

.sidebar-panel h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.snapshot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}

.snapshot-row span {
  color: var(--muted);
}

.snapshot-row strong {
  text-align: right;
}

.related-link {
  display: block;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  color: var(--brand);
  font-weight: 800;
}

.ride-panel {
  background: #f8fafc;
}

.muted-panel {
  background: #fff8f9;
}

.muted-panel p {
  margin-bottom: 0;
  color: #596361;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .site-card {
    align-items: center;
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
  }

}

@media (max-width: 680px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .topbar-inner {
    min-height: 68px;
    gap: 12px;
    padding: 8px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(250px, calc(100vw - 92px));
    height: 60px;
  }

  .mobile-menu nav {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 20px 0;
  }

  .hero-copy {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .thread-stats,
  .site-card,
  .post {
    grid-template-columns: 1fr;
  }

  .author-block {
    align-items: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .post-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
