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


:root {
  /* Layout */
  --header-height: 70px;
  --footer-height: 3rem;
  --sidebar-width: 15vw;

  /* Primary */
  --primary-l2: #a9cee6;
  --primary-l1: #81cee6;
  --primary: #4fcef7;
  --primary-d1: #36aaf7;
  --primary-d2: #3677cc;

  /* Secondary */
  --secondary-l2: #abd10e;
  --secondary-l1: #89d10e;
  --secondary: #89b80e;
  --secondary-d1: #73b80e;
  --secondary-d2: #57a30e;

  /* Primary Contrast */
  --contrast-l2: #f0c2a0;
  --contrast-l1: #f0bf28;
  --contrast: #f09c28;
  --contrast-d1: #e58528;
  --contrast-d2: #d28528;

  /* Accent */
  --accent: #ffeb4b;

  /* Neutral */
  --neutral-text: #053333;

  /* Neutral */
  --neutral-bg: #fffcec;
  --neutral-text-dark: #050933;

  /* Functional (keep until neutral palette finalised) */
  --color-surface: #fff;
  --color-border: #ddd;
  --color-error: #dc2626;
  --color-success: #16a34a;
  --color-muted: #666;
}

body {
  font-family: "Geist", system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--neutral-text);
  background: var(--neutral-bg);
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  height: 70px;
  background: var(--primary);
  padding: 0 10vw;
}

.header-branding {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-branding .branding {
  font-family: "Cabin Sketch", cursive;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin: 0;
  line-height: 1;
  position: relative;
  z-index: 4;
}

.header-branding .branding::after {
  content: "Field Monkeys";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--secondary-d2);
  white-space: nowrap;
  pointer-events: none;
}

.header-branding .branding a {
  color: var(--neutral-bg);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  z-index: 4;
}

.header-spacer {
  grid-column: 4;
}

.header-actions {
  grid-column: 5 / 7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--neutral-text-dark);
}

.header-actions a {
  color: var(--neutral-text-dark);
  text-decoration: none;
}

.header-actions a:hover { text-decoration: underline; }

.btn-header {
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  background: var(--primary-d1);
  color: var(--neutral-text-dark);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-header:hover { background: var(--primary-d2); }

.header-row-gradient {
  display: none;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--neutral-text-dark);
}

/* Hero Strip */
.hero-strip {
  display: grid;
  grid-template-rows: auto auto;
}

.hero-image {
  background: transparent;
  position: relative;
  z-index: 2;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-quote-bar {
  display: grid;
  grid-template-columns: 1fr auto 2rem;
  align-items: end;
  min-height: 45px;
  margin-top: -25px;
  padding: 0.5rem 0 0 0;
  background: var(--secondary);
  position: relative;
  z-index: 1;
}

.hero-quote-spacer {
  display: block;
}

.hero-quote-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

h3.hero-quote-text {
  margin: 0;
  padding: 1.5rem 0.625rem 0 0.625rem;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--neutral-bg);
  text-align: right;
}

h4.hero-quote-author {
  margin: 0;
  padding: 0 0.3125rem 1rem 0.3125rem;
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
  color: var(--neutral-bg);
  text-align: right;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: var(--footer-height);
  background: var(--neutral-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.5rem 2rem;
  font-size: 0.75rem;
  color: var(--neutral-bg);
  z-index: 100;
}

.site-footer a { color: var(--neutral-bg); }

/* Layout shell */
.site-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
  min-height: calc(100dvh - var(--header-height) - var(--footer-height));
  width: 100%;
}

.site-layout.no-chrome {
  margin-top: 0;
  margin-bottom: 0;
  min-height: 100dvh;
}

.site-layout.no-sidebars {
  grid-template-columns: 1fr;
}

/* Sidebars */
.sidebar {
  padding: 1rem;
  overflow-y: auto;
  height: calc(100dvh - var(--header-height) - var(--footer-height));
  position: sticky;
  top: var(--header-height);
}

.sidebar-left {
  background:
    linear-gradient(to right,
      rgba(171, 209, 14, 0.35) 75%,
      var(--neutral-bg) 100%
    );
}

.sidebar-left h2 {
  font-family: "Chewy", cursive;
  font-size: 1.25rem;
  color: var(--secondary-d2);
  margin: 0 0 0.75rem 0;
}

.sidebar-left h2 a {
  color: var(--secondary-d2);
}

.sidebar-left h2 a:hover {
  color: var(--secondary);
  text-decoration: none;
}

