/* ==========================================================================
   Sheppard Morris CPAs: C2 inner pages layer (loaded after css/c2.css on the
   inner pages only; the homepage does not load it). CONFIDENTIAL to RJP.design.
   Same system as the C2 homepage: tokens from css/themes/sm-blue.css, Forum
   display + Rethink Sans body, white base, pale-blue alternate (#EFF4FB), navy
   headings, one action blue for links, the four-bar mark, r10 buttons,
   16px-radius hairline cards. Our own code.
   Templates: service, controversy, industry, resource, careers, form.
   ========================================================================== */

/* --- Page hero: white, type-led (the homepage hero's style at page scale) -------------------- */
.pg-hero { background: #fff; padding: clamp(128px, 4vw + 88px, 148px) 0 clamp(44px, 4vw, 64px); }
.pg-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 clamp(24px, 2.4vw, 36px); padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--c-muted); }
.pg-crumbs li { display: inline-flex; align-items: center; }
.pg-crumbs li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px; border-top: 1.2px solid var(--c-sky); border-right: 1.2px solid var(--c-sky); transform: rotate(45deg); }
.pg-crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--c-blue); text-decoration: none; }
.pg-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pg-crumbs [aria-current] { color: var(--c-ink); }

.pg-hero__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
.pg-hero__title {
  font-family: var(--c2-display); font-weight: 400; color: var(--c-navy, var(--c-ink));
  letter-spacing: -0.01em; font-variant-numeric: lining-nums; text-wrap: balance;
}
.pg-hero__title--xl { font-size: clamp(44px, 3.6vw + 26px, 88px); line-height: 1.0; }
.pg-hero__title--l { font-size: clamp(40px, 2.6vw + 22px, 68px); line-height: 1.04; max-width: 18em; }
.pg-hero__title--m { font-size: clamp(34px, 1.8vw + 20px, 54px); line-height: 1.08; max-width: 22em; }
.pg-hero__title--s { font-size: clamp(30px, 1.2vw + 20px, 44px); line-height: 1.12; max-width: 30em; }
.pg-mark { width: clamp(64px, 3vw + 32px, 84px); margin-bottom: 0.2em; }

.pg-hero__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px clamp(40px, 5vw, 96px); margin-top: clamp(28px, 3vw, 44px); padding-top: clamp(28px, 2.6vw, 40px); border-top: 1px solid var(--c-navy, var(--c-ink)); align-items: start; }
.pg-hero--photo .pg-hero__row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pg-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; max-width: 720px; }
.pg-hero__lead { font-size: 20px; line-height: 33px; letter-spacing: 0.003em; color: var(--c-ink); }
.pg-hero__lead em { font-style: italic; }
.pg-hero__lead + .pg-hero__lead { margin-top: -10px; }
.pg-hero__lead a { color: var(--c-blue); text-underline-offset: 3px; }
.pg-hero__text .c-actions { margin-top: 12px; }
.pg-hero__media { margin: 0; overflow: hidden; border-radius: 16px; background: var(--c-soft); aspect-ratio: 16 / 10; }
.pg-hero__media picture { display: block; width: 100%; height: 100%; }
.pg-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* request-a-bookkeeping-quote: the live "Email Us" / "Phone" pair as the hero's two actions */
.pg-contact { display: flex; flex-wrap: wrap; gap: 20px 24px; margin: 12px 0 0; padding: 0; list-style: none; }
.pg-contact li { display: flex; flex-direction: column; gap: 8px; }
.pg-contact__k { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c-muted); }

@media (max-width: 1023px) {
  .pg-hero--photo .pg-hero__row { grid-template-columns: 1fr; }
  .pg-hero__media { max-width: 640px; }
}
@media (max-width: 767px) {
  .pg-hero { padding: 104px 0 44px; }
  .pg-hero__head { grid-template-columns: 1fr; gap: 0; }
  .pg-mark { order: -1; width: 48px; margin: 0 0 20px; }
  .pg-hero__title--xl { font-size: 44px; }
  .pg-hero__title--l { font-size: 38px; }
  .pg-hero__title--m { font-size: 32px; }
  .pg-hero__title--s { font-size: 28px; }
  .pg-hero__lead { font-size: 18px; line-height: 29px; }
  .pg-crumbs ol { font-size: 13px; }
  .pg-contact, .pg-contact li, .pg-contact .c-btn { width: 100%; }
}

