/* ==========================================================================
   02-components.css — shared primitives and site chrome (Swiss Editorial).
   One family, two inks, hairlines, a 12-column grid. See DESIGN_SYSTEM.md.
   Page-specific pieces (home hero, sentence search, port map, profile head,
   results/filters…) live in app/assets/stylesheets/pages/<name>.css.
   ========================================================================== */

/* ---------- 1. Layout ---------------------------------------------------- */
.wrap, .container { width: 100%; max-width: calc(var(--max-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--text > * { max-width: 46rem; }
.container--wide { /* full-bleed already */ }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
@media (max-width: 47.99rem) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Auto-fill card grids (admin panels, KPI groups) */
.grid--2, .grid--3, .grid--4 { gap: var(--s-6) var(--col-gap); }
.grid.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.grid.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.grid.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--s-5); }
.stack--sm { gap: var(--s-3); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* The one section pattern: hairline · label cols 1–2 · content 3–8 · aside 9–12 */
.row { border-top: 1px solid var(--rule); padding-block: var(--s-7) var(--row-end); }
.row--tight { padding-block-end: var(--s-8); }
.row--flush { padding-block-end: var(--s-7); }
.row--open { border-top: 0; padding-block-start: var(--s-9); }
.row__label { grid-column: 1 / span 2; font-size: var(--t-body); font-weight: 400; letter-spacing: var(--track-body); line-height: var(--lh-body); padding-top: 0.4em; }
.row__label .muted { display: block; }
.row__main { grid-column: 3 / span 6; }
.row__wide { grid-column: 3 / -1; }
.row__side { grid-column: 9 / -1; }
.row__side--10 { grid-column: 10 / -1; }
.row__head { font-size: var(--t-l); line-height: var(--lh-head); font-weight: 500; letter-spacing: var(--track-head); text-wrap: balance; }
.row__big { font-size: var(--t-hero); line-height: var(--lh-tight); font-weight: 500; letter-spacing: var(--track-display); text-wrap: balance; }
.row__text { margin-block-start: var(--s-5); max-width: 36em; }
.row__more { margin-block-start: var(--s-4); }
.row__side img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 63.99rem) {
  .row__label { grid-column: 1 / -1; margin-block-end: var(--s-5); padding: 0; color: var(--grey-text); }
  .row__main, .row__wide, .row__side, .row__side--10 { grid-column: 1 / -1; }
  .row__side { margin-block-start: var(--s-6); }
}

/* ---------- 2. Icons ----------------------------------------------------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* 14px arrows drawn at 1.4px (Switzer has no arrow glyphs) */
.arrow { display: inline-block; flex: none; width: 14px; height: 14px; vertical-align: -1px; transition: transform var(--dur) var(--ease); }
.arrow--ne { width: 12px; height: 12px; }
.arrow--back { transform: scaleX(-1); }
a:hover .arrow:not(.arrow--ne, .arrow--back), button:hover .arrow:not(.arrow--ne, .arrow--back) { transform: translateX(3px); }
a:hover .arrow--ne { transform: translate(2px, -2px); }
a:hover .arrow--back { transform: scaleX(-1) translateX(3px); }

/* ---------- 3. Links ----------------------------------------------------- */
/* .link grows an underline on hover; .link--under starts underlined. */
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-block: 2px; transition: background-size var(--dur) var(--ease); }
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--under { background-size: 100% 1px; }
.link--under:hover { background-size: 0 1px; background-position: 100% 100%; }
/* Text link with arrow: "All services →" */
.more, .link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--t-body); color: var(--ink); }
.more .icon, .link-arrow .icon { width: 14px; height: 14px; stroke-width: 1.4; }
/* Links inside running text */
.prose a, .field__hint a, .flash a, .auth__alt a, .empty-state p a, p > a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- 4. Buttons (only two) ---------------------------------------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  background: var(--field); color: var(--ink);
  font-size: var(--t-body); font-weight: 400; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover, .button:hover { background: color-mix(in srgb, var(--field) 88%, var(--ink)); }
