:root {
  --bg: #f5efe3;
  --surface: #fff8ef;
  --surface-alt: #efe1cc;
  --text: #1f242a;
  --muted: #6e726d;
  --accent: #17406d;
  --accent-alt: #2b5f93;
  --border: rgba(31, 36, 42, 0.12);
  --shadow: 0 26px 64px rgba(31, 36, 42, 0.12);
  --page-width: 1280px; /* content column; side margins = (screen - this) / 2 */
}

/* Titles / headings — Calisto MT */
h1, h2, h3,
.brand h1,
.hero-copy h2,
.section-header h2,
.feedback-title,
.site-footer h2,
.card h3,
.hero-features h3,
.process-step h3,
.action-cta h3,
.entry-panel h3,
.cta-row h3,
.pool-item h3,
.dialog-header h3,
.reading-subtitle,
.why-pillar h3,
.research-item-title,
.note-name {
  font-family: "Calisto MT", "Book Antiqua", Palatino, "Palatino Linotype", Georgia, serif;
}

* {
  box-sizing: border-box;
}

/* Site-wide text size: one step up from the browser default (16px → 18px); all rem sizes follow */
html {
  font-size: 112.5%;
}

/* Browsers give form controls their own small font (~13px); make them follow the page instead */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

html, body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, rgba(23, 64, 109, 0.08), transparent 28%),
              linear-gradient(135deg, rgba(23, 64, 109, 0.08) 22%, transparent 23%),
              linear-gradient(135deg, transparent 22%, rgba(23, 64, 109, 0.1) 23%, rgba(23, 64, 109, 0.1) 28%, transparent 29%),
              var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Make the document a column so footer stays at the bottom */
body {
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

.action-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.action-button {
  border: none;
  background: #17406d;
  color: #fff;
  padding: 18px 28px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(23, 64, 109, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(23, 64, 109, 0.22);
  background: #0f2d4d;
}

.action-button:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(23, 64, 109, 0.18);
}

/* Large card-style CTA used on the homepage for Inspiration pool */
.action-cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #17406d;
  border: none;
  border-radius: 24px;
  padding: 28px 18px;
  text-decoration: none;
  color: #fff;
  min-width: 260px;
  max-width: 300px;
  box-shadow: 0 20px 36px rgba(23, 64, 109, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.action-cta:hover,
.action-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(23, 64, 109, 0.22);
  background: #0f2d4d;
  text-decoration: none;
  color: #fff;
}

.action-cta:active {
  transform: translateY(2px);
  box-shadow: 0 10px 18px rgba(23, 64, 109, 0.16);
}

.action-cta h3 {
  margin: 0 0 8px;
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.action-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

/* Pool page adjustments: tighten Process spacing and adjust heading sizes */
#process {
  margin-top: 6px;
}

#process .section-header h2,
#posts .section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

#pool-hero .section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.dialog-shell {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(23, 64, 109, 0.10);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.dialog-shell form {
  display: grid;
  gap: 18px;
}

.dialog-shell label {
  font-size: 0.95rem;
  color: var(--text);
}

