:root {
  --pink: #d1007a;
  --pink-light: #ff60b3;
  --dark: #070914;
  --gray: #f5f5f5;
  --white: #FDFEF1;
  --text: #070914;
  --title: #d1007a;
  --highlight: #FFAE55;
  --active: #003399; /* replaced invalid #00339 with valid hex */
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Accessibility helper: visually hide elements but keep them accessible to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  font-family: 'Delius', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: 'Galindo', Arial, sans-serif;
  font-weight: 400;
  color: var(--title);
}

.highlight,
h2.highlight,
h3.highlight {
  color: var(--highlight);
}

a {
  text-decoration: none;
  color: var(--title);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus,
a:active,
a:visited {
  color: var(--active);
}

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

.topbar {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem 1.2rem 2.5rem;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--title);
  font-family: 'Galindo', Arial, sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  background: #d1007a;
  color: #fff !important;
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.6em 2.2em;
  border-radius: 1em;
  display: inline-block;
  box-shadow: none;
  border: none;
  margin: 0;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.main-nav a:hover,
.main-nav a:focus {
  background: #b80067;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(209, 0, 122, 0.18);
}

.main-nav a:active,
.main-nav a[aria-current="page"] {
  background: var(--active);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  border: 1px solid #ddd;
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  font-size: 1.2rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: var(--title);
  color: #fff;
  border-color: var(--title);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: 4rem 1rem 3rem;
}

/* Hero image layer (low opacity) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.28; /* low image opacity so gradient shows through */
  z-index: 0;
  transform: scale(1.02);
}

/* Gradient overlay above the image */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(113deg, rgba(209,0,122,0.82), rgba(255,174,85,0.55));
  z-index: 1;
}

.hero .hero-content { position: relative; z-index: 2; }

.hero-content h1,
.hero-content p {
  color: var(--white);
}

.hero-content h1 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1.7rem, 5vw, 3.25rem);
}

.hero-content p {
  margin: 1rem auto 1.7rem;
  max-width: 680px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 44px;
  padding: 0 1.2rem;
  text-transform: uppercase;
  color: var(--white) !important;
}

.btn-primary {
  border: 2px solid var(--title);
  background: var(--title);
  color: var(--white) !important;
}

.btn-outline {
  border: 2px solid var(--title);
  background: var(--title);
  color: var(--white) !important;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  background: var(--active);
  border-color: var(--active);
  color: var(--white) !important;
}

.section-bg {
  background: var(--white);
}

img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
  transform: scale(1.5);
  z-index: 1;
}

section {
  padding: 2.5rem 0;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 1.2rem;
  color: var(--title);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}

.tutorial-main-image {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 210px;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  box-shadow: 0 16px 36px rgba(7, 9, 20, 0.12);
  cursor: zoom-in;
}

.tutorial-step-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.tutorial-step-image {
  flex: 0 1 150px;
  max-width: 180px;
  width: 100%;
  height: 120px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(7, 9, 20, 0.1);
  cursor: zoom-in;
}

.tutorial-main-image:hover,
.tutorial-step-image:hover {
  transform: translateY(-4px) scale(1.75);
  z-index: 2;
}

.tutorial-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tutorial-page-main {
  flex: 1 0 auto;
}

.tutorial-page-footer {
  flex-shrink: 0;
}

.tutorial-article-section {
  padding-top: 2rem;
}

.tutorial-article-shell {
  max-width: 920px;
}

.tutorial-article-kicker {
  margin: 0 0 1.5rem;
  color: var(--title);
  text-align: center;
  font-size: 1.6rem;
  font-family: 'Galindo', Arial, sans-serif;
}

.tutorial-article-title {
  margin: 0 0 0.5rem;
  color: var(--title);
  text-align: center;
}

.tutorial-article-lead,
.tutorial-article-outro {
  margin: 0 auto 1.5rem;
  max-width: 68ch;
  text-align: center;
}

.tutorial-hero-media,
.tutorial-outro-media {
  margin: 0 auto 2rem;
  text-align: center;
}

.tutorial-step-block {
  margin-bottom: 2rem;
}

.tutorial-step-block:last-of-type {
  margin-bottom: 0;
}

.tutorial-step-block .tutorial-step-gallery {
  margin-bottom: 1.5rem;
}

.tutorial-step-list {
  margin: 0 0 2rem;
}

.tutorial-step-list:last-child {
  margin-bottom: 0;
}

.tutorial-step-list li + li {
  margin-top: 0.65rem;
}

