/* bestindustrynewsapp.com: a trade directory. Yellow pages for listings under black
   heading bars, white pages for the editorial text, slab headings, dot leaders. */
@font-face { font-family: "Roboto Slab"; src: url("/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --yellow: #f5d547;
  --white: #fffbec;
  --ink: #16140c;
  --ink-2: #3a340f;
  --ink-3: #554b0c;
  --rule: rgba(22, 20, 12, 0.24);
  --head: "Roboto Slab", Rockwell, Georgia, serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: max(20px, calc((100% - 1200px) / 2));
}

* { box-sizing: border-box; }
html { background: var(--yellow); color-scheme: light; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--yellow); caret-color: var(--ink); }
body { margin: 0; font: 400 17px/1.55 var(--body); color: var(--ink); background: var(--yellow); font-variant-numeric: tabular-nums lining-nums; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: var(--ink); color: var(--yellow); }
a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
a:hover { background: var(--ink); color: var(--yellow); text-decoration-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
p, ul, ol, h1, h2, h3, h4, figure { margin: 0; }
p, li, td, th, h1, h2, h3, h4 { overflow-wrap: break-word; }
strong { font-weight: 600; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 5; background: var(--ink); color: var(--yellow); padding: 8px 12px; }
.skip:focus { top: 12px; outline-color: var(--white); }

/* Masthead: the cover of the directory */
.mast { border-bottom: 6px solid var(--ink); }
.mast-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 20px var(--pad) 12px; }
.mast-name { font: 700 clamp(26px, 4.4vw, 46px)/1.05 var(--head); letter-spacing: -0.02em; text-decoration: none; }
.mast-name:hover { background: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; }
.mast-by { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; text-decoration: none; padding: 4px 6px; margin: -4px -6px; }
.ulsa-mark { display: block; }
.mast-ed { margin-left: auto; font-size: 15px; color: var(--ink-2); }

/* Thumb index: a row of tabs standing on the masthead rule, and on wide screens a
   stepped index down the fore edge of the page. */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 var(--pad); }
.tabs a { font: 500 16px/1.2 var(--body); padding: 10px 14px; background: var(--ink); color: var(--yellow); text-decoration: none; }
.tabs a:hover { background: var(--white); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: inset 0 4px 0 var(--ink); }
.tabs a:focus-visible { outline-offset: -6px; outline-color: currentColor; }
@media (min-width: 1340px) and (min-height: 680px) {
  .tabs { position: fixed; z-index: 4; right: 0; top: 132px; flex-direction: column; flex-wrap: nowrap; gap: 6px; padding: 0; align-items: flex-end; }
  .tabs a { writing-mode: vertical-rl; padding: 16px 11px; min-height: 104px; text-align: center; border: 2px solid var(--ink); border-right: 0; }
  .tabs a:nth-child(2) { padding-inline: 16px; }
  .tabs a[aria-current="page"] { padding-right: 22px; box-shadow: none; }
}

/* Page opener */
.top { display: grid; gap: 24px 64px; padding: 40px var(--pad) 48px; }
.top > * { min-width: 0; }
.crumb { font-size: 15px; margin-bottom: 16px; color: var(--ink-2); }
.crumb span { margin: 0 4px; }
h1 { font: 700 clamp(34px, 5.6vw, 72px)/1.03 var(--head); letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
.answer { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; max-width: 34em; margin-top: 24px; }
.top .btn { margin-top: 24px; }
.disclosure { background: var(--white); border: 2px solid var(--ink); padding: 16px 20px; font-size: 16px; line-height: 1.5; max-width: 34em; }
.stamp { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 960px) {
  .top { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); row-gap: 0; }
  .top-main { display: contents; }
  .crumb, h1 { grid-column: 1 / -1; }
  .top-side { margin-top: 28px; align-self: start; }
  .answer { margin-top: 28px; }
}

