.discovery-directory,
.discovery-profile {
  color: var(--ln-ink);
  font-family: var(--ln-font);
  padding-block: clamp(.85rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4.5rem);
}

body[data-discovery-only]:has(.discovery-directory) > .site-breadcrumb { background: var(--ln-paper); }
body[data-discovery-only]:has(.discovery-directory) > .site-breadcrumb a { color: var(--ln-accent-dark); }
body[data-discovery-only] .discovery-directory {
  --operator-directory-gutter: clamp(1rem, 3vw, 2.5rem);
  width: min(calc(100% - var(--operator-directory-gutter) * 2), 77rem);
  margin-inline: auto;
  scroll-margin-block-start: 4.5rem;
}

.discovery-directory :is(h1, h2, h3, p, ul),
.discovery-profile :is(h1, h2, h3, p, ul) { margin: 0; }
.discovery-directory h1,
.discovery-profile h1 {
  color: var(--ln-ink);
  font: 800 clamp(1.65rem, 4vw, 2.55rem)/1.07 var(--ln-font);
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
}

.discovery-directory-heading {
  display: grid;
  gap: .55rem;
  margin-bottom: clamp(1.05rem, 3vw, 1.65rem);
}

.discovery-directory-heading > p,
.discovery-results-heading > p,
.discovery-card-identity > p,
.discovery-profile-place,
.discovery-profile-section p,
.discovery-contact p { color: var(--ln-muted); }

.discovery-directory-layout,
.discovery-directory-sidebar,
.discovery-directory-search,
.discovery-directory-results,
.discovery-shared-results,
.discovery-profile-layout {
  min-width: 0;
  display: grid;
  gap: .9rem;
  align-content: start;
}

.discovery-directory-search { gap: .5rem; }
.discovery-query {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  gap: .38rem;
  padding: .18rem .18rem .18rem .72rem;
  border: 1px solid var(--ln-line);
  border-radius: .9rem;
  background: #f3f4f4;
}

.discovery-query > svg { width: 1.13rem; height: 1.13rem; }
.discovery-query input {
  width: 100%;
  min-height: 2.55rem;
  padding: .25rem .25rem .25rem .2rem;
  border: 0;
  border-radius: .2rem;
  background: transparent;
  color: var(--ln-ink);
  font: inherit;
}

:is(.discovery-directory, .discovery-profile) button { font-family: inherit; cursor: pointer; }
:is(.discovery-directory, .discovery-profile) :is(input, select, textarea) {
  min-width: 0;
  max-width: 100%;
  font: inherit;
}

.discovery-primary,
.discovery-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: fit-content;
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ln-action, #ff5722);
  color: var(--ln-on-action, #fff);
  font: 720 .9rem/1.2 var(--ln-font);
  text-decoration: none;
}

