/* ═══════════════════════════════════════════════
   HAULPOINT — Design System v1.0
   Trucking Trade Publication
═══════════════════════════════════════════════ */

/* Self-hosted fonts are enqueued from assets/css/fonts.css. */

/* ── Variables ── */
:root {
  --c-dark:    #1A2332;
  --c-accent:  #c93820;
  --c-accent-dk: #a92f1a;
  --c-amber:   #F5A623;
  --c-bg:      #FAFAF7;
  --c-surface: #FFFFFF;
  --c-border:  #E5E5E0;
  --c-muted:   #6B6B66;
  --c-text:    #1A2332;

  --f-display: 'Inter', system-ui, sans-serif;
  --f-body:    'Source Serif 4', Georgia, serif;
  --f-ui:      'Inter', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'Courier New', monospace;

  --nav-h:      60px;
  --max-w:      1240px;
  --gap:        24px;
  --section-v:  64px;
  --radius:     8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--c-amber);
  outline-offset: 3px;
}

/* ── Accessible hiding + skip link ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.screen-reader-text.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 12px 20px;
  left: 16px;
  top: 12px;
  z-index: 100000;
  display: inline-block;
  background: var(--c-dark);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════
   NAVIGATION
══════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--c-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.6px;
  color: #fff;
  text-transform: lowercase;
  flex-shrink: 0;
  margin-right: 32px;
}
.nav-logo .accent { color: var(--c-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  padding: 7px 13px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.09); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  transition: color .15s, background .15s;
}
.nav-search:hover { color: #fff; background: rgba(255,255,255,0.09); }
.nav-search svg { width: 17px; height: 17px; }
.nav-cta {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  background: var(--c-accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
  transition: background .15s;
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--c-accent-dk); color: #fff; }

/* ══════════════════════════════
   TICKER
══════════════════════════════ */
.ticker-bar {
  background: var(--c-accent);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-label {
  font-family: var(--f-ui);
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0,0,0,0.22);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 7px;
}
.ticker-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; flex-shrink: 0; }
.ticker-text {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  padding: 0 24px;
  transition: opacity .3s;
  white-space: nowrap;
}

