/* ==========================================================================
   Quote & clinic
   --------------------------------------------------------------------------
   Three panels of equal height: quote on dark teal, photograph, address.
   ========================================================================== */

.tclinic__grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 62rem) {
  .tclinic__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .95fr);
  }

  .tclinic--no-image .tclinic__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* --- Quote ---------------------------------------------------------------- */

.tclinic__quote {
  background: var(--color-surface-invert);
  color: var(--color-text-invert);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-4), 2.2vw, var(--sp-5));
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
}

/* The quote mark is decoration, so it can be large without competing with the
   words. At 3rem in the body face it rendered as a pair of small tick marks
   that read as a typo rather than as a quotation mark. */
.tclinic__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: .8;
  height: 2.2rem;          /* trims the glyph's empty lower half */
  color: var(--color-accent-gold);
  display: block;
}

.tclinic__blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--color-text-invert);
  text-wrap: pretty;
}

.tclinic__attribution {
  font-size: var(--fs-sm);
  color: var(--color-text-invert);
  opacity: .85;
}

/* --- Photograph ----------------------------------------------------------- */

/* The photograph sets the height of the band. Left to stretch it simply took
   whatever the row was, which is how the band ended up around 380px tall for
   three short items. A fixed 16:10 shape keeps it in proportion and brings
   the row down to the height of the picture. */
/* 9 Oct 2026: the photograph no longer decides the band's height on a wide
   screen. With a longer quote the row grew taller than 16:9 allowed for, the
   browser widened the photo to keep its shape, and it slid across the
   address column. Now the picture is laid over its panel (absolute), so the
   tallest of the quote and the address sets the height and the photo simply
   crops to fill it. The minimum keeps a short quote from flattening it. */
.tclinic__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-block-size: 11rem;
}

.tclinic__image {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 62rem) {
  .tclinic__media {
    aspect-ratio: auto;
    min-block-size: 15rem;
  }
}

/* --- Address -------------------------------------------------------------- */

/* Grouped and centred, not spread top to bottom.
   Spreading was tried and reverted: with only three short items the gaps
   between them became larger than the items themselves, and the heading,
   address and button stopped reading as one block. The band is made shorter
   by capping the photograph instead, below. */
.tclinic__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--sp-4);
  padding-inline: var(--sp-2);
}

.tclinic__heading {
  color: var(--color-heading);
  font-size: var(--fs-h4);
  margin: 0;
  text-wrap: balance;
}

.tclinic__address {
  font-style: normal;          /* browsers italicise <address> by default */
  color: var(--color-text);
  line-height: var(--lh-snug);
}

.tclinic__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Second link (e.g. About Our Clinic), under the directions button. */
.tclinic__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--color-link-accent);
  font-weight: var(--fw-semi);
  text-decoration: none;
}
.tclinic__more:hover { color: var(--color-link-accent-hover); text-decoration: underline; text-underline-offset: 0.2em; }
.tclinic__more-icon { flex: none; stroke-width: 2; }

/* Phones and tablets, stacked: the photo runs the full width of the screen,
   edge to edge, with square corners (Liam, 22 Oct 2026). The negative margin
   cancels the container's side padding. */
@media (max-width: 61.99rem) {
  .tclinic__media {
    margin-inline: calc(var(--gutter) * -1);
    border-radius: 0;
    box-shadow: none;
  }
}