.tutorial-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.tutorial-text-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(209, 0, 122, 0.08);
  border-radius: 22px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 16px 32px rgba(7, 9, 20, 0.05);
}

.tutorial-text-card h4 {
  margin: 0 0 0.55rem;
  color: var(--title);
  font-family: 'Galindo', Arial, sans-serif;
  font-weight: 400;
}

.tutorial-text-card p {
  margin: 0;
}

.tutorial-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.card {
  min-height: 170px;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius);
  display: grid;
  place-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.featured-card {
  background: var(--highlight);
}

.center {
  text-align: center;
}

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links a {
  margin-left: 0.75rem;
  color: var(--white) !important;
}

.footer-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-light), var(--title));
  color: #fff !important;
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(209, 0, 122, 0.18);
}

.footer-signup:hover,
.footer-signup:focus,
.footer-signup:active {
  background: linear-gradient(135deg, var(--highlight), var(--title));
  color: #fff !important;
  text-decoration: none;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff !important;
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.footer-action:hover,
.footer-action:focus,
.footer-action:active {
  background: rgba(255, 174, 85, 0.18);
  border-color: var(--highlight);
  color: var(--highlight) !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
  color: var(--highlight) !important;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tutorial-step-image {
    flex-basis: 180px;
    max-width: 180px;
  }

  .tutorial-text-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: sticky;
  }

  .topbar-inner {
    position: relative;
    gap: 0.6rem;
    padding: 0.75rem 0.8rem;
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    z-index: 3;
  }

  .main-nav,
  .topbar .main-nav,
  .resources-nav {
    position: absolute;
    right: 0.8rem;
    top: calc(100% - 0.2rem);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: min(240px, calc(100vw - 1.6rem));
    padding: 0.8rem;
    background: rgba(253, 254, 241, 0.98);
    border: 1px solid rgba(209, 0, 122, 0.12);
    border-radius: 16px;
    box-shadow: 0 18px 30px rgba(7, 9, 20, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.35rem) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-x: visible;
  }

  .nav-toggle:checked ~ .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .main-nav a,
  .resources-nav a {
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    font-size: 0.98rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-step-gallery {
    gap: 1rem;
  }

  .tutorial-step-image {
    flex-basis: 100%;
    max-width: 180px;
    height: 120px;
  }

  .tutorial-article-kicker {
    font-size: 1.35rem;
  }

  .tutorial-page-actions {
    flex-direction: column;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .footer-links a {
    margin-left: 0;
  }
}

.card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.signup-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.signup-hero {
  padding-bottom: 2.5rem;
}

.signup-kicker {
  margin: 0 0 0.9rem;
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-main {
  flex: 1 0 auto;
}

.signup-section {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(255, 174, 85, 0.25), transparent 34%),
    radial-gradient(circle at bottom right, rgba(209, 0, 122, 0.16), transparent 30%),
    var(--white);
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.signup-copy {
  padding: 1rem 0.5rem 0 0;
}

.signup-copy h2 {
  text-align: left;
  margin-bottom: 0.75rem;
}

.signup-copy p {
  margin: 0 0 1.2rem;
  max-width: 42ch;
}

.signup-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.signup-benefits li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(209, 0, 122, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 24px rgba(7, 9, 20, 0.04);
}

.signup-card {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(209, 0, 122, 0.12);
  border: 1px solid rgba(209, 0, 122, 0.08);
}

.signup-card h2 {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.signup-form {
  display: grid;
  gap: 0.85rem;
}

.signup-form label {
  font-family: 'Sour Gummy', Arial, sans-serif;
  color: var(--title);
  font-weight: 600;
}

.signup-field {
  display: grid;
  gap: 0.4rem;
}

.signup-input {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(7, 9, 20, 0.12);
  border-radius: 16px;
  background: #fffaf4;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.signup-input:focus {
  outline: 2px solid rgba(209, 0, 122, 0.22);
  border-color: var(--title);
  box-shadow: 0 0 0 6px rgba(209, 0, 122, 0.08);
  transform: translateY(-1px);
}

.signup-input:valid:not(:placeholder-shown) {
  border-color: #159947;
}

.signup-input:invalid:not(:placeholder-shown) {
  border-color: #cc2f5d;
}

.signup-hint,
.signup-feedback {
  margin: 0;
  font-size: 0.92rem;
}

.signup-hint {
  color: rgba(7, 9, 20, 0.68);
}

.signup-feedback {
  display: none;
}

.signup-feedback-valid {
  color: #159947;
}

.signup-feedback-invalid {
  color: #cc2f5d;
}

.signup-input:valid:not(:placeholder-shown) ~ .signup-feedback-valid {
  display: block;
}

.signup-input:invalid:not(:placeholder-shown) ~ .signup-feedback-invalid {
  display: block;
}

.signup-choices {
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
}

.signup-choices legend {
  margin-bottom: 0.75rem;
  font-family: 'Sour Gummy', Arial, sans-serif;
  color: var(--title);
  font-weight: 600;
}

.signup-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.signup-choice {
  display: block;
}

.signup-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.signup-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(7, 9, 20, 0.12);
  background: #fffaf4;
  color: var(--text);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-choice:hover span,
.signup-choice input:focus + span {
  border-color: var(--title);
  box-shadow: 0 10px 20px rgba(209, 0, 122, 0.08);
  transform: translateY(-1px);
}

.signup-choice input:checked + span {
  background: linear-gradient(135deg, rgba(209, 0, 122, 0.12), rgba(255, 96, 179, 0.18));
  border-color: var(--title);
  color: var(--title);
  box-shadow: 0 12px 24px rgba(209, 0, 122, 0.1);
}

.signup-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-family: 'Delius', Arial, sans-serif;
  color: var(--text);
}

.signup-check input {
  margin-top: 0.2rem;
  accent-color: var(--title);
}

.signup-check-required {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(7, 9, 20, 0.1);
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.9);
}

.signup-check-required input:required {
  box-shadow: none;
}

.signup-check-required input:required + span {
  transition: color 0.2s ease;
}

.signup-check-required input:invalid + span {
  color: #cc2f5d;
}

.signup-check-required input:checked + span {
  color: var(--text);
}

.signup-submit {
  margin-top: 0.5rem;
  min-height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--title), var(--pink-light));
  color: #fff;
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.signup-submit:hover,
.signup-submit:focus {
  background: linear-gradient(135deg, #b80067, var(--title));
}

.signup-login {
  margin: 1rem 0 0;
  text-align: center;
}

.signup-login a {
  font-weight: 700;
}

.guide-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.guide-main {
  flex: 1 0 auto;
}

.guide-section {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(255, 174, 85, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(209, 0, 122, 0.12), transparent 32%),
    var(--white);
}

.guide-shell {
  max-width: 1080px;
}

.guide-intro,
.guide-note {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 0, 122, 0.08);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 30px rgba(7, 9, 20, 0.05);
}

.guide-intro {
  margin-bottom: 1.5rem;
}

.guide-kicker {
  margin: 0 0 0.55rem;
  color: var(--title);
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-intro h2,
.guide-note h2 {
  text-align: left;
  margin: 0 0 0.7rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.guide-intro p,
.guide-note p {
  margin: 0;
  max-width: 72ch;
}

.guide-grid {
  display: grid;
  gap: 1.5rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fff;
  border-radius: 28px;
  padding: 1.5rem;
  border: 1px solid rgba(209, 0, 122, 0.08);
  box-shadow: 0 20px 36px rgba(7, 9, 20, 0.06);
}

.guide-card-copy {
  width: 100%;
}

.guide-card-header {
  margin-bottom: 0.9rem;
}

.guide-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(209, 0, 122, 0.12), rgba(255, 174, 85, 0.2));
  color: var(--title);
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

.guide-card p {
  margin: 0 0 1rem;
}

.guide-list {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-list li + li {
  margin-top: 0.55rem;
}

.guide-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 220px));
  gap: 0.8rem;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
}

