:root {
  --green: #007a4d;
  --green-dark: #005f3c;
  --green-soft: #e9f7f0;
  --blue: #0877bd;
  --blue-soft: #eaf6fc;
  --sand: #fbf8f1;
  --cream: #fffdf7;
  --white: #ffffff;
  --ink: #21312b;
  --muted: #64736d;
  --line: #d7e5dc;
  --shadow: 0 18px 50px rgba(17, 70, 49, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: #fff; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215,229,220,.9);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.header-inner { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: max-content; }
.brand img { width: 48px; height: 48px; }
.brand span { display: grid; line-height: 1; }
.brand strong { color: var(--green); font-family: Georgia, serif; font-size: 1.15rem; }
.brand small { color: var(--blue); font-weight: 800; font-size: .84rem; margin-top: 4px; }
.main-nav { display: flex; justify-content: center; align-items: center; gap: 8px; }
.nav-link { position: relative; padding: 12px 11px; border-radius: 999px; text-decoration: none; color: #35433e; font-size: .91rem; }
.nav-link:hover, .nav-link.is-active { color: var(--green); background: var(--green-soft); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.header-cta, .button-primary { color: white; background: var(--green); box-shadow: 0 10px 24px rgba(0,122,77,.18); }
.header-cta:hover, .button-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.button-secondary { background: white; color: var(--green); border: 1px solid var(--line); }
.button-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--green-dark); margin: 5px 0; }

.hero { position: relative; min-height: 590px; overflow: hidden; background: #073c2b; }
.hero-slider { min-height: 590px; position: relative; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease; display: grid; align-items: end; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,31,22,.82), rgba(1,31,22,.28) 58%, rgba(1,31,22,.08)), linear-gradient(0deg, rgba(0,0,0,.44), transparent 55%); }
.hero-copy { position: relative; z-index: 2; color: white; padding: 90px 0 94px; max-width: 760px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: #d7f8e8; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 99px; background: #8ce1bd; }
.hero h1 { font-family: Georgia, serif; font-size: clamp(2.9rem, 6vw, 5.6rem); line-height: .97; margin: 18px 0; max-width: 850px; text-wrap: balance; }
.hero p { font-size: clamp(1rem, 2vw, 1.22rem); max-width: 670px; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button-secondary { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.34); backdrop-filter: blur(8px); }
.hero-controls { position: absolute; z-index: 4; bottom: 24px; right: max(16px, calc((100vw - var(--container))/2)); display: flex; gap: 8px; }
.hero-dot { width: 13px; height: 13px; border: 2px solid white; border-radius: 99px; background: transparent; cursor: pointer; padding: 0; }
.hero-dot.is-active { width: 38px; background: white; }

.section { padding: 88px 0; }
.section-soft { background: var(--sand); }
.section-green { color: white; background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading h2, .page-hero h1, .feature-copy h2, .story-card h2 { font-family: Georgia, serif; color: var(--green-dark); font-size: clamp(2.15rem, 4vw, 3.7rem); line-height: 1.08; margin: 8px 0 12px; text-wrap: balance; }
.section-green .section-heading h2 { color: white; }
.section-heading p { color: var(--muted); margin: 0; }
.section-green .section-heading p { color: rgba(255,255,255,.82); }

.community-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.community-card { min-height: 145px; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; text-decoration: none; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.community-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #b8d9c8; }
.community-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 900; }
.community-card h3 { font-family: Georgia, serif; color: var(--green-dark); margin: 1px 0 2px; font-size: 1.2rem; }
.community-card p { color: var(--muted); font-size: .84rem; margin: 0; line-height: 1.4; }
.community-arrow { color: var(--green); font-weight: 900; }

.feature-stack { display: grid; gap: 30px; }
.feature-row { display: grid; grid-template-columns: 1fr 1.35fr; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); }
.feature-row:nth-child(even) { grid-template-columns: 1.35fr 1fr; }
.feature-row:nth-child(even) .feature-image { order: 2; }
.feature-image { min-height: 360px; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(32px,5vw,64px); display: flex; flex-direction: column; justify-content: center; background: var(--green); color: white; }
.feature-row:nth-child(even) .feature-copy { background: var(--blue); }
.feature-copy h2 { color: white; margin-top: 0; }
.feature-copy p { color: rgba(255,255,255,.9); }
.feature-copy a { width: fit-content; margin-top: 12px; color: white; font-weight: 900; text-underline-offset: 5px; }

.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stat-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 26px; border-radius: 18px; }
.stat-card strong { display: block; font-family: Georgia,serif; font-size: 2.4rem; }
.stat-card span { color: rgba(255,255,255,.82); }

.page-hero { padding: 90px 0 65px; background: linear-gradient(135deg, #f2fbf6, #eaf6fc); border-bottom: 1px solid var(--line); }
.page-hero .breadcrumbs { color: var(--muted); font-size: .9rem; }
.page-hero .breadcrumbs a { color: var(--green); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.08rem; }

.timeline { position: relative; display: grid; gap: 24px; margin-top: 40px; }
.timeline::before { content:""; position:absolute; left: 21px; top: 0; bottom:0; width:3px; background: var(--line); }
.timeline-item { position: relative; padding-left: 70px; }
.timeline-dot { position:absolute; left: 5px; top: 4px; width: 35px; height:35px; border-radius:50%; background: var(--green); border: 7px solid var(--green-soft); }
.timeline-item h3 { margin: 0 0 7px; color: var(--green-dark); font-family: Georgia,serif; font-size: 1.35rem; }
.timeline-item p { margin: 0; color: var(--muted); }

.filter-bar { display:flex; gap:12px; margin-bottom: 28px; }
.filter-bar input { width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; outline: none; }
.filter-bar input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,122,77,.1); }
.no-results { display:none; padding: 22px; background: #fff5e8; border-radius: 14px; color:#744210; }
.no-results.is-visible { display:block; }

.card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.info-card { background:white; border:1px solid var(--line); border-radius:20px; overflow:hidden; box-shadow: 0 10px 30px rgba(17,70,49,.07); }
.info-card img { width:100%; height:220px; object-fit:cover; }
.info-card-body { padding:24px; }
.info-card h2, .info-card h3 { margin:0 0 8px; color:var(--green-dark); font-family:Georgia,serif; }
.info-card p { color:var(--muted); }
.info-card a { color:var(--green); font-weight:900; text-underline-offset:4px; }
.card-label { display:inline-flex; padding:6px 10px; border-radius:999px; background:var(--green-soft); color:var(--green-dark); font-weight:800; font-size:.76rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:12px; }

.community-hero { position:relative; min-height:520px; display:grid; align-items:end; overflow:hidden; background:#163f31; }
.community-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.community-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.05) 70%); }
.community-hero-content { position:relative; z-index:2; color:white; padding: 80px 0 58px; }
.community-hero h1 { font-family:Georgia,serif; font-size:clamp(3rem,8vw,6rem); line-height:.95; margin: 10px 0 18px; }
.community-hero p { max-width:720px; font-size:1.15rem; color:rgba(255,255,255,.9); }
.community-main { display:grid; grid-template-columns: minmax(0,1fr) 330px; gap:38px; align-items:start; }
.prose h2 { color:var(--green-dark); font-family:Georgia,serif; font-size:2rem; margin-top:0; }
.prose h2:not(:first-child) { margin-top:46px; }
.prose p { color:#405049; }
.side-card { position:sticky; top:105px; background:white; border:1px solid var(--line); border-radius:20px; padding:24px; box-shadow:var(--shadow); }
.side-card h2 { font-family:Georgia,serif; color:var(--green-dark); margin-top:0; }
.highlight-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.highlight-list li { display:flex; gap:10px; align-items:center; padding:11px; background:var(--green-soft); border-radius:12px; }
.highlight-list li::before { content:"✓"; color:var(--green); font-weight:900; }
.notice { margin-top:22px; padding:16px; border-radius:14px; background:#fff8e5; color:#6b4f00; font-size:.9rem; }

.story-card { background:white; border:1px solid var(--line); border-radius:var(--radius); padding:clamp(28px,5vw,56px); box-shadow:var(--shadow); }
.story-card h2 { margin-top:0; }
.quote { margin:30px 0; padding:22px 26px; border-left:5px solid var(--green); background:var(--green-soft); font-family:Georgia,serif; font-size:1.25rem; color:var(--green-dark); }

.cta-panel { display:grid; grid-template-columns:1.4fr auto; align-items:center; gap:24px; padding:38px; border-radius:var(--radius); background:linear-gradient(135deg,var(--blue),#095b90); color:white; }
.cta-panel h2 { font-family:Georgia,serif; font-size:2.2rem; margin:0 0 8px; }
.cta-panel p { margin:0; color:rgba(255,255,255,.86); }
.cta-panel .button { background:white; color:var(--blue); }

.site-footer { background:#082b20; color:white; padding:64px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr 1fr; gap:48px; }
.brand-footer strong { color:#9fe5c7; }
.brand-footer small { color:#8ed1ff; }
.footer-grid h2 { font-family:Georgia,serif; font-size:1.2rem; margin-top:0; }
.footer-grid p { color:rgba(255,255,255,.72); }
.footer-grid > div { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.footer-grid a:not(.brand) { color:rgba(255,255,255,.86); text-decoration:none; }
.footer-grid a:hover { color:white; text-decoration:underline; }
.footer-button { word-break:break-word; }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; padding-top:24px; margin-top:35px; border-top:1px solid rgba(255,255,255,.15); color:rgba(255,255,255,.65); font-size:.88rem; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns:auto auto 1fr; }
  .menu-toggle { display:block; justify-self:end; }
  .main-nav { position:fixed; top:78px; left:16px; right:16px; display:none; flex-direction:column; align-items:stretch; padding:14px; border-radius:18px; background:white; box-shadow:var(--shadow); }
  .main-nav.is-open { display:flex; }
  .nav-link { padding:14px; }
  .header-cta { display:none; }
  .community-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .community-main { grid-template-columns:1fr; }
  .side-card { position:static; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1/-1; }
}

@media (max-width: 720px) {
  .container { width:min(calc(100% - 22px), var(--container)); }
  .header-inner { min-height:68px; gap:12px; }
  .brand img { width:42px; height:42px; }
  .main-nav { top:68px; }
  .hero, .hero-slider { min-height:650px; }
  .hero-copy { padding:80px 0 105px; }
  .hero h1 { font-size:clamp(2.7rem,15vw,4.4rem); }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-controls { left:16px; right:auto; }
  .section { padding:64px 0; }
  .community-grid, .card-grid, .stat-grid { grid-template-columns:1fr; }
  .feature-row, .feature-row:nth-child(even) { grid-template-columns:1fr; }
  .feature-row:nth-child(even) .feature-image { order:0; }
  .feature-image { min-height:260px; }
  .page-hero { padding:65px 0 45px; }
  .community-hero { min-height:560px; }
  .community-hero h1 { font-size:clamp(3rem,18vw,4.8rem); }
  .cta-panel { grid-template-columns:1fr; padding:28px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > div:first-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
}

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

/* =========================================================
   PÁGINA INICIAL: CONECTA VERA CRUZ
   ========================================================= */

.brand img {
  width: 154px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.brand > span {
  display: none;
}

.brand-footer img {
  width: 210px;
  max-height: none;
  border-radius: 10px;
}

.home-page {
  background: #fffdfa;
}

.home-banner {
  width: 100%;
  overflow: hidden;
  background: #0059de;
  border-bottom: 5px solid #09b9be;
}

.home-banner img {
  width: 100%;
  height: auto;
  max-height: 590px;
  object-fit: cover;
  object-position: center;
}

.home-title {
  max-width: 900px;
  margin-bottom: 46px;
}

.center-title {
  margin-inline: auto;
  text-align: center;
}

.compact-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-kicker::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 99px;
  background: #11b9ba;
}

.home-kicker.light {
  color: #baf6e1;
}

.home-kicker.light::before {
  background: #ffcb28;
}

.home-title h1,
.home-title h2,
.welcome-copy h2,
.nature-content h2,
.section-topline h2,
.history-copy h2,
.memory-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: #00375c;
  line-height: 1.06;
  text-wrap: balance;
}

.home-title h1 {
  margin: 12px 0 14px;
  color: var(--green);
  font-size: clamp(2.45rem, 5vw, 4.55rem);
}

.home-title h2,
.section-topline h2,
.history-copy h2,
.memory-intro h2 {
  margin: 8px 0 12px;
  font-size: clamp(2.15rem, 4.1vw, 3.75rem);
}

.home-title > p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-welcome {
  padding-top: 72px;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.25fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}

.welcome-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.welcome-copy p {
  margin: 0 0 17px;
  color: #44534e;
  font-size: 1.02rem;
}

.welcome-actions,
.history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.welcome-photo {
  position: relative;
  margin: 0;
  padding: 0 0 22px 22px;
}

.welcome-photo::before {
  content: "";
  position: absolute;
  inset: 22px 22px 0 0;
  z-index: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, #10b8b8, #007a4d);
}

.welcome-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 55px rgba(0, 55, 92, .2);
}

.welcome-photo figcaption {
  position: relative;
  z-index: 2;
  width: calc(100% - 44px);
  margin: -26px auto 0;
  padding: 15px 18px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  color: #49615a;
  font-size: .87rem;
  text-align: center;
}

.nature-callout {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #092c3d;
}

.nature-callout > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.02);
}

.nature-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 30, 49, .88), rgba(2, 30, 49, .55) 56%, rgba(2, 30, 49, .68)),
    linear-gradient(0deg, rgba(0, 35, 52, .6), rgba(0, 35, 52, .08));
}

