/* Shared with index.html — same design tokens and components (paths root-relative). */
@font-face {
  font-family: 'Apfel Grotzek';
  src: url('/apfelGrotzek/ApfelGrotezk-Regular.woff2') format('woff2'),
       url('/apfelGrotzek/ApfelGrotezk-Regular.woff') format('woff'),
       url('/apfelGrotzek/ApfelGrotezk-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface-page: rgb(255, 255, 255);
  --surface-raised: #f5f6f2;
  --surface-card: #fafbf7;
  --border-green: 1.5px solid rgba(34, 197, 94, 0.35);
  --border-green-2: 2px solid rgba(34, 197, 94, 0.3);
  --border-green-soft: 1px solid rgba(34, 197, 94, 0.22);
}

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

body {
  font-family: 'Geist Sans', system-ui, sans-serif;
  background-color: rgb(255, 255, 255);
  color: #111;
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

h1 {
  font-family: 'Apfel Grotzek', serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: lowercase;
  margin-bottom: 0.25rem;
  color: #111;
}

p.description {
  font-size: 1rem;
  color: #555;
  text-transform: lowercase;
}

.site-nav {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  text-transform: lowercase;
  color: #555;
}

.site-nav a {
  color: #166534;
  text-decoration: none;
  margin: 0 0.35rem;
}

.site-nav a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #999;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.5rem;
  background: rgb(255, 255, 255);
}

footer .description a {
  color: #166534;
}

.announcement-banner {
  max-width: 720px;
  margin: 0 auto 2rem;
  background: rgba(34, 197, 94, 0.06);
  border: var(--border-green-2);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.08);
  animation: slideInDown 0.6s ease-out;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #166534;
  font-size: 1rem;
  text-transform: lowercase;
}

.announcement-content i {
  font-size: 1.2rem;
  color: #fbbf24;
}

