/* Shared detail-page layouts and site-wide navigation. No build step required. */
.header-inner {
  gap: 22px;
}

.brand {
  width: 235px;
}

#primary-nav {
  gap: 22px;
}

#primary-nav > a,
.nav-services > summary {
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: .88rem;
  color: var(--navy);
}

#primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-services {
  position: relative;
}

.nav-services > summary {
  cursor: pointer;
  gap: 7px;
  list-style: none;
}

.nav-services > summary::-webkit-details-marker {
  display: none;
}

.nav-services > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.nav-services[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.services-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -18px;
  z-index: 5;
  min-width: 240px;
  padding: 10px;
  border: 1px solid #d4dde1;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 8px 24px #102e5018;
}

.services-menu a {
  display: block;
  padding: 12px 10px;
  border-radius: 2px;
}

.services-menu a:hover {
  background: #eaf0f2;
}

summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d99b22;
  outline-offset: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-bottom: 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .8rem;
}

.page-hero {
  padding: 64px 0 58px;
  border-top: 1px solid #edf0f1;
  border-bottom: 1px solid #dce3e6;
  background: linear-gradient(115deg, #f6f7f5 15%, #e5edf1);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
  max-width: 1000px;
  margin-bottom: 24px;
}

.page-intro {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0;
}

.rps-banner-logo img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  /* Offset the SVG's empty left artboard margin without changing the logo size. */
  transform: translateX(-12.16%);
}