/* --- Body: readable editorial column (max ~70ch), optional sticky contents rail ---------------- */
.pg-body { padding: clamp(56px, 6vw, 96px) 0 clamp(72px, 7vw, 112px); border-top: 1px solid rgb(var(--c-tint) / 0.08); }
.pg-body__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.pg-rail { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 136px); }
/* the footer's "Get In Touch" block, beside the text */
.pg-card { flex: none; padding: 22px 24px 20px; border: 1px solid rgb(var(--c-tint) / 0.12); border-radius: 16px; background: #fff; }
.pg-card__title { margin-bottom: 8px; font-family: var(--c2-display); font-size: 24px; line-height: 1.15; color: var(--c-navy, var(--c-ink)); }
.pg-card__list { margin: 0; padding: 0; list-style: none; }
.pg-card__list a { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; line-height: 22px; color: var(--c-ink); text-decoration: none; }
.pg-card__list a:hover { color: var(--c-blue); }
.pg-card__list svg { width: 16px; height: 16px; flex: none; color: var(--c-blue); }
.pg-prose { min-width: 0; max-width: 70ch; font-size: 18px; line-height: 30px; color: var(--c-ink); }
.pg-prose > * + * { margin-top: 20px; }
.pg-prose a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-prose a:hover { color: var(--c-navy); }
.pg-prose strong { font-weight: 600; color: var(--c-navy, var(--c-ink)); }
.pg-prose .c-btn { text-decoration: none; color: #fff; }
.pg-h2 {
  font-family: var(--c2-display); font-weight: 400; font-size: clamp(30px, 1.2vw + 18px, 40px); line-height: 1.1;
  letter-spacing: -0.005em; color: var(--c-navy, var(--c-ink)); text-wrap: balance; font-variant-numeric: lining-nums;
  scroll-margin-top: 112px;
}
.pg-prose > .pg-h2 { margin-top: clamp(48px, 4vw, 64px); padding-top: clamp(28px, 2.4vw, 36px); border-top: 1px solid rgb(var(--c-tint) / 0.14); }
.pg-prose > .pg-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pg-h3 { font-family: var(--font-body); font-weight: 600; font-size: 20px; line-height: 28px; color: var(--c-navy, var(--c-ink)); font-variant-numeric: lining-nums; }
.pg-prose > .pg-h3 { margin-top: 36px; }
.pg-prose > .pg-h2 + .pg-h3 { margin-top: 24px; }
.pg-prose > .pg-h3 + * { margin-top: 10px; }

/* lists: a small square in the lighter blue (the bar mark's language); ordered lists in Forum numerals */
.pg-list { margin: 0; padding: 0; list-style: none; }
.pg-list > li { position: relative; padding-left: 28px; }
.pg-list > li + li { margin-top: 10px; }
.pg-list:not(.pg-list--ol) > li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 1.5px; background: var(--c-sky); }
.pg-list--ol { counter-reset: pg; }
.pg-list--ol > li { counter-increment: pg; padding-left: 40px; }
.pg-list--ol > li::before { content: counter(pg); position: absolute; left: 0; top: 0; min-width: 26px; font-family: var(--c2-display); font-size: 22px; line-height: 30px; color: var(--c-blue); font-variant-numeric: lining-nums tabular-nums; }

/* tables: hairlines, no zebra; scroll inside on phones */
.pg-table-wrap { overflow-x: auto; border: 1px solid rgb(var(--c-tint) / 0.12); border-radius: 16px; }
.pg-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.pg-table th, .pg-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-top: 1px solid rgb(var(--c-tint) / 0.10); }
.pg-table tr:first-child > * { border-top: 0; }
.pg-table th { font-weight: 600; color: var(--c-navy, var(--c-ink)); }
.pg-table thead th { background: var(--c-soft); font-family: var(--c2-display); font-weight: 400; font-size: 20px; line-height: 26px; }
.pg-table thead + tbody tr:first-child > * { border-top: 1px solid rgb(var(--c-tint) / 0.10); }
.pg-table--links th { width: 38%; font-weight: 500; }
.pg-table--links td p { margin: 0; }
.pg-table--compare { min-width: 560px; }

.pg-cta { margin-top: 40px !important; }

