/* Open Circuit YYC: styles
   Calm, pastel, type-led layout. Brand: burgundy #5C061C, blush #E2858E, cream #FAF8F5. */

:root {
  --bg: #faf8f5;
  --surface: #f3f0eb;
  --surface-2: #ebe6e0;
  --white: #ffffff;
  --line: #e6e0d9;
  --line-strong: #d8d0c7;
  --line-burg: rgba(92, 6, 28, 0.1);

  --ink: #1a1a1a;
  --ink-2: #3a3532;
  --muted: #716a64;
  --faint: #a39b94;

  --burgundy: #5c061c;
  --burgundy-h: #45040f;
  --blush: #e2858e;
  --blush-50: #fcf2f3;
  --blush-100: #f8e2e5;

  --p-blush: #f7dde1;
  --p-peach: #fbe6d7;
  --p-butter: #f7eed0;
  --p-mint: #dcede1;
  --p-sky: #dfe9f4;
  --p-lilac: #e9e3f4;

  --ok: #24704b;
  --ok-bg: #e2f1e8;
  --info: #2c5687;
  --info-bg: #e4ecf6;
  --warn: #8a5600;
  --warn-bg: #fbefd8;
  --bad: #9b1c2c;
  --bad-bg: #fbe6e8;

  --shadow-soft: 0 1px 2px rgba(92, 6, 28, 0.04), 0 6px 20px -8px rgba(60, 30, 20, 0.08);
  --shadow-pop: 0 2px 6px rgba(26, 26, 26, 0.04), 0 24px 60px -16px rgba(60, 30, 20, 0.22);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;

  --font: "Switzer", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1216px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.45em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

h2,
.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
}

h3,
.h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.2em;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--burgundy);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  top: 1rem;
}

#main:focus,
h1:focus {
  outline: none;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}

