/*
  The footer, shared by every page (html/footer.html). Laid out like a product site footer:
  a wordmark, columns of links, and a bottom bar, split by dashed lines. It carries its own colors
  so it also works on the older pages that do not load index.css.
*/
.footer {
  --f-line: #24262b;
  --f-dash: #33363d;
  --f-dash-img: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges' fill='%2333363d'><rect x='1' y='0' width='6' height='1'/><rect x='1' y='13' width='6' height='1'/><rect x='0' y='1' width='1' height='6'/><rect x='13' y='1' width='1' height='6'/><rect x='0' y='0' width='1' height='1'/><rect x='13' y='0' width='1' height='1'/><rect x='0' y='13' width='1' height='1'/><rect x='13' y='13' width='1' height='1'/></svg>");
  --f-bg: #0c0d0f;
  --f-txt: #f4f4f5;
  --f-muted: #9a9ca3;
  --f-faint: #62656d;
  --f-accent: #56ccff;
  border-top: 1px solid var(--f-line);
  font-family: Inter, "Noto Sans Thai", Arial, sans-serif;
}
.light-theme .footer {
  --f-line: #cfcfc8;
  --f-dash: #b9b9b1;
  --f-dash-img: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' shape-rendering='crispEdges' fill='%23b9b9b1'><rect x='1' y='0' width='6' height='1'/><rect x='1' y='13' width='6' height='1'/><rect x='0' y='1' width='1' height='6'/><rect x='13' y='1' width='1' height='6'/><rect x='0' y='0' width='1' height='1'/><rect x='13' y='0' width='1' height='1'/><rect x='0' y='13' width='1' height='1'/><rect x='13' y='13' width='1' height='1'/></svg>");
  --f-bg: #f9f9f7;
  --f-txt: #101113;
  --f-muted: #55575c;
  --f-faint: #8a8c91;
  --f-accent: #0699d9;
}
/* the band above already draws this line on the blueprint pages */
.band ~ footer .footer {
  border-top: 0;
}
.g-f {
  box-sizing: border-box;
  max-width: 1040px;
  margin: 0 auto;
  background-color: var(--f-bg);
  border-left: 1px solid var(--f-line);
  border-right: 1px solid var(--f-line);
}

/* wordmark + columns */
.ft-main {
  padding: 36px 28px 48px;
}
.ft-brand {
  display: inline-block;
  color: var(--f-txt);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.ft-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  max-width: 600px;
  margin: 44px 0 0 auto;
}
.ft-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}
.ft-col h4 {
  margin: 0 0 6px;
  color: var(--f-faint);
  font-size: 12px;
  font-weight: 500;
}
.ft-col a {
  color: var(--f-txt);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 200ms;
}
.ft-col a:hover {
  color: var(--f-accent);
}

/* bottom bar: a dashed line across the whole page, then the copyright */
.ft-bar {
  border-top: 1px solid transparent;
  border-image: var(--f-dash-img) 1 repeat;
}
.ft-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 16px 28px;
}
.footer-text,
.footer-rc,
.footer-rc .rc,
.footer-text .rc {
  color: var(--f-faint);
  font-size: 12px;
  font-weight: normal;
  line-height: 1.6;
  text-decoration: none;
}
.footer-rc .rc,
.footer-text .rc {
  color: var(--f-muted);
  transition: color 200ms;
}
.footer-rc .rc:hover,
.footer-text .rc:hover {
  color: var(--f-accent);
}

@media all and (max-width: 760px) {
  .ft-cols {
    max-width: none;
    margin-left: 0;
  }
}
@media all and (max-width: 560px) {
  .ft-main {
    padding: 28px 18px 36px;
  }
  .ft-bar-in {
    padding: 14px 18px;
  }
}
