/* Carmina CPA inner pages (services, about, contact, privacy).
   Tokens, masthead, buttons, forms and the footer come from site.css. */

.page-doc h1 { font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.03; max-width: 20ch; }
.page-doc h2 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.6rem); max-width: 24ch; }
/* where you are: the current page is blue, heavier, and underlined in the top menu */
.mast__nav > a[aria-current="page"], .menu.is-current > summary { position: relative; color: var(--blue); font-weight: 700; }
.menu__panel a[aria-current="page"] { color: var(--blue); font-weight: 700; background: var(--paper-2); box-shadow: inset 3px 0 0 var(--blue); }
@media (min-width: 1021px) {
  .mast__nav > a[aria-current="page"]::after, .menu.is-current > summary::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 2px; border-radius: 1px; background: var(--blue); }
}
@media (max-width: 1020px) {
  .mast__nav > a[aria-current="page"], .menu.is-current > summary { box-shadow: inset 3px 0 0 var(--blue); padding-left: 0.85rem; }
}

/* page opening */
.phero { padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(3rem, 6vw, 5rem); }
.crumb { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(1.25rem, 2.4vw, 2rem); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.crumb a { color: var(--blue); }
.crumb a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.phero .lede { max-width: 56ch; }
.serving { margin-top: 1rem; font-size: 0.95rem; color: var(--soft); }
.phero__act { margin-top: clamp(1.6rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* the year, for this service: a navy panel like the homepage's year section */
.strip { margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3.6vw, 2.75rem); border-radius: 1.1rem; background: var(--navy); color: var(--navy-ink); }
.strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.4rem 2rem; }
.strip h2 { font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.75rem); max-width: none; }
.strip__head p { font-size: 0.86rem; color: var(--navy-soft); }
.strip__yr { margin-top: 0.8rem; max-width: 62ch; font-size: 1.06rem; color: var(--navy-soft); }
.strip__rail { position: relative; height: 4.4rem; margin-top: 1.5rem; }
.strip__rail::before { content: ""; position: absolute; left: 0; right: 0; top: 2rem; height: 1px; background: var(--navy-rule); }
.strip__month { position: absolute; top: 2.35rem; height: 1.5rem; padding: 0.55rem 0 0 0.4rem; border-left: 1px solid var(--navy-rule); font-size: 0.66rem; font-weight: 600; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy-soft); overflow: hidden; }
.strip__close { position: absolute; top: 2rem; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--navy-soft); }
.strip__mark { position: absolute; top: 2rem; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1.5px var(--navy-soft); }
.strip__mark.is-major { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.strip__mark.is-past { background: var(--navy-ink); box-shadow: 0 0 0 1.5px var(--navy-ink); }
.strip__today { position: absolute; top: 0.95rem; width: 1px; height: 1.05rem; background: var(--blue-light); }
.strip__today span { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: 0.25rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-light); white-space: nowrap; }
.strip__list { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); column-gap: clamp(1.5rem, 4vw, 3rem); }
.strip__list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--navy-rule); font-size: 0.96rem; line-height: 1.45; }
.strip__list time { font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; color: var(--blue-light); padding-top: 0.05rem; }
.strip__list li.is-past { opacity: 0.55; }

/* body sections */
.paper .sec { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.split__lede { margin-top: 1rem; max-width: 44ch; font-size: 1.1rem; color: var(--soft); }
.checks { margin-top: 1.75rem; border-top: 1px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule-strong); }
.checks svg { margin-top: 0.22rem; color: var(--blue); }
.inc { margin-top: 1.75rem; border-top: 1px solid var(--ink); }
.inc > div { padding: 1rem 0 1.05rem; border-bottom: 1px solid var(--rule-strong); }
.inc dt { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; line-height: 1.2; }
.inc dd { margin-top: 0.3rem; color: var(--soft); }

.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 5vw, 4.5rem); padding: clamp(1.75rem, 4.5vw, 3.5rem); border-radius: 1.1rem; background: var(--paper-2); }
.band .kicker { display: block; }
.band__body p { font-size: 1.08rem; color: var(--soft); }
.band__body p + p { margin-top: 1rem; }

ol.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 2.25rem clamp(1.25rem, 3vw, 2.75rem); counter-reset: step; }
ol.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.1rem; }
ol.steps li::before { content: "Step " counter(step); display: block; margin-bottom: 0.9rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
ol.steps p { margin-top: 0.55rem; color: var(--soft); }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.15rem 2.75rem 1.15rem 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem); line-height: 1.25; transition: color 200ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.95rem; font-family: var(--sc-font-text); font-size: 1.5rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 2.75rem 1.35rem 0; max-width: 64ch; color: var(--soft); }

