/* Professional firm: Carver Lunt, an invented practice of solicitors, accountants and financial planners. Paper white, deep bottle green and brass, Garamond style headings. Practice areas, the people, plain fees and regulation are the product. */

.fm-page {
  --fm-canvas: #f9f8f4;
  --fm-surface: #ffffff;
  --fm-band: #eef0ea;
  --fm-ink: #18231d;
  --fm-muted: #4f5a53;
  --fm-line: #d9ddd4;
  --fm-line-strong: #76807a;
  --fm-accent: #1f4d3a;
  --fm-accent-hover: #163a2b;
  --fm-on-accent: #ffffff;
  --fm-tint: #e1ebe4;
  --fm-success: #1f4d3a;
  --fm-danger: #a3241b;
  --fm-focus: #1f4d3a;
  --fm-head: Garamond, "EB Garamond", "Palatino Linotype", Georgia, serif;
  --fm-body: "Segoe UI", system-ui, sans-serif;
  --fm-r: 4px;

  background: var(--fm-canvas);
  color: var(--fm-ink);
  font-family: var(--fm-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): a panelled office after hours, green black with soft brass. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .fm-page {
    --fm-canvas: #111814;
    --fm-surface: #19221d;
    --fm-band: #151d18;
    --fm-ink: #ecefe9;
    --fm-muted: #adb8b0;
    --fm-line: #2c3a32;
    --fm-line-strong: #74837a;
    --fm-accent: #d9b871;
    --fm-accent-hover: #e6cc95;
    --fm-on-accent: #231a05;
    --fm-tint: #2a2c20;
    --fm-success: #8fd29b;
    --fm-danger: #ff8a80;
    --fm-focus: #d9b871;
    color-scheme: dark;
  }
}

.fm-page [hidden] { display: none !important; }
:where(.fm-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.fm-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.fm-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.fm-page) a { color: var(--fm-accent); }
:where(.fm-page) :is(h1, h2, h3, h4) { color: inherit; }
.fm-page :focus-visible { outline: 3px solid var(--fm-focus); outline-offset: 2px; }
.fm-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--fm-accent); }
html:has(.fm-page) { scroll-behavior: smooth; }
.fm-page section[id] { scroll-margin-top: 72px; }
.fm-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.fm-header { position: sticky; top: 0; z-index: 20; background: var(--fm-canvas); border-bottom: 1px solid var(--fm-line); }
.fm-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.fm-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--fm-head); color: var(--fm-ink) !important; text-decoration: none; }
.fm-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--fm-tint); stroke: var(--fm-accent); stroke-width: 2; stroke-linejoin: round; }
.fm-nav { margin-left: auto; }
.fm-nav ul { display: flex; gap: 22px; }
.fm-nav a { color: var(--fm-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.fm-nav a:hover { color: var(--fm-accent); text-decoration: underline; text-underline-offset: 4px; }
.fm-menu-btn { display: none; }
.fm-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--fm-line-strong); border-radius: var(--fm-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.fm-theme-btn:hover { background: var(--fm-tint); }

.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--fm-accent); border-radius: var(--fm-r); font: 700 1rem/1.2 var(--fm-head); text-decoration: none; cursor: pointer; text-align: center;
}
.fm-btn--fill { background: var(--fm-accent); color: var(--fm-on-accent) !important; }
.fm-btn--fill:hover { background: var(--fm-accent-hover); border-color: var(--fm-accent-hover); }
.fm-btn--line { background: transparent; color: var(--fm-accent) !important; }
.fm-btn--line:hover { background: var(--fm-tint); }
.fm-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.fm-btn:disabled { background: var(--fm-band); border-color: var(--fm-line-strong); color: var(--fm-muted) !important; cursor: not-allowed; }

.fm-eyebrow { font-weight: 700; color: var(--fm-accent); font-size: .92rem; letter-spacing: .02em; }
.fm-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--fm-head); }
.fm-sub { color: var(--fm-muted); margin-top: 8px; max-width: 64ch; }
.fm-head { margin-bottom: 26px; }
.fm-sec { padding: 72px 0; }
.fm-band { background: var(--fm-band); }
.fm-muted { color: var(--fm-muted); }
.fm-small { font-size: .9rem; color: var(--fm-muted); }

.fm-hero { padding: 64px 0 56px; }
.fm-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.fm-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--fm-head); margin-top: 10px; }
.fm-lede { font-size: 1.15rem; color: var(--fm-muted); margin-top: 16px; max-width: 54ch; }
.fm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fm-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--fm-muted); font-size: .95rem; }
.fm-facts strong { color: var(--fm-ink); }
.fm-panel { padding: 24px; background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: calc(var(--fm-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.fm-panel-title { font: 700 1.1rem var(--fm-head); margin-bottom: 12px; }

.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.fm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fm-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: var(--fm-r); }
.fm-card h3 { font: 700 1.15rem/1.25 var(--fm-head); }
.fm-card p { color: var(--fm-muted); font-size: .96rem; }
.fm-card .fm-btn { margin-top: auto; align-self: flex-start; }
.fm-card.is-on { border: 2px solid var(--fm-accent); }
.fm-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--fm-r) var(--fm-r) 0 0; background: var(--fm-tint); position: relative; overflow: hidden; }
.fm-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--fm-canvas); opacity: .7; }
.fm-price { font: 700 1.5rem var(--fm-head); color: var(--fm-ink); }
.fm-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--fm-line-strong); font-size: .82rem; font-weight: 600; color: var(--fm-ink); }
.fm-badge--on { background: var(--fm-tint); border-color: var(--fm-accent); }
.fm-badge--bad { border-color: var(--fm-danger); color: var(--fm-danger); }
.fm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--fm-muted); }

