:root {
  --cream: #f7f1e7;
  --paper: #fffdf9;
  --ink: #171713;
  --muted: #696258;
  --gold: #a5792d;
  --gold-soft: #dfc98f;
  --line: #e4d9c6;
  --shadow: 0 22px 55px rgba(72, 56, 30, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.demo-banner {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 9px 18px;
  background: #f1e4bf;
  border-bottom: 1px solid #dac28a;
  color: #65522b;
  font-size: 11px;
  line-height: 1.35;
}
.demo-banner strong { letter-spacing: .12em; color: #72571f; }

.dashboard-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand span { display: grid; gap: 3px; }
.brand strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; letter-spacing: .04em; }
.brand small { color: #8b6b31; font-size: 9px; font-weight: 800; letter-spacing: .13em; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.site-link { color: #554a38; font-size: 12px; font-weight: 700; text-decoration: none; }
.logout-button {
  border: 1px solid #b58a42;
  border-radius: 999px;
  background: #fffaf0;
  color: #72541d;
  padding: 9px 15px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.welcome-section {
  min-height: 470px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.welcome-photo {
  position: absolute;
  inset: 0;
  background: url("assets/participant-bg.jpg") center 50% / cover no-repeat;
  z-index: -3;
}
.welcome-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 253, 248, .97) 0%, rgba(255, 253, 248, .91) 39%, rgba(255, 253, 248, .54) 68%, rgba(255, 253, 248, .32) 100%);
  z-index: -2;
}
.welcome-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}
.eyebrow {
  margin: 0 0 10px;
  color: #9c7023;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.welcome-content h1 {
  max-width: 640px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 6.5vw, 82px);
  font-weight: 600;
  line-height: .93;
  letter-spacing: -.025em;
}
.welcome-copy {
  max-width: 630px;
  margin: 24px 0 0;
  color: #504a41;
  font-size: 14px;
  line-height: 1.75;
}
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 0 19px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
}
.button.primary { background: #8f6721; color: #fff; box-shadow: 0 9px 25px rgba(117, 81, 21, .2); }
.button.secondary { border: 1px solid #b89962; background: rgba(255, 253, 249, .85); color: #5e4925; }

.dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 78px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}
.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #5f584d;
  font-size: 11px;
  font-weight: 700;
}
.member-dot { width: 7px; height: 7px; border-radius: 50%; background: #4e8b60; box-shadow: 0 0 0 4px rgba(78, 139, 96, .13); }

.position-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 18px 30px;
  align-items: center;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.position-card h3, .portal-card h3, .development-note h3 {
  margin: 4px 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 600;
}
.position-card p:not(.card-label), .portal-card p:not(.card-label) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.card-label { margin: 0; color: #a0752d; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.role-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.role { padding: 8px 10px; border-radius: 999px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.role.be { background: #446a97; }
.role.own { background: #a24c45; }
.role.share { background: #52775d; }
.role.with { background: #795b46; }
.text-link { grid-column: 1 / -1; width: fit-content; color: #8d651e; font-size: 11px; font-weight: 800; text-decoration: none; }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.portal-card {
  min-height: 185px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.portal-card:hover { transform: translateY(-2px); border-color: #c9aa70; box-shadow: 0 15px 36px rgba(86, 67, 37, .09); }
.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4ead6;
  color: #946b25;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}
.arrow { align-self: center; color: #9b7127; font-size: 20px; }

.development-note {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  padding: 28px 30px;
  border: 1px solid #d9c28e;
  border-radius: 16px;
  background: #f8edcf;
}
.development-note ul { margin: 0; padding-left: 18px; color: #625840; font-size: 11px; line-height: 1.9; columns: 2; column-gap: 30px; }

.dashboard-footer {
  min-height: 105px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fffdf9;
  color: #746b5d;
  font-size: 10px;
}
.dashboard-footer div { display: grid; gap: 3px; }
.dashboard-footer strong { color: #342f27; font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; letter-spacing: .04em; }
.dashboard-footer span { color: #9a742f; font-size: 8px; font-weight: 800; letter-spacing: .12em; }

@media (max-width: 760px) {
  .demo-banner { display: block; text-align: center; }
  .demo-banner strong { display: block; margin-bottom: 3px; }
  .dashboard-header { min-height: 76px; padding: 9px 16px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 7px; }
  .site-link { display: none; }
  .welcome-section { min-height: 510px; }
  .welcome-shade { background: linear-gradient(90deg, rgba(255,253,248,.97), rgba(255,253,248,.86)); }
  .welcome-content, .dashboard-shell { width: min(100% - 28px, 1180px); }
  .welcome-content { padding: 62px 0; }
  .section-heading { display: block; }
  .member-chip { margin-top: 14px; }
  .position-card { grid-template-columns: 1fr; padding: 22px; }
  .role-pills { justify-content: flex-start; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 0; padding: 21px; }
  .development-note { grid-template-columns: 1fr; padding: 23px; }
  .development-note ul { columns: 1; }
  .dashboard-footer { display: block; text-align: center; }
  .dashboard-footer p { margin-top: 15px; }
}