.dialog-shell input,
.dialog-shell textarea {
  width: 100%;
  border: 1px solid rgba(31, 36, 42, 0.14);
  background: rgba(245, 239, 227, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
}

.dialog-shell input::placeholder,
.dialog-shell textarea::placeholder {
  color: rgba(31, 36, 42, 0.44);
}

.dialog-shell textarea {
  resize: vertical;
  min-height: 160px;
}

.hidden {
  display: none;
}

.contribute-card {
  display: grid;
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(23, 64, 109, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.forum-list,
.pool-list {
  display: grid;
  gap: 18px;
}

.pool-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(23, 64, 109, 0.12);
  border-radius: 22px;
  padding: 22px;
}

.pool-item h3,
.pool-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
}

.dialog-header h3 {
  margin: 0 0 10px;
}

.dialog-header p {
  margin: 0 0 16px;
  color: var(--muted);
}

.word-count,
.input-note,
.form-message {
  font-size: 0.94rem;
  color: var(--muted);
}

.form-message {
  margin-top: 12px;
}

.error {
  color: #b74130;
}

.success {
  color: #2e6643;
}

.site-header {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

body {
  min-height: 100vh;
}

.site-header,
.hero,
.section,
.site-footer {
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

.site-header {
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
  position: relative;
}
.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo-mark.png") center / contain no-repeat;
}
.logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand h1 {
  margin: 0;
  font-size: 1.65rem;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.account-menu { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; margin-left: 4px; }
.account-menu.has-unread::after { content: ""; position: absolute; top: 1px; right: 0; z-index: 2; width: 10px; height: 10px; border: 2px solid var(--bg); border-radius: 50%; background: #e53935; pointer-events: none; }
.account-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }
.account-avatar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar-edit { position: absolute; right: -3px; bottom: -2px; display: grid; width: 19px; height: 19px; place-items: center; padding: 2px; border: 1px solid var(--surface); border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; }
.account-avatar-edit svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-avatar-edit:disabled { opacity: .6; cursor: progress; }
.account-avatar-file { display: none; }
.account-menu-panel { position: absolute; top: calc(100% + 12px); right: 0; z-index: 1000; width: 240px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.account-menu-panel[hidden] { display: none; }
.account-menu-email { overflow: hidden; padding: 10px 12px; color: var(--muted); font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-email-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.account-menu-email-row .account-menu-email { flex: 1 1 auto; }
.account-menu-email-edit { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; padding: 5px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.account-menu-email-edit:hover { background: var(--surface-alt); color: var(--text); }
.account-menu-email-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-menu-email-form { display: grid; gap: 7px; padding: 2px 8px 9px; }
.account-menu-email-form[hidden] { display: none; }
.account-menu-email-form input { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: .85rem; }
.account-menu-email-form button { padding: 8px 9px; border: 0; border-radius: 7px; background: var(--accent); color: #fff; font: inherit; font-size: .82rem; cursor: pointer; }
.account-menu-email-form button:disabled { opacity: .6; cursor: progress; }
.account-menu-email-status { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.account-menu-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .94rem; text-decoration: none; }
.account-menu-panel a.account-menu-contribution { justify-content: space-between; }
.account-menu-item-dot { display: none; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #e53935; }
.account-menu.has-unread .account-menu-item-dot { display: inline-block; }
.account-menu-panel a:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.account-menu-divider { height: 1px; margin: 6px 4px; background: var(--border); }
.account-menu-panel a.account-menu-signout { color: var(--muted); }
.account-menu-signout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-menu.is-uploading .account-avatar { opacity: .6; }

.contribution-page-layout { display: flex; gap: 48px; align-items: flex-start; }
.contribution-page-sidebar { flex: 0 0 180px; display: flex; flex-direction: column; gap: 6px; }
.contribution-page-sidebar a { display: block; padding: 8px 0; color: var(--muted); font-size: 1rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.contribution-page-sidebar a:hover { color: var(--accent); text-decoration: none; }
.contribution-page-sidebar a[aria-current="page"] { color: var(--accent); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contribution-page-content { flex: 1 1 auto; min-width: 0; }
.contribution-page-frame { display: block; width: 100%; height: 72vh; min-height: 540px; border: 0; border-radius: 16px; background: var(--bg); }
html.contribution-embed .site-header, html.contribution-embed .site-footer, html.contribution-embed .section-header, html.contribution-embed .dashboard-layout > .sidebar { display: none !important; }
html.contribution-embed body { min-height: 0; }
html.contribution-embed main { width: 100%; max-width: none; margin: 0; padding: 18px 24px 28px; }
html.contribution-embed .section { margin: 0; padding: 0; }

@media (max-width: 900px) {
  .contribution-page-layout { flex-direction: column; gap: 22px; }
  .contribution-page-sidebar { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .contribution-page-sidebar a { padding: 0; }
  .contribution-page-frame { height: 75vh; min-height: 460px; }
}

.hero {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 24px;
  display: grid;
  gap: 32px;
}

main {
  flex: 1 1 auto;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
}

.cta-button {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 26px;
  color: #fff;
  background: #17406d;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.15s ease;
}

.cta-button:hover {
  background: #0f2d4d;
  box-shadow: 0 8px 18px rgba(23, 64, 109, 0.28);
  text-decoration: none;
  color: #fff;
}

.hero-features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-features article,
.card,
.process-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-features h3,
.card h3,
.process-step h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.section {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.half-width-section {
  display: flex;
  justify-content: flex-start;
}

.half-width-content {
  width: min(560px, 50%);
}

#mission .mission-content,
.half-width-section .half-width-content {
  width: min(560px, 50%);
}

#mission.mission-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.mission-robot-panel {
  flex: 0 0 min(320px, 40%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.robot-stage {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
}

.robot-stage svg {
  width: 100%;
  height: auto;
}

#robot-claw {
  transform-origin: 80px 14px;
  animation: claw-scratch 8s ease-in-out infinite;
}

#robot-sun {
  animation: sun-shift 8s ease-in-out infinite;
}

#sun-rays {
  transform-box: fill-box;
  /* rotation handled by inline SVG animateTransform for consistent SVG-center rotation */
  animation: none;
}

#sun-core {
  animation: none;
}

#robot-eye {
  animation: eye-look 8s ease-in-out infinite;
}

#robot-eye circle {
  transform-origin: 58px 48px;
  animation: eye-blink 8s ease-in-out infinite;
}

/* Robot eye blink animation (CSS): in-place flatten and reopen */
#eye-blink ellipse {
  transform-box: fill-box;
  transform-origin: center;
  /* two quick blinks (0.5s total) then 5s pause → total 5.5s cycle */
  animation: eye-blink-group 5.5s ease-in-out infinite;
}

@keyframes eye-blink-group {
  0%, 100% { transform: scaleY(1); }
  /* first blink */
  1% { transform: scaleY(0.02); }
  4% { transform: scaleY(1); }
  /* second blink */
  6% { transform: scaleY(0.02); }
  9% { transform: scaleY(1); }
}

@keyframes claw-scratch {
  0%, 12% { transform: rotate(0deg); }
  16% { transform: rotate(-18deg); }
  20% { transform: rotate(10deg); }
  24% { transform: rotate(-12deg); }
  28%, 100% { transform: rotate(0deg); }
}

@keyframes eye-look {
  0%, 18%, 45%, 100% { transform: translate(0, 0); }
  20%, 22% { transform: translate(0, -4px); }
  35%, 37% { transform: translate(0, 0); }
  48%, 50% { transform: translate(0, -4px); }
  53%, 55% { transform: translate(0, 0); }
}

@keyframes eye-blink {
  0%, 18%, 25%, 45%, 52%, 72%, 100% { transform: scaleY(1); }
  19%, 20%, 49%, 50%, 73%, 74% { transform: scaleY(0.18); }
}

@keyframes sun-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes sun-shift {
  0%, 20% { transform: translate(0, 0); }
  30%, 40% { transform: translate(-14px, -18px); }
  45%, 100% { transform: translate(-14px, -18px); }
}

@keyframes sun-color {
  0%, 30% { fill: #66d7ff; }
  35%, 100% { fill: #FBE8A6; }
}

@media (max-width: 960px) {
  #mission.mission-split {
    display: block;
  }

  .mission-robot-panel {
    margin-top: 36px;
    flex: 1 1 100%;
  }
}

.half-width-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.activity-link {
  font-weight: 800;
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.alternate {
  background: rgba(255, 255, 255, 0.03);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-header.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-header.section-header-row > div {
  min-width: 0;
}

.section-header.section-header-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 600px;
}

/* make the header row span the content width so the button can sit flush right */
.section-header.section-header-row {
  max-width: none;
  width: 100%;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

/* Make the contribute button longer, keep text on one line, and align to the right */
.section-header.section-header-row .cta-button {
  margin-top: 0;
  margin-left: auto;
  white-space: nowrap;
  padding: 12px 44px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Our work grid */
.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.our-work-grid {
  align-items: stretch;
}

.our-work-grid .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* Make CTAs compact and left-aligned within each Our work card */
.our-work-grid .card .cta-button {
  margin-top: auto;
  padding: 10px 18px;
  display: inline-block;
  white-space: nowrap;
  align-self: flex-start;
}

.our-work-grid .cta-button {
  margin-top: 14px;
}

.process-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.participation-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entry-area {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 34px;
}

.entry-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.entry-panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.entry-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.entry-panel form {
  display: grid;
  gap: 14px;
}

.entry-panel label {
  font-size: 0.95rem;
  color: var(--text);
}

.entry-panel input,
.entry-panel textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
}

.entry-panel input::placeholder,
.entry-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

.entry-panel textarea {
  resize: vertical;
  min-height: 180px;
}

.cta-row {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
}

.empty-pool-note {
  margin: 0;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.cta-row h3 {
  margin: 0 0 8px;
}

.site-footer {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #000;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.site-footer .copyright {
  margin-top: 22px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    padding-top: 12px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Shared centered logo mark */
.logo,
.logo-empty {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: transparent;
}
.admin-theme .logo::before {
  background-image: url("assets/logo-mark-admin.png");
}

/* Shared page search box (same look as seminar notes / activities) */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.search-bar input {
  width: 100%;
  max-width: 520px;
  padding: 12px 18px 12px 44px;
  border: 1px solid rgba(31,36,42,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e726d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-bar input:focus {
  border-color: rgba(23,64,109,0.35);
  box-shadow: 0 0 0 3px rgba(23,64,109,0.08);
}
.search-bar input::placeholder {
  color: rgba(31,36,42,0.4);
}
.no-results {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
  font-size: 0.95rem;
}

/* Make the hidden attribute win over component display rules (search filtering hides cards this way) */
[hidden] {
  display: none !important;
}

/* Enter-to-search dropdown (search-dropdown.js): results list under the search box, 5 visible, scrolls for more */
.sd-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.sd-wrap > input {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.sd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: 100%;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px 0;
  background: #ffffff;
  border: 1px solid rgba(31, 36, 42, 0.14);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(31, 36, 42, 0.16);
  text-align: left;
}
.sd-count {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.sd-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  border-top: 1px solid rgba(31, 36, 42, 0.08);
  font: inherit;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.sd-item:hover,
.sd-item:focus-visible {
  background: rgba(23, 64, 109, 0.06);
  outline: none;
}
.sd-type {
  display: block;
  margin-bottom: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.sd-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}
.sd-snippet {
  display: block;
  margin-top: 3px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.sd-item mark {
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(23, 64, 109, 0.14);
  color: inherit;
}
/* Result picked: the matching card on the page flashes */
.sd-flash {
  animation: sd-flash 1.8s ease-out;
}
@keyframes sd-flash {
  0%, 35% { box-shadow: 0 0 0 3px rgba(23, 64, 109, 0.55); }
  100% { box-shadow: 0 0 0 3px rgba(23, 64, 109, 0); }
}

/* auth.js: signed in but email not verified yet */
.verify-banner {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto 8px;
  padding: 10px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(224, 165, 38, 0.55);
  background: rgba(224, 165, 38, 0.12);
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.verify-banner button {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #17406d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.verify-banner button:disabled { opacity: 0.6; cursor: default; }
