/* inner.css - the pages behind the home page: the banner at the top, tables,
   steps, the fee calculator, forms, news cards and the questions list. */

/* ------------------------------------------------------------------ banner */
.page-head { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.page-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 18, 34, .92) 0%, rgba(10, 18, 34, .55) 60%, rgba(10, 18, 34, .35) 100%); }
.page-head .wrap { position: relative; z-index: 2; padding-block: clamp(54px, 7.5vw, 92px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: .3em; }
.page-head .lede { color: rgba(255, 255, 255, .86); }
.page-head .eyebrow { color: var(--sun); }

/* ------------------------------------------------------------------ plain text column */
.prose { max-width: 70ch; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .5em; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
th { font-family: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--sky-soft); color: var(--navy); }
tr:last-child td { border-bottom: 0; }
td.money, th.money { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--cream-2); }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; align-items: start; background: var(--white); border: 1px solid var(--line); padding: 24px 26px; }
.steps li:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.steps li:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.steps .n { counter-increment: step; font-family: var(--display); font-size: 2rem; color: var(--sun-ink); line-height: 1; }
.steps .n::before { content: counter(step); }
.steps h3 { margin: 0 0 4px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ------------------------------------------------------------------ forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream-2); border: 1.5px solid var(--line); border-radius: var(--r-md);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(232, 163, 58, .35); border-color: var(--sun); background: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.answer { margin-top: 24px; padding: 22px 24px; border-radius: var(--r-md); background: var(--sky-soft); border-left: 4px solid var(--sun); display: none; }
.answer.show { display: block; }
.answer h3 { margin: 0 0 6px; font-size: 1.2rem; }
.answer p { margin: 0; font-size: 15.5px; }
.answer .ref { font-family: var(--display); font-size: 1.8rem; color: var(--navy); letter-spacing: .04em; }

/* ------------------------------------------------------------------ calculator */
.calc-out { display: grid; gap: 14px; }
.calc-line { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.calc-line b { font-variant-numeric: tabular-nums; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 6px; }
.calc-total span { font-family: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.calc-total b { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ news */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.news-body { padding: 24px 26px 28px; }
.news-date { font-family: var(--label); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sun-ink); }
.news-card h3 { margin: 10px 0 8px; font-size: 1.25rem; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ------------------------------------------------------------------ questions */
.qa { margin-top: 28px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-size: 1.2rem; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--sun-ink); line-height: 1; }
.qa details[open] summary::after { content: "–"; }
.qa p { margin: 0 0 22px; color: var(--ink-2); max-width: 72ch; }

/* ------------------------------------------------------------------ small helpers */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.tick { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tick li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 15.5px; }
.tick li::before { content: "✓"; color: var(--sun-ink); font-weight: 800; }
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.fact b { font-family: var(--display); font-size: 2rem; color: var(--navy); display: block; line-height: 1; }
.fact span { font-family: var(--label); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

@media (max-width: 980px) {
  .news-list { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .news-list { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 46px 1fr; gap: 14px; padding: 20px; }
}

/* A grid child will not shrink below its content unless it is told to, which is what
   pushed wide tables off the side of a phone. */
.two-col > *, .split > *, .visit-grid > *, .results-grid > *, .welcome > *, .paths > *, .gallery > * { min-width: 0; }

/* Where one column is much taller than the other, the short one follows you down
   instead of leaving a wall of empty page beside the form. */
@media (min-width: 981px) {
  .sticky-col { position: sticky; top: calc(var(--top) + 26px); }
}
