/* --- Palette --- */
:root {
  --dark:      #393d3f;
  --white:     #fdfdff;
  --muted:     #c6c5b9;
  --accent:    #62929e;
  --secondary: #546a7b;
  --error:     #b94a48;
  --compact-control-height: 1.9rem;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
body {
  font-family: 'Lato', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* --- Header / Nav --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--muted);
  box-shadow: 0 1px 4px rgba(57, 61, 63, 0.07);
}

.site-nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
}

.site-nav__brand {
  grid-column: 1;
  justify-self: start;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-nav__menu {
  display: contents;
}

.site-nav__links {
  grid-column: 2;
  justify-self: center;
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav__utility {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__links a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.site-nav__links a:hover {
  color: var(--dark);
}

.site-nav__toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
}

/* --- Host preview banner --- */
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #fff8e1;
  border: 1px solid #f0c040;
  color: #7a5f00;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.preview-banner__label {
  flex-shrink: 0;
}

.preview-banner__form {
  display: flex;
  align-items: center;
}

.preview-banner__select {
  width: auto;
  padding: 0.2rem 2rem 0.2rem 0.6rem;
  font-size: 0.82rem;
  border-color: #f0c040;
  border-radius: 4px;
  color: #7a5f00;
  background-color: #fffdf0;
  cursor: pointer;
}

/* --- Flash messages --- */
.site-messages {
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--muted);
  background: var(--white);
  padding: 0.7rem 2rem;
  text-align: center;
}

.site-message {
  font-size: 0.9rem;
  color: var(--secondary);
}

.site-message--success {
  color: var(--accent);
}

.site-message--error {
  color: var(--error);
}

/* --- Main --- */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
}

/* --- Card --- */
.card {
  background: var(--white);
  border: 1px solid rgba(57, 61, 63, 0.08);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(57, 61, 63, 0.08), 0 1px 3px rgba(57, 61, 63, 0.06);
  padding: 2.5rem;
  max-width: 640px;
  width: 100%;
}

.card--wide {
  max-width: 960px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: normal;
}

h1 {
  font-size: 1.9rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

h2 {
  font-size: 1.05rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 0.85rem;
}

/* --- Form fields --- */
.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(57, 61, 63, 0.14);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546a7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.85rem;
  cursor: pointer;
}

select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23393d3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362929e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* --- Custom select (JS-enhanced dropdown, matches the rest of the UI) --- */
.custom-select {
  position: relative;
}

.custom-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
}

.custom-select__toggle {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0.65rem 0.85rem;
  padding-right: 2.5rem;
  border: 1px solid rgba(57, 61, 63, 0.14);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23546a7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.custom-select__value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__toggle:hover {
  border-color: rgba(57, 61, 63, 0.26);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23393d3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.custom-select__toggle:focus-visible,
.custom-select.is-open .custom-select__toggle {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(98, 146, 158, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362929e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.custom-select__menu {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--white);
  border: 1px solid rgba(57, 61, 63, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(57, 61, 63, 0.12);
  max-height: 18rem;
  padding: 0.4rem 0;
  z-index: 30;
}

.custom-select.is-open .custom-select__menu {
  display: flex;
}

.custom-select .custom-select__search {
  width: calc(100% - 1.6rem);
  margin: 0 0.8rem 0.4rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(57, 61, 63, 0.14);
  border-radius: 6px;
  flex-shrink: 0;
}

.custom-select .custom-select__search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(98, 146, 158, 0.16);
}

.custom-select__list {
  list-style: none;
  overflow-y: auto;
}

.custom-select__option {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.custom-select__option.is-hidden {
  display: none;
}

.custom-select__option:hover,
.custom-select__option:focus {
  outline: none;
  color: var(--dark);
  background: rgba(198, 197, 185, 0.2);
}

.custom-select__option.is-selected {
  color: var(--dark);
  font-weight: 700;
}

.custom-select__empty {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="date"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(57, 61, 63, 0.26);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(98, 146, 158, 0.16);
}

input[type="number"] {
  max-width: 140px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  background: transparent;
}

input::placeholder {
  color: var(--muted);
}

input[type="radio"] {
  margin-right: 0.4rem;
  accent-color: var(--accent);
}

.radio-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--dark);
}

textarea {
  resize: vertical;
}

.error {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* --- Date field with custom calendar picker --- */
.date-field {
  position: relative;
  display: inline-block;
  max-width: 220px;
  width: 100%;
}

.date-field input[type="text"] {
  padding-right: 2.75rem;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.date-field__icon {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--secondary);
  transition: background 0.15s, color 0.15s;
}

.date-field__icon:hover {
  background: rgba(98, 146, 158, 0.14);
  color: var(--dark);
}

.date-field__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.date-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  background: var(--white);
  border: 1px solid rgba(57, 61, 63, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(57, 61, 63, 0.13);
  width: 280px;
  padding: 1rem;
}

.date-picker__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.date-picker__month-year {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--dark);
}

.date-picker__prev,
.date-picker__next {
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--secondary);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  transition: background 0.15s, color 0.15s;
}

.date-picker__prev:hover,
.date-picker__next:hover {
  background: rgba(98, 146, 158, 0.12);
  color: var(--dark);
}

.date-picker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.2rem;
}