.btn--ink, .btn--primary { background: var(--ink); color: var(--paper); }
.btn--ink:hover, .btn--primary:hover { background: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-row, .btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
/* Legacy modifiers, mapped onto the two buttons (prefer .btn / .btn--ink in new markup) */
.btn--secondary, .btn--on-media, .btn--inverse { background: var(--field); color: var(--ink); }
.btn--ghost { background: none; padding-inline: 12px; }
.btn--ghost:hover { background: var(--field); }
.btn--danger { background: none; color: var(--danger); box-shadow: inset 0 0 0 1px var(--rule); }
.btn--danger:hover { background: var(--field); }
.btn--sm { min-height: 44px; padding-inline: 16px; }
.btn--lg, .btn--xl { min-height: 52px; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.btn--pill { border-radius: var(--radius); }

/* Icon-only control: 44px target that sits optically on the baseline */
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0; margin: -10px;
  border: 0; border-radius: 50%; background: none; color: var(--ink);
}
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--grey-text); }

/* ---------- 5. Header ---------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--scrim); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); padding-block: var(--s-3); }
.brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-inline-end: auto; font-size: var(--t-m); font-weight: 500; letter-spacing: var(--track-head); line-height: 1; white-space: nowrap; color: var(--ink); }
.brand span { color: var(--grey); }
.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav > a { display: inline-flex; align-items: center; min-height: 44px; }
.nav > a[aria-current="page"] { color: var(--grey-text); }
.header-search { position: relative; display: flex; align-items: center; width: 220px; border-bottom: 1px solid var(--rule); transition: border-color var(--dur) var(--ease), width var(--dur) var(--ease); }
.header-search:focus-within { width: 280px; border-color: var(--ink); }
.header-search input { width: 100%; min-height: 40px; padding: 0 20px 0 0; border: 0; background: none; outline: none; }
.header-search input::placeholder { color: var(--grey-text); opacity: 1; }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search kbd { position: absolute; right: 0; }
.theme-toggle .icon { width: 18px; height: 18px; }
.menu-btn { display: none; min-height: 44px; padding: 0; border: 0; background: none; }
@media (max-width: 74.99rem) {
  .nav { gap: var(--s-5); }
  .header-search { width: 160px; }
  .header-search:focus-within { width: 200px; }
}
@media (max-width: 63.99rem) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .site-header__inner { gap: var(--s-5); }
}

/* Mobile menu (native popover: works without JS, Esc / light dismiss) */
.mobile-nav { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0 var(--gutter) var(--s-6); border: 0; background: var(--paper); color: var(--ink); overflow-y: auto; }
.mobile-nav::backdrop { background: transparent; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); }
.mobile-nav__search { display: flex; border-bottom: 1px solid var(--ink); margin-block-start: var(--s-5); }
.mobile-nav__search input { flex: 1; min-width: 0; min-height: 52px; border: 0; background: none; outline: none; font-size: var(--t-m); }
.mobile-nav__search input::placeholder { color: var(--grey-text); opacity: 1; }
.mobile-nav__links { margin-block: var(--s-7); font-size: var(--t-xl); font-weight: 500; line-height: 1.25; letter-spacing: var(--track-display); }
.mobile-nav__links a { display: block; padding-block: 4px; }
.mobile-nav__links a:hover { color: var(--grey-text); }
.mobile-nav .btn-row { flex-direction: column; align-items: stretch; }