.lead strong {
  color: var(--ink);
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.center {
  text-align: center;
}

.soft {
  color: var(--faint);
}

/* ---------- Layout primitives ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem;
}

.label {
  margin: 0;
  padding-top: 0.55rem;
  max-width: 25ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}

.label strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .label {
    padding-top: 0;
    max-width: 40ch;
  }
}

.section {
  padding-top: clamp(4.5rem, 10vw, 8rem);
}

.section-end {
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}

.intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.intro .lead {
  margin-bottom: 1.25rem;
}

.stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.75rem;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.pill-group {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 13px;
  background: rgba(240, 236, 231, 0.82);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.brand {
  gap: 0.55rem;
  padding: 5px 0.9rem 5px 5px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: auto;
  height: 30px;
  padding: 3px;
  background: var(--white);
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
}

.brand-yyc {
  color: var(--blush);
}

.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
}

.site-nav a.nav-cta {
  background: var(--burgundy);
  color: #fff;
  margin-left: 4px;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
  background: var(--burgundy-h);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--ink);
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  gap: 0.6rem;
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-icon::before {
  top: 1px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(320px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-pop);
  }

  .site-nav.open {
    display: flex;
    animation: drop 0.18s var(--ease);
  }

  .site-nav a {
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
  }

  .site-nav a[aria-current="page"] {
    background: var(--surface);
    box-shadow: none;
  }

  .site-nav a.nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--r-sm);
  border: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn .arr {
  font-size: 0.95em;
  transition: transform 0.2s var(--ease);
}

.btn:hover .arr {
  transform: translate(2px, 2px);
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--burgundy-h);
  color: #fff;
}

.btn-soft {
  background: var(--surface-2);
  color: var(--ink);
}

.btn-soft:hover:not(:disabled) {
  background: #e3ddd5;
  color: var(--ink);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-white:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

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

.btn-sm {
  min-height: 34px;
  padding: 0 0.8rem;
  font-size: 0.86rem;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.arrow-link span {
  transition: transform 0.2s var(--ease);
}

.arrow-link:hover {
  color: var(--burgundy);
}

.arrow-link:hover span {
  transform: translate(2px, 2px);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--ink);
}

/* ---------- Hero & illustration ---------- */

.hero {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero .lead {
  margin-bottom: 1.75rem;
}

.scene {
  overflow: hidden;
}

.scene img {
  width: max(100%, 780px);
  max-width: 1200px;
  height: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.scene::after {
  content: "";
  display: block;
  height: 20px;
  border-top: 1.6px solid #2b2523;
  background:
    radial-gradient(circle at 6px 10px, #d9d0c6 1.3px, transparent 1.6px) 0 0 / 12px 20px,
    #f0ebe5;
}

/* ---------- Tiles, cards & frames ---------- */

.tile {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--r);
}

.tile h3 {
  margin-bottom: 0.35rem;
}

.tile p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tile .arrow-link {
  margin-top: auto;
  font-size: 0.95rem;
}

.big {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: auto 0 1.25rem !important;
  padding-top: 1.5rem;
}

.big strong {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.big span {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1080px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.tile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .tile-row {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line-burg);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}

.pad {
  padding: 1.5rem;
}

.pad-lg {
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.frame {
  padding: clamp(0.75rem, 2.4vw, 2rem);
  background: var(--surface);
  border-radius: var(--r-lg);
}

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--white);
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.tag-blush {
  background: var(--blush-50);
  color: var(--burgundy);
}

/* ---------- Mission, partners, FAQ, CTA ---------- */

.statement {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--faint);
  margin-bottom: 1.5rem;
}

.statement span {
  color: var(--ink);
}

.mission-line {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--p-blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C061C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}

@media (max-width: 560px) {
  .checklist {
    grid-template-columns: 1fr;
  }
}

.rows {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.row-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.row-link small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.row-link strong {
  font-weight: 500;
}

.row-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--burgundy);
  background: var(--p-blush);
}

.row-link:nth-child(2n) .row-mark {
  background: var(--p-sky);
  color: #2c4a6e;
}

.row-arrow {
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.row-link:hover {
  color: var(--ink);
}

.row-link:hover .row-arrow {
  color: var(--burgundy);
  transform: translate(2px, -2px);
}

.faq {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.04rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1.5px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: -0.25rem 0 1.25rem;
  padding: 0 0.25rem;
  color: var(--muted);
  max-width: 62ch;
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  margin-top: clamp(4.5rem, 10vw, 8rem);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(520px 260px at 0% 0%, var(--p-butter), transparent 70%),
    radial-gradient(520px 300px at 100% 100%, var(--p-lilac), transparent 70%),
    var(--p-blush);
}

.cta h2 {
  margin-bottom: 0.3rem;
}

.cta p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Page heads ---------- */

.page-head {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
}

.page-head h1 {
  margin-bottom: 0.3em;
}

.page-head .lead {
  margin: 0;
}

/* ---------- Badges & status ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge-borrow {
  background: var(--blush-50);
  color: var(--burgundy);
  box-shadow: inset 0 0 0 1px var(--blush-100);
}

.badge-keep {
  background: var(--p-mint);
  color: #1f5a3c;
}

.badge-soft {
  background: var(--surface);
  color: var(--muted);
}

.status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.status-pending {
  background: var(--warn-bg);
  color: var(--warn);
}

.status-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.status-info {
  background: var(--info-bg);
  color: var(--info);
}

.status-bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.status-muted {
  background: var(--surface);
  color: var(--muted);
}

/* ---------- Gear ---------- */

.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.rules > div {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border-radius: 14px;
}

.rules dt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.rules dd {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .rules {
    grid-template-columns: 1fr;
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.toolbar #gear-search {
  flex: 1 1 220px;
}

.toolbar #gear-category {
  flex: 0 1 230px;
}

.seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--surface);
  border-radius: 12px;
}

.seg button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.95rem;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
}

