/* idz-base: only what theme.json cannot express. */

:focus-visible {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 2px;
}

.has-brand-background-color :focus-visible,
.has-brand-background-color .wp-element-button:focus-visible {
  outline-color: var(--wp--preset--color--on-brand);
}

.wp-element-button,
.wp-block-button__link {
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

/* Text on brand or accent fills always uses the computed on-color (ADR-0019). */
.has-brand-background-color,
.has-brand-background-color :is(h1, h2, h3, h4, h5, h6, p, li, cite, summary) {
  color: var(--wp--preset--color--on-brand);
}

.has-brand-background-color a:not(.wp-element-button) {
  color: var(--wp--preset--color--on-brand);
}

.has-accent-background-color,
.has-accent-background-color :is(h1, h2, h3, h4, h5, h6, p, li, cite, summary),
.has-accent-background-color a:not(.wp-element-button) {
  color: var(--wp--custom--idz--on-accent);
}

/* Secondary button: ink label (4.5:1 text), brand border (3:1 UI), brand fill on hover. */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink);
  padding-top: calc(0.875rem - 2px);
  padding-bottom: calc(0.875rem - 2px);
}

.has-brand-background-color .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--on-brand);
  border-color: var(--wp--preset--color--on-brand);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
}

/* Eyebrow label used above headings. */
.idz-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Details (FAQ) without JS. */
.wp-block-details {
  border-bottom: 1px solid var(--wp--preset--color--surface-alt);
  padding: var(--wp--preset--spacing--30) 0;
}

.wp-block-details > summary {
  cursor: pointer;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--surface);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Pattern helpers (presentation only). */
.idz-logo-wall img {
  filter: grayscale(1);
  opacity: 0.7;
  max-height: 40px;
  width: auto;
}

.idz-step-number {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  color: var(--wp--preset--color--brand);
  letter-spacing: 0.04em;
}

.idz-stat {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 700;
  line-height: 1;
  color: var(--wp--preset--color--brand);
}

.idz-card {
  border-radius: var(--wp--custom--idz--radius-default);
}

.wp-block-table.idz-fees table {
  border-collapse: collapse;
}

.wp-block-table.idz-fees td,
.wp-block-table.idz-fees th {
  border: 0;
  border-bottom: 1px solid var(--wp--preset--color--surface-alt);
  padding: var(--wp--preset--spacing--20) 0;
}

.wp-block-table.idz-fees td:last-child,
.wp-block-table.idz-fees th:last-child {
  text-align: right;
  font-weight: 600;
}

.idz-announcement a {
  color: inherit;
  text-decoration: underline;
}

/* Adjacent full-width sections touch; only padding separates them. */
.wp-block-post-content > .alignfull + .alignfull {
  margin-block-start: 0;
}

/* Portrait slot: 4:5, card radius, no wider than 70% on phones. */
.idz-portrait img {
  width: 100%;
  height: auto;
}

@media (max-width: 781px) {
  .idz-portrait {
    max-width: 70%;
  }
}

/* Quotes: text in the heading font, attribution in the body font. */
.wp-block-quote cite {
  display: block;
  margin-top: var(--wp--preset--spacing--20);
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--sm);
  font-style: normal;
  color: var(--wp--preset--color--muted);
}

.wp-block-table.idz-fees td:last-child {
  white-space: nowrap;
}

/* Contact Form 7 inside the cta-contact-form pattern: inputs and the submit button follow the tokens. */
.wpcf7 form {
  display: grid;
  gap: var(--wp--preset--spacing--30);
}

.wpcf7 form > p,
.wpcf7 form label {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
}

.wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='radio']),
.wpcf7 textarea,
.wpcf7 select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  font-weight: 400;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--muted);
  border-radius: var(--wp--custom--idz--radius--sm);
}

.wpcf7 textarea {
  min-height: 9rem;
}

.wpcf7 input:focus-visible,
.wpcf7 textarea:focus-visible {
  outline: 2px solid var(--wp--preset--color--ink);
  outline-offset: 2px;
  border-color: var(--wp--preset--color--brand);
}

.wpcf7 input[type='submit'] {
  display: inline-block;
  width: auto;
  padding: 0.875rem 1.5rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--custom--idz--on-accent);
  background: var(--wp--preset--color--accent);
  border: 0;
  border-radius: var(--wp--custom--idz--radius-default);
  cursor: pointer;
}

.wpcf7 input[type='submit']:hover {
  color: var(--wp--custom--idz--on-accent-hover);
  background: var(--wp--custom--idz--accent-hover);
}

.wpcf7 .wpcf7-spinner {
  margin-left: 0.5rem;
}

.wpcf7 .wpcf7-not-valid-tip {
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 400;
}

.wpcf7 .wpcf7-response-output {
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--wp--preset--color--brand);
  border-radius: var(--wp--custom--idz--radius--sm);
  font-size: var(--wp--preset--font-size--sm);
}

/* ------------------------------------------------------------------------
   Client one-page layout (ADR-0055): the demo designs' structure. Values that
   differ per look come from theme.json custom tokens idz.look.* (set by the
   generator from the design's LOOKS table); the body carries idz-look-<slug>.
   ------------------------------------------------------------------------ */

/* Header: monogram, name and descriptor, nav, pill call to action. */
.idz-header-row {
  gap: var(--wp--preset--spacing--40);
}

.idz-brand {
  flex: 1;
  min-width: 0;
}

.idz-monogram img {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: var(--wp--custom--idz--look--mono, 50%);
  object-fit: cover;
}

.idz-brand-text > * {
  margin: 0;
  line-height: 1.1;
}

.idz-site-title {
  font-size: var(--wp--preset--font-size--lg);
}

.idz-descriptor {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  margin-top: 0.15rem;
}

.idz-nav {
  gap: var(--wp--preset--spacing--40);
  align-items: center;
}

.idz-nav .wp-block-navigation-item__content {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.idz-nav .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--xs);
  padding: 0.6875rem 1.125rem;
  border-radius: var(--wp--custom--idz--look--radius, var(--wp--custom--idz--radius-default));
  white-space: nowrap;
}

