/* fin·calc site shell (v5 design): header, mega-menus, mobile menu, footer.
   Generated markup comes from scripts/apply_shell.py. Scoped to .fcs-* so it
   never touches page content. Colours fall back to the live light palette. */
.fcs-hd, .fcs-hd *, .fcs-ft, .fcs-ft *, .fcs-dr, .fcs-dr * { box-sizing: border-box; }
.fcs-hd {
  display: block !important; position: sticky; top: 0; z-index: 60;
  margin: 0 !important; padding: 0 !important; max-width: none !important;
  background: var(--bg-2, #ffffff); border-bottom: 1px solid var(--line, rgba(16,38,58,0.10));
  font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; font-size: 14px; line-height: 1.4;
  color: var(--ink, #1a2733);
}
.fcs-bar { max-width: 1280px; margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; gap: 8px; }
.fcs-hd a, .fcs-dr a, .fcs-ft a { min-width: 0; justify-content: flex-start; margin: 0; }
.fcs-logo { display: inline-flex !important; align-items: baseline; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink, #1a2733) !important; text-decoration: none !important; margin-right: 8px !important; flex-shrink: 0; min-height: 44px; align-items: center; }
.fcs-logo b { color: var(--accent, #0e7a4a); font-weight: 800; }
.fcs-nav { display: flex; align-items: center; flex: 1; min-width: 0; gap: 0; }
.fcs-nav button {
  height: 44px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink, #1a2733); font: 500 14px/1 'Inter', system-ui, sans-serif; cursor: pointer; white-space: nowrap;
}
.fcs-nav button:hover, .fcs-nav button[aria-expanded="true"] { background: color-mix(in srgb, var(--muted, #5c6b7a) 12%, transparent); }
.fcs-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.fcs-all { display: inline-flex !important; align-items: center; height: 44px; padding: 0 10px !important; border-radius: 8px; font-weight: 600; color: var(--ink, #1a2733) !important; text-decoration: none !important; white-space: nowrap; }
.fcs-all:hover { background: color-mix(in srgb, var(--muted, #5c6b7a) 12%, transparent); }
.fcs-ic {
  width: 44px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center !important;
  border: 1px solid color-mix(in srgb, var(--ink, #1a2733) 20%, transparent); border-radius: 8px;
  background: var(--card, #ffffff); color: var(--ink, #1a2733) !important; cursor: pointer; padding: 0 !important; text-decoration: none !important;
}
.fcs-ic svg { width: 20px; height: 20px; }
.fcs-burger { display: none !important; }
.fcs-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2, #ffffff);
  border-top: 1px solid var(--line, rgba(16,38,58,0.10)); border-bottom: 1px solid var(--line, rgba(16,38,58,0.10));
  box-shadow: 0 20px 44px -18px rgba(16,38,58,0.32); animation: fcsIn 160ms ease-out;
}
.fcs-panel[hidden] { display: none; }
.fcs-pin { max-width: 1280px; margin: 0 auto; padding: 24px 16px; }
.fcs-start {
  display: flex !important; align-items: center; gap: 12px; padding: 12px 16px !important; border-radius: 8px;
  color: var(--ink, #1a2733) !important; text-decoration: none !important; margin-bottom: 24px !important;
  background: color-mix(in srgb, var(--fcs-acc, #0e7a4a) 10%, transparent);
}
.fcs-start .fcs-sti { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--card, #fff); color: var(--fcs-acc, #0e7a4a); flex-shrink: 0; }
.fcs-start .fcs-sti svg { width: 16px; height: 16px; }
.fcs-start small { display: block; font-size: 12px; color: var(--muted, #5c6b7a); }
.fcs-start strong { display: block; font-size: 14px; font-weight: 600; }
.fcs-start .fcs-arr { margin-left: auto; color: var(--fcs-acc, #0e7a4a); }
.fcs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.fcs-gt { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #5c6b7a); margin: 0 0 8px; }
.fcs-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.fcs-ul a {
  display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 2px; min-height: 44px; justify-content: center !important;
  padding: 6px 8px !important; margin: 0 -8px !important; border-radius: 6px; color: var(--ink, #1a2733) !important; text-decoration: none !important;
}
.fcs-ul a:hover { background: color-mix(in srgb, var(--muted, #5c6b7a) 12%, transparent); }
.fcs-ul a span { font-size: 14px; font-weight: 500; }
.fcs-ul a em { font-style: normal; font-size: 12px; color: var(--muted, #5c6b7a); line-height: 1.4; }
.fcs-more { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line, rgba(16,38,58,0.10)); }
.fcs-more a { display: inline-flex !important; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent, #0e7a4a) !important; }
@keyframes fcsIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Mobile drawer */
.fcs-dr { position: fixed; inset: 64px 0 0 0; z-index: 59; background: var(--bg-2, #ffffff); overflow-y: auto; padding: 8px 16px 32px; font-family: 'Inter', system-ui, sans-serif; color: var(--ink, #1a2733); }
.fcs-dr[hidden] { display: none; }
.fcs-dr details { border-bottom: 1px solid var(--line, rgba(16,38,58,0.10)); }
.fcs-dr summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; }
.fcs-dr summary::-webkit-details-marker { display: none; }
.fcs-dr summary::after { content: "+"; color: var(--muted, #5c6b7a); font-weight: 400; font-size: 20px; }
.fcs-dr details[open] summary::after { content: "\2212"; }
.fcs-dr .fcs-gt { margin-top: 12px; }
.fcs-dr .fcs-ul { margin-bottom: 8px; }
.fcs-dr > a { display: flex !important; align-items: center; min-height: 48px; font-size: 16px; font-weight: 600; color: var(--accent, #0e7a4a) !important; }
body.fcs-lock { overflow: hidden; }

@media (max-width: 1100px) {
  .fcs-nav, .fcs-all { display: none !important; }
  .fcs-burger { display: inline-flex !important; }
}
@media (min-width: 1101px) { .fcs-dr { display: none !important; } }

/* Footer */
.fcs-ft {
  display: block !important; margin: 48px 0 0 !important; padding: 0 !important; max-width: none !important;
  border-top: 1px solid var(--line, rgba(16,38,58,0.10)); background: var(--bg-2, #ffffff);
  text-align: left !important; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif !important; font-size: 14px !important; color: var(--ink, #1a2733);
}
.fcs-fin { max-width: 1280px; margin: 0 auto; padding: 40px 16px 24px; }
.fcs-cols { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px; }
.fcs-ft h2 { font-size: 14px !important; font-weight: 700; margin: 0 0 8px !important; color: var(--ink, #1a2733); letter-spacing: 0; font-family: inherit !important; }
.fcs-ft ul { list-style: none; margin: 0; padding: 0; }
.fcs-ft li a { display: inline-flex !important; align-items: center; min-height: 32px; padding: 0 !important; color: var(--muted, #5c6b7a) !important; text-decoration: none !important; line-height: 1.3; }
.fcs-ft li a:hover { color: var(--accent, #0e7a4a) !important; text-decoration: underline !important; }
.fcs-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line, rgba(16,38,58,0.10)); font-size: 12px; color: var(--muted, #5c6b7a); }
.fcs-bot a { color: var(--accent, #0e7a4a) !important; display: inline !important; min-height: 0 !important; padding: 0 !important; }
@media (max-width: 1100px) { .fcs-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fcs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; } .fcs-ft li a { min-height: 44px; } }
@media print { .fcs-hd, .fcs-dr, .fcs-ft { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .fcs-panel { animation: none; } }
.fcs-hd :focus-visible, .fcs-dr :focus-visible, .fcs-ft :focus-visible { outline: 2px solid var(--accent, #0e7a4a); outline-offset: 2px; }

/* Homepage v5 sections (index.html, generated by scripts/apply_shell.py) */
.fch { width: min(1120px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin: 40px 0 32px; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; color: var(--ink, #1a2733); }
.fch h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.fch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fch-card { background: var(--card, #fff); border: 1px solid var(--line, rgba(16,38,58,0.10)); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.fch-img { display: block; aspect-ratio: 3 / 2; background: color-mix(in srgb, var(--muted, #5c6b7a) 12%, transparent); }
.fch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fch-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fch-card h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; margin: 0; }
.fch-card h3 a { color: var(--ink, #1a2733); text-decoration: none; }
.fch-card h3 a:hover { color: var(--accent, #0e7a4a); }
.fch-ic { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--fcs-acc, #0e7a4a); background: color-mix(in srgb, var(--fcs-acc, #0e7a4a) 12%, transparent); flex-shrink: 0; }
.fch-ic svg { width: 17px; height: 17px; }
.fch-card p { font-size: 14px; line-height: 1.5; color: var(--muted, #5c6b7a); margin: 0; }
.fch-card ul { list-style: none; margin: 2px 0 0; padding: 0; }
.fch-card li a { display: flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--accent, #0e7a4a); text-decoration: none; }
.fch-card li a:hover { text-decoration: underline; }
.fch-n { margin-top: auto; font: 500 12px 'JetBrains Mono', monospace; color: var(--muted, #5c6b7a); }
.fch-all { background: #1a2733; border-color: #1a2733; color: #eef3fb; }
.fch-all h3 { color: #fff; font-size: 22px; }
.fch-all p { color: #c9d3df; }
.fch-all form { display: flex; gap: 8px; margin-top: auto; }
.fch-all input { flex: 1; min-width: 0; height: 44px; border-radius: 8px; border: 0; padding: 0 12px; font: 15px 'Inter', system-ui, sans-serif; color: #1a2733; background: #fff; }
.fch-all button { height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: #0e7a4a; color: #fff; font: 700 14px 'Inter', system-ui, sans-serif; cursor: pointer; }
.fch-all a { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.fch-h2 { margin-top: 40px !important; margin-bottom: 4px !important; }
.fch-sub { color: var(--muted, #5c6b7a); font-size: 14px; margin: 0 0 16px; }
.fch-c { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fch-c a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line, rgba(16,38,58,0.10)); border-radius: 10px; background: var(--card, #fff); color: var(--ink, #1a2733); font-size: 14px; font-weight: 500; text-decoration: none; }
.fch-c a:hover { border-color: var(--accent, #0e7a4a); color: var(--accent, #0e7a4a); }
.fch-credit { font-size: 12px; color: var(--muted, #5c6b7a); margin-top: 16px; }
@media (max-width: 1100px) { .fch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fch-c { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fch-grid { grid-template-columns: 1fr; } .fch-c { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bank pages: disclosed, unpaid outbound link */
.fcs-bank { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 18px; }
.fcs-visit { display: inline-flex !important; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px !important; border-radius: 10px; background: var(--accent, #0e7a4a); color: var(--bg-2, #fff) !important; font: 700 15px 'Inter', system-ui, sans-serif; text-decoration: none !important; }
.fcs-visit:hover { filter: brightness(1.08); }
.fcs-disc { font-size: 13px; color: var(--muted, #5c6b7a); max-width: 640px; line-height: 1.5; }

/* Footer digest sign-up */
.fcs-dg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 32px; padding: 24px; margin-bottom: 36px; border: 1px solid var(--line, rgba(16,38,58,0.10)); border-radius: 14px; background: var(--card, #fff); }
.fcs-dg h2 { font-size: 20px !important; margin: 0 0 6px !important; }
.fcs-dg-t p { font-size: 14px; color: var(--muted, #5c6b7a); margin: 0; line-height: 1.5; }
.fcs-dg-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fcs-dg input[type=email], .fcs-dg select { height: 44px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink, #1a2733) 20%, transparent); background: var(--bg-2, #fff); color: var(--ink, #1a2733); padding: 0 12px; font: 15px 'Inter', system-ui, sans-serif; }
.fcs-dg input[type=email] { flex: 1 1 220px; min-width: 0; }
.fcs-dg select { flex: 0 1 170px; }
.fcs-dg button { height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent, #0e7a4a); color: var(--bg-2, #fff); font: 700 14px 'Inter', system-ui, sans-serif; cursor: pointer; }
.fcs-dg-a { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-basis: 100%; min-height: 32px; }
.fcs-dg-n { flex-basis: 100%; font-size: 12px; color: var(--muted, #5c6b7a); margin: 0; }
.fcs-dg-n a { display: inline !important; min-height: 0 !important; padding: 0 !important; color: var(--accent, #0e7a4a) !important; }
.fcs-dg-m { flex-basis: 100%; font-size: 14px; font-weight: 600; margin: 0; color: var(--accent, #0e7a4a); }
.fcs-dg-m.err { color: var(--danger, #b91c1c); }
.fcs-sr, .fcs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 800px) { .fcs-dg { grid-template-columns: 1fr; padding: 18px; } }

/* Dark theme (opt-in toggle; html[data-theme="dark"]) */
html[data-theme="dark"] { --bg: #0a1628; --bg-2: #0f1f38; --card: #132541; --ink: #eef3fb; --muted: #8ea3c2; --line: rgba(238,243,251,0.10); --accent: #5eead4; --accent-2: #fbbf24; --accent-3: #a78bfa; --accent-4: #fb7185; --danger: #f87171; color-scheme: dark; }
html[data-theme="dark"], html[data-theme="dark"] body { background: var(--bg) !important; color: var(--ink) !important; }
html[data-theme="dark"] .fcs-visit, html[data-theme="dark"] .fcs-dg button, html[data-theme="dark"] main .fc-next, html[data-theme="dark"] main a.cta { color: #0a1628 !important; }
html[data-theme="dark"] .fch-all { background: #132541; border-color: rgba(238,243,251,0.12); }
html[data-theme="dark"] .fch-img img { filter: brightness(0.86); }
