/* Shared footer for the main site. */
footer.tcg-footer {
  --footer-cream: var(--cream, #f6f1e6);
  --footer-forest: var(--forest, #14241c);
  --footer-accent: var(--accent, #ffcc00);
  --footer-muted: color-mix(in srgb, var(--footer-cream) 80%, var(--footer-forest));
  --footer-rule: color-mix(in srgb, var(--footer-cream) 27%, var(--footer-forest));
  background: var(--footer-forest);
  color: var(--footer-muted);
  font: 400 16px/1.55 "Source Sans 3", system-ui, sans-serif;
  padding: 48px 0;
  border: 0;
}
.tcg-footer-inner { width: min(1152px, calc(100% - 32px)); margin-inline: auto; }
.tcg-footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 32px 24px; }
.tcg-footer-grid > * { grid-column: span 3; min-width: 0; }
.tcg-footer-brand p { font-size: 15px; margin: 0 0 12px; }
.tcg-footer .tcg-footer-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--footer-cream);
  font: 500 20px/1.15 "Source Serif 4", Georgia, serif;
}
.tcg-footer-wordmark::before {
  content: "";
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--footer-cream) url("../media/logo-128.png") center / 88% no-repeat;
}
.tcg-footer .tcg-footer-entity { font-size: 13px; margin-bottom: 0; }
.tcg-footer-entity span { display: block; }
@media (min-width: 900px) {
  .tcg-footer-entity span:last-child { white-space: nowrap; }
}
.tcg-footer .tcg-footer-group h2 {
  margin: 0 0 10px;
  font: 600 13px/1.4 "Source Sans 3", system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.tcg-footer .tcg-footer-contact { display: grid; gap: 18px; }
.tcg-footer .tcg-footer-group ul { padding: 0; margin: 0; list-style: none; }
.tcg-footer .tcg-footer-group li { margin: 0; }
.tcg-footer :is(.tcg-footer-group a, .tcg-footer-policy a, .tcg-footer-group summary) {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  color: var(--footer-muted);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-weight: 400;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
}
.tcg-footer .tcg-footer-topics summary {
  cursor: pointer;
  list-style: none;
  padding-inline-end: 1.2em;
  position: relative;
}
.tcg-footer-topics summary::-webkit-details-marker { display: none; }
.tcg-footer-topics summary::after {
  content: "";
  position: absolute;
  inset-inline-end: .15em;
  inset-block-start: 50%;
  width: .42em;
  height: .42em;
  border-inline-end: 1.5px solid var(--footer-accent);
  border-block-end: 1.5px solid var(--footer-accent);
  transform: translateY(-70%) rotate(45deg);
}
.tcg-footer-topics[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.tcg-footer .tcg-footer-topics ul {
  border-inline-start: 1px solid var(--footer-rule);
  padding-inline-start: 12px;
}
.tcg-footer :is(a, summary):focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 3px; }
.tcg-footer :is(.tcg-footer-group a, .tcg-footer-policy a, .tcg-footer-group summary):is(:hover, :focus-visible) {
  color: var(--footer-cream);
  background-size: 100% 1px;
}
.tcg-footer .tcg-footer-group a span { color: var(--footer-accent); font-size: 13px; }
.tcg-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  border-top: 1px solid var(--footer-rule);
  padding-top: 20px;
  margin-top: 40px;
}
.tcg-footer-bottom p { font-size: 14px; margin: 0; }
.tcg-footer-policy { display: flex; flex-wrap: wrap; gap: 0 20px; }
.tcg-footer .tcg-footer-policy a { white-space: nowrap; }
.tcg-footer .tcg-policy-paused { align-self: center; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tcg-footer :is(.tcg-footer-group a, .tcg-footer-policy a, .tcg-footer-group summary) {
    transition: background-size 180ms ease-out, color 180ms ease-out;
  }
}
@media (max-width: 899.98px) {
  footer.tcg-footer { padding: 40px 0; }
  .tcg-footer-grid > * { grid-column: span 6; }
  .tcg-footer :is(.tcg-footer-group a, .tcg-footer-policy a, .tcg-footer-group summary) { min-height: 44px; padding-block: 10px; }
}
@media (max-width: 639.98px) {
  .tcg-footer-grid > * { grid-column: 1 / -1; }
}

/* The consultation promotion belongs to the pages that use it. */
.tcg-consult-promo {
  background: var(--cream);
  color: var(--ink);
  border-block: 1px solid var(--line);
  padding-block: var(--space-4);
  scroll-margin-top: calc(var(--header-height) + var(--space-2));
}
.tcg-consult-promo-inner { display: grid; align-items: end; gap: var(--space-3); }
.tcg-consult-promo-inner p:last-child { margin-bottom: 0; }
.tcg-consult-promo-title {
  font: 500 var(--fs-h2)/1.1 "Source Serif 4", Georgia, serif;
  max-width: 22ch;
  margin: var(--space-1) 0;
}
.tcg-consult-promo .consult-ctas { margin: 0; }
.tcg-consult-promo .consult-link { min-height: 44px; display: inline-flex; align-items: center; }
.tcg-consult-promo + .tcg-footer { margin-top: 0; }
@media (min-width: 900px) {
  .tcg-consult-promo-inner { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 639.98px) {
  .tcg-consult-promo .btn { width: 100%; }
}

/* Separate the Join index from the footer. */
.tcg-media-surfaces main:has(> .enter-page:last-child) + .tcg-footer {
  margin-top: 0;
  border-block-start: 96px solid var(--footer-cream);
  background-clip: padding-box;
}