.discovery-primary:hover { background: var(--ln-action-hover, #e64a19); color: var(--ln-on-action, #fff); }
.discovery-primary:disabled, .discovery-icon-button:disabled { opacity: .6; cursor: wait; }
.discovery-query .discovery-primary { min-height: 2.45rem; padding-inline: .62rem; }
.discovery-query .discovery-primary svg { width: 1.05rem; height: 1.05rem; }
.discovery-text-link { color: var(--ln-accent-dark); font-weight: 700; text-underline-offset: .18em; width: fit-content; }
button.discovery-text-link,
.discovery-direct-contact > button {
  min-height: 2.75rem;
  padding: .48rem .75rem;
  border: 0;
  border-radius: 999px;
  background: var(--ln-secondary-action, #f0f1f1);
  color: var(--ln-on-secondary-action, #17191a);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 710;
}
button.discovery-text-link:hover { background: var(--ln-secondary-action-hover, #e5e7eb); }
.discovery-direct-contact > button { background: var(--ln-action, #ff5722); color: var(--ln-on-action, #fff); }
.discovery-direct-contact > button:hover { background: var(--ln-action-hover, #e64a19); }
.discovery-text-link:hover { text-decoration-thickness: .14em; }

.discovery-filters {
  border: 1px solid var(--ln-line);
  border-radius: .9rem;
  background: var(--ln-white);
}

.landing-content .discovery-filters > .public-filter-heading { display: flex; align-items: center; gap: .4rem; margin: .65rem .7rem 0; }
.discovery-filters > .public-filter-heading svg { width: 1.05rem; height: 1.05rem; }
.discovery-filter-fields { display: grid; gap: .65rem; padding: .65rem .7rem .75rem; }
.discovery-filter-apply { width: calc(100% - 1.4rem); margin: 0 .7rem .75rem; }
.discovery-search-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .7rem; font-size: .83rem; }
.discovery-map-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  padding-inline: .68rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ln-secondary-action, #f0f1f1);
  color: var(--ln-on-secondary-action, #17191a);
  font-weight: 720;
  text-decoration: none;
}
.discovery-map-link:hover { background: var(--ln-secondary-action-hover, #e5e7eb); color: var(--ln-on-secondary-action, #17191a); }
.discovery-map-link svg { width: 1rem; height: 1rem; }
.discovery-filter-fields > label,
.discovery-profile-share,
.discovery-direct-contact form > label {
  display: grid;
  gap: .25rem;
  font-size: .85rem;
  font-weight: 700;
}

.discovery-filter-fields select,
.discovery-profile-share input,
.discovery-direct-contact :is(input:not([type='checkbox']), textarea) {
  width: 100%;
  min-height: 2.75rem;
  padding: .48rem .6rem;
  border: 1px solid var(--ln-line);
  border-radius: .65rem;
  background: var(--ln-white);
  color: var(--ln-ink);
  font-size: 1rem;
  font-weight: 450;
}

.discovery-applied { display: flex; flex-wrap: wrap; gap: .34rem; padding: 0; list-style: none; }
.discovery-applied > li { padding: .25rem .58rem; border-radius: 999px; background: var(--ln-action, #ff5722); color: var(--ln-on-action, #fff); font-size: .8rem; font-weight: 710; overflow-wrap: anywhere; }
.discovery-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .65rem; }
.discovery-results-heading h2 { font: 780 clamp(1.08rem, 2.5vw, 1.52rem)/1.2 var(--ln-font); overflow-wrap: anywhere; letter-spacing: -.026em; }
.discovery-results-heading p { font-size: .8rem; }
.discovery-result-batch > div,
.discovery-shared-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem .62rem; }
.discovery-shared-results > p { grid-column: 1 / -1; }
.discovery-page-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; margin-block: 1rem; }
.discovery-page-controls > p:empty { display: none; }
.discovery-page-controls a { display: inline-flex; gap: .4rem; align-items: center; }
.discovery-empty { border: 1px solid var(--ln-line); border-radius: 1.1rem; background: var(--ln-white); padding: 1rem; }

.discovery-operator-card {
  position: relative;
  min-width: 0;
  overflow: clip;
  border-radius: .9rem;
  background: var(--ln-white);
  box-shadow: inset 0 0 0 1px var(--ln-line);
}

.discovery-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.08;
  overflow: hidden;
  border-radius: .9rem .9rem .65rem .65rem;
  background: #edf2f2;
}

.discovery-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.discovery-operator-card .operator-mark,
.discovery-profile-identity .operator-mark {
  display: grid;
  place-items: center;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  color: #15574f;
  font-weight: 800;
  background: transparent;
}
.discovery-operator-card .operator-mark { width: 72%; max-width: 7rem; max-height: 60%; padding: .15rem; }
.discovery-operator-card .operator-mark-directory-logo-dark,
.discovery-profile-identity .operator-mark-directory-logo-dark { background: #172321; }
.discovery-image-label {
  position: absolute;
  bottom: .28rem;
  left: .28rem;
  z-index: 1;
  padding: .12rem .34rem;
  border-radius: .4rem;
  background: rgb(0 0 0 / .78);
  color: white;
  font: 650 .62rem/1.3 var(--ln-font);
  white-space: nowrap;
}

.discovery-card-identity { display: grid; align-content: start; gap: .28rem; padding: .58rem .55rem .65rem; }
.discovery-card-identity > h3 { font: 780 .9rem/1.2 var(--ln-font); letter-spacing: -.012em; overflow-wrap: anywhere; }
.discovery-card-identity > h3 a { color: var(--ln-ink); text-decoration: none; }
.discovery-card-identity > h3 a::after { position: absolute; z-index: 1; inset: 0; border-radius: .9rem; content: ''; }
.discovery-card-identity > h3 a:focus-visible { outline: none; }
.discovery-card-identity > h3 a:focus-visible::after { outline: 2px solid var(--ln-accent-dark); outline-offset: -2px; }
@media (hover: hover) and (forced-colors: none) {
  .discovery-operator-card:has(.discovery-card-identity > h3 a:hover):not(:has(:focus-visible)) {
    box-shadow: var(--livery-hover-shadow);
  }
}
.discovery-operator-card:hover .discovery-card-identity > h3 a { text-decoration: underline; text-underline-offset: .12em; }
.discovery-card-identity > p { font-size: .72rem; line-height: 1.26; overflow-wrap: anywhere; }
.discovery-card-identity > .discovery-card-service { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.discovery-operator-card .operator-verification,
.discovery-profile .operator-verification {
  display: inline-flex;
  align-items: baseline;
  gap: .18rem;
  width: fit-content;
  padding: 0;
  background: transparent;
  color: var(--ln-muted);
  border: 0;
  font: 670 .7rem/1.22 var(--ln-font);
  white-space: normal;
}
.discovery-operator-card .operator-verification-verified,
.discovery-profile .operator-verification-verified { color: #166353; }
.discovery-icon-button {
  z-index: 2;
  width: 2.55rem;
  min-height: 2.55rem;
  padding: .35rem;
  border-color: transparent;
  border-radius: 50%;
  background: var(--ln-secondary-action, #f0f1f1);
  color: var(--ln-on-secondary-action, #17191a);
  box-shadow: 0 1px 5px rgb(0 0 0 / .12);
}
.discovery-icon-button svg { width: 1.08rem; height: 1.08rem; }
.discovery-card-media > .discovery-icon-button { position: absolute; top: .22rem; right: .22rem; width: 2.1rem; min-height: 2.1rem; }
@media (pointer: coarse) {
  .discovery-card-media > .discovery-icon-button { width: 2.75rem; min-height: 2.75rem; }
}
.discovery-icon-button:hover { background: var(--ln-secondary-action-hover, #e5e7eb); }
.discovery-icon-button[aria-pressed='true'] { background: var(--ln-action, #ff5722); color: var(--ln-on-action, #fff); }
.discovery-icon-button[aria-pressed='true']:hover { background: var(--ln-action-hover, #e64a19); }
.discovery-icon-button[aria-pressed='true'] svg { fill: currentColor; }

.discovery-profile { display: grid; gap: .75rem; }
.discovery-profile-gallery {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #edf1f1;
}
.discovery-profile-gallery figure { position: relative; margin: 0; overflow: hidden; }
.discovery-profile-gallery figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.discovery-profile-cover img { aspect-ratio: 1.5; object-position: center 45%; }
.discovery-profile-gallery .discovery-image-label { padding: .18rem .38rem; bottom: .55rem; left: .55rem; }
.discovery-gallery-preview { display: none; }
.discovery-gallery-back, .discovery-gallery-actions { position: absolute; top: .55rem; }
.discovery-gallery-back { left: .55rem; }
.discovery-gallery-actions { display: flex; gap: .35rem; right: .55rem; }
.discovery-fleet-link {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 2.35rem;
  padding-inline: .5rem;
  border-radius: 999px;
  background: var(--ln-secondary-action, #f0f1f1);
  color: var(--ln-on-secondary-action, #17191a);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}
.discovery-fleet-link:hover { background: var(--ln-secondary-action-hover, #e5e7eb); }
.discovery-fleet-link svg { width: 1rem; height: 1rem; }
.discovery-profile-layout { gap: .8rem; align-items: start; }
.discovery-profile-summary,
.discovery-contact,
.discovery-profile-section {
  display: grid;
  gap: .6rem;
  min-width: 0;
  padding: .85rem;
  border-radius: 1.05rem;
  background: var(--ln-white);
}
.discovery-profile-identity { display: flex; align-items: center; gap: .5rem; }
.discovery-profile-identity .operator-mark { flex: 0 0 2.65rem; width: 2.65rem; aspect-ratio: 1; padding: .15rem; border-radius: .62rem; }
.discovery-profile-place { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .85rem; }
.discovery-profile-place > p { display: flex; align-items: flex-start; gap: .2rem; }
.discovery-profile-place svg { width: .9rem; height: .9rem; margin-top: .15rem; flex: none; }
.discovery-profile-place .operator-verification { background: var(--ln-sage); padding: .24rem .46rem; border-radius: 2rem; }
.discovery-profile-place .operator-verification-unverified { color: #41474a; background: #f0f1f1; }
.discovery-profile-summary > .discovery-text-link { font-size: .85rem; }
.discovery-profile-description { font-size: .88rem; line-height: 1.47; }
.discovery-contact-primary { width: 100%; justify-content: space-between; margin-top: .1rem; }
.discovery-contact-primary svg { width: 1.1rem; height: 1.1rem; }
.discovery-profile-content { display: grid; align-content: start; gap: .7rem; min-width: 0; }
.discovery-contact, .discovery-profile-section { scroll-margin-top: var(--landing-sticky-top, 5rem); }
.discovery-profile-section h2,
.discovery-profile .operator-suggestions-heading h2,
.discovery-contact h2 { font: 780 clamp(1rem, 2.4vw, 1.22rem)/1.2 var(--ln-font); letter-spacing: -.024em; }
.discovery-profile-section summary { cursor: pointer; color: var(--ln-ink); font-weight: 700; }
.discovery-profile-section :is(strong, summary) { color: var(--ln-ink); }
.discovery-profile-section details > ul { margin-block: .35rem; }
.discovery-airport-groups { display: grid; gap: .3rem; }
.discovery-profile-facts { display: flex; flex-wrap: wrap; gap: .3rem .42rem; padding: 0; list-style: none; }
.discovery-profile-facts > li { padding: .22rem .48rem; border-radius: .5rem; background: #f1f5f4; font-size: .8rem; }
.discovery-profile-section:not(:has(.discovery-fleet)) > p { font-size: .88rem; }
.discovery-fleet { display: grid; gap: .48rem; padding: 0; list-style: none; }
.discovery-fleet li {
  display: flex;
  align-items: center;
  gap: .62rem;
  min-width: 0;
  padding: .42rem;
  border-radius: .75rem;
  background: #f5f6f6;
}
.discovery-fleet img { display: block; width: min(34%, 8.5rem); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .54rem; }
.discovery-fleet h3 { font: 730 .92rem/1.23 var(--ln-font); }
.discovery-fleet p { font-size: .84rem; }
.discovery-fleet small { color: var(--ln-muted); }
.discovery-fleet li[id] { scroll-margin-block-start: var(--landing-sticky-top, 5rem); }
.discovery-fleet .discovery-icon-button { flex: 0 0 auto; margin-inline-start: auto; }
.discovery-contact > ul { display: grid; gap: .35rem; padding: 0; list-style: none; }
.discovery-contact > ul a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 2.55rem;
  padding: .25rem .48rem;
  border-radius: .68rem;
  background: #f4f5f5;
  color: var(--ln-ink);
  font-size: .86rem;
  font-weight: 710;
  text-decoration: none;
}
.discovery-contact > ul a:hover { background: var(--ln-sage); }
.discovery-contact > ul a > svg { width: .9rem; color: var(--ln-muted); }
.discovery-contact-icon { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .5rem; background: var(--ln-white); }
.discovery-contact-icon svg { width: .94rem; }
.discovery-direct-contact { display: grid; gap: .44rem; padding-top: .62rem; border-top: 1px solid var(--ln-line); }
.discovery-direct-contact h3 { font: 740 .9rem/1.23 var(--ln-font); }
.discovery-direct-contact > p { font-size: .85rem; }
.discovery-direct-contact form { display: grid; gap: .62rem; }
.discovery-direct-contact button { width: fit-content; }
.discovery-direct-contact form > .discovery-contact-consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 450; }
.discovery-direct-contact form > .discovery-contact-consent input { margin-top: .24rem; accent-color: var(--ln-accent-dark); }
.discovery-direct-contact textarea { resize: vertical; }
.discovery-profile-owner { display: flex; flex-wrap: wrap; gap: .35rem .75rem; padding-top: .58rem; border-top: 1px solid var(--ln-line); font-size: .83rem; }
.landing-content .discovery-coverage-group > h3 { margin: 0 0 .4rem; color: var(--ln-ink); font-size: .9rem; font-weight: 680; }
.discovery-profile .operator-suggestions { min-width: 0; }
.discovery-profile .operator-suggestion { background: var(--ln-white); border-color: var(--ln-line); border-radius: 1rem; }

.discovery-visually-hidden,
.discovery-status:empty,
.discovery-direct-contact [data-direct-status]:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.discovery-directory .discovery-status:not(:empty) {
  position: fixed;
  z-index: 12;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  max-width: min(24rem, calc(100vw - 1.5rem));
  padding: .55rem .72rem;
  border-radius: .75rem;
  background: #15191a;
  color: var(--ln-white);
  pointer-events: none;
}

@media (width >= 35rem) {
  .discovery-result-batch > div, .discovery-shared-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (width < 62rem) {
  .discovery-profile { padding-inline: .82rem; }
  .discovery-directory-search:not(:has(details[open])) { grid-template-columns: max-content minmax(0, 1fr); align-items: center; }
  .discovery-directory-search > .discovery-query { grid-column: 1 / -1; }
  .discovery-profile-gallery { margin-inline: -.18rem; }
  .discovery-profile-summary { padding-inline: .72rem; }
  .discovery-query .discovery-primary span { display: none; }
}

@media (width <= 48rem) {
  .discovery-profile { padding-inline: 0; }
}

@media (width < 22rem) {
  [data-discovery-only]:has([data-operator-discovery]) > .landing-header .landing-shell { padding-inline: .35rem; }
}

@media (width >= 62rem) {
  .discovery-directory-layout { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); }
  .discovery-directory-sidebar { padding: .72rem; border: 1px solid var(--ln-line); border-radius: 1rem; background: var(--ln-white); }
  .discovery-query button svg { display: none; }
  .discovery-card-media { aspect-ratio: 1.56; }
  .discovery-card-identity { padding: .6rem .65rem; }
  .discovery-card-identity > h3 { font-size: 1rem; }
  .discovery-card-identity > p, .discovery-operator-card .operator-verification { font-size: .81rem; }
  .discovery-card-media > .discovery-icon-button { top: .4rem; right: .4rem; }
  .discovery-profile-page > .discovery-profile { padding-top: 0; }
  .discovery-profile-gallery:has(.discovery-gallery-preview) { grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: .25rem; }
  .discovery-profile-cover img { max-height: 28rem; aspect-ratio: 2.12; }
  .discovery-gallery-preview { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .25rem; }
  .discovery-gallery-preview img { position: absolute; }
  .discovery-profile-layout { grid-template-columns: minmax(0, 1.8fr) minmax(17rem, 1fr); grid-template-rows: auto 1fr; gap: .75rem 1.4rem; }
  .discovery-profile-summary { grid-area: 1 / 1; }
  .discovery-contact { grid-area: 1 / 2 / span 2; background: #f2f3f3; }
  .discovery-contact > ul a { background: var(--ln-white); }
  .discovery-contact-icon { background: #f2f3f3; }
  .discovery-profile-content { grid-area: 2 / 1; }
  .discovery-contact-primary { width: fit-content; min-width: 11rem; }
  .discovery-directory .discovery-status:not(:empty) { bottom: 1rem; }
}

.operator-activities-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .85rem; list-style: none; padding: 0; }
.operator-activity-card { overflow: hidden; border: 1px solid var(--ln-line, #e5e7eb); border-radius: 1rem; background: white; }
.operator-activity-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.operator-activity-details { display: grid; gap: .6rem; padding: 1rem; }
.operator-activity-details :is(h3, p) { margin: 0; }
.operator-activity-meta, .operator-activity-rsvp [role="status"] { color: var(--ln-muted, #586165); font-size: .88rem; }
.operator-activity-rsvp { display: grid; gap: .45rem; }
.operator-activity-rsvp :is(select, button) { padding: .6rem .75rem; min-height: 2.5rem; border: 1px solid var(--ln-line, #e5e7eb); border-radius: .65rem; font: inherit; }
.operator-activity-rsvp button { border-color: transparent; border-radius: 999px; background: var(--ln-action, #ff5722); color: var(--ln-on-action, #fff); cursor: pointer; font-weight: 700; }
.operator-activity-rsvp button:hover:not(:disabled) { background: var(--ln-action-hover, #e64a19); }
.operator-activity-rsvp option { background: white; color: #172623; }

.discovery-profile-page {
  --operator-profile-gutter: clamp(1rem, 3vw, 2.5rem);
  --operator-profile-width: min(calc(100% - var(--operator-profile-gutter) * 2), 95rem);
}
.discovery-profile-page > .landing-shell.discovery-profile {
  width: var(--operator-profile-width);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}
.discovery-profile-page > .discovery-profile-gallery {
  width: 100%;
  height: clamp(13.75rem, 32vw, 26.25rem);
  margin: 0;
  padding: 0;
  border-radius: 0;
  gap: .2rem;
}
.discovery-profile-page .discovery-profile-cover img { max-height: none; }
.discovery-profile-page :is(.discovery-profile-cover, .discovery-gallery-preview figure) > a { display: block; height: 100%; }
.discovery-profile-page .discovery-gallery-preview { gap: .2rem; }
.discovery-profile-page .discovery-gallery-preview:has(> figure:only-child) { grid-template-rows: minmax(0, 1fr); }
.discovery-profile-page .discovery-gallery-back,
.discovery-profile-page .discovery-gallery-actions { top: .8rem; }
.discovery-profile-page .discovery-gallery-back { left: .8rem; }
.discovery-profile-page .discovery-gallery-actions { right: .8rem; }
.discovery-profile-gallery .discovery-icon-button { width: 2.75rem; min-height: 2.75rem; }
.discovery-profile-page .discovery-fleet-link { right: .8rem; bottom: .8rem; min-height: 2.75rem; padding-inline: .75rem; }
.discovery-profile-page > .discovery-profile {
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-block-start: clamp(1rem, 3vw, 2.5rem);
}
.discovery-profile-page .discovery-profile-layout { gap: clamp(1.15rem, 3vw, 2.5rem); }
.discovery-profile-summary { padding: .2rem 0 .45rem; background: transparent; gap: .65rem; }
.discovery-profile-summary h1 {
  font-size: clamp(1.9rem, 4vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: pretty;
}
.discovery-profile-identity { gap: .75rem; }
.discovery-profile-identity .operator-mark {
  flex-basis: clamp(2.8rem, 5vw, 4rem);
  width: clamp(2.8rem, 5vw, 4rem);
  border-radius: .9rem;
}
.discovery-profile-place { gap: .4rem .8rem; font-size: .9rem; }
.discovery-profile-summary .discovery-profile-description { max-width: 72ch; font-size: clamp(.95rem, 1.4vw, 1.05rem); line-height: 1.55; }
.discovery-profile-actions .discovery-contact-primary { width: auto; min-width: 0; margin-top: 0; }
.discovery-profile-actions > .discovery-text-link { font-size: .86rem; }
.discovery-profile-actions > .discovery-text-link,
.discovery-profile-owner > .discovery-text-link,
.discovery-direct-contact > .discovery-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.discovery-profile-content,
.discovery-profile-highlights { display: grid; align-content: start; gap: 1rem; min-width: 0; }
.discovery-profile-section { padding: clamp(1rem, 2.4vw, 1.4rem); gap: .85rem; border: 1px solid var(--ln-line); border-radius: 1.1rem; }
.discovery-profile-page .discovery-profile-section h2,
.discovery-profile-page .discovery-contact h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -.025em; }
.discovery-profile-section.operator-business-offers {
  padding: .1rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.discovery-profile-page .discovery-contact {
  gap: .8rem;
  padding: clamp(1rem, 2.35vw, 1.35rem);
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--ln-ink) 3.5%, var(--ln-white));
}
.discovery-contact > ul { gap: .35rem; }
.discovery-contact > ul a {
  min-height: 2.9rem;
  padding: .4rem .65rem;
  border: 0;
  border-radius: .45rem;
  background: var(--ln-white);
  overflow-wrap: anywhere;
}
.discovery-contact-icon { background: #edf4f2; color: #235d53; }
.discovery-contact > .discovery-direct-contact { padding-top: .9rem; }
.discovery-direct-contact,
.operator-business-activities > h2,
.operator-business-details > h3 { scroll-margin-block-start: var(--landing-sticky-top, 5rem); }
.discovery-profile-owner { padding-top: .8rem; }
.discovery-profile-owner .discovery-text-link { text-decoration: none; }
.discovery-profile-owner .discovery-text-link:hover { text-decoration: underline; }
.operator-activity-details .operator-activity-rsvp :is(select, button) { width: 100%; min-height: 2.75rem; }
.operator-activity-details .operator-activity-rsvp button:disabled { opacity: .58; cursor: default; }
.discovery-profile-content .discovery-fleet li { padding: .6rem; }
.discovery-profile-content .discovery-fleet h3 { font-size: .99rem; }
.operator-photo-dialog {
  box-sizing: border-box;
  width: min(94vw, 68rem);
  max-width: none;
  max-height: 92dvh;
  padding: clamp(.85rem, 3vw, 1.4rem);
  border: 1px solid var(--ln-line);
  border-radius: 1.1rem;
  background: var(--ln-white);
  color: var(--ln-ink);
}
.operator-photo-dialog:modal { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .75rem; }
.operator-photo-dialog::backdrop { background: rgb(16 20 24 / .62); }
.operator-photo-header, .operator-photo-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.operator-photo-header h2, .operator-photo-controls p { margin: 0; }
.operator-photo-stage { display: grid; justify-items: center; min-height: 0; padding: .3rem; background: var(--ln-paper); }
.operator-photo-stage img { display: block; width: 100%; height: auto; max-height: 69dvh; object-fit: contain; }
.operator-photo-dialog button {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--ln-secondary-action);
  color: var(--ln-on-secondary-action);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}
.operator-photo-dialog .operator-photo-controls button[hidden] { display: none; }
.operator-photo-controls:has(button[hidden]) { justify-content: center; }
@media (width < 48rem) {
  .operator-photo-dialog { padding-block: max(.85rem, var(--livery-dialog-safe-top, 0px)) max(.85rem, var(--livery-dialog-safe-bottom, 0px)); }
  .operator-photo-stage { align-items: center; }
}

@media (max-width: 30rem) {
  .discovery-profile-page > .discovery-profile-gallery { height: clamp(12rem, 56vw, 17rem); }
  .discovery-profile-summary { justify-items: center; text-align: center; }
  .discovery-profile-summary :is(.discovery-profile-place, .operator-business-jumps, .livery-cta-pair) { justify-content: center; }
  .discovery-contact > ul a { font-size: .92rem; }
  .discovery-profile-owner { padding-top: .5rem; }
}

[data-livery-theme="midnight"] [data-discovery-only] :is(.discovery-query, .discovery-fleet li) {
  background: var(--ln-sage);
}

[data-livery-theme="midnight"] [data-discovery-only] .discovery-contact > ul a:hover {
  background: var(--ln-secondary-action);
}

[data-livery-theme="midnight"] [data-discovery-only] :is(
  .discovery-operator-card .operator-verification-verified,
  .discovery-operator-card .operator-mark,
  .discovery-profile-identity .operator-mark
) { color: var(--ln-accent-dark); }

[data-livery-theme="midnight"] [data-discovery-only] .discovery-directory .discovery-status:not(:empty) {
  background: var(--ln-secondary-action);
  color: var(--ln-ink);
}

[data-livery-theme="midnight"] [data-discovery-only] :is(
  .discovery-query, .discovery-filter-fields select,
  .discovery-profile-share input, .discovery-direct-contact :is(input:not([type='checkbox']), textarea),
  .operator-activity-rsvp select
) { border-color: var(--ln-control-line); }

[data-livery-theme="midnight"] [data-discovery-only] .operator-activity-rsvp select {
  background: var(--ln-white);
  color: var(--ln-ink);
}

@media (min-width: 62rem) {
  .discovery-profile-page .discovery-profile-layout {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, .465fr);
    grid-template-areas: 'intro contact' 'highlights contact' 'details contact';
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }
  .discovery-profile-summary { grid-area: intro; }
  .discovery-profile-highlights { grid-area: highlights; }
  .discovery-contact { grid-area: contact; }
  .discovery-profile-content { grid-area: details; }
}