.nature-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-block: 78px;
  color: white;
  text-align: center;
}

.nature-content h2 {
  margin: 13px 0 14px;
  color: white;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.nature-content p {
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
}

.section-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-topline h2 {
  margin-bottom: 0;
}

.compact-button {
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: .88rem;
}

.home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 34px rgba(0, 55, 92, .08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 55, 92, .14);
}

.home-post-image {
  display: block;
  overflow: hidden;
  background: var(--blue-soft);
}

.home-post-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.home-post-card:hover .home-post-image img {
  transform: scale(1.035);
}

.home-post-body {
  padding: 24px;
}

.post-category,
.wall-label {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.home-post-body h3 {
  margin: 10px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  color: #00375c;
  font-size: 1.47rem;
  line-height: 1.18;
}

.home-post-body h3 a {
  text-decoration: none;
}

.home-post-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .94rem;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.18fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.history-copy p {
  color: #53635d;
}

.history-image {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 20px 22px 0 #dff4e9;
}

.history-image img {
  width: 100%;
  min-height: 390px;
  object-fit: cover;
}

.memory-section {
  padding-top: 58px;
}

.memory-shell {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid #ebe4d7;
  border-radius: 28px;
  background: #f7f2e8;
}

.memory-intro {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 900px;
  margin-bottom: 30px;
}

.memory-intro h2 {
  margin-top: 7px;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
}

.memory-intro p {
  margin: 0;
  color: #69736f;
}

.memory-bubble {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #007a4d, #075e87);
  color: white;
  box-shadow: 0 12px 25px rgba(0, 95, 60, .18);
}

.memory-grid {
  display: grid;
  grid-template-columns: minmax(280px, .74fr) minmax(0, 1.45fr);
  gap: 20px;
}

.memory-form,
.memory-wall {
  border: 1px solid #e2e7e2;
  border-radius: 19px;
  background: white;
}

.memory-form {
  padding: 24px;
}

.memory-form h3,
.memory-wall h3 {
  margin: 0 0 6px;
  color: #00375c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.memory-form > p {
  margin: 0 0 18px;
  color: #687570;
  font-size: .88rem;
}

.memory-form label:not(.memory-consent) {
  display: block;
  margin: 15px 0 6px;
  color: #183c31;
  font-size: .82rem;
  font-weight: 900;
}

.memory-form label small {
  color: #89958f;
  font-weight: 600;
}

.memory-form input[type="text"],
.memory-form textarea {
  width: 100%;
  border: 1px solid #d5e0da;
  border-radius: 11px;
  padding: 12px 13px;
  color: #263c35;
  background: #fff;
  outline: none;
}

.memory-form textarea {
  min-height: 124px;
  resize: vertical;
}

.memory-form input[type="text"]:focus,
.memory-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 122, 77, .09);
}