.guide-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fffaf4;
  border: 1px solid rgba(209, 0, 122, 0.08);
  box-shadow: 0 12px 24px rgba(7, 9, 20, 0.05);
}

.guide-gallery-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.guide-gallery-item figcaption {
  padding: 0.8rem 0.9rem 0.95rem;
  color: var(--title);
  font-family: 'Sour Gummy', Arial, sans-serif;
  text-align: center;
}

.guide-note {
  margin: 1.5rem auto 0;
  max-width: 760px;
  text-align: center;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.15rem;
  justify-content: center;
}

.guide-note h2 {
  text-align: center;
}

.guide-note p {
  margin: 0 auto;
}

.resources-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.resources-page .topbar {
  position: static;
  box-shadow: 0 1px 6px rgba(7, 9, 20, 0.05);
}

.resources-page .topbar-inner {
  min-height: 70px;
  padding: 0.85rem 1.25rem;
}

.resources-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.resources-brandmark {
  width: min(340px, 46vw);
  height: auto;
  display: block;
}

.resources-nav {
  gap: 0.85rem;
}

.resources-nav a {
  padding: 0.52rem 1.35rem;
  font-size: 0.98rem;
  border-radius: 0.9rem;
  box-shadow: 0 8px 16px rgba(209, 0, 122, 0.08);
}

