:root {
  --bg: #f1eee8;
  --surface: #fffdf7;
  --ink: #232725;
  --muted: #656b64;
  --line: #ded8cc;
  --accent: #007f70;
  --accent-dark: #124c34;
  --orange: #007f70;
  --gold: #b87918;
  --sunset: #2f6f44;
  --rose: #9c3f32;
  --soft: #e7f2eb;
  --shadow: 0 14px 34px rgba(35, 39, 37, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #56d7c2);
  color: white;
  font-size: 0.82rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--orange);
}

.header-action {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 7px 14px;
  text-decoration: none;
}

.header-action:hover {
  background: var(--soft);
}

main {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 32px 0 22px;
}

.hero-content,
.hero-panel,
.tool-card,
.devotional-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.top-banner {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #eef8f6);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.banner-title {
  padding: 28px 18px 10px;
  color: var(--accent-dark);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.banner-subtitle {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.banner-button {
  margin: 0 auto 28px;
}

.site-search {
  display: grid;
  gap: 8px;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto 18px;
  text-align: left;
}

.site-search label {
  color: var(--ink);
  font-size: 0.86rem;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row input {
  min-height: 52px;
  font-size: 1rem;
}

.search-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.banner-rule {
  height: 7px;
  background: linear-gradient(90deg, var(--accent), #8fe1d3, var(--accent));
}

.hero-content {
  display: grid;
  justify-items: center;
  min-height: 460px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(244, 247, 250, 0.96)),
    radial-gradient(circle at 50% 20%, rgba(0, 168, 135, 0.18), transparent 34%),
    radial-gradient(circle at 72% 42%, rgba(86, 215, 194, 0.22), transparent 30%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: var(--ink);
  text-align: center;
  border-color: var(--accent);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  font-size: 1.08rem;
}

.eyebrow,
.section-kicker,
.panel-label {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: var(--orange);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 18px;
}

.hero-actions a {
  text-decoration: none;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--accent);
  font-weight: 800;
  padding: 10px 18px;
  text-decoration: none;
}

.secondary-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.scripture-strip {
  width: min(760px, 100%);
  margin-top: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.scripture-strip span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scripture-strip blockquote {
  margin: 10px auto;
  font-size: 1.05rem;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

blockquote {
  margin: 20px 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--orange);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.tools-overview {
  padding: 26px 0 18px;
}

.page-hero {
  margin: 32px 0 18px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(244, 247, 250, 0.96)),
    radial-gradient(circle at 52% 18%, rgba(0, 168, 135, 0.18), transparent 34%),
    radial-gradient(circle at 78% 48%, rgba(86, 215, 194, 0.2), transparent 30%);
  box-shadow: var(--shadow);
  text-align: center;
}

.page-hero h1 {
  max-width: 860px;
  margin: 8px auto 12px;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.single-tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
}

.single-tool .tool-card {
  width: min(860px, 100%);
  margin: 0 auto;
}

.single-tool .calculator-card {
  grid-row: auto;
}

.sales-tax-card {
  max-width: 520px;
}

.field-stack {
  display: grid;
  gap: 14px;
}

.info-label {
  color: var(--ink);
  font-size: 1rem;
}

.info-label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-button {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid #82a5ff;
  border-radius: 50%;
  background: white;
  color: #315cff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}

.info-button:hover {
  background: #eef4ff;
}

.field-help {
  margin: -8px 0 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.input-with-unit:focus-within {
  border-color: #9bb2ff;
  box-shadow: 0 0 0 3px rgba(49, 92, 255, 0.1);
}

.input-with-unit input,
.input-with-unit select {
  border: 0;
  border-radius: 0;
  min-height: 44px;
}

.input-with-unit input[readonly] {
  color: #315cff;
  font-weight: 800;
}

.input-with-unit select,
.unit-suffix {
  width: auto;
  min-width: 86px;
  border-left: 1px solid var(--line);
  color: #315cff;
  font-weight: 800;
}

.unit-suffix {
  display: grid;
  place-items: center;
  padding: 0 12px;
}

.cost-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cost-section summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.paint-card {
  max-width: 560px;
}

.paint-section {
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.paint-section summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.reset-button {
  width: 100%;
  margin-top: 4px;
}

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

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.radio-row input {
  width: auto;
  min-height: auto;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.hidden {
  display: none !important;
}

.calculator-results {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.calculator-results p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.calculator-results span {
  color: #315cff;
  font-weight: 800;
  text-align: right;
}

.time-entry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.info-dialog {
  width: min(360px, calc(100% - 34px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.info-dialog::backdrop {
  background: rgba(33, 36, 39, 0.28);
}

.info-dialog p {
  margin: 0 0 16px;
  color: var(--ink);
}

.dialog-close {
  min-height: 38px;
}

.ad-slot {
  display: grid;
  min-height: 96px;
  place-items: center;
  margin: 16px 0;
  border: 1px dashed rgba(75, 15, 107, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intent-section {
  margin: 18px 0 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

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

.intent-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculator-link.search-hidden {
  display: none;
}

.utility-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.utility-strip h2,
.utility-strip p,
.quick-list-wrap h3 {
  margin-top: 0;
}

.utility-strip p {
  color: var(--muted);
}

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

.quick-list {
  display: grid;
  gap: 8px;
}

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

.cluster-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.cluster-card h3 {
  margin: 0;
  color: var(--accent-dark);
}

.quick-list a,
.quick-empty {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.quick-empty {
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  padding: 18px 0;
}

.calculator-layout .single-tool {
  padding: 0;
}

.content-section,
.related-section {
  margin: 18px 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.content-section h2,
.related-section h2 {
  margin-top: 0;
}

.content-section p,
.content-section li {
  color: var(--muted);
}

.tip-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.formula-block {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f7fbfc;
  font-weight: 800;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-table th,
.reference-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.reference-table th {
  background: var(--soft);
  color: var(--accent-dark);
}

.asset-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.asset-plan-grid article,
.result-summary .practical-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
  padding: 14px;
}

.asset-plan-grid h3 {
  margin-top: 0;
  color: var(--accent-dark);
}

.result-summary {
  display: grid;
  gap: 10px;
}

.result-summary p {
  align-items: center;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 13px;
}

.icon-button:hover,
.icon-button.active {
  border-color: var(--accent);
  background: var(--soft);
}

.desktop-ad {
  position: sticky;
  top: 86px;
}

.section-heading.center {
  max-width: 680px;
  margin: 0 auto 18px;
  text-align: center;
}

.section-heading.center p {
  margin: 0;
  color: var(--muted);
}

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

.overview-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.48);
}

.overview-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
}

.overview-card strong {
  align-self: end;
  color: var(--orange);
}

.overview-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--orange));
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
}

.category-hub {
  margin: 18px 0 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 22px;
}

.category-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbfc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 16px;
}

.category-tab.active,
.category-tab:hover {
  border-color: var(--accent);
  background: var(--soft);
  color: var(--accent-dark);
}

.category-panel {
  display: none;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: start;
}

.category-panel.active {
  display: grid;
}

.category-summary {
  padding: 20px;
  border-radius: 8px;
  background: #f7fbfc;
  border: 1px solid var(--line);
}

.category-summary h3 {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 1.45rem;
}

.category-summary p {
  margin: 0;
  color: var(--muted);
}

.calculator-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.subcategory-list {
  display: grid;
  gap: 24px;
}

.subcategory-group {
  display: grid;
  gap: 12px;
}

.subcategory-group h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 168, 135, 0.28);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(180deg, #f5fffc, #e7f7f3);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subcategory-group h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 168, 135, 0.12);
}

.calculator-link,
.planned-link {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
}

.calculator-link:hover {
  border-color: var(--accent);
  background: #fbfefd;
}

.calculator-link strong,
.planned-link strong {
  color: var(--accent-dark);
}

.calculator-link span,
.planned-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.planned-link {
  opacity: 0.72;
}

.planned-badge {
  width: fit-content;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 0;
}

.tool-card {
  padding: 24px;
}

.tool-card.wide {
  grid-column: span 2;
}

.calculator-card {
  grid-row: span 2;
}

.section-heading h2,
.devotional-band h2 {
  margin: 4px 0 16px;
  font-size: 1.45rem;
}

.coin-stage {
  display: grid;
  min-height: 180px;
  place-items: center;
}

.coin {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 8px solid var(--orange);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe59a, var(--gold) 54%, #f38a10);
  color: var(--accent-dark);
  font-size: 2.3rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.25);
  transition: transform 0.5s ease;
}

.coin.flipping {
  transform: rotateY(720deg) scale(1.06);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #32c6b0);
  color: white;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 18px;
  text-decoration: none;
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
}

textarea {
  resize: vertical;
}

.big-result {
  min-height: 42px;
  margin: 18px 0 0;
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
}

.currency-rate-status {
  min-height: 24px;
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.result-line,
.note {
  color: var(--muted);
}

.note {
  margin-top: -6px;
}

.calc-display {
  min-height: 56px;
  margin-bottom: 12px;
  text-align: right;
  font-size: 1.5rem;
  font-weight: 800;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.calc-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.calc-grid button.operator {
  background: var(--soft);
  color: var(--orange);
}

.calc-grid button.danger {
  background: #f8e8ff;
  color: var(--rose);
}

.devotional-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 28px;
  align-items: start;
  margin: 20px 0 34px;
  padding: clamp(24px, 4vw, 42px);
}

.devotional-card {
  display: grid;
  gap: 12px;
}

.devotional-card blockquote {
  margin: 0;
}

.devotional-card p {
  margin: 0;
}

.devotional-date {
  color: var(--orange);
  font-weight: 800;
}

.seo-content,
.faq-section {
  margin: 20px 0 34px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.seo-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
}

.seo-grid h3 {
  margin: 0 0 8px;
  color: var(--accent);
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.faq-section details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-disclaimer p {
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .devotional-band {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .category-panel {
    grid-template-columns: 1fr;
  }

  .calculator-link-grid,
  .intent-grid,
  .intent-grid.compact,
  .asset-plan-grid,
  .utility-strip,
  .calculator-layout,
  .quick-list-wrap,
  .cluster-grid {
    grid-template-columns: 1fr;
  }

  .tool-card.wide {
    grid-column: span 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .page-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin-right: -16px;
    margin-left: -16px;
    padding: 10px 16px;
    border-top: 1px solid var(--line);
    background: rgba(244, 247, 250, 0.96);
    backdrop-filter: blur(10px);
  }

  .nav-links {
    justify-content: flex-start;
  }

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

  .calc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 18px;
}

.trust-row span,
.use-case-grid span,
.use-case-grid a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 10px;
  text-decoration: none;
}

.use-case-grid a:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.use-case-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.guide-table th,
.guide-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.callout-section {
  border-left: 5px solid var(--accent);
}

.source-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.source-list a {
  color: var(--accent-dark);
  font-weight: 800;
}

.intent-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.intent-section:nth-of-type(even) {
  background: #f9f6ef;
}

.intent-section .section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

#popular .calculator-link,
.trending-section .calculator-link {
  min-height: 132px;
  border-color: rgba(18, 76, 52, 0.22);
  background: linear-gradient(145deg, rgba(255,253,247,0.92), rgba(231,242,235,0.92));
  box-shadow: 0 12px 24px rgba(35, 39, 37, 0.08);
}

#popular .calculator-link::before,
.trending-section .calculator-link::before,
.cluster-card .quick-list a::before {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 76, 52, 0.9), rgba(0, 127, 112, 0.82)),
    url("assets/easycalc4u-logo.svg") center/cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

#popular .calculator-link:hover,
.trending-section .calculator-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(35, 39, 37, 0.13);
}

.search-suggestions {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.search-suggestions.active {
  display: grid;
}

.search-suggestions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.expanded-footer {
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(160px, 0.8fr));
  gap: 24px;
  padding-top: 38px;
}

.expanded-footer nav {
  align-content: start;
}

.footer-brand p {
  max-width: 420px;
}

.why-use-section .use-case-grid {
  justify-content: flex-start;
}

.calculator-result-plan,
.planning-checklist {
  margin: 18px 0 26px;
}

.plan-card,
.checklist-card {
  background: var(--surface);
  border: 1px solid rgba(18, 76, 52, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(35, 39, 37, 0.08);
  padding: clamp(18px, 3vw, 26px);
}

.plan-card-header,
.checklist-header {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-card-header h2,
.checklist-header h2 {
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0;
  margin: 0;
}

.plan-badge {
  align-self: start;
  background: #e7f2eb;
  border: 1px solid rgba(18, 76, 52, 0.18);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 10px;
  width: fit-content;
}

.plan-main-result {
  align-items: center;
  background: linear-gradient(135deg, rgba(18, 76, 52, 0.96), rgba(0, 127, 112, 0.92));
  border-radius: 8px;
  color: #fffdf7;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin: 14px 0;
  padding: 16px;
}

.plan-main-result span {
  font-weight: 800;
}

.plan-main-result strong {
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0;
}

.plan-next-steps,
.checklist-items {
  display: grid;
  gap: 10px;
}

.plan-next-steps {
  margin: 14px 0;
  padding-left: 20px;
}

.plan-caution,
.checklist-note {
  background: #fff8e8;
  border: 1px solid rgba(203, 132, 24, 0.24);
  border-radius: 8px;
  color: #51380d;
  font-weight: 750;
  margin: 14px 0 0;
  padding: 12px 14px;
}

.plan-related-action {
  color: var(--accent-dark);
  display: inline-flex;
  font-weight: 900;
  margin-top: 14px;
  text-decoration: none;
}

.plan-related-action:hover {
  text-decoration: underline;
}

.checklist-item {
  align-items: flex-start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.checklist-item input {
  accent-color: var(--accent);
  flex: 0 0 auto;
  height: 20px;
  margin-top: 1px;
  width: 20px;
}

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 920px) {
  .expanded-footer,
  .search-suggestions {
    grid-template-columns: 1fr;
  }

  .plan-main-result {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-links,
  .page-actions,
  .ad-slot,
  .desktop-ad,
  .plan-related-action,
  .checklist-actions {
    display: none !important;
  }

  .calculator-result-plan,
  .planning-checklist,
  .plan-card,
  .checklist-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .plan-main-result {
    background: #fff;
    border: 1px solid #222;
    color: #111;
  }
}


.homepage-hero {
  margin-bottom: 0;
  text-align: center;
}

.search-directory-section {
  margin-top: 22px;
}

.priority-grid .featured-tool-card {
  border-color: rgba(0, 120, 92, 0.28);
  min-height: 150px;
}

.featured-tool-card strong {
  font-size: 1.05rem;
}

.single-tool input,
.single-tool select,
.single-tool button,
.site-search input,
.site-search button {
  min-height: 44px;
}

@media (max-width: 720px) {
  .page-hero.homepage-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intent-grid,
  .cluster-grid,
  .calculator-link-grid,
  .quick-list {
    grid-template-columns: 1fr;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }
}