/* person (Managed Accounting: Sindy Echevarria, the live page's own photo) */
.pg-prose > .pg-person { margin-top: clamp(40px, 4vw, 56px); }
.pg-person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 28px; border: 1px solid rgb(var(--c-tint) / 0.10); border-radius: 16px; background: #fff; }
.pg-person__media { margin: 0; overflow: hidden; border-radius: 12px; background: var(--c-soft); aspect-ratio: 4 / 5; align-self: start; }
.pg-person__media picture, .pg-person__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-person__body > * + * { margin-top: 16px; }
.pg-person__name { margin: 0; padding: 0; border: 0; }
@media (max-width: 767px) {
  .pg-person { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .pg-person__media { max-width: 240px; }
}

/* contents rail */
.pg-toc { min-height: 0; overflow: auto; padding: 22px 24px 24px; border-radius: 16px; background: var(--c-pale, var(--c-soft)); }
.pg-toc__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; color: var(--c-muted); list-style: none; cursor: default; }
.pg-toc__title::-webkit-details-marker { display: none; }
.pg-toc__title .c-chev { display: none; }
@media (max-width: 1023px) {
  .pg-toc__title { min-height: 44px; margin: -8px 0; font-size: 15px; color: var(--c-navy, var(--c-ink)); cursor: pointer; }
  .pg-toc__title .c-chev { display: block; width: 14px; height: 14px; color: var(--c-blue); }
  .pg-toc__fold[open] .pg-toc__title { margin-bottom: 6px; }
  .pg-toc__fold[open] .pg-toc__title .c-chev { transform: rotate(180deg); }
}
.pg-toc ol { margin: 0; padding: 0; list-style: none; }
.pg-toc li { border-top: 1px solid rgb(var(--c-tint) / 0.16); }
.pg-toc li:first-child { border-top: 0; }
.pg-toc a { display: block; padding: 9px 0; font-size: 15px; line-height: 21px; color: var(--c-navy, var(--c-ink)); text-decoration: none; }
.pg-toc a:hover, .pg-toc a[aria-current="true"] { color: var(--c-blue); }
@media (max-width: 1023px) {
  .pg-body__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .pg-rail { position: static; order: -1; max-height: none; }
  .pg-toc { margin-bottom: 40px; }
  .pg-card { display: none; } /* phones and tablets: the same block is in the footer */
}
@media (max-width: 767px) {
  .pg-body { padding: 48px 0 64px; }
  .pg-prose { font-size: 17px; line-height: 28px; }
  .pg-table th, .pg-table td { padding: 12px 14px; font-size: 15px; }
  .pg-toc { padding: 16px 18px 18px; }
}

/* --- Related pages (sibling links from the live menu group) ------------------------------------ */
.pg-related { padding: clamp(64px, 7vw, 104px) 0; background: var(--c-pale, var(--c-soft)); }
.pg-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.pg-related__title { font-size: clamp(32px, 2vw + 16px, 48px); }
.pg-related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(var(--c-tint) / 0.22); }
.pg-related__list li { border-bottom: 1px solid rgb(var(--c-tint) / 0.22); }
.pg-related__list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 10px 0; font-family: var(--c2-display); font-size: clamp(21px, 0.6vw + 15px, 25px); line-height: 1.15; color: var(--c-navy, var(--c-ink)); text-decoration: none; }
.pg-related__list a:hover { color: var(--c-blue); }
.pg-related__list a:hover .c2-focus__go { transform: translateX(4px); }
@media (max-width: 1023px) { .pg-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .pg-related__list { grid-template-columns: 1fr; } .pg-related__list a { min-height: 56px; font-size: 21px; } }

/* current page in the header, the phone menu and the footer: the action blue, nothing else */
.c-dd a[aria-current="page"], .c-menu a[aria-current="page"], .c-foot a[aria-current="page"], .c-nav__link[aria-current="page"] { color: var(--c-blue); }