.idz-nav .wp-block-navigation-item:last-child .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--ink);
}

@media (max-width: 781px) {
  .idz-nav .wp-block-navigation-item:not(:last-child) {
    display: none;
  }
}

/*
 * Phone header, every look (ADR-0068): the monogram keeps its size and is never
 * clipped, the descriptor is hidden, and the name stays on one or two lines
 * beside a compact booking button.
 */
@media (max-width: 781px) {
  .idz-header-row {
    gap: var(--wp--preset--spacing--30);
    align-items: center;
  }

  .idz-brand {
    align-items: center;
  }

  .idz-monogram {
    flex: 0 0 auto;
  }

  .idz-monogram img {
    width: 2.25rem;
    height: 2.25rem;
    max-width: none;
  }

  .idz-descriptor {
    display: none;
  }

  .idz-site-title {
    font-size: var(--wp--preset--font-size--sm);
    line-height: 1.15;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  /* A long label ("Book a free consultation") wraps to two short lines instead of taking the name's room. */
  .idz-nav .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
    display: block;
    max-width: 8.5rem;
    padding: 0.5rem 0.875rem;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* Hero: copy left, framed portrait right, aligned to the bottom. */
.idz-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: var(--wp--preset--spacing--50) clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.idz-hero-copy > *,
.idz-hero-portrait > * {
  margin-block: 0;
}

.idz-hero-copy > * + * {
  margin-block-start: 1.875rem;
}

.idz-eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  font-size: 0.8125rem;
}

.idz-eyebrow-rule::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--wp--preset--color--accent);
}

.idz-hero-headline {
  /* Each look's size is measured from its demo design (ADR-0055); the default is Calm's. */
  font-size: var(--wp--custom--idz--look--headline, clamp(3rem, 6.4vw, 6.25rem));
  line-height: 0.95;
  text-wrap: balance;
}

.idz-hero-headline em,
.idz-cta-card h2 em {
  color: var(--wp--preset--color--brand);
  font-style: italic;
}

.idz-look-editorial .idz-hero-headline em,
.idz-look-fresh .idz-hero-headline em {
  font-style: normal;
}

.idz-hero-lede {
  max-width: 30em;
  line-height: 1.6;
  text-wrap: pretty;
}

.idz-hero-actions {
  align-items: center;
}

.idz-link-down .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--ink);
  padding: 0.75rem 0.25rem;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
  border-radius: 0;
}

.idz-link-down .wp-block-button__link::after {
  content: ' ↓';
}

.idz-link-down .wp-block-button__link:hover {
  background: transparent;
  color: var(--wp--preset--color--brand);
}

.idz-hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 28.75rem);
}

.idz-hero-portrait::before {
  content: '';
  position: absolute;
  inset: var(--wp--custom--idz--look--deco-inset, 0);
  background: var(--wp--custom--idz--look--deco-bg, transparent);
  border: var(--wp--custom--idz--look--deco-border, 0);
  border-radius: var(--wp--custom--idz--look--deco-radius, 0);
  transform: var(--wp--custom--idz--look--deco-tf, none);
}

.idz-portrait-framed,
.idz-portrait-framed img {
  position: relative;
  width: 100%;
  max-width: none;
}

.idz-portrait-framed img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
  border-radius: var(--wp--custom--idz--look--img, var(--wp--custom--idz--radius-default));
  filter: var(--wp--custom--idz--look--filter, none);
  transform: var(--wp--custom--idz--look--img-tf, none);
  padding: var(--wp--custom--idz--look--pad, 0);
  background: var(--wp--custom--idz--look--pad-bg, transparent);
  border: var(--wp--custom--idz--look--img-border, 0);
}

.idz-hero-chip {
  position: absolute;
  left: var(--wp--custom--idz--look--chip-x, -0.875rem);
  bottom: 2.25rem;
  background: var(--wp--custom--idz--look--chip-bg, var(--wp--preset--color--surface));
  color: var(--wp--custom--idz--look--chip-ink, var(--wp--preset--color--brand));
  border-radius: 1rem;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 0, 0, 0.35);
}

.idz-hero-chip-value {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.875rem;
  line-height: 1;
  color: inherit;
}

.idz-hero-chip-label {
  color: inherit;
  opacity: 0.8;
  margin-top: 0.125rem;
}

/* Credentials strip: one ruled band, items spaced across. */
.idz-strip {
  border-top: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  border-bottom: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
}

.idz-strip-row {
  gap: 0.625rem 2.5rem;
}

.idz-strip-row > p {
  margin: 0;
}

/* Services: intro left, numbered list right (numerals follow the look). */
.idz-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--50) clamp(2.5rem, 6vw, 6rem);
}

@media (min-width: 1000px) {
  .idz-split {
    grid-template-columns: 1fr 2fr;
  }
}

.idz-split-intro > *,
.idz-split-body > * {
  margin-block: 0;
}

.idz-split-intro > * + * {
  margin-block-start: 1.125rem;
}

.idz-split-intro h2 {
  line-height: 1;
}

.idz-split-intro p {
  max-width: 22em;
  line-height: 1.6;
}

.idz-services-list {
  counter-reset: idz-service;
}

.idz-service {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1.875rem 0;
  border-top: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  counter-increment: idz-service;
}

.idz-service::before {
  content: counter(idz-service, decimal-leading-zero) '.';
  grid-row: 1 / span 2;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--wp--preset--color--brand);
}

.idz-look-calm .idz-service::before {
  content: counter(idz-service, lower-roman) '.';
  font-style: italic;
}

.idz-look-trust .idz-service::before,
.idz-look-classic .idz-service::before {
  content: counter(idz-service, upper-roman) '.';
  font-style: italic;
  font-size: 1.125rem;
}

.idz-look-editorial .idz-service::before {
  content: counter(idz-service, decimal-leading-zero) ' /';
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
}

.idz-service > h3,
.idz-service > p {
  grid-column: 2;
  margin: 0;
}

.idz-service > h3 {
  line-height: 1.1;
}

.idz-service > p {
  max-width: 36em;
  line-height: 1.6;
}

