/*
 * Production bridge shared by the seven independent tenant brands.
 * Keep this file visually neutral: brand composition belongs in site/brands/*.css.
 */

.site-header .header-inner {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(calc(-100% - 24px));
}

.skip-link:is(:focus, :focus-visible) {
  transform: translateY(0);
}

#main-content,
main > section[id] {
  scroll-margin-top: 112px;
}

.domain-brand-mark.brand-mark--header,
.domain-brand-mark.brand-mark--footer {
  flex: 0 0 auto;
  aspect-ratio: 1;
}

.header-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  color: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent-strong);
  box-shadow: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.header-booking:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero-kickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kickers > .eyebrow {
  margin: 0;
}

.cleanwhale-platform-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 3px 10px 3px 3px;
  gap: 8px;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow: none;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cleanwhale-platform-badge__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.tenant-hero-media {
  position: relative;
}

.tenant-media-credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  color: #fff;
  border-radius: 3px;
  background: rgba(0, 0, 0, .72);
  font-size: .68rem;
  line-height: 1.35;
}

.tenant-media-credit a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.hero-ai-entry {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, .95fr) minmax(430px, 1.55fr) auto;
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  background: color-mix(in srgb, var(--paper) 94%, white);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 8%, transparent);
}

.hero-ai-entry__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-ai-entry__copy > span {
  color: color-mix(in srgb, var(--ink) 64%, transparent);
  font-size: .69rem;
  font-weight: 780;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-ai-entry__copy > strong {
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.22;
}

.ai-client-list {
  min-width: 0;
}

.blog-hero .ai-client-list {
  color: #26332e;
}

.ai-client-list ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-client-list li {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 6px 9px;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--paper) 80%, white);
}

.ai-client-list li.ai-client-item--actionable {
  padding: 0;
}