/* ---------- 6. Footer ---------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s-7) var(--s-5); }
.footer-statement { grid-column: 1 / span 9; font-size: var(--t-hero); line-height: var(--lh-tight); font-weight: 500; letter-spacing: var(--track-display); color: var(--grey); text-wrap: balance; }
.footer-statement strong { color: var(--ink); }
.newsletter { grid-column: 1 / span 6; margin-block-start: var(--s-9); }
.newsletter__label { display: block; margin-block-end: var(--s-3); }
.newsletter__row { display: flex; align-items: center; gap: var(--s-4); border-bottom: 1px solid var(--ink); }
.newsletter__row input { flex: 1; min-width: 0; min-height: 56px; padding: 0 0 6px; border: 0; background: none; outline: none; font-size: var(--t-l); font-weight: 500; letter-spacing: var(--track-head); }
.newsletter__row input::placeholder { color: var(--grey); opacity: 1; }
.newsletter__row button { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0; border: 0; background: none; }
.footer-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); margin-block-start: var(--s-10); }
.footer-col { grid-column: span 2; }
.footer-col--theme { grid-column: 11 / span 2; }
.footer-col h2 { margin-block-end: var(--s-3); font-size: var(--t-body); font-weight: 400; letter-spacing: var(--track-body); color: var(--grey-text); }
.footer-col li a { display: inline-block; padding-block: 3px; }
.theme-switch { display: flex; flex-direction: column; align-items: flex-start; }
.theme-switch button { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 0; border: 0; background: none; color: var(--grey-text); }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.theme-switch button[aria-pressed="true"] { color: var(--ink); }
.theme-switch button[aria-pressed="true"]::before { background: currentColor; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-block-start: var(--s-10); padding-block-start: var(--s-4); font-size: var(--t-s); color: var(--grey-text); }
.footer-bottom ul { display: flex; gap: var(--s-5); }
.footer-bottom a:hover { color: var(--ink); }
@media (max-width: 63.99rem) {
  .footer-statement, .newsletter { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); margin-block-start: var(--s-8); }
  .footer-col, .footer-col--theme { grid-column: auto; }
  .footer-col li a { padding-block: 10px; }
  .theme-switch button { min-height: 44px; }
}

/* List-your-company CTA (shared/_list_cta): b/w photo + CTA row */
.list-cta { margin-block-start: var(--s-8); }
.list-cta__actions { margin-block-start: var(--s-7); }
.points { border-top: 1px solid var(--rule); margin-block-start: 0.5em; }
.points li { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: 14px; border-bottom: 1px solid var(--rule); }
.points li span { color: var(--grey-text); }

/* ---------- 7. Figures --------------------------------------------------- */
.figure img { width: 100%; object-fit: cover; border-radius: var(--radius); background: var(--field); }
.figure--hero img { aspect-ratio: 16 / 7; }
.figure--wide img { aspect-ratio: 21 / 8; }
.figure--mono img { filter: grayscale(1) var(--img-filter); }
.figure figcaption { display: flex; justify-content: space-between; gap: var(--s-4); padding-block-start: 10px; font-size: var(--t-s); color: var(--grey-text); }
@media (max-width: 47.99rem) {
  .figure--hero img { aspect-ratio: 4 / 5; }
  .figure--wide img { aspect-ratio: 4 / 3; }
}

/* ---------- 8. Inner-page masthead + breadcrumbs ------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s-6) 0 0; list-style: none; font-size: var(--t-s); color: var(--grey-text); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--grey); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); }

.masthead { row-gap: var(--s-6); padding-block: clamp(64px, 9vw, 144px) clamp(48px, 5vw, 80px); }
.masthead__kicker { grid-column: 1 / span 2; padding-top: 0.55em; }
.masthead__kicker .muted { display: block; }
.masthead__title { grid-column: 3 / span 9; font-size: var(--t-hero); line-height: var(--lh-tight); font-weight: 500; letter-spacing: var(--track-display); text-wrap: balance; }
.masthead__title .grey { display: block; }
.masthead__intro { grid-column: 3 / span 7; font-size: var(--t-l); line-height: 1.25; font-weight: 500; letter-spacing: var(--track-head); color: var(--grey); text-wrap: pretty; }
.masthead__summary { grid-column: 3 / span 6; color: var(--grey-text); }
.masthead__body { grid-column: 3 / span 7; }
.masthead .place-links { grid-column: 3 / -1; }
@media (max-width: 63.99rem) {
  .masthead__kicker { grid-column: 1 / -1; padding: 0; color: var(--grey-text); }
  .masthead__title, .masthead__intro, .masthead__summary, .masthead__body, .masthead .place-links { grid-column: 1 / -1; }
}

/* Place links with counts, related-word lists, house/sponsor strip */
.place-links { display: flex; flex-wrap: wrap; column-gap: var(--s-6); row-gap: 4px; }
.place-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.place-links small { color: var(--grey-text); }
.words { display: flex; flex-wrap: wrap; column-gap: 0.3em; font-size: var(--t-l); line-height: 1.35; font-weight: 500; letter-spacing: var(--track-head); }
.words a { color: var(--grey); transition: color 200ms var(--ease); }
.words a:hover, .words a:focus-visible { color: var(--ink); }
.words li:not(:last-child)::after { content: ","; color: var(--grey); }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--rule); color: var(--grey-text); }
.strip a { color: var(--ink); }