/* Steps: brand band, three ruled columns. */
.idz-steps-heading {
  max-width: 12em;
  line-height: 1;
  margin-bottom: var(--wp--preset--spacing--50);
}

.idz-steps-heading em {
  font-style: italic;
  color: inherit;
}

.idz-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
  gap: 2.25rem;
}

.idz-step {
  padding-top: 1.375rem;
  border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-brand) 30%, transparent);
}

.idz-step > * {
  margin-block: 0;
}

.idz-step > * + * {
  margin-block-start: 0.875rem;
}

.idz-steps .idz-step-number {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  color: var(--wp--preset--color--on-brand);
  opacity: 0.85;
}

.idz-steps .idz-step-number::before {
  content: 'Step ';
}

.idz-step h3 {
  font-size: 1.875rem;
  line-height: 1.1;
}

.idz-step p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Paired bands: testimonial beside the About card, fees beside the questions. */
.idz-pair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr));
  gap: var(--wp--preset--spacing--50) clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.idz-pair-col > * {
  margin-block: 0;
}

.idz-pair-col > * + * {
  margin-block-start: 1.5rem;
}

.idz-testimonial .idz-quote-large,
.idz-pair-col .idz-quote-large {
  border: 0;
  padding: 0;
  margin: 0;
}

.idz-quote-large::before {
  content: '“';
  display: block;
  height: 3rem;
  font-size: 7.5rem;
  line-height: 0.6;
  color: var(--wp--preset--color--brand);
  margin-bottom: 1.75rem;
}

.idz-quote-large p {
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  margin: 0;
}

.idz-quote-large cite {
  margin-top: 1.75rem;
}

.idz-quote-large cite::before {
  content: '— ';
}

.idz-about-card {
  border-radius: 1.5rem;
}

.idz-about-card > * {
  margin-block: 0;
}

.idz-about-card > * + * {
  margin-block-start: 1.125rem;
}

.idz-about-card h2 {
  line-height: 1.05;
}

.idz-about-card p {
  line-height: 1.65;
  text-wrap: pretty;
}

.idz-about-link a {
  font-weight: 600;
  color: var(--wp--preset--color--brand);
}

/*
 * Practice Launch rhythm (ADR-0068): on desktop the large section padding is
 * tighter than the agency layout's, and the specialties heading runs the full
 * width above the chips instead of sharing a narrow column.
 */
@media (min-width: 782px) {
  .idz-offer-practice-launch {
    --wp--preset--spacing--70: clamp(3.5rem, 6vw, 5.5rem);
  }
}

@media (min-width: 1000px) {
  .idz-specialties .idz-split {
    grid-template-columns: 1fr;
  }
}

.idz-specialties .idz-split-intro p {
  max-width: 36em;
}

/* The therapist's portrait in the about card (ADR-0067): faces sit in the upper third. */
.idz-about-cols .wp-block-column > * {
  margin-block: 0;
}

.idz-about-cols .wp-block-column > * + * {
  margin-block-start: 1.125rem;
}

.idz-about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--wp--custom--idz--radius--md);
}

/* Fees and questions. */
.idz-fees-body > *,
.idz-faq-body > * {
  margin-block: 0;
}

.idz-fees-body > * + *,
.idz-faq-body > * + * {
  margin-block-start: 1.5rem;
}

.idz-fees-body h2,
.idz-faq-body h2 {
  line-height: 1;
}

.wp-block-table.idz-fees-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table.idz-fees-table td {
  border: 0;
  border-bottom: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  padding: 1.125rem 0;
  font-size: 1.0625rem;
  vertical-align: baseline;
}

.wp-block-table.idz-fees-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.75rem;
  color: var(--wp--preset--color--brand);
}

.idz-faq-list .wp-block-details {
  border-bottom: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  padding: 1.125rem 0;
  margin: 0;
}

.idz-faq-list .wp-block-details > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1.0625rem;
  font-weight: 600;
}

.idz-faq-list .wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.idz-faq-list .wp-block-details > summary::after {
  content: '+';
  color: var(--wp--preset--color--brand);
  flex: none;
}

.idz-faq-list .wp-block-details[open] > summary::after {
  content: '−';
}

.idz-faq-list .wp-block-details > p {
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
  padding-top: 0.75rem;
  margin: 0;
}

/* Closing call to action: a rounded brand card inside a small inset. */
.idz-cta-card {
  border-radius: 2rem;
  max-width: 87.5rem;
  margin-inline: auto;
}

.idz-cta-card > * + * {
  margin-block-start: 1.5rem;
}

