/* Texas Truck Accident Resource Center — layout and components for the revamped site.
   Loaded after bootstrap.min.css and styles.css (which holds the brand colours). */

body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.65; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: "Playfair Display", Georgia, serif; line-height: 1.25; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; }

/* ---------- header ---------- */
.site-header .navbar { padding: .55rem 0; }
.site-header .brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.site-header .brand img { border-radius: 6px; }
.site-header .brand-name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: #fff; }
.site-header .brand-name small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: .7rem; color: var(--accent-gold); letter-spacing: .06em; text-transform: uppercase; }
.site-header .nav-link { font-size: .92rem; font-weight: 600; padding: .5rem .7rem !important; }
.site-header .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }
.btn-tools { background: var(--accent-gold); color: #fff; font-weight: 700; border-radius: 999px; padding: .4rem 1rem; }
.btn-tools:hover { background: #fff; color: var(--primary-blue); }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { flex-direction: column; align-items: flex-start; padding: .75rem 0; }
  .site-header .navbar-nav { width: 100%; }
}

/* ---------- notices ---------- */
.notice-bar { background: #fff8e6; border-bottom: 1px solid #f0e2b8; font-size: .82rem; color: #5c4a14; }
.notice-box { background: #fff8e6; border: 1px solid #f0e2b8; border-radius: .6rem; padding: .9rem 1.1rem; font-size: .9rem; color: #5c4a14; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .85rem; margin: 1.25rem 0 .75rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: #8a94a3; }
.crumbs a { color: var(--primary-blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: #5a6370; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--dark-navy) 0%, var(--medium-navy) 70%, #0d2d4a 100%); color: #fff; }
.hero h1 { color: #fff; }
.hero .lead { color: #d8e0ea; }
.hero-search { background: #fff; border-radius: .8rem; padding: .5rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.hero-search .form-control { border: 0; font-size: 1.05rem; }
.hero-search .form-control:focus { box-shadow: none; }
.page-hero { background: #fff; border-bottom: 1px solid #e4e7ec; }

/* ---------- cards ---------- */
.card-link { display: block; height: 100%; background: #fff; border: 1px solid #e4e7ec; border-radius: .8rem; padding: 1.15rem 1.2rem; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,45,114,.10); border-color: #c9d3e1; color: inherit; }
.card-link h3 { font-size: 1.08rem; margin: 0 0 .35rem; }
.card-link p { font-size: .9rem; color: #5a6370; margin: 0; }
.card-link .kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent-gold); margin-bottom: .35rem; display: block; }
.hub-card { display: flex; gap: 1rem; align-items: flex-start; }
.hub-card .bi { font-size: 1.6rem; color: var(--accent-gold); line-height: 1; }
.tool-card { border-left: 4px solid var(--accent-gold); }

/* ---------- article ---------- */
.article-body { font-size: 1.03rem; }
.article-body h2 { margin-top: 2.2rem; margin-bottom: .8rem; font-size: 1.6rem; }
.article-body h3 { margin-top: 1.6rem; font-size: 1.25rem; }
.article-body img { max-width: 100%; height: auto; border-radius: .6rem; }
.article-body table { width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; }
.article-body th, .article-body td { border-bottom: 1px solid #e4e7ec; padding: .55rem .6rem; vertical-align: top; text-align: left; }
.article-body th { background: #f1f4f8; }
.article-body blockquote { border-left: 4px solid var(--accent-gold); padding: .3rem 1rem; color: #4a5361; background: #fff; }
.article-body .key-points { background: #fff; border: 1px solid #e4e7ec; border-radius: .8rem; padding: 1rem 1.25rem; }
.article-body .key-points ul { margin-bottom: 0; }
.byline { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .85rem; color: #5a6370; border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; padding: .6rem 0; margin: .5rem 0 1.5rem; }
.byline a { color: var(--primary-blue); }
.author-box { background: #fff; border: 1px solid #e4e7ec; border-radius: .8rem; padding: 1.1rem 1.2rem; }
.sidebar-box { background: #fff; border: 1px solid #e4e7ec; border-radius: .8rem; padding: 1rem 1.1rem; }
.sidebar-box h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: .35rem 0; border-bottom: 1px dashed #e4e7ec; font-size: .92rem; }
.sidebar-box li:last-child { border-bottom: 0; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 1rem; } }
.source-note { font-size: .82rem; color: #6b7480; }

/* ---------- tools ---------- */
.tool-panel { background: #fff; border: 1px solid #e4e7ec; border-radius: .9rem; padding: 1.25rem; box-shadow: 0 6px 20px rgba(0,45,114,.06); }
.tool-panel .form-label { font-weight: 600; font-size: .9rem; }
.result-box { background: #f1f4f8; border-radius: .8rem; padding: 1rem 1.15rem; }
.result-big { font-family: "Playfair Display", Georgia, serif; font-size: 1.9rem; color: var(--primary-blue); line-height: 1.2; }
.stat { background: #fff; border: 1px solid #e4e7ec; border-radius: .8rem; padding: .9rem 1rem; height: 100%; }
.stat .v { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; color: var(--primary-blue); line-height: 1.1; }
.stat .l { font-size: .8rem; color: #5a6370; }
.badge-ok { background: #e7f5ec; color: #146c43; }
.badge-warn { background: #fff4e0; color: #8a5300; }
.badge-bad { background: #fde8e8; color: #9b1c1c; }
.badge-soft { font-weight: 600; padding: .35em .65em; border-radius: 999px; font-size: .78rem; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: .6rem; align-items: center; font-size: .9rem; margin-bottom: .35rem; }
.bar-track { background: #e9eef5; border-radius: 4px; height: 12px; overflow: hidden; }
.bar-fill { background: var(--primary-blue); height: 100%; border-radius: 4px; }
.table-tight td, .table-tight th { padding: .4rem .5rem; font-size: .9rem; }
.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.step-list > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.step-list > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--primary-blue); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-navy); color: #c3cdd9; font-size: .9rem; }
.site-footer h2 { color: #fff; font-size: 1rem; font-family: "Inter", sans-serif; font-weight: 700; margin-bottom: .75rem; }
.site-footer a { color: #e3e9f1; text-decoration: none; }
.site-footer a:hover { color: var(--accent-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #9aa7b6; }

/* ---------- misc ---------- */
.section-title { font-size: 1.7rem; margin-bottom: .4rem; }
.muted { color: #5a6370; }
.chat-window { min-height: 260px; }
.print-only { display: none; }
@media print { .site-header, .site-footer, .notice-bar, .no-print { display: none !important; } .print-only { display: block; } }