.date-picker__weekday {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0;
}

.date-picker__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.date-picker__day {
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--dark);
  background: none;
  border: none;
  width: 100%;
  transition: background 0.1s, color 0.1s;
}

.date-picker__day:hover:not(.date-picker__day--selected) {
  background: rgba(98, 146, 158, 0.12);
}

.date-picker__day--today {
  font-weight: 700;
  color: var(--accent);
}

.date-picker__day--selected {
  background: var(--accent);
  color: var(--white);
}

.date-picker__day--other-month {
  color: var(--muted);
  opacity: 0.4;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.field-optional {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: none;
  font-weight: normal;
}

.form-section-heading {
  font-size: 1rem;
  color: var(--dark);
  border-bottom: none;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

/* --- Password rules --- */
.password-rules {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rule {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}

.rule::before {
  content: '●';
  font-size: 0.5rem;
  flex-shrink: 0;
}

.rule.is-valid {
  color: var(--accent);
}

.rule.is-invalid {
  color: var(--error);
}

/* --- Auth links --- */
.auth-switch {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--secondary);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--secondary);
}

/* --- Button --- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: normal;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(98, 146, 158, 0.25);
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}

.btn:hover {
  background: var(--secondary);
  box-shadow: 0 6px 16px rgba(84, 106, 123, 0.3);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(98, 146, 158, 0.3);
}

.btn--secondary {
  background: none;
  color: var(--accent);
  box-shadow: none;
  border: 1px solid var(--accent);
}

.btn--secondary:hover {
  background: rgba(98, 146, 158, 0.1);
  color: var(--dark);
  box-shadow: none;
  transform: none;
}

.btn--danger {
  background: var(--error);
  box-shadow: 0 2px 6px rgba(185, 74, 72, 0.25);
}

.btn--danger:hover {
  background: #9c3d3b;
  box-shadow: 0 6px 16px rgba(185, 74, 72, 0.3);
}

.btn--danger-outline {
  background: none;
  color: var(--error, #b94a48);
  border: 1px solid var(--error, #b94a48);
  box-shadow: none;
}

.btn--danger-outline:hover {
  background: rgba(185, 74, 72, 0.08);
  box-shadow: none;
  transform: none;
}

.btn--sm {
  height: var(--compact-control-height);
  padding: 0 0.85rem;
  font-size: 0.8rem;
  margin-top: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.btn--icon {
  width: var(--compact-control-height);
  padding: 0;
}

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(57, 61, 63, 0.45);
}

.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(57, 61, 63, 0.18), 0 1px 3px rgba(57, 61, 63, 0.08);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.modal__title {
  font-family: 'Playfair Display', serif;
  font-weight: normal;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.modal__body {
  font-size: 0.92rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.modal__body p {
  margin-bottom: 0.5rem;
}

.modal__member-list {
  list-style: none;
  margin-top: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  border-top: 1px solid var(--muted);
  padding-top: 0.5rem;
}

.modal__member-list li {
  padding: 0.3rem 0;
  color: var(--dark);
  font-size: 0.9rem;
}

.modal__member-list--empty li {
  color: var(--muted);
  font-style: italic;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal__footer .btn {
  margin-top: 0;
}

/* --- RSVP event info header --- */
.event-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.event-info__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
  line-height: 1.25;
}

.event-info__meta {
  text-align: right;
  flex-shrink: 0;
}

.event-info__date {
  font-size: 0.88rem;
  color: var(--secondary);
  margin-bottom: 0.1rem;
}

.event-info__location {
  font-size: 0.88rem;
  color: var(--secondary);
}

.event-info__location a {
  color: var(--accent);
  text-decoration: none;
}

.event-info__location a:hover {
  color: var(--secondary);
}