.idz-cta-card h2 {
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.idz-cta-card h2 em {
  color: inherit;
}

.idz-cta-card p {
  max-width: 28em;
  margin-inline: auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Footer. */
.idz-footer {
  border-top: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
}

.idz-footer p {
  margin: 0;
}

/* ------------------------------------------------------------------------
   Practice Launch layout (ADR-0064): the therapist page. The body carries
   idz-offer-practice-launch (theme.json custom.idz.offer) and idz-look-<slug>;
   each look gets the first screen the client saw on /therapists/: Calm centred
   with an arch; Warm a brand screen with a tilted tile; Fresh a brand menu bar
   and a wide banner; Editorial a dark bar, a big uppercase heading and a photo
   band; Trust a brand screen with a framed photo; Classic a brand bar and an
   inset frame. Colours are the look's tokens, never raw values.
   ------------------------------------------------------------------------ */

/* Hero grid: centred by default (Calm, Classic). */
.idz-phero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--50);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.idz-phero-copy > *,
.idz-phero-art > * {
  margin-block: 0;
}

.idz-phero-copy > * + * {
  margin-block-start: 1.5rem;
}

.idz-phero-copy {
  max-width: 44rem;
}

.idz-phero-tag {
  letter-spacing: 0.12em;
  font-weight: 500;
}

.idz-phero-headline {
  /* The therapist headline is a full sentence from the form, so it is sized below the demo display size. */
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.idz-phero-lede {
  max-width: 34em;
  margin-inline: auto;
  line-height: 1.6;
  text-wrap: pretty;
}

.idz-phero-actions {
  justify-content: center;
}

.idz-phero-art {
  position: relative;
  width: 100%;
}

.idz-phero-image {
  margin: 0;
}

.idz-phero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* The art comes first when the screen is centred. */
.idz-look-calm .idz-phero-art,
.idz-look-classic .idz-phero-art {
  order: -1;
}

/* Calm: tinted screen, arch-shaped picture above the heading, pill buttons. */
.idz-look-calm .idz-phero {
  background: var(--wp--preset--color--brand-soft);
}

.idz-look-calm .idz-phero-art {
  width: min(100%, 22rem);
}

.idz-look-calm .idz-phero-image img {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 20px 20px;
}

/* Warm: brand screen, cream text, a tilted rounded picture on the left with an accent tile behind it. */
.idz-look-warm .idz-phero,
.idz-look-trust .idz-phero {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
}

.idz-look-warm .idz-phero :is(h1, p),
.idz-look-trust .idz-phero :is(h1, p) {
  color: var(--wp--preset--color--on-brand) !important;
}

.idz-look-warm .idz-phero-grid,
.idz-look-trust .idz-phero-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  justify-items: stretch;
  text-align: left;
}

.idz-look-warm .idz-phero-lede,
.idz-look-trust .idz-phero-lede {
  margin-inline: 0;
}

.idz-look-warm .idz-phero-actions,
.idz-look-trust .idz-phero-actions {
  justify-content: flex-start;
}

.idz-look-warm .idz-phero-art {
  order: -1;
  width: min(100%, 26rem);
  justify-self: center;
  margin: 1.5rem;
}

.idz-look-warm .idz-phero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--wp--preset--color--accent);
  transform: rotate(6deg) translate(6px, 4px);
}

.idz-look-warm .idz-phero-image {
  position: relative;
  transform: rotate(-2deg);
}

.idz-look-warm .idz-phero-image img {
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(0, 0, 0, 0.5);
}

.idz-look-warm .idz-phero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--brand);
}

.idz-look-warm .idz-phero .wp-block-button.is-style-outline .wp-block-button__link,
.idz-look-trust .idz-phero .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--on-brand);
  border-color: var(--wp--preset--color--on-brand);
}

/* Fresh: brand menu bar, white page, a wide rounded banner with an accent circle. */
.idz-offer-practice-launch.idz-look-fresh .idz-header,
.idz-offer-practice-launch.idz-look-editorial .idz-header,
.idz-offer-practice-launch.idz-look-classic .idz-header {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
}

.idz-offer-practice-launch.idz-look-editorial .idz-header {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--surface);
}

/* Preset colour classes are !important in core, so the bar colours must be too. */
.idz-offer-practice-launch.idz-look-fresh .idz-header :is(a, p, .idz-descriptor),
.idz-offer-practice-launch.idz-look-classic .idz-header :is(a, p, .idz-descriptor) {
  color: var(--wp--preset--color--on-brand) !important;
}

.idz-offer-practice-launch.idz-look-editorial .idz-header :is(a, p, .idz-descriptor) {
  color: var(--wp--preset--color--surface) !important;
}

.idz-offer-practice-launch.idz-look-fresh
  .idz-nav
  .wp-block-navigation-item:last-child
  .wp-block-navigation-item__content,
.idz-offer-practice-launch.idz-look-classic
  .idz-nav
  .wp-block-navigation-item:last-child
  .wp-block-navigation-item__content {
  background: var(--wp--preset--color--accent);
  color: var(--wp--custom--idz--on-accent);
}

.idz-offer-practice-launch.idz-look-editorial
  .idz-nav
  .wp-block-navigation-item:last-child
  .wp-block-navigation-item__content {
  background: var(--wp--preset--color--accent);
  color: var(--wp--custom--idz--on-accent);
}

.idz-look-fresh .idz-phero {
  background: var(--wp--preset--color--surface);
}

.idz-look-fresh .idz-phero-art {
  order: -1;
  max-width: 64rem;
}

.idz-look-fresh .idz-phero-image img {
  aspect-ratio: 16 / 7;
  border-radius: 18px;
}

.idz-look-fresh .idz-phero-art::after {
  content: '';
  position: absolute;
  top: -1.5rem;
  right: -0.75rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--wp--preset--color--accent);
}

/* Editorial: a short accent bar, a huge uppercase heading, a thick rule, the picture as a band below. */
.idz-look-editorial .idz-phero-grid {
  justify-items: start;
  text-align: left;
}

.idz-look-editorial .idz-phero-copy {
  max-width: none;
}

.idz-look-editorial .idz-phero-copy::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 0.5rem;
  background: var(--wp--preset--color--accent);
  margin-bottom: 1.5rem;
}

.idz-look-editorial .idz-phero-headline {
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: 0.96;
}

.idz-look-editorial .idz-phero-lede {
  margin-inline: 0;
}

.idz-look-editorial .idz-phero-actions {
  justify-content: flex-start;
}

.idz-look-editorial .idz-phero {
  border-bottom: 6px solid var(--wp--preset--color--ink);
}

.idz-look-editorial .idz-phero-image img {
  aspect-ratio: 16 / 6;
  filter: grayscale(1) contrast(1.05);
}

/* Trust: brand screen, picture on the right in a thin accent offset frame. */
.idz-offer-practice-launch.idz-look-trust .idz-header {
  border-bottom: 3px solid var(--wp--preset--color--accent);
}

.idz-look-trust .idz-phero-art {
  width: min(100%, 24rem);
  justify-self: center;
  margin: 1rem;
}

.idz-look-trust .idz-phero-art::before {
  content: '';
  position: absolute;
  inset: -0.75rem 0.75rem 0.75rem -0.75rem;
  border: 1px solid var(--wp--preset--color--accent);
}

.idz-look-trust .idz-phero-image {
  position: relative;
}

.idz-look-trust .idz-phero-image img {
  aspect-ratio: 4 / 5;
}

/* Classic: brand menu bar, centred text inside a thin accent inset frame, a matted picture, an ornament rule. */
.idz-look-classic .idz-phero-grid {
  box-shadow:
    inset 0 0 0 8px var(--wp--preset--color--surface),
    inset 0 0 0 9px var(--wp--preset--color--accent);
  padding: clamp(2rem, 5vw, 4rem);
}