.ai-client-link {
  display: grid;
  align-items: center;
  grid-template-areas:
    "mark name"
    "mark action";
  grid-template-columns: 34px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 6px 9px;
  column-gap: 8px;
  row-gap: 2px;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.ai-client-link .ai-client-mark {
  grid-area: mark;
}

.ai-client-link .ai-client-name {
  grid-area: name;
}

.ai-client-action {
  display: flex;
  grid-area: action;
  align-items: center;
  min-width: 0;
  gap: 4px;
  color: #26332e;
  font-size: .75rem;
  font-weight: 780;
  line-height: 1.2;
}

.ai-client-cue {
  min-width: 8ch;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.ai-client-arrow {
  flex: 0 0 auto;
}

.ai-client-link:hover :is(.ai-client-name strong, .ai-client-cue) {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.ai-client-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.ai-client-mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 8px;
  background: #fff;
}

.ai-client-mark img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.ai-client-name {
  display: grid;
  min-width: 0;
  gap: 1px;
  line-height: 1.1;
}

.ai-client-name strong {
  overflow: hidden;
  color: #26332e;
  font-size: .74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-client-name small {
  overflow: hidden;
  color: #47534e;
  font-size: .59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-client-note {
  display: block;
  margin-top: 6px;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: .75rem;
  line-height: 1.4;
}

.analytics-dialog[data-astro-cid-iadcamot] p[data-astro-cid-iadcamot] {
  color: #26332e;
}

.hero-ai-entry__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 15px;
  gap: 12px;
  color: var(--paper);
  border: 1px solid var(--ink);
  background: var(--ink);
  font-size: .78rem;
  font-weight: 780;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.hero-ai-entry__action:hover {
  color: var(--ink);
  background: var(--accent);
}

.hero-ai-entry__action:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ai-client-list--page {
  max-width: 720px;
  margin: 24px 0 30px;
  padding: 14px;
  border: 1px solid currentColor;
}

.ai-client-list--page ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-client-list--page .ai-client-note {
  margin-top: 10px;
}

.summary-card :is(.button-primary, .booking-start, .button-disabled):disabled {
  color: color-mix(in srgb, var(--ink) 48%, transparent);
  background: color-mix(in srgb, var(--ink) 10%, var(--paper));
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.booking-gate-status[data-kind="error"] {
  color: #a12d23;
}

:where(.header-booking, .cleanwhale-platform-badge, .footer-status-link):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.domain-brand-mark,
.story-logo,
.blog-identity img {
  display: block;
  object-fit: contain;
}

.story-layout,
.results-layout,
.reviews-layout,
.blog-hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}

.assistant-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.assistant-copy > p {
  max-width: 66ch;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.assistant-endpoint,
.ai-endpoint label {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.assistant-endpoint span,
.ai-endpoint label > span {
  font-size: .78rem;
  font-weight: 750;
}

.assistant-endpoint code,
.ai-endpoint textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
}

.ai-endpoint textarea {
  resize: none;
  white-space: pre-wrap;
  word-break: break-all;
}

.ai-capabilities ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.ai-capabilities li + li {
  margin-top: 10px;
}

.story-identity,
.blog-identity {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.story-identity img,
.blog-identity img {
  width: clamp(64px, 8vw, 104px);
  height: auto;
}

.story-identity span,
.blog-identity span {
  font-size: .8rem;
}

.story-brand-name {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.story-domain {
  color: color-mix(in srgb, currentColor 66%, transparent);
  font-weight: 650;
  letter-spacing: .04em;
}

.story-copy,
.story-copy p,
.reviews-brand > p,
.platform-quality > p,
.blog-hero-layout p,
.blog-article p {
  max-width: 68ch;
}

.story-copy { min-width: 0; }

.story-descriptor {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.before-after-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  border: 1px solid currentColor;
}

.before-after-panel {
  position: relative;
  display: grid;
  min-height: 220px;
  padding: 18px;
  overflow: hidden;
  border-right: 1px solid currentColor;
}

.before-after-panel:nth-child(2) {
  border-right: 0;
}

.before-after-panel span {
  position: relative;
  z-index: 1;
  align-self: start;
  font-size: .75rem;
  font-weight: 800;
}

.evidence-photo-slot {
  align-self: center;
  justify-self: center;
  width: min(72%, 210px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: .26;
}

.before-after-panel:nth-child(2) .evidence-photo-slot {
  opacity: .48;
}

.evidence-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border-top: 1px solid currentColor;
}

.evidence-empty p,
.review-empty p {
  margin-bottom: 0;
}

.review-empty,
.platform-quality {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid currentColor;
}

.quality-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-block: 24px;
}

.quality-numbers p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-right: 16px;
}

.quality-numbers p + p {
  padding-left: 16px;
  border-left: 1px solid currentColor;
}

.quality-numbers strong {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.quality-numbers span,
.platform-quality small {
  font-size: .78rem;
}

.platform-quality :is(h3, p, strong, span, small, a, .eyebrow) {
  color: inherit !important;
}

.platform-quality small,
.platform-quality > a {
  display: block;
  margin-top: 12px;
}

.platform-quality a,
.journal-index-link,
.journal-card a,
.blog-back,
.footer-links a {
  color: inherit;
  font-weight: 750;
  text-underline-offset: 4px;
}

.journal-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.journal-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid currentColor;
}

.journal-card > span {
  font-size: .76rem;
  font-weight: 800;
}

.journal-card p {
  flex: 1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.blog-main {
  min-height: 70vh;
}

.blog-hero-layout {
  align-items: end;
}

.blog-hero h1 {
  margin-block: 20px;
}

.blog-identity {
  justify-self: end;
  min-width: min(100%, 260px);
}

.blog-contents-heading {
  max-width: 720px;
  margin-bottom: clamp(32px, 7vw, 80px);
}

.blog-articles {
  display: grid;
  gap: clamp(48px, 10vw, 120px);
}

.blog-article {
  scroll-margin-top: 120px;
}

.blog-article-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  margin-bottom: 32px;
}

.blog-article-heading > span {
  padding-top: 8px;
  font-weight: 800;
}

.blog-article-heading h2 {
  max-width: 22ch;
  margin-top: 0;
}

.blog-article-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-left: 96px;
}

.blog-article-body section {
  padding-top: 18px;
  border-top: 1px solid currentColor;
}

.blog-booking-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(28px, 5vw, 54px);
  border-block: 1px solid currentColor;
}

@media (max-width: 1020px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .primary-nav {
    display: none;
  }

  .story-layout,
  .results-layout,
  .reviews-layout,
  .blog-hero-layout,
  .assistant-card {
    grid-template-columns: 1fr;
  }

  .blog-identity {
    justify-self: start;
  }

  .hero-ai-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-ai-entry .ai-client-list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-booking {
    display: none;
  }

  .hero-kickers {
    display: grid;
    justify-items: start;
  }

  .cleanwhale-platform-badge {
    min-height: 34px;
    font-size: .72rem;
  }

  .cleanwhale-platform-badge__logo {
    width: 26px;
    height: 26px;
  }

  .hero-ai-entry {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 15px;
  }

  .hero-ai-entry .ai-client-list {
    grid-column: auto;
  }

  .ai-client-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-ai-entry__action {
    width: 100%;
  }

  .ai-client-list--page {
    margin-block: 18px 24px;
    padding: 10px;
  }

  .before-after-frame,
  .journal-grid,
  .blog-article-body {
    grid-template-columns: 1fr;
  }

  .before-after-panel {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid currentColor;
  }

  .before-after-panel:nth-child(2) {
    border-bottom: 0;
  }

  .quality-numbers {
    grid-template-columns: 1fr;
  }

  .quality-numbers p + p {
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid currentColor;
    border-left: 0;
  }

  .journal-heading,
  .blog-booking-card {
    display: grid;
    justify-items: start;
  }

  .journal-card {
    min-height: 0;
  }

  .blog-article-heading {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .blog-article-body {
    margin-left: 0;
  }
}

.trust-score {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.trust-score > * {
  margin: 0;
}

.trust-score__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.trust-score__value strong {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.trust-score__value span {
  font-size: 1rem;
  opacity: .7;
}

.trust-score__components {
  display: grid;
  gap: 6px;
  max-width: 52ch;
  padding: 0;
  list-style: none;
}

.trust-score__components li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font-size: .84rem;
}

.trust-score__components strong small {
  font-size: .72em;
  opacity: .7;
}

.trust-score__pending {
  max-width: 60ch;
  font-size: .95rem;
  line-height: 1.5;
}

.trust-score__provenance {
  display: block;
  max-width: 60ch;
  font-size: .78rem;
  line-height: 1.45;
}

.trust-score__method summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 750;
}

.trust-score__method ol {
  display: grid;
  gap: 6px;
  max-width: 68ch;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: .8rem;
  line-height: 1.45;
}

.ai-setup h2 small {
  display: block;
  margin-top: 2px;
  font-size: .85rem;
  font-weight: 500;
  opacity: .78;
}

.ai-setup-steps {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
  padding-left: 18px;
}

.ai-snippet-label {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 750;
}

.ai-snippet {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid currentColor;
  font-size: .78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-machine-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ai-machine-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid currentColor;
}

.ai-machine-list a {
  color: inherit;
  font-weight: 750;
}

.ai-machine-list code {
  font-size: .75rem;
  overflow-wrap: anywhere;
  opacity: .8;
}

.ai-machine-note {
  max-width: 68ch;
}

.ai-trust {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid currentColor;
}

@media (min-width: 761px) {
  .ai-machine-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-booking {
    scroll-behavior: auto;
    transition: none;
  }
}
