/**
 * Celebrant search — deliberately light-touch.
 *
 * Layout and spacing only, with colours and type inherited from the theme so
 * this drops into an Elementor page without fighting the design.
 */

.canz-search {
    --canz-gap: 1.25rem;
    --canz-radius: 6px;
    --canz-border: rgba(0, 0, 0, 0.12);
}

.canz-search__submit {
	background: #c36;
}
.canz-card__name a {
  text-decoration: none;
}
.canz-card__link {
  text-decoration: none !important;
}
.canz-card__link:hover {
  color: #fff;
}

/* ---------------------------------------------------------------- filters */

.canz-search__filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--canz-gap);
    align-items: end;
    margin-bottom: var(--canz-gap);
}

.canz-search__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.canz-search__field label {
    font-size: 0.875rem;
    font-weight: 600;
}

.canz-search__field input[type="search"],
.canz-search__field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--canz-border);
    border-radius: var(--canz-radius);
    background: #fff;
    font: inherit;
}

.canz-search__field--check {
    flex-direction: row;
    align-items: center;
}

.canz-search__field--check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.canz-search__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.canz-search__submit {
    padding: 0.55rem 1.25rem;
    border: 0;
    border-radius: var(--canz-radius);
    background: currentColor;
    cursor: pointer;
    font: inherit;
}

.canz-search__submit::first-line {
    color: #fff;
}

.canz-search__reset {
    font-size: 0.875rem;
}

/* The form still submits without JS, so the button stays visible. When JS is
   running, filtering is live and the button becomes a convenience only. */

.canz-search__count {
    margin: 0 0 var(--canz-gap);
    font-size: 0.9375rem;
    opacity: 0.75;
}

/* ---------------------------------------------------------------- results */

.canz-search__results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--canz-gap);
    transition: opacity 0.2s ease;
}

.canz-search.is-loading .canz-search__results {
    opacity: 0.45;
}

.canz-search__empty {
    grid-column: 1 / -1;
    padding: 2rem 0;
    text-align: center;
    opacity: 0.7;
}

/* ---------------------------------------------------------------- card */

.canz-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--canz-border);
    border-radius: var(--canz-radius);
    background: #fff;
}

.canz-card__media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

.canz-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* The stand-in portrait. Held back a little so a row of cards does not read as
   though several celebrants share a face — it should register as "no photo"
   rather than compete with the real ones. */
.canz-card__media--placeholder,
.canz-profile__media--placeholder {
    background: rgba(0, 0, 0, 0.06);
}

.canz-card__media--placeholder img,
.canz-profile__media--placeholder img {
    opacity: 0.55;
}

.canz-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.canz-card__name {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.canz-card__name a {
    text-decoration: none;
    color: inherit;
}

.canz-card__name a:hover,
.canz-card__name a:focus {
    text-decoration: underline;
}

/* Label + values, repeated for ceremony types, primary areas and regions. The
   label is small and quiet: it identifies the row without competing with the
   values, which are what a visitor actually scans for. */

.canz-card__group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.canz-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.55;
}

.canz-card__areas {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.canz-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.canz-card__list {
  margin: 0px 0px 0px 20px;
  padding: 0px;
}
.canz-card__list li {
    font-size: 0.875rem;
}

.canz-card__tags li {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
}

.canz-card__validated {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0;
    padding: 0.5rem 1rem;
    background: #6f8425;
    border-bottom: 1px solid var(--canz-border);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}

.canz-card__validated-mark {
    flex: none;
}

.canz-card__services {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.canz-card__travel {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.75;
}

/* ---------------------------------------------------------------- contact */

.canz-card__contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    padding: 10px 0px 10px 0px;
    border-top: 1px solid var(--canz-border);
}

.canz-card__contact a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.canz-card__contact a:hover span,
.canz-card__contact a:focus span {
    text-decoration: underline;
}

/* Long email addresses and URLs would otherwise widen the grid track and
   throw the whole row of cards out. */
.canz-card__contact span {
    overflow-wrap: anywhere;
}

.canz-card__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
}

.canz-card__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 36px: comfortably above the 24px WCAG 2.2 target minimum, and large
       enough to hit on a phone without the icons crowding each other. */
    width: 36px;
    height: 36px;
    border: 1px solid var(--canz-border);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.canz-card__social a:hover,
.canz-card__social a:focus {
    background: rgba(0, 0, 0, 0.06);
}

