/* 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); }
}
/* Shared consent notice: visible immediately, independent of page length. */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad-x) calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  color: var(--ink-900);
  border-top: 1px solid var(--ink-100);
  box-shadow: 0 -8px 32px rgba(14, 58, 42, .14);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner > p { margin: 0; max-width: 800px; }
.cookie-actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn { padding: 12px 24px; font-size: var(--fs-small); }
@media (max-width: 600px) {
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 16px; padding-top: 16px; }
  .cookie-actions .btn { flex: 1; min-width: 0; }
}

/* Shared page-header variant: interactive event calendar. */
.portal-page-header--calendar .portal-page-header__layout { align-items: flex-start; }
.event-calendar { flex: 0 1 640px; min-width: 0; max-width: 100%; padding: 20px; border: 1px solid var(--ink-100); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 32px rgb(14 58 42 / 5%); }
.event-calendar__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.event-calendar__details { border-left: 1px solid var(--ink-100); padding-left: 24px; min-width: 0; }
.event-calendar__month-grid { min-width: 0; }
.event-calendar[hidden] { display: none; }
.event-calendar__top, .event-calendar__navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event-calendar__eyebrow { color: var(--green-700); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.event-calendar button { font: inherit; cursor: pointer; }
.event-calendar__reset { border: 0; background: transparent; color: var(--green-700); font-size: 11px !important; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.event-calendar__navigation { margin: 12px 0; }
.event-calendar__navigation h2 { margin: 0; font-size: 18px; font-weight: 700; text-transform: capitalize; }
.event-calendar__navigation button { width: 36px; height: 36px; border: 1px solid var(--ink-100); border-radius: 50%; background: var(--green-50); color: var(--green-900); }
.event-calendar__weekdays, .event-calendar__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.event-calendar__weekdays { font-size: 11px; color: var(--ink-500); margin-bottom: 8px; }
.event-calendar__day { position: relative; display: grid; place-items: center; height: 30px; min-height: 30px; padding: 0; border: 1px solid transparent; border-radius: 10px; font-size: 12px; color: var(--ink-500); }
.event-calendar button.event-calendar__day { font-size: 12px; }
.event-calendar__day.has-events { background: var(--green-100); color: var(--green-900); font-weight: 700; }
.event-calendar__day.is-today { border-color: var(--green-700); color: var(--green-900); }
.event-calendar__day[aria-pressed="true"], .event-calendar__day.has-events:hover { background: var(--green-900); color: white; }
.event-calendar__day small { position: absolute; top: -3px; right: -2px; display: grid; place-items: center; min-width: 15px; height: 15px; border-radius: 50%; background: var(--lime-500); color: var(--ink-900); font-size: 9px; }
.event-calendar button:focus-visible, .event-calendar a:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.event-calendar__legend { margin: 12px 0 !important; color: var(--green-700); font-size: 10px; line-height: 1.6; }
.event-calendar__agenda { border-top: 1px solid var(--ink-100); padding-top: 12px; }
.event-calendar__agenda h3 { font-size: 12px; line-height: 1.6; margin: 0 0 8px; }
.event-calendar__agenda ul { list-style: none; padding: 0; margin: 0; }
.event-calendar__agenda li + li { margin-top: 10px; }
.event-calendar__agenda a { display: flex; gap: 10px; font-size: 12px; line-height: 1.6; color: var(--green-900); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.event-calendar__agenda a:hover { text-decoration: underline; }
.event-calendar__time { flex: 0 0 auto; color: var(--green-700); font-weight: 400; }
@media (max-width: 900px) {
  .portal-page-header--calendar .portal-page-header__layout { flex-direction: column; align-items: stretch; }
  .event-calendar { flex-basis: auto; width: 100%; max-width: 640px; }
}
@media (max-width: 540px) {
  .event-calendar { padding: 16px; }
  .event-calendar__body { grid-template-columns: 1fr; gap: 8px; }
  .event-calendar__details { border-left: 0; padding-left: 0; }
}