.idz-look-classic .idz-phero-art {
  width: min(100%, 24rem);
}

.idz-look-classic .idz-phero-image img {
  aspect-ratio: 10 / 7;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--accent);
  box-sizing: border-box;
}

.idz-look-classic .idz-phero-tag::after {
  content: '';
  display: block;
  width: 5.25rem;
  height: 0.625rem;
  margin: 0.5rem auto 0;
  background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent))
    center / 100% 1px no-repeat;
}

/* Specialties: chips. */
.idz-chips {
  gap: 0.625rem;
  align-content: flex-start;
}

.idz-chip {
  margin: 0;
  padding: 0.5rem 0.875rem;
  border-radius: var(--wp--custom--idz--look--radius, var(--wp--custom--idz--radius-default));
  background: var(--wp--preset--color--brand-soft);
  border: 1px solid var(--wp--custom--idz--look--line, var(--wp--preset--color--surface-alt));
  font-weight: 500;
}

/* Good Faith Estimate notice: narrow measure, quiet. */
.idz-gfe > * {
  max-width: 44rem;
}

.idz-gfe h2 {
  line-height: 1.2;
}

.idz-gfe ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.idz-gfe li {
  margin-bottom: 0.5rem;
}

/* 988 line in the therapist footer. */
/*
 * Therapist footer copyright (ADR-0069): one line of text, not three flex items,
 * so "· All rights reserved." wraps with the end of the name and never sits on
 * a line by itself.
 */
.idz-footer .idz-copyright-line {
  display: block;
  text-wrap: balance;
}

.idz-footer .idz-copyright-line > * {
  display: inline;
  margin: 0;
}

.idz-footer .idz-copyright-line > :last-child {
  white-space: nowrap;
}

.idz-crisis-line {
  font-weight: 500;
}

/* ------------------------------------------------------------------------
   A brand designed on the canvas (ADR-0072): body.idz-brand-designed. The
   approved brand.json sets the wordmark, the headline's accent word, the
   picture frame and the buttons; the look still sets layout and order. Values
   come from theme.json custom.idz.brand, never from raw colors here.
   ------------------------------------------------------------------------ */
.idz-brand-designed .idz-site-title {
  font-family: var(--wp--custom--idz--brand--name-font);
  font-weight: var(--wp--custom--idz--brand--name-weight);
  letter-spacing: var(--wp--custom--idz--brand--name-tracking);
  text-transform: var(--wp--custom--idz--brand--name-case);
}

.idz-brand-designed .idz-descriptor {
  font-family: var(--wp--custom--idz--brand--desc-font);
  font-style: var(--wp--custom--idz--brand--desc-style);
  font-size: var(--wp--custom--idz--brand--desc-size);
  letter-spacing: var(--wp--custom--idz--brand--desc-tracking);
  text-transform: var(--wp--custom--idz--brand--desc-case);
  color: var(--wp--custom--idz--brand--desc-color);
}

/* The header shows the designed mark whole: no round crop. */
.idz-brand-designed .idz-monogram img {
  border-radius: 0;
  object-fit: contain;
}

.idz-brand-designed :is(.idz-hero-headline, .idz-phero-headline, .idz-steps-heading) em,
.idz-brand-designed .idz-cta-card h2 em {
  font-style: var(--wp--custom--idz--brand--accent-style);
  color: var(--wp--custom--idz--brand--accent-color);
}

/* On the looks' brand-colored screens the accent word keeps the screen's text color. */
.idz-brand-designed.idz-look-warm .idz-phero-headline em,
.idz-brand-designed.idz-look-trust .idz-phero-headline em {
  color: inherit;
}

.idz-brand-designed .idz-phero-image img,
.idz-brand-designed.idz-look-warm .idz-phero-art::before {
  border-radius: var(--wp--custom--idz--brand--frame);
}

/* Outline buttons: the primary button is drawn, not filled. */
.idz-button-outline .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.idz-button-outline
  .idz-nav
  .wp-block-navigation-item:last-child
  .wp-block-navigation-item__content {
  background: transparent;
  border: 2px solid var(--wp--preset--color--brand);
  color: var(--wp--preset--color--ink);
}

.idz-button-outline .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.idz-button-outline
  .idz-nav
  .wp-block-navigation-item:last-child
  .wp-block-navigation-item__content:hover {
  background: var(--wp--preset--color--brand);
  color: var(--wp--preset--color--on-brand);
}

.idz-button-outline
  :is(.has-brand-background-color, .idz-look-warm .idz-phero, .idz-look-trust .idz-phero)
  .wp-block-button:not(.is-style-outline)
  .wp-block-button__link {
  border-color: currentcolor;
  color: inherit;
}

/* ------------------------------------------------------------------------
   The homepage section library (ADR-0074): patterns practice-<id>.php, one
   per approved layout, each a section with class idz-l idz-l-<id>. Every
   value is a theme.json token: colors from the palette, sizes from the
   type scale, and the library's own measures from custom.idz.lib (the client
   child theme writes them from brand.json). Text on tint, cards, primary and
   ink uses the pair tokens, so a brand whose pair fails falls back the same
   way the design task does (PAGE-HANDOFF.md, "Colors").
   ------------------------------------------------------------------------ */
.idz-l {
  padding-block: var(--wp--custom--idz--lib--pad);
}

.idz-l :where(h1, h2, h3, p, ul, dl, figure, table) {
  margin-block: 0;
}

.idz-l-inner {
  box-sizing: border-box;
  max-width: var(--wp--custom--idz--lib--max) !important;
  margin-inline: auto !important;
  width: 100%;
}

.idz-l-narrow {
  max-width: var(--wp--custom--idz--lib--narrow) !important;
}

.idz-l-stack {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
}

.idz-l-stack > * {
  margin-block: 0 !important;
}

.idz-l-intro {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  max-width: var(--wp--custom--idz--lib--intro);
}

