/* Truckers World - website styles (v2).
   Layout: navy header + full-width truck banner, then a light page of white cards; gold from the TW logo. */
:root {
  color-scheme: light;
  --navy: #121a26;
  --navy-2: #1c2636;
  --page: #f2f4f7;
  --card: #ffffff;
  --ink: #18212d;
  --muted: #5d6a79;
  --line: #dfe4ea;
  --gold: #f5b50a;
  --gold-ink: #7a5600;
  --gold-soft: #fff4d1;
  --red: #d63a3a;
  --red-soft: #fdecec;
  --green: #17975a;
  --green-soft: #e6f6ee;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .05);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  --head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--gold-ink); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 70ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header */
.site-head { background: var(--navy); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-head .wrap { display: flex; align-items: center; gap: 30px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 800 1.2rem/1 var(--head); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand small { display: block; font: 600 .72rem var(--body); color: var(--gold); letter-spacing: .04em; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: #d7deea; font: 600 .98rem var(--body); padding: 8px 12px; border-radius: var(--r-s); }
.nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: var(--navy-2); box-shadow: inset 0 -2px 0 var(--gold); }
.head-right { display: flex; align-items: center; gap: 14px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 .9rem var(--body); color: #b9c3d2; }
.status-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6b7686; }
.status-chip.on { color: #fff; }
.status-chip.on::before { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--body); padding: 13px 22px; border-radius: var(--r-s); background: var(--gold); color: #1f1600; }
.btn:hover { text-decoration: none; background: #ffc531; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn.outline { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.btn.outline:hover { background: rgba(255,255,255,.16); }
.btn.light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.light:hover { background: var(--page); }
.btn.small { padding: 9px 14px; font-size: .92rem; }

/* ---------- hero banner */
.hero { position: relative; color: #fff; background: var(--navy) url("../img/hero.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,15,24,.92) 0%, rgba(10,15,24,.72) 45%, rgba(10,15,24,.15) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; padding-block: 72px 88px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 14ch; }
.hero p { color: #d6dde8; font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.server-card { background: rgba(255,255,255,.97); color: var(--ink); border-radius: var(--r-l); padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.server-card h2 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem var(--body); padding: 4px 10px; border-radius: 99px; }
.pill.on { background: var(--green-soft); color: var(--green); }
.pill.off { background: var(--red-soft); color: var(--red); }
.server-card .big { font: 800 2.6rem/1 var(--head); letter-spacing: -.02em; }
.server-card .addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--page); border: 1px solid var(--line);
  border-radius: var(--r-s); padding: 10px 12px; margin-top: 16px; font-weight: 600; }
.server-card .addr code { font: 600 .98rem var(--body); overflow-wrap: anywhere; }
.copy { background: none; border: 0; cursor: pointer; color: var(--gold-ink); font: 700 .88rem var(--body); padding: 2px 4px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; } }

/* ---------- stat strip overlapping the banner */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 46px; height: 46px; border-radius: var(--r-m); background: var(--gold-soft); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.stat .ico .icon { width: 24px; height: 24px; }
.stat b { display: block; font: 800 1.6rem/1.1 var(--head); letter-spacing: -.01em; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }

/* ---------- sections and cards */
.section { padding-block: 56px 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.grid-2 > *, .grid-3 > * { min-width: 0; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: var(--r-m); background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico .icon { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; }

.news-card { display: flex; flex-direction: column; overflow: hidden; }
.news-card .top { height: 6px; background: var(--gold); }
.news-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card h3 { margin: 0; }
.news-card h3 a { color: var(--ink); }
.news-card p { color: var(--muted); margin: 0; flex: 1; }
.date { font: 600 .85rem var(--body); color: var(--muted); }

/* rows of drivers */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .name { color: var(--ink); font-weight: 700; }
.card-title { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.15rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; object-fit: cover; background: #e7ebf0; color: var(--muted);
  display: inline-grid; place-items: center; font: 800 1rem var(--head); }
.avatar.lg { width: 120px; height: 120px; font-size: 2.8rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.role-pill { display: inline-flex; align-items: center; gap: 7px; font: 700 .84rem var(--body); padding: 4px 11px 4px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--rc) 14%, white); color: color-mix(in srgb, var(--rc) 70%, black); white-space: nowrap; }
.role-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.empty { color: var(--muted); padding: 22px; margin: 0; }

/* ---------- page header band (inner pages) */
.page-band { background: var(--navy); color: #fff; padding-block: 44px 64px; }
.page-band h1 { color: #fff; margin-bottom: 8px; }
.page-band p { color: #c9d2df; margin: 0; }
.page-body { margin-top: -36px; position: relative; padding-bottom: 20px; }
.search { display: flex; gap: 10px; max-width: 560px; margin-top: 20px; }
input[type=text], input[type=search], textarea { width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font: inherit; padding: 12px 14px; border-radius: var(--r-s); }
.page-band input[type=search] { border-color: transparent; }
textarea { min-height: 160px; resize: vertical; }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th { text-align: left; font: 700 .82rem var(--body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 12px 20px; background: #f7f9fb; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.state { font: 700 .8rem var(--body); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.state.active { background: var(--red-soft); color: var(--red); }
.state.expired { background: #eef1f4; color: var(--muted); }
.state.lifted { background: var(--green-soft); color: var(--green); }
.pager { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- profile */
.profile-band { background: var(--navy) url("../img/hero.jpg") center 70% / cover; position: relative; height: 190px; }
.profile-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,24,.35), rgba(10,15,24,.85)); }
.profile-card { margin-top: -72px; position: relative; padding: 0 26px 24px; }
.profile-top { display: flex; gap: 22px; align-items: end; flex-wrap: wrap; }
.profile-top .avatar.lg { margin-top: -44px; }
.profile-top h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.profile-top .who { flex: 1; min-width: 220px; padding-top: 16px; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font: 700 .9rem var(--body); margin-left: 10px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 22px 0 0; }
.facts div { background: var(--page); border-radius: var(--r-s); padding: 12px 16px; }
.facts dt { font: 600 .85rem var(--body); color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 800 1.25rem var(--head); }
.ban-now { display: flex; gap: 16px; align-items: start; border: 1px solid #f3c2c2; background: var(--red-soft); border-radius: var(--r-m); padding: 18px 22px; }
.ban-now .icon { color: var(--red); width: 28px; height: 28px; margin-top: 2px; }
.ban-now h2 { color: #a32121; font-size: 1.3rem; margin-bottom: 4px; }
.ban-now p { margin: 0 0 2px; }
.clean { display: flex; gap: 12px; align-items: center; border: 1px solid #bfe6d0; background: var(--green-soft); border-radius: var(--r-m); padding: 14px 20px; font-weight: 700; color: #0f6e41; }
.stack { display: grid; gap: 22px; margin-top: 22px; }

/* ---------- staff */
.team { overflow: hidden; }
.team .card-title { border-top: 4px solid var(--team); }
.team .card-title h2 { font-size: 1.25rem; }
.roles { padding: 6px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 26px; }
.role-group h3 { font: 700 .95rem var(--body); margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.role-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--rc); }
.person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-s); color: var(--ink); }
.person:hover { background: var(--page); text-decoration: none; }
.person span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- long text */
.prose { max-width: 820px; }
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .7em; }
.prose h2 { margin-top: 1.2em; font-size: 1.35rem; }
.panel form { display: grid; gap: 12px; }

/* ---------- footer */
.site-foot { background: var(--navy); color: #aab4c3; margin-top: 70px; padding-block: 40px 44px; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.site-foot a { color: #d7deea; font-weight: 500; display: block; padding: 3px 0; }
.site-foot .brand { margin-bottom: 12px; }
.site-foot form { margin-top: 10px; }
@media (max-width: 760px) {
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-head .wrap { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .nav { order: 3; flex-basis: 100%; margin-inline: -12px; }
  .head-right { margin-left: auto; }
  .status-chip { display: none; }
  .rows li, td, th { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