/* --- Forms (static stand-ins for the live Elementor forms) ------------------------------------ */
.pg-body--form { background: var(--c-pale, var(--c-soft)); border-top: 0; }
.pg-formwrap { min-width: 0; }
.pg-form { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 44px); border: 1px solid rgb(var(--c-tint) / 0.10); border-radius: 16px; background: #fff; scroll-margin-top: 112px; }
.pg-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.pg-step + .pg-step { padding-top: 28px; border-top: 1px solid rgb(var(--c-tint) / 0.12); }
.pg-step__title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; padding: 0; font-family: var(--c2-display); font-size: clamp(26px, 1vw + 18px, 32px); line-height: 1.1; color: var(--c-navy, var(--c-ink)); }
.pg-step__n { font-size: 0.7em; color: var(--c-blue); font-variant-numeric: lining-nums tabular-nums; }
.pg-step__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.pg-form--flat .pg-step__grid, .pg-form--flat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.pg-form--flat .pg-form__end, .pg-form--flat .pg-field--wide { grid-column: 1 / -1; }
.pg-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pg-field--set, .pg-field--wide { grid-column: 1 / -1; }
.pg-field > label, .pg-field > legend { padding: 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--c-navy, var(--c-ink)); }
.pg-field > legend { margin-bottom: 10px; }
.pg-req { margin-left: 3px; color: var(--c-blue); }
.pg-field input:not([type="checkbox"]):not([type="radio"]), .pg-field select, .pg-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgb(var(--c-tint) / 0.32); border-radius: 10px; background: #fff;
  font-size: 16px; line-height: 24px; color: var(--c-ink); transition: border-color .2s var(--c-ease), box-shadow .2s var(--c-ease);
}
.pg-field textarea { min-height: 120px; resize: vertical; }
.pg-field input:focus-visible, .pg-field select:focus-visible, .pg-field textarea:focus-visible { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgb(42 91 174 / 0.22); }
.pg-field [aria-invalid="true"] { border-color: var(--brand-error, #9c2a1c) !important; }
.pg-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px; border: 1px solid rgb(var(--c-tint) / 0.22); border-radius: 10px; font-size: 15px; line-height: 21px; cursor: pointer; transition: border-color .2s var(--c-ease), background-color .2s var(--c-ease); }
.pg-opt:hover { border-color: var(--c-blue); }
.pg-opt:has(input:checked) { border-color: var(--c-navy); background: var(--c-pale, var(--c-soft)); }
.pg-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-navy); }
.pg-err { font-size: 14px; line-height: 20px; color: var(--brand-error, #9c2a1c); }
[data-show-if][hidden] { display: none !important; }
.pg-form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.pg-form__status { font-size: 15px; line-height: 22px; color: var(--c-muted); }
@media (max-width: 767px) {
  .pg-step__grid, .pg-form--flat { grid-template-columns: 1fr; }
  .pg-form { padding: 20px; }
  .pg-form__end .c-btn { width: 100%; }
  .pg-opt { width: 100%; }
}

/* ---- Launch prep (mobile): 44px tap targets on touch screens; negative margins keep the layout where it was ---- */
@media (pointer: coarse) {
  .pg-crumbs a { min-height: 44px; margin-block: -10px; padding-inline: 4px; margin-inline: -4px; }
  .pg-toc a { padding-block: 11.5px; margin-block: -2.5px; }
  .pg-hero__lead a, .pg-prose p a { padding-block: 10px; }
  .pg-card__list a { min-height: 44px; margin-block: -2px; }
}

/* ---- Launch prep 2: forms post to /api/submit; consent line, status/error, staging note, honeypot ---------------- */
.pg-form__end > .pg-form__consent, .pg-form__end > .pg-form__status, .pg-form__end > .pg-form__error, .pg-form__end > .pg-form__note { flex-basis: 100%; margin: 0; }
.pg-form__consent { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.pg-form__consent a, .pg-form__error a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-form__status { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--c-navy, var(--c-ink)); }
.pg-form__error { font-size: 15px; line-height: 22px; color: var(--c-ink); padding: 12px 16px; border-left: 3px solid var(--brand-error, #9c2a1c); background: var(--c-pale, var(--c-soft)); }
.pg-form__note { font-size: 13px; line-height: 18px; color: var(--c-muted); }
.pg-form[aria-busy="true"] .c-btn { opacity: .7; cursor: progress; }
.pg-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- Launch prep 2: privacy policy placeholders, filled on launch day (content/site.json privacyUpdated / privacyEmail) ---- */
.pg-tbd { padding: 1px 6px; border-radius: 4px; outline: 2px dashed #b0124f; outline-offset: 1px; background: #ffe0ec; color: #5c0a2c; font-weight: 600; }
.pg-tbd { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pg-form__error a[href^="tel:"] { white-space: nowrap; }