.idz-l-intro > *,
.idz-l-card > *,
.idz-l-col > * {
  margin-block: 0 !important;
}

.idz-l-center {
  text-align: center;
  align-items: center;
  margin-inline: auto;
}

.idz-l-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand);
}

.idz-l-label {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

.idz-l :is(h1, h2, h3, .idz-l-serif) {
  font-family: var(--wp--preset--font-family--heading);
  font-weight: var(--wp--custom--idz--lib--heading-weight);
  letter-spacing: -0.01em;
}

.idz-l h1 {
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.idz-l h2 {
  line-height: 1.08;
}

.idz-l h3 {
  line-height: 1.15;
}

.idz-l-lede {
  line-height: 1.6;
  color: var(--wp--preset--color--muted);
}

/* The heading's accent word: brand.json headline.accent_word_italic and accent_color. */
.idz-l .idz-accent {
  font-style: var(--wp--custom--idz--brand--accent-style, italic);
  color: var(--wp--custom--idz--brand--accent-color, var(--wp--preset--color--brand));
}

.idz-l-link a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-underline-offset: 0.25em;
  color: var(--wp--preset--color--brand);
}

.idz-l .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.95em 1.6em;
  font-size: var(--wp--preset--font-size--md);
}

/* Fills: tint (surface_alt), primary and ink. Text on each uses its pair token. */
.idz-l.has-surface-alt-background-color :is(.idz-l-eyebrow, .idz-l-link a, .idz-l-facts) {
  color: var(--wp--custom--idz--lib--primary-on-tint);
}

.idz-l.has-surface-alt-background-color .idz-l-lede {
  color: var(--wp--preset--color--ink);
}

.idz-l.has-surface-alt-background-color .idz-accent {
  color: var(--wp--custom--idz--lib--accent-on-tint);
}

.idz-l-on-brand,
.idz-l-on-brand :is(h1, h2, h3, p, a, .idz-l-label, .idz-l-eyebrow) {
  color: var(--wp--custom--idz--lib--on-primary);
}

.idz-l-on-ink,
.idz-l-on-ink :is(h1, h2, h3, p, a, .idz-l-eyebrow) {
  color: var(--wp--custom--idz--lib--surface-on-ink);
}

.idz-l-on-ink :is(.idz-l-label, .idz-l-soft) {
  color: var(--wp--custom--idz--lib--tint-on-ink);
}

:is(.idz-l-on-brand, .idz-l-on-ink) .idz-accent,
.idz-l-card.is-featured .idz-accent {
  color: inherit;
}

.idz-l-on-brand .wp-block-button__link {
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
  border-color: var(--wp--preset--color--surface);
}

.idz-l-on-brand .wp-block-button__link:hover {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--surface);
}

/* Cards and rules. */
.idz-l-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  padding: var(--wp--custom--idz--lib--card-pad);
  border-radius: var(--wp--custom--idz--lib--radius);
  background: var(--wp--custom--idz--lib--card);
}

.idz-l-card.is-surface {
  background: var(--wp--preset--color--surface);
}

.idz-l-card.is-tint {
  background: var(--wp--preset--color--surface-alt);
}

.idz-l-card.is-featured {
  background: var(--wp--preset--color--brand);
}

.idz-l-card.is-featured,
.idz-l-card.is-featured :is(h3, p, a, span, .idz-l-label, .idz-l-meta) {
  color: var(--wp--custom--idz--lib--on-primary);
}

.idz-l-card .idz-l-muted,
.idz-l-card .idz-l-lede {
  color: var(--wp--custom--idz--lib--muted-on-card);
}

.idz-l-card.is-surface .idz-l-muted {
  color: var(--wp--preset--color--muted);
}

.idz-l-grid {
  gap: var(--wp--custom--idz--lib--gap) !important;
}

.idz-l-cols {
  gap: var(--wp--custom--idz--lib--col-gap) !important;
  margin-block: 0 !important;
}

.idz-l-col {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}

.idz-l-ruled {
  border-top: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-ruled-strong {
  border-top: 1px solid var(--wp--preset--color--ink);
}

/* The brand mark: an image of the child theme's own mark file, or, for small
   bullets and badges, a mask of it in the primary color. */
.idz-l-mark {
  margin: 0 !important;
}

.idz-l-mark img {
  display: block;
  width: var(--wp--custom--idz--lib--mark);
  height: auto;
}

.idz-l-bullet {
  position: relative;
  padding-inline-start: 2em;
}

.idz-l-bullet::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 0.5em;
  height: 0.72em;
  transform: translateY(-50%);
  background: var(--wp--preset--color--brand);
  mask: var(--idz-mark) center / contain no-repeat;
}

/* Images: the brand's frame (arch, rounded or rect), never a raw radius. */
.idz-l-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--wp--preset--color--surface-alt);
}

.idz-l-portrait.is-arch img {
  border-radius: var(--wp--custom--idz--lib--frame);
}

.idz-l-portrait.is-rounded img {
  border-radius: var(--wp--custom--idz--lib--image);
}

/* ---- Header: HD1 logo left with links, HD2 centered logo. */
.idz-l-header {
  padding-block: var(--wp--preset--spacing--40);
  border-bottom: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-header .idz-l-inner {
  gap: var(--wp--preset--spacing--40);
}

.idz-l-brand {
  gap: 0.75rem !important;
  text-decoration: none;
}

.idz-l-brand .wp-block-site-logo img {
  width: auto;
  height: 2.125rem;
}

.idz-l-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.idz-l-wordmark > * {
  margin: 0 !important;
}

.idz-l-name {
  font-family: var(--wp--custom--idz--brand--name-font, var(--wp--preset--font-family--heading));
  font-weight: var(--wp--custom--idz--brand--name-weight, 400);
  letter-spacing: var(--wp--custom--idz--brand--name-tracking, -0.01em);
  text-transform: var(--wp--custom--idz--brand--name-case, none);
  line-height: 1;
}

.idz-l-name a {
  color: inherit;
  text-decoration: none;
}

.idz-l-desc {
  font-family: var(--wp--custom--idz--brand--desc-font, var(--wp--preset--font-family--heading));
  font-style: var(--wp--custom--idz--brand--desc-style, italic);
  font-size: var(--wp--custom--idz--brand--desc-size, 0.8125rem);
  letter-spacing: var(--wp--custom--idz--brand--desc-tracking, 0);
  text-transform: var(--wp--custom--idz--brand--desc-case, none);
  color: var(--wp--custom--idz--brand--desc-color, var(--wp--preset--color--brand));
  line-height: 1;
}

.idz-l-on-ink .idz-l-desc {
  color: inherit;
}

.idz-l-nav .wp-block-navigation-item__content {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.idz-l-nav .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--brand);
}