/* ---------- 9. Forms: underline fields, 44px+ targets -------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: var(--t-s); color: var(--grey-text); }
.field__optional { color: var(--grey-text); }
.field__hint { font-size: var(--t-s); color: var(--grey-text); }
.field__error { display: flex; gap: 6px; align-items: baseline; font-size: var(--t-s); color: var(--danger); }
.field__error .icon { width: 14px; height: 14px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 8px 0;
  border: 0; border-bottom: 1px solid var(--grey); border-radius: 0;
  background: none; color: var(--ink); font-size: max(16px, 1rem); outline: none;
  transition: border-color var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--grey-text); }
.input:focus, .select:focus, .textarea:focus { border-bottom: 2px solid var(--ink); padding-bottom: 7px; }
.input::placeholder, .textarea::placeholder { color: var(--grey-text); opacity: 1; }
.input:disabled, .select:disabled, .textarea:disabled { color: var(--grey-text); border-bottom-style: dotted; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"], .field--error .input, .field--error .select, .field--error .textarea { border-color: var(--danger); }
.field:has([aria-invalid="true"]) .field__label, .field--error .field__label { color: var(--danger); }
.textarea { min-height: 8rem; resize: vertical; line-height: var(--lh-body); field-sizing: content; }
.select { appearance: none; -webkit-appearance: none; padding-right: 24px; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 5px top 50% / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 top 50% / 5px 5px no-repeat; }
.select option { color: #1a1a1a; background: #fff; }
.select--bare { width: auto; min-height: 44px; border: 0; }
input[type="file"] { max-width: 100%; font-size: var(--t-s); }
input[type="file"]::file-selector-button { min-height: 44px; margin-inline-end: 12px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--field); color: var(--ink); font: inherit; cursor: pointer; }
/* Input with a leading icon */
.input-group { position: relative; }
.input-group > .icon { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--grey-text); pointer-events: none; }
.input-group > .input, .input-group > .select { padding-left: 28px; }

/* Square checkbox, round radio, switch */
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input:not([type="hidden"]), .switch input:not([type="hidden"]) {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; margin: 0; border: 1px solid var(--grey); border-radius: 3px; background: none;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked, .switch input:checked { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after, .switch input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); }
.check__count { margin-inline-start: auto; font-size: var(--t-s); color: var(--grey-text); font-variant-numeric: tabular-nums; }
.switch { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 12px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.switch input { margin-top: 2px; }
.fieldset { display: grid; gap: var(--s-4); padding: 0; border: 0; }
.fieldset legend { margin-block-end: var(--s-2); padding: 0; font-size: var(--t-m); font-weight: 500; }
.form-grid { display: grid; gap: var(--s-5) var(--s-6); }
@media (min-width: 48rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .field--full { grid-column: 1 / -1; } }

/* Type-ahead listbox (search_suggest_controller renders .suggest__item etc.) */
.suggest { position: relative; }
.suggest__list { position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 60; max-height: 22rem; margin: 0; padding: 4px 0; overflow-y: auto; list-style: none; background: var(--paper); border-top: 1px solid var(--ink); box-shadow: 0 12px 32px rgb(0 0 0 / 0.12); color: var(--ink); font-size: var(--t-body); font-weight: 400; letter-spacing: var(--track-body); text-align: start; }
.suggest__item { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); min-height: 44px; padding: 11px 12px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--field); }
.suggest__type { font-size: var(--t-s); color: var(--grey-text); white-space: nowrap; }