.seg button:hover {
  color: var(--ink);
}

.seg button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
}

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

.gear-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gear-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}

.gear-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  margin: 6px 6px 0;
  border-radius: 13px;
  color: var(--ink);
  background: var(--p-blush);
}

.gear-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.gear-icon {
  width: 54px;
  height: 54px;
  stroke-width: 1.4;
}

.tint-coding {
  background: var(--p-sky);
}

.tint-robotics {
  background: var(--p-lilac);
}

.tint-environment {
  background: var(--p-mint);
}

.tint-tools {
  background: var(--p-peach);
}

.tint-art {
  background: var(--p-butter);
}

.gear-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.2rem;
}

.gear-body h3 {
  font-size: 1.06rem;
  margin-bottom: 0.3rem;
}

.gear-body p {
  flex: 1;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.meta div {
  display: flex;
  gap: 0.35rem;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-weight: 500;
}

.gear-card .btn:not(:disabled):hover {
  background: var(--burgundy);
  color: #fff;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
}

.empty p {
  margin-bottom: 1rem;
}

/* ---------- Workshops ---------- */

.workshop {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  overflow: hidden;
}

.workshop-main {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.workshop-main h3 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.workshop-main > p {
  color: var(--muted);
  max-width: 58ch;
}

.ws-agenda {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
}

.ws-agenda li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.ws-agenda li::before {
  content: "0" counter(step);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  padding-top: 0.1rem;
}

.workshop-side {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background:
    radial-gradient(380px 220px at 100% 0%, var(--p-blush), transparent 70%),
    radial-gradient(300px 260px at 0% 100%, var(--p-butter), transparent 70%),
    var(--blush-50);
  border-left: 1px solid var(--line-burg);
}

.ws-facts {
  margin: 0;
}

.ws-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(92, 6, 28, 0.1);
  font-size: 0.95rem;
}

.ws-facts > div:first-child {
  padding-top: 0;
}

.ws-facts dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.ws-facts dt .icon {
  width: 17px;
  height: 17px;
  color: var(--burgundy);
}

.ws-facts dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.ws-extra {
  margin-top: 1.5rem;
}

.ws-extra p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.ws-ok {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--r-sm);
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 500;
}

@media (max-width: 820px) {
  .workshop {
    grid-template-columns: 1fr;
  }

  .workshop-side {
    border-left: 0;
    border-top: 1px solid var(--line-burg);
  }
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.form-row:has(> :only-child) {
  grid-template-columns: 1fr;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > span,
.field > legend {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}

.field > legend {
  margin-bottom: 0.5rem;
}

.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--faint);
}

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

.input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder {
  color: var(--faint);
}

.input:hover {
  border-color: #c7bdb2;
}

.input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(226, 133, 142, 0.3);
}

textarea.input {
  resize: vertical;
}

select.input {
  appearance: none;
  padding-right: 2.2rem;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23716a64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.75rem center / 16px no-repeat;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  background: var(--surface);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.checks label:hover {
  background: var(--surface-2);
}

.checks label:has(input:checked) {
  background: var(--blush-50);
  box-shadow: inset 0 0 0 1px var(--blush);
  color: var(--burgundy);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  margin-top: 0.25rem;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--burgundy);
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: var(--blush-50);
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.5;
}

.notice::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 0 4px rgba(226, 133, 142, 0.25);
}