.announcement-content strong {
  color: #14532d;
  font-weight: 600;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-filter-container {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: #999;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #166534;
}

input[type='search'] {
  flex-grow: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  border: none;
  background-color: rgba(0, 0, 0, 0.04);
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #111;
  transition: background-color 0.2s ease;
}

input[type='search']::placeholder {
  color: #6b7280;
  font-style: italic;
}

input[type='search']:focus {
  outline: none;
  background-color: rgba(34, 197, 94, 0.08);
}

select {
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  border: none;
  background-color: rgba(0, 0, 0, 0.04);
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  color: #111;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

select:focus {
  outline: none;
  background-color: rgba(34, 197, 94, 0.08);
}

.forum-back-row {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.forum-back-row a {
  color: #166534;
  text-decoration: none;
  font-size: 1rem;
  text-transform: lowercase;
}

.forum-back-row a:hover {
  text-decoration: underline;
}

.forum-header-block {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.forum-header-block h2 {
  font-family: 'Apfel Grotzek', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #111;
  text-transform: lowercase;
  margin-bottom: 0.35rem;
}

.forum-header-block .description {
  margin: 0;
}

.forum-post {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  text-align: left;
}

.forum-post .forum-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.forum-vote-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  border: none;
  background-color: rgba(0, 0, 0, 0.04);
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.forum-vote-btn:hover {
  background-color: rgba(34, 197, 94, 0.08);
  color: #111;
}

.forum-vote-btn.is-up.is-active {
  background-color: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.forum-vote-btn.is-down.is-active {
  background-color: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.forum-vote-count {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.8rem;
  text-align: center;
}

.forum-vote-count.is-up {
  color: #166534;
}

.forum-vote-count.is-down {
  color: #c2410c;
}

.forum-score {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  min-width: 1.5rem;
  text-align: center;
  line-height: 1.2;
}

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

.forum-post-text {
  font-size: 0.95rem;
  color: #333;
  text-transform: lowercase;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.forum-post-title {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  text-transform: none;
  margin: 0 0 0.4rem;
  line-height: 1.35;
  word-wrap: break-word;
}

.forum-post-text.forum-user-rich {
  text-transform: none;
  white-space: normal;
}

.forum-post-text.forum-user-rich p {
  margin: 0 0 0.5rem;
}

.forum-post-text.forum-user-rich p:last-child {
  margin-bottom: 0;
}

.forum-post-text.forum-user-rich ul,
.forum-post-text.forum-user-rich ol {
  margin: 0.35rem 0 0.5rem 1.15rem;
  padding: 0;
}

.forum-compose-editor ul,
.forum-compose-editor ol {
  margin: 0.35rem 0 0.35rem 1.25rem;
  padding: 0;
}

.forum-compose-wrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.forum-compose-card {
  background: var(--surface-card);
  border: var(--border-green);
  border-radius: 24px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.06);
}

.forum-compose-form .form-group {
  margin-bottom: 1.25rem;
}

.forum-compose-title-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.04);
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #111;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

.forum-compose-title-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.forum-compose-title-input:focus {
  outline: none;
  background-color: rgba(34, 197, 94, 0.08);
}

.forum-editor-shell {
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-editor-shell:focus-within {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.forum-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: rgba(255, 255, 255, 0.5);
}

.forum-fmt-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.forum-fmt-btn:hover {
  background-color: rgba(34, 197, 94, 0.12);
  color: #14532d;
}

.forum-fmt-btn i {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  pointer-events: none;
}

.forum-compose-editor {
  position: relative;
  min-height: 8rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: 0.85rem 1rem;
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #111;
  text-transform: none;
}

.forum-compose-editor:focus {
  outline: none;
}

.forum-compose-editor.is-empty:not(:focus):before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  right: 1rem;
}

.forum-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

.forum-draft-btn {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #374151;
  padding: 0.65rem 1.25rem;
  border-radius: 16px;
  font-family: 'Apfel Grotzek', serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.forum-draft-btn:hover {
  background-color: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.35);
  color: #14532d;
}

.forum-draft-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: lowercase;
  min-height: 1.2em;
}

.forum-post-meta {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  text-transform: lowercase;
}

.char-count-line {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

.char-count-line.is-over {
  color: #b91c1c;
}

.required-mark {
  color: #dc2626;
  font-weight: 400;
  margin-left: 0.2em;
  white-space: nowrap;
}

.forum-vote-btn i {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  pointer-events: none;
}

.field-error-inline {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #92400e;
  text-transform: lowercase;
}

.extensions {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface-card);
  border: var(--border-green);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: box-shadow 1s ease, transform 0.5s ease;
}

.card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.card.no-hover {
  cursor: default;
}

.card.no-hover:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.06);
}

a.card,
a.card:visited {
  text-decoration: none;
  color: inherit;
}

.card-icon-fa {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 1.5rem;
  color: #22c55e;
}

.card h2 {
  font-family: 'Apfel Grotzek', serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.card p {
  font-size: 0.95rem;
  color: #444;
  text-transform: lowercase;
  flex-grow: 1;
  text-align: center;
}

.card-user-count {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.card-user-count i {
  font-size: 0.9rem;
  color: #22c55e;
}

.stat-value {
  font-family: 'Apfel Grotzek', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #111;
  text-align: center;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  color: #444;
  text-transform: lowercase;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Apfel Grotzek', serif;
  font-weight: 400;
  color: #111;
  text-transform: lowercase;
}

.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.04);
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #111;
  transition: background-color 0.2s ease;
  resize: vertical;
  min-height: 5rem;
}

.form-group textarea:focus {
  outline: none;
  background-color: rgba(34, 197, 94, 0.08);
}

.submit-review-btn {
  background-color: rgba(0, 0, 0, 0.04);
  border: none;
  color: #111;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  font-family: 'Apfel Grotzek', serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.submit-review-btn:hover {
  background-color: rgba(34, 197, 94, 0.08);
  color: #14532d;
}

.add-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.04);
  border: none;
  color: #111;
  border-radius: 16px;
  font-family: 'Apfel Grotzek', serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.add-review-btn:hover {
  background-color: rgba(34, 197, 94, 0.08);
  color: #14532d;
}

.add-review-btn i {
  font-family: 'Font Awesome 6 Free';
  font-size: 1.3rem;
  font-weight: 900;
  color: #fbbf24;
}

.pulse-item {
  cursor: default;
}

.pulse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.pulse-actions .add-review-btn {
  flex: 0 0 auto;
}

.sort-indicator {
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--surface-raised);
  border: var(--border-green);
  border-radius: 12px;
  color: #166534;
  font-size: 0.9rem;
  text-align: center;
}