.resources-main {
  flex: 1 0 auto;
}

.resources-map-hero {
  width: 100%;
  background: #d9edf7;
  border-bottom: 1px solid rgba(7, 9, 20, 0.08);
}

.resources-section {
  padding: 1.8rem 0 3.2rem;
  background: var(--white);
}

.resources-shell {
  max-width: 1080px;
}

.resources-title {
  text-align: left;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  margin: 0 0 1rem;
}

.resource-location-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 24px rgba(7, 9, 20, 0.05);
  border: 1px solid rgba(209, 0, 122, 0.08);
  margin-bottom: 1.5rem;
}

.resource-map-frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.resource-location-bar p {
  margin: 0;
}

.resource-map-label {
  font-family: 'Sour Gummy', Arial, sans-serif;
  color: var(--title);
}

.resource-location-bar a {
  font-family: 'Sour Gummy', Arial, sans-serif;
  font-weight: 700;
}

.resource-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.resource-figure,
.resource-gallery-item {
  margin: 0;
}

.resource-figure {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(7, 9, 20, 0.06);
}

.resource-figure img {
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.resource-figure figcaption {
  padding: 0.9rem 1rem 1rem;
  font-family: 'Sour Gummy', Arial, sans-serif;
  color: var(--title);
  text-align: center;
}

.resource-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.resource-gallery-item {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(7, 9, 20, 0.06);
}

.resource-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.resource-body-section {
  margin-top: 1.5rem;
  padding: 1.4rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(7, 9, 20, 0.05);
  border: 1px solid rgba(209, 0, 122, 0.08);
}

.resource-body-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  text-align: left;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.resource-body-section p {
  margin: 0 0 0.9rem;
  max-width: 70ch;
}

.resource-body-section p:last-child {
  margin-bottom: 0;
}

/* Mobile-styles to match the provided mockup */
@media (max-width: 480px) {
  /* Topbar: circular brand on the left, tagline + pill nav centered */
  .topbar {
    padding: 10px 0;
    background: #fff;
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }

  .topbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 1rem;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffe9c9; /* pale peach */
    display: inline-block;
    object-fit: cover;
    box-shadow: 0 2px 0 rgba(0,0,0,0.06);
    border: 6px solid #ffd58d;
  }

  .brand-text { display:none; }

  .main-nav a {
    display: inline-block;
    background: linear-gradient(180deg,#ff61b3,#ff3d9c);
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(209,0,122,0.08);
    font-size: 0.92rem;
  }

  /* Page heading centered and bold pink */
  .signup-copy {
    text-align: center;
    padding-top: 18px;
  }

  .signup-copy h1 {
    color: #ff3d9c;
    font-family: 'Sour Gummy', Arial, sans-serif;
    font-size: 2rem;
    margin: 8px 0 18px;
  }

  .signup-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .signup-copy {
    text-align: center;
    padding-top: 18px;
    padding-right: 0;
  }

  .signup-copy h2,
  .signup-copy p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .signup-benefits {
    text-align: left;
  }

  .signup-choice-grid {
    grid-template-columns: 1fr;
  }

  .resources-title {
    font-size: 1.75rem;
    text-align: left;
  }

  .resources-page .topbar-inner {
    min-height: 64px;
    padding: 0.75rem 1rem;
  }

  .resources-brandmark {
    width: min(260px, 62vw);
  }

  .resources-nav {
    gap: 0.55rem;
  }

  .resources-nav a {
    padding: 0.48rem 0.9rem;
    font-size: 0.9rem;
  }

  .resource-map-frame {
    height: 250px;
  }

  .resource-feature-grid,
  .resource-gallery {
    grid-template-columns: 1fr;
  }

  .signup-card {
    padding: 1.25rem 1rem 96px;
  }

  /* Labels and inputs: pink labels, peach inputs */
  .signup-form label { display:block; margin-bottom:6px; color:#ff3d9c; font-weight:700; font-size:0.92rem; }
  .signup-input {
    background: #ffe9c9;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 40px;
    box-shadow: none;
    color: #070914;
    font-size: 0.96rem;
    width: 100%;
  }

  textarea.signup-input { min-height: 120px; }

  .signup-submit {
    background: linear-gradient(180deg,#ff61b3,#ff3d9c);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    margin-top: 6px;
    width: 100%;
  }

  /* Footer bar pinned to bottom */
  .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: linear-gradient(90deg,#ff3d9c,#ff61b3);
    color: #fff;
    padding: 10px 14px;
    box-shadow: 0 -6px 20px rgba(209,0,122,0.12);
  }

  .footer-inner {
    display:flex;
    align-items:center;
    gap:12px;
    justify-content:space-between;
  }

  .footer .brand-logo {
    width:34px;
    height:34px;
    border-radius:50%;
    border-width:4px;
  }

  .footer-links { display:flex; gap:12px; align-items:center; }
  .footer a { color: #fff; text-decoration:none; font-weight:700; }

  /* Slight spacing for body content so footer doesn't overlap inputs */
  body { padding-bottom: 98px; }
}

/* Screen <= 320px: CSS-only hamburger menu using checkbox hack */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 320px) {
  .main-nav { display: flex; position: absolute; right: 8px; top: 64px; background: var(--white); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); padding: 8px; flex-direction: column; width: 200px; opacity: 0; pointer-events: none; transform: translateY(-4px); }
  .main-nav a { display: block; padding: 10px 12px; margin: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; padding: 6px 9px; border-radius: 8px; border: 1px solid #eee; background: var(--white); cursor: pointer; }
  /* When the hidden checkbox is checked, show the nav */
  .nav-toggle:checked + .menu-toggle + .main-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  /* ensure brand fits */
  .topbar-inner { padding: 8px 10px; }
}

.card a:hover,
.card a:focus {
  box-shadow: 0 4px 18px rgba(0, 51, 153, 0.18);
  background: var(--active);
  transform: translateY(-3px) scale(1.03);
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.5em;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.card span {
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Additional responsive rules for tablet and mobile */
@media (max-width: 1024px) {
  .container { width: min(1000px, 100% - 2rem); }
  .hero { padding: 3.2rem 1rem 2.5rem; }
  .hero .hero-content h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
  .main-nav a { padding: 0.55rem 1.2rem; font-size: 1rem; }
  .brand-text { font-size: 1.6rem; }
}

@media (max-width: 900px) {
  .topbar-inner { padding: 0.9rem 1rem; }
  .brand-text { font-size: 1.4rem; }
  .hero { padding: 2.6rem 0 1.8rem; }
  .hero .hero-content h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .card-grid { gap: 0.8rem; }
  .card { min-height: 140px; }
  .btn { min-height: 40px; padding: 0 0.9rem; }
  .guide-card {
    grid-template-columns: 1fr;
  }
  .guide-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resource-feature-grid,
  .resource-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-map-frame {
    height: 300px;
  }
}

@media (max-width: 680px) {
  .topbar-inner { padding: 0.6rem 0.8rem; }
  .brand-logo { height: 44px; }
  .brand-text { display:none; }
  .main-nav {
    position: relative;
    background: transparent;
    border: none;
    width: 100%;
    padding: 0.5rem 0;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
  }
  .main-nav a { padding: 0.45rem 0.85rem; font-size: 0.95rem; }
  .hero { padding: 2rem 0 1.2rem; }
  .hero .hero-content h1 { font-size: 1.6rem; }
  .hero .hero-content p { font-size: 0.98rem; max-width: 40rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 120px; border-radius: 14px; }
  .card img { width: 64px; height: 64px; }
  .guide-section { padding: 2rem 0 3rem; }
  .guide-intro,
  .guide-note,
  .guide-card { padding: 1.15rem; border-radius: 22px; }
  .guide-gallery { grid-template-columns: 1fr; }
  .guide-gallery-item img { height: 240px; }
  .guide-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }

  .resources-page .topbar-inner {
    min-height: 60px;
    padding: 0.7rem 0.8rem;
  }

  .resources-brandmark {
    width: min(220px, 64vw);
  }
}

@media (max-width: 480px) {
  html, body { font-size: 15px; }
  .container { width: calc(100% - 1rem); }
  .hero { padding: 1.8rem 0 1rem; }
  .hero .hero-content h1 { font-size: 1.45rem; line-height: 1.05; }
  .hero .hero-content p { font-size: 0.95rem; }
  .main-nav a { padding: 0.5rem 0.85rem; font-size: 0.9rem; }
  .card { min-height: 100px; }
  .card span { font-size: 1rem; }
  .brand-logo { width: 52px; height: 52px; }
  .btn { font-size: 0.92rem; padding: 0.5rem 0.9rem; }
  body { padding-bottom: 90px; }
}

/* make images responsive and fluid */
img { max-width: 100%; height: auto; display: block; }