/* Sections. Yellow pages by default, white pages for reading. */
section, aside.ulsa { padding: 0 var(--pad) 64px; }
.white { background: var(--white); padding-top: 64px; }
.white + .white { padding-top: 0; }
.white + section:not(.white), .white + aside { padding-top: 64px; }
h2 { font: 600 clamp(21px, 2.2vw, 26px)/1.2 var(--head); letter-spacing: -0.01em; background: var(--ink); color: var(--yellow); padding: 10px 16px; margin-bottom: 20px; }
h3 { font: 600 20px/1.25 var(--head); }
.note { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 46em; margin-bottom: 20px; }
.src { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* White pages: heading in the margin, text in a reading column */
.white > h2 { background: none; color: var(--ink); padding: 12px 0 0; border-top: 4px solid var(--ink); font-size: clamp(22px, 2.3vw, 28px); text-wrap: balance; }
.prose p, .qa p { max-width: 38em; }
.prose p + p { margin-top: 16px; }
.lead > div { border-top: 4px solid var(--ink); padding-top: 16px; }
.white .note { color: #5c563f; }
@media (min-width: 960px) {
  .white.prose, .white.faq, .white.sources { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 48px; }
  .white > h2 { margin-bottom: 0; }
  .white > div { border-top: 1px solid var(--rule); padding-top: 14px; min-width: 0; }
  .white.lead { display: block; }
  .lead > div { border-top: 4px solid var(--ink); columns: 2; column-gap: 48px; }
  .lead p { break-inside: avoid; }
  .lead p + p { margin-top: 0; }
}

/* Dot leaders, status marks and the line they sit in */
.ld { flex: 1 1 16px; min-width: 16px; align-self: flex-end; height: 0; margin: 0 6px 0.42em; border-bottom: 2px dotted currentColor; opacity: 0.55; transform-origin: 0 50%; }
.mk { flex: none; align-self: center; margin-left: 6px; }
.nm { font-weight: 600; }
.stt { font-size: 15px; }
.key { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.key li { display: inline-flex; align-items: center; gap: 6px; }
.key .mk { margin: 0; }
.key-box { border: 2px solid var(--ink); padding: 0 8px; }

/* The deciding fact: a ruled note with a run-in head */
.deciding { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 10px 0; max-width: 38em; }
.deciding span { font-weight: 600; margin-right: 4px; }
.deciding span::after { content: ":"; }

/* Home: the classified index, three columns of listings */
.index { padding-top: 0; }
.find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 24px; font-size: 16px; }
.find p { font-weight: 600; }
.find ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.find li, .find button { font: 500 16px/1.2 var(--body); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 0; padding: 7px 12px; margin: 0; }
.find li:has(button) { border: 0; padding: 0; }
.find button { display: block; cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.find button:hover { background: var(--white); }
.find button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.cols { display: grid; gap: 40px; }
.col { min-width: 0; display: grid; gap: 20px; align-content: start; border-top: 4px solid var(--ink); padding-top: 12px; }
.col-head { display: grid; gap: 12px; align-content: start; }
.col h3 { font: 700 clamp(34px, 3.6vw, 46px)/1 var(--head); letter-spacing: -0.02em; }
.col h3 a { text-decoration: none; }
.col h3 a:hover { background: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; }
.col-pick { font: 500 19px/1.3 var(--head); }
.col-more { font-size: 16px; color: var(--ink-2); }
.col h4 { font: 600 15px/1.25 var(--body); background: var(--ink); color: var(--yellow); padding: 5px 8px; margin: 14px 0 6px; }
.col h4:first-child { margin-top: 0; }
.lines { list-style: none; padding: 0; }
.lines li { display: flex; align-items: baseline; padding: 3px 6px; font-size: 16px; line-height: 1.35; border: 2px solid transparent; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.lines li[data-p="ulsa"] { border-color: var(--ink); margin: 2px 0; }
.lines li.hit { background: var(--ink); color: var(--yellow); }
.lines .mk { align-self: center; }
.col-foot { display: grid; gap: 12px; align-content: start; }
.col-go { font-weight: 600; }
.idx-fig .key { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--ink); }
figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 62em; }
@media (min-width: 900px) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 0 36px; }
  .col { grid-row: span 3; grid-template-rows: subgrid; row-gap: 20px; }
}
.rest { margin-top: 36px; display: grid; gap: 4px 48px; }
.rest h3 { font: 600 18px/1.3 var(--head); }
.rest p { color: var(--ink-2); max-width: 44em; font-size: 16px; }
@media (min-width: 900px) { .rest { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; border-top: 1px solid var(--ink); padding-top: 14px; } }

/* Questions */
.qa > div { padding: 0 0 20px; }
.qa > div + div { border-top: 1px solid var(--rule); padding-top: 18px; }
.qa h3 { font: 600 19px/1.3 var(--head); margin-bottom: 6px; max-width: 34em; }
.qa p + p { margin-top: 10px; }

