/* Homepage adapter for the standard footer and notices box (css/site-footer.css, css/seal27.css and css/xag-disclaimer-box.css are copies from the education site).
   This file only supplies the tokens those copies expect (the education site defines them in its frame CSS) from this site's own tokens, and tidies the phone layout. */
footer.xf, .xag-seal27, .xdisc {
  --xag-c-seal-1: #ffe08a; --xag-c-seal-2: #ffb000; --xag-c-seal-3: #e08a00;
  --xag-font-body: Calibri, Carlito, "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Thai", "Noto Sans SC", "Noto Sans KR", "Microsoft YaHei", sans-serif;
}
.xdisc { --xag-c-surface-2: var(--bg-2, rgba(127, 127, 127, .08)); --xag-c-line: var(--line, rgba(127, 127, 127, .3)); --xag-c-text-2: var(--ink-2, inherit); --xag-c-text: var(--ink, inherit); --xag-h-sub: var(--xag-h-sub-c, var(--ink)); }
/* the one notices box sits bottom-left in the page content, aligned with the page width, never inside the footer */
main > .xdisc { max-width: 1320px; margin: 32px auto 24px; width: calc(100% - 2 * var(--gutter, 16px)); }
.xdisc-head h2, .xdisc-fold > summary { color: var(--ink); }
/* the footer on the home page keeps clear of the floating side buttons, like the old footer did */
html.has-edu-float footer.xf { padding-right: max(1rem, 3.1rem); }
/* phone: stacked and tidy, two link columns, brand block first and centred on the page edge */
@media (max-width: 719px) {
  html footer.xf .xf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html footer.xf .xf-side { order: -1; grid-column: 1 / -1; }
  html footer.xf .xf-bar { justify-content: space-between; }
}
