:root {
  --brand: #8f6a2f;
  --brand-strong: #12392f;
  --brand-soft: #eadfc6;
  --accent: #6f2430;
  --ink: #171614;
  --ink-soft: #5b554b;
  --muted: #6b6459;
  --cream: #f6f0e6;
  --cream-deep: #e8dcc8;
  --ivory-dark: #eee5d6;
  --surface: #fffaf1;
  --white: #ffffff;
  --line: #ded2bf;
  --night: #0f1513;
  --success: #1d5a48;
  --danger: #8b2637;
  --rose-dark: var(--accent);
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI Variable Text", "Aptos", "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 16px 42px rgba(20, 16, 10, 0.10);
  --shadow-lg: 0 32px 90px rgba(20, 16, 10, 0.18);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  color-scheme: light;
}

.compatibility-progress {
    margin-bottom: 1.5rem;
}

.compatibility-progress__track {
    height: .55rem;
    margin-top: .75rem;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-text, #2f2725) 12%, transparent);
}

.compatibility-progress__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--color-accent, #9d5660);
}

.compatibility-questions {
    display: grid;
    gap: 1rem;
}

.compatibility-question {
    min-width: 0;
    margin: 0;
}

.compatibility-question legend {
    max-width: 62rem;
    padding: 0 .35rem;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.08rem;
    line-height: 1.45;
}

.compatibility-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