/* Profession pages: the needs ledger */
section > .key { margin-bottom: 24px; }
.ledger { border-top: 4px solid var(--ink); }
.ledger-head { display: none; }
.need { display: grid; gap: 16px; padding: 24px 0 28px; border-bottom: 1px solid var(--ink); }
.need > div { min-width: 0; }
.need-what h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.need-what p { color: var(--ink-2); margin-top: 8px; max-width: 30em; }
.need-who ul { list-style: none; padding: 0; display: grid; gap: 20px 36px; }
.need-who li { min-width: 0; border: 2px solid transparent; }
.need-who li[data-p="ulsa"] { border-color: var(--ink); padding: 10px 12px; background: var(--white); }
.need-who li p { font-size: 16px; }
.who { display: flex; align-items: baseline; margin-bottom: 4px; font-size: 17px; }
@media (min-width: 820px) {
  .ledger-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: 8px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--ink); }
  .need { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
  .need-what { position: sticky; top: 16px; align-self: start; }
  .need-who ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The pick: a display entry */
.pick-box { border: 4px solid var(--ink); display: grid; }
.pick-head { background: var(--yellow); padding: 24px; border-bottom: 4px solid var(--ink); }
.pick h2 { background: none; color: var(--ink); padding: 0; margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.pick-label { font-size: 15px; color: var(--ink-2); max-width: 30em; }
.pick-body { padding: 24px; }
.pick-body .deciding { margin-bottom: 20px; }
.pick-body > p { max-width: 38em; }
.pick-body > p + p { margin-top: 16px; }
@media (min-width: 900px) {
  .pick-box { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .pick-head { border-bottom: 0; border-right: 4px solid var(--ink); padding: 32px; }
  .pick-body { padding: 32px 40px; }
}

/* Tables */
.scroll { overflow-x: auto; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); scrollbar-color: var(--ink) transparent; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 16px; line-height: 1.45; }
table.opts { min-width: 880px; }
th, td { text-align: left; vertical-align: top; padding: 12px 20px 12px 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 500; font-size: 15px; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
tbody th { font: 600 17px/1.4 var(--head); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tr.own th, tr.own td { background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
tr.own th { padding-left: 12px; border-left: 2px solid var(--ink); }
tr.own td:last-child { border-right: 2px solid var(--ink); }
tbody tr:last-child.own th, tbody tr:last-child.own td { border-bottom: 2px solid var(--ink); }

/* Ulsa block: one per page, set as the publisher's own display entry */
.ulsa-box { background: var(--white); border: 4px solid var(--ink); padding: 24px; display: grid; gap: 16px 48px; }
.ulsa h2 { background: none; color: var(--ink); padding: 0; margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.ulsa-text p { max-width: 38em; }
.ulsa-text p + p { margin-top: 12px; }
.ulsa .facts { color: #4a4530; font-size: 16px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; background: var(--ink); color: var(--yellow); font-weight: 600; text-decoration: none; border: 2px solid var(--ink); }
.btn:hover { background: var(--yellow); color: var(--ink); }
@media (min-width: 900px) {
  .ulsa-box { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding: 32px; }
  .ulsa-go { grid-column: 2; }
}

/* Sources: an index with leaders */
.sources { padding-bottom: 64px; }
aside.ulsa + .sources { padding-top: 64px; }
.sources ul { list-style: none; padding: 0; font-size: 16px; }
.sources li { display: flex; flex-wrap: wrap; align-items: baseline; padding: 6px 0; }
.sources li + li { border-top: 1px solid var(--rule); }
.sources .note { margin-bottom: 12px; }
.sources .ld { opacity: 0.4; }
.url { color: #5c563f; font-size: 15px; overflow-wrap: anywhere; min-width: 0; }

main { flex: none; }
.foot { flex: 1 0 auto; background: var(--ink); color: #efe6b8; padding: 40px var(--pad) 56px; font-size: 16px; }
.foot p { max-width: 58em; }
.foot p + p { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--yellow); }
.foot a:hover { background: var(--yellow); color: var(--ink); }
.foot :focus-visible { outline-color: var(--yellow); }

@media (max-width: 520px) {
  .mast-in { padding-top: 16px; }
  .mast-ed { margin-left: 0; flex-basis: 100%; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .find li, .find button { padding: 10px 12px; }
  .tabs a { padding: 12px 11px; }
  .top { padding-top: 28px; padding-bottom: 36px; }
  section, aside.ulsa { padding-bottom: 48px; }
  .white, .white + section:not(.white), .white + aside, aside.ulsa + .sources { padding-top: 48px; }
  .sources li .ld { display: none; }
  .sources li { display: block; }
  .url { display: block; }
}

@media (prefers-reduced-motion: reduce) { a, .btn, .lines li, .find button { transition: none; } }