/* ---------- 10. Flash messages ------------------------------------------ */
.flash-stack { display: grid; gap: var(--s-2); padding-block-start: var(--s-4); }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.flash > .icon { width: 18px; height: 18px; margin-top: 2px; }
.flash__body { flex: 1; }
.flash__body ul { margin-block-start: 4px; padding-inline-start: 1.1em; color: var(--grey-text); }
.flash__title { font-weight: 500; }
.flash--alert { border-top-color: var(--danger); }
.flash--alert > .icon { color: var(--danger); }
.flash .btn { flex: none; }
.flash__close { display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px -10px 0; border: 0; background: none; color: var(--grey-text); }
.flash__close:hover { color: var(--ink); }

/* ---------- 11. Pagination ---------------------------------------------- */
.pager { display: flex; align-items: center; gap: var(--s-2); margin-block-start: var(--s-7); font-variant-numeric: tabular-nums; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; color: var(--grey-text); }
.pager a:hover { color: var(--ink); }
.pager [aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.pager__pages { display: flex; gap: var(--s-2); }
.pager__prev, .pager__next { color: var(--ink) !important; }
.pager__next { margin-inline-start: auto; }
.pager [aria-disabled="true"] { visibility: hidden; }
.pager__status { display: none !important; }
@media (max-width: 29.99rem) { .pager__pages { display: none; } .pager__status { display: inline-flex !important; } }

/* ---------- 12. FAQ (hairline details) ---------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 64px; padding-block: 12px; list-style: none; cursor: pointer; font-size: var(--t-m); font-weight: 500; letter-spacing: var(--track-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--grey-text); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { max-width: 40em; padding-block-end: var(--s-5); color: var(--grey-text); }
.faq details > div p + p { margin-block-start: 0.75em; }

/* ---------- 13. Markers: 24/7, Claimed, Sponsored ----------------------- */
.dot { display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--signal); vertical-align: 0.15em; }
.mark { display: inline-flex; align-items: baseline; font-size: var(--t-s); color: var(--grey-text); white-space: nowrap; }
.mark--247 { color: var(--ink); }
.mark--247::before { content: ""; flex: none; align-self: center; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: var(--signal); }
.sponsored-label { display: inline-block; margin-block-end: 6px; font-size: var(--t-s); color: var(--grey-text); }
.sponsored-label::before { content: ""; display: inline-block; width: 16px; height: 1px; margin-inline-end: 8px; background: currentColor; vertical-align: middle; }
.group-label { margin-block: var(--s-7) var(--s-3); font-size: var(--t-s); color: var(--grey-text); }
.group-label:first-child { margin-block-start: 0; }
/* Status labels (admin/dashboard): grey text with a small dot */
.badge, .status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-s); color: var(--grey-text); white-space: nowrap; }
.badge .icon { display: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); }
.status::before, .badge--success::before, .badge--warning::before, .badge--danger::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grey); }
.status--published::before, .badge--success::before { background: var(--ink); }
.status--pending::before, .badge--warning::before, .badge--emergency::before { background: var(--signal); }
.status--rejected::before, .badge--danger::before { background: var(--danger); }
.status--draft::before { background: none; box-shadow: inset 0 0 0 1px var(--grey); }
.badge--emergency { color: var(--ink); }
.badge--emergency::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }

/* Save / bookmark: 20px outline, filled when saved, 44px target */
.save-control form { display: contents; }
.save { display: inline-flex; align-items: center; gap: 8px; }
.save .icon { width: 20px; height: 20px; }
.save[aria-pressed="true"] .icon { fill: currentColor; }
.save--text { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); }
.save--text .icon { width: 18px; height: 18px; }
.save.icon-btn .save__label, .company__save .save__label { display: none; }
.company__save .save { justify-content: center; width: 44px; height: 44px; margin: -10px; }
.company__save .save .icon { width: 20px; height: 20px; }

/* Logo tile (dashboard, enquiries) */
.logo { --logo-size: 48px; display: grid; place-items: center; flex: none; width: var(--logo-size); height: var(--logo-size); overflow: hidden; border-radius: var(--radius); background: var(--field); color: var(--grey-text); font-size: calc(var(--logo-size) * 0.34); font-weight: 500; }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 10%; background: #fff; }
.logo--sm { --logo-size: 36px; }
.logo--lg { --logo-size: 72px; }
.logo--xl { --logo-size: clamp(72px, 56px + 4vw, 112px); }