.sidebar-right {
  padding-right: 0;
  background:
    linear-gradient(to right,
      var(--neutral-bg) 0%,
      rgba(240, 194, 160, 0.35) 25%
    );
}

.sidebar-right h2 {
  font-family: "Chewy", cursive;
  font-size: 1.25rem;
  color: var(--contrast-d2);
  margin: 0 0 0.75rem 0;
}

.sidebar-right h2 a {
  color: var(--contrast-d2);
}

.sidebar-right h2 a:hover {
  color: var(--contrast);
  text-decoration: none;
}

.sidebar-right a { color: var(--neutral-text-dark); }
.sidebar-right a:hover { color: var(--contrast-d2); }

.sidebar h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 0.75rem 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li a:not(.sidebar-group-link) {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--neutral-text-dark);
}

.sidebar-hint {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: -0.5rem 0 0.75rem 0;
}

.sidebar-group-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.sidebar-group-link {
  display: block;
  padding: 0.375rem 0 0.375rem 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-d1) !important;
}

.sidebar-group-link:hover {
  color: var(--secondary) !important;
  text-decoration: none;
}

.sidebar-subgroup-list {
  margin: 0.125rem 0 0.25rem 0.75rem;
  padding: 0;
  list-style: none;
}

.sidebar-subgroup-list li {
  padding: 0.125rem 0 0.125rem 1.25rem;
}

.sidebar-subgroup-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-d1) !important;
  text-decoration: none;
}

.sidebar-subgroup-link:hover {
  color: var(--secondary) !important;
  text-decoration: none;
}

.sidebar-empty {
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding-left: 0.75rem;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1rem 0 1.25rem 0;
}

/* Subgroup cards */
.subgroup-card {
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subgroup-name {
  font-family: "Chewy", cursive;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.sidebar-left a { color: var(--neutral-text-dark); }
.sidebar-left a:hover { color: var(--secondary-d2); }
.sidebar-right li a:hover { color: var(--contrast-d2); }

.sidebar-listings {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-listing-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-listing-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-l2), var(--contrast-l2));
  background-size: cover;
}

.sidebar-listing-item a {
  font-size: 0.8125rem;
  color: var(--neutral-text-dark);
  line-height: 1.3;
}

.sidebar-listing-item a:hover {
  color: var(--contrast-d2);
}

/* Main content */
.main-content {
  min-width: 0;
  padding: 1.5rem;
}

/* Overlay for mobile sidebars */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 199;
}

.sidebar-overlay.active { display: block; }

/* Forms */
form { display: flex; flex-direction: column; gap: 0.75rem; }
label { font-weight: 600; font-size: 0.875rem; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

textarea { min-height: 5rem; resize: vertical; }

/* Styled select */
.fm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Styled textarea */
.fm-textarea {
  min-height: 5rem;
  resize: vertical;
}

/* Form layout */
.fm-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 40rem;
}

.fm-form input[type="text"],
.fm-form input[type="email"],
.fm-form input[type="password"],
.fm-form input[type="date"],
.fm-form input[type="time"],
.fm-form input[type="number"],
.fm-form input[type="url"],
.fm-form select,
.fm-form textarea {
  padding: 0.625rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.fm-form input:focus,
.fm-form select:focus,
.fm-form textarea:focus {
  outline: none;
  border-color: var(--contrast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 2px rgba(240, 156, 40, 0.2);
}

/* Date picker styling */
.fm-form input[type="date"] {
  color-scheme: light;
}

.fm-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: invert(40%) sepia(80%) saturate(500%) hue-rotate(5deg);
}

.fm-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.fm-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Date entry rows */
.date-entry {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.375rem;
}

.date-entry input[type="date"] {
  flex: 1;
}

/* Small button variant */
.fm-btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Shared input class */
input.fm-input,
select.fm-input,
textarea.fm-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--neutral-bg);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

input.fm-input:focus,
select.fm-input:focus,
textarea.fm-input:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 12px rgba(137, 184, 14, 0.5);
}

/* Shared button classes */
.fm-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--secondary);
  color: var(--neutral-text-dark);
  border: none;
  border-radius: 0.5rem;
  font-family: "Chewy", cursive;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: center;
  box-shadow: 3px 3px 0 var(--secondary-d2);
}

.fm-btn:hover { background: var(--secondary-d1); }
.fm-btn:active { background: var(--secondary-d2); }

.fm-btn-secondary {
  background: var(--primary-l1);
  box-shadow: 3px 3px 0 var(--primary-d1);
}

.fm-btn-secondary:hover { background: var(--primary); }
.fm-btn-secondary:active { background: var(--primary-d1); }

