:root {
  --wine: #132944;
  --wine-dark: #08182b;
  --gold: #cf171f;
  --navy: #132944;
  --red: #cf171f;
  --white: #ffffff;
  --gray: #f5f5f5;
  --ink: #151515;
  --muted: #636363;
  --line: rgba(19, 41, 68, 0.14);
  --shadow: 0 24px 60px rgba(8, 24, 43, 0.14);
  --radius: 8px;
  --max: 1180px;
  --font-official: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-footer: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-official);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 2000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--wine);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(90, 15, 27, 0.1);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(49, 7, 16, 0.11);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 1rem), 1240px);
  min-height: 72px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: clamp(150px, 22vw, 220px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  gap: 5px;
  color: var(--wine);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
  visibility: hidden;
  opacity: 0;
  transition: 180ms ease;
}

.nav-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  opacity: 1;
}

.nav-panel a {
  padding: 0.82rem 0.9rem;
  color: var(--wine-dark);
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-panel a:hover,
.nav-panel a:focus-visible,
.nav-panel a[aria-current="page"] {
  background: var(--gray);
  outline: none;
}

.nav-panel .nav-cta {
  color: var(--white);
  background: var(--wine);
  text-align: center;
}

.language-switcher {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.25rem;
  margin-left: 0.5rem;
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-switcher button {
  min-height: 34px;
  padding: 0.45rem 0.62rem;
  color: var(--wine-dark);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button.is-active,
.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--white);
  background: var(--wine);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(92svh - 72px);
  overflow: hidden;
  color: var(--wine-dark);
  background:
    linear-gradient(135deg, var(--white) 0 68%, rgba(207, 23, 31, 0.1) 68% 100%),
    var(--white);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 48%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(19, 41, 68, 0.08), rgba(207, 23, 31, 0.04));
}

.hero-media {
  position: absolute;
  top: 19%;
  right: clamp(1rem, 5vw, 5rem);
  z-index: 0;
  width: min(50vw, 620px);
  opacity: 0.16;
}

.hero-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(calc(100% - 2rem), 860px);
  min-height: calc(92svh - 72px);
  padding: 5rem 0 4rem;
  margin-inline: auto;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-official);
  font-size: clamp(2.35rem, 8vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0;
  max-width: 100%;
}

.hero-slogan {
  max-width: 760px;
  margin: 1.2rem 0 1.5rem;
  color: var(--gold);
  font-size: clamp(1.18rem, 3vw, 1.95rem);
  font-weight: 780;
  line-height: 1.14;
}

.hero-copy {
  max-width: 760px;
  color: #26384d;
  font-size: clamp(1rem, 2.1vw, 1.12rem);
}

.hero-copy p {
  margin: 0 0 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--wine);
  box-shadow: 0 14px 28px rgba(49, 7, 16, 0.2);
}

.section-dark .btn-primary {
  color: var(--white);
  background: var(--wine);
}

.btn-secondary {
  color: var(--white);
  background: var(--gold);
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0;
  color: var(--wine-dark);
  background:
    linear-gradient(135deg, var(--white) 0 70%, rgba(207, 23, 31, 0.08) 70% 100%),
    var(--white);
}

.page-hero::after {
  position: absolute;
  right: 4vw;
  bottom: -2rem;
  width: min(42vw, 520px);
  height: 220px;
  content: "";
  background: url("images/rekonsilye-logo.png") center / contain no-repeat;
  opacity: 0.08;
}

.page-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-official);
  font-size: clamp(2.15rem, 5.2vw, 4.1rem);
  line-height: 1.04;
}

.page-hero p {
  max-width: 720px;
  color: #26384d;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.page-hero-card,
.page-logo-card {
  justify-self: start;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero-card {
  display: grid;
  gap: 0.35rem;
}

.page-hero-card strong {
  color: var(--gold);
  font-size: 1.35rem;
}

.page-logo-card {
  width: min(100%, 360px);
}

.section-light {
  background: var(--gray);
}

.section-wine {
  color: var(--white);
  background: var(--wine);
}

.section-heading {
  max-width: 720px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.section-actions.centered {
  justify-content: center;
}

.section-heading h2,
.large-copy h3 {
  margin: 0;
  font-family: var(--font-official);
  font-size: clamp(1.75rem, 4.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.large-copy p,
.party-principles p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.section-wine .section-heading p,
.section-wine .party-principles p {
  color: rgba(255, 255, 255, 0.78);
}

.two-column,
.split-band,
.why-layout,
.party-layout,
.member-layout,
.contact-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
}

.large-copy {
  border-left: 4px solid var(--gold);
  padding-left: clamp(1rem, 4vw, 2rem);
}

.principles,
.party-principles ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.principles li,
.party-principles li {
  position: relative;
  padding-left: 1.4rem;
  font-weight: 800;
}

.principles li::before,
.party-principles li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--gold);
  border-radius: 50%;
}

.action-grid,
.pillar-grid,
.profile-grid,
.leader-grid,
.news-grid,
.media-grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.feature-card,
.pillar-card,
.profile-card,
.leader-card,
.news-card,
.contact-card,
.quote-card {
  border-radius: var(--radius);
}

.feature-card {
  min-height: 220px;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid rgba(90, 15, 27, 0.1);
  box-shadow: 0 12px 28px rgba(49, 7, 16, 0.05);
}

.feature-card h3,
.pillar-card h3,
.profile-card h3,
.leader-card h3,
.news-card h3,
.value-row h3 {
  margin: 0 0 0.55rem;
  color: var(--wine-dark);
  font-size: 1.18rem;
  line-height: 1.2;
}

.feature-card p,
.pillar-card p,
.profile-card p,
.leader-card p,
.news-card p,
.value-row p {
  margin: 0;
  color: var(--muted);
}

.feature-card h3::before {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: 1.15rem;
  content: "";
  background: var(--gold);
  border-radius: 999px;
}

.identity-list {
  display: grid;
  gap: 0.75rem;
}

.identity-list div {
  padding: 1rem 1.1rem;
  color: var(--wine);
  background: linear-gradient(90deg, rgba(214, 164, 65, 0.18), rgba(245, 245, 245, 0.85));
  border-left: 4px solid var(--gold);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 850;
}

.pillar-card {
  min-height: 210px;
  padding: 1.35rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pillar-card h3 {
  color: var(--white);
}

.pillar-card p {
  color: rgba(255, 255, 255, 0.78);
}

.why-values {
  display: grid;
  border-top: 1px solid var(--line);
}

.value-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(90, 15, 27, 0.1);
  box-shadow: 0 16px 34px rgba(49, 7, 16, 0.06);
}

.profile-photo {
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(19, 41, 68, 0.96), rgba(207, 23, 31, 0.82)),
    url("images/rekonsilye-logo.png") center / 78% no-repeat;
  border-radius: 6px;
}

.profile-two {
  background-position: 68% center;
}

.profile-three {
  background-position: 38% center;
}

.role {
  color: var(--wine);
  font-weight: 850;
}

.leader-card {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.leader-card span,
.news-card time,
.media-item span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-board {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.executive-group {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(8, 24, 43, 0.07);
}

.executive-group-heading {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  color: var(--white);
  background: var(--navy);
}

.executive-group-heading span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border-radius: 50%;
  font-weight: 900;
}

.executive-group-heading h2 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.executive-grid {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.25rem);
}

.executive-card {
  display: grid;
  gap: 0.45rem;
  min-height: 116px;
  align-content: center;
  padding: 1rem;
  background: #fbfcfd;
  border: 1px solid rgba(16, 38, 66, 0.18);
  border-top: 3px solid var(--navy);
  border-radius: 8px;
}

.executive-card span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.executive-card h3 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1rem, 2.3vw, 1.16rem);
  line-height: 1.16;
}

.executive-card.is-president {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--red));
  border-color: rgba(214, 164, 65, 0.55);
  border-top-color: var(--gold);
}

.executive-card.is-president span,
.executive-card.is-president h3 {
  color: var(--white);
}

.executive-card.is-vacant {
  border-style: dashed;
  background: rgba(16, 38, 66, 0.035);
}

.territory-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.territory-card {
  min-height: 126px;
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(30, 132, 73, 0.26);
  border-top: 5px solid #1e8449;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 24, 43, 0.05);
}

.territory-card h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 1rem;
  text-transform: uppercase;
}

.territory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.party-principles {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.party-principles li {
  color: var(--white);
}

.org-chart {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.org-node {
  width: min(100%, 360px);
  padding: 1rem;
  color: var(--wine);
  background: var(--white);
  border: 1px solid rgba(90, 15, 27, 0.2);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  text-align: center;
  font-weight: 850;
}

.org-node span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.org-node.top {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
  border-top-color: var(--gold);
}

.org-node.top span {
  color: rgba(255, 255, 255, 0.82);
}

.org-node.wide {
  width: min(100%, 480px);
}

.org-line {
  width: 2px;
  height: 32px;
  background: var(--gold);
}

.org-branches {
  display: grid;
  width: 100%;
  gap: 0.75rem;
}

.org-departments {
  display: grid;
  width: 100%;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.org-departments span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0.55rem;
  color: var(--white);
  background: #1e8449;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.org-link {
  margin-top: 1.2rem;
}

.news-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(49, 7, 16, 0.07);
}

.news-image {
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(19, 41, 68, 0.96), rgba(207, 23, 31, 0.86)),
    url("images/rekonsilye-logo.png") center / 76% no-repeat;
}

.news-two {
  background-position: 70% center;
}

.news-three {
  background-position: 25% center;
}

.news-body {
  padding: 1.2rem;
}

.news-body a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--wine);
  font-weight: 850;
}

.media-grid {
  grid-auto-rows: minmax(180px, auto);
}

.media-item {
  display: grid;
  align-content: end;
  min-height: 180px;
  padding: 1rem;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(19, 41, 68, 0.96), rgba(19, 41, 68, 0.7) 52%, rgba(207, 23, 31, 0.9)),
    url("images/rekonsilye-logo.png") center / 72% no-repeat;
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.media-item:nth-child(2) {
  background-position: 74% center;
}