/* ---------- 14. Company row: the listing "card" everywhere -------------- */
/* name + summary · category · place · markers · save, on 10 columns */
.companies, .company-list { grid-column: 3 / -1; }
.company { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; padding-block: var(--s-5); border-top: 1px solid var(--rule); }
.company:last-of-type { border-bottom: 1px solid var(--rule); }
.company__id { grid-column: 1 / span 4; }
.company__name { font-size: var(--t-l); line-height: var(--lh-head); font-weight: 500; letter-spacing: var(--track-head); }
.company__name a { transition: color 200ms var(--ease); }
.company__name a::after { content: ""; position: absolute; inset: 0; }
.company:hover .company__name a { color: var(--grey-text); }
.company__summary { max-width: 34em; margin-block-start: 6px; color: var(--grey-text); }
.company__cat { grid-column: 5 / span 2; }
.company__place { grid-column: 7 / span 2; }
.company__place small { display: block; color: var(--grey-text); }
.company__marks { grid-column: 9 / span 1; display: flex; flex-direction: column; gap: 2px; }
.company__save { grid-column: 10; justify-self: end; position: relative; z-index: 1; }
.company--sponsored .sponsored-label { grid-column: 1 / -1; grid-row: 1; }
.company--sponsored > :not(.sponsored-label) { grid-row: 2; }
.companies__more { margin-block-start: var(--s-4); }
@media (max-width: 63.99rem) {
  .companies, .company-list { grid-column: 1 / -1; }
  .company { grid-template-columns: 1fr auto; row-gap: 6px; }
  .company__id, .company__cat, .company__place, .company__marks, .company--sponsored > :not(.sponsored-label) { grid-column: 1; grid-row: auto; }
  .company__save { grid-column: 2; grid-row: 1; align-self: start; }
  .company--sponsored .sponsored-label { grid-row: auto; }
  .company__cat, .company__place { display: inline; font-size: var(--t-s); color: var(--grey-text); }
  .company__place small { display: inline; }
  .company__place small::before { content: " · "; }
  .company__marks { flex-direction: row; gap: var(--s-4); }
}

/* ---------- 15. Journal rows (home, landing pages, journal) ------------- */
.story { row-gap: var(--s-5); padding-block: var(--s-7); border-top: 1px solid var(--rule); }
.story__meta { grid-column: 1 / span 2; }
.story__meta .muted { display: block; }
.story__text { grid-column: 3 / span 6; }
.story__title { font-size: var(--t-l); line-height: var(--lh-head); font-weight: 500; letter-spacing: var(--track-head); }
.story__title a { transition: color 200ms var(--ease); }
.story:hover .story__title a { color: var(--grey-text); }
.story__body { max-width: 34em; margin-block-start: var(--s-5); color: var(--grey-text); }
.story__body .more { margin-block-start: var(--s-4); }
.story__media { grid-column: 9 / -1; }
.story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 63.99rem) {
  .story__meta, .story__text, .story__media { grid-column: 1 / -1; }
  .story__media { order: -1; }
  .story__meta { color: var(--grey-text); }
}

/* ---------- 16. Grey-to-ink index (sectors, emirates, related) ---------- */
/* <div class="index"><ul class="index__list" role="list"><li class="is-default"><a>Name<span class="index__count">3</span></a><span class="index__media"><img></span></li>… */
.index { grid-column: 3 / -1; position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); column-gap: var(--col-gap); }
.index__list { grid-column: 1 / span 6; font-size: var(--t-xl); line-height: 1.2; font-weight: 500; letter-spacing: var(--track-display); }
.index__list li { padding-block: 1px; }
.index__list a { color: var(--grey); transition: color 200ms var(--ease); }
.index__list a:hover, .index__list a:focus-visible, .index__list .is-default a { color: var(--ink); }
.index:has(.index__list a:hover, .index__list a:focus-visible) .is-default a:not(:hover, :focus-visible) { color: var(--grey); }
.index__count { display: inline-block; margin-inline-start: 8px; font-size: var(--t-s); font-weight: 400; letter-spacing: var(--track-body); line-height: 0; color: var(--grey-text); vertical-align: 1.35em; font-variant-numeric: tabular-nums; }
.index__media { position: absolute; top: 0; right: 0; width: calc(40% - var(--col-gap) * 0.4); pointer-events: none; }
.index__media img { position: absolute; inset: 0 0 auto 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); opacity: 0; transition: opacity 360ms var(--ease); }
.index__list .is-default .index__media img { opacity: 1; }
.index:has(.index__list a:hover, .index__list a:focus-visible) .is-default .index__media img { opacity: 0; }
.index__list li:has(a:hover, a:focus-visible) .index__media img { opacity: 1; }
.index__foot { grid-column: 1 / span 6; margin-block-start: var(--s-6); }
@media (max-width: 63.99rem) {
  .index { grid-column: 1 / -1; display: block; }
  .index__media, .index__count { display: none; }
  .index__list { font-size: 1.5rem; }
  .index__list a { color: var(--ink); }
  .index__list li { padding-block: 3px; }
}