.event-intro {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--muted);
  font-style: italic;
}

/* --- RSVP info spec blocks --- */
.rsvp-specs {
  margin: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--muted);
}

.rsvp-spec {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(198, 197, 185, 0.45);
}

.rsvp-spec:last-child {
  border-bottom: none;
}

.rsvp-spec__type {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--secondary);
  padding-top: 0.1rem;
  line-height: 1.4;
}

.rsvp-spec__content {
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .rsvp-spec {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .rsvp-spec__type {
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
  }
}

/* --- Spec question fields inside the RSVP form --- */
.spec-field {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(198, 197, 185, 0.6);
  margin-top: 0.25rem;
}

.spec-field__label-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.spec-field__label-row label {
  margin-bottom: 0;
}

.spec-field__type {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.spec-field > label {
  font-style: italic;
  color: var(--secondary);
}

.spec-field__desc {
  margin-bottom: 0.5rem;
}

/* Yes/No radio group — Django 4.x renders as nested divs */
.spec-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.spec-radio-group > div {
  display: flex;
}

.spec-radio-group > div label {
  font-style: normal;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* Multi-choice checkbox group */
.spec-check-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.spec-check-group > div {
  display: flex;
}

.spec-check-group > div label {
  font-style: normal;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* Legacy: older Django versions used ul/li for RadioSelect / CheckboxSelectMultiple */
.spec-field ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.spec-field ul li label {
  font-style: normal;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* --- Guest form blocks --- */
.guest-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--muted);
}

.guest-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guest-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* --- Deadline note --- */
.deadline-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.deadline-countdown {
  margin-bottom: 1.5rem;
}

.deadline-countdown__value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-right: 0.35rem;
}

.deadline-countdown__label {
  font-size: 0.9rem;
  color: var(--accent);
}

/* --- Host nav dropdown --- */
.site-nav__host {
  position: relative;
}

.site-nav__host-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--secondary);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}

.site-nav__host-toggle:hover {
  color: var(--dark);
}

.site-nav__host-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--white);
  border: 1px solid rgba(57, 61, 63, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(57, 61, 63, 0.12);
  list-style: none;
  min-width: 150px;
  padding: 0.4rem 0;
  z-index: 20;
}

.site-nav__host-menu.is-open {
  display: block;
}

.site-nav__host-menu a,
.site-nav__logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.site-nav__host-menu a:hover,
.site-nav__logout-btn:hover {
  color: var(--dark);
  background: rgba(198, 197, 185, 0.2);
}

.site-nav__danger-link {
  color: var(--error) !important;
}

.site-nav__danger-link:hover {
  background: rgba(185, 74, 72, 0.08) !important;
}

.site-nav__login {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.site-nav__login:hover {
  color: var(--dark);
}

/* --- Language switcher --- */
.site-nav__lang {
  margin: 0;
}

.site-nav__lang .custom-select__toggle {
  width: auto;
  padding: 0.35rem 1.8rem 0.35rem 0.7rem;
  font-size: 0.82rem;
  background-size: 0.7rem;
}

.site-nav__lang .custom-select__menu {
  left: auto;
  right: 0;
  min-width: 140px;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-header {
    position: relative;
  }

  .site-nav__toggle {
    display: flex;
  }

  .site-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--muted);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 10;
  }

  .site-nav__menu.is-open {
    display: flex;
  }

  .site-nav__links {
    justify-self: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav__links li a {
    display: block;
    padding: 0.75rem 2rem;
  }

  .site-nav__utility {
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem 2rem 0.25rem;
    border-top: 1px solid var(--muted);
  }

  .site-nav__host {
    width: 100%;
  }

  .site-nav__host-toggle {
    display: none;
  }

  .site-nav__host-menu {
    display: block;
    position: static;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    width: 100%;
    min-width: 0;
    padding: 0;
    z-index: auto;
  }

  .site-nav__host-menu a,
  .site-nav__host-menu .site-nav__logout-btn {
    padding: 0.75rem 0;
  }

  .site-nav__host-menu a:hover,
  .site-nav__host-menu .site-nav__logout-btn:hover {
    background: none;
  }

  .site-nav__login {
    padding: 0.75rem 0;
  }

  .site-nav__lang {
    padding: 0.5rem 0;
  }

  .site-nav__lang .custom-select__toggle {
    width: 100%;
  }

  .site-nav__lang .custom-select__menu {
    left: 0;
    right: 0;
  }

  .card {
    padding: 1.5rem 1.25rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