.fm-btn-danger {
  background: var(--color-error);
  color: var(--neutral-bg);
  box-shadow: 3px 3px 0 #991b1b;
}

.fm-btn-danger:hover { background: #b91c1c; }
.fm-btn-danger:active { background: #991b1b; }

.fm-btn-compact {
  display: inline-block;
  width: auto;
  align-self: flex-start;
  padding: 0.375rem 0.75rem;
  background: var(--secondary);
  color: var(--neutral-text-dark);
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

.fm-btn-compact:hover { background: var(--secondary-d1); }
.fm-btn-compact:active { background: var(--secondary-d2); }

.fm-btn-compact.fm-btn-danger {
  background: var(--color-error);
  color: var(--neutral-bg);
}

.fm-btn-compact.fm-btn-danger:hover { background: #b91c1c; }

.fm-btn-compact.fm-btn-secondary {
  background: var(--primary-l1);
  color: var(--neutral-text-dark);
}

.fm-btn-compact.fm-btn-secondary:hover { background: var(--primary); }

/* Legacy button styles (to be replaced with fm-btn) */
button, .btn {
  display: inline-block;
  padding: 0.625rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

button:hover, .btn:hover { background: var(--primary-d1); }

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

.btn-danger {
  background: var(--color-error);
}

.error { color: var(--color-error); font-size: 0.875rem; }
.success { color: var(--color-success); font-size: 0.875rem; }

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input { flex: 1; padding-right: 2.5rem; }

.password-toggle {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  box-shadow: none;
}

.password-toggle:hover { color: var(--neutral-text); background: none; }

.login-grid .password-wrapper { margin: 0 2vw; }
.login-grid .password-wrapper input[type="password"] { margin: 0; width: 100%; }

.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-row label { font-weight: normal; }

h1 { font-family: "Cabin Sketch", cursive; font-size: 1.5rem; margin: 0 0 1rem 0; }
h2 { font-family: "Chewy", cursive; font-size: 1.25rem; margin: 1.5rem 0 0.75rem 0; }
h3 { font-family: "Chewy", cursive; margin: 1rem 0 0.5rem 0; }
h4 { margin: 0.5rem 0; }

nav { margin-bottom: 1.5rem; }
nav a { margin-right: 1rem; }

/* Dashboard */
h2.dashboard-welcome {
  font-size: 2.5rem;
  color: var(--contrast);
}

h2.group-title {
  font-size: 2.5rem;
  color: var(--contrast);
}

h2.group-section-heading {
  color: var(--contrast);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

.group-toggle-link {
  font-family: "Chewy", cursive;
  font-size: 1.25rem;
  color: var(--contrast);
  text-decoration: none;
}

.group-toggle-link:hover {
  color: var(--contrast-d2);
  text-decoration: none;
}

.group-admin-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-admin-links a {
  font-size: 0.9375rem;
  color: var(--neutral-text-dark);
  text-decoration: none;
}

.group-admin-links a:hover {
  color: var(--contrast-d2);
  text-decoration: none;
}

.dashboard-section { margin-bottom: 2rem; }

.dashboard-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: -0.5rem 0 0.75rem 0;
}

.invitation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.invitation-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.invitation-name {
  font-family: "Chewy", cursive;
  font-size: 1.125rem;
  color: var(--neutral-text-dark);
}

.invitation-desc {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0.125rem 0 0 0;
}

.invitation-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.invitation-actions form {
  display: inline;
  margin: 0;
}

.invitation-actions button {
  width: auto;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.dashboard-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-event-item a {
  font-weight: 600;
  color: var(--neutral-text-dark);
}

.dashboard-event-item a:hover {
  color: var(--primary);
}

.dashboard-event-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
  white-space: nowrap;
  margin-left: 1rem;
}
.dashboard-section h2 { margin-top: 0; }

.event-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.event-card .event-date {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Login Page */
.login-grid {
  display: grid;
  grid-template-columns: 25vw 25vw 25vw 25vw;
  grid-template-rows: 5vw auto auto 5vw;
  min-height: 100dvh;
  position: fixed;
  inset: 0;
}

.login-flex {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-h1 {
  font-family: "Cabin Sketch", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--neutral-bg);
  background: var(--neutral-text-dark);
  margin: 0 0 1.5rem 0;
  padding: 0.75rem;
  text-align: center;
}

.login-label {
  margin: 0;
  padding: 0 3vw;
  color: var(--neutral-text-dark);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
}

.login-grid input[type="email"],
.login-grid input[type="text"],
.login-grid input[type="password"] {
  margin: 0 2vw;
  padding: 0.75rem;
  background: var(--neutral-bg);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: auto;
}

.login-grid input[type="email"]:focus,
.login-grid input[type="text"]:focus,
.login-grid input[type="password"]:focus {
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 12px rgba(137, 184, 14, 0.5);
}

.btn-login {
  align-self: center;
  padding: 0.75rem 4rem;
  margin-top: 0.5rem;
  background: var(--secondary);
  color: var(--neutral-text-dark);
  border: none;
  border-radius: 0.5rem;
  font-family: "Chewy", cursive;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--secondary-d2);
}

.btn-login:hover {
  background: var(--secondary-d1);
}

.btn-login:active {
  background: var(--secondary-d2);
}

/* Directory */
.directory-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.directory-filter {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  background: var(--color-border);
  color: var(--neutral-text-dark);
}

.directory-filter.active {
  background: var(--primary);
  color: var(--neutral-bg);
}

.directory-filter:hover {
  text-decoration: none;
  background: var(--primary-l1);
  color: var(--neutral-text-dark);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.directory-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--neutral-text-dark);
  transition: box-shadow 0.2s ease;
}

.directory-card:hover {
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.directory-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-l2), var(--secondary-l2));
  position: relative;
}

.directory-card-type {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: var(--neutral-text-dark);
  color: var(--neutral-bg);
  font-size: 0.75rem;
  border-radius: 4px;
  text-transform: capitalize;
}

.directory-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.directory-card-title {
  font-family: "Chewy", cursive;
  font-size: 1.125rem;
  margin: 0;
  color: var(--neutral-text-dark);
}

.directory-card-category {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.directory-card-desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--neutral-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Profile Setup Grid */
.setup-grid {
  display: grid;
  grid-template-columns: 20vw 1fr 1fr 20vw;
}

.setup-flex {
  grid-column: 2 / 4;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .header-branding .branding {
    font-size: 2rem;
  }

  .site-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
  }

  .sidebar-left {
    order: 2;
    background: rgba(171, 209, 14, 0.35);
  }

  .sidebar-right {
    order: 3;
    background: rgba(240, 194, 160, 0.35);
  }

  .main-content {
    order: 1;
    padding: 1rem;
  }

  .sidebar-toggle { display: none; }
  .sidebar-overlay { display: none; }

  .login-grid {
    grid-template-columns: 10vw 1fr 1fr 10vw;
  }

  .setup-grid {
    grid-template-columns: 5vw 1fr 1fr 5vw;
  }
}

/* ── Listing type picker ── */
.listing-type-links {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin: 0.375rem 0;
  flex-wrap: nowrap;
}

.listing-picker-wrap {
  position: relative;
  flex: 0 0 auto;
}

.listing-type-link {
  font-size: 0.9375rem;
  color: var(--neutral-text);
  text-decoration: none;
  cursor: pointer;
  padding: 0.25rem 0;
}

.listing-type-link::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.3rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 0.15rem;
}

.listing-type-link:hover {
  color: var(--contrast-d2);
  text-decoration: none;
}

ul.listing-dropdown {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 14rem;
  max-height: 15rem;
  overflow-y: auto;
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

ul.listing-dropdown.open {
  display: block !important;
}

.listing-dropdown li {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--neutral-text);
}

.listing-dropdown li:hover {
  background: rgba(137, 184, 14, 0.15);
  color: var(--secondary-d2);
}

/* ── Interest bar ── */
.interest-bar-container {
  width: 100%;
  background: var(--color-border);
  border-radius: 0.375rem;
  overflow: hidden;
  height: 1.75rem;
  margin: 0.5rem 0;
}

.interest-bar {
  height: 100%;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-surface);
  min-width: fit-content;
  padding: 0 0.5rem;
}

.interest-status {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem 0;
}

/* ── Event preview ── */
.event-preview-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 0 0 1.5rem 0;
  max-width: 40rem;
}

.event-preview-cover {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
  display: block;
}

.event-preview-body {
  padding: 1rem;
}

.event-preview-body h3 {
  font-size: 0.9375rem;
  color: var(--contrast-d2);
  margin: 0.75rem 0 0.25rem 0;
}

.event-preview-body h3:first-child {
  margin-top: 0;
}

.event-preview-body p {
  font-size: 0.875rem;
  margin: 0 0 0.25rem 0;
}

.event-preview-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-preview-body li {
  font-size: 0.875rem;
  padding: 0.125rem 0;
}

.event-preview-actions {
  display: flex;
  gap: 0.75rem;
  margin: 0 0 1.5rem 0;
}
