/* Site pages without Elementor: homepage, main calculators page, archives, search, 404.
   Lori's handoff design/homepage-2026-11-02/HANDOFF.md. Tokens shared with gs-nav.css. Mobile first, RTL. */

.gss-page { background: #fff; }
.gss-main { display: block; }
.gss-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-left)); }
.gss-page .gss-h1 { font-family: "Alef", "Rubik", sans-serif; font-weight: 700; font-size: clamp(2rem, 6vw + .5rem, 3.5rem); line-height: 1.15; color: #fff; margin: 0; text-wrap: balance; }
.gss-page .gss-h2 { font-family: "Alef", "Rubik", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2vw + .9rem, 1.9rem); color: var(--gsn-navy, #152d53); margin: 0 0 20px; }
.gss-page .gss-h2 a { color: inherit; text-decoration: none; }
.gss-page .gss-h2 a:hover { color: var(--gsn-green, #0c936a); }
.gss-h2-count { font-family: "Rubik", sans-serif; font-size: .95rem; font-weight: 500; color: var(--gsn-green, #0c936a); margin-inline-start: 10px; }
.gss-section { padding-block: 40px; }
.gss-section + .gss-section { padding-top: 0; }
.gss-entry { padding-block: 32px; font-size: 1.05rem; }

/* Hero */
.gss-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #3fa796 0%, #45b6a6 45%, #42A58C 100%); color: #fff; padding-block: 44px 56px; }
.gss-hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -180px; left: -140px; pointer-events: none; }
.gss-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .07); bottom: -150px; right: -70px; pointer-events: none; }
.gss-hero-in { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.gss-hero-text { max-width: 720px; }
.gss-page p.gss-eyebrow { margin: 0 0 10px; font-size: 1rem; color: rgba(255, 255, 255, .88); }
.gss-page p.gss-sub { margin: 14px 0 0; font-size: clamp(1.05rem, 1vw + .8rem, 1.4rem); line-height: 1.5; color: #fff; max-width: 60ch; }
.gss-page p.gss-count { margin: 12px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.gss-hero-art { align-self: center; }
.gss-hero-art img { display: block; width: min(240px, 70vw); height: auto; }
.gss-hero.is-compact { padding-block: 32px 36px; }
.gss-hero.is-compact .gss-h1 { font-size: clamp(1.6rem, 4vw + .5rem, 2.6rem); }
.gss-quicks { padding-top: 40px; }

/* Quick cards */
.gss-quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gss-page .gss-quick { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 140px; padding: 20px 14px; background: #fff; border: 1px solid transparent; border-radius: 16px; box-shadow: 0 10px 28px rgba(15, 43, 51, .14); text-decoration: none; color: var(--gsn-navy, #152d53); font-weight: 600; font-size: 1.05rem; text-align: center; transition: transform .15s, border-color .15s; }
.gss-page .gss-quick:hover, .gss-page .gss-quick:focus-visible { transform: translateY(-2px); border-color: var(--gsn-mint, #e6f7f0); color: var(--gsn-green, #0c936a); }
.gss-quick img { width: 56px; height: 56px; object-fit: contain; }

/* Category cards */
.gss-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.gss-page .gss-cat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name chev" "count chev" "text chev"; align-items: center; column-gap: 12px; row-gap: 4px; padding: 18px 20px; background: var(--gsn-paper, #f3fbf8); border: 1px solid var(--gsn-line, #dfe9e5); border-radius: 16px; text-decoration: none; color: var(--gsn-navy, #152d53); transition: border-color .15s, background .15s; }
.gss-page .gss-cat:hover, .gss-page .gss-cat:focus-visible { background: #fff; border-color: var(--gsn-green, #0c936a); }
.gss-cat-name { grid-area: name; font-family: "Alef", "Rubik", sans-serif; font-weight: 700; font-size: 1.25rem; }
.gss-cat-count { grid-area: count; font-size: .9rem; color: var(--gsn-green, #0c936a); font-weight: 500; }
.gss-cat-text { grid-area: text; font-size: .95rem; line-height: 1.45; color: var(--gsn-muted, #63788a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gss-cat .gsn-ic { grid-area: chev; width: 18px; height: 18px; color: var(--gsn-green, #0c936a); }

/* Calculator cards */
.gss-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.gss-page .gss-card a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; background: #fff; border: 1px solid var(--gsn-line, #dfe9e5); border-radius: 12px; text-decoration: none; color: var(--gsn-navy, #152d53); font-weight: 500; transition: border-color .15s, background .15s; }
.gss-page .gss-card a:hover, .gss-page .gss-card a:focus-visible { background: var(--gsn-paper, #f3fbf8); border-color: var(--gsn-green, #0c936a); color: var(--gsn-green, #0c936a); }
.gss-card-title { flex: 1 1 auto; min-width: 0; }
.gss-card-cat { flex: none; font-size: .8rem; color: var(--gsn-muted, #63788a); background: var(--gsn-paper, #f3fbf8); border-radius: 999px; padding: 3px 10px; }
.gss-card .gsn-ic { flex: none; width: 16px; height: 16px; color: var(--gsn-green, #0c936a); }

/* Community band */
.gss-community { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 28px 20px; background: var(--gsn-paper, #f3fbf8); border-radius: 24px; }
.gss-community-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--gsn-mint, #e6f7f0); display: inline-flex; align-items: center; justify-content: center; color: var(--gsn-green, #0c936a); }
.gss-community-ic .gsn-ic { width: 34px; height: 34px; }
.gss-page p.gss-community-title { margin: 0 0 6px; font-family: "Alef", "Rubik", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--gsn-navy, #152d53); }
.gss-community-text p { margin: 0; color: var(--gsn-muted, #63788a); }
.gss-community .gsn-wa-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 28px; background: var(--gsn-green, #0c936a); color: #fff; border-radius: 14px; font-weight: 700; text-decoration: none; }
.gss-community .gsn-wa-btn:hover { background: #0a7f5c; color: #fff; }
.gss-community .gsn-wa-btn .gsn-ic { width: 24px; height: 24px; }

/* Chips (main calculators page) */
.gss-chips { position: sticky; top: var(--gsn-h, 72px); z-index: 5; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--gsn-line, #dfe9e5); }
.gss-chips ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gss-page .gss-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--gsn-paper, #f3fbf8); border: 1px solid var(--gsn-line, #dfe9e5); color: var(--gsn-navy, #152d53); font-size: .95rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.gss-page .gss-chips a:hover, .gss-page .gss-chips a:focus-visible { background: var(--gsn-mint, #e6f7f0); color: var(--gsn-green, #0c936a); border-color: var(--gsn-green, #0c936a); }
.gss-catsec { scroll-margin-top: calc(var(--gsn-h, 72px) + 70px); }

/* Search, pager, empty */
.gss-search label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--gsn-navy, #152d53); }
.gss-search-row { display: flex; gap: 10px; }
.gss-search input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--gsn-line, #dfe9e5); border-radius: 12px; color: var(--gsn-navy, #152d53); }
.gss-search input:focus { outline: none; border-color: var(--gsn-green, #0c936a); }
.gss-page .gss-btn, .gss-page button.gss-btn { font: inherit; font-weight: 700; padding: 12px 22px; border: 0; border-radius: 12px; background: var(--gsn-green, #0c936a); color: #fff; cursor: pointer; }
.gss-page .gss-btn:hover { background: #0a7f5c; }
.gss-pager { margin-top: 28px; }
.gss-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gss-page .gss-pager a, .gss-page .gss-pager span { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--gsn-line, #dfe9e5); color: var(--gsn-navy, #152d53); text-decoration: none; font-weight: 500; justify-content: center; }
.gss-page .gss-pager a:hover { border-color: var(--gsn-green, #0c936a); color: var(--gsn-green, #0c936a); }
.gss-page .gss-pager .current { background: var(--gsn-green, #0c936a); border-color: var(--gsn-green, #0c936a); color: #fff; }
.gss-pager .gsn-ic { width: 16px; height: 16px; }
.gss-empty { font-size: 1.05rem; color: var(--gsn-muted, #63788a); margin: 0; }
.gss-page :focus-visible { outline: 3px solid var(--gsn-green, #0c936a); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .gss-page .gss-quick, .gss-page .gss-cat, .gss-page .gss-card a { transition: none; } }

@media (min-width: 640px) {
  .gss-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gss-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gss-grid-2, .gss-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gss-community { flex-direction: row; text-align: start; justify-content: space-between; padding: 28px 32px; }
  .gss-community-text { flex: 1 1 auto; }
}
@media (min-width: 1025px) {
  .gss-wrap { padding-inline: 24px; }
  .gss-hero { padding-block: 72px 96px; }
  .gss-hero-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .gss-hero-text { flex: 1 1 55%; }
  .gss-hero-art { flex: 0 1 40%; display: flex; justify-content: center; }
  .gss-hero-art img { width: min(420px, 100%); }
  .gss-hero.is-compact { padding-block: 48px 52px; }
  .gss-quicks { padding-top: 56px; }
  .gss-quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .gss-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .gss-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gss-section { padding-block: 56px; }
}
