/* Archive-page section system for the remaining public pages. */
main.remaining-page {
  --rp-navy: #0b2440;
  --rp-ink: #17354f;
  --rp-muted: #536b81;
  --rp-teal: #008995;
  --rp-line: #d5e7ef;
  --rp-shadow: 0 24px 42px -32px rgb(11 36 64 / 42%), 0 8px 20px -17px rgb(11 36 64 / 18%), inset 0 1px 0 #fff;
  background: #fff;
}

:root body main.remaining-page > section.remaining-content-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(58px, 6.3vw, 100px) 0;
  border: 0;
  border-top: 1px solid #e8f0f5;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}
:root body main.remaining-page > section.remaining-content-section:nth-of-type(2n) {
  background: linear-gradient(180deg, #f5fafe 0%, #f2f8fb 100%);
}
:root body main.remaining-page > section.remaining-content-section::before,
:root body main.remaining-page > section.remaining-content-section::after { display: none; }
main.remaining-page > .remaining-content-section > .remaining-section-inner {
  position: relative;
  width: min(1248px, calc(100% - 80px));
  max-width: none;
  margin: 0 auto;
  padding: 0;
}
/* The existing first-step panels now use the same material as section cards. */
:root body main.remaining-page > .remaining-hero-followup {
  width: min(1248px, calc(100% - 80px));
  max-width: none;
  margin: 24px auto 0;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--rp-line);
  border-radius: 22px;
  background: radial-gradient(circle at 88% 0%, #edfafe, transparent 42%), linear-gradient(145deg, #fff, #f8fcfe);
  box-shadow: var(--rp-shadow);
}
:root body main.remaining-page > .remaining-hero-followup .eyebrow {
  width: fit-content;
  border: 1px solid #c7e3eb;
  border-radius: 8px;
  background: #f0fbfd;
  color: #007783;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
}
:root body main.remaining-page > .remaining-hero-followup h2 {
  color: var(--rp-navy);
  font-size: clamp(25px, 2.3vw, 33px);
  line-height: 1.18;
  font-weight: 730;
  letter-spacing: -.03em;
}
:root body main.remaining-page > .remaining-hero-followup :is(p, li) {
  color: var(--rp-muted);
  line-height: 1.65;
}
:root body main.remaining-page > .remaining-hero-followup .compact-list a {
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f5fbfd);
  box-shadow: 0 13px 23px -20px rgb(11 36 64 / 42%), inset 0 1px 0 #fff;
}

/* The heading, short introduction and grid follow the same rhythm as archive pages. */
main.remaining-page .remaining-section-inner > .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  grid-template-rows: auto auto;
  align-items: end;
  gap: 0 clamp(30px, 5vw, 80px);
  max-width: none;
  margin: 0 0 30px;
  padding: 0;
  text-align: left;
}
main.remaining-page .remaining-section-inner > .section-header > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin: 0 0 15px;
}
:root body main.remaining-page .remaining-section-inner > .section-header > h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 710px;
  margin: 0;
  color: var(--rp-navy);
  font-size: clamp(29px, 2.8vw, 42px);
  line-height: 1.14;
  font-weight: 730;
  letter-spacing: -.035em;
  text-wrap: balance;
}
:root body main.remaining-page .remaining-section-inner > .section-header > p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 520px;
  margin: 0 0 3px;
  color: var(--rp-muted);
  font-size: 16px;
  line-height: 1.7;
}
:root body main.remaining-page .remaining-content-section .eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid #c7e3eb;
  border-radius: 8px;
  background: #f0fbfd;
  color: #007783;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
  letter-spacing: .075em;
  text-transform: uppercase;
  box-shadow: none;
}
:root body main.remaining-page .remaining-content-section .eyebrow::before { display: none; }

/* Editorial introduction: a strong proposition with readable source material. */
main.remaining-page .rich-intro-section > .remaining-section-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  gap: 0 clamp(40px, 6vw, 100px);
  align-items: start;
}
main.remaining-page .rich-intro-section > .remaining-section-inner > .eyebrow { grid-column: 1; grid-row: 1; margin: 0 0 18px; }
:root body main.remaining-page .rich-intro-section > .remaining-section-inner > h2 {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.14;
  letter-spacing: -.035em;
  text-wrap: balance;
}
main.remaining-page .rich-intro-section > .remaining-section-inner > .rich-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: none;
  margin: 0;
  padding: 5px 0 0 clamp(20px, 2vw, 32px);
  border-left: 2px solid #a7dbe5;
}
:root body main.remaining-page .rich-intro-section .rich-copy p {
  margin: 0 0 18px;
  color: var(--rp-muted);
  font-size: 16px;
  line-height: 1.78;
}
main.remaining-page .rich-intro-section .rich-copy p:last-child { margin-bottom: 0; }