.media-item:nth-child(3) {
  background-position: 38% center;
}

.media-item:nth-child(4) {
  background-position: 55% center;
}

.media-item:nth-child(5) {
  background-position: 18% center;
}

.media-item strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.member-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(8, 24, 43, 0.98), rgba(19, 41, 68, 0.92)),
    url("images/rekonsilye-logo.png") right 12% center / min(48vw, 520px) no-repeat fixed;
}

.member-section .section-heading p {
  color: rgba(255, 255, 255, 0.82);
}

.member-cta-panel {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 220px;
  padding: clamp(1.3rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.member-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 1.6rem);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.member-form label {
  display: grid;
  gap: 0.38rem;
}

.member-form span {
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 850;
}

.member-form input,
.member-form select,
.member-form textarea {
  width: 100%;
  padding: 0.88rem 0.9rem;
  color: var(--ink);
  background: var(--gray);
  border: 1px solid rgba(90, 15, 27, 0.18);
  border-radius: 8px;
  resize: vertical;
}

.member-form input:focus,
.member-form select:focus,
.member-form textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(214, 164, 65, 0.25);
}

.forms-layout {
  display: grid;
  gap: 2rem;
}

.compact-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compact-form label {
  display: grid;
  gap: 0.35rem;
}

.compact-form span {
  color: var(--wine);
  font-weight: 850;
}

.compact-form input {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  margin: 0;
  color: var(--wine);
  font-weight: 800;
}

.contact-section {
  background: var(--gray);
}

.quote-card,
.contact-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(49, 7, 16, 0.06);
}