html[data-theme="dark"] {
  --brand: #c9a45d;
  --brand-strong: #f0d798;
  --brand-soft: #463b29;
  --accent: #d58a95;
  --ink: #f5efe5;
  --ink-soft: #cec4b6;
  --muted: #b3aa9d;
  --cream: #18211f;
  --cream-deep: #24302c;
  --ivory-dark: #202a27;
  --surface: #101715;
  --white: #18211e;
  --line: #34413d;
  --night: #080c0b;
  --success: #7fc9ab;
  --danger: #f0a1ad;
  --shadow-sm: 0 16px 42px rgba(0, 0, 0, .24);
  --shadow-lg: 0 32px 90px rgba(0, 0, 0, .38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

p {
  margin-top: 0;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

a:hover {
  color: var(--brand);
  text-decoration: none;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(166, 79, 82, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--night);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateY(-0.75rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--white);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-container {
  width: min(1240px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-main {
  flex: 1;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 253, 251, 0.92);
  box-shadow: 0 10px 34px rgba(42, 31, 29, .06);
  backdrop-filter: blur(20px) saturate(1.25);
}

.site-header__utility {
  border-bottom: 1px solid rgba(229, 220, 214, .72);
  background: rgba(247, 241, 236, .62);
}

.site-header__utility-inner {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__promise {
  color: var(--ink-muted);
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.site-header__utility-actions {
  display: flex;
  gap: .9rem;
  align-items: center;
}

.site-header__contact,
.site-header__login,
.site-header__utility .button-link {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 650;
}

.site-header__contact:hover,
.site-header__login:hover,
.site-header__utility .button-link:hover {
  color: var(--brand-strong);
}

.site-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: center;
}

.theme-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  box-shadow: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--brand-strong);
  background: var(--cream);
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  font-size: 1.05rem;
  line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: scale(.7) rotate(-25deg);
}

html[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

html[data-theme="dark"] .site-header {
  background: rgba(16, 23, 21, .92);
}

html[data-theme="dark"] .site-header__utility {
  border-bottom-color: rgba(201, 164, 93, .16);
  background: rgba(24, 33, 30, .7);
}

html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .member-profile__details section {
  border-color: var(--line);
  background: var(--white);
}

html[data-theme="dark"] .catalog-filters {
  border-color: var(--line);
  background: rgba(36, 48, 44, .72);
}

html[data-theme="dark"] .admin-nav {
  background: rgba(24, 33, 30, .95);
}

html[data-theme="dark"] .admin-list-filters select {
  color: var(--ink);
  background: var(--white);
}

html[data-theme="dark"] .alert-success {
  background: #173429;
}

html[data-theme="dark"] .alert-danger {
  background: #3c2025;
}

html[data-theme="dark"] .alert-info {
  color: #a9d7df;
  background: #1c3338;
}

.site-brand {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--ink);
}

.site-brand:hover {
  color: var(--brand-strong);
}

.site-brand__logo {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  border-radius: 14px;
}

.site-brand__mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50% 50% 48% 52%;
  color: var(--white);
  background: var(--brand);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(166, 79, 82, 0.22);
}

.site-brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  gap: clamp(.85rem, 1.55vw, 1.5rem);
  align-items: center;
  justify-content: center;
}

.site-nav > a,
.nav-disclosure__trigger {
  position: relative;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 680;
  list-style: none;
  white-space: nowrap;
}

.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.site-nav > a:hover::after {
  transform: scaleX(1);
}

.site-nav > a:hover,
.nav-disclosure__trigger:hover,
.nav-disclosure.is-open .nav-disclosure__trigger {
  color: var(--brand-strong);
}

.nav-disclosure {
  position: relative;
}

.nav-disclosure__trigger {
  display: flex;
  gap: .42rem;
  align-items: center;
}

.nav-disclosure__trigger span {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-disclosure.is-open .nav-disclosure__trigger span {
  transform: translateY(2px) rotate(225deg);
}

.nav-disclosure__panel {
  position: absolute;
  z-index: 110;
  top: calc(100% + 1.45rem);
  left: 50%;
  width: min(580px, calc(100vw - 3rem));
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(42, 31, 29, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-disclosure.is-open .nav-disclosure__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-disclosure__intro {
  display: flex;
  padding: 1.5rem;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(145deg, var(--cream), rgba(201, 164, 93, .14));
}

.nav-disclosure__intro strong {
  margin-top: .5rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.18;
}

.nav-disclosure__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .8rem;
}

.nav-disclosure__card {
  position: relative;
  display: flex;
  min-height: 58px;
  padding: .85rem 2rem .85rem .9rem;
  align-items: center;
  border-radius: 13px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 680;
}

.nav-disclosure__card::after {
  position: absolute;
  right: .9rem;
  content: "\2192";
  color: var(--brand);
  transition: transform 160ms ease;
}

.nav-disclosure__card:hover {
  color: var(--brand-strong);
  background: var(--cream);
}

.nav-disclosure__card:hover::after {
  transform: translateX(3px);
}

.nav-disclosure__panel--compact {
  right: 0;
  left: auto;
  width: 280px;
  display: grid;
  grid-template-columns: 1fr;
  padding: .65rem;
  transform: translateY(-6px);
}

.nav-disclosure.is-open .nav-disclosure__panel--compact {
  transform: translateY(0);
}

.site-header__actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: flex-end;
}

.site-header__logout,
.language-menu__panel form {
  margin: 0;
}

.button,
a.button,
button.button,
input.button {
  min-height: 46px;
  display: inline-flex;
  padding: 0.78rem 1.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand-strong);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease, border 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
a.button:hover,
button.button:hover {
  color: var(--white);
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  box-shadow: 0 10px 24px rgba(134, 58, 62, 0.18);
  transform: translateY(-1px);
}

.button.primary,
.button--primary,
a.button--primary {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.button--large,
.button.big {
  min-height: 54px;
  padding-inline: 1.8rem;
}

.button.small,
.site-header__cta {
  min-height: 42px;
  padding: 0.65rem 1.2rem;
  font-size: 0.73rem;
}

.button-link {
  padding: 0;
  border: 0;
  color: var(--brand-strong);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.language-menu,
.mobile-menu {
  position: relative;
}

.language-menu summary {
  min-width: 32px;
  padding: .25rem .4rem;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  list-style: none;
  text-align: center;
}

.language-menu summary::-webkit-details-marker,
.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu__panel,
.mobile-menu__panel {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 90px;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.language-menu__panel {
  z-index: 120;
  min-width: 180px;
}

.language-menu summary,
.language-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-menu__flag {
  display: block;
  width: 22px;
  height: 16px;
  flex: 0 0 22px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, .25);
}

.language-menu__item {
  width: 100%;
  height: auto;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
}

.language-menu__item:hover,
.language-menu__item.is-active {
  color: var(--brand-strong);
  background: var(--cream);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.mobile-menu summary span {
  width: 18px;
  height: 1.5px;
  display: block;
  background: var(--ink);
}

.mobile-menu__panel {
  width: min(380px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 125px);
  display: grid;
  gap: 0;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 20px;
}

.mobile-menu__panel a {
  padding: .72rem .8rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 650;
}

.mobile-menu__panel > a:hover {
  color: var(--brand-strong);
  background: var(--cream);
}

.mobile-menu__label {
  margin: .85rem .8rem .25rem;
  color: var(--ink-muted);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mobile-menu__label:first-child {
  margin-top: .15rem;
}

.mobile-menu__actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: .55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.mobile-menu__actions .button {
  padding-inline: .75rem;
  font-size: .68rem;
}

/* Home */
.home-v3 {
  padding: 2rem 0 0;
}

.home-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  flex-direction: column;
  justify-content: center;
}

.section-kicker {
  margin-bottom: 1.25rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.home-hero__eyebrow {
  margin-bottom: 1.25rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-kicker--light {
  color: #d9aaa3;
}

.home-hero h1 {
  max-width: 620px;
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-hero__lead {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  margin-top: 2.2rem;
}

.home-hero__media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.home-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(247, 241, 236, 0.22), transparent 32%);
  pointer-events: none;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease-out;
}

.home-hero__media figcaption {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 42, 41, 0.4);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 700;
}

.trust-strip {
  width: calc(100% - 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: -1.75rem auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.trust-strip > div {
  display: flex;
  gap: 0.85rem;
  padding: 1.4rem 1.6rem;
  align-items: center;
  border-right: 1px solid var(--line);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip span {
  color: var(--brand);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.trust-strip strong {
  font-size: 0.84rem;
}

.home-trust {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.home-section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.home-section-heading h2,
.home-steps h2,
.home-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-card {
  min-height: 300px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.home-card:hover {
  border-color: var(--brand-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.home-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 3rem;
  border-radius: 50%;
  color: var(--brand-strong);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(122, 30, 42, .08);
}

.site-icon {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
}

.home-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.65rem;
}

.home-card p {
  margin: 0;
  color: var(--ink-soft);
}

.home-steps {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 6.5rem);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.72);
  background: var(--night);
}

.home-steps h2,
.home-step-list h3 {
  color: var(--white);
}

.home-step-list {
  display: grid;
}

.home-step-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.home-step-list article:first-child {
  padding-top: 0;
}

.home-step-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-step-list__icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #d9aaa3;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.home-step-list__icon .site-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.home-step-list__icon small {
  position: absolute;
  right: -8px;
  bottom: -7px;
  min-width: 21px;
  padding: 2px 4px;
  border: 2px solid var(--night);
  border-radius: 10px;
  color: var(--night);
  background: #d9aaa3;
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.home-step-list h3 {
  margin-bottom: 0.45rem;
  font-size: 1.5rem;
}

.home-step-list p {
  margin: 0;
}

.home-cta {
  max-width: 900px;
  padding: clamp(5rem, 9vw, 9rem) 1rem;
  margin-inline: auto;
  text-align: center;
}

.home-cta h2 {
  margin-bottom: 2rem;
}

html.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .7, .2, 1);
}

html.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Forms and content */
.auth-page,
.catalog-page,
.member-profile,
.content-page,
.admin-shell {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.auth-page .container {
  max-width: 780px;
}

.auth-page .col-lg-6,
.auth-page .col-lg-7 {
  max-width: none;
  flex: 0 0 100%;
}

.auth-page header,
.catalog-page > header,
.member-profile__header {
  margin-bottom: 2.2rem;
}

.auth-page header h1,
.catalog-page h1,
.member-profile h1,
.content-page h1,
.admin-shell > header h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.auth-page form,
.admin-page-form form {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.registration-page .container {
  max-width: 960px;
}

.registration-page header.major {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.registration-paths {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.registration-wizard__header {
  margin: -.4rem 0 2rem;
}

.registration-wizard__status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.registration-wizard__status span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.registration-wizard__status strong {
  color: var(--ink);
  font-size: .95rem;
}

.registration-wizard__meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cream-deep);
}

.registration-wizard__meter span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--rose));
  transition: width 240ms ease;
}

.registration-wizard__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.registration-wizard__steps li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
}

.registration-wizard__steps span {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
}

.registration-wizard__steps small {
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.registration-wizard__steps li.is-active,
.registration-wizard__steps li.is-complete {
  color: var(--brand-strong);
}

.registration-wizard__steps li.is-active span,
.registration-wizard__steps li.is-complete span {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.registration-wizard__notice {
  padding: .85rem 1rem;
  margin: 0 0 1rem;
  border-radius: 12px;
  color: var(--danger);
  background: rgba(144, 45, 45, .08);
  font-size: .84rem;
  font-weight: 700;
}

.registration-step + .registration-step {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.registration-wizard--enhanced .registration-step + .registration-step {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.registration-wizard--enhanced [data-registration-step][hidden] {
  display: none;
}

.registration-step__intro {
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.registration-step__intro h2 {
  margin: .25rem 0 .55rem;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.registration-step__intro p {
  margin: 0;
  color: var(--muted);
}

.registration-step__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1.15rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.registration-step__actions--end {
  justify-content: flex-end;
}

.registration-wizard__invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(144, 45, 45, .1) !important;
}

.registration-page .consent-panel {
  padding: 1.2rem 1.25rem .25rem;
  margin: 1.35rem 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

.registration-page .consent-panel legend {
  width: auto;
  padding: 0 .45rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

label {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

textarea.form-control,
textarea {
  min-height: 120px;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  color: var(--ink);
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(166, 79, 82, 0.1);
}

.help-block,
.invalid-feedback,
.hint-block {
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.has-error .help-block,
.is-invalid + .invalid-feedback {
  color: var(--danger);
}

.alert {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: var(--radius-sm);
}

.alert-success {
  color: var(--success);
  background: #e6f0eb;
}

.alert-danger {
  color: var(--danger);
  background: #f8e7e8;
}

.alert-info {
  color: #365c64;
  background: #e7f1f2;
}

.content-page {
  max-width: 850px;
  margin-inline: auto;
}

.content-page__summary {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.content-page__body {
  font-size: 1.04rem;
}

.content-page__cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(201, 164, 93, .45);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--cream), rgba(201, 164, 93, .12));
  box-shadow: var(--shadow-sm);
}

.content-page__cta h2 {
  margin: .35rem 0 .45rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.content-page__cta p {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
}

.content-page__cta .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 620px) {
  .content-page__cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-page__cta .button {
    width: 100%;
  }
}

/* Catalogue */
.catalog-filters {
  margin: 1.5rem 0 3.25rem;
  padding: 1.25rem 1.4rem 0.35rem;
  border: 1px solid rgba(222, 210, 191, .8);
  border-radius: 18px;
  background: rgba(246, 240, 230, .62);
}

.catalog-filters__submit {
  display: flex;
  align-items: flex-end;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.8rem);
  margin: 1.75rem 0 3rem;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(222, 210, 191, .82);
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 10px 30px rgba(25, 21, 16, .07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.profile-card:hover {
  box-shadow: 0 20px 46px rgba(25, 21, 16, .14);
  transform: translateY(-4px);
}

.profile-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  height: auto;
  display: block;
  overflow: hidden;
  background: var(--cream-deep);
}

.profile-card__media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 28%;
  content: "";
  background: linear-gradient(transparent, rgba(17, 16, 14, .2));
  pointer-events: none;
}

.profile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.profile-card:hover .profile-card__media img {
  transform: scale(1.045);
}

.profile-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-family: var(--serif);
  font-size: 5rem;
}

.profile-card__body {
  min-height: 178px;
  padding: 1.25rem 1.3rem 1.35rem;
}

.profile-card__identity {
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: space-between;
}

.profile-card__body h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.profile-card__verified {
  width: 1.45rem;
  height: 1.45rem;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(18, 57, 47, .18);
  border-radius: 50%;
  color: var(--brand-strong);
  background: #edf3ef;
  font-size: .78rem;
  font-weight: 800;
}

.profile-card__facts {
  margin: .15rem 0 .6rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .015em;
}

.profile-card__languages {
  min-height: 2.6rem;
  margin: 0 0 1rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.profile-card__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid currentColor;
  color: var(--brand-strong);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.profile-card__link::after {
  content: "→";
  font-size: 1rem;
  transition: transform 160ms ease;
}

.profile-card__link:hover::after {
  transform: translateX(3px);
}

.profile-card__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
}

.profile-card__gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.profile-card--anonymous .profile-card__body {
  min-height: 0;
}

.profile-card--anonymous .profile-card__body h2 {
  margin-bottom: .55rem;
}

.profile-photo-delete-form {
  margin: 0;
}

.member-profile__header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.member-profile__gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(115px, 12vw);
  gap: 1rem;
  margin: 2.25rem 0 2.5rem;
}

.member-profile__photo {
  grid-column: span 4;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cream-deep);
}

.member-profile__photo--primary {
  grid-row: span 2;
  grid-column: span 8;
}

.member-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.member-profile__photo:hover img {
  transform: scale(1.025);
}

[data-own-profile-preview] .member-profile__photo {
  position: relative;
}

[data-own-profile-preview] figcaption {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  width: fit-content;
  max-width: calc(100% - 1.5rem);
  padding: .35rem .65rem;
  border-radius: .5rem;
  background: rgba(18, 18, 18, .85);
  color: #fff;
  font-size: .8rem;
  line-height: 1.4;
  pointer-events: none;
}

.member-profile__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.member-profile__details section {
  padding: 1.6rem;
  border: 1px solid rgba(222, 210, 191, .8);
  border-radius: 18px;
  background: #fffdf9;
}

/* Administration */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .94);
  box-shadow: var(--shadow-sm);
}

.admin-shell__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
  align-items: end;
  gap: .25rem 2rem;
  margin-bottom: 1.5rem;
}

.admin-shell__header .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-shell__header h1 {
  margin: 0;
}

/* Operational screens use compact typography, not public-page hero headings. */
.admin-shell { font-size: 15px; line-height: 1.5; }
.admin-shell > .admin-shell__header { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.admin-shell > .admin-shell__header h1 { font-family: var(--font-body, sans-serif); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
.admin-shell > .admin-shell__header > p:last-child { font-size: 14px; max-width: 70ch; }
.admin-shell h2 { font-family: var(--font-body, sans-serif); font-size: 22px; line-height: 1.3; }
.admin-shell h3, .admin-shell legend { font-family: var(--font-body, sans-serif); font-size: 18px; line-height: 1.4; }
.admin-shell h4 { font-size: 16px; }
.admin-shell p, .admin-shell label, .admin-shell td, .admin-shell th { font-size: 14px; }
.admin-shell .button { font-size: 14px; letter-spacing: 0; text-transform: none; padding: 10px 16px; }
.admin-shell .button.small { font-size: 13px; padding: 7px 11px; }
.admin-shell .form-control { font-size: 15px; }
.admin-login header h1 { font-family: var(--font-body, sans-serif); font-size: 32px; line-height: 1.2; }
.admin-login header p, .admin-login label, .admin-login p { font-size: 15px; }
.admin-login .button { font-size: 14px; text-transform: none; letter-spacing: 0; }

.admin-shell__header > p:last-child {
  margin: 0 0 .65rem;
  color: var(--muted);
}

.admin-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .6rem .85rem;
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.admin-nav__link:hover,
.admin-nav__link:focus-visible {
  color: var(--ink);
  background: var(--surface-muted, #f7f1ec);
  text-decoration: none;
}

.admin-nav__link.is-active {
  color: var(--surface);
  background: var(--ink);
}

.admin-nav__link--external {
  margin-left: auto;
  color: var(--accent-dark, #71551c);
}

.admin-shell .grid-view,
.admin-shell .table-wrapper {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.admin-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-list-heading h2,
.admin-list-heading p {
  margin-top: 0;
}

.admin-list-heading p {
  max-width: 44rem;
  margin-bottom: 0;
}

.admin-dashboard .box,
.admin-page-form fieldset.box {
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.admin-page-form fieldset.box {
  height: auto;
  margin-bottom: 1.5rem;
}

.admin-page-form legend {
  width: auto;
  padding: 0 0.55rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.table {
  color: var(--ink);
  background: var(--white);
}

.table thead th {
  border-bottom-color: var(--line);
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table td,
.table th {
  border-top-color: var(--line);
  vertical-align: middle;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.site-brand--footer {
  margin-bottom: 1rem;
}

.site-footer p {
  max-width: 480px;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.site-footer__nav {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.site-footer__nav strong {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__nav a {
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.site-footer__legal {
  justify-self: end;
}

.pagination {
  gap: 0.35rem;
}

.page-link {
  border-color: var(--line);
  color: var(--brand-strong);
}

.page-item.active .page-link {
  border-color: var(--brand);
  background: var(--brand);
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .site-header__actions {
    grid-column: 3;
  }

  .mobile-menu {
    display: block;
  }

  .home-hero {
    min-height: 600px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .site-container {
    width: min(100% - 2rem, 1240px);
  }

  .site-header__utility-inner {
    min-height: 32px;
    justify-content: flex-end;
  }

  .site-header__promise,
  .site-header__contact,
  .site-header__utility .site-header__login,
  .site-header__utility .site-header__logout {
    display: none;
  }

  .site-header__inner {
    min-height: 68px;
    gap: 0.7rem;
  }

  .home-v3 {
    padding-top: 1rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .home-hero__content {
    padding: 2.2rem 1.5rem 2.5rem;
  }

  .home-hero__media {
    min-height: 430px;
  }

  .home-hero__media::after {
    background: linear-gradient(180deg, rgba(247, 241, 236, 0.12), transparent 30%);
  }

  .trust-strip {
    width: calc(100% - 1.5rem);
    grid-template-columns: 1fr;
    margin-top: -1.25rem;
  }

  .trust-strip > div {
    padding: 1rem 1.2rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .home-card-grid,
  .home-steps,
  .profile-grid,
  .member-profile__details,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: auto;
  }

  .home-card__icon {
    margin-bottom: 2rem;
  }

  .home-steps {
    padding: 2.5rem 1.5rem;
    border-radius: 26px;
  }

  .member-profile__header {
    flex-direction: column;
  }

  .member-profile__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(160px, 48vw);
  }

  .member-profile__photo,
  .member-profile__photo--primary {
    grid-column: span 1;
    grid-row: span 1;
  }

  .member-profile__photo--primary {
    grid-column: span 2;
  }

  .site-footer__legal {
    justify-self: start;
  }

  .admin-shell__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: .45rem;
  }

  .admin-shell__header .eyebrow {
    grid-column: auto;
  }

  .admin-shell__header > p:last-child {
    max-width: 42rem;
    margin-bottom: .25rem;
  }

  .admin-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .6rem;
    scroll-padding-inline: .45rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav__link {
    flex: 0 0 auto;
  }

  .admin-nav__link--external {
    margin-left: 0;
  }

  .admin-shell table {
    min-width: 720px;
  }
}

@media (max-width: 520px) {
  .site-container {
    width: min(100% - 1.25rem, 1240px);
  }

  .site-brand__name {
    font-size: 1.08rem;
  }

  .site-brand--footer .site-brand__name {
    display: inline;
  }

  .site-header__cta {
    display: none !important;
  }

  .mobile-menu__panel {
    position: fixed;
    top: 108px;
    right: .625rem;
    width: calc(100vw - 1.25rem);
    max-height: calc(100vh - 118px);
  }

  .home-hero h1 {
    font-size: 2.1rem;
  }

  .home-hero__media {
    min-height: 330px;
  }

  .home-hero__media img {
    object-position: 61% center;
  }

  .home-hero__media figcaption {
    right: 1rem;
    bottom: 1rem;
  }

  .home-step-list article {
    grid-template-columns: 38px 1fr;
  }

  .auth-page form,
  .admin-page-form form {
    padding: 1.1rem;
  }

  .admin-shell {
    padding-block: 1.5rem 3rem;
  }

  .admin-shell__header h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

}

@media (max-width: 370px) {
  .site-brand__name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .home-hero__media img {
    transform: none !important;
  }
}

/* Member self-service and moderation */
.profile-editor { padding: 3rem 0 5rem; }
.page-heading { max-width: 760px; margin-bottom: 2rem; }
.page-heading h1 { margin: .35rem 0 .75rem; }
.profile-editor__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 1.5rem; align-items: start; }
.profile-editor .box, .admin-member-review .box { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.profile-editor__photos { position: sticky; top: 105px; }
.photo-upload { padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.profile-editor__photo-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.profile-editor__photo-list figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--ivory-dark); aspect-ratio: 4 / 5; }
.profile-editor__photo-list img, .admin-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.profile-editor__photo-list figcaption { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; padding: .4rem .55rem; border-radius: 999px; background: rgba(27, 24, 23, .82); color: #fff; font-size: .75rem; text-align: center; }
.status--approved { background: rgba(35, 105, 74, .9) !important; }
.status--rejected { background: rgba(144, 45, 45, .9) !important; }
.profile-photo-delete { position: absolute; z-index: 2; top: .5rem; right: .5rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: rgba(27, 24, 23, .82); color: #fff; cursor: pointer; font-size: 1.25rem; line-height: 1; text-decoration: none; }
.profile-photo-delete:hover { background: #7d3038; color: #fff; text-decoration: none; }
.admin-member-review__summary dl { display: grid; grid-template-columns: minmax(130px, .3fr) 1fr; gap: .65rem 1rem; margin: 0; }
.admin-member-review__summary dt { color: var(--muted); }
.admin-member-review__summary dd { margin: 0; }
.admin-member-review__actions { margin: 1rem 0 2rem; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.admin-photo-grid article img { height: 260px; border-radius: 14px; }
.admin-dashboard__stats .box { height: calc(100% - 1rem); margin-bottom: 1rem; }
.admin-dashboard__stats h2 { margin: 0 0 .35rem; font-size: 2rem; }
.admin-dashboard__stats p { margin: 0; color: var(--muted); font-size: .88rem; }
.admin-dashboard__stats h2 a { color: inherit; text-decoration: none; }
.admin-dashboard__stats h2 a:hover { color: var(--accent); }
.admin-list-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 0 0 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-list-filters > div { min-width: 180px; }
.admin-list-filters label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-list-filters select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .55rem .75rem; }
.admin-list-filters__actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.contact-page { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: clamp(2.5rem, 7vw, 6rem) 0; }
.contact-page__intro h1 { margin: .35rem 0 1rem; }
.contact-page__intro > p:last-child { max-width: 34rem; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.contact-channels { margin-top: 1.75rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow-soft); }
.contact-channels p { margin: .35rem 0; overflow-wrap: anywhere; }
.contact-channels a { color: var(--accent-strong); font-weight: 700; }
.contact-page__form { margin: 0; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.admin-inquiry dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: .65rem 1rem; }
.admin-inquiry dt { color: var(--muted); font-weight: 700; }
.admin-inquiry dd { margin: 0; overflow-wrap: anywhere; }
.admin-inquiry__message { margin: 1.5rem 0; padding: 1.25rem; border-radius: 14px; background: var(--surface-muted, #f7f1ec); line-height: 1.65; }
.admin-inquiry__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

@media (max-width: 760px) {
  .contact-page { grid-template-columns: 1fr; }
}
.services-page { padding: 3rem 0 5rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.service-card { position: relative; min-height: 280px; padding: 1.7rem; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.service-card::after { content: ''; position: absolute; right: -45px; bottom: -55px; width: 145px; height: 145px; border: 1px solid var(--line); border-radius: 50%; opacity: .65; pointer-events: none; }
.service-card:hover { border-color: var(--brand-soft); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.6rem; }
.service-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; color: var(--brand-strong); background: var(--cream); }
.service-card__number { color: var(--rose-dark); font-size: .78rem; font-weight: 700; letter-spacing: .16em; }
.service-card h2 { margin: 0 0 .75rem; font-size: 1.65rem; }
.service-card p, .service-card__body { color: var(--muted); line-height: 1.7; }
.service-card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.service-detail { max-width: 860px; margin: 0 auto; }
.service-detail > h1 { margin: .35rem 0 1.25rem; }
.service-detail__body, .service-detail__request { margin-bottom: 1rem; }
.service-detail__body { font-size: 1.05rem; line-height: 1.75; }
.service-detail__request h2 { margin-top: 0; }

/* Privacy notice: necessary cookies only until optional services are added. */
.cookie-notice { position: fixed; z-index: 1200; left: 50%; bottom: 1rem; transform: translateX(-50%); width: min(920px, calc(100% - 2rem)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.15rem; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(31, 27, 26, .97); color: #fff; box-shadow: 0 20px 60px rgba(20, 16, 15, .28); }
.cookie-notice[hidden] { display: none; }
.cookie-notice strong { display: block; margin-bottom: .25rem; }
.cookie-notice p { margin: 0; color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.45; }
.cookie-notice .button { flex: 0 0 auto; margin: 0; }

@media (max-width: 760px) {
  .registration-wizard__steps small { display: none; }
  .registration-wizard__steps li { justify-content: center; }
  .registration-wizard__status { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .registration-step__actions { align-items: stretch; flex-direction: column-reverse; }
  .registration-step__actions .button { width: 100%; }
  .registration-step__actions--end { flex-direction: column; }
  .profile-editor__grid, .form-grid { grid-template-columns: 1fr; }
  .profile-editor__photos { position: static; }
  .cookie-notice { align-items: stretch; flex-direction: column; gap: .8rem; }
  .cookie-notice .button { width: 100%; }
  .admin-list-filters > div { min-width: 100%; }
  .admin-list-filters__actions, .admin-inquiry__actions { align-items: stretch; flex-direction: column; }
  .admin-list-filters__actions .button, .admin-inquiry__actions .button { width: 100%; }
  .admin-inquiry dl { grid-template-columns: 1fr; gap: .25rem; }
  .admin-inquiry dd { margin-bottom: .75rem; }
  .admin-list-heading { align-items: stretch; flex-direction: column; }
  .admin-list-heading .button { width: 100%; }
}

/* Workspace shortcuts remain usable without JavaScript and never discard edits. */
.workspace-navigation {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  padding: .9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(140, 111, 70, .22);
  border-radius: 1rem;
}
.workspace-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: .7rem;
  text-decoration: none;
  font-weight: 600;
}
.workspace-navigation a:hover,
.workspace-navigation a:focus-visible { background: rgba(140, 111, 70, .12); }
.profile-editor [id^="profile-"] { scroll-margin-top: 7rem; }
.admin-photo-preview { display: block; cursor: zoom-in; border-radius: .8rem; overflow: hidden; }
.admin-photo-preview:focus-visible { outline: 3px solid #996d2e; outline-offset: 4px; }
.photo-upload-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; }
.photo-upload-previews figure { margin: 0; padding: .6rem; border: 1px solid rgba(140, 111, 70, .22); border-radius: .8rem; }
.photo-upload-previews img { width: 100%; height: 150px; object-fit: cover; border-radius: .5rem; }
.photo-upload-previews figcaption, .photo-upload-previews p { overflow-wrap: anywhere; font-size: .85rem; }

/* Task-oriented screens use a compact hierarchy, independent of marketing heroes. */
.profile-editor, .admin-shell, .registration-page { font-size: 1rem; line-height: 1.55; }
.profile-editor h1, .admin-shell__header h1, .registration-page h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.profile-editor h2, .admin-shell h2, .registration-page h2 {
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -.015em;
}
.profile-editor h3, .admin-shell h3 { font-size: 1.125rem; line-height: 1.4; }
.profile-editor p, .admin-shell p, .registration-page p {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 68ch;
}
.profile-editor .page-heading > p, .registration-page .major > p,
.admin-shell__header > p { font-size: 1rem; line-height: 1.55; }
.profile-editor label, .registration-page label { font-size: .9375rem; line-height: 1.4; }
.profile-editor input, .profile-editor select, .profile-editor textarea,
.registration-page input, .registration-page select, .registration-page textarea,
.admin-shell input, .admin-shell select, .admin-shell textarea { font-size: 1rem; }
.profile-editor .hint-block, .registration-page .hint-block,
.profile-editor .form-hint, .registration-page .form-hint { font-size: .875rem; line-height: 1.5; }
.admin-dashboard__stats h2 { font-size: 2rem; }
.profile-workspace--enhanced .profile-editor__grid { display: block; }
.profile-workspace--enhanced [hidden] { display: none !important; }
.profile-workspace--enhanced .workspace-navigation {
  padding: .375rem;
  border: 1px solid rgba(140, 111, 70, .2);
  border-radius: 1rem;
  gap: .375rem;
}
.profile-workspace--enhanced .workspace-navigation a { flex: 1; text-align: center; border-radius: .75rem; }
.profile-workspace--enhanced .workspace-navigation a[aria-selected="true"] {
  background: #805f30;
  color: #fff;
  box-shadow: 0 3px 9px rgba(65, 43, 16, .12);
}
.profile-workspace--enhanced .profile-editor__form,
.profile-workspace--enhanced .profile-editor__photos,
.profile-workspace--enhanced .profile-privacy-controls { margin-top: 0; }
.profile-workspace--enhanced .profile-editor__photo-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.profile-workspace__save { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid rgba(140, 111, 70, .2); }
.photo-dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: .65rem; padding: 2rem 1.25rem; text-align: center;
  border: 1.5px dashed var(--brand); border-radius: 1.25rem;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  cursor: pointer; transition: background .2s, border-color .2s;
}
.photo-dropzone:hover, .photo-dropzone.is-dragging {
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}
.photo-dropzone:focus-within { outline: 3px solid var(--brand); outline-offset: 4px; }
.photo-dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.photo-dropzone__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  border-radius: 1rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
}
.photo-dropzone__icon svg { width: 1.8rem; height: 1.8rem; }
.photo-dropzone strong { font-size: 1.15rem; color: var(--ink); }
.photo-dropzone > span:not(.photo-dropzone__icon):not(.photo-dropzone__button),
.photo-dropzone small { color: var(--muted); font-weight: 400; }
.photo-dropzone__button { padding: .6rem 1.2rem; border: 1px solid var(--brand); border-radius: 999px; color: var(--ink); }
.photo-upload__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.photo-upload__clear { border: 0; background: transparent; color: var(--ink); text-decoration: underline; cursor: pointer; padding: .6rem; }
.photo-upload__clear[hidden] { display: none; }
.photo-viewer { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); }
.photo-viewer:not([open]) { display: none; }
.photo-viewer::backdrop { background: rgba(0, 0, 0, .8); }
body:has(.photo-viewer[open]) { overflow: hidden; }
.photo-viewer__toolbar, .photo-viewer__navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.photo-viewer button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.photo-viewer button:focus-visible, a[data-viewer-photo]:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.photo-viewer button:disabled { opacity: .5; cursor: default; }
.photo-viewer [data-viewer-image] { display: block; width: 100%; height: min(65dvh, 720px); object-fit: contain; margin-block: 12px; }
.photo-viewer [data-viewer-caption] { margin: 8px 0 12px; }
.member-profile__photo > a { display: block; height: 100%; }
.profile-editor__photo-list a[data-viewer-photo] { display: block; }
.photo-upload-previews:not(:empty) { margin-top: 1.25rem; }
.photo-upload-previews { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.photo-upload__actions [type="submit"]:disabled { opacity: .45; cursor: default; }
.photo-upload-previews figure { background: var(--surface); padding: .5rem; }
.photo-upload-previews figcaption { margin-top: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-upload-previews p:empty { display: none; }
.photo-upload[aria-busy="true"] .photo-dropzone { opacity: .55; cursor: wait; }
.admin-profile-editor { max-width: 1000px; }
.admin-profile-section { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.admin-profile-section summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 650; font-size: 1rem; color: var(--ink); }
.admin-profile-section summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }
.admin-profile-section summary span { margin-inline: .4rem .75rem; color: var(--muted); font-size: .8rem; }
.admin-profile-section[open] summary { border-bottom: 1px solid var(--line); }
.admin-profile-section__body { padding: 1.25rem; }
.admin-profile-section__body .form-grid { margin-bottom: 0; }
.admin-profile-editor__actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-block: .75rem; }
@media (max-width: 640px) {
  .profile-workspace--enhanced .workspace-navigation { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .profile-workspace--enhanced .workspace-navigation a { min-width: 0; padding: .75rem .5rem; }
  .workspace-navigation { flex-wrap: nowrap; overflow-x: auto; }
  .workspace-navigation a { flex-shrink: 0; }
  .profile-editor__photos { order: -1; }
}