.idz-l-nav .wp-block-navigation__responsive-container-open {
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  font-weight: 600;
}

.idz-l-hd1 .wp-block-button__link {
  font-size: var(--wp--preset--font-size--sm);
  padding: 0.8em 1.25em;
}

.idz-l-hd2 .idz-l-brand {
  flex-direction: column;
  gap: 0.5rem !important;
}

.idz-l-hd2 .wp-block-site-logo img {
  height: 2.25rem;
}

.idz-l-hd2 .idz-l-wordmark {
  align-items: center;
}

.idz-l-hd2 .idz-l-menu {
  width: 100%;
  border-top: 1px solid var(--wp--custom--idz--lib--line);
  padding-top: var(--wp--preset--spacing--30);
}

@media (max-width: 781px) {
  .idz-l-hd1 .idz-l-name {
    font-size: var(--wp--preset--font-size--lg) !important;
  }

  .idz-l-hd1 .idz-l-actions {
    gap: 0.25rem !important;
  }
}

/* ---- Hero: H1 split, H2 centered statement, H3 wide photo with card. */
.idz-l-hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  font-weight: 600;
}

.idz-l-hero-facts > * {
  margin: 0 !important;
}

.idz-l-h2 .idz-l-lede {
  color: var(--wp--preset--color--ink);
}

.idz-l-h3 .idz-l-wide img {
  display: block;
  width: 100%;
  height: var(--wp--custom--idz--lib--wide-photo);
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--wp--custom--idz--lib--image);
  background: var(--wp--preset--color--surface-alt);
}

.idz-l-h3 .idz-l-overlap {
  position: relative;
  max-width: var(--wp--custom--idz--lib--overlap-card);
  margin: calc(-1 * var(--wp--custom--idz--lib--overlap)) 0 0 var(--wp--preset--spacing--50) !important;
  background: var(--wp--preset--color--surface);
}

@media (max-width: 781px) {
  .idz-l-h3 .idz-l-overlap {
    margin: calc(-0.5 * var(--wp--custom--idz--lib--overlap)) var(--wp--preset--spacing--30) 0 !important;
  }
}

/* ---- Credentials: CR1 quiet row, CR2 badges on tint. */
.idz-l-cr1 .idz-l-row {
  border-block: 1px solid var(--wp--custom--idz--lib--line);
  gap: 0 !important;
}

.idz-l-cr1 .idz-l-fact {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: var(--wp--preset--spacing--40);
  border-inline-start: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-cr1 .idz-l-fact > * {
  margin: 0 !important;
}

@media (max-width: 600px) {
  .idz-l-cr1 .idz-l-fact {
    border-inline-start: 0;
    padding-inline: 0;
  }

  .idz-l-cr1 .idz-l-fact + .idz-l-fact {
    border-top: 1px solid var(--wp--custom--idz--lib--line);
  }
}

.idz-l-badges {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.idz-l-badges li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.625rem 1.25rem 0.625rem 2.6rem;
  border-radius: var(--wp--custom--idz--lib--chip);
  background: var(--wp--preset--color--surface);
  font-weight: 500;
}

.idz-l-badges li.idz-l-bullet::before {
  inset-inline-start: 1.25rem;
}

/* ---- Specialties: SP1 numbered cards, SP2 two-column list, SP3 chips with a card. */
.idz-l-sp1 .idz-l-card {
  min-height: var(--wp--custom--idz--lib--tile);
  justify-content: space-between;
  gap: var(--wp--preset--spacing--40);
}

.idz-l-num {
  font-family: var(--wp--preset--font-family--heading);
  font-style: italic;
  color: var(--wp--preset--color--brand);
}

.idz-l-list {
  list-style: none;
  padding: 0 !important;
  border-top: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-list li {
  border-bottom: 1px solid var(--wp--custom--idz--lib--line);
  padding-block: var(--wp--preset--spacing--40);
  font-family: var(--wp--preset--font-family--heading);
  line-height: 1.2;
}

.idz-l-chips {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.idz-l-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.625rem 1.25rem;
  border-radius: var(--wp--custom--idz--lib--chip);
  background: var(--wp--preset--color--surface);
  font-weight: 500;
}

.idz-l-arch-card {
  border-radius: var(--wp--custom--idz--lib--arch);
  padding: var(--wp--custom--idz--lib--arch-pad) var(--wp--custom--idz--lib--card-pad)
    var(--wp--custom--idz--lib--card-pad);
}

/* ---- Services: SV1 cards, SV2 rows with prices. */
.idz-l-sv1 .idz-l-card {
  padding: var(--wp--custom--idz--lib--card-pad-lg);
}

.idz-l-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--wp--preset--spacing--30);
}

.idz-l-card-head > * {
  margin: 0 !important;
}

.idz-l-meta {
  font-weight: 600;
  color: var(--wp--preset--color--brand);
}

.idz-l-grow {
  flex-grow: 1;
}

.idz-l-rows {
  border-top: 1px solid var(--wp--preset--color--ink);
}

.idz-l-rows .idz-l-svrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  padding-block: var(--wp--preset--spacing--50);
  border-bottom: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-rows .idz-l-svrow > * {
  margin: 0 !important;
}

.idz-l-price {
  font-family: var(--wp--preset--font-family--heading);
  line-height: 1;
  text-align: end;
}

@media (min-width: 782px) {
  .idz-l-rows .idz-l-svrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 781px) {
  .idz-l-price {
    text-align: start;
  }
}

.idz-l-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--40);
}

