/* Portal-wide presentation. Content and translations stay in Wagtail. */
:root {
  --portal-title: clamp(34px, 4vw, 56px);
  --portal-section-title: clamp(28px, 3vw, 40px);
  --portal-header-padding: 40px;
  --portal-content-gap: 32px;
}
main { --pad-section: 64px; --fs-h2: var(--portal-section-title); }
main .portal-page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: var(--portal-header-padding) 0;
  background: var(--green-50);
}
.portal-page-header::before { display: none; }
.portal-page-header > .container { position: relative; z-index: 1; }
.portal-page-header__layout { display: flex; align-items: center; gap: 32px; }
.portal-page-header__text { min-width: 0; flex: 1; }
.portal-page-header__brand { display: flex; align-items: center; justify-content: center; flex: 0 1 32%; min-width: 0; min-height: 208px; padding: 24px; background: rgba(255,255,255,.9); border: 1px solid var(--ink-100); border-radius: 16px; }
.portal-page-header__brand img { display: block; width: auto; height: auto; max-width: 100%; max-height: 160px; object-fit: contain; }
@media (max-width: 600px) {
 .portal-page-header__brand { width: 100%; max-width: 320px; min-height: 140px; padding: 20px; }
 .portal-page-header__brand img { max-height: 100px; }
}
main .portal-page-header .portal-page-header__text > h1 {
  max-width: 1000px;
  margin: 0;
  color: var(--ink-900);
  font-size: var(--portal-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.portal-page-header .portal-breadcrumbs { margin: 0 0 16px; }
.portal-page-header .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-500);
}
.portal-page-header .crumbs li { min-width: 0; overflow-wrap: anywhere; }
.portal-page-header .crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--ink-300); }
.portal-page-header .crumbs [aria-current] { color: var(--ink-700); font-weight: 500; }
.portal-page-header .crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.portal-page-header__lead { max-width: 740px; margin-top: 16px; font-size: 18px; line-height: 1.7; color: var(--ink-700); }
.portal-page-header__lead p { margin: 0 0 12px; }
.portal-page-header__lead p:last-child { margin-bottom: 0; }
.portal-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 13px; color: var(--ink-500); }
.portal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.portal-actions .btn { white-space: normal; text-align: center; }
.portal-page-header__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.portal-page-header__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; mask-image: linear-gradient(to right, transparent 24%, #000 75%); }
.portal-page-header--illustrated .portal-page-header__text { max-width: 740px; }
.portal-page-header--profile .member-logo--profile { flex: 0 1 260px; width: 260px; height: 112px; padding: 16px; margin: 0; }
.portal-page-header--profile .member-logo--profile img { max-height: 80px; }
main .portal-page-header--profile .portal-page-header__text > h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.22; }
.portal-introduction { padding-top: var(--portal-content-gap); }
.portal-introduction__content { max-width: 1040px; font-size: 17px; line-height: 1.8; color: var(--ink-700); overflow-wrap: anywhere; }
.portal-introduction__content p:last-child { margin-bottom: 0; }
.portal-introduction .membership-intro { max-width: 1040px; }
.portal-page-header + .section,
.portal-page-header + .section--tight,
.portal-page-header + .team-section,
.portal-page-header + .showroom-results,
.portal-page-header + .member-profile__body { padding-top: var(--portal-content-gap); }
.portal-service-feature { padding-top: var(--portal-content-gap); }
.portal-service-summary { padding: 28px; border-radius: var(--radius); background: var(--green-900); color: #fff; }
.portal-service-summary h2 { margin: 16px 0; color: inherit; font-size: 28px; }
.portal-service-summary ul { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-left: 20px; margin-bottom: 0; font-size: 15px; }
.portal-service-image { max-height: 400px; width: auto; border-radius: var(--radius); }
.portal-offer-panorama { padding-top: var(--portal-content-gap); }
.portal-offer-panorama img { width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: var(--radius); }
.portal-search { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 24px; max-width: 920px; }
.portal-search > div { flex: 1 1 240px; min-width: 0; }
.portal-search label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.portal-search input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--ink-300); border-radius: 12px; font: inherit; background: #fff; }
.portal-search button { min-height: 52px; }
main .section-head { margin-bottom: 32px; }
main .section-head h2 { font-size: var(--portal-section-title); line-height: 1.2; }
main .section-head h3 { line-height: 1.3; }
main :is(.offering, .editorial-card, .team-person, .member, .goz-card) { min-width: 0; overflow-wrap: anywhere; }
main :is(.offering, .goz-card) { border-radius: var(--radius); padding: 24px; }
main :is(.offering, .editorial-card, .goz-card) h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; }
main :is(input, textarea, select):focus-visible { outline: 2px solid var(--green-700); outline-offset: 3px; }
main .btn { min-height: 48px; }
main .article { overflow-wrap: anywhere; }
.portal-about-content .article { max-width: 940px; margin-inline: 0; }
.portal-about-content .section:first-child { padding-top: var(--portal-content-gap); }
.portal-about-content .section + .section { padding-top: 0; }
.portal-about-content .section--tight { padding-top: 0; }
.portal-about-content .section-head { max-width: 940px; margin-bottom: 24px; }
.portal-about-content .article p { font-size: 17px; line-height: 1.8; }
main :is(.field, .membership-field, .consult-form) { min-width: 0; }
main :is(.field, .membership-field, .goz-offer) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 15px;
}
main :is(.field, .membership-field) textarea { min-height: 140px; resize: vertical; }
main :is(.field, .membership-field) label { font-size: 14px; line-height: 1.6; }
main .consult-form { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); }
main .field--checkbox label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
main .field--checkbox input { flex: none; margin-top: 4px; }
main :is(.error, .membership-errors) { color: #a32727; font-size: 14px; }
.goz-regions { overflow-wrap: anywhere; column-gap: 24px; }
.portal-form-submit { width: 100%; justify-content: center; white-space: normal; }
@media (max-width: 600px) {
  :root { --portal-header-padding: 28px; --portal-content-gap: 28px; }
  main { --pad-section: 40px; }
  main .portal-page-header { min-height: 0; }
  .portal-page-header__lead { font-size: 16px; line-height: 1.7; }
  .portal-page-header__layout { flex-direction: column; align-items: stretch; gap: 20px; }
  .portal-page-header__art { opacity: .2; }
  .portal-page-header__art img { object-position: right center; }
  .portal-page-header--profile .member-logo--profile { flex: none; max-width: 260px; width: 100%; height: 100px; }
  .portal-actions .btn { max-width: 100%; }
  .portal-service-summary { padding: 24px; }
  main .section-head { margin-bottom: 24px; }
}

/* Shared photographic service header, including the original brand mark. */
.portal-patronage { margin-block: 32px; padding-block: 24px; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); }
main .portal-patronage > h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.4; }
.portal-patronage__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.portal-patronage__logos figure { margin: 0; max-width: 100%; }
main .portal-patronage__logos img { display: block; width: auto; max-width: min(260px, 100%); height: auto; max-height: 100px; object-fit: contain; }
.portal-patronage__logos figcaption { font-size: 13px; margin-top: 8px; }
.portal-profile-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.portal-profile-links > a { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; max-width: 100%; min-width: 0; }
.portal-profile-links__icon { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--green-900); color: #fff; }
.portal-profile-links__icon img { width: 20px; height: 20px; object-fit: contain; }
.portal-page-header--photo .portal-page-header__text { max-width: 740px; }
main .portal-page-header--campaign .portal-page-header__lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; font-weight: 700; color: var(--green-800); }
.service-title { display: flex; align-items: center; gap: 20px; }
.service-title > img { width: 64px; height: 74px; object-fit: contain; flex-shrink: 0; }
.portal-page-header--photo .portal-page-header__art img { mask-image: none; object-position: center; }
.portal-page-header--photo .portal-page-header__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f4faf6 0%, rgba(244,250,246,.98) 22%, rgba(244,250,246,.91) 44%, rgba(244,250,246,.35) 70%, rgba(244,250,246,.05) 100%); }
.service-title > span { min-width: 0; }
@media (max-width: 600px) {
  .service-title { gap: 16px; }
  .service-title > img { width: 48px; height: 56px; }
  .portal-page-header--photo .portal-page-header__art img { object-position: 65% center; }
  .portal-page-header--photo .portal-page-header__art::after { background: rgba(244,250,246,.91); }
}
