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

:root {
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-pale: #d8f3dc;
  --text: #1b1b1b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f4f7f5;
  --white: #fff;
  --red: #c0392b;
  --radius: 12px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(160deg, #eaf2ec 0%, #f4f7f5 55%, #f8faf8 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Nav */
nav {
  background: var(--green);
  color: white;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: white;
}

nav .nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover { color: white; }
nav a.nav-active { color: white; font-weight: 600; }

nav .nav-username {
  font-size: 0.85rem;
  color: var(--green-pale);
}

.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.88);
  padding: 0.25rem;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.notif-bell:hover { background: rgba(255,255,255,0.1); color: white; }

.notif-badge {
  background: var(--red);
  color: white;
  border-radius: 999px;
  padding: 1px 5px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
  min-width: 16px;
  text-align: center;
}

.hidden { display: none; }

/* Layout */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.25rem; }
h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }

.subtitle { color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, transform 0.18s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-following {
  border-color: var(--green-light);
}

.card-course {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.card-activity {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.card-recap {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0.5rem 0;
  display: block;
}

.badge {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.badge.full {
  background: #fdecea;
  color: var(--red);
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.15);
}

textarea { resize: vertical; min-height: 80px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color: white;
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(45,106,79,0.25);
}

.btn-primary:hover { background: var(--green-light); box-shadow: 0 2px 8px rgba(45,106,79,0.3); }

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

.btn-secondary:hover { background: #b7e4c7; }

.btn-danger {
  background: #fdecea;
  color: var(--red);
}

.btn-danger:hover { background: #f5c6cb; }

.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-tertiary {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  cursor: pointer;
  line-height: 1.5;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-tertiary:hover {
  background: var(--bg);
  border-color: var(--green-light);
  color: var(--green);
}

.btn-tertiary.active {
  background: var(--green-pale);
  border-color: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

.btn-tertiary:disabled { opacity: 0.55; cursor: default; }

.btn-oauth {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  width: 100%;
  justify-content: center;
  padding: 0.7rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.6rem;
}
.btn-oauth:hover { background: var(--bg); border-color: #c9d5cc; }

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.oauth-divider::before, .oauth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert-error { background: #fdecea; color: var(--red); }
.alert-success { background: var(--green-pale); color: var(--green); }

/* Tee time detail */
.detail-header {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.course-section {
  margin-bottom: 0.5rem;
}

.course-name {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.course-link {
  font-size: 0.85rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.course-link:hover {
  text-decoration: underline;
}

.detail-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.spots-bar {
  display: flex;
  gap: 6px;
  margin: 1rem 0 0.5rem;
}

.spot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.spot.filled { background: var(--green); color: white; }
.spot.open { background: var(--green-pale); color: var(--green); border: 2px dashed var(--green-light); }

.players-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.player-chip:hover {
  background: #e8ede9;
  border-color: #c9d5cc;
}

.player-chip--host {
  border-color: var(--green-light);
  background: var(--green-pale);
}

.player-host-badge {
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  margin-left: 0.2rem;
  opacity: 0.8;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.share-box {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Post-create share nudge — shown once after round is posted */
.share-nudge {
  background: var(--green-pale);
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.share-nudge-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* Inline icons */
.icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
  opacity: 0.55;
  flex-shrink: 0;
}

/* Auth links */
.auth-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-link a { color: var(--green); text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

/* Notifications */
.notifications {
  margin-bottom: 1.5rem;
}

.notifications-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-light);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
}

.notification-item.read {
  border-left-color: var(--border);
  color: var(--muted);
}

.notification-dot {
  width: 7px;
  height: 7px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.notification-item.read .notification-dot {
  background: transparent;
}

.notif-dismiss:hover { color: var(--text); }

/* Full-page notification list (notifications.html) */
.notif-full-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-light);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}

.notif-full-item:hover { background: var(--bg); }
.notif-full-item.read  { border-left-color: var(--border); }

.notif-full-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.notif-full-item.read .notif-full-avatar { background: var(--border); color: var(--muted); }

.notif-full-body { flex: 1; min-width: 0; }

.notif-full-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.notif-full-message { font-size: 0.9rem; line-height: 1.4; }
.notif-full-item.read .notif-full-message { color: var(--muted); font-weight: 400; }

.notif-full-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Notification dropdown panel */
@keyframes notif-panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notifications-panel {
  position: fixed;
  top: 64px;
  right: 1rem;
  width: 320px;
  max-height: 480px;
  overflow-y: auto;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  z-index: 200;
  animation: notif-panel-in 0.15s ease;
}

.notif-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  background: var(--white);
}

.notif-panel-see-all {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
}

.notif-panel-see-all:hover { color: var(--green); }

.notif-panel-loading,
.notif-panel-empty {
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* Notification items inside the dropdown panel */
.notification {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}

.notification:last-child { border-bottom: none; }
.notification:hover { background: var(--bg); }

.notification.unread {
  background: linear-gradient(to right, rgba(64,145,108,0.04), transparent);
}

.notification.unread .notification-message { font-weight: 500; }

.notification-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.notification-body { flex: 1; min-width: 0; }

.notification-message {
  font-size: 0.875rem;
  line-height: 1.4;
}

.notification-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Carousel */
.carousel-container {
  position: relative;
  margin: 0.5rem 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.42);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
  z-index: 1;
}

.carousel-nav:hover { background: rgba(0,0,0,0.68); }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

/* Photo grid */
.photos-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: pointer;
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* ── Round cards (feed) ── */
.round-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem 1.1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: box-shadow 0.18s, transform 0.18s;
}

.round-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.11);
  transform: translateY(-2px);
}

.round-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.round-card--following {
  border-color: var(--green-light);
}

.round-card--past {
  opacity: 0.65;
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.round-course {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.round-time {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}

.round-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.round-host {
  font-size: 0.825rem;
  color: var(--muted);
}

.spots-label {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--green-pale);
  color: var(--green);
  white-space: nowrap;
}

.spots-label--last {
  background: #fff3cd;
  color: #856404;
}

.spots-label--full {
  background: #fdecea;
  color: var(--red);
}

.spots-label--in {
  background: var(--green);
  color: white;
}

/* Player presence row on feed cards */
.round-presence {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 0.65rem;
}

.presence-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.presence-more {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mini spot pips on feed cards (supporting element) */
.round-spots {
  display: flex;
  gap: 5px;
  margin-bottom: 0.55rem;
  opacity: 0.75;
}

.feed-spot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-spot--filled {
  background: var(--green);
}

.feed-spot--open {
  background: var(--green-pale);
  border: 1.5px dashed var(--green-light);
}

.round-spots--full {
  opacity: 0.35;
}

.round-activity {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Engagement row — Interested signal */
.round-engagement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.engagement-count {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Status labels on feed cards (Completed, Following) */
.round-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding: 1px 7px;
  border-radius: 99px;
}

.round-label--past {
  background: #f3f4f6;
  color: var(--muted);
}

.round-label--following {
  background: var(--green-pale);
  color: var(--green);
}

/* Empty state — feed and other intentional blanks */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
  color: var(--muted);
}

.empty-state .empty-icon {
  justify-content: center;
  margin-bottom: 1rem;
  opacity: 0.35;
}

.empty-state h2 {
  color: var(--text);
  margin-bottom: 0.35rem;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.empty-state .btn {
  display: inline-flex;
  width: auto;
}

/* Subtle empty text (e.g. no players yet on detail page) */
.empty-subtle {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
}

/* Comments section */
.comments-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.comments-section h2 {
  margin-bottom: 1rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.comment-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.comment-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-delete {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.comment-delete:hover { color: var(--red); }

.comment-compose {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.comment-compose textarea {
  flex: 1;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  line-height: 1.4;
  overflow-y: hidden;
}

.comment-compose textarea:focus {
  outline: none;
  border-color: var(--green-light);
}

.comment-compose button {
  align-self: flex-end;
  white-space: nowrap;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover { color: var(--text); }

/* Legal pages */
.legal-content h1 { margin-bottom: 0.25rem; }
.legal-content h2 { font-size: 1rem; margin: 1.5rem 0 0.4rem; }
.legal-content h3 { font-size: 0.925rem; margin: 1rem 0 0.3rem; color: var(--text); }
.legal-content p  { font-size: 0.925rem; color: #333; margin-bottom: 0.75rem; line-height: 1.6; }
.legal-content ul { font-size: 0.925rem; color: #333; line-height: 1.6; margin: 0 0 0.75rem 1.25rem; }
.legal-content li { margin-bottom: 0.2rem; }

/* Google Places autocomplete — match form input appearance */
gmp-place-autocomplete {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  --gmp-background-color: #fff;
  --gmp-text-color: #111;
  --gmp-border-radius: 6px;
  --gmp-border-color: var(--border);
  --gmp-font-family: inherit;
  --gmp-place-autocomplete-background-color: #fff;
  --gmp-place-autocomplete-border-radius: 6px;
  --gmp-place-autocomplete-font-family: inherit;
  --gmp-place-autocomplete-font-size: 0.95rem;
}

/* Top bar actions */
.page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