blockquote {
  margin: 0;
  color: var(--wine);
  font-family: var(--font-official);
  font-size: clamp(1.75rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
}

.contact-visual {
  width: 100%;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

address {
  font-style: normal;
}

address p {
  margin: 0 0 0.9rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.social-links a {
  padding: 0.55rem 0.75rem;
  color: var(--wine);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.filter-btn {
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  color: var(--wine);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  color: var(--white);
  background: var(--wine);
}

.featured-article {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-mark {
  display: grid;
  min-height: 220px;
  place-items: center;
  background: linear-gradient(135deg, rgba(19, 41, 68, 0.96), rgba(207, 23, 31, 0.84));
  border-radius: 8px;
}

.article-mark img {
  width: min(80%, 360px);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
}

.featured-article time,
.blog-card time {
  color: var(--gold);
  font-weight: 900;
}

.featured-article h2,
.blog-card h2 {
  margin: 0.35rem 0 0.7rem;
  color: var(--wine-dark);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.text-link,
.blog-card a {
  color: var(--wine);
  font-weight: 900;
}

.blog-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.blog-card {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(8, 24, 43, 0.06);
}

.blog-card span,
.gallery-card span {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-card {
  display: grid;
  gap: 0.3rem;
  min-height: 260px;
  padding: 1rem;
  align-content: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  border: 0;
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  padding: 1rem;
  margin-bottom: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
}

.gallery-card strong {
  font-size: 1.18rem;
}

.standard-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.standard-card {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(8, 24, 43, 0.06);
}

.standard-card h2,
.standard-card h3 {
  margin: 0 0 0.65rem;
  color: var(--wine-dark);
  line-height: 1.15;
}

.standard-card p {
  margin: 0;
  color: var(--muted);
}

.standard-card ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
  margin: 0.9rem 0 0;
}

.timeline-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.timeline-date {
  color: var(--gold);
  font-weight: 900;
}

.document-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.document-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  color: var(--wine);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
}

.member-stats-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(16, 38, 66, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.94));
  box-shadow: 0 20px 45px rgba(16, 38, 66, 0.08);
}

.member-stats-card strong {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  color: var(--navy);
}

.member-stats-card p {
  margin: 0;
  color: var(--muted);
}

.member-stats-meta {
  font-size: 0.92rem;
  color: var(--wine);
  font-weight: 700;
}

.statutes-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.statutes-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(8, 24, 43, 0.06);
}

.statutes-toc h2 {
  grid-column: 1 / -1;
  margin: 0 0 0.4rem;
  color: var(--wine-dark);
  font-size: 1.1rem;
}

.statutes-toc a,
.statutes-toc span {
  padding: 0.55rem 0.65rem;
  color: var(--wine);
  background: var(--gray);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.statutes-toc a:first-of-type {
  grid-column: 1 / -1;
  color: var(--white);
  background: var(--wine);
}

.statutes-toc a:hover,
.statutes-toc a:focus-visible {
  color: var(--white);
  background: var(--gold);
  outline: none;
}

.statutes-toc span {
  color: var(--muted);
}

.statutes-document {
  padding: clamp(1rem, 4vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#preambule,
.statute-article {
  scroll-margin-top: 96px;
}

.statutes-document p {
  margin: 0 0 1rem;
  color: #26384d;
}

.statute-heading {
  margin: 2rem 0 1rem;
  color: var(--wine);
  font-family: var(--font-official);
  line-height: 1.1;
}

.statute-article {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.statute-article h2 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.18;
}

.statute-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.2rem;
  margin: 0 0 1rem;
  color: #26384d;
}

.diagnostic-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.diagnostic-list li {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
}

.admin-shell {
  display: grid;
  gap: 1.2rem;
  align-items: start;
}

.admin-panel,
.admin-workspace {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(8, 24, 43, 0.08);
}

.admin-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.admin-brand {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  background: var(--gray);
  border-radius: 8px;
}

.admin-brand img {
  width: min(100%, 220px);
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 46px;
  padding: 0.78rem 0.9rem;
  color: var(--wine-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.admin-nav-btn span {
  min-width: 2rem;
  padding: 0.18rem 0.45rem;
  color: var(--white);
  background: var(--wine);
  border-radius: 999px;
  font-size: 0.78rem;
  text-align: center;
}

.admin-nav-btn.is-active,
.admin-nav-btn:hover {
  color: var(--white);
  background: var(--wine);
}

.admin-nav-btn.is-active span,
.admin-nav-btn:hover span {
  color: var(--wine);
  background: var(--white);
}

.cms-tools {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.cms-tools label,
.import-control {
  display: grid;
  gap: 0.35rem;
}

.cms-tools span,
.import-control span {
  color: var(--wine);
  font-size: 0.86rem;
  font-weight: 850;
}

.cms-tools input[type="password"],
.import-control input {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-reset {
  min-height: 42px;
  color: var(--wine);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.cms-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-workspace {
  overflow: hidden;
}

.admin-toolbar {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
}

.admin-toolbar h2 {
  margin: 0;
  font-family: var(--font-official);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.admin-toolbar p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.admin-grid {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.admin-list {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.admin-list-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
}

.admin-list-item.is-active {
  border-left-color: var(--gold);
  background: var(--gray);
}

.admin-list-item button:first-child {
  display: grid;
  gap: 0.2rem;
  padding: 0;
  color: var(--wine-dark);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.admin-list-item strong {
  line-height: 1.2;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-preview {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  color: var(--wine);
  background: rgba(16, 38, 66, 0.04);
  border: 1px solid rgba(16, 38, 66, 0.14);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-delete {
  justify-self: start;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  color: var(--gold);
  background: rgba(207, 23, 31, 0.08);
  border: 1px solid rgba(207, 23, 31, 0.24);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-editor {
  box-shadow: none;
}

.checkbox-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.admin-actions {
  display: grid;
  gap: 0.75rem;
}

[data-admin-status][data-tone="success"] {
  color: #12613b;
}

[data-admin-status][data-tone="warning"] {
  color: var(--gold);
}

.is-filtered-out {
  display: none !important;
}

.don-strip {
  padding: 1.6rem 0;
  color: var(--white);
  background: var(--wine-dark);
}

.don-strip .container {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.don-strip p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: #180307;
  font-family: var(--font-footer);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  justify-items: center;
  padding: 3rem 0;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 240px);
  min-height: 78px;
  padding: 0.45rem 0.6rem;
  background: var(--white);
  border-radius: 8px;
}

.footer-brand .brand-logo {
  width: min(100%, 200px);
  height: 60px;
  object-fit: contain;
  object-position: center;
}

.site-footer h2 {
  margin: 0 0 0.85rem;
  color: rgba(214, 164, 65, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-quote,
.footer-contact p {
  color: rgba(255, 255, 255, 0.58);
}

.footer-quote {
  max-width: 320px;
  margin-top: 0.85rem;
  font-family: var(--font-footer);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-inline: auto;
}

.footer-contact p {
  margin: 0 0 0.62rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 400;
}

.footer-bottom {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
}

.footer-bottom p + p,
.prelaunch-footer-bottom p + p {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.74rem;
}

.prelaunch-footer-bottom {
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.prelaunch-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
}

.private-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  color: var(--wine-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0 60%, rgba(207, 23, 31, 0.08) 60% 100%),
    var(--white);
}

.private-hero::after {
  position: absolute;
  right: clamp(1rem, 8vw, 7rem);
  bottom: -2rem;
  width: min(54vw, 520px);
  height: 240px;
  content: "";
  background: url("images/rekonsilye-logo.png") center / contain no-repeat;
  opacity: 0.07;
}

.private-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.private-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 5.1rem);
  line-height: 1;
}

.private-hero p {
  max-width: 720px;
  color: #26384d;
  font-size: clamp(1rem, 2.4vw, 1.24rem);
}

.private-security-panel {
  display: grid;
  gap: 0.35rem;
  width: min(100%, 360px);
  padding: 1.15rem;
  color: var(--wine-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.private-security-panel strong {
  color: var(--gold);
  font-size: 1.2rem;
}

.member-private-section {
  background: var(--gray);
}

.member-app-shell {
  min-height: 420px;
}

.private-loading {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--wine-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.private-loading span {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(19, 41, 68, 0.12);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.private-login-layout {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  width: min(100%, 760px);
  margin-inline: auto;
}

.private-login-card,
.private-dashboard,
.private-sidebar,
.private-chat,
.private-directory {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(8, 24, 43, 0.08);
}

.private-login-card {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.private-login-card h2,
.private-topbar h2,
.private-panel-heading h2,
.private-chat-header h2 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.1;
}

.private-login-card p,
.private-chat-header p,
.private-topbar p,
.private-topbar span,
.private-room em,
.directory-member small {
  color: var(--muted);
}

.private-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.private-form label,
.private-inline-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--wine-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.private-form input,
.private-form select,
.private-form textarea,
.private-inline-form select,
.private-composer textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid rgba(19, 41, 68, 0.18);
  border-radius: 8px;
  outline: none;
}

.private-composer textarea {
  min-height: 58px;
  resize: vertical;
}

.private-form textarea {
  min-height: 110px;
  resize: vertical;
}

.private-form input:focus,
.private-form select:focus,
.private-form textarea:focus,
.private-inline-form select:focus,
.private-composer textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 23, 31, 0.12);
}

.private-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.private-status[data-tone="error"] {
  color: #a20f18;
}

.private-status[data-tone="success"] {
  color: #13693c;
}

.private-form-link {
  color: var(--wine-dark);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.private-dashboard {
  display: grid;
  gap: 1rem;
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

.private-topbar,
.private-chat-header,
.private-panel-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.private-topbar {
  flex-wrap: wrap;
  padding: clamp(1rem, 3vw, 1.4rem);
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.private-topbar p {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.private-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.private-user-strip {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.private-user-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--red));
  border: 2px solid rgba(214, 164, 65, 0.42);
  border-radius: 50%;
  font-weight: 900;
}

.private-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.private-metrics {
  display: grid;
  gap: 0.75rem;
}

.private-metrics article {
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.private-metrics strong {
  display: block;
  color: var(--wine-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.private-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.private-workspace {
  display: grid;
  gap: 1rem;
}

.private-sidebar,
.private-directory {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1rem;
}

.profile-setup-shell,
.profile-page-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.profile-setup-card,
.profile-summary-card,
.profile-editor-stack > form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(8, 24, 43, 0.08);
}

.profile-setup-card {
  max-width: 820px;
  padding: clamp(1.2rem, 4vw, 2rem);
  margin: 0 auto;
}

.profile-form {
  grid-template-columns: 1fr;
}

.profile-form h2,
.profile-form-heading h2,
.profile-summary-card h2 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.15;
}

.profile-form-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.profile-form-heading p {
  margin: 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-form-heading span,
.profile-summary-card p {
  color: var(--muted);
}

.checkbox-line {
  display: flex !important;
  grid-column: 1 / -1;
  gap: 0.65rem !important;
  align-items: flex-start;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
  margin-top: 0.25rem;
}

.profile-page-grid {
  display: grid;
  gap: 1rem;
}

.profile-summary-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.profile-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--red));
  border: 4px solid rgba(214, 164, 65, 0.35);
  border-radius: 50%;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  font-size: 2.7rem;
  font-weight: 900;
}

.profile-summary-card dl {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.profile-summary-card dl div {
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-summary-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-summary-card dd {
  margin: 0.15rem 0 0;
  color: var(--wine-dark);
  font-weight: 800;
}

.profile-editor-stack {
  display: grid;
  gap: 1rem;
}

.profile-editor-stack > form {
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.private-panel-heading span,
.private-chat-header span {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  color: var(--white);
  background: var(--wine);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.private-notification-list {
  display: grid;
  gap: 0.65rem;
}

.private-notification {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.private-notification strong {
  color: var(--wine-dark);
  font-size: 0.9rem;
}

.private-notification span {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.private-notification p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.private-inline-form {
  display: grid;
  gap: 0.75rem;
}

.private-room-list {
  display: grid;
  gap: 0.55rem;
  max-height: 340px;
  overflow: auto;
}

.private-room {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  padding: 0.8rem;
  color: var(--wine-dark);
  text-align: left;
  background: #fbfcfd;
  border: 1px solid rgba(19, 41, 68, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.private-room.is-active,
.private-room:hover,
.private-room:focus-visible {
  background: rgba(207, 23, 31, 0.08);
  border-color: rgba(207, 23, 31, 0.38);
  outline: none;
}

.private-room span {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.private-room strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-room small {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
}

.private-room em {
  display: block;
  overflow: hidden;
  font-size: 0.86rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.private-chat {
  display: grid;
  grid-template-rows: auto minmax(320px, 52vh) auto auto;
  min-width: 0;
  overflow: hidden;
}

.private-chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.private-chat-header p {
  margin: 0.25rem 0 0;
}

.private-message-list {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(19, 41, 68, 0.04), rgba(207, 23, 31, 0.03)),
    #ffffff;
}

.private-message {
  display: grid;
  gap: 0.35rem;
  width: min(92%, 560px);
  padding: 0.8rem 0.9rem;
  background: #f4f6f8;
  border: 1px solid rgba(19, 41, 68, 0.12);
  border-radius: 8px;
}

.private-message.is-mine {
  justify-self: end;
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
}

.private-message-meta {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
}

.private-message-meta span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.private-message strong,
.private-message time {
  font-size: 0.82rem;
}

.private-message time {
  color: var(--muted);
}

.private-message.is-mine time {
  color: rgba(255, 255, 255, 0.74);
}

.private-message-edited {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.private-message.is-mine .private-message-edited {
  color: rgba(255, 255, 255, 0.72);
}

.private-message p {
  margin: 0;
  overflow-wrap: anywhere;
}

.private-message.is-deleted {
  color: var(--muted);
  background: #f7f7f8;
  border-style: dashed;
}

.private-message-deleted {
  font-style: italic;
}

.private-message-actions,
.private-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.private-message-action {
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(19, 41, 68, 0.12);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.private-message.is-mine .private-message-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.private-message-action:hover,
.private-message-action:focus-visible,
.private-message-action.is-liked {
  color: var(--wine);
  background: rgba(214, 164, 65, 0.18);
  border-color: var(--gold);
  outline: none;
}

.private-message.is-mine .private-message-action:hover,
.private-message.is-mine .private-message-action:focus-visible,
.private-message.is-mine .private-message-action.is-liked {
  color: var(--white);
  background: rgba(214, 164, 65, 0.28);
}

.private-message-action.is-danger {
  color: #a20f18;
}

.private-edit-form {
  display: grid;
  gap: 0.65rem;
}

.private-edit-form textarea {
  width: 100%;
  min-height: 84px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(19, 41, 68, 0.18);
  border-radius: 8px;
  outline: none;
  resize: vertical;
}

.private-composer {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.private-empty {
  align-self: center;
  justify-self: center;
  max-width: 320px;
  color: var(--muted);
  text-align: center;
}

.directory-list {
  display: grid;
  gap: 0.65rem;
}

.directory-member {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0.65rem;
  background: #fbfcfd;
  border: 1px solid rgba(19, 41, 68, 0.1);
  border-radius: 8px;
}

.directory-member span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--wine);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

.directory-member div {
  min-width: 0;
}

.directory-member strong,
.directory-member small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-private-section {
  min-height: calc(100vh - 78px);
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(245, 245, 245, 0.96), rgba(255, 255, 255, 0.98) 48%, rgba(245, 245, 245, 0.9)),
    var(--gray);
}

.member-app-shell {
  min-height: 520px;
}

.member-profile-shell {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.member-profile-header,
.member-profile-card,
.messenger-shell,
.member-context-card,
.member-edit-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(19, 41, 68, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(8, 24, 43, 0.08);
}

.member-profile-header {
  overflow: hidden;
}

.member-cover {
  position: relative;
  display: grid;
  min-height: clamp(150px, 26vw, 260px);
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(24, 3, 7, 0.94), rgba(90, 15, 27, 0.9) 52%, rgba(19, 41, 68, 0.94)),
    var(--wine-dark);
}

.member-cover::before,
.member-cover::after {
  position: absolute;
  content: "";
  inset: auto -10% -55% -10%;
  height: 70%;
  background: rgba(214, 164, 65, 0.18);
  transform: skewY(-4deg);
}

.member-cover::after {
  inset: -45% -12% auto 48%;
  height: 75%;
  background: rgba(207, 23, 31, 0.45);
  transform: skewX(-18deg);
}

.member-cover img {
  position: relative;
  z-index: 1;
  width: min(320px, 58vw);
  max-height: 124px;
  padding: 0.85rem 1rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.member-profile-main {
  display: grid;
  gap: 1rem;
  align-items: start;
  padding: 0 clamp(1rem, 3vw, 1.5rem) clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 0;
}

.member-profile-avatar,
.member-avatar,
.directory-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--red));
  border-radius: 50%;
  font-weight: 900;
}

.member-profile-avatar {
  position: relative;
  z-index: 2;
  width: 104px;
  height: 104px;
  margin-top: -44px;
  border: 5px solid var(--white);
  box-shadow: 0 14px 32px rgba(8, 24, 43, 0.18);
  font-size: 2.15rem;
}

.member-profile-avatar img,
.member-avatar img,
.directory-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile-identity {
  min-width: 0;
}

.member-profile-identity h1 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  line-height: 1.04;
}

.member-profile-identity p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.member-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.member-profile-meta span,
.messenger-thread-header span,
.member-stat-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.64rem;
  color: #26384d;
  background: rgba(19, 41, 68, 0.07);
  border: 1px solid rgba(19, 41, 68, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.member-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.member-profile-actions .btn {
  min-height: 40px;
}

.member-profile-grid {
  display: grid;
  gap: 1rem;
}

.member-profile-card {
  display: grid;
  gap: 0.72rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.member-profile-card h2,
.messenger-panel-heading h2,
.messenger-thread-header h2,
.member-context-heading h3 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.15;
}

.member-info-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem;
  background: #f9fafb;
  border: 1px solid rgba(19, 41, 68, 0.08);
  border-radius: 8px;
}

.member-info-item span,
.member-context-list dt,
.member-activity-row span,
.member-notification-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-info-item strong,
.member-context-list dd {
  min-width: 0;
  color: var(--wine-dark);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.member-profile-card-rich {
  gap: 0.8rem;
}

.member-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.member-stat-row strong {
  margin-right: 0.25rem;
  color: var(--wine);
}

.member-activity-row,
.member-notification-card,
.member-empty-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.75rem;
  color: var(--muted);
  background: #f9fafb;
  border: 1px solid rgba(19, 41, 68, 0.08);
  border-radius: 8px;
}

.member-activity-row strong,
.member-notification-card strong {
  color: var(--wine-dark);
  font-size: 0.9rem;
}

.member-activity-row p,
.member-notification-card p {
  margin: 0;
  font-size: 0.88rem;
}

.messenger-shell {
  display: grid;
  gap: 0;
  min-height: 680px;
  overflow: hidden;
}

.messenger-sidebar,
.messenger-context {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  background: #ffffff;
}

.messenger-sidebar {
  border-bottom: 1px solid rgba(19, 41, 68, 0.1);
}

.messenger-panel-heading,
.messenger-thread-header,
.member-context-heading,
.member-edit-actions,
.message-bubble-meta,
.message-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.messenger-panel-heading {
  align-items: center;
}

.messenger-new-thread,
.directory-search,
.member-edit-panel {
  display: grid;
  gap: 0.7rem;
}

.messenger-new-thread label,
.directory-search label,
.member-edit-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--wine-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.messenger-new-thread select,
.directory-search input,
.member-edit-panel input,
.member-edit-panel select,
.member-edit-panel textarea,
.messenger-composer textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.68rem 0.78rem;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid rgba(19, 41, 68, 0.16);
  border-radius: 8px;
  outline: none;
}

.messenger-new-thread select:focus,
.directory-search input:focus,
.member-edit-panel input:focus,
.member-edit-panel select:focus,
.member-edit-panel textarea:focus,
.messenger-composer textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 164, 65, 0.16);
}

.messenger-room-list,
.directory-list {
  display: grid;
  gap: 0.55rem;
  max-height: 360px;
  overflow: auto;
}

.messenger-room,
.directory-member-card {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0.78rem;
  color: var(--wine-dark);
  text-align: left;
  background: #fbfcfd;
  border: 1px solid rgba(19, 41, 68, 0.1);
  border-radius: 8px;
}

.messenger-room {
  gap: 0.32rem;
  cursor: pointer;
}

.messenger-room.is-active,
.messenger-room:hover,
.messenger-room:focus-visible {
  background: rgba(90, 15, 27, 0.07);
  border-color: rgba(90, 15, 27, 0.34);
  outline: none;
}

.messenger-room span {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.messenger-room strong,
.directory-member-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-room small {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.messenger-room em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-member-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
}

.directory-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.8rem;
}

.directory-member-card small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 0.45rem;
}

.directory-actions button,
.message-action {
  min-height: 30px;
  padding: 0.34rem 0.55rem;
  color: var(--wine-dark);
  background: #ffffff;
  border: 1px solid rgba(19, 41, 68, 0.14);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.directory-actions button:hover,
.directory-actions button:focus-visible,
.message-action:hover,
.message-action:focus-visible,
.message-action.is-liked {
  color: var(--wine);
  background: rgba(214, 164, 65, 0.16);
  border-color: var(--gold);
  outline: none;
}

.messenger-thread {
  display: grid;
  grid-template-rows: auto minmax(360px, 58vh) auto auto;
  min-width: 0;
  background: #ffffff;
}

.messenger-thread-header {
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(19, 41, 68, 0.1);
}

.messenger-thread-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.messenger-message-list {
  display: grid;
  align-content: start;
  gap: 0.82rem;
  padding: 1rem;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(214, 164, 65, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(245, 245, 245, 0.94), rgba(255, 255, 255, 0.96));
}

.message-bubble {
  display: grid;
  gap: 0.42rem;
  width: min(92%, 580px);
  padding: 0.78rem 0.88rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(19, 41, 68, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(8, 24, 43, 0.06);
}

.message-bubble.is-mine {
  justify-self: end;
  color: var(--white);
  background: linear-gradient(135deg, var(--wine), #132944);
  border-color: rgba(255, 255, 255, 0.08);
}

.message-bubble.is-deleted {
  color: var(--muted);
  background: #f7f7f8;
  border-style: dashed;
  box-shadow: none;
}

.message-bubble-meta {
  align-items: baseline;
}

.message-bubble-meta strong,
.message-bubble-meta time {
  font-size: 0.8rem;
}

.message-bubble-meta time,
.message-edited {
  color: var(--muted);
}

.message-bubble.is-mine .message-bubble-meta time,
.message-bubble.is-mine .message-edited {
  color: rgba(255, 255, 255, 0.72);
}

.message-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
}

.message-deleted {
  font-style: italic;
}

.message-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.message-bubble.is-mine .message-action {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.message-action.is-danger {
  color: #a20f18;
}

.messenger-composer {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid rgba(19, 41, 68, 0.1);
}

.messenger-composer textarea {
  min-height: 60px;
  resize: vertical;
}

.messenger-context {
  border-top: 1px solid rgba(19, 41, 68, 0.1);
}

.member-context-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  box-shadow: none;
}

.member-context-heading {
  align-items: center;
  justify-content: flex-start;
}

.member-context-heading p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.member-context-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.member-context-list div {
  display: grid;
  gap: 0.16rem;
  padding: 0.7rem;
  background: #f9fafb;
  border: 1px solid rgba(19, 41, 68, 0.08);
  border-radius: 8px;
}

.member-context-list dd {
  margin: 0;
}

.member-edit-panel {
  padding: 1rem;
  box-shadow: none;
}

.member-edit-panel textarea {
  min-height: 96px;
  resize: vertical;
}

.member-edit-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.private-admin-panel {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.private-admin-panel summary {
  color: var(--wine-dark);
  font-weight: 900;
  cursor: pointer;
}

.private-form-grid {
  display: grid;
  gap: 0.85rem;
}

body.member-platform-page {
  --member-blue: #06172c;
  --member-blue-2: #102b4b;
  --member-red: #9f1724;
  --member-red-dark: #62101a;
  --member-gold: #d6a441;
  --member-line: rgba(6, 23, 44, 0.16);
  --member-soft: #f4f6f9;
  --member-ui: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --member-display: "Arial Narrow", "Roboto Condensed", Impact, Aptos, sans-serif;
  color: #071a33;
  background: #f3f5f8;
  font-family: var(--member-ui);
  line-height: 1.45;
}

.member-platform-page .site-header {
  display: none;
}

.member-platform-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: linear-gradient(90deg, #07172b, #06172c 60%, #102b4b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 30px rgba(6, 23, 44, 0.18);
}

.member-platform-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, 1500px);
  min-height: 72px;
  margin-inline: auto;
}

.member-platform-brand {
  display: grid;
  width: 150px;
  height: 58px;
  place-items: center;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.member-platform-brand img {
  max-height: 48px;
  object-fit: contain;
}

.member-platform-menu,
.member-platform-tools {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
}

.member-platform-menu {
  justify-content: center;
}

.member-platform-menu a,
.member-platform-tools a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.93rem;
  font-weight: 650;
}

.member-platform-menu a:hover,
.member-platform-menu a:focus-visible,
.member-platform-tools a:hover,
.member-platform-tools a:focus-visible {
  color: #ffffff;
  outline: none;
}

.member-platform-tools a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.member-platform-tools a:first-child {
  background: var(--member-red);
  border-color: rgba(255, 255, 255, 0.18);
}

.member-platform-container {
  width: min(calc(100% - 2rem), 1500px);
  margin-inline: auto;
}

.member-platform-page .member-private-section {
  min-height: calc(100vh - 72px);
  padding: 0 0 2rem;
  background:
    linear-gradient(180deg, rgba(244, 246, 249, 0.92), #f7f8fa 52%, #ffffff),
    var(--member-soft);
}

.member-platform-page .member-app-shell {
  min-height: 620px;
}

.member-platform-page .member-profile-shell {
  gap: 0;
}

.member-platform-page .member-profile-header {
  position: relative;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  color: #ffffff;
  background: #06172c;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.member-platform-page .member-cover {
  position: absolute;
  inset: 0;
  min-height: auto;
  place-items: start center;
  background:
    linear-gradient(110deg, rgba(98, 16, 26, 0.98) 0 36%, rgba(6, 23, 44, 0.94) 36% 100%),
    radial-gradient(circle at 12% 30%, rgba(214, 164, 65, 0.18), transparent 28%),
    #06172c;
}

.member-platform-page .member-cover::before {
  inset: 0 auto 0 34%;
  width: 30%;
  height: auto;
  background: linear-gradient(135deg, transparent 0 42%, rgba(207, 23, 31, 0.85) 42% 53%, transparent 53%);
  transform: none;
}

.member-platform-page .member-cover::after {
  inset: 0 0 0 45%;
  height: auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(16, 43, 75, 0.7));
  transform: none;
}

.member-cover-logo {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  justify-items: center;
  padding-top: clamp(1.35rem, 2.8vw, 2rem);
  text-align: center;
}

.member-cover-logo strong {
  color: #ffffff;
  font-family: var(--member-display);
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  font-stretch: condensed;
  letter-spacing: 0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.26);
}

.member-cover-logo span {
  color: rgba(255, 255, 255, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 1.7vw, 1.25rem);
}

.member-platform-page .member-profile-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.4rem;
  align-items: end;
  width: min(calc(100% - 2rem), 1500px);
  min-height: 250px;
  padding: 5rem 0 1.8rem;
  margin: 0 auto;
}

.member-platform-page .member-profile-avatar {
  width: clamp(108px, 12vw, 150px);
  height: clamp(108px, 12vw, 150px);
  margin: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--member-red-dark), var(--member-red));
  border: 4px solid #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  font-family: var(--member-display);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1;
}

.member-platform-page .member-profile-identity h1 {
  color: #ffffff;
  font-family: var(--member-ui);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
}

.member-platform-page .member-profile-role {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.12rem;
  color: var(--member-gold);
  font-size: 1rem;
  font-weight: 900;
}

.member-platform-page .member-profile-meta {
  gap: clamp(0.7rem, 2vw, 1.6rem);
  margin-top: 1rem;
}

.member-platform-page .member-profile-meta span {
  min-height: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 800;
}

.member-platform-page .member-profile-actions {
  align-self: start;
  justify-content: flex-end;
  padding-top: 1.2rem;
}

.member-platform-page .btn {
  border-radius: 8px;
  font-family: var(--member-ui);
  font-weight: 850;
}

.member-platform-page .btn-primary {
  background: var(--member-red);
  border-color: var(--member-red);
}

.member-platform-page .btn-secondary {
  color: #071a33;
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

.member-platform-page .member-profile-actions .btn-secondary:first-child {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.82);
}

.member-platform-page .member-profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem 0;
}

.member-platform-page .member-profile-card,
.member-platform-page .messenger-shell,
.member-platform-page .member-context-card,
.member-platform-page .member-edit-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--member-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(6, 23, 44, 0.06);
}

.member-platform-page .member-profile-card {
  min-height: 198px;
  padding: 1rem;
}

.member-platform-page .member-profile-card h2,
.member-platform-page .messenger-panel-heading h2,
.member-platform-page .messenger-thread-header h2,
.member-platform-page .member-context-heading h3 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: #071a33;
  font-family: var(--member-ui);
  font-size: 0.96rem;
  font-weight: 900;
}

.member-platform-page .member-profile-card h2 span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ffffff;
  background: #071a33;
  border-radius: 50%;
  font-size: 0;
}

.member-platform-page .member-profile-card h2 span::before {
  display: block;
  width: 9px;
  height: 9px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
}

.member-platform-page .member-profile-card h2 em {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: auto;
  color: #ffffff;
  background: var(--member-red);
  border-radius: 50%;
  font-size: 0.74rem;
  font-style: normal;
}

.member-platform-page .member-info-item {
  grid-template-columns: minmax(94px, 0.8fr) minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.member-platform-page .member-info-item span,
.member-platform-page .member-context-list dt,
.member-platform-page .member-activity-row span,
.member-platform-page .member-notification-card span {
  color: #071a33;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.member-platform-page .member-info-item strong,
.member-platform-page .member-context-list dd {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.member-timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
}

.member-timeline-item > span {
  display: block;
  width: 9px;
  height: 9px;
  margin-left: 4px;
  background: #1f9d55;
  border-radius: 50%;
}

.member-timeline-item.is-info > span {
  background: #071a33;
}

.member-timeline-item.is-muted > span {
  background: #94a3b8;
}

.member-timeline-item strong,
.member-notification-card strong {
  color: #071a33;
  font-size: 0.76rem;
  font-weight: 900;
}

.member-timeline-item small {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
}

.member-platform-page .member-notification-card,
.member-platform-page .member-empty-card {
  padding: 0.45rem 0;
  background: transparent;
  border: 0;
}

.member-platform-page .messenger-shell {
  grid-template-columns: 360px minmax(0, 1fr) 330px;
  min-height: 620px;
  margin-bottom: 1.2rem;
}

.member-platform-page .messenger-sidebar,
.member-platform-page .messenger-context,
.member-platform-page .messenger-thread {
  background: #ffffff;
}

.member-platform-page .messenger-sidebar {
  border-right: 1px solid var(--member-line);
  border-bottom: 0;
}

.member-platform-page .messenger-context {
  border-top: 0;
  border-left: 1px solid var(--member-line);
}

.member-icon-button,
.member-platform-page .messenger-new-thread button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #ffffff;
  background: #071a33;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 900;
}

.member-platform-page .messenger-new-thread {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.member-platform-page .messenger-new-thread label,
.member-platform-page .directory-search label {
  color: #071a33;
  font-size: 0.72rem;
}

.member-platform-page .messenger-new-thread select,
.member-platform-page .directory-search input,
.member-platform-page .member-edit-panel input,
.member-platform-page .member-edit-panel select,
.member-platform-page .member-edit-panel textarea,
.member-platform-page .messenger-composer textarea {
  min-height: 38px;
  background: #ffffff;
  border-color: var(--member-line);
  border-radius: 8px;
  font-size: 0.82rem;
}

.member-platform-page .messenger-room-list,
.member-platform-page .directory-list {
  max-height: 330px;
}

.member-platform-page .messenger-room {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  background: #ffffff;
}

.member-platform-page .messenger-room b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #071a33, #1f3554);
  border-radius: 50%;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.member-platform-page .messenger-room.is-active {
  background: rgba(159, 23, 36, 0.06);
  border-color: rgba(159, 23, 36, 0.28);
}

.member-platform-page .messenger-room span {
  display: grid;
  gap: 0.12rem;
  align-items: start;
  justify-content: start;
}

.member-platform-page .messenger-room small {
  color: #64748b;
  font-size: 0.72rem;
}

.member-platform-page .directory-member-card {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 0.65rem;
  background: #ffffff;
}

.member-platform-page .directory-avatar {
  width: 38px;
  height: 38px;
}

.member-platform-page .directory-actions button,
.member-platform-page .message-action {
  border-radius: 8px;
}

.member-platform-page .messenger-thread {
  grid-template-rows: auto minmax(360px, 1fr) auto auto;
}

.member-platform-page .messenger-thread-header {
  min-height: 70px;
  border-bottom-color: var(--member-line);
}

.member-platform-page .messenger-thread-header span {
  color: #071a33;
  background: transparent;
  border-color: var(--member-line);
}

.member-platform-page .messenger-message-list {
  background:
    radial-gradient(circle at top left, rgba(159, 23, 36, 0.05), transparent 24%),
    linear-gradient(180deg, #fafafa, #ffffff);
}

.member-platform-page .message-bubble {
  width: min(86%, 560px);
  border-radius: 8px;
  box-shadow: none;
}

.member-platform-page .message-bubble.is-mine {
  background: linear-gradient(135deg, var(--member-red-dark), var(--member-red));
}

.member-platform-page .messenger-composer {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.member-platform-page .messenger-composer::before {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #071a33;
  content: "+";
  border: 1px solid var(--member-line);
  border-radius: 50%;
  font-weight: 900;
}

.member-platform-page .messenger-composer textarea {
  min-height: 42px;
  resize: none;
}

.member-platform-page .messenger-composer .btn {
  min-height: 42px;
  padding-inline: 1rem;
  color: #ffffff;
}

.member-platform-page .member-context-card {
  padding: 1.1rem;
}

.member-platform-page .member-context-heading {
  justify-content: flex-start;
}

.member-platform-page .member-context-list div {
  grid-template-columns: minmax(95px, 1fr) auto;
  gap: 0.6rem;
  padding: 0.55rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(6, 23, 44, 0.08);
  border-radius: 0;
}

.member-platform-footer {
  padding: 2rem 0 4.5rem;
  color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 10% 0, rgba(159, 23, 36, 0.38), transparent 34%),
    linear-gradient(120deg, #27060b, #06172c);
}

.member-platform-footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 160px 230px 190px;
  gap: clamp(1rem, 3vw, 2.2rem);
  width: min(calc(100% - 2rem), 1400px);
  margin-inline: auto;
}

.member-platform-footer-logo {
  display: grid;
  min-height: 106px;
  place-items: center;
  padding: 1rem;
  background: #ffffff;
  border-radius: 8px;
}

.member-platform-footer-logo img {
  max-height: 82px;
  object-fit: contain;
}

.member-platform-footer h2 {
  margin: 0 0 0.6rem;
  color: var(--member-gold);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.member-platform-footer a,
.member-platform-footer p {
  display: block;
  margin: 0.22rem 0;
  font-size: 0.94rem;
}

.member-platform-page .footer-bottom {
  width: min(calc(100% - 2rem), 1400px);
  padding-top: 0.9rem;
  margin: 1.4rem auto 0;
  border-top: 1px solid rgba(214, 164, 65, 0.72);
}

.member-mobile-nav {
  position: fixed;
  z-index: 1200;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  padding: 0.45rem;
  background: #071a33;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(6, 23, 44, 0.28);
}

.member-mobile-nav a {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 800;
}

.member-mobile-nav a:nth-child(3) {
  background: var(--member-red);
}

@media (max-width: 1180px) {
  .member-platform-page .member-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-platform-page .messenger-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .member-platform-page .messenger-context {
    display: none;
  }

  .member-platform-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .member-platform-nav {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
  }

  .member-platform-brand {
    width: 118px;
    height: 54px;
  }

  .member-platform-menu {
    display: none;
  }

  .member-platform-tools a {
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    font-size: 0.76rem;
  }

  .member-platform-page .member-profile-main {
    grid-template-columns: 1fr;
    min-height: 315px;
    justify-items: center;
    padding: 4.2rem 0 1.1rem;
    text-align: center;
  }

  .member-platform-page .member-cover {
    background:
      linear-gradient(160deg, rgba(98, 16, 26, 0.98) 0 40%, rgba(6, 23, 44, 0.96) 40% 100%),
      #06172c;
  }

  .member-cover-logo {
    display: none;
  }

  .member-platform-page .member-profile-meta,
  .member-platform-page .member-profile-actions {
    justify-content: center;
  }

  .member-platform-page .member-profile-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .member-platform-page .member-profile-meta span {
    max-width: 100%;
    justify-content: center;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .member-platform-page .member-profile-grid,
  .member-platform-page .messenger-shell {
    grid-template-columns: 1fr;
  }

  .member-platform-page .member-profile-card {
    min-height: auto;
  }

  .member-platform-page .messenger-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--member-line);
  }

  .member-platform-page .messenger-thread {
    grid-template-rows: auto minmax(340px, 54vh) auto auto;
  }

  .member-platform-footer-grid {
    grid-template-columns: 1fr;
  }

  .member-mobile-nav {
    display: grid;
  }
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(24, 3, 7, 0.68);
}

.media-modal-card {
  position: relative;
  width: min(100%, 520px);
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-modal-card h2 {
  margin: 0 0 0.8rem;
  color: var(--wine);
  font-family: var(--font-official);
  font-size: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--wine);
  background: var(--gray);
  border: 0;
  border-radius: 8px;
  font-size: 1.6rem;
  cursor: pointer;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 3px solid rgba(214, 164, 65, 0.55);
  outline-offset: 3px;
}

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

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    width: min(calc(100% - 1rem), 390px);
    padding-inline: 0.5rem;
  }

  .nav-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    z-index: 1100;
    display: grid;
    transform: translateY(-50%);
    color: var(--wine);
    background: var(--white);
    border-color: rgba(19, 41, 68, 0.28);
    box-shadow: 0 8px 18px rgba(8, 24, 43, 0.08);
  }

  .language-switcher {
    margin-left: auto;
    margin-right: 3.6rem;
  }

  .language-switcher button {
    min-height: 32px;
    padding-inline: 0.5rem;
    font-size: 0.76rem;
  }

  .brand-logo {
    width: 112px;
    height: 56px;
  }

  .hero {
    overflow-x: hidden;
  }

  .hero-content {
    width: min(calc(100vw - 2rem), 340px);
    max-width: min(calc(100vw - 2rem), 340px);
    padding-inline: 1rem;
    margin-left: 0;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .page-hero h1 {
    font-size: clamp(1.72rem, 7.5vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .hero-slogan {
    width: 100%;
    max-width: 100%;
    font-size: 1.02rem;
    overflow-wrap: break-word;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    font-size: 0.96rem;
  }

  .hero-copy p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .private-hero-layout,
  .private-login-layout,
  .private-workspace,
  .private-dashboard {
    width: min(100%, calc(100vw - 2rem));
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .private-hero h1,
  .private-hero p,
  .private-login-card p,
  .private-security-panel span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .private-login-card,
  .private-security-panel,
  .private-dashboard,
  .private-sidebar,
  .private-chat,
  .private-directory {
    max-width: 100%;
    min-width: 0;
  }

  .private-login-card {
    padding: 1rem;
  }

  .private-chat {
    grid-template-rows: auto minmax(300px, 50vh) auto auto;
  }

  .member-private-section {
    padding-top: 0.75rem;
  }

  .member-cover {
    min-height: 142px;
  }

  .member-cover img {
    width: min(250px, 70vw);
    max-height: 96px;
  }

  .member-profile-avatar {
    width: 88px;
    height: 88px;
    margin-top: -38px;
    font-size: 1.8rem;
  }

  .member-profile-actions,
  .messenger-panel-heading,
  .messenger-thread-header {
    align-items: stretch;
    flex-direction: column;
  }

  .member-profile-actions .btn,
  .messenger-panel-heading .btn {
    width: 100%;
    justify-content: center;
  }

  .messenger-shell {
    min-height: auto;
  }

  .messenger-thread {
    grid-template-rows: auto minmax(320px, 56vh) auto auto;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .container,
  .nav-shell {
    width: min(calc(100% - 2rem), 358px);
    margin-left: 1rem;
    margin-right: auto;
  }

  .private-security-panel {
    width: min(100%, 358px);
  }
}

@media (min-width: 640px) {
  .action-grid,
  .pillar-grid,
  .profile-grid,
  .leader-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .media-large {
    grid-row: span 2;
  }

  .don-strip .container {
    grid-template-columns: 1fr auto;
  }

  .footer-grid {
    justify-items: center;
    text-align: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid,
  .gallery-grid,
  .standard-grid,
  .executive-grid,
  .territory-grid,
  .org-departments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .profile-form .full,
  .profile-form h2,
  .profile-form button {
    grid-column: 1 / -1;
  }

  .private-composer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .member-profile-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .member-profile-actions {
    grid-column: 1 / -1;
  }

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

  .member-profile-card-rich {
    grid-column: span 2;
  }

  .messenger-composer,
  .messenger-new-thread {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .nav-panel a {
    padding: 0.65rem 0.7rem;
    font-size: 0.83rem;
  }

  .nav-panel .nav-cta {
    margin-left: 0.35rem;
    padding-inline: 0.95rem;
  }

  .hero-content {
    width: min(calc(100% - 4rem), var(--max));
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(4rem, 7.2vw, 6.4rem);
  }

  .two-column,
  .split-band,
  .why-layout,
  .party-layout,
  .member-layout,
  .contact-layout,
  .page-hero-layout,
  .forms-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .page-hero-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
  }

  .private-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  }

  .profile-page-grid {
    grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
    align-items: start;
  }

  .private-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .private-workspace {
    grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  }

  .private-directory {
    grid-column: 1 / -1;
  }

  .member-profile-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }

  .member-profile-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

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

  .member-profile-card-rich {
    grid-column: span 3;
  }

  .statutes-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .statutes-toc {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 120px);
    overflow: auto;
  }

  .admin-shell {
    grid-template-columns: minmax(250px, 0.32fr) minmax(0, 1fr);
  }

  .admin-panel {
    position: sticky;
    top: 92px;
  }

  .admin-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-grid {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  }

  .featured-article {
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    align-items: center;
  }

  .blog-grid,
  .gallery-grid,
  .standard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .action-grid .feature-card:nth-child(1),
  .action-grid .feature-card:nth-child(4) {
    grid-column: span 2;
  }

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

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

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

  .value-row {
    grid-template-columns: 0.36fr 1fr;
    align-items: baseline;
  }

  .org-branches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .executive-grid-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-grid-compact,
  .territory-grid,
  .org-departments {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
  }
}

@media (min-width: 1120px) {
  .private-workspace {
    grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr) minmax(280px, 0.38fr);
  }

  .private-directory {
    grid-column: auto;
  }

  .messenger-shell {
    grid-template-columns: minmax(270px, 0.36fr) minmax(0, 1fr) minmax(290px, 0.38fr);
  }

  .messenger-sidebar {
    border-right: 1px solid rgba(19, 41, 68, 0.1);
    border-bottom: 0;
  }

  .messenger-context {
    border-top: 0;
    border-left: 1px solid rgba(19, 41, 68, 0.1);
  }

  .footer-grid {
    justify-items: stretch;
    text-align: left;
    grid-template-columns: 1.35fr 0.85fr 1.15fr;
  }

  .footer-quote {
    margin-inline: 0;
  }
}

@media (min-width: 900px) and (max-width: 1119px) {
  .nav-shell {
    width: min(calc(100% - 0.75rem), 1100px);
  }

  .brand-logo {
    width: 112px;
    height: 52px;
  }

  .nav-panel a {
    padding: 0.52rem 0.42rem;
    font-size: 0.74rem;
  }

  .nav-panel .nav-cta {
    margin-left: 0.15rem;
    padding-inline: 0.62rem;
  }

  .language-switcher {
    margin-left: 0.25rem;
  }

  .language-switcher button {
    min-height: 30px;
    padding-inline: 0.42rem;
    font-size: 0.7rem;
  }
}

@media (min-width: 1120px) {
  .nav-panel a {
    font-size: 0.9rem;
  }
}

.prelaunch-body {
  background: #f5f5f5;
}

.prelaunch-site-header .nav-panel {
  justify-content: end;
}

.prelaunch-page {
  color: var(--ink);
}

.prelaunch-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 39, 65, 0.92), rgba(90, 15, 27, 0.92)),
    url("images/rekonsilye-contact.jpg") center/cover;
  color: #ffffff;
}

.prelaunch-topline {
  height: 8px;
  background: linear-gradient(90deg, #0e2745 0 38%, #d1111d 38% 100%);
}

.prelaunch-shell {
  min-height: 78vh;
  display: grid;
  gap: 2rem;
  align-content: center;
  padding-block: 1.5rem 3rem;
}

.prelaunch-footer strong {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  font-weight: 650;
  letter-spacing: 0;
}

.prelaunch-intro {
  width: min(100%, 860px);
}

.prelaunch-hero-logo {
  width: min(260px, 58vw);
  height: auto;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-left: 5px solid #cf171f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.prelaunch-intro h1 {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.prelaunch-slogan {
  width: fit-content;
  margin: 0.8rem 0 0;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border-left: 3px solid #cf171f;
  color: #ffffff;
  font-weight: 900;
}

.prelaunch-copy {
  width: min(100%, 760px);
  margin-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.7;
}

.countdown-panel {
  width: min(100%, 900px);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: #102642;
  border-top: 4px solid #d1111d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.countdown-panel p {
  margin: 0 0 0.9rem;
  color: #5a0f1b;
  font-weight: 800;
}

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

.countdown-grid div {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 0.8rem;
  background: #f5f5f5;
  border: 1px solid rgba(16, 38, 66, 0.12);
}

.countdown-grid strong {
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1;
  color: #102642;
}

.countdown-grid span {
  color: #5a0f1b;
  font-weight: 700;
}

.prelaunch-form-section {
  background: #ffffff;
}

.form-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.form-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: #102642;
}

.form-heading h2 span {
  color: #5a0f1b;
}

.official-application-form {
  display: grid;
  gap: 1rem;
}

.official-application-form fieldset {
  margin: 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  border: 1px solid rgba(16, 38, 66, 0.12);
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 38, 66, 0.06);
}

.official-application-form legend {
  padding: 0 0.4rem;
  color: #5a0f1b;
  font-weight: 900;
}

.official-application-form label,
.application-comment {
  display: grid;
  gap: 0.4rem;
}

.official-application-form input,
.official-application-form select,
.official-application-form textarea,
.application-comment textarea,
.applications-filters input,
.applications-filters select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(16, 38, 66, 0.18);
  background: #ffffff;
  color: #102642;
  font: inherit;
}

.official-application-form textarea,
.application-comment textarea {
  resize: vertical;
}

.official-application-form span,
.application-comment span,
.applications-filters span {
  color: #102642;
  font-weight: 800;
}

.official-application-form .field-kreyol,
.official-application-form .fieldset-kreyol {
  display: block;
  margin-top: -0.28rem;
  color: rgba(16, 38, 66, 0.58);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
}

.official-application-form .fieldset-kreyol {
  margin: -0.35rem 0 0.15rem;
}

body[data-language="ht"] .official-application-form .field-kreyol,
body[data-language="ht"] .official-application-form .fieldset-kreyol,
body[data-language="ht"] .form-heading h2 span {
  display: none;
}

.official-application-form small {
  color: rgba(16, 38, 66, 0.58);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8rem;
}

.date-picker-group {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.date-picker-group [data-birth-date-display] {
  cursor: pointer;
}

.date-picker-button {
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  background: #102642;
  border: 1px solid #102642;
  cursor: pointer;
}

.date-picker-group [data-birth-date-picker] {
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.radio-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  padding: 0.9rem;
  background: #f5f5f5;
}

.radio-block p {
  flex-basis: 100%;
  margin: 0;
  color: #102642;
  font-weight: 900;
}

.radio-block .field-kreyol {
  flex-basis: 100%;
  margin-top: -0.45rem;
}

.radio-block label,
.official-certification {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.radio-block input,
.official-certification input {
  width: auto;
  min-height: auto;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding-top: 0.5rem;
}

.form-status.is-success {
  color: #126236;
  font-weight: 800;
}

.form-status.is-error {
  color: #b00020;
  font-weight: 800;
}

.prelaunch-footer {
  background: #180307;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-footer);
  padding: 1.8rem 0;
  font-size: 0.92rem;
}

.prelaunch-footer-grid {
  display: grid;
  gap: 1.1rem;
}

.prelaunch-footer p,
.prelaunch-footer address {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  line-height: 1.45;
}

.prelaunch-footer h2,
.prelaunch-footer span {
  display: block;
  margin-bottom: 0.3rem;
  color: rgba(214, 164, 65, 0.82);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prelaunch-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
}

.applications-admin {
  display: grid;
  gap: 1rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.admin-stat-card {
  padding: 1.2rem 1rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.08);
  box-shadow: 0 16px 35px rgba(16, 38, 66, 0.06);
}

.admin-stat-card span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.admin-stat-card strong {
  display: block;
  font-size: 1.65rem;
  color: var(--navy);
}

.applications-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.12);
}

.applications-list {
  display: grid;
  gap: 1rem;
}

.application-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.12);
  box-shadow: 0 16px 42px rgba(16, 38, 66, 0.06);
}

.application-card-header {
  display: grid;
  gap: 0.8rem;
}

.application-card h2,
.application-card h3 {
  margin: 0;
  color: #102642;
}

.application-card h2 {
  font-size: clamp(1.25rem, 4vw, 1.7rem);
}

.application-card p {
  margin: 0.25rem 0 0;
}

.application-status {
  width: fit-content;
  padding: 0.4rem 0.65rem;
  background: #f5f5f5;
  color: #102642;
  font-weight: 900;
}

.application-status.approved {
  background: #e8f6ee;
  color: #126236;
}

.application-status.rejected {
  background: #fdecef;
  color: #9d1228;
}

.application-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.application-details div {
  padding: 0.75rem;
  background: #f5f5f5;
}

.application-details span {
  display: block;
  color: #5a0f1b;
  font-size: 0.82rem;
  font-weight: 900;
}

.application-details strong {
  display: block;
  margin-top: 0.2rem;
  color: #102642;
}

.application-text {
  display: grid;
  gap: 0.8rem;
}

.application-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.application-actions-row button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.verifications-admin {
  display: grid;
  gap: 1rem;
}

.verification-layout {
  display: grid;
  gap: 1rem;
}

.verification-column {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.12);
  box-shadow: 0 16px 42px rgba(16, 38, 66, 0.06);
}

.verification-column-header,
.verification-card-main,
.verification-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.verification-column-header h2,
.verification-card h3 {
  margin: 0;
  color: #102642;
}

.verification-column-header > span,
.verification-current {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  background: #f5f5f5;
  color: #102642;
  font-size: 0.82rem;
  font-weight: 900;
}

.verification-list {
  display: grid;
  gap: 0.85rem;
}

.verification-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  background: #fbfbfb;
  border: 1px solid rgba(16, 38, 66, 0.1);
}

.verification-card p,
.verification-card small {
  display: block;
  margin: 0.25rem 0 0;
  color: rgba(16, 38, 66, 0.68);
}

.verification-actions {
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.verification-actions label {
  display: grid;
  gap: 0.3rem;
  min-width: min(100%, 16rem);
  color: #102642;
  font-weight: 800;
}

.verification-actions select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(16, 38, 66, 0.2);
  background: #ffffff;
  color: #102642;
  font: inherit;
}

.verification-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 900px) {
  .verification-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.empty-state {
  padding: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.12);
  color: #102642;
  font-weight: 800;
}

.article-page-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: linear-gradient(180deg, #f5f5f5, #ffffff 42%);
}

.article-layout {
  display: grid;
  gap: 1.25rem;
}

.article-detail {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.1rem, 4vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-breadcrumb a {
  color: var(--wine);
}

.article-breadcrumb span::before {
  content: "/";
  margin-right: 0.55rem;
  color: rgba(19, 41, 68, 0.36);
}

.article-detail-header {
  display: grid;
  gap: 0.75rem;
}

.article-detail-header h1 {
  margin: 0;
  color: var(--wine-dark);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.08;
}

.article-detail-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--gold);
  font-weight: 900;
}

.article-cover {
  display: grid;
  min-height: 260px;
  place-items: center;
  background: linear-gradient(135deg, rgba(19, 41, 68, 0.96), rgba(207, 23, 31, 0.84));
  border-radius: var(--radius);
}

.article-cover img {
  width: min(78%, 420px);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
}

.event-detail-card {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  border-radius: var(--radius);
}

.event-detail-card span,
.event-detail-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
}

.event-detail-card strong {
  font-family: var(--font-official);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
}

.media-detail-frame {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.media-detail-frame img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  padding: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(19, 41, 68, 0.96), rgba(207, 23, 31, 0.84));
  border-radius: var(--radius);
}

