/* Installer directory (search, hubs, profiles). Mobile first; works without JavaScript.
   BidGlory kit: navy #161F31 text and dark bands; orange #F48413 for fills and borders only (never text on light);
   deep orange #A65300 for orange text on light; peach #FCD9B1; paper #FFFDF5 / #FEF7EC; muted #475569; lines #E2E8F0. */
/* The --d-* names are aliases of the kit tokens in site.css (:root), so both stylesheets share one palette. */
.dir { color: var(--d-navy); padding-block: 1.25rem 3rem; }
.dir h1, .dir h2, .dir h3 { font-family: var(--font-display); color: var(--d-navy); }
.dir h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.12; margin: .25rem 0 .6rem; text-wrap: balance; }
.dir h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.15; margin: 2.5rem 0 .9rem; }
.dir h3 { font-size: 1.15rem; line-height: 1.2; margin: 0; }
.dir p { max-width: 68ch; }
.dir a { color: var(--d-navy); text-decoration-color: var(--d-orange); text-underline-offset: 3px; }
.dir a:hover { color: var(--d-orange-text); }
.dir p.dir-eyebrow { max-width: none; }
.dir-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--d-orange-text); margin: 0 0 .5rem; }
.dir-lede { font-size: clamp(1.08rem, 1.4vw, 1.2rem); color: var(--d-muted); margin: 0 0 1rem; }
.dir-muted { color: var(--d-muted); }
.dir-small { font-size: .88rem; }
.dir-mt-s { margin-top: .75rem; }
.dir-mt-m { margin-top: 1.5rem; }
.dir-mt-l { margin-top: 2rem; }

/* Notices */
.dir-notice { border: 1px solid var(--paper-line); border-left: 4px solid var(--d-orange); background: var(--d-paper-2); padding: .75rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; }
.dir-notice-demo { border-color: var(--d-line); border-left-color: var(--d-navy); background: var(--tint-cool); font-size: .93rem; }
.dir-notice .dir-links { margin-top: .5rem; }
.dir-notice p { margin: 0; }