.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fm-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--fm-line-strong); border-radius: 999px; background: var(--fm-surface); color: var(--fm-ink); font: 600 .95rem var(--fm-body); cursor: pointer; }
.fm-chip:hover { border-color: var(--fm-accent); }
.fm-chip[aria-pressed="true"] { background: var(--fm-accent); border-color: var(--fm-accent); color: var(--fm-on-accent); }
.fm-count { font-weight: 600; margin-bottom: 14px; }
.fm-empty { padding: 28px; text-align: center; border: 1px dashed var(--fm-line-strong); border-radius: var(--fm-r); }

.fm-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.fm-steps li { padding: 22px; background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: var(--fm-r); counter-increment: st; }
.fm-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--fm-accent); color: var(--fm-on-accent); font-weight: 700; }
.fm-steps h3 { font: 700 1.1rem var(--fm-head); }
.fm-steps p { color: var(--fm-muted); font-size: .95rem; margin-top: 4px; }

.fm-table { width: 100%; border-collapse: collapse; background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: var(--fm-r); overflow: hidden; }
.fm-table th, .fm-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--fm-line); vertical-align: top; }
.fm-table th { font-size: .88rem; color: var(--fm-muted); background: var(--fm-band); }
.fm-table td.fm-num, .fm-table th.fm-num { text-align: right; font-variant-numeric: tabular-nums; }

.fm-meter { height: 10px; border-radius: 999px; background: var(--fm-line); overflow: hidden; }
.fm-meter span { display: block; height: 100%; background: var(--fm-accent); border-radius: inherit; }
.fm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.fm-stat strong { display: block; font: 700 2rem/1.1 var(--fm-head); }
.fm-stat span { color: var(--fm-muted); font-size: .92rem; }

.fm-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.fm-qs details { border-bottom: 1px solid var(--fm-line); }
.fm-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.fm-qs p { padding: 0 0 16px; color: var(--fm-muted); }

.fm-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: calc(var(--fm-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.fm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fm-field--full { grid-column: 1 / -1; }
.fm-field label, .fm-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.fm-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--fm-line-strong); border-radius: calc(var(--fm-r) - 2px); background: var(--fm-canvas); color: var(--fm-ink); font: 1rem var(--fm-body); }
.fm-field textarea { min-height: 110px; resize: vertical; }
.fm-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--fm-danger); }
.fm-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.fm-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--fm-accent); }
.fm-hint { font-size: .88rem; color: var(--fm-muted); margin-top: 6px; }
.fm-error { color: var(--fm-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.fm-error::before { content: "! "; }
.fm-status { font-weight: 600; }
.fm-status.is-ok { padding: 14px 16px; border-radius: calc(var(--fm-r) - 2px); background: var(--fm-tint); border-left: 4px solid var(--fm-success); }

.fm-footer { padding: 28px 0; border-top: 1px solid var(--fm-line); color: var(--fm-muted); font-size: .92rem; }
.fm-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .fm-header-in { flex-wrap: wrap; gap: 10px; }
  .fm-theme-btn { margin-left: auto; }
  .fm-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--fm-line-strong); border-radius: var(--fm-r); background: transparent; color: var(--fm-ink); font: 600 .95rem var(--fm-body); cursor: pointer;
  }
  .fm-nav { display: none; order: 5; width: 100%; margin: 0; }
  .fm-nav.is-open { display: block; padding-bottom: 12px; }
  .fm-nav ul { flex-direction: column; gap: 0; }
  .fm-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--fm-line); }
  .fm-header-cta { display: none; }
  .fm-hero-in, .fm-faq-in, .fm-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .fm-sec { padding: 52px 0; }
  .fm-fields { grid-template-columns: minmax(0, 1fr); }
  .fm-form { padding: 20px; }
  .fm-table thead { display: none; }
  .fm-table, .fm-table tbody, .fm-table tr, .fm-table td { display: block; width: 100%; }
  .fm-table tr { border-bottom: 1px solid var(--fm-line-strong); padding: 6px 0; }
  .fm-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .fm-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--fm-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.fm-page) { scroll-behavior: auto; }
}

@media print {
  .fm-header, .fm-theme-btn, .fm-form { display: none; }
}

/* This template's own sections */
.fm-help-list li { border-bottom: 1px solid var(--fm-line); }
.fm-help-list a { display: flex; justify-content: space-between; padding: 12px 0; color: var(--fm-ink); text-decoration: none; font-weight: 600; }
.fm-help-list a::after { content: "\2192"; color: var(--fm-accent); }
.fm-help-list a:hover { color: var(--fm-accent); }
.fm-areas .fm-card { border-top: 4px solid var(--fm-accent); }
.fm-areas .fm-card.is-on { outline: 3px solid var(--fm-accent); outline-offset: 3px; }
.fm-ticks li { padding: 6px 0 6px 24px; position: relative; }
.fm-ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--fm-accent); font-weight: 700; }
.fm-person { align-items: flex-start; }
.fm-face { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--fm-tint); font: 700 1.2rem var(--fm-head); color: var(--fm-ink); }
.fm-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.fm-dates li { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--fm-surface); border: 1px solid var(--fm-line); border-radius: var(--fm-r); }
.fm-cal { flex: none; width: 64px; text-align: center; border: 1px solid var(--fm-line-strong); border-radius: var(--fm-r); overflow: hidden; }
.fm-cal b { display: block; background: var(--fm-accent); color: var(--fm-on-accent); font-size: .78rem; padding: 2px 0; text-transform: uppercase; }
.fm-cal span { display: block; font: 700 1.5rem var(--fm-head); padding: 2px 0; }
.fm-dates h3 { font: 700 1.05rem var(--fm-head); }
.fm-left { font-size: .9rem; color: var(--fm-muted); }
.fm-left.is-soon { color: var(--fm-danger); font-weight: 700; }