/* ---- About: AB1 portrait and story, AB2 large statement on ink. */
.idz-l-facts-row {
  border-top: 1px solid var(--wp--custom--idz--lib--line);
  padding-top: var(--wp--preset--spacing--40);
  gap: var(--wp--preset--spacing--30) !important;
}

.idz-l-facts-row > * {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.idz-l-facts-row > * > * {
  margin: 0 !important;
}

.idz-l-statement {
  line-height: 1.14;
}

.idz-l-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.125rem !important;
}

.idz-l-person > * {
  margin: 0 !important;
}

.idz-l-avatar img {
  display: block;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- Fees: FE1 table, FE2 cards. */
.idz-l-fees-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.idz-l-fees-table :is(th, td) {
  border: 0;
  padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20)
    var(--wp--preset--spacing--40) 0;
  text-align: start;
  vertical-align: baseline;
}

.idz-l-fees-table thead {
  border-bottom: 1px solid var(--wp--preset--color--ink);
}

.idz-l-fees-table th {
  padding-top: 0;
  padding-bottom: 0.75rem;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

.idz-l-fees-table tbody tr {
  border-bottom: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-fees-table td:nth-child(2) {
  color: var(--wp--preset--color--muted);
}

.idz-l-fees-table :is(th, td):last-child {
  text-align: end;
  padding-inline-end: 0;
}

.idz-l-fees-table td:last-child {
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--lg);
}

.idz-l-amount {
  font-family: var(--wp--preset--font-family--heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.idz-l-amount.is-free {
  font-style: italic;
  color: var(--wp--preset--color--brand);
}

/* ---- Questions: FQ1 open cards, FQ2 folding answers. */
.idz-l-fold {
  border-top: 1px solid var(--wp--preset--color--ink);
}

.idz-l-fold .wp-block-details {
  border-bottom: 1px solid var(--wp--custom--idz--lib--line-strong);
  padding-block: var(--wp--preset--spacing--40);
  margin: 0 !important;
}

.idz-l-fold summary {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--xl);
  line-height: 1.25;
}

.idz-l-fold details p {
  margin-top: 0.625rem !important;
}

/* ---- Closing: CL1 band in primary, CL2 arched card on tint. */
.idz-l-cl1 .idz-l-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--50);
}

.idz-l-cl2 .idz-l-arch-card {
  max-width: var(--wp--custom--idz--lib--intro);
  width: 100%;
  margin-inline: auto;
  text-align: center;
  align-items: center;
  background: var(--wp--preset--color--surface);
}

/* ---- Good Faith Estimate. */
.idz-l-gfe ul {
  padding-inline-start: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* ---- Footers: FT1 quiet, FT2 columns on ink. */
.idz-l-footer {
  padding-block: var(--wp--preset--spacing--50);
}

.idz-l-ft1 {
  border-top: 1px solid var(--wp--custom--idz--lib--line);
}

.idz-l-ft2 {
  padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}

.idz-l-footer .idz-crisis-line {
  font-weight: 600;
}

.idz-l-ft2 .idz-crisis-line {
  border-top: 1px solid var(--wp--preset--color--brand);
  padding-top: var(--wp--preset--spacing--40);
}

.idz-l-footer .idz-copyright-line {
  gap: 0.35em !important;
}

.idz-l-footer .idz-copyright-line > * {
  margin: 0 !important;
}

.idz-l-ft1 .idz-l-base {
  border-top: 1px solid var(--wp--custom--idz--lib--line);
  padding-top: var(--wp--preset--spacing--40);
}

.idz-l-ft2 .wp-block-site-title {
  color: var(--wp--custom--idz--lib--tint-on-ink);
}

.idz-l-ft2 .idz-l-col {
  gap: 0.25rem;
}

.idz-l-ft2 .idz-l-col .idz-l-label {
  margin-bottom: 0.375rem !important;
}

.idz-l-ft2 .idz-l-col a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.idz-l-ft2 .idz-l-col .idz-l-email a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Auto-fit grids, as the boards draw them (core's grid layout fills empty tracks). */
.idz-l .idz-l-fit.is-layout-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(var(--idz-min, 15rem), 100%), 1fr)) !important;
}

.idz-l-cr1 .idz-l-fit {
  --idz-min: 13.75rem;
}

.idz-l-sv1 .idz-l-fit,
.idz-l-fq1 .idz-l-fit {
  --idz-min: 20rem;
}

.idz-l-fe2 .idz-l-fit {
  --idz-min: 17.5rem;
}

.idz-l-ab1 .idz-l-fit {
  --idz-min: 11.25rem;
}

.idz-l-ft2 .idz-l-fit {
  --idz-min: 13.75rem;
}

.idz-l-h1 .idz-l-portrait,
.idz-l-ab1 .idz-l-portrait {
  max-width: var(--wp--custom--idz--lib--portrait);
  margin-inline: auto;
}

.idz-l-mark-sm img {
  width: var(--wp--custom--idz--lib--mark-sm);
}

.idz-l-row-actions > * {
  margin: 0 !important;
}

.idz-l-cr1 .idz-l-fact:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

/* A featured card's link is a button in the card's own light color. */
.idz-l-card.is-featured .idz-l-link a {
  box-sizing: border-box;
  padding: 0.8em 1.4em;
  border-radius: var(--wp--custom--idz--radius-default);
  background: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.idz-l-price.is-free {
  font-style: italic;
  color: var(--wp--preset--color--brand);
}

.idz-l-card.is-featured .idz-l-gfe-link a {
  color: inherit;
}

.idz-l-soft {
  color: var(--wp--preset--color--muted);
}

.idz-l-on-ink .idz-l-soft,
.idz-l-ft2 .idz-copyright-line :is(p, .wp-block-site-title) {
  color: var(--wp--custom--idz--lib--tint-on-ink);
}

.idz-l-ft1 .idz-copyright-line :is(p, .wp-block-site-title) {
  color: var(--wp--preset--color--muted);
}

.idz-l-footer .wp-block-site-title {
  margin: 0;
}

.idz-l-ft1 .idz-l-link a {
  min-height: 2.75rem;
}
