/* Shared site footer (src/replica/footer.html), injected on every page at build time.
   Selectors are qualified with html footer.ctc-footer so legacy page-level `footer {}` rules never win. */
html footer.ctc-footer {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  margin: 0;
  padding: clamp(40px, 6vw, 64px) clamp(18px, 5vw, 64px) 28px;
  border: 0;
  border-top: 1px solid var(--divider-subtle, rgb(0 0 0 / 8%));
  /* !important: the homepage forces white on every footer. */
  background: var(--surface-subtle, #f7f7f7) !important;
  color: var(--ink, #424242);
  font: 400 14px/1.6 "Inter", -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
footer.ctc-footer * { box-sizing: border-box; }
footer.ctc-footer p { margin: 0; }
footer.ctc-footer a { color: inherit; text-decoration: none; }

.ctc-footer .ctc-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
}
.ctc-footer .ctc-footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.ctc-footer .ctc-footer-brand img {
  width: 136px;
  height: auto;
}
.ctc-footer .ctc-footer-line {
  margin-top: 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink, #424242);
}

.ctc-footer .ctc-footer-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ctc-footer .ctc-footer-cta p { color: var(--ink-soft, #666); font-size: 14px; line-height: 1.6; }
.ctc-footer .ctc-footer-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border-radius: 999px;
  background: var(--cinnabar, #c8402f); color: #fff !important;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 24px rgb(200 64 47 / 22%);
  transition: background .2s, transform .2s;
}
.ctc-footer .ctc-footer-btn:hover { background: #a8321f; transform: translateY(-1px); }
.ctc-footer .ctc-footer-btn:focus-visible,
.ctc-footer .ctc-footer-links a:focus-visible { outline: 2px solid var(--cinnabar, #c8402f); outline-offset: 3px; }

.ctc-footer .ctc-footer-bar {
  max-width: 1200px;
  margin: clamp(32px, 4vw, 44px) auto 0;
}
.ctc-footer .ctc-footer-nav {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px 32px;
  padding-block: 16px;
  border-block: 1px solid #e2e2e2;
}
.ctc-footer .ctc-footer-nav h2 {
  margin: 0 0 4px;
  color: var(--ink, #424242);
  font: 600 13.5px/1.5 "Inter", -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal;
}
.ctc-footer .ctc-footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 13px; }
.ctc-footer .ctc-footer-links a {
  display: inline-flex;
  align-items: center;
  padding-block: 5px;
  white-space: nowrap;
  color: var(--ink-soft, #666);
}
.ctc-footer .ctc-footer-links a:is(:hover, [aria-current="page"]) {
  color: #ab372f;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ctc-footer .ctc-footer-copy { margin-top: 12px; color: var(--ink-soft, #666); font-size: 12.5px; }

@media (max-width: 640px) {
  .ctc-footer .ctc-footer-main, .ctc-footer .ctc-footer-cta { flex-direction: column; align-items: flex-start; }
  .ctc-footer .ctc-footer-cta { width: 100%; gap: 14px; }
  .ctc-footer .ctc-footer-btn { width: 100%; justify-content: center; }
  .ctc-footer .ctc-footer-nav { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ctc-footer .ctc-footer-links { column-gap: 14px; }
}

@media (pointer: coarse) {
  .ctc-footer .ctc-footer-links a { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .ctc-footer .ctc-footer-btn { transition: none; }
  .ctc-footer .ctc-footer-btn:hover { transform: none; }
}