/* Search form */
.dir-search { background: #fff; border: 1px solid var(--d-line); border-top: 4px solid var(--d-orange); border-radius: var(--radius); padding: 1rem; margin: 1rem 0 1.5rem; box-shadow: var(--shadow-xs); }
.dir-search-row { display: flex; flex-direction: column; gap: .5rem; }
.dir-search label.dir-where-label { font-weight: 700; }
.dir-search fieldset { border: 0; padding: 0; margin: .9rem 0 0; }
.dir-search legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.dir-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.dir-check { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--field-border); background: #fff; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; font-size: .95rem; min-height: 44px; transition: border-color .12s, background-color .12s; }
.dir-check:hover { border-color: var(--d-navy); }
.dir-check input { accent-color: var(--d-orange-text); width: 1.1rem; height: 1.1rem; }
.dir-check:has(input:checked) { border-color: var(--d-navy); background: var(--d-paper-2); box-shadow: inset 0 0 0 1px var(--d-navy); }
.dir-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.dir-search details { margin-top: .9rem; }
.dir-search summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: .5rem; }
/* display:flex drops the native disclosure triangle, which left the summary looking like a label with nothing under it. */
.dir-search summary::before { content: "+"; flex: none; width: 1rem; text-align: center; font-weight: 700; color: var(--d-orange-text); }
.dir-search details[open] > summary::before { content: "\2212"; }
/* Same pill as .btn in site.css (one button shape across the site); the class names stay for the markup and tests. */
.dir-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1.2 var(--font-text); padding: .7rem 1.35rem; border-radius: var(--radius-pill); border: 2px solid var(--d-orange); background: var(--d-orange); color: var(--d-navy); text-align: center; text-decoration: none; cursor: pointer; min-height: 2.9rem; transition: background-color .15s, color .15s, border-color .15s; }
.dir a.dir-btn, .dir a.dir-btn:hover { color: var(--d-navy); text-decoration: none; }
.dir-btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.dir-btn-ghost, .dir a.dir-btn-ghost { background: transparent; border-color: var(--d-navy); color: var(--d-navy); }
.dir-btn-ghost:hover, .dir a.dir-btn-ghost:hover { background: var(--d-navy); color: #fff; }
.dir-search .dir-btn { margin-top: 1rem; width: 100%; }
.dir-search #where-hint { margin: .3rem 0 0; }

/* Result cards */
.dir-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.dir-card { border: 1px solid var(--d-line); border-radius: var(--radius); background: #fff; padding: 1rem; display: grid; gap: .6rem; box-shadow: var(--shadow-xs); transition: box-shadow .2s, border-color .2s; }
.dir-card:hover { box-shadow: var(--shadow); }
/* The closing note's paragraph margin would add to the card's padding (a third more space under the text than above it). */
.dir-card > p:last-child { margin-bottom: 0; }
.dir-card-member { border-color: var(--d-orange); box-shadow: inset 4px 0 0 var(--d-orange); }
.dir-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.dir-card-head h3 a { text-decoration: none; }
.dir-card-head h3 a:hover { text-decoration: underline; }
.dir-card-where { color: var(--d-muted); font-size: .95rem; margin: 0; }
.dir-miles { font-weight: 700; color: var(--d-navy); }
.dir-reasons { list-style: none; margin: 0; padding: 0; color: var(--d-muted); font-size: .95rem; }
.dir-reasons li { position: relative; margin: .15rem 0; padding-left: 1.4rem; }
.dir-reasons li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .75rem; height: .4rem; border-left: 2px solid var(--d-orange-text); border-bottom: 2px solid var(--d-orange-text); transform: rotate(-45deg); }
/* Phones: the two buttons share one row (the quote button takes the room it needs, "View profile" the rest). */
.dir-card-actions { display: flex; gap: .5rem; margin-top: .2rem; }
.dir-card-actions .dir-btn { flex: 1 1 auto; padding-inline: .7rem; font-size: .95rem; }

/* Listing avatars (Pages/Installers/_DirAvatar.cshtml): monogram initials in a brand-color circle; 44px on cards, 72px on profiles.
   The .dir-avatar-c{n} colors must match Monogram.Palette (MonogramTests checks both, and AA contrast for each pair). */
.dir-card-top { display: flex; align-items: center; gap: .8rem; }
/* A long business name wraps to three or four lines: the avatar stays level with the first line, not floating mid-block. */
.dir-card-top:has(h3 a) { align-items: flex-start; }
.dir-card-top:has(h3 a) .dir-card-head { min-height: 44px; align-content: center; }
.dir-card-head h3 { overflow-wrap: anywhere; }
.dir-card-top .dir-card-head { flex: 1 1 auto; min-width: 0; }
.dir-avatar {
  --av-bg: #161F31; --av-fg: #FCD9B1;
  flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgb(255 255 255 / .14), transparent 60%), var(--av-bg); color: var(--av-fg);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 1px 2px rgb(22 31 49 / .18);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; line-height: 1;
  user-select: none; -webkit-user-select: none; font-variant-numeric: lining-nums;
}
.dir-avatar-sm { width: 44px; height: 44px; font-size: 1.05rem; }
.dir-avatar-lg { width: 72px; height: 72px; font-size: 1.7rem; }
@media (min-width: 48rem) { .dir-avatar-lg { width: 88px; height: 88px; font-size: 2rem; } }
.dir-avatar-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--d-line); }
.dir-avatar-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; box-sizing: border-box; }
.dir-card-member .dir-avatar, .dir-profile-member .dir-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--d-orange); }
.dir-avatar-c0 { --av-bg: #161F31; --av-fg: #FCD9B1; }
.dir-avatar-c1 { --av-bg: #A65300; --av-fg: #FFFFFF; }
.dir-avatar-c2 { --av-bg: #2C4A72; --av-fg: #FFFFFF; }
.dir-avatar-c3 { --av-bg: #1E5B4F; --av-fg: #FFFFFF; }
.dir-avatar-c4 { --av-bg: #5E2F55; --av-fg: #FFFFFF; }
.dir-avatar-c5 { --av-bg: #8A3324; --av-fg: #FFFFFF; }
.dir-avatar-c6 { --av-bg: #6B5216; --av-fg: #FFFFFF; }
.dir-avatar-c7 { --av-bg: #164E63; --av-fg: #FFFFFF; }
.dir-profile-title { display: flex; align-items: center; gap: 1rem; }
.dir-profile-title > div { min-width: 0; display: grid; gap: .5rem; }
.dir-profile-title h1 { margin: 0; min-width: 0; }
.dir-profile-badges { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 47.99rem) { .dir-profile-title h1 { font-size: clamp(1.5rem, 6.4vw, 1.8rem); } }
@media (forced-colors: active) {
  .dir-avatar { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 2px solid CanvasText; box-shadow: none; }
}
@media print {
  .dir-avatar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Badges and chips */
.dir-badge { display: inline-flex; align-items: center; font-size: .8rem; font-weight: 700; line-height: 1.3; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--d-line); color: var(--d-muted); background: var(--tint-cool); white-space: nowrap; }
.dir-badge-unclaimed { background: transparent; border-style: dashed; border-color: var(--field-border); }
.dir-badge-claimed { color: var(--d-navy); background: var(--d-paper-2); border-color: var(--d-peach); }
.dir-badge-member { color: var(--d-navy); background: var(--d-peach); border-color: var(--d-orange); }
.dir-badge-member::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--d-orange); margin-right: .35rem; }
/* The demo marker is a quiet outline: it explains the data, it isn't the headline of the card. */
.dir-badge-demo { color: var(--d-navy); background: #fff; border-color: var(--d-navy); }
.dir-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.dir-chips li { font-size: .85rem; background: var(--tint-cool); border-radius: var(--radius-xs); padding: .15rem .5rem; }
.dir-chips a { display: inline-block; min-height: 24px; }

/* Lists of states / cities / links */
/* Each state / city / link is a row card: the whole row is the link target, the count sits at the right. */
.dir-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem .75rem; }
.dir-links li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .5rem .85rem; border: 1px solid var(--d-line); border-radius: var(--radius-sm); background: #fff; line-height: 1.3; transition: border-color .15s; }
.dir-links li:hover { border-color: var(--d-orange); }
.dir-links a { display: inline-block; padding: .1rem 0; font-weight: 600; text-decoration: none; }
.dir-links a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dir-links a:hover { text-decoration: underline; }
.dir-links .dir-count { flex: none; color: var(--d-muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
/* Phones: lists of short names (states, cities) go two tiles a row once a row can hold two, which halves the height of a
   50-state list; a long name wraps inside its tile. Lists of longer labels (trades, other links) keep one a row. */
@media (min-width: 22.5rem) and (max-width: 47.99rem) {
  .dir-links-short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .dir-links-short li { padding: .45rem .65rem; }
  .dir-links-short a { overflow-wrap: anywhere; }
}
/* Every city of a big state, A to Z: compact columns under letter headings (State and Trade state pages, _DirCityList). */
.dir h3.dir-az-h { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .6rem; }
.dir-az { columns: 2; column-gap: 1.25rem; padding: .9rem 1rem .4rem; border: 1px solid var(--d-line); border-radius: var(--radius); background: #fff; }
.dir-az-group { break-inside: avoid; margin: 0 0 .7rem; }
.dir .dir-az-group h4 { font: 700 .8rem/1.2 var(--font-text); letter-spacing: .08em; color: var(--d-orange-text); margin: 0 0 .1rem; padding-bottom: .2rem; border-bottom: 1px solid var(--d-line); }
.dir-az-group ul { list-style: none; margin: 0; padding: 0; }
.dir-az-group li { font-size: .95rem; line-height: 1.3; break-inside: avoid; }
.dir-az-group a { display: inline-block; padding: .3rem 0; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.dir-az-group a:hover { text-decoration: underline; }
.dir-az-group .dir-count { color: var(--d-muted); font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 40rem) { .dir-az { columns: 3; } }
@media (min-width: 64rem) { .dir-az { columns: 5; column-gap: 2rem; padding: 1.1rem 1.5rem .6rem; } }
/* Pages of a long list (_DirPager): Previous / numbers / Next, all plain links. */
.dir-pager-range { color: var(--d-muted); font-size: .95rem; margin: -.2rem 0 .9rem; }
.dir-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin: 1.5rem 0 0; }
.dir-pager ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0; padding: 0; }
.dir-pager li > a, .dir-pager li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .5rem; border: 1px solid var(--d-line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.dir-pager li > a:hover { border-color: var(--d-orange); text-decoration: underline; }
.dir-pager li > span[aria-current] { background: var(--d-navy); border-color: var(--d-navy); color: #fff; }
.dir-pager-gap { display: inline-flex; align-items: center; min-height: 44px; color: var(--d-muted); }
.dir-pager .dir-pager-step { min-width: 7rem; }
@media (max-width: 47.99rem) { .dir-pager ol { order: 3; flex-basis: 100%; } .dir-pager .dir-pager-step { flex: 1 1 0; } }
.dir-trades { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.dir-trades li { position: relative; border: 1px solid var(--d-line); border-radius: var(--radius); padding: 1rem 1.15rem; background: #fff; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .2s; }
.dir-trades li:hover { border-color: var(--d-orange); box-shadow: var(--shadow); }
.dir-trades a { display: inline-block; padding: .1rem 0; font-weight: 700; text-decoration: none; }
.dir-trades a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dir-trades a:hover { text-decoration: underline; }
.dir-trades p { margin: .25rem 0 0; color: var(--d-muted); font-size: .92rem; }

/* Profile */
/* Header band: who they are (avatar, name, badges, address) on a warm panel; members get the orange rule under it. */
.dir-profile-head { display: grid; gap: .6rem; padding: 1.1rem 1.1rem 1.2rem; margin-top: 1rem; background: var(--d-paper-2); border: 1px solid var(--paper-line); border-radius: var(--radius); }
.dir-profile-head > p { margin: 0; }
.dir-profile-member { border-bottom: 4px solid var(--d-orange); }
.dir-profile-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.dir-profile-main > section + section { margin-top: 2rem; }
.dir-profile-main > section > h2:first-child { margin-top: 0; }
.dir-profile-others { margin-top: 2.5rem; }
.dir-profile-aside { display: grid; gap: 1rem; }
.dir-profile-aside > p { margin: 0; }
.dir-panel { border: 1px solid var(--d-line); border-radius: var(--radius); padding: 1.1rem 1.15rem; background: #fff; box-shadow: var(--shadow-xs); }
.dir-panel h2 { margin-top: 0; font-size: 1.25rem; }
.dir-panel > :last-child { margin-bottom: 0; }
.dir-cta-panel { background: var(--d-navy); color: #fff; border-color: var(--d-navy); border-top: 4px solid var(--d-orange); }
.dir-cta-panel h2, .dir-cta-panel p { color: #fff; }
.dir-cta-panel .dir-btn { width: 100%; }
.dir-cta-panel a:not(.dir-btn) { color: #fff; text-decoration-color: var(--d-orange); }
.dir-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem .9rem; margin: 0; font-size: .95rem; }
.dir-facts dt { font-weight: 600; color: var(--d-muted); }
.dir-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dir-license { border: 1px solid var(--d-line); border-radius: var(--radius-sm); background: #fff; padding: .85rem 1.1rem; margin-bottom: .6rem; }
.dir-license p { margin: 0; }
.dir-license p + p { margin-top: .3rem; }
.dir-lic-active, .dir-lic-inactive { display: inline-block; font-weight: 700; padding: 0 .5rem; border-radius: 999px; }
.dir-lic-active { color: var(--d-green); background: #ECFDF3; }
.dir-lic-inactive { color: var(--d-red); background: #FEF2F2; }
.dir-claim { font-size: .95rem; }

@media (min-width: 48rem) {
  .dir { padding-block: 2rem var(--section); }
  .dir-search { padding: 1.25rem 1.5rem; }
  .dir-search-row > div { max-width: 32rem; }
  .dir-search .dir-btn { width: auto; margin-top: 1rem; }
  .dir-card { padding: 1.25rem 1.5rem; }
  .dir-card-actions .dir-btn { flex: 0 0 auto; padding-inline: 1.35rem; font-size: 1rem; }
  .dir-profile-head { padding: 1.5rem 1.75rem; gap: .75rem; }
  .dir-profile-title { gap: 1.25rem; }
  .dir-profile-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; }
  /* Below the sticky site header (same offset as the guide and form sidebars). */
  .dir-profile-aside { position: sticky; top: var(--sticky-top); }
}
/* Desktop: the search box uses its width (place on the left, trades beside it, the button at the end of the row), and
   result cards put their two buttons in a right-hand column, so more results fit on a screen. */
/* A search form with no trades column (the commercial hubs): the place field fills the box and the button sits at its right
   edge, level with the field, instead of leaving the right third of the box empty. */
@media (min-width: 48rem) {
  .dir-search:not(:has(> fieldset)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.25rem; align-items: start; }
  .dir-search:not(:has(> fieldset)) > * { grid-column: 1 / -1; }
  .dir-search:not(:has(> fieldset)) > .dir-search-row { grid-column: 1; }
  .dir-search:not(:has(> fieldset)) .dir-search-row > div { max-width: none; }
  .dir-search:not(:has(> fieldset)) > .dir-btn { grid-column: 2; grid-row: 1; align-self: start; margin-top: 1.95rem; min-height: 3rem; min-width: 11rem; }
}
@media (min-width: 64rem) {
  .dir-search { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; }
  .dir-search > * { grid-column: 1 / -1; }
  .dir-search > .dir-search-row { grid-column: 1; }
  .dir-search-row > div { max-width: none; }
  .dir-search > fieldset { grid-column: 2; margin-top: 0; }
  .dir-search > details { margin-top: 0; }
  .dir-search > .dir-btn { grid-column: 3; grid-row: 1; align-self: end; margin-top: 0; }
  .dir-results > .dir-card { grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; }
  .dir-results > .dir-card > * { grid-column: 1; }
  .dir-results > .dir-card > .dir-card-actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; flex-direction: column; margin-top: 0; }
  .dir-results > .dir-card > .dir-card-actions .dir-btn { min-width: 13.5rem; }
}

/* "Match me" and "Add your company" prompts (search results, hubs). */
.dir-nomatch { display: grid; gap: 1rem; margin: 1rem 0 0; }
@media (min-width: 48rem) { .dir-nomatch { grid-template-columns: 1fr 1fr; } }
.dir-nomatch > div { border: 1px solid var(--d-line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: #fff; box-shadow: var(--shadow-xs); }
.dir .dir-nomatch-h { font-size: 1.15rem; margin: 0 0 .35rem; }
.dir-nomatch p { margin: 0 0 .85rem; color: var(--d-muted); }
.dir-after-results { margin-top: 1rem; color: var(--d-muted); }
.dir-join { margin-top: 3rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); border-top: 4px solid var(--d-orange); background: var(--d-navy); color: var(--on-dark); display: grid; gap: 1rem; align-items: center; }
@media (min-width: 48rem) { .dir-join { grid-template-columns: 1fr auto; } }
.dir .dir-join h2 { color: #fff; margin: 0 0 .35rem; font-size: 1.35rem; }
.dir-join p { margin: 0; }
.dir-join-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
/* "For installers" note on category hub state and city pages (HubInstallerNote): small and plain, after the listings and the join band. */
.dir-installer-note { margin-top: 1.25rem; color: var(--d-muted); font-size: .85rem; }
.dir-installer-note p { margin: 0; }
.dir-installer-note-label { font-weight: 700; }
.dir .dir-join a.dir-join-link { color: var(--d-peach); display: inline-block; padding: .2rem 0; }
.dir .dir-join a.dir-join-link:hover { color: #fff; }

/* Trade hub header: the trade's photo (licensed stock, img/stock) beside the heading; stacked on phones, photo below. */
.dir-hub-head { display: grid; gap: 1rem 2rem; align-items: center; }
.dir-hub-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border-bottom: 4px solid var(--d-orange); box-shadow: var(--shadow); }
@media (min-width: 48rem) { .dir-hub-head.has-photo { grid-template-columns: minmax(0, 1fr) 22rem; } }
@media (min-width: 64rem) { .dir-hub-head.has-photo { grid-template-columns: minmax(0, 1fr) 26rem; } .dir-hub-photo img { aspect-ratio: 3 / 2; } }

/* Commercial hubs (/commercial-av/, /commercial-security/): the guidance below the listings, readable line length. */
.dir-guide { max-width: 46rem; margin-top: 2rem; }
.dir-guide ul, .dir-guide ol { padding-left: 1.25rem; }
.dir-guide li { margin: .35rem 0; }

/* Brand pages (docs/BRANDS.md): text-first hero, a clearly labeled sponsored box, the trademark notice. */
.brand-hero { margin-bottom: 1rem; }
.brand-h1-logo { margin: .5rem 0; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-draft { border-left-color: var(--d-red); }
.brand-draft ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.brand-body { margin-bottom: 1rem; }
/* Paid feature card: looks like part of the page, but the label and the paid disclosure are always visible (FTC). Navy on paper and
   navy on peach are both far above WCAG AA contrast; the disclosure is body-size text right next to the CTA. */
.brand-featured { border: 1px solid var(--paper-line); border-left: 4px solid var(--d-orange); border-radius: var(--radius); background: var(--d-paper-2); padding: 1rem 1.25rem; margin: 1.25rem 0; max-width: 44rem; }
.brand-featured-eyebrow { margin-bottom: .25rem; }
.brand-featured-name { margin: 0 0 .75rem; font-size: 1.25rem; }
.brand-featured-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.brand-featured-disclosure { margin: 0; font-size: .9rem; color: var(--d-navy); }
.brand-disclosure-tag { display: inline-block; font-weight: 700; color: var(--d-navy); background: var(--d-peach); border-radius: var(--radius-xs); padding: .1rem .5rem; margin-right: .25rem; }
.brand-featured-note { margin: .75rem 0 0; font-size: .9rem; color: var(--d-navy); }
.brand-where-to-buy { margin-top: .25rem; }
.brand-notice { border-top: 1px solid var(--d-line); margin-top: 2.5rem; padding-top: 1rem; }
.brand-notice p { margin: 0 0 .4rem; }