.media-detail-frame figcaption {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-body {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  color: #253247;
  font-size: clamp(1.03rem, 2vw, 1.16rem);
  line-height: 1.85;
}

.article-body p {
  margin: 0;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.25rem;
}

.related-panel {
  height: fit-content;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(8, 24, 43, 0.06);
}

.related-panel h2 {
  margin: 0 0 1rem;
  color: var(--wine-dark);
  font-size: 1.2rem;
}

.related-list {
  display: grid;
  gap: 0.8rem;
}

.related-list .blog-card {
  box-shadow: none;
}

.related-list .timeline-item,
.related-list .gallery-card {
  box-shadow: none;
}

.related-list .timeline-item {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
}

.related-list .gallery-card {
  min-height: 220px;
}

@media (min-width: 640px) {
  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .official-application-form fieldset,
  .application-details,
  .prelaunch-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-application-form .full,
  .radio-block.full,
  .application-comment,
  .official-certification {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .prelaunch-shell {
    padding-block: 2rem 4rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
    align-items: start;
  }

  .applications-filters {
    grid-template-columns: minmax(180px, 0.25fr) minmax(260px, 1fr) auto;
    align-items: end;
  }

  .application-card {
    padding: 1.25rem;
  }

  .application-card-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .application-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .prelaunch-footer-grid {
    grid-template-columns: 1.2fr 0.85fr 1fr;
  }
}

.party-org-shell {
  display: grid;
  gap: 1.25rem;
}

.party-org-home-grid,
.party-org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.party-org-group {
  display: grid;
  gap: 1rem;
}

.party-position-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 6.5rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.12);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(16, 38, 66, 0.06);
}

