.mems-home {
  --home-ink: #18332f;
  --home-muted: #536761;
  --home-green: #245d4d;
  color: var(--home-ink);
  padding: 2.5rem 0 1rem;
  line-height: 1.65;
}
.mems-home a { color: var(--home-green); }
.mems-home a:focus-visible, .mems-home button:focus-visible {
  outline: 3px solid #c58929;
  outline-offset: 4px;
}
.mems-home .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.75rem;
  border: 1px solid #dbe5df;
  border-radius: 16px;
  background: #eef4f0;
}
.home-hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}
.home-intro { font-size: 1.125rem; color: var(--home-muted); }
.home-hero p:last-child { margin-bottom: 0; }
.home-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.mems-home .btn { border-radius: 7px; padding: .65rem 1rem; white-space: normal; }
.mems-home .btn-primary { background: var(--home-green); border-color: var(--home-green); color: #fff; }
.mems-home .btn-primary:hover { background: #194535; border-color: #194535; }
.mems-home .btn-outline-primary { border-color: var(--home-green); color: var(--home-green); }
.mems-home .btn-outline-primary:hover { background: var(--home-green); color: #fff; }
.home-note { font-size: .875rem; color: var(--home-muted); }
.home-reference { background: #fff; padding: 1.5rem; border-radius: 10px; border-top: 3px solid #c58929; }
.mems-home h2 { font-size: 1.65rem; font-weight: 700; letter-spacing: -.025em; }
.home-reference h2 { font-size: 1.125rem; }
.home-reference p { font-size: .925rem; color: var(--home-muted); }
.home-reference a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.home-section { margin-top: 3rem; }
.home-section-heading { margin-bottom: 1.25rem; }
.home-section-heading p { margin-bottom: 0; color: var(--home-muted); }
.home-resources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-resource {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #fff;
}
.home-resource .eyebrow { color: var(--home-muted); font-size: .7rem; }
.home-resource h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; }
.home-resource p { color: var(--home-muted); font-size: .925rem; }
.home-resource .btn { margin-top: auto; align-self: flex-start; }
.home-resource .home-note { margin-top: .9rem; margin-bottom: 0; font-size: .8rem; min-height: 2.7rem; }
.mems-home #ecus { scroll-margin-top: 1.5rem; }
.mems-home #accordion > .card { margin-bottom: .75rem; border: 1px solid #dbe5df; border-radius: 10px; overflow: hidden; }
.mems-home #accordion .card-header { padding: 0; border: 0; background: #f7f9f7; }
.mems-home #accordion .card-header h3 { margin: 0; font-size: 1rem; }
.mems-home #accordion .card-header button {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  color: var(--home-ink);
  text-decoration: none;
  border-radius: 0;
}
.mems-home #accordion .card-header button:hover { background: #eaf1ec; }
.mems-home #accordion .card-header button:focus-visible { outline-offset: -4px; }
.mems-home #accordion .card-header img {
  order: -1;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  flex-shrink: 0;
}
.home-ecu-title { display: block; font-size: 1.075rem; font-weight: 700; }
.home-ecu-hint { display: block; font-size: .875rem; font-weight: 400; color: var(--home-muted); margin-top: .15rem; }
.mems-home #accordion .card-header button::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--home-green);
}
.mems-home #accordion .card-header button[aria-expanded="true"]::after { content: '\2212'; }
.mems-home #accordion .card-body { padding: 1.5rem; border-top: 1px solid #dbe5df; overflow-wrap: anywhere; }
.mems-home #accordion .card-body img { max-width: 100%; object-fit: contain; }
.mems-home hr { border-color: #dbe5df; }
.home-shop {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: #eef4f0;
}
.home-shop > div { flex: 1; }
.home-shop p:last-child { margin-bottom: 0; color: var(--home-muted); }
.home-shop .btn { flex-shrink: 0; }
.home-more { display: flex; gap: 1.5rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid #dbe5df; }
.home-more a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .mems-home { padding-top: 1.25rem; }
  .home-hero { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.5rem; }
  .home-resources { grid-template-columns: 1fr; }
  .home-section { margin-top: 2rem; }
  .home-shop { flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.25rem; }
  .mems-home #accordion .card-header button { padding: .875rem; gap: .875rem; }
  .mems-home #accordion .card-header img { width: 52px; height: 52px; }
  .mems-home #accordion .card-body { padding: 1rem; }
}