/* Information, decision and process cards. */
main.remaining-page .remaining-section-inner > :is(.card-grid, .news-grid, .promotion-grid, .pricing-service-grid, .pricing-tier-grid, .pricing-factor-grid, .team-grid, .service-tree-grid, .promotion-condition-grid) {
  margin-top: 0;
  gap: clamp(14px, 1.6vw, 20px);
}
:root body main.remaining-page .remaining-content-section :is(.glass-card, .news-card, .service-tree-group, .tax-calendar-entry, .pricing-tier, .pricing-service, .promotion-card) {
  position: relative;
  min-width: 0;
  border: 1px solid var(--rp-line);
  border-radius: 21px;
  background: radial-gradient(circle at 8% 0%, #fff 0, #fff 43%, #f8fcfe 100%);
  box-shadow: var(--rp-shadow);
  color: var(--rp-ink);
  overflow: hidden;
}
:root body main.remaining-page .remaining-content-section :is(.glass-card, .news-card, .service-tree-group, .pricing-tier, .pricing-service, .promotion-card)::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#1fb6c1, #008995);
  content: "";
  pointer-events: none;
}
:root body main.remaining-page .remaining-content-section :is(.glass-card, .news-card) {
  padding: clamp(23px, 2.5vw, 32px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  :root body main.remaining-page .remaining-content-section :is(a.glass-card, .news-card):hover {
    transform: translateY(-3px);
    border-color: #a7cfdb;
    box-shadow: 0 32px 48px -30px rgb(11 36 64 / 37%), inset 0 1px 0 #fff;
  }
}
:root body main.remaining-page .remaining-content-section .glass-card > span:first-child {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 0 0 22px;
  padding: 0;
  border: 1px solid #bddfe9;
  border-radius: 12px;
  background: linear-gradient(145deg, #eaf9fc, #fff);
  color: #007783;
  font-size: 12px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 #fff, 0 12px 18px -18px rgb(11 36 64 / 70%);
}
:root body main.remaining-page .remaining-content-section .rich-step-grid .glass-card > span:first-child {
  display: grid;
  margin-inline: auto;
  border-radius: 50%;
}
:root body main.remaining-page .remaining-content-section .glass-card h3 {
  margin: 0 0 11px;
  color: var(--rp-navy);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.27;
  font-weight: 710;
  letter-spacing: -.022em;
}
:root body main.remaining-page .remaining-content-section .glass-card :is(p, li) {
  color: var(--rp-muted);
  font-size: 15px;
  line-height: 1.7;
}
main.remaining-page .remaining-content-section .glass-card p:last-child { margin-bottom: 0; }
main.remaining-page .remaining-content-section .related-card { text-decoration: none; }
main.remaining-page .remaining-content-section .related-card::after {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #c6e4ea;
  border-radius: 9px;
  background: #f0fafc;
  color: #007783;
  content: "→";
  font-size: 18px;
  line-height: 1;
}
main.remaining-page .remaining-content-section .faq-card { min-height: 0; }
main.remaining-page .remaining-content-section .faq-card h3 { font-size: 18px; }

/* Conversion and navigation sections are quieter than the service narrative. */
main.remaining-page .remaining-content-section .lead-capture-form {
  border: 1px solid #cbdfe8;
  border-radius: 22px;
  background: linear-gradient(145deg, rgb(255 255 255 / 96%), #f9fcfe);
  box-shadow: var(--rp-shadow);
  padding: clamp(24px, 3vw, 40px);
}
main.remaining-page .remaining-content-section .lead-capture-form :is(input, textarea, select) {
  border-color: #bfdae4;
  border-radius: 10px;
  background: #fff;
  color: var(--rp-navy);
}
main.remaining-page .lead-form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  pointer-events: none !important;
}
main.remaining-page .remaining-content-section :is(.service-tree-group, .pricing-tier, .pricing-service, .promotion-card) { padding: clamp(22px, 2.4vw, 30px); }
main.remaining-page .remaining-content-section .service-tree-group-head a,
main.remaining-page .remaining-content-section .pricing-group-header h2 { color: var(--rp-navy); }
main.remaining-page .remaining-content-section .service-tree-links a {
  min-height: 46px;
  border-bottom: 1px solid #e4eef3;
  color: var(--rp-ink);
}
main.remaining-page .remaining-content-section .service-tree-links a:last-child { border-bottom: 0; }
main.remaining-page .remaining-content-section .service-tree-links a b { color: var(--rp-teal); }
main.remaining-page .remaining-content-section .news-card .news-meta { color: #007783; font-size: 12px; font-weight: 700; }
main.remaining-page .remaining-content-section .news-card h3 { font-size: 21px; line-height: 1.3; }
main.remaining-page .remaining-content-section .news-card h3 a { color: var(--rp-navy); text-decoration: none; }
main.remaining-page .remaining-content-section .news-card p { color: var(--rp-muted); font-size: 15px; line-height: 1.65; }
main.remaining-page .remaining-content-section .news-more { color: #007783; font-weight: 710; }
main.remaining-page .remaining-content-section .calendar-promo {
  border: 1px solid #cde2eb;
  border-radius: 24px;
  background: radial-gradient(circle at 85% 16%, #e8f8fa, transparent 35%), #fff;
  box-shadow: var(--rp-shadow);
}
main.remaining-page .remaining-content-section .promotion-condition-grid { align-items: stretch; }
main.remaining-page .remaining-content-section :is(.pricing-group-header, .news-feed-bar) { margin-bottom: 22px; }
main.remaining-page .remaining-content-section .actions { margin-top: 26px; }
main.remaining-page .remaining-content-section .actions .button { min-height: 46px; }

@media (max-width: 899px) {
  main.remaining-page > .remaining-content-section > .remaining-section-inner { width: min(1248px, calc(100% - 48px)); }
  :root body main.remaining-page > .remaining-hero-followup { width: min(1248px, calc(100% - 48px)); }
  main.remaining-page .remaining-section-inner > .section-header { grid-template-columns: 1fr; gap: 0; }
  :root body main.remaining-page .remaining-section-inner > .section-header > p:not(.eyebrow) { grid-column: 1; grid-row: 3; max-width: 760px; margin-top: 14px; }
  main.remaining-page .rich-intro-section > .remaining-section-inner { grid-template-columns: 1fr; }
  main.remaining-page .rich-intro-section > .remaining-section-inner > :is(.eyebrow, h2, .rich-copy) { grid-column: 1; grid-row: auto; }
  main.remaining-page .rich-intro-section > .remaining-section-inner > .rich-copy { margin-top: 22px; padding-left: 22px; }
}
@media (max-width: 599px) {
  :root body main.remaining-page > section.remaining-content-section { padding: 50px 0; }
  main.remaining-page > .remaining-content-section > .remaining-section-inner { width: calc(100% - 36px); }
  :root body main.remaining-page > .remaining-hero-followup { width: calc(100% - 36px); margin-top: 16px; padding: 22px; border-radius: 18px; }
  :root body main.remaining-page .remaining-section-inner > .section-header > h2 { font-size: 29px; }
  :root body main.remaining-page .remaining-section-inner > .section-header > p:not(.eyebrow) { font-size: 15px; }
  main.remaining-page .remaining-section-inner > .section-header { margin-bottom: 23px; }
  :root body main.remaining-page .remaining-content-section :is(.glass-card, .news-card, .service-tree-group, .pricing-tier, .pricing-service, .promotion-card) { border-radius: 18px; }
  :root body main.remaining-page .remaining-content-section :is(.glass-card, .news-card) { padding: 22px; }
  :root body main.remaining-page .remaining-content-section .glass-card > span:first-child { margin-bottom: 16px; }
}

@media print {
  :root body main.remaining-page > section.remaining-content-section { padding: 25px 0; background: #fff; }
  main.remaining-page .remaining-content-section :is(.glass-card, .news-card, .service-tree-group) { box-shadow: none; break-inside: avoid; }
}