/* ══════════════════════════════
   SECTION HEADER
══════════════════════════════ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--c-dark);
}
.section-head h2 {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-dark);
}
.section-head .sh-sub {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--c-muted);
}
.section-head a {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
  margin-left: auto;
}
.section-head a:hover { text-decoration: underline; }

/* ══════════════════════════════
   CATEGORY TAGS
══════════════════════════════ */
.cat-tag {
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.cat-tag.equipment { background: var(--c-amber); color: #1A2332; }
.cat-tag.news      { background: var(--c-accent); color: #fff; }
.cat-tag.breaking  { background: var(--c-accent); color: #fff; }
.cat-tag.business  { background: #1A2332; color: #fff; }
.cat-tag.rates     { background: #1a4a2e; color: #6ECC8A; }
.cat-tag.regulation{ background: #2e1a4a; color: #b89fda; }
.cat-tag.review    { background: var(--c-amber); color: #1A2332; }

/* ══════════════════════════════
   IMAGE PLACEHOLDER
══════════════════════════════ */
.ph {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 7px,
      rgba(26,35,50,.045) 7px, rgba(26,35,50,.045) 14px),
    #EDEDE8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ph > span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--c-muted);
  background: rgba(255,255,255,0.82);
  padding: 5px 10px;
  border-radius: 3px;
  text-align: center;
  max-width: 85%;
  line-height: 1.5;
}
.avatar-ph {
  border-radius: 50%;
  background: #2a4565;
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ══════════════════════════════
   CARDS
══════════════════════════════ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-img { display: block; width: 100%; }
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.card-headline {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-dark);
  text-wrap: balance;
  margin-bottom: 6px;
}
.card-headline a:hover { color: var(--c-accent); }
.card-dek {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.card-byline {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--c-muted);
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ══════════════════════════════
   GRIDS
══════════════════════════════ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }

/* ══════════════════════════════
   AD SLOTS
══════════════════════════════ */
.ad-slot {
  background: #F0F0EB;
  border: 1px dashed #CCC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}
.ad-slot .ad-label {
  font-family: var(--f-mono);
  font-size: 9px;
  color: #5f5f5a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ad-slot .ad-sz {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #5f5f5a;
}
.ad-leaderboard  { width: 100%; height: 90px; }
.ad-300x250 { width: 300px; height: 250px; max-width: 100%; }
.ad-300x600 { width: 300px; height: 600px; max-width: 100%; }
.ad-anchor   { width: 100%; height: 80px; }

/* ══════════════════════════════
   NEWSLETTER BLOCK
══════════════════════════════ */
.nl-block {
  background: var(--c-dark);
  padding: 60px 32px;
  text-align: center;
}
.nl-block h2 {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-wrap: balance;
}
.nl-block p {
  font-family: var(--f-ui);
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  margin: 0 auto 26px;
  line-height: 1.6;
}
.nl-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.nl-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-family: var(--f-ui);
  font-size: 14px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  outline: none;
  transition: border-color .15s, background .15s;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.35); }
.nl-form input:focus { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.13); }
.nl-form button {
  background: var(--c-accent-dk);
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.nl-form button:hover { background: #a92f1a; }
.nl-disclaimer {
  font-family: var(--f-ui);
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 12px;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: var(--c-dark);
  padding: 56px 0 28px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #fff;
  text-transform: lowercase;
  margin-bottom: 10px;
}
.footer-logo .accent { color: var(--c-accent); }
.footer-tagline {
  font-family: var(--f-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 220px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--c-accent); color: #fff; }
.footer-col-head {
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.68);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-family: var(--f-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color .15s;
}
.footer-col ul a:hover { color: #fff; }
.footer-nl-form { display: flex; flex-direction: column; gap: 8px; }
.footer-nl-form input {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-family: var(--f-ui);
  font-size: 13px;
  outline: none;
}
.footer-nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.footer-nl-form button {
  background: var(--c-accent-dk);
  color: #fff;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 4px;
  transition: background .15s;
  text-align: center;
}
.footer-nl-form button:hover { background: #a92f1a; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright {
  font-family: var(--f-ui);
  font-size: 11.5px;
  color: rgba(255,255,255,0.62);
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  font-family: var(--f-ui);
  font-size: 11.5px;
  color: rgba(255,255,255,0.62);
  transition: color .15s;
}
.footer-legal a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 4px;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.btn-primary { background: var(--c-accent); color: #fff; border: 1.5px solid var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-dk); border-color: var(--c-accent-dk); }
.btn-outline { background: transparent; color: var(--c-dark); border: 1.5px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-dark); }
.btn-dark { background: var(--c-dark); color: #fff; border: 1.5px solid var(--c-dark); }
.btn-dark:hover { background: #263348; border-color: #263348; }

/* ══════════════════════════════
   SECTION WRAPPER
══════════════════════════════ */
.section { padding: var(--section-v) 0; }
.section + .section { padding-top: 0; }

/* ══════════════════════════════
   BREADCRUMB
══════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--c-muted);
  padding: 14px 0;
}
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb-sep { color: #ccc; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1060px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .container { padding: 0 20px; }
  :root { --section-v: 48px; }
  .nav-cta { display: none; }
}

/* ══════════════════════════════
   COMMENTS
══════════════════════════════ */
.comments-area {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 2px solid var(--c-dark);
}
.comments-title,
.comment-reply-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 20px;
}
.comment-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.comment-list ol.children { margin: 16px 0 0 26px; display: flex; flex-direction: column; gap: 16px; }
.comment-body {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-family: var(--f-ui); font-size: 14px; font-weight: 700; color: var(--c-dark); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--f-ui); font-size: 12px; color: var(--c-muted); margin-bottom: 8px; }
.comment-metadata a { color: var(--c-muted); }
.comment-content { font-family: var(--f-body); font-size: 15px; line-height: 1.6; color: #2a2a26; }
.comment-content p { margin-bottom: 10px; }
.reply { margin-top: 8px; }
.comment-reply-link, .comment-edit-link {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
}
.comment-respond {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 8px;
}
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-dark);
  display: block;
  margin-bottom: 5px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  font-family: var(--f-ui);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--c-dark); }
.comment-form .form-submit { margin-top: 4px; }
.comment-notes, .logged-in-as { font-family: var(--f-ui); font-size: 12px; color: var(--c-muted); }
.comments-closed { font-family: var(--f-ui); font-size: 13px; color: var(--c-muted); margin-bottom: 20px; }

/* ══════════════════════════════
   ANSWER-FIRST: KEY TAKEAWAYS + FAQ
══════════════════════════════ */
.key-takeaways {
  background: #f4f6f4;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}
.key-takeaways .kt-head {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 10px;
}
.key-takeaways ul { display: flex; flex-direction: column; gap: 8px; }
.key-takeaways li {
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-dark);
  padding-left: 22px;
  position: relative;
}
.key-takeaways li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}
.faq-section { margin: 36px 0; }
.faq-head {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-dark);
  margin-bottom: 14px;
}
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item summary {
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-dark);
  padding: 14px 30px 14px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-ui);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-muted);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; } /* minus sign */
.faq-answer {
  padding: 0 0 16px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a26;
}