.involved {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.involved .card h2 {
  margin-bottom: 0.3rem;
}

@media (max-width: 900px) {
  .involved {
    grid-template-columns: 1fr;
  }
}

/* ---------- Account ---------- */

#admin-root > * + * {
  margin-top: 1rem;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 860px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.account-grid .form {
  margin-top: 1.25rem;
}

.role-pick {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.role-pick legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
}

.role-opt {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.role-opt:has(input:checked) {
  background: var(--blush-50);
  box-shadow: inset 0 0 0 1.5px var(--burgundy);
}

.role-opt input {
  margin-top: 0.2rem;
}

.role-opt strong {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
}

.role-opt small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .role-pick {
    grid-template-columns: 1fr;
  }
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.side-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-head h2 {
  margin-bottom: 0.15rem;
}

.dash-title {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.dash-head p {
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat {
  display: grid;
  gap: 0.2rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border-radius: var(--r);
}

.stat strong {
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.panel-head h3 {
  margin: 0;
}

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  max-width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border-radius: 12px;
}

.tabs button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9px;
  cursor: pointer;
  color: var(--muted);
}

.tabs button:hover {
  color: var(--ink);
}

.tabs button[aria-selected="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
}

.tabs .count {
  font-size: 0.75rem;
  min-width: 1.4rem;
  text-align: center;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: var(--surface-2);
}

.tabs button[aria-selected="true"] .count {
  background: var(--blush-100);
  color: var(--burgundy);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.8rem 0.95rem;
  vertical-align: top;
}

th {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td strong {
  font-weight: 500;
}

tbody tr + tr td {
  border-top: 1px solid var(--line);
}

tbody tr:hover td {
  background: #fdfcfa;
}

td.actions {
  white-space: nowrap;
  text-align: right;
}

td.actions .btn + .btn {
  margin-left: 0.3rem;
}

/* ---------- Modal ---------- */

dialog {
  width: min(100% - 2rem, 600px);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--line-burg);
}

dialog::backdrop {
  background: rgba(40, 30, 26, 0.32);
  backdrop-filter: blur(3px);
}

dialog[open] {
  animation: pop 0.22s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.modal-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.5rem 0.4rem;
}

.modal-head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin: 0.25rem 0 0;
}

.modal-body {
  display: grid;
  gap: 1rem;
  padding: 0.5rem 1.5rem 1.25rem;
  overflow-y: auto;
}

.modal-body p {
  margin: 0;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 200;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 1.15rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  transform: translate(-50%, 160%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s var(--ease), visibility 0.3s;
}

.toast.show {
  transform: translate(-50%, 0);
  visibility: visible;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 2rem;
}

.brand-plain {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 0.85rem;
  max-width: 30ch;
}

.footer-col {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-col h2 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.footer-col a,
.footer-col span {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--burgundy);
}

.socials {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 9px;
  background: var(--surface);
}

.socials a:hover {
  background: var(--surface-2);
}

.socials .icon {
  width: 17px;
  height: 17px;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.87rem;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ---------- Submission states ---------- */

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-error {
  margin: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 0.9rem;
}

.success {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  padding: 0.5rem 0 0.25rem;
}

.success h3 {
  margin: 0.4rem 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.success p {
  margin: 0;
  color: var(--muted);
}

.success-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: var(--ok-bg);
  color: var(--ok);
}

#volunteer-done .success {
  padding: 1rem 0;
}

.input-sm {
  min-height: 34px;
  min-width: 11rem;
  padding: 0.3rem 2rem 0.3rem 0.6rem;
  font-size: 0.86rem;
}

.skeleton {
  pointer-events: none;
}

.skeleton .gear-media {
  background: var(--surface);
}

.skeleton .gear-body span {
  display: block;
  height: 0.8rem;
  margin-bottom: 0.6rem;
  border-radius: 6px;
  background: var(--surface);
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton .gear-body span:nth-child(1) {
  width: 40%;
}

.skeleton .gear-body span:nth-child(2) {
  width: 80%;
}

.skeleton .gear-body span:nth-child(3) {
  width: 65%;
}

@keyframes shimmer {
  50% {
    opacity: 0.45;
  }
}

/* Privacy notice */
.policy {
  max-width: 46rem;
}
.policy h2 {
  margin-top: 1.75rem;
}
.policy ul {
  padding-left: 1.2rem;
}
.policy li + li {
  margin-top: 0.5rem;
}