.sort-indicator i {
  margin-right: 0.5rem;
  color: #22c55e;
}

.sort-indicator.is-hidden {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: #666;
  font-style: italic;
  text-transform: lowercase;
  padding: 2rem 1rem;
}

.section-label {
  font-family: 'Apfel Grotzek', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #111;
  text-transform: lowercase;
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 720px;
}

.pulse-feedback-section {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.review-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

@media (max-width: 640px) {
  .extensions {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* SGA subsites (hub, pulse, walkthrough): normal capitalization */
body.sga-site h1,
body.sga-site p.description,
body.sga-site .site-nav,
body.sga-site .site-nav a,
body.sga-site .section-label,
body.sga-site .announcement-banner,
body.sga-site .announcement-content,
body.sga-site .stat-label,
body.sga-site .stat-value,
body.sga-site footer,
body.sga-site footer p,
body.sga-site footer .description,
body.sga-site footer .description a,
body.sga-site .card h2,
body.sga-site .card p,
body.sga-site .forum-back-row a,
body.sga-site .forum-header-block h2,
body.sga-site .forum-header-block .description,
body.sga-site .form-group label,
body.sga-site .char-count-line,
body.sga-site .field-error-inline,
body.sga-site .forum-draft-hint,
body.sga-site .forum-draft-btn,
body.sga-site .submit-review-btn,
body.sga-site .forum-post-meta,
body.sga-site .forum-post-text,
body.sga-site .empty-state,
body.sga-site .sort-indicator,
body.sga-site select,
body.sga-site input[type='search'],
body.sga-site input[type='search']::placeholder {
  text-transform: none;
}

body.sga-site .sga-hub-product-title,
body.sga-site .sga-hub-hero-walk h1,
body.sga-site .walk-hero-kicker,
body.sga-site .walk-hero-lead,
body.sga-site .hub-preview-card,
body.sga-site .hub-preview-placeholder,
body.sga-site .hub-preview-badge,
body.sga-site .hub-preview-title,
body.sga-site .hub-preview-snippet,
body.sga-site .sga-hub-pillar-list li,
body.sga-site .pulse-modal-header h2,
body.sga-site .pulse-modal-close,
body.sga-site .pulse-modal-body,
body.sga-site .pulse-modal-body select {
  text-transform: none;
}

body.sga-site .reddit-comment-toggle,
body.sga-site .reddit-comment-body,
body.sga-site .reddit-comment-meta,
body.sga-site .pulse-tour-card h3,
body.sga-site .pulse-tour-card p,
body.sga-site .pulse-tour-step-label,
body.sga-site .pulse-tour-trigger {
  text-transform: none;
}

/* Main site footer: SGA links use normal casing (rest of site keeps lowercase vibe) */
.footer-sga-cased,
.footer-sga-cased a {
  text-transform: none;
}

/* --- Student Pulse: shell, hero, in-app nav --- */
body.sga-site .pulse-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.pulse-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: var(--border-green-soft);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.pulse-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: #14532d;
}

.pulse-brand-logo {
  border-radius: 10px;
  border: var(--border-green-soft);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.95);
}

.pulse-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  justify-content: center;
}

.pulse-top-links a {
  color: #166534;
  text-decoration: none;
  font-weight: 500;
}

.pulse-top-links a:hover {
  text-decoration: underline;
}

.pulse-top-actions {
  flex-shrink: 0;
}

.pulse-top-settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: var(--border-green-soft);
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border-radius: 12px;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.pulse-top-settings-btn:hover {
  background: rgba(34, 197, 94, 0.16);
}

