/* Auto-Kart forum archive — matches www.auto-kart.com (navy #294796, ink #141b2a, Arial) */
:root {
  --navy: #294796;
  --navy-dark: #1f3878;
  --navy-deep: #18306a;
  --ink: #141b2a;
  --muted: #515866;
  --line: #e3e5ea;
  --soft: #f6f6f6;
  --card: #ffffff;
  --bg: #ffffff;
  --quote: #f3f5fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e8ee; --muted: #a2a8b6; --line: #2a3142; --soft: #161b26;
    --card: #1b2130; --bg: #11151e; --quote: #1f2738; --navy: #4f6fc4;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Arial, Helvetica, sans-serif; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }

/* top bar */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--muted); }

/* masthead */
.masthead .wrap { display: flex; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.logo img { display: block; width: 254px; height: auto; }
@media (prefers-color-scheme: dark) { .logo img { filter: brightness(0) invert(1); } }
.search { flex: 1; display: flex; max-width: 470px; margin-left: auto; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0; padding: 10px 14px; font: inherit; font-size: 14px; background: var(--card); color: var(--ink); }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 14px; cursor: pointer; font: inherit; font-weight: 700; }
.search button:hover { background: var(--navy-dark); }
.btn-store { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 18px; white-space: nowrap; }
.btn-store:hover { background: var(--navy-dark); text-decoration: none; }

/* main nav */
.mainnav { background: var(--navy); }
.mainnav .wrap { display: flex; overflow-x: auto; }
.mainnav a { color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 13px 16px; white-space: nowrap; letter-spacing: .02em; }
.mainnav a:hover, .mainnav a.on { background: var(--navy-deep); text-decoration: none; }
.mainnav .home { background: var(--navy-deep); display: flex; align-items: center; padding: 0 16px; }

main { padding-top: 26px; padding-bottom: 48px; }

/* section heading — the blue bar + bold title used on auto-kart.com */
.sec { font-size: 21px; margin: 28px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec span { border-left: 4px solid var(--navy); padding-left: 12px; }
.ptitle { font-size: 27px; line-height: 1.25; margin: 6px 0 8px; }
.ptitle small { font-size: 16px; color: var(--muted); font-weight: 400; }
.lead { color: var(--muted); margin: 0 0 8px; }

.hero { background: var(--soft); border-left: 4px solid var(--navy); padding: 22px 26px; margin-bottom: 8px; }
.hero h1 { margin: 0 0 6px; font-size: 27px; }
.hero p { margin: 0; color: var(--muted); max-width: 820px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } }

/* forum list */
.flist, .tlist, .latest, .simple { list-style: none; margin: 0; padding: 0; }
.frow, .trow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 230px; gap: 16px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-top: 0; }
.frow:first-child, .trow:first-child { border-top: 1px solid var(--line); }
.frow:nth-child(even), .trow:nth-child(even) { background: var(--soft); }
.frow h3, .trow h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.frow h3 a, .trow h3 a { color: var(--ink); }
.frow h3 a:hover, .trow h3 a:hover { color: var(--navy); }
.desc { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.subs { margin: 5px 0 0; font-size: 13px; }
.fstats, .tstats { font-size: 13px; color: var(--muted); text-align: right; }
.fstats b, .tstats b { color: var(--ink); }
.flast, .tlast { font-size: 13px; min-width: 0; }
.flast a:first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.flast span, .tlast span { display: block; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.badge { display: inline-block; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; vertical-align: 2px; }
@media (max-width: 720px) {
  .frow, .trow { grid-template-columns: 1fr; gap: 6px; }
  .fstats, .tstats { text-align: left; }
  .fstats br, .tstats br { display: none; }
  .fstats b, .tstats b { margin-left: 0; }
}

/* sidebar */
.side .sec { margin-top: 28px; }
.latest li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.latest a { font-weight: 700; color: var(--ink); display: block; line-height: 1.35; }
.latest a:hover { color: var(--navy); }
.latest span { font-size: 12px; color: var(--muted); }
.note { margin-top: 20px; background: var(--soft); padding: 16px; font-size: 14px; border-top: 3px solid var(--navy); }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; }
.crumbs a { color: var(--muted); }

/* pager */
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 7px 10px; border: 1px solid var(--line); font-size: 14px; background: var(--card); }
.pager .cur { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.pager .gap { border: 0; background: none; }
.pager a:hover { border-color: var(--navy); text-decoration: none; }

/* posts */
.thead { margin-bottom: 4px; }
.posts { display: flex; flex-direction: column; gap: 14px; }
.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); border: 1px solid var(--line); background: var(--card); scroll-margin-top: 12px; }
.post:target { outline: 2px solid var(--navy); }
.author { background: var(--soft); padding: 16px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); }
.aname { font-weight: 700; font-size: 15px; margin-top: 8px; word-break: break-word; }
.atitle { color: var(--navy); font-weight: 700; }
.pbody { padding: 14px 20px 18px; min-width: 0; }
.pmeta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.plink { color: var(--muted); }
.content { overflow-wrap: anywhere; }
.content p { margin: 0 0 .8em; }
.content img { vertical-align: middle; }
.content img.emo { width: auto; height: 1.2em; }
.content .citation { margin: 10px 0 0; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; }
.content .blockquote, .content blockquote { margin: 0 0 12px; background: var(--quote); border-left: 3px solid var(--navy); padding: 10px 14px; font-size: 15px; }
.content blockquote { margin: 10px 0; }
.content blockquote > .citation:first-child { margin: -10px -14px 10px; }
.content .citation + .blockquote { margin-top: 0; }
.content pre, .content .prettyprint { background: var(--soft); padding: 10px; overflow-x: auto; font-size: 13px; }
.content .video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; margin: 8px 0; }
.content .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 4px 8px; }
@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; }
  .author { display: flex; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .author > div { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
  .aname { margin: 0; }
  .ava.lg { width: 36px; height: 36px; font-size: 16px; }
  .pbody { padding: 12px 14px 14px; }
}
.closed { margin-top: 24px; padding: 14px 16px; background: var(--soft); font-size: 14px; color: var(--muted); }

/* avatars (initials) */
.ava { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: hsl(var(--h) 45% 42%); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.ava.lg { width: 64px; height: 64px; font-size: 26px; }
.ava.xl { width: 96px; height: 96px; font-size: 40px; }

/* profile */
.profile { display: flex; gap: 22px; align-items: center; background: var(--soft); padding: 22px; border-left: 4px solid var(--navy); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 6px 0 0; }
.facts dt { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 700; }
.simple li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.simple a { font-weight: 700; }
.simple span { display: block; font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; }

.search.big { max-width: 640px; margin: 10px 0 6px; }
.search.big button { padding: 0 22px; }

/* footer */
.foot { background: var(--soft); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { padding-top: 26px; padding-bottom: 26px; }
.foot strong { color: var(--ink); }
.foot p { margin: 0 0 8px; }

@media (max-width: 720px) {
  .masthead .wrap { flex-wrap: wrap; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .logo img { width: 180px; }
  .btn-store { margin-left: auto; padding: 9px 12px; font-size: 13px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .topbar .tb-right { display: none; }
  .ptitle, .hero h1 { font-size: 22px; }
  .hero { padding: 16px 18px; }
  .profile { flex-direction: column; align-items: flex-start; }
}
