/* The public detail pages use three content templates: articles, reviews and health guides. */
body.shultz-inner-page.studio-page:not(.admin-theme) {
  --detail-panel: clamp(14px, 1.5vw, 22px);
  --detail-space: clamp(27px, 4.5vw, 72px);

  .shultz-inner {
    --inner-dark: var(--studio-ink);
    --inner-dim: var(--studio-muted);
    --inner-wide: 1260px;
  }

  :is(.shultz-inner, .gallery-index, .health-library) {
    width: min(var(--studio-width), calc(100% - 2 * var(--studio-gutter)));
    margin-inline: auto;
  }

  .inner-hero,
  .gallery-index,
  .health-library-head {
    color: var(--studio-ink);
    background: var(--studio-paper);
    border-radius: 0 0 var(--studio-radius) var(--studio-radius);
  }

  .inner-hero { padding: clamp(18px, 2.1vw, 32px) var(--studio-inset); }
  .inner-hero-shell {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 5.6vw, 90px);
  }
  .inner-hero-copy { padding-block: clamp(22px, 3.8vw, 58px); }
  .inner-hero-copy .kicker,
  .gallery-heading .kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--studio-muted);
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 570;
    letter-spacing: .015em;
  }
  :is(.inner-hero-copy, .gallery-heading) > .kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
  }
  :is(.inner-hero-copy, .gallery-heading, .health-library-head) h1 {
    margin-block: 16px;
    color: var(--studio-ink);
    font-size: clamp(34px, 3.8vw, 60px);
    font-weight: 560;
    line-height: 1.17;
    letter-spacing: -.065em;
    overflow-wrap: break-word;
  }
  .inner-hero-copy .inner-lead { max-width: 48ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.75; }
  .inner-hero-photo {
    width: 100%;
    max-width: 690px;
    justify-self: end;
    height: clamp(275px, 30vw, 440px);
    aspect-ratio: auto;
    margin: 0;
    background: var(--mist);
    border-radius: var(--detail-panel);
  }
  :is(.inner-hero--strength, .inner-hero--team) .inner-hero-photo {
    max-width: 400px;
    height: clamp(310px, 35vw, 475px);
    justify-self: center;
  }
  .inner-hero--strength .inner-hero-photo img { object-fit: contain; }
  .inner-hero--case .inner-hero-photo { background: #f2f2f1; }

  /* On the light hero the action has the same contrast as the main consultation button. */
  .inner-hero .button.light {
    border-radius: 999px;
    background: var(--studio-ink);
    color: white;
  }
  .inner-hero .button.light > span {
    background: white;
    color: var(--studio-ink);
  }
  .inner-hero .button.light:hover { background: #3e4043; }
  .inner-hero-copy a:focus-visible { outline-color: var(--studio-ink); }

  .inner-content,
  .inner-closing {
    margin-top: var(--studio-gutter);
    padding-block: var(--detail-space);
    border-radius: var(--studio-radius);
    background: var(--studio-paper);
  }
  .inner-content :is(h2, h3), .inner-closing h2 { font-weight: 580; }
  .inner-content :is(.mf-sectionhead h2, .form-heading h2, .section-title h2),
  .inner-closing h2 { letter-spacing: -.052em; }
  .inner-content :is(.program-card, .mf-answer, .article-aside, .location-summary, .address-block, .message-builder, .visit, .case-facts, .inner-application, .strength-record, .answer-box, .case-chapter-body),
  .inner-content :is(.steps, .steps-grid, .values-grid) > article {
    border-radius: var(--detail-panel);
  }
  .inner-content :is(.mf-answer, .program-card, .inner-application, .answer-box),
  .inner-content :is(.steps, .steps-grid, .values-grid) > article { background: white; }
  .inner-content .program-card { padding: clamp(18px, 1.8vw, 29px); gap: 10px; }
  .inner-content .program-card .inner-program-photo { height: clamp(100px, 10vw, 145px); object-fit: contain; background: #f4f4f3; }
  .inner-content :is(.program-for, .availability-note, .inner-form-note, .mf-introline > div, .case-measurement-note, .case-video-reference) { border-radius: 10px; }
  .inner-content :is(.mf-introline > div, blockquote, .case-source-prose.is-quote) { border-left-color: #a4a5a7; }
  .inner-content :is(.record-gallery, .case-together-photos, .mf-case-layout, .mf-team, .strength-photo, .ignite-story-photos) img { border-radius: 12px; }
  .inner-content :is(.mf-button, .case-toolbar button, .case-chapter-bottom button, .ignite-gallery-toggle, .ignite-gallery-dialog button, .photo-viewer button) { border-radius: 999px; }
  .inner-content :is(.case-toolbar select, .search-wrap, textarea, select, .mf-concern),
  .inner-application :is(input[type="text"], input[type="tel"], input[type="number"]) {
    border-color: #a1a2a4;
    border-radius: 9px;
  }
  .inner-content :is(.mf-button, .button.outline, .mf-concern:not([aria-pressed="true"])) { border-color: var(--studio-line); }
  .inner-content .inner-application .choices label { padding: 7px 13px; border-radius: 999px; }
  .inner-content .inner-application .choices { gap: 7px; }
  .inner-content .inner-application :is(.field-error, .request-error) { color: #922a38; }
  .inner-content :is(.case-photo-expand, .record-photo-number, .ignite-video-play) { border-radius: 999px; background: #202123e8; }
  .inner-content .photo-viewer, .ignite-gallery-dialog { border-radius: var(--detail-panel); }
  .inner-content .photo-viewer::backdrop, .ignite-gallery-dialog::backdrop { background: #161618cf; }
  .inner-content details, .inner-content details:last-child { border-color: var(--studio-line); }
  .inner-content blockquote { border-radius: 0 12px 12px 0; font-family: var(--sans); }

  .inner-closing {
    color: white;
    background: var(--studio-ink);
  }
  .inner-closing :is(h2, .text-link) { color: white; }
  .inner-closing .kicker, .inner-closing .reading > p:not(.kicker) { color: #d7d7d8; }
  .inner-closing .button, .health-consult .button { color: var(--studio-ink); background: white; }
  :is(.inner-closing, .health-consult) .button > span[aria-hidden] { background: var(--studio-ink); color: white; }
  :is(.inner-closing, .health-consult) a:focus-visible { outline-color: white; }
  .inner-closing .button:hover, .health-consult .button:hover { background: #e7e7e7; }

  .inner-content--team { padding-top: 0; }
  .ignite-shell { width: min(var(--inner-wide), calc(100% - 2 * var(--studio-inset))); }
  .ignite-directory { border-radius: var(--studio-radius) var(--studio-radius) 0 0; background: var(--studio-paper); }
  .inner-content .ignite-category-grid > .ignite-category {
    border-radius: 12px;
    border-color: var(--studio-line);
    font-weight: 560;
  }
  .inner-content .ignite-category-grid > .ignite-category:is(:hover, [aria-selected="true"]) { border-color: var(--studio-ink); }
  .ignite-category:is(:hover, [aria-selected="true"]) .ignite-category-index { color: #ddd; }
  :is(.ignite-feature-record, .ignite-video-frame, .ignite-gallery-grid a, .ignite-source-note) { border-radius: 14px; }
  .ignite-dialog-stage { background: var(--studio-ink); }
  .ignite-category-grid { scrollbar-color: #a1a2a4 #eeeeed; }
  .inner-content .ignite-record-kicker { color: var(--studio-muted); }

  .gallery-index { padding: var(--detail-space) var(--studio-inset); }
  .gallery-index .shell { width: 100%; }
  .gallery-index .gallery-heading { max-width: 780px; margin-inline: 0; text-align: left; }
  .gallery-filters {
    max-width: none;
    padding: clamp(15px, 1.8vw, 26px);
    border-radius: var(--detail-panel);
    background: var(--mist);
  }
  .gallery-filters select { width: 100%; border-radius: 9px; }
  :is(.gallery-filters, .gallery-status) button, .gallery-count, .gallery-goals span { border-radius: 999px; }
  .gallery-review { border-radius: var(--detail-panel); overflow: hidden; }
  .gallery-review-copy { padding: clamp(18px, 1.8vw, 29px); }
  .gallery-excerpt { font-size: clamp(17px, 1.35vw, 21px); font-weight: 560; line-height: 1.5; }
  .gallery-status { border-radius: var(--detail-panel); }

  .health-library { background: transparent; }
  .health-library-head { padding: var(--detail-space) var(--studio-inset); }
  .health-library-head .health-shell { width: 100%; }
  .health-layout {
    width: 100%;
    margin-top: var(--studio-gutter);
    padding: var(--detail-space) var(--studio-inset);
    border-radius: var(--studio-radius);
    background: var(--studio-paper);
  }
  @media (min-width: 761px) {
    .health-menu { scrollbar-color: #a1a2a4 transparent; }
    .health-menu h2 { border-bottom: 1px solid var(--studio-line); }
    .health-menu a { border-radius: 10px; }
    .health-menu a:hover { background: var(--mist); }
    .health-menu a[aria-current] { border-color: var(--studio-ink); color: var(--studio-ink); background: #eaeaea; }
  }
  .health-category { color: var(--studio-muted); }
  .health-panel-head h2 { font-weight: 580; }
  .health-panel-head { border-bottom: 1px solid var(--studio-line); }
  .health-panel-head .health-scene, .health-result img { border-radius: var(--detail-panel); }
  .health-outcome, .health-sources { border: 1px solid var(--studio-line); border-radius: var(--detail-panel); background: white; }
  .health-outcome p, .health-sources figcaption { color: var(--studio-muted); }
  .health-consult { border-radius: var(--detail-panel); }
  .health-note { border-color: #acaeb0; }
  @media (max-width: 760px) {
    .health-sidebar { top: var(--studio-header-height); background: var(--studio-paper); }
  }
  @media (max-width: 700px) {
    .inner-hero { padding: 0 var(--studio-inset) var(--studio-inset); }
    .inner-hero-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .inner-hero-copy { grid-row: 1; width: 100%; padding: 25px 0 0; }
    .inner-hero-photo { grid-row: 2; height: auto; aspect-ratio: 1.72; }
    .inner-hero--case .inner-hero-photo { aspect-ratio: 1.35; }
    :is(.inner-hero--team, .inner-hero--strength) .inner-hero-photo { height: auto; margin: 0; }
    .inner-hero--team .inner-hero-photo { max-width: 100%; aspect-ratio: 1.4; }
    .inner-hero--strength .inner-hero-photo { max-width: 300px; aspect-ratio: 1320 / 1651; }
    .inner-hero-copy h1 { margin-block: 12px; font-size: clamp(29px, 7.4vw, 41px); }
    .inner-hero-copy .inner-lead { font-size: 15px; }
    .inner-content .inner-application { padding: clamp(14px, 4vw, 24px); }
    .inner-content--consultation > .inner-application { width: calc(100% - 20px); }
    .health-layout { padding-inline: clamp(14px, 3.9vw, 26px); }
    .gallery-filters { padding: 13px; }
  }
}