/* closing band */
.closer { background: var(--navy); color: var(--navy-ink); padding-block: clamp(4rem, 8vw, 6.5rem); }
.closer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem 3rem; }
.closer h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); max-width: 19ch; }
.closer__act { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.closer .btn { background: var(--navy-ink); border-color: var(--navy-ink); color: var(--navy); }
.closer .btn:hover { background: #fff; border-color: #fff; }
.closer .btn--line { background: transparent; border-color: rgb(243 240 232 / 0.5); color: var(--navy-ink); }
.closer .btn--line:hover { background: var(--navy-ink); border-color: var(--navy-ink); color: var(--navy); }

/* about */
.facts { margin-top: clamp(2.25rem, 4vw, 3.25rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 54rem; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 0.2rem clamp(1rem, 2.4vw, 2.25rem) 0.3rem; border-left: 1px solid var(--rule); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dd { font-family: var(--serif); font-size: clamp(2.6rem, 1.7rem + 3vw, 4.2rem); line-height: 1; letter-spacing: -0.025em; }
.facts dt { margin-top: 0.7rem; max-width: 17ch; font-size: 0.98rem; line-height: 1.4; color: var(--soft); }
.prose p { max-width: 58ch; font-size: clamp(1.08rem, 1.02rem + 0.3vw, 1.2rem); color: var(--soft); }
.prose p:first-child { color: var(--ink); }
.prose p + p { margin-top: 1.2rem; }
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem clamp(1.25rem, 3vw, 2.75rem); }
.ways > div { border-top: 1px solid var(--ink); padding-top: 1.15rem; }
.ways p { margin-top: 0.55rem; color: var(--soft); }
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 5rem); border-top: 1px solid var(--ink); }
.people li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule-strong); }
.people strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.people span { font-size: 0.93rem; color: var(--soft); text-align: right; }

/* contact */
.page-doc .contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.reach { border-top: 1px solid var(--ink); }
.reach > div { padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--rule-strong); }
.reach dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.reach dd { margin-top: 0.4rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.35; }
.reach dd a:not(.link) { color: var(--ink); background: linear-gradient(var(--rule-strong), var(--rule-strong)) 0 100% / 100% 1px no-repeat; }
.reach dd a:not(.link):hover { color: var(--blue); }
.reach .link { display: inline-block; margin-top: 0.4rem; font-family: var(--sc-font-text); font-size: 0.95rem; font-weight: 600; color: var(--blue); }
.reach .link:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.page-doc .form { background: var(--paper-2); }
.page-doc .form h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); max-width: none; }
.form__intro { font-size: 0.98rem; color: var(--soft); }
.form__intro a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; }

/* privacy */
.legal > * { max-width: 46rem; }
.legal h2 { margin-top: 2.25rem; font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem); max-width: none; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 0.6rem; color: var(--soft); }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 860px) {
  .split, .band, .faq, .page-doc .contact { grid-template-columns: 1fr; }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ways { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .facts > div { padding-left: 0; border-left: 0; }
  .strip__month { padding-left: 0.15rem; font-size: 0.56rem; letter-spacing: 0.02em; }
  .people li { flex-direction: column; gap: 0.1rem; }
  .people span { text-align: left; }
}

/* service pages: the card at the top right, in the manner of the homepage's
   card for today. It names the next due date for this service. */
.phero__grid { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); gap: 2.5rem clamp(2.5rem, 6vw, 5rem); align-items: center; }
.glance { justify-self: end; width: min(100%, 23rem); display: grid; gap: 0.35rem; padding: 1.6rem 1.75rem 1.5rem; background: #fff; border-top: 2px solid var(--blue); box-shadow: 0 0 0 1px rgb(18 35 61 / 0.06), 0 26px 48px -28px rgb(18 35 61 / 0.4); }
.glance__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.glance__date { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.015em; }
.glance__what { margin-top: 0.2rem; font-size: 1.05rem; line-height: 1.4; }
.glance__when { font-size: 0.95rem; color: var(--soft); }
.glance__when:empty { display: none; }
.glance .btn { margin-top: 1.15rem; width: 100%; }
.glance__tel { justify-self: center; margin-top: 0.35rem; padding-block: 0.4rem; font-weight: 600; color: var(--blue); }
.glance__tel:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* about: the story section starts a little higher */
.sec--first { padding-top: clamp(2.75rem, 5vw, 4.25rem) !important; }
@media (max-width: 860px) {
  .phero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .glance, .voice { justify-self: start; width: min(100%, 26rem); }
}

/* contact: the heading and details on the left, the form beside them from the top */
.page-doc .contact--top { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); align-items: start; }
.contact--top .reach { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.contact--top .form { margin-top: 0.25rem; }
@media (max-width: 860px) { .page-doc .contact--top { grid-template-columns: 1fr; } }