.tone-green {
  background: linear-gradient(115deg, #f6f7f5 15%, #e6ede5);
}

.tone-red {
  background: linear-gradient(115deg, #f9f7f4 15%, #f0e4df);
}

.page-hero ~ .section-pad {
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-hero ~ .contact {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.content-panel {
  height: 100%;
  padding: 32px;
  border: 1px solid #d4dfe3;
  border-radius: 5px;
  background: var(--paper);
}

.content-panel > .icon {
  color: var(--blue);
  margin-bottom: 22px;
}

.content-panel h3 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.content-panel p:last-child,
.related-panel p:last-child {
  margin-bottom: 0;
}

.audience-panels .content-panel {
  border-top: 4px solid var(--blue);
}

.soft-section {
  background: #eef2f2;
}

.split-content {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 8%;
  align-items: start;
}

.split-content > div,
.service-copy {
  max-width: 750px;
}

.split-content .btn {
  margin-top: 8px;
}

.related-panel {
  padding: 30px;
  background: #edf1f2;
  border-left: 3px solid #a6bbc6;
}

.soft-section .related-panel {
  background: var(--paper);
}

.related-panel h3 {
  line-height: 1.25;
}

.related-links {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.related-links li + li {
  border-top: 1px solid #ccd7dd;
}

.related-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.partner-panel {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.partner-panel .btn {
  margin-top: auto;
}

.partner-panel--centered {
  align-items: center;
  text-align: center;
}

.partner-logo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 24px;
}

.partner-monogram {
  font-family: Georgia, serif;
  color: var(--blue);
  font-size: 1.15rem;
  letter-spacing: .05em;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  border: 1px solid #b4c6d0;
  border-radius: 50%;
}

.section-note,
.field-note {
  font-size: .88rem;
  line-height: 1.5;
}

.section-note {
  margin: 22px 0 0;
}

.insurance-partner {
  border-top: 4px solid var(--green);
}

.insurance-partner > .icon {
  color: var(--green);
}

.text-measure {
  max-width: 1050px;
}

.resource-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.resource-layout > div {
  max-width: 690px;
}

.resource-layout h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.resource-layout p:last-child {
  margin-bottom: 0;
}

.resource-layout .btn {
  flex-shrink: 0;
}

.organizer-section {
  background: #faf3ee;
  border-bottom: 1px solid #e6d4cb;
}

.tax-organizer-button {
  margin-top: 28px;
  padding: 16px 28px;
  font-size: 1.05rem;
  gap: 12px;
  max-width: 100%;
  flex-wrap: wrap;
}

.tax-organizer-button .icon {
  width: 26px;
  height: 28px;
}

.tax-organizer-button .pdf-label {
  font-size: .8rem;
}

.principle-panel {
  padding: 36px;
  background: var(--navy);
  color: white;
}

.principle-panel h3 {
  font-size: 2rem;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.principle-panel .eyebrow {
  color: #d7e4ec;
}

.principle-panel p:last-child {
  margin-bottom: 0;
}

.pillar-blue {
  border-top: 4px solid var(--blue);
}

.pillar-green {
  border-top: 4px solid var(--green);
}

.pillar-green > .icon {
  color: var(--green);
}

.pillar-red {
  border-top: 4px solid var(--red);
}

.pillar-red > .icon {
  color: var(--red);
}

/* The six original planning steps, arranged as an ongoing cycle on wide screens. */
.planning-cycle {
  max-width: 1020px;
  margin: 42px auto 0;
  position: relative;
  min-height: 780px;
}

.planning-cycle::before {
  content: '';
  position: absolute;
  inset: 90px 100px;
  border: 2px solid #b5c8d0;
  border-radius: 50%;
}

.cycle-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid #b5c8d0;
  color: var(--navy);
  text-align: center;
  background: var(--paper);
}

.cycle-center > span {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 14px 0;
}

.cycle-center small {
  font-size: .75rem;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-steps li {
  position: absolute;
  width: 28%;
  padding: 24px 22px;
  border: 1px solid #d0dce0;
  border-radius: 8px;
  background: var(--paper);
}

.process-steps li:nth-child(1) { top: 0; left: 36%; }
.process-steps li:nth-child(2) { top: 26%; right: 0; }
.process-steps li:nth-child(3) { bottom: 9%; right: 0; }
.process-steps li:nth-child(4) { bottom: 0; left: 36%; }
.process-steps li:nth-child(5) { bottom: 9%; left: 0; }
.process-steps li:nth-child(6) { top: 26%; left: 0; }

.step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: .95rem;
  margin-bottom: 14px;
}

.process-steps h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.process-steps p {
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 6%;
  align-items: center;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border: 1px solid #bacad2;
}

.video-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 6%;
  align-items: start;
}

.story-heading {
  max-width: 370px;
}

.story-copy {
  max-width: 70ch;
  font-size: 1.07rem;
  line-height: 1.8;
}

.story-copy p {
  margin-bottom: 1.4em;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 8%;
  align-items: start;
}

.office-panel {
  padding: 30px;
  background: #edf1f2;
  border-top: 4px solid var(--blue);
}

.office-panel h2 {
  font-size: 2rem;
}

.office-panel address {
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-details dd {
  margin-bottom: 20px;
}

.contact-details a {
  overflow-wrap: anywhere;
}

.form-notice {
  padding: 16px;
  border-left: 3px solid #a9864f;
  background: #f5eedf;
  font-size: .9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-top: 22px;
}

label {
  display: inline-block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

label .field-note {
  font-weight: normal;
}

.form-control {
  border-color: #8198a6;
  border-radius: 3px;
  min-height: 46px;
  background: white;
  color: var(--navy);
}

textarea.form-control {
  resize: vertical;
}

#form-privacy {
  margin-top: 16px;
}

.form-status {
  margin: 18px 0 0;
  font-size: .95rem;
}

.form-status:empty {
  display: none;
}

/* Collapse navigation before the desktop header becomes crowded. */
@media (min-width: 1100px) and (max-width: 1279px) {
  .header-inner { flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
  .header-cta { display: none; }
  .menu-toggle:not([hidden]) { display: block; }
  #primary-nav { width: 100%; flex-wrap: wrap; }
  .navigation-ready #primary-nav { display: none; }
  .navigation-ready:has(.menu-toggle[aria-expanded="true"]) #primary-nav { display: flex; }
}

@media (max-width: 1279px) {
  #primary-nav { align-items: stretch; gap: 0; flex-direction: column; }
  #primary-nav > a, .nav-services > summary { padding: 12px 0; }
  .services-menu { position: static; box-shadow: none; margin: 0 0 12px; min-width: 0; }
  .resource-layout { flex-direction: column; align-items: start; gap: 24px; }
}

@media (max-width: 999px) {
  .planning-cycle { min-height: 0; margin-top: 30px; }
  .planning-cycle::before, .cycle-center { display: none; }
  .process-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .process-steps li { position: static; width: auto; }
}

@media (max-width: 767px) {
  .split-content, .video-layout, .story-layout, .contact-page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .page-hero { padding: 44px 0; }
  .page-hero ~ .section-pad { padding-top: 40px; padding-bottom: 40px; }
  .story-heading { max-width: 100%; }
  .story-copy { font-size: 1rem; }
  .content-panel, .related-panel, .principle-panel, .office-panel { padding: 26px; }
}

@media (max-width: 575px) {
  .brand { width: 180px; max-width: calc(100% - 90px); }
  .header-inner { gap: 12px; }
  .page-hero h1 { font-size: 2.45rem; }
  .page-intro { font-size: 1.03rem; }
  .process-steps, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .process-steps li { padding: 22px; }
  .resource-layout .btn { width: 100%; gap: 7px; flex-wrap: wrap; }
  .partner-panel .btn, .insurance-partner .btn { width: 100%; }
  .footer-links { display: grid; gap: 0; }
  .contact-layout .btn { white-space: normal; }
}
