/* Harvest Mission — shared mobile shell + page utilities */
html { scroll-behavior:smooth; }
body { -webkit-tap-highlight-color:transparent; }

.hm-wrap { max-width:1240px; margin:0 auto; padding-left:32px; padding-right:32px; }
.hm-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.hm-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.hm-grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.hm-grid-pastors { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.hm-pastor-card { display:flex; flex-direction:column; width:100%; height:100%; text-align:left; background:#fff; border:1px solid #e4dccb; border-radius:3px; overflow:hidden; cursor:pointer; padding:0; }
.hm-pastor-card-media { position:relative; width:100%; aspect-ratio:1/1; overflow:hidden; }
.hm-pagination { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:40px; margin-bottom:12px; }
.hm-pagination-btn { min-width:44px; min-height:44px; padding:0 14px; border:1px solid #d3c7af; border-radius:4px; background:#fff; color:#46515c; font-size:13px; font-weight:700; letter-spacing:0.04em; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
a.hm-pagination-btn:hover { background:#f7f1e6; }
.hm-pagination-btn.is-active { background:#cf4a26; border-color:#cf4a26; color:#fff; }
.hm-pagination-btn:disabled { opacity:0.4; cursor:not-allowed; }
.hm-grid-footer { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:48px; }
.hm-layout-sidebar { display:grid; grid-template-columns:248px 1fr; gap:38px; align-items:start; }

.hm-logo { display:flex; align-items:center; flex-shrink:0; min-height:44px; text-decoration:none; }
.hm-logo-img { display:block; width:auto; height:78px; max-width:min(52vw, 280px); object-fit:contain; object-position:left center; }
.hm-logo--footer .hm-logo-img { height:40px; max-width:min(72vw, 240px); }
.hm-header-inner { max-width:1240px; margin:0 auto; padding:0 32px; height:78px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.hm-header-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.hm-nav-desktop { display:flex; align-items:center; gap:26px; flex-shrink:1; min-width:0; }
.hm-nav-desktop a, .hm-nav-desktop button { font-size:13px; font-weight:600; letter-spacing:0.04em; color:#cfd6dd; background:none; border:none; cursor:pointer; min-height:44px; display:inline-flex; align-items:center; }
.hm-nav-desktop a.is-active, .hm-nav-desktop button.is-active { font-weight:700; color:#e0673f; }
.hm-nav-dropdown { position:relative; flex-shrink:0; }
.hm-nav-dropdown-trigger { display:inline-flex; align-items:center; gap:5px; min-height:44px; font-size:13px; font-weight:600; letter-spacing:0.04em; color:#cfd6dd; text-decoration:none; white-space:nowrap; }
.hm-nav-dropdown-trigger:hover, .hm-nav-dropdown:focus-within .hm-nav-dropdown-trigger { color:#fff; }
.hm-nav-dropdown-trigger.is-active { font-weight:700; color:#e0673f; }
.hm-nav-dropdown-chevron { opacity:0.75; transition:transform .2s; flex-shrink:0; }
.hm-nav-dropdown:hover .hm-nav-dropdown-chevron, .hm-nav-dropdown:focus-within .hm-nav-dropdown-chevron { transform:rotate(180deg); }
.hm-nav-dropdown-menu { position:absolute; top:calc(100% - 4px); left:50%; transform:translateX(-50%); min-width:168px; background:#1d2c3d; border:1px solid rgba(245,239,227,0.12); border-radius:4px; padding:6px 0; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .15s, visibility .15s; box-shadow:0 8px 24px rgba(0,0,0,.28); z-index:60; }
.hm-nav-dropdown:hover .hm-nav-dropdown-menu, .hm-nav-dropdown:focus-within .hm-nav-dropdown-menu { opacity:1; visibility:visible; pointer-events:auto; }
.hm-nav-dropdown-menu a { display:block; padding:11px 18px; font-size:12px; font-weight:600; letter-spacing:0.08em; color:#cfd6dd; white-space:nowrap; min-height:0; }
.hm-nav-dropdown-menu a:hover { background:rgba(245,239,227,0.08); color:#fff; }
.hm-nav-drawer-group { margin:2px 0 10px; }
.hm-nav-drawer-label { display:block; padding:10px 14px 6px; font-size:11px; font-weight:700; letter-spacing:0.12em; color:#8a929b; text-transform:uppercase; }
.hm-nav-drawer-sub { padding-left:28px !important; font-size:14px !important; font-weight:500 !important; color:#aeb8c2 !important; min-height:44px !important; }
.hm-impact-banner { background:#15212e; color:#c4cdd6; text-align:center; padding:13px 32px; border-bottom:1px solid rgba(245,239,227,0.08); }
.hm-impact-banner p { font-size:13.5px; line-height:1.55; max-width:760px; margin:0 auto; }
.hm-impact-banner strong { color:#e0673f; font-weight:700; }
.hm-impact-banner--support { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 18px; text-align:center; }
.hm-impact-banner--support p { margin:0; max-width:none; flex:0 1 auto; }
.hm-impact-banner-clear {
  flex:none; background:transparent; border:1px solid rgba(245,239,227,0.35); color:#f5efe3;
  font-size:12px; font-weight:700; letter-spacing:0.03em; padding:8px 14px; border-radius:2px; cursor:pointer;
}
.hm-impact-banner-clear:hover { background:rgba(245,239,227,0.1); }
.hm-impact-tag { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:700; letter-spacing:0.05em; color:#1f5c3a; background:#e9f3ec; border:1px solid #b8dcc4; padding:4px 8px; border-radius:2px; margin-bottom:8px; }
.hm-impact-callout { display:flex; gap:14px; align-items:flex-start; background:#f7f1e6; border:1px solid #e9dcc4; border-radius:3px; padding:16px 18px; margin-bottom:28px; }
.hm-impact-callout-icon { flex:none; width:36px; height:36px; border-radius:50%; background:#e9f3ec; display:flex; align-items:center; justify-content:center; }
.hm-impact-callout p { font-size:14px; line-height:1.55; color:#46515c; margin:0; }
.hm-impact-callout strong { color:#15212e; }
.hm-nav-toggle { display:none; width:44px; height:44px; border:none; background:rgba(245,239,227,0.08); border-radius:4px; cursor:pointer; align-items:center; justify-content:center; flex-shrink:0; }
.hm-nav-drawer { display:none; position:fixed; inset:0; z-index:200; pointer-events:none; }
.hm-nav-drawer.open { display:block; pointer-events:auto; }
.hm-nav-backdrop { position:absolute; inset:0; background:rgba(8,14,20,0.55); opacity:0; transition:opacity .25s; }
.hm-nav-drawer.open .hm-nav-backdrop { opacity:1; }
.hm-nav-panel { position:absolute; top:0; right:0; width:min(320px,88vw); height:100%; background:#15212e; border-left:1px solid rgba(245,239,227,0.12); transform:translateX(100%); transition:transform .28s ease; display:flex; flex-direction:column; padding:24px 22px calc(24px + env(safe-area-inset-bottom)); overflow-y:auto; }
.hm-nav-drawer.open .hm-nav-panel { transform:translateX(0); }
.hm-nav-panel a, .hm-nav-panel button { display:flex; align-items:center; min-height:48px; padding:0 14px; font-size:15px; font-weight:600; letter-spacing:0.04em; color:#cfd6dd; border:none; background:none; width:100%; text-align:left; cursor:pointer; border-radius:4px; }
.hm-nav-panel a:active, .hm-nav-panel button:active { background:rgba(245,239,227,0.08); }
.hm-nav-donate { margin-top:12px; justify-content:center; background:#cf4a26 !important; color:#fff !important; border-radius:4px; min-height:50px !important; }
.hm-header-cart { position:relative; background:none; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:4px; flex-shrink:0; }
.hm-header-cart:active { background:rgba(245,239,227,0.08); }
.hm-header-cart-badge {
  position:absolute; top:4px; right:2px; min-width:16px; height:16px; padding:0 4px;
  border-radius:999px; background:#cf4a26; color:#fff; font-size:10px; font-weight:800;
  line-height:16px; text-align:center; pointer-events:none;
}

.hm-mobile-bar { display:none; position:fixed; bottom:0; left:0; right:0; z-index:90; background:rgba(21,33,46,0.96); border-top:1px solid rgba(245,239,227,0.12); padding:8px 10px calc(8px + env(safe-area-inset-bottom)); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.hm-mobile-bar-inner { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; max-width:520px; margin:0 auto; }
.hm-mobile-bar a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:8px 4px; font-size:9px; font-weight:700; letter-spacing:0.06em; color:#c4cdd6; border-radius:6px; min-height:52px; text-decoration:none; }
.hm-mobile-bar a svg { flex-shrink:0; }
.hm-mobile-bar a:active, .hm-mobile-bar a.active { color:#e0673f; background:rgba(207,74,38,0.12); }
.hm-bs-static .hm-mobile-bar a { color:#c4cdd6; }
.hm-bs-static .hm-mobile-bar a:active, .hm-bs-static .hm-mobile-bar a.active { color:#e0673f; }

.hm-page-hero { background:#15212e; color:#f5efe3; padding:70px 32px 64px; position:relative; overflow:hidden; }
.hm-page-hero-bg { position:absolute; inset:0; opacity:0.4; background:repeating-linear-gradient(118deg,transparent 0 28px,rgba(207,74,38,0.08) 28px 29px); pointer-events:none; }
.hm-page-hero-inner { position:relative; max-width:1240px; margin:0 auto; }
.hm-page-h1 { font-family:'Newsreader',serif; font-weight:500; font-size:54px; line-height:1.04; letter-spacing:-0.01em; }
.hm-page-lead { font-size:17px; line-height:1.6; color:#c4cdd6; max-width:560px; margin-top:20px; }

.hm-filter-bar { background:#ece3d2; border-bottom:1px solid #ddd2bd; padding:20px 32px; position:sticky; top:78px; z-index:40; }
.hm-filter-inner {
  max-width:1240px; margin:0 auto;
  display:grid; grid-template-columns:1fr; gap:12px; align-items:stretch;
}
.hm-filter-search { position:relative; width:100%; max-width:400px; }
.hm-filter-search input { width:100%; padding:12px 14px 12px 38px; border:1px solid #d3c7af; border-radius:4px; background:#fff; font-size:16px; color:#15212e; outline:none; min-height:48px; }
.hm-chip-group { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hm-chip-scroll {
  position:relative; display:flex; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; width:100%; min-width:0; padding-bottom:2px;
  scroll-padding-inline-end:36px; overscroll-behavior-x:contain; touch-action:pan-x;
}
.hm-chip-scroll::-webkit-scrollbar { display:none; }
.hm-chip-scroll .hm-chip-group { flex-wrap:nowrap; padding-right:32px; }
.hm-chip-scroll button { flex-shrink:0; }
.hm-chip-scroll::before {
  content:''; position:absolute; top:0; right:0; bottom:0; width:48px; z-index:1; pointer-events:none;
  background:linear-gradient(90deg, transparent 0%, #ece3d2 78%);
  opacity:0; transition:opacity .2s;
}
.hm-chip-scroll::after {
  content:''; position:absolute; top:50%; right:12px; z-index:2; pointer-events:none;
  width:7px; height:7px; border-right:2px solid #8a7f6a; border-bottom:2px solid #8a7f6a;
  transform:translateY(-60%) rotate(-45deg); opacity:0; transition:opacity .2s;
}
.hm-chip-scroll.hm-scrollable:not(.hm-scroll-end)::before,
.hm-chip-scroll.hm-scrollable:not(.hm-scroll-end)::after { opacity:1; }

@media (min-width:900px) {
  .hm-filter-inner {
    grid-template-columns:minmax(220px,300px) 1fr;
    grid-template-rows:auto auto;
    gap:12px 20px;
  }
  .hm-filter-search { grid-row:span 2; align-self:start; max-width:none; }
}

.hm-subnav { background:#1d2c3d; border-bottom:1px solid rgba(245,239,227,0.1); }
.hm-subnav-inner { max-width:1240px; margin:0 auto; padding:0 32px; display:flex; gap:4px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.hm-subnav-inner::-webkit-scrollbar { display:none; }
.hm-subnav-inner button { flex-shrink:0; min-height:48px; padding:0 18px; font-size:13px; font-weight:700; letter-spacing:0.04em; border:none; cursor:pointer; background:none; color:#9aa6b2; border-bottom:2px solid transparent; }

.hm-section-pad { padding:38px 32px 100px; }

/* —— Elevated cards, buttons & scroll motion —— */
:root {
  --hm-shadow-card: 0 1px 2px rgba(21,33,46,0.04), 0 4px 14px rgba(21,33,46,0.06), 0 14px 32px rgba(21,33,46,0.04);
  --hm-shadow-card-hover: 0 2px 6px rgba(21,33,46,0.06), 0 10px 24px rgba(21,33,46,0.1), 0 24px 48px rgba(21,33,46,0.08);
  --hm-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-card,
.hm-pastor-card,
.hm-pillar-card,
.hm-partner-card,
.hm-church-card,
.hm-explore-card,
.hm-way-card,
.bl-card,
.hm-book-card,
.hm-give-partner-card,
.hm-give-tier-card,
.hm-give-partner {
  box-shadow: var(--hm-shadow-card);
  transition: transform 0.35s var(--hm-ease-out), box-shadow 0.35s var(--hm-ease-out), border-color 0.25s;
}

@media (hover:hover) {
  .hm-card:hover,
  .hm-pastor-card:hover,
  .hm-pillar-card:hover,
  .hm-partner-card:hover,
  .hm-church-card:hover,
  .hm-explore-card:hover,
  .hm-way-card:hover,
  .bl-card:hover,
  .hm-book-card:hover,
  .hm-give-partner-card:hover,
  .hm-give-tier-card:hover,
  .hm-give-partner:hover {
    transform: translateY(-4px);
    box-shadow: var(--hm-shadow-card-hover);
  }
}

.hm-way-card {
  background: #fff;
  border: 1px solid #e4dccb;
  border-radius: 3px;
  padding: 28px 26px;
  text-align: left;
  height: 100%;
}
.hm-way-icon {
  width: 46px;
  height: 46px;
  border-radius: 2px;
  background: #f7f1e6;
  border: 1px solid #e4dccb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.25s, border-color 0.25s;
}
.hm-way-card:hover .hm-way-icon {
  background: #fff5f0;
  border-color: #cf4a26;
}
.hm-way-card h3 {
  font-family: 'Newsreader', serif;
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 9px;
  color: #15212e;
}
.hm-way-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5b6671;
  margin: 0;
}

.hm-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:14px; font-weight:700; letter-spacing:0.03em; padding:14px 24px; border-radius:4px; min-height:48px; transition:transform .15s, box-shadow .25s var(--hm-ease-out), background-color .2s, border-color .2s, color .2s; }
@media (hover:hover) {
  .hm-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(21,33,46,0.14); }
  .hm-btn-primary:hover,
  a.hm-btn[style*="background:#cf4a26"]:hover { box-shadow: 0 6px 20px rgba(207,74,38,0.38); }
}
.hm-btn:active { transform:scale(0.98); box-shadow:none; }

html.hm-motion .hm-reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}
html.hm-motion .hm-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.hm-reveal {
  transition: opacity 0.65s var(--hm-ease-out), transform 0.65s var(--hm-ease-out);
  transition-delay: var(--hm-reveal-delay, 0ms);
}

@media (prefers-reduced-motion:reduce) {
  html.hm-motion .hm-reveal:not(.is-visible) { opacity: 1; transform: none; }
  .hm-reveal { transition: none; }
  .hm-card,
  .hm-pastor-card,
  .hm-pillar-card,
  .hm-partner-card,
  .hm-church-card,
  .hm-explore-card,
  .hm-way-card,
  .bl-card,
  .hm-book-card,
  .hm-give-partner-card,
  .hm-give-tier-card,
  .hm-give-partner { transition: border-color 0.25s; }
  @media (hover:hover) {
    .hm-card:hover,
    .hm-pastor-card:hover,
    .hm-pillar-card:hover,
    .hm-partner-card:hover,
    .hm-church-card:hover,
    .hm-explore-card:hover,
    .hm-way-card:hover,
    .bl-card:hover,
    .hm-book-card:hover,
    .hm-give-partner-card:hover,
    .hm-give-tier-card:hover,
    .hm-give-partner:hover { transform: none; }
  }
  .hm-btn:hover { transform: none; box-shadow: none; }
}

.hm-modal-backdrop { position:fixed; inset:0; background:rgba(8,14,20,0.86); z-index:180; }
.hm-modal-panel { position:fixed; z-index:190; background:#15212e; color:#f5efe3; border:1px solid rgba(245,239,227,0.12); border-radius:4px; overflow:hidden; }
.hm-media-featured { display:grid; grid-template-columns:1.7fr 1fr; gap:30px; align-items:center; }
.hm-cart-panel { position:fixed; top:0; right:0; width:min(420px,100vw); height:100%; z-index:195; background:#f5efe3; box-shadow:-8px 0 40px rgba(0,0,0,0.15); display:flex; flex-direction:column; }
.hm-detail-wrap { max-width:1240px; margin:0 auto; }
.hm-detail-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:48px; align-items:start; }
.hm-detail-grid--sidebar { grid-template-columns:1fr minmax(280px,340px); gap:54px; }
.hm-detail-aside { position:sticky; top:110px; display:flex; flex-direction:column; gap:18px; }
.hm-detail-tabs { display:flex; gap:0; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; border-bottom:1px solid rgba(245,239,227,0.12); }
.hm-detail-tabs::-webkit-scrollbar { display:none; }
.hm-stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:#e4dccb; border:1px solid #e4dccb; border-radius:3px; overflow:hidden; margin-bottom:40px; }
.hm-stat-grid > div { background:#fff; padding:24px; }
.hm-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hm-card-row { display:grid; grid-template-columns:200px 1fr; gap:22px; background:#fff; border:1px solid #e4dccb; border-radius:3px; overflow:hidden; }
.hm-card-row--sm { grid-template-columns:160px 1fr; gap:20px; }
.hm-card-row__body { padding:22px 24px 22px 0; }
.hm-card-row--sm .hm-card-row__body { padding:18px 22px 18px 0; }
.hm-card-row__media { position:relative; min-height:150px; overflow:hidden; }
.hm-card-row--sm .hm-card-row__media { min-height:120px; }
.hm-media-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.hm-btn-block { display:block; width:100%; text-align:center; font-size:13px; font-weight:700; letter-spacing:0.03em; padding:13px 16px; border-radius:2px; min-height:46px; line-height:1.3; text-decoration:none; border:none; cursor:pointer; font-family:inherit; }
.hm-btn-support-primary { background:#cf4a26; color:#fff; border:2px solid #cf4a26; }
.hm-btn-support-primary:hover { background:#b83e1f; color:#fff; border-color:#b83e1f; }
.hm-btn-support-secondary { background:#cf4a26; color:#fff; border:2px solid #cf4a26; box-shadow:0 2px 10px rgba(207,74,38,0.28); }
.hm-btn-support-secondary:hover { background:#b83e1f; color:#fff; border-color:#b83e1f; }
.hm-btn-update-info { display:inline-flex; align-items:center; gap:8px; background:#cf4a26; border:2px solid #cf4a26; color:#fff; font-size:13px; font-weight:700; letter-spacing:0.04em; padding:12px 18px; border-radius:2px; min-height:44px; cursor:pointer; margin-top:0; font-family:inherit; text-decoration:none; transition:background-color .2s, border-color .2s, box-shadow .2s; }
.hm-btn-update-info:hover { background:#b83e1f; border-color:#b83e1f; color:#fff; box-shadow:0 4px 14px rgba(207,74,38,0.35); }
.hm-detail-hero-back { display:inline-flex; align-items:center; gap:8px; background:none; border:none; color:#9aa6b2; font-size:13px; font-weight:600; letter-spacing:0.04em; cursor:pointer; padding:0; margin-bottom:24px; font-family:inherit; }
.hm-detail-hero-back:hover { color:#fff; }
.hm-detail-hero-layout { display:grid; grid-template-columns:104px 1fr; gap:28px 36px; align-items:start; }
.hm-detail-hero-media { flex:none; }
.hm-church-detail-logo { width:88px; height:88px; object-fit:contain; background:#fff; border:1px solid rgba(245,239,227,0.22); border-radius:4px; padding:10px; display:block; }
.hm-detail-hero-body { min-width:0; }
.hm-detail-hero-badges { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.hm-detail-hero-badge { display:inline-flex; align-items:center; font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; padding:5px 10px; border-radius:2px; line-height:1.2; }
.hm-detail-hero-badge--orange { background:#cf4a26; color:#fff; }
.hm-detail-hero-badge--dark { background:rgba(245,239,227,0.1); color:#f5efe3; border:1px solid rgba(245,239,227,0.22); }
.hm-detail-hero-lead { margin-top:12px; max-width:720px; font-size:17px; line-height:1.55; color:#c4cdd6; }
.hm-detail-hero-role { font-size:14px; font-weight:700; letter-spacing:0.06em; color:#e0673f; margin-top:12px; }
.hm-detail-hero-meta { display:flex; flex-wrap:wrap; gap:0; margin-top:20px; padding-top:18px; border-top:1px solid rgba(245,239,227,0.14); }
.hm-detail-hero-meta-item { display:flex; flex-direction:column; gap:5px; padding:0 28px 0 0; margin-right:28px; border-right:1px solid rgba(245,239,227,0.14); min-width:min(100%, 140px); }
.hm-detail-hero-meta-item:last-child { border-right:none; margin-right:0; padding-right:0; }
.hm-detail-hero-meta-label { font-size:10px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:#8b97a4; }
.hm-detail-hero-meta-value { font-size:14.5px; color:#f5efe3; line-height:1.4; }
.hm-detail-hero-meta-value a { color:inherit; text-decoration:none; }
.hm-detail-hero-meta-value a:hover { color:#e0673f; }
.hm-detail-hero-actions-label { flex:0 0 100%; font-size:10px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:#8b97a4; margin-bottom:2px; }
.hm-detail-hero-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; padding-top:20px; border-top:1px solid rgba(245,239,227,0.14); align-items:center; }
.hm-btn-hero-support-primary { display:inline-flex; align-items:center; justify-content:center; background:#cf4a26; color:#fff; font-size:13px; font-weight:700; letter-spacing:0.03em; padding:12px 18px; border-radius:2px; min-height:44px; text-decoration:none; font-family:inherit; border:2px solid #cf4a26; transition:background-color .2s, border-color .2s, box-shadow .2s; }
.hm-btn-hero-support-primary:hover { background:#b83e1f; color:#fff; border-color:#b83e1f; box-shadow:0 4px 14px rgba(207,74,38,0.35); }
.hm-btn-hero-support-secondary { display:inline-flex; align-items:center; justify-content:center; background:#cf4a26; color:#fff; font-size:13px; font-weight:700; letter-spacing:0.03em; padding:12px 18px; border-radius:2px; min-height:44px; text-decoration:none; font-family:inherit; border:2px solid #cf4a26; box-shadow:0 2px 10px rgba(207,74,38,0.28); transition:background-color .2s, border-color .2s, box-shadow .2s; }
.hm-btn-hero-support-secondary:hover { background:#b83e1f; color:#fff; border-color:#b83e1f; box-shadow:0 4px 14px rgba(207,74,38,0.35); }
.hm-profile-form-section { max-width:1240px; margin:48px auto 0; scroll-margin-top:96px; }
.hm-profile-form input[type="file"] { width:100%; max-width:100%; font-size:14px; }
.hm-sermon-item { display:flex; align-items:center; gap:18px; background:#fff; border:1px solid #e4dccb; border-radius:3px; padding:16px 20px; }

.hm-footer-meta { display:flex; flex-wrap:wrap; gap:20px 36px; padding:22px 0 26px; border-top:1px solid rgba(245,239,227,0.1); }
.hm-footer-meta-item { display:flex; flex-direction:column; gap:5px; min-width:min(100%, 160px); }
.hm-footer-meta-label { font-size:10px; font-weight:700; letter-spacing:0.14em; color:#5f6b77; text-transform:uppercase; }
.hm-footer-meta-value { font-size:13.5px; line-height:1.45; color:#aeb8c2; }
.hm-footer-meta-value a { color:inherit; text-decoration:none; }
.hm-footer-meta-value a:hover { color:#f5efe3; }
.hm-footer-copy { font-size:12.5px; color:#5f6b77; padding-top:4px; }
.hm-footer-compact .hm-footer-meta { border-top:none; padding:0; gap:16px 28px; }
.hm-footer-compact .hm-footer-copy { padding-top:14px; border-top:1px solid rgba(245,239,227,0.1); margin-top:14px; width:100%; }

@media (max-width:1200px) {
  .hm-nav-desktop { gap:18px; }
  .hm-nav-desktop a, .hm-nav-desktop button, .hm-nav-dropdown-trigger { font-size:12px; }
}

@media (max-width:1024px) {
  .hm-grid-3 { grid-template-columns:repeat(2,1fr); }
  .hm-grid-4 { grid-template-columns:repeat(2,1fr); }
  .hm-grid-pastors { grid-template-columns:repeat(3,1fr); }
  .hm-layout-sidebar { grid-template-columns:1fr; }
  .hm-page-h1 { font-size:44px; }
  .hm-media-featured { grid-template-columns:1fr; }
}

@media (max-width:768px) {
  .hm-wrap, .hm-header-inner, .hm-page-hero, .hm-filter-bar, .hm-section-pad, .hm-subnav-inner, .hm-impact-banner { padding-left:20px; padding-right:20px; }
  .hm-impact-banner p { font-size:12.5px; }
  .hm-nav-desktop { display:none !important; }
  .hm-nav-toggle { display:flex; }
  .hm-mobile-bar { display:block; }
  .hm-header-inner { height:64px; padding:0 16px; }
  .hm-logo:not(.hm-logo--footer) .hm-logo-img { height:56px; max-width:min(58vw, 220px); }
  .hm-logo--footer .hm-logo-img { height:36px; }
  .hm-tagline { display:none; }
  body { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }

  .hm-page-hero { padding:40px 20px 32px; }
  .hm-page-h1 { font-size:clamp(32px,9vw,42px); }
  .hm-page-lead { font-size:16px; margin-top:14px; }
  .hm-filter-bar { top:64px; padding:14px 20px; }
  .hm-filter-search { max-width:none; min-width:0; }
  .hm-chip-group { width:100%; }
  .hm-section-pad { padding:28px 20px 80px; }
  .hm-pagination { margin-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .hm-grid-2, .hm-grid-3, .hm-grid-4, .hm-grid-cards, .hm-grid-footer { grid-template-columns:1fr; }
  .hm-grid-pastors { grid-template-columns:repeat(2,1fr); gap:16px; }
  .hm-layout-sidebar aside { position:static !important; }
  .hm-subnav-inner { padding:0 12px; }
  .hm-subnav-inner button { min-height:50px; padding:0 16px; font-size:12px; }

  .hm-modal-panel {
    inset:auto 0 0 0 !important; width:100% !important; max-width:none !important;
    border-radius:12px 12px 0 0; max-height:92vh; overflow-y:auto;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .hm-media-featured { grid-template-columns:1fr; gap:20px; }
  .hm-cart-panel { width:100% !important; max-height:92vh; top:auto !important; bottom:0; height:auto !important; border-radius:12px 12px 0 0; padding-bottom:env(safe-area-inset-bottom); }
  .hm-detail-grid, .hm-detail-grid--sidebar { grid-template-columns:1fr; gap:28px; }
  .hm-detail-aside { position:static !important; top:auto !important; }
  .hm-stat-grid { grid-template-columns:1fr; }
  .hm-stat-grid > div { padding:18px 20px; }
  .hm-info-grid { grid-template-columns:1fr; }
  .hm-card-row, .hm-card-row--sm { grid-template-columns:1fr; gap:0; }
  .hm-card-row__body, .hm-card-row--sm .hm-card-row__body { padding:18px 20px; }
  .hm-card-row__media { min-height:160px !important; }
  .hm-media-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
  .hm-sermon-item { flex-wrap:wrap; gap:12px; padding:14px 16px; }
  .hm-detail-tabs button { flex-shrink:0; min-height:50px; }
  .hm-profile-form-section { margin-top:32px; scroll-margin-top:80px; }
  .hm-profile-form { padding:22px 18px !important; }
  .hm-profile-form input[type="text"], .hm-profile-form input[type="email"], .hm-profile-form input[type="tel"], .hm-profile-form input[type="url"], .hm-profile-form select, .hm-profile-form textarea {
    font-size:16px; min-height:44px;
  }
  .hm-profile-form textarea { min-height:120px; }
  .hm-profile-form .g-recaptcha { transform:scale(0.92); transform-origin:0 0; max-width:100%; }
  .hm-btn-update-info { width:100%; justify-content:center; }
  .hm-detail-hero-layout { grid-template-columns:1fr; gap:20px; }
  .hm-detail-hero-meta { flex-direction:column; gap:0; }
  .hm-detail-hero-meta-item { border-right:none; margin-right:0; padding:0 0 14px; border-bottom:1px solid rgba(245,239,227,0.12); width:100%; }
  .hm-detail-hero-meta-item:last-child { border-bottom:none; padding-bottom:0; }
  .hm-detail-hero-actions { flex-direction:column; align-items:stretch; }
  .hm-btn-hero-support-primary, .hm-btn-hero-support-secondary { width:100%; }
  footer { padding-bottom:calc(38px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width:480px) {
  .hm-grid-footer { grid-template-columns:1fr; }
  .hm-media-grid { grid-template-columns:1fr; }
  .hm-btn-block { font-size:14px; padding:14px 16px; }
}

/* Search autocomplete */
.hm-filter-search,
.hm-bookstore-search { position:relative; z-index:45; }
.hm-ac-panel {
  position:absolute; left:0; right:0; top:calc(100% + 8px);
  background:#fff; border:1px solid #e4dccb; border-radius:4px;
  box-shadow:var(--hm-shadow-card-hover, 0 2px 6px rgba(21,33,46,0.06), 0 10px 24px rgba(21,33,46,0.1), 0 24px 48px rgba(21,33,46,0.08));
  overflow:hidden; max-height:min(70vh, 520px); display:flex; flex-direction:column;
}
.hm-ac-head {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 14px; font-size:10px; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; color:#8a929b; background:#f7f1e6; border-bottom:1px solid #ece3d2;
}
.hm-ac-count { color:#cf4a26; letter-spacing:0.06em; }
.hm-ac-list { overflow-y:auto; overscroll-behavior:contain; padding:6px; }
.hm-ac-item {
  display:grid; grid-template-columns:56px 1fr auto; gap:12px; align-items:center;
  width:100%; text-align:left; padding:10px 10px; border:none; border-radius:3px;
  background:transparent; cursor:pointer; transition:background .15s, box-shadow .15s;
}
.hm-ac-item:hover,
.hm-ac-item.is-active {
  background:#f7f1e6; box-shadow:inset 0 0 0 1px #e9dcc4;
}
.hm-ac-thumb {
  position:relative; width:56px; height:56px; border-radius:3px; overflow:hidden;
  border:1px solid #ece3d2; background:#f5efe3; flex-shrink:0;
}
.hm-ac-thumb--books { width:44px; height:58px; }
.hm-ac-thumb-img { width:100%; height:100%; object-fit:cover; display:block; }
.hm-ac-thumb-fallback {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family:'Newsreader',serif; font-size:22px; font-weight:500; color:#f5efe3;
}
.hm-ac-item-badge {
  position:absolute; top:4px; right:4px; max-width:calc(100% - 8px);
  font-size:8px; font-weight:700; letter-spacing:0.04em; color:#15212e;
  background:rgba(245,239,227,0.94); padding:2px 5px; border-radius:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-ac-body { min-width:0; }
.hm-ac-item-meta {
  font-size:10px; font-weight:700; letter-spacing:0.08em; color:#cf4a26;
  margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.hm-ac-item-title {
  font-family:'Newsreader',serif; font-size:15px; font-weight:500; line-height:1.25;
  color:#15212e; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.hm-ac-item-sub {
  font-size:12px; line-height:1.4; color:#8a929b; margin-top:4px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.hm-ac-item-foot { display:flex; align-items:center; gap:8px; margin-top:5px; flex-wrap:wrap; }
.hm-ac-item-price {
  font-family:'Newsreader',serif; font-size:15px; font-weight:500; color:#15212e;
}
.hm-ac-item-stock { font-size:10px; font-weight:700; letter-spacing:0.06em; color:#cf4a26; }
.hm-ac-arrow {
  font-size:14px; color:#cf4a26; opacity:0; transform:translateX(-4px);
  transition:opacity .15s, transform .15s;
}
.hm-ac-item:hover .hm-ac-arrow,
.hm-ac-item.is-active .hm-ac-arrow { opacity:1; transform:translateX(0); }
.hm-ac-mark { background:#fde8df; color:#15212e; padding:0 1px; border-radius:1px; }
.hm-ac-foot {
  padding:9px 14px; font-size:11.5px; color:#8a929b; text-align:center;
  border-top:1px solid #ece3d2; background:#faf6ef;
}
@media (max-width:640px) {
  .hm-ac-panel { max-height:min(58vh, 420px); }
  .hm-ac-item { grid-template-columns:48px 1fr auto; gap:10px; padding:9px 8px; }
  .hm-ac-thumb { width:48px; height:48px; }
  .hm-ac-thumb--books { width:38px; height:50px; }
  .hm-ac-item-title { font-size:14px; }
}