.memory-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 15px 0;
  color: #687570;
  font-size: .8rem;
}

.memory-consent input {
  margin-top: 3px;
  accent-color: var(--green);
}

.memory-form .button {
  width: 100%;
}

.form-status {
  min-height: 1.4em;
  margin: 10px 0 0 !important;
  color: var(--green) !important;
  font-weight: 800;
}

.memory-note {
  margin-top: 12px !important;
  color: #87918d !important;
  font-size: .72rem !important;
}

.memory-wall {
  min-width: 0;
  padding: 24px;
}

.memory-wall-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.memory-count {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf8f1;
  color: var(--green-dark);
  font-size: .7rem;
  font-weight: 900;
}

.memory-empty {
  min-height: 185px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  border: 1px dashed #d4dfda;
  border-radius: 14px;
  color: #64736d;
  text-align: center;
}

.memory-empty[hidden] {
  display: none;
}

.memory-empty > span {
  color: #7848a9;
  font-size: 1.45rem;
}

.memory-empty strong {
  margin-top: 5px;
  color: #183c31;
}

.memory-empty p {
  margin: 4px 0 0;
  font-size: .82rem;
}

.memory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.memory-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e3ebe6;
  border-radius: 14px;
  background: #fcfefd;
}

.memory-card p {
  margin: 0 0 13px;
  color: #40514b;
  overflow-wrap: anywhere;
}