.pulse-top-settings-label {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.pulse-hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.pulse-hero-lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.55;
  color: #475569;
}

body.sga-site .pulse-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
  color: #0f172a;
}

.pulse-main {
  padding-bottom: 0.5rem;
}

.pulse-app-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.4rem;
  margin: 0 auto 1rem;
  max-width: 720px;
  border: var(--border-green-soft);
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse-app-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.2rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pulse-app-nav-btn i {
  font-size: 1.1rem;
}

.pulse-app-nav-btn:hover {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.pulse-app-nav-btn.is-active {
  background: rgba(34, 197, 94, 0.18);
  color: #14532d;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}

.reddit-meta-btn {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  line-height: 1;
}

.reddit-meta-btn:hover {
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.reddit-meta-btn.is-active {
  color: #166534;
}

.settings-subheading {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: #334155;
}

/* Pulse page: full-height side icon rail + content, Apfel Grotezk for UI labels */
body.pulse-page {
  --pulse-pad-x: clamp(1rem, 4vw, 3rem);
  --pulse-rail-w: 4.375rem;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.pulse-page > footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-left: calc(var(--pulse-rail-w) + var(--pulse-pad-x));
  padding-right: var(--pulse-pad-x);
  box-sizing: border-box;
}

body.pulse-page .pulse-shell {
  max-width: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.pulse-page .pulse-side-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--pulse-rail-w);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(0.65rem, env(safe-area-inset-top, 0px)) 0 max(0.65rem, env(safe-area-inset-bottom, 0px));
  border-right: var(--border-green-soft);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
}

body.pulse-page .pulse-rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: var(--border-green-soft);
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  flex-shrink: 0;
  text-decoration: none;
}

body.pulse-page .pulse-rail-brand img {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
  object-fit: cover;
  border-radius: 6px;
}

body.pulse-page .pulse-app-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  padding: 0.35rem 0;
  max-width: none;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.pulse-page .pulse-app-nav-btn {
  flex: 0 0 auto;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border-radius: 14px;
  font-size: 1rem;
  flex-direction: row;
  gap: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.pulse-page .pulse-app-nav-btn i {
  font-size: 1.15rem;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

body.pulse-page .pulse-rail-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

body.pulse-page .pulse-rail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

body.pulse-page .pulse-rail-link:hover {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

body.pulse-page .pulse-rail-link i {
  font-size: 1.05rem;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

body.pulse-page .pulse-body {
  flex: 1;
  min-width: 0;
  margin-left: var(--pulse-rail-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}

body.pulse-page .pulse-hero {
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--pulse-pad-x);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 900px) {
  body.pulse-page .pulse-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    row-gap: 0.35rem;
    align-items: end;
  }

  body.pulse-page .pulse-hero-kicker {
    grid-column: 1 / -1;
  }

  body.pulse-page .pulse-hero h1 {
    margin-bottom: 0;
  }

  body.pulse-page .pulse-hero-lead {
    margin: 0;
  }
}

body.pulse-page .pulse-main {
  flex: 1;
  padding: 1rem var(--pulse-pad-x) 2.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.pulse-page .pulse-fab {
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}

body.pulse-page .pulse-tour-trigger {
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  z-index: 125;
}

@media (max-width: 380px) {
  body.pulse-page {
    --pulse-rail-w: 3.75rem;
  }

  body.pulse-page .pulse-app-nav-btn,
  body.pulse-page .pulse-rail-link {
    width: 2.6rem;
    height: 2.6rem;
  }
}

body.pulse-page .pulse-toolbar {
  max-width: none;
  width: 100%;
  margin: 0 0 1rem;
}

body.pulse-page .search-filter-container {
  max-width: none;
  width: 100%;
  margin: 0 0 1rem;
  justify-content: flex-start;
}

body.pulse-page .sort-indicator {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

body.pulse-page .pulse-feed {
  max-width: none;
  flex: 1;
}

body.pulse-page .pulse-modal,
body.pulse-page .settings-modal,
body.pulse-page .pulse-admin-modal {
  max-width: none;
  width: calc(100vw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.pulse-page .section-label {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

body.pulse-page .pulse-filter-bar {
  justify-content: flex-start;
}

.pulse-author-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
}

.pulse-author-name {
  font-weight: inherit;
}

.pulse-author-meta-rest {
  color: inherit;
}

.pulse-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  color: #166534;
  font-size: 0.82em;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
  padding: 0.12em 0.28em;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: var(--border-green-soft);
  box-sizing: border-box;
}

.pulse-author-name-row .pulse-verified-badge {
  margin-left: 0;
}

.pulse-verified-badge i {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.pulse-feed-card__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}

.pulse-admin-user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.pulse-admin-user-table th,
.pulse-admin-user-table td {
  text-align: left;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

.pulse-admin-user-table th {
  font-weight: 600;
  color: #374151;
}

.pulse-admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pulse-admin-user-actions button {
  font-size: 0.78rem;
  padding: 0.3rem 0.55rem;
  border-radius: 10px;
  border: var(--border-green-soft);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
  cursor: pointer;
  font-family: 'Geist Sans', system-ui, sans-serif;
}

.pulse-admin-user-actions button.is-danger {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(185, 28, 28, 0.06);
  color: #b91c1c;
}

.pulse-admin-note {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0 0 1rem;
  line-height: 1.45;
}

body.pulse-page .section-label,
body.pulse-page .form-group label,
body.pulse-page #opinion-body-label,
body.pulse-page .settings-field label,
body.pulse-page .settings-nav-btn,
body.pulse-page .settings-subheading,
body.pulse-page .settings-toggle-row > span:first-child,
body.pulse-page .pulse-hero-kicker,
body.pulse-page .pulse-filter-chip,
body.pulse-page .pulse-event-badge,
body.pulse-page .char-count-line,
body.pulse-page .forum-draft-hint,
body.pulse-page .forum-draft-btn,
body.pulse-page .reddit-comment-toggle,
body.pulse-page .reddit-comment-submit,
body.pulse-page .forum-post-meta,
body.pulse-page .pulse-auth-btn,
body.pulse-page .pulse-auth-note,
body.pulse-page .pulse-auth-copy,
body.pulse-page .submit-review-btn,
body.pulse-page .forum-fmt-btn {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
}

body.pulse-page .form-group label,
body.pulse-page .settings-field label {
  font-weight: 600;
}

/* --- Student Pulse: unified feed, filters, FAB, compose modal --- */
.pulse-toolbar {
  max-width: 720px;
  margin: 0 auto 1rem;
}

.pulse-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.pulse-filter-chip {
  border: var(--border-green-soft);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pulse-filter-chip:hover {
  background-color: rgba(34, 197, 94, 0.08);
  color: #14532d;
}

.pulse-filter-chip.is-active {
  background-color: rgba(34, 197, 94, 0.16);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.45);
  font-weight: 600;
}

.pulse-nav-settings-btn {
  border: none;
  background: transparent;
  color: #166534;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pulse-feed {
  max-width: 720px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pulse-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.pulse-feed .empty-state {
  grid-column: 1 / -1;
}

.pulse-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #166534;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.45rem;
  width: fit-content;
  text-transform: none;
}

.pulse-event-badge i {
  font-size: 0.7rem;
  opacity: 0.9;
}

.pulse-auth-card {
  max-width: 720px;
  margin: 0 auto 1rem;
  background: var(--surface-card);
  border: var(--border-green);
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.pulse-auth-text {
  font-size: 0.88rem;
  color: #374151;
}

.pulse-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pulse-auth-btn {
  border-radius: 12px;
  border: var(--border-green-soft);
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.pulse-auth-btn:hover {
  background: rgba(34, 197, 94, 0.16);
}

.pulse-auth-btn.is-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
}

.pulse-auth-note {
  width: 100%;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.pulse-auth-copy {
  margin: 0 0 1rem;
  color: #374151;
}

.pulse-auth-modal {
  max-width: 520px;
}

.pulse-fab {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 18px;
  border: var(--border-green);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #166534;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pulse-fab:hover {
  background: rgba(34, 197, 94, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.18);
}

.pulse-fab:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.45);
  outline-offset: 3px;
}

.pulse-tour-trigger {
  position: fixed;
  top: max(5.5rem, calc(env(safe-area-inset-top, 0px) + 4.5rem));
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  z-index: 115;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  border: var(--border-green);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #166534;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Geist Sans', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(34, 197, 94, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pulse-tour-trigger:hover {
  background: rgba(34, 197, 94, 0.12);
  transform: scale(1.05);
}

.pulse-tour-root {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.pulse-tour-root.is-active {
  pointer-events: auto;
}

.pulse-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pulse-tour-root.is-active .pulse-tour-backdrop {
  opacity: 1;
}

.pulse-tour-card {
  position: fixed;
  left: 1rem;
  top: 30%;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 1.15rem 1.25rem;
  background: var(--surface-card);
  border: var(--border-green);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pulse-tour-root.is-active .pulse-tour-card {
  opacity: 1;
  transform: translateY(0);
}

.pulse-tour-card h3 {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #111;
  margin: 0 0 0.5rem;
  text-transform: none;
}

body.pulse-page .pulse-tour-card h3 {
  font-weight: 700;
}

.pulse-tour-card p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #444;
  text-transform: none;
}

.pulse-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
}

.pulse-tour-actions button {
  border-radius: 14px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Geist Sans', system-ui, sans-serif;
}

.pulse-tour-skip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: #555;
}

.pulse-tour-next {
  border: var(--border-green);
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-weight: 600;
}

.pulse-tour-step-label {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: none;
}

/* Reddit-style thread */
.reddit-card {
  border-radius: 12px;
  overflow: hidden;
}

.reddit-main-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  text-align: left;
}

.reddit-content {
  flex: 1;
  min-width: 0;
}

.reddit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.reddit-comment-toggle {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Geist Sans', system-ui, sans-serif;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.reddit-comment-toggle:hover {
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.reddit-comments {
  margin-top: 0.5rem;
  padding-left: 0.25rem;
  border-left: 2px solid rgba(34, 197, 94, 0.2);
}

.reddit-comments.is-collapsed {
  display: none;
}

.reddit-comment-list {
  margin-bottom: 0.75rem;
}

.reddit-comment {
  padding: 0.45rem 0 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #333;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}

.reddit-comment-meta {
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 0.2rem;
}

.reddit-comment-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.reddit-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.reddit-comment-form textarea {
  width: 100%;
  min-height: 4rem;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  resize: vertical;
}

.reddit-comment-form textarea:focus {
  outline: none;
  background: rgba(34, 197, 94, 0.08);
}

.reddit-comment-submit {
  align-self: flex-start;
  padding: 0.45rem 1rem;
  border-radius: 14px;
  border: var(--border-green);
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Geist Sans', system-ui, sans-serif;
}

.reddit-comment-submit:hover {
  background: rgba(34, 197, 94, 0.18);
}

.reddit-comment-err {
  font-size: 0.8rem;
  color: #b45309;
  margin: 0;
}

/* Pulse feed cards (compact list; full thread in overlay) */
.pulse-feed .pulse-feed-card.pulse-item {
  cursor: pointer;
}

.pulse-feed-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--surface-raised, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pulse-feed-card:hover {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.pulse-feed-card__row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.85rem 1rem;
}

.pulse-feed-card__votes {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding-top: 0.15rem;
  min-width: 2.85rem;
}

.pulse-feed-card__votes .forum-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}

.pulse-feed-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pulse-feed-card__hit:focus {
  outline: none;
}

.pulse-feed-card:has(.pulse-feed-card__hit:focus-visible) {
  outline: 2px solid rgba(34, 197, 94, 0.45);
  outline-offset: 2px;
}

.pulse-feed-card__head {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.pulse-feed-card__title {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem;
  line-height: 1.35;
  text-transform: none;
}

.pulse-feed-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pulse-feed-card__hint {
  font-size: 0.78rem;
  color: #22c55e;
  font-weight: 600;
}

.pulse-feed-card__actions {
  margin: 0;
  padding: 0;
  border: none;
  justify-content: flex-end;
}

/* Full-screen post detail (Twitter / Reddit thread style) */
.pulse-post-detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pulse-post-detail-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pulse-post-detail {
  position: fixed;
  inset: 0;
  z-index: 201;
  background: var(--surface-base, #fafafa);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 100dvh;
}

.pulse-post-detail.is-open {
  transform: translateY(0);
}

.pulse-post-detail-back-wrap {
  position: absolute;
  left: max(0.5rem, env(safe-area-inset-left, 0px));
  bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  z-index: 10;
  pointer-events: none;
}

.pulse-post-detail-back-wrap .pulse-post-detail-back {
  pointer-events: auto;
}

.pulse-post-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

body.pulse-page .forum-draft-btn.pulse-post-detail-back {
  font-family: 'Apfel Grotzek', serif;
  font-weight: 400;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse-post-detail-back i {
  font-size: 0.85em;
  opacity: 0.85;
}

.pulse-post-detail-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(5.25rem, calc(2rem + env(safe-area-inset-bottom, 0px))) max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.pulse-post-detail-content {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.pulse-post-detail-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.pulse-post-detail-votes {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.pulse-post-detail-main {
  flex: 1;
  min-width: 0;
}

.pulse-post-detail-title {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  text-transform: none;
}

.pulse-post-detail-sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.pulse-post-detail-sub.pulse-feed-card__head-row {
  align-items: center;
}

.pulse-post-detail-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
}

.pulse-post-detail-body.forum-user-rich {
  word-break: break-word;
}

.pulse-post-detail-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.pulse-post-detail-delete {
  color: #b91c1c;
}

.pulse-post-detail-delete:hover {
  background: rgba(185, 28, 28, 0.1);
}

.pulse-post-detail-comments {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pulse-post-detail-comments-heading {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #111827;
  text-transform: none;
}

body.pulse-page .pulse-post-detail-sub,
body.pulse-page .pulse-feed-card__head,
body.pulse-page .pulse-feed-card__excerpt {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
}

.pulse-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 130;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pulse-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pulse-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  max-width: 640px;
  width: calc(100% - 1.75rem);
  max-height: min(92vh, 52rem);
  overflow-y: auto;
  z-index: 140;
  background: var(--surface-card);
  border: var(--border-green);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pulse-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.pulse-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.pulse-modal-header h2 {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #111;
  margin: 0;
  text-transform: none;
}

body.pulse-page .pulse-modal-header h2 {
  font-weight: 700;
}

.pulse-modal-close {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  color: #444;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pulse-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.pulse-modal-body {
  padding: 1rem 1.25rem 1.35rem;
}

.pulse-modal-body .forum-compose-card {
  border: none;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.settings-modal {
  max-width: 920px;
}

.settings-modal-body {
  padding-top: 0.5rem;
}

.settings-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1rem;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-nav-btn {
  text-align: left;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  color: #374151;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}

.settings-nav-btn.is-active {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
  font-weight: 600;
}

.settings-panel h3 {
  font-family: 'Apfel Grotezk', 'Geist Sans', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.85rem;
}

body.pulse-page .settings-panel h3 {
  font-weight: 700;
}

.settings-field {
  margin-bottom: 0.85rem;
}

.settings-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: #374151;
}

.settings-field input,
.settings-field textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.04);
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 0.92rem;
}

.settings-field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.settings-field input:focus,
.settings-field textarea:focus {
  outline: none;
  background: rgba(34, 197, 94, 0.08);
}

.settings-helper {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: #6b7280;
}

.settings-readonly {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
  color: #4b5563;
  font-size: 0.9rem;
}

.settings-dropzone {
  border: 1px dashed rgba(34, 197, 94, 0.45);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 0.86rem;
  color: #6b7280;
  cursor: pointer;
  background: rgba(34, 197, 94, 0.04);
}

.settings-dropzone.is-dragging {
  background: rgba(34, 197, 94, 0.12);
}

.settings-avatar-preview {
  margin-top: 0.6rem;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.settings-inline-state {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
}

.settings-inline-state.is-success {
  color: #166534;
}

.settings-inline-state.is-error {
  color: #b45309;
}

.settings-inline-state.is-info {
  color: #374151;
}

.settings-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0.9rem 0;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
}

.settings-toggle-row input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
}

.settings-danger-note {
  color: #b45309;
  font-size: 0.86rem;
}

.settings-danger-btn {
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  padding: 0.5rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

.settings-danger-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* SGA hub: walkthrough-first + Pulse showcase */
.sga-hub-mininav {
  margin-bottom: 1.5rem;
}

.sga-hub-hero-walk {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 1rem 1rem 2rem;
  background:
    radial-gradient(ellipse 120% 90% at 50% -30%, rgba(34, 197, 94, 0.12), transparent 55%),
    transparent;
}

.sga-hub-hero-walk .walk-hero-kicker {
  font-size: 0.95rem;
  color: #166534;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sga-hub-hero-walk h1 {
  font-family: 'Apfel Grotzek', serif;
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 400;
  line-height: 1.18;
  color: #111;
  margin-bottom: 1.25rem;
  text-transform: none;
}

.sga-hub-hero-walk .walk-hero-lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: #444;
  line-height: 1.65;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  text-transform: none;
}

.sga-hub-hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.sga-hub-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #22c55e, #15803d);
  color: #fff !important;
  text-decoration: none !important;
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(22, 101, 52, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sga-hub-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(22, 101, 52, 0.38);
}

.sga-hub-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  border: var(--border-green);
  background: var(--surface-card);
  color: #166534 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.sga-hub-secondary-btn:hover {
  background: rgba(34, 197, 94, 0.08);
}

.sga-hub-pulse-product {
  max-width: 960px;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
}

.sga-hub-product-title {
  font-family: 'Apfel Grotzek', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #111;
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: none;
}

.sga-hub-pulse-product > .description {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.hub-pulse-preview-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  min-height: 4rem;
}

.hub-preview-card {
  background: var(--surface-card);
  border: var(--border-green);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.12);
}

.hub-preview-card .hub-preview-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.75rem;
}

.hub-preview-card .hub-preview-body {
  flex: 1;
  min-width: 0;
}

.hub-preview-card .hub-preview-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #166534;
  margin-bottom: 0.25rem;
}

.hub-preview-card .hub-preview-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.hub-preview-card .hub-preview-snippet {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-preview-placeholder {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(34, 197, 94, 0.35);
  border-radius: 18px;
  background: rgba(34, 197, 94, 0.04);
}

.sga-hub-pulse-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.sga-hub-vision-teaser {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  text-align: center;
}

.sga-hub-vision-teaser h2 {
  font-family: 'Geist Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #111;
  text-transform: none;
}

.sga-hub-pillar-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.sga-hub-pillar-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  color: #333;
  text-transform: none;
}

.sga-hub-pillar-list li strong {
  color: #166534;
  font-weight: 600;
}

@media (max-width: 640px) {
  .pulse-top-links {
    display: none;
  }

  .pulse-filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    scrollbar-width: thin;
  }

  .pulse-filter-chip {
    flex-shrink: 0;
  }

  .pulse-modal {
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    transform: translate(0, 0) scale(0.98);
    border-radius: 0;
  }

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

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .settings-nav-btn {
    flex-shrink: 0;
  }

  .pulse-modal.is-open {
    transform: translate(0, 0) scale(1);
  }

  .forum-vote-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .pulse-fab {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.75rem;
  }

  body.pulse-page .pulse-fab {
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .pulse-tour-trigger {
    top: max(4.75rem, env(safe-area-inset-top, 0px));
  }

  body.pulse-page .pulse-tour-trigger {
    top: max(0.85rem, env(safe-area-inset-top, 0px));
  }
}