.executive-card.party-position-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-content: center;
  align-items: center;
  min-height: 116px;
  padding: 1rem;
  background: #fbfcfd;
  border: 1px solid rgba(16, 38, 66, 0.18);
  border-top: 3px solid var(--navy);
  border-radius: 8px;
  box-shadow: none;
}

.party-position-card.is-linked {
  cursor: pointer;
}

.party-position-card.is-linked:hover {
  border-color: rgba(195, 16, 35, 0.36);
  transform: translateY(-1px);
}

.party-position-card.is-president {
  border-top: 4px solid var(--red);
}

.executive-card.party-position-card.is-president {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--red));
  border-color: rgba(214, 164, 65, 0.55);
  border-top-color: var(--gold);
}

.executive-card.party-position-card.is-president .party-position-body strong,
.executive-card.party-position-card.is-president .party-position-body span,
.executive-card.party-position-card.is-president .party-position-body small {
  color: var(--white);
}

.party-position-card.is-empty {
  background: #f7f8fa;
  opacity: 0.82;
}

.executive-card.party-position-card.is-empty {
  border-style: dashed;
  background: rgba(16, 38, 66, 0.035);
  opacity: 1;
}

.party-position-avatar,
.member-public-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.party-position-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.party-position-avatar img,
.member-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.party-position-body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.party-position-body strong {
  color: var(--navy);
  font-size: 1rem;
}