.canz-icon,
.canz-icon-wrap {
    flex: none;
    display: inline-flex;
    line-height: 0;
}

/* Font Awesome renders as a glyph rather than an SVG box, so it needs a
   size and a baseline of its own. Harmless when the SVG set is in use. */
i.canz-icon {
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 15px;
    line-height: 1;
}

.canz-card__link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border: none;
  line-height: 100%;
  background: #AA3955;
  color: #fff;
  padding: 10px;
  text-decoration: none;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- pagination */

.canz-search__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: calc(var(--canz-gap) * 1.5);
}

.canz-search__pagination .page-numbers {
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--canz-border);
    border-radius: var(--canz-radius);
    text-decoration: none;
    font-size: 0.875rem;
}

.canz-search__pagination .page-numbers.current {
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* ---------------------------------------------------------------- profile */

/* The profile reuses the card's contact rows, icons and validated badge, so it
   only needs layout of its own — and the same custom properties, which are
   declared on .canz-search and would not otherwise reach this page. */

.canz-profile {
    --canz-gap: 1.25rem;
    --canz-radius: 6px;
    --canz-border: rgba(0, 0, 0, 0.12);
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0px;
}

.canz-profile__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--canz-gap);
    margin-bottom: calc(var(--canz-gap) * 1.5);
}

.canz-profile__media {
    flex: none;
    width: 180px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--canz-radius);
    background: rgba(0, 0, 0, 0.04);
}

.canz-profile__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.canz-profile__intro {
    /* Lets the block shrink below its content width so a long name wraps
       instead of forcing the photo onto its own line prematurely. */
    flex: 1 1 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

/* The card wears this as a full-bleed banner; here it is a badge sitting in
   the flow, so the card's edge-to-edge padding and border are undone. */
.canz-profile__validated {
    padding: 0.35rem 0.7rem;
    border: 0;
    border-radius: 999px;
}

.canz-profile__name {
    margin: 0;
    line-height: 1.15;
}

.canz-profile__areas {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
}

/* The shared details block. Also appended to the content when a page builder
   or block theme owns the single template, so it declares its own custom
   properties rather than inheriting them from .canz-profile. */

.canz-details {
    --canz-gap: 1.25rem;
    --canz-radius: 6px;
    --canz-border: rgba(0, 0, 0, 0.12);

    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--canz-gap) * 1.5);
    margin-top: calc(var(--canz-gap) * 1.5);
}

/* Facts and contact sit side by side only when the fact rows still have room
   to breathe; below that they stack, contact last. */
@media (min-width: 60rem) {
    .canz-details {
        grid-template-columns: minmax(0, 1fr) 20rem;
        align-items: start;
    }

    .canz-details__summary {
        grid-column: 1 / -1;
    }
}

.canz-details__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.canz-profile__bio {
    line-height: 1.6;
    font-size: 1rem !important;
}
.canz-profile__bio p,
.canz-profile__bio span {
    font-size: 1rem !important;
}

.canz-profile__bio > *:first-child {
    margin-top: 0;
}

.canz-profile__bio > *:last-child {
    margin-bottom: 0;
}

.canz-profile__details {
    display: grid;
    gap: var(--canz-gap);
    margin: 0;
}

@media (min-width: 40rem) {
    .canz-profile__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.canz-profile__detail dt {
    margin: 0 0 0.3rem;
    font-weight: 700;
    font-size: 1.2rem;
    /*
      font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.55;
    */
}

.canz-profile__detail dd {
    margin: 0;
}

.canz-profile__values {
    margin: 0;
    padding: 0 0 0 1.1rem;
}

.canz-profile__values li {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.canz-profile__contact {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: var(--canz-gap);
    border: 1px solid var(--canz-border);
    border-radius: var(--canz-radius);
    background: rgba(0, 0, 0, 0.02);
}

@media (min-width: 60rem) {
    .canz-details .canz-profile__contact {
        position: sticky;
        top: 2rem;
    }
}

.canz-profile__contact-heading {
    margin: 0;
    font-size: 1rem;
}

/* Undo the card's separator — inside the panel the heading already does that
   job, and a second line would be one divider too many. */
.canz-profile__contact .canz-card__contact {
    padding: 0;
    border-top: 0;
}

/* Themes normally provide this, but the social links depend on it for their
   accessible names, so it cannot be left to chance. Scoped to our own markup. */
.canz-card .screen-reader-text,
.canz-profile .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .canz-search__results,
    .canz-card__social a {
        transition: none;
    }
}