.memory-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7c8984;
  font-size: .73rem;
}

.memory-card strong {
  color: var(--green-dark);
}

.memory-delete {
  border: 0;
  padding: 0;
  color: #9b4c4c;
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
}

.community-home {
  background: linear-gradient(180deg, #ffffff, #f1fbf6);
}

.community-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.community-home-grid a {
  position: relative;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 38px 20px 20px;
  overflow: hidden;
  border: 1px solid #d7e9df;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 75, 48, .06);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.community-home-grid a::after {
  content: "›";
  position: absolute;
  right: 17px;
  top: 50%;
  color: #0d9c80;
  font-size: 1.45rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.community-home-grid a:hover {
  transform: translateY(-4px);
  border-color: #a7d5bf;
  box-shadow: 0 17px 32px rgba(0, 75, 48, .11);
}

.community-home-grid strong {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.community-home-grid span {
  margin-top: 4px;
  color: #72807a;
  font-size: .8rem;
  line-height: 1.35;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 1080px) {
  .header-inner {
    gap: 14px;
  }

  .brand img {
    width: 132px;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: .84rem;
  }

  .welcome-grid,
  .history-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 45px;
  }

  .community-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .brand img {
    width: 145px;
  }

  .welcome-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .welcome-photo,
  .history-image {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .home-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-post-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, .85fr) 1fr;
  }

  .home-post-card:last-child .home-post-image img {
    height: 100%;
    aspect-ratio: auto;
  }

  .memory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand img {
    width: 126px;
    max-height: 55px;
  }

  .home-banner img {
    min-height: 235px;
    object-fit: cover;
    object-position: center;
  }

  .home-welcome {
    padding-top: 54px;
  }

  .home-title {
    margin-bottom: 32px;
  }

  .welcome-grid {
    gap: 34px;
  }

  .welcome-actions,
  .history-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .welcome-actions .button,
  .history-actions .button {
    width: 100%;
  }

  .welcome-photo {
    padding: 0 0 14px 14px;
  }

  .welcome-photo::before {
    inset: 14px 14px 0 0;
  }

  .welcome-photo figcaption {
    width: calc(100% - 28px);
  }

  .nature-callout {
    min-height: 440px;
  }

  .section-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .section-topline .button {
    width: 100%;
  }

  .home-post-grid {
    grid-template-columns: 1fr;
  }

  .home-post-card:last-child {
    grid-column: auto;
    display: block;
  }

  .home-post-card:last-child .home-post-image img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .history-image {
    box-shadow: 10px 12px 0 #dff4e9;
  }

  .history-image img {
    min-height: 260px;
  }

  .memory-shell {
    width: min(calc(100% - 18px), var(--container));
    padding: 22px 14px;
  }

  .memory-intro {
    gap: 12px;
  }

  .memory-bubble {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .memory-form,
  .memory-wall {
    padding: 18px;
  }

  .memory-wall-heading {
    align-items: flex-start;
  }

  .memory-list {
    grid-template-columns: 1fr;
  }

  .community-home-grid {
    grid-template-columns: 1fr;
  }

  .community-home-grid a {
    min-height: 105px;
  }

  .brand-footer img {
    width: 190px;
    max-height: none;
  }
}

.memory-card > p {
  white-space: pre-wrap;
}