.party-position-body span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--red);
  font-weight: 900;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.party-position-body small,
.member-position-line {
  color: rgba(16, 38, 66, 0.66);
  font-weight: 700;
}

.party-position-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.party-position-actions a {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(16, 38, 66, 0.16);
  background: #ffffff;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.party-position-actions a:last-child {
  background: var(--navy);
  color: #ffffff;
}

.executive-card.party-position-card.is-president .party-position-actions a {
  border-color: rgba(255, 255, 255, 0.28);
}

.executive-card.party-position-card.is-president .party-position-actions a:last-child {
  background: #ffffff;
  color: var(--wine-dark);
}

.member-public-hero {
  background: #f5f5f5;
}

.member-public-cover {
  display: flex;
  align-items: end;
  min-height: clamp(12rem, 30vw, 20rem);
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(16, 38, 66, 0.92), rgba(195, 16, 35, 0.82)),
    url("images/rekonsilye.jpg") center / cover;
  color: #ffffff;
}

.member-public-cover strong {
  display: block;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  letter-spacing: 0;
}

.member-public-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  margin-top: -3rem;
  padding-bottom: 2rem;
}

.member-public-avatar {
  width: clamp(6rem, 16vw, 9rem);
  height: clamp(6rem, 16vw, 9rem);
  border: 5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(16, 38, 66, 0.2);
}