/* ---------- 17. Tabs (text tabs, 1px ink underline on the current one) -- */
.tabs { border-bottom: 1px solid var(--rule); }
.tabs--sticky { position: sticky; top: var(--header-h); z-index: 30; background: var(--scrim); }
.tabs__list { display: flex; gap: var(--s-6); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 52px; margin-bottom: -1px; border-bottom: 1px solid transparent; color: var(--grey-text); white-space: nowrap; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-current]:not([aria-current="false"]), .tabs__tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.tabs__count, .tabs__tab small { font-size: var(--t-s); color: var(--grey-text); }

/* Text tokens / filters (legacy name .chip): "Received", "• 24/7 ×" */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); }
.chip-row--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chip, .token { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--grey-text); white-space: nowrap; }
.chip:hover, .token:hover { color: var(--ink); }
.chip[aria-current]:not([aria-current="false"]), .chip[aria-pressed="true"], .chip--active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.chip__count, .token span { font-size: var(--t-s); color: var(--grey-text); }
.chip .icon { width: 14px; height: 14px; }
.chip--removable button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: inherit; }
.tag-list { display: flex; flex-wrap: wrap; column-gap: 0.3em; }
.tag-list > li:not(:last-child)::after { content: ","; }
.tag { color: inherit; }

/* ---------- 18. Tables (admin, dashboard) ------------------------------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.table { width: 100%; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.table th { padding: 12px 16px 12px 0; text-align: start; font-weight: 400; color: var(--grey-text); white-space: nowrap; border-bottom: 1px solid var(--rule); }
.table th a { display: inline-flex; gap: 4px; align-items: center; }
.table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr:hover { background: color-mix(in srgb, var(--field) 55%, transparent); }
.table__primary { font-weight: 500; font-size: var(--t-body); }
.table__primary:hover { color: var(--grey-text); }
.table__sub { display: block; font-size: var(--t-s); color: var(--grey-text); }
.table__num { text-align: end !important; }
.table__actions { text-align: end; white-space: nowrap; }
.table--dense td { padding-block: 8px; }

/* ---------- 19. Empty state --------------------------------------------- */
.empty-state { display: grid; justify-items: start; gap: var(--s-3); padding-block: var(--s-7); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.empty-state__icon { display: none; }
.empty-state h2, .empty-state h3 { font-size: var(--t-l); line-height: var(--lh-head); }
.empty-state p { max-width: 36em; color: var(--grey-text); }
.empty-state .btn-group, .empty-state .btn-row { margin-block-start: var(--s-3); }

/* ---------- 20. Prose (journal, legal pages, descriptions) -------------- */
.prose { max-width: 36em; }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { margin-block-start: 2em; font-size: var(--t-m); }
.prose h3 { margin-block-start: 1.75em; font-size: var(--t-body); }
.prose h2 + *, .prose h3 + * { margin-block-start: 0.5em; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose li + li { margin-block-start: 0.4em; }
.prose blockquote { padding-inline-start: 1em; border-inline-start: 1px solid var(--ink); font-size: var(--t-m); }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { margin-block-start: 0.5em; font-size: var(--t-s); color: var(--grey-text); }
.prose--lead p:first-child { font-size: var(--t-m); line-height: 1.4; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-s); color: var(--grey-text); }
