/* Carrier profile (/carrier/<usdot>) only. Shared tokens, masthead, footer, .layout, .panel,
   .side and .promo come from style.css. */

/* masthead search (right slot) */
.mast-search { margin-left: auto; display: flex; gap: 8px; flex: 0 1 360px; min-width: 200px; }
.mast-search input[type="text"] { flex: 1 1 auto; min-width: 0; padding: 8px 12px; border: 1px solid var(--navy-line); border-radius: 6px;
  background: var(--navy-field); color: #fff; font-size: 14px; }
.mast-search input[type="text"]::placeholder { color: var(--navy-ink); }
.mast-search input[type="text"]:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.mast-search button { background: var(--mint); color: var(--mint-ink); font-size: 14px; padding: 8px 14px; border-radius: 6px; white-space: nowrap; }
.mast-search button:hover { background: var(--mint-2); }

/* carrier head band */
.chead { background: var(--card); border-bottom: 1px solid var(--line); }
.chead .wrap { padding-top: 22px; }
.title-row { display: flex; justify-content: space-between; gap: 16px 24px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.title-row .who { min-width: 0; flex: 1 1 420px; }
.chead h1 { font: 600 clamp(26px, 3.4vw, 38px)/1.15 var(--serif); margin: 0; overflow-wrap: anywhere; }
.facts { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--body); }
button.copy { background: var(--card); border: 1px solid var(--pill-off); color: var(--ink); border-radius: 6px; padding: 9px 14px;
  font-weight: 500; font-size: 14px; }
button.copy:hover { background: var(--hover); border-color: var(--navy); }

.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 22px; }
.verdict { border: 1px solid var(--line); border-left: 4px solid var(--pill-off); border-radius: 8px; padding: 12px 14px; text-decoration: none;
  color: var(--ink); background: var(--hover); display: block; }
.verdict:hover { border-color: var(--navy); color: var(--ink); }
.verdict .k { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.verdict .v { font-weight: 600; font-size: 17px; margin-top: 3px; }
.verdict .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.verdict .src { font-size: 12px; color: var(--muted); margin-top: 6px; }
.verdict.ok { border-left-color: var(--accent); }
.verdict.ok .v { color: var(--accent); }
.verdict.bad { border-left-color: var(--bad); }
.verdict.bad .v { color: var(--bad); }

.tabs { display: flex; gap: 4px; margin-top: 22px; overflow-x: auto; font-size: 14px; font-weight: 500; }
.tabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); border-bottom-color: var(--navy); }

/* panels */
.cmain { display: grid; gap: 20px; }
.cmain .panel { scroll-margin-top: 16px; }
.cmain .panel-head h2 { font: 600 20px/1.2 var(--serif); }
.state { font-size: 12px; font-weight: 500; color: var(--muted); }
.state.cur { color: var(--accent); }
.state.frozen { color: var(--stale); }
.cmain table { margin-top: 0; }
.cmain tr:last-child th, .cmain tr:last-child td { border-bottom: 0; }
table.kv th, .cmain td.nw { white-space: nowrap; }
.cmain .muted { color: var(--muted); }
a.small { font-size: 13px; }
.meets { font-size: 13px; }
.meets.ok { color: var(--ok); }
.meets.bad { color: var(--bad); }
.empty { padding: 14px 18px; font-size: 14px; color: var(--muted); }
.cmain .warn { margin: 0 18px 14px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--rule); }
.strip .cell { padding: 14px 18px; }
.strip .k { font-size: 12px; color: var(--muted); }
.strip .v { font: 600 26px/1.1 var(--serif); margin-top: 4px; }
.strip .v.ok { color: var(--accent); }
.strip .v.bad { color: var(--bad); }
.strip .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.event { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule);
  font-size: 14px; align-items: baseline; }
.event:last-child { border-bottom: 0; }

.sources { font-size: 13px; color: var(--muted); line-height: 1.6; }
.sources strong { color: var(--ink); }

/* 404 / 503 search box */
form.find { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .mast-search { order: 2; flex: 1 1 100%; margin: 4px 0 2px; }
  header.mast nav { order: 3; }
  .verdicts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .verdict { padding: 10px 12px; }
  .verdict .v { font-size: 15px; }
  /* Two-pair key/value rows restack as label/value pairs instead of scrolling sideways. */
  table.kv tr { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  table.kv th { white-space: normal; }
  table.kv tr:last-child th, table.kv tr:last-child td { border-bottom: 1px solid var(--rule); }
  table.kv tr:last-child td:last-child { border-bottom: 0; }
  .event { grid-template-columns: minmax(0, 1fr) auto; }
  .event > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}