.member-public-identity {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(16, 38, 66, 0.12);
}

.member-public-identity h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.member-public-identity p {
  margin: 0.4rem 0 0;
  color: var(--red);
  font-weight: 900;
}

.party-position-admin-card {
  align-items: end;
}

.party-position-admin-card input,
.party-position-admin-card select,
.directory-search select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(16, 38, 66, 0.2);
  background: #ffffff;
  color: var(--navy);
  font: inherit;
}

.party-position-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.directory-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(16, 38, 66, 0.14);
  background: #ffffff;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

@media (min-width: 700px) {
  .party-org-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1040px) {
  .party-org-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .party-org-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .executive-card.party-position-card {
    min-height: auto;
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .party-position-avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.78rem;
  }

  .party-position-body {
    gap: 0.18rem;
  }

  .party-position-body strong {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .party-position-body span {
    font-size: 0.78rem;
    line-height: 1.24;
    -webkit-line-clamp: 3;
  }

  .party-position-body small {
    font-size: 0.72rem;
  }

  .party-position-actions {
    gap: 0.4rem;
  }

  .party-position-actions a {
    min-height: 1.95rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.74rem;
  }

  .member-public-card {
    grid-template-columns: 1fr;
  }

.member-public-avatar {
    margin-left: 1rem;
  }
}

/* Shared navigation and homepage refonte */

.site-header-unified {
  border-bottom: 1px solid rgba(19, 41, 68, 0.08);
}

.nav-shell-unified {
  gap: 0.9rem;
  padding: 0 0.6rem;
}

.nav-panel {
  overflow: auto;
}

.nav-panel-desktop,
.nav-panel-mobile,
.nav-actions-cluster,
.nav-group,
.nav-dropdown,
.mobile-nav-group,
.mobile-nav-dropdown {
  display: grid;
}

.nav-root-link,
.nav-group-toggle,
.mobile-home-link,
.mobile-nav-toggle,
.mobile-nav-link,
.nav-dropdown-link,
.nav-dropdown-button {
  font-family: var(--font-footer);
}

.nav-panel-desktop {
  display: none;
}

.nav-panel-mobile {
  gap: 0.65rem;
}

.nav-root-link,
.mobile-home-link,
.mobile-nav-link,
.nav-dropdown-link,
.nav-dropdown-button {
  padding: 0.9rem 0.95rem;
  color: var(--wine-dark);
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 700;
}

.nav-root-link[aria-current="page"],
.mobile-home-link[aria-current="page"],
.mobile-nav-link[aria-current="page"],
.nav-dropdown-link[aria-current="page"] {
  color: var(--white);
  background: var(--wine);
}

.nav-group {
  position: relative;
}

.nav-group-toggle,
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 0.95rem;
  color: var(--wine-dark);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 760;
  cursor: pointer;
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible,
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible,
.nav-root-link:hover,
.nav-root-link:focus-visible,
.mobile-home-link:hover,
.mobile-home-link:focus-visible,
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.nav-dropdown-button:hover,
.nav-dropdown-button:focus-visible {
  background: rgba(19, 41, 68, 0.08);
  outline: none;
}

.nav-group.is-current > .nav-group-toggle,
.mobile-nav-toggle.is-current {
  color: var(--wine);
}

.nav-caret {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.nav-group.is-open > .nav-group-toggle .nav-caret,
.nav-group.is-open > .mobile-nav-toggle .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.mobile-nav-dropdown {
  gap: 0.25rem;
  max-height: 0;
  padding-left: 0.65rem;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.mobile-nav-group.is-open .mobile-nav-dropdown,
.nav-group.is-open .mobile-nav-dropdown {
  max-height: 420px;
}

.mobile-nav-actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.6rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(19, 41, 68, 0.08);
}

.nav-panel .mobile-nav-actions a.btn-primary,
.nav-panel .mobile-nav-actions a.btn-primary:visited,
.nav-panel .mobile-nav-actions a.btn-primary:hover,
.nav-panel .mobile-nav-actions a.btn-primary:focus-visible,
.nav-panel .mobile-nav-actions a.btn-secondary,
.nav-panel .mobile-nav-actions a.btn-secondary:visited,
.nav-panel .mobile-nav-actions a.btn-secondary:hover,
.nav-panel .mobile-nav-actions a.btn-secondary:focus-visible {
  color: var(--white);
}

.btn.btn-outline {
  color: var(--wine);
  background: transparent;
  border-color: rgba(19, 41, 68, 0.18);
}

.mobile-language-switcher {
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(19, 41, 68, 0.08);
}

.nav-actions-cluster {
  display: none;
  align-items: center;
  justify-content: flex-end;
}

.home-hero {
  min-height: calc(88svh - 72px);
}

.home-hero .hero-content {
  width: min(calc(100% - 2rem), 1180px);
}

.hero-kicker-logo {
  width: clamp(148px, 20vw, 220px);
  height: auto;
  margin-bottom: 1rem;
}

.home-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.home-hero-copy {
  max-width: 820px;
  margin-inline: auto;
}

.hero-lead {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #26384d;
  font-size: clamp(1.08rem, 2.3vw, 1.22rem);
}

.hero-notes {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.hero-note {
  padding: 1rem 1.1rem;
  color: var(--wine-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(19, 41, 68, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(8, 24, 43, 0.06);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-band {
  padding: 0 0 clamp(3.5rem, 8vw, 5rem);
  margin-top: -0.5rem;
}

.stats-band .container {
  position: relative;
  z-index: 4;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.stat-card {
  width: min(100%, 760px);
  padding: 1.35rem 1.4rem;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(19, 41, 68, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(8, 24, 43, 0.08);
}

.stat-card strong {
  display: block;
  color: var(--wine-dark);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: var(--font-footer);
  font-size: 0.94rem;
  font-weight: 600;
}

.stat-card [data-member-stats-subtitle] {
  max-width: 560px;
  margin-inline: auto;
}

.stat-card [data-member-stats-meta]:empty,
.member-stats-meta:empty {
  display: none;
}

.vision-pillars,
.programme-grid,
.team-grid,
.cta-band-grid {
  display: grid;
  gap: 1rem;
}

.vision-pillar,
.programme-card,
.team-card,
.cta-panel {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid rgba(19, 41, 68, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(8, 24, 43, 0.06);
}

.vision-pillar h3,
.programme-card h3,
.team-card h3,
.cta-panel h2 {
  margin: 0 0 0.55rem;
  color: var(--wine-dark);
  font-size: 1.16rem;
  line-height: 1.15;
}

.vision-pillar p,
.programme-card p,
.team-card p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
}

.team-card span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-family: var(--font-footer);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--wine);
  font-weight: 850;
}

.homepage-news-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
}

.cta-panel {
  height: 100%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.cta-panel h2,
.cta-panel p {
  color: var(--white);
}

.site-footer-unified {
  background: #14070d;
}

.site-footer-unified .footer-grid {
  display: grid;
  gap: 2rem;
}

.site-footer-unified .footer-brand-block p:not(.footer-quote) {
  max-width: 320px;
}

@media (min-width: 768px) {
  .vision-pillars,
  .programme-grid,
  .homepage-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer-unified .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .nav-shell-unified {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .nav-panel {
    position: static;
    display: block;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .nav-panel-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
  }

  .nav-panel-mobile {
    display: none;
  }

  .nav-group-toggle,
  .nav-root-link {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.94rem;
    white-space: nowrap;
    border-radius: 10px;
  }

  .nav-root-link {
    font-weight: 760;
  }

  .nav-root-link[aria-current="page"],
  .nav-group.is-current > .nav-group-toggle {
    color: var(--wine-dark);
    background: transparent;
    box-shadow: inset 0 -2px 0 var(--wine);
  }

  .nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 280px;
    gap: 0.28rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 41, 68, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(8, 24, 43, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .nav-group.is-open > .nav-dropdown,
  .nav-group:hover > .nav-dropdown,
  .nav-group:focus-within > .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-group:hover > .nav-group-toggle,
  .nav-group:focus-within > .nav-group-toggle,
  .nav-group.is-open > .nav-group-toggle {
    background: rgba(19, 41, 68, 0.05);
  }

  .nav-dropdown-link,
  .nav-dropdown-button {
    display: flex;
    width: 100%;
    padding: 0.82rem 0.9rem;
    color: var(--wine-dark);
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
  }

  .nav-actions-cluster {
    display: flex;
  }

  .language-switcher {
    margin-left: 0;
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
  }

  .vision-pillars,
  .programme-grid,
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .homepage-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-band-grid {
    grid-template-columns: 1.35fr 1fr;
  }
}

@media (max-width: 959px) {
  .nav-panel {
    max-height: calc(100svh - 86px);
    border-radius: 0 0 12px 12px;
  }

  .nav-actions-cluster > .language-switcher {
    display: none;
  }
}
