/* Site footer. A white panel, like the board's rails, in two rows: the
   contact sign-off beside three short lists of text links, then the fine
   print under one hairline. No pictures, no cards: type, one highlighter
   stroke and the email address do the work. Loaded just before
   <footer class="sf"> on every page that carries it. The markup has one
   source, scripts/apply-footer.py, which stamps it into the pages.
   Everything is scoped to .sf; the :where() resets at the top keep the site's
   global footer / p / li / h2 rules out without raising specificity, so the
   component rules below win by order. */


.sf{
  --sf-font-body:"Allo", "Allo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sf-font-display:"Allo", "Allo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sf-font-meta:"Allo", "Allo Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  display:block; box-sizing:border-box; width:auto; max-width:none; margin:0; padding:0;
  justify-content:normal; align-content:normal;
  /* full bleed: the canvas pages pad <body> sideways */
  margin-inline:calc(50% - 50vw);
}
.sf :where(*){box-sizing:border-box}
.sf :where(p, li, ul, h2){margin:0; padding:0; text-align:left; hyphens:manual; font-size:inherit; line-height:inherit; letter-spacing:normal; text-shadow:none}
.sf :where(ul){list-style:none}
.sf :where(span){color:inherit; margin:0; font-family:inherit}
.sf :where(h2){position:static; z-index:auto; font-weight:inherit; background:none; box-shadow:none}
.sf :where(h2)::before{content:none}
.sf :where(img, svg){vertical-align:middle}
.sf :where(a):active{box-shadow:none !important}
.sf :where(button){margin:0; font:inherit; color:inherit; text-transform:none; letter-spacing:normal; box-shadow:none; -webkit-appearance:none; appearance:none}

.sf{
  /* fixed palette, the board's own panel colours (canvas-board.css): the accent
     picker retints --border / --action, and the footer keeps its contrast
     whatever the page accent is */
  --sf-bg:#fff;
  --sf-line:rgba(5,0,56,.13);
  --sf-ink:#050038;
  --sf-soft:#55546b;
  --sf-accent:var(--yellow-strong, #ffd02f);
  /* both rows share these columns, so the fine print sits under what it belongs to */
  --sf-cols:minmax(0,1.1fr) minmax(0,1fr);
  --sf-gutter:64px;

  position:relative;
  background:var(--sf-bg); color:var(--sf-ink);
  border-radius:28px 28px 0 0;
  box-shadow:0 0 0 1px var(--sf-line), 0 -6px 24px rgba(5,0,56,.05);
  font:400 15px/1.55 var(--sf-font-body);
  text-align:left; -webkit-font-smoothing:antialiased;
}
.sf ::selection{background:var(--sf-accent); color:var(--sf-ink)}
.sf a{color:inherit; text-decoration:none}
.sf a:focus-visible,
.sf button:focus-visible,
.sf summary:focus-visible{outline:2px solid var(--sf-ink); outline-offset:3px; border-radius:4px}
.sf__inner{max-width:1120px; margin:0 auto; padding:64px 24px 28px}

.sf__label{
  font:600 11px/1 var(--sf-font-meta); letter-spacing:.07em; text-transform:uppercase;
  color:var(--sf-soft); margin:0 0 16px;
}

/* ---- Top row: the sign-off on the left, the links on the right ---- */
.sf__top{
  display:grid; grid-template-columns:var(--sf-cols); gap:40px var(--sf-gutter); align-items:start;
  padding-bottom:56px;
}
.sf__signoff{display:grid; justify-items:start}
.sf__signoff h2{
  font:700 clamp(28px,3.6vw,42px)/1.12 var(--sf-font-display); letter-spacing:0;
  max-width:19ch; text-wrap:balance;
}
.sf__nb{white-space:nowrap}
/* a highlighter stroke, as on the page headings */
.sf__signoff h2 em{font-style:normal; background:var(--sf-accent); border-radius:5px; padding:0 .22em; margin:0 -.1em}

/* The address is written out: it can be read, selected and copied without a
   mail client. The Copy button only shows once site-footer.js can serve it.
   A <div>, not a <p>: body#short turns every link in a paragraph into a button. */
.sf__mail{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:28px}
.sf__mail a{
  font:620 clamp(19px,2.3vw,26px)/1.25 var(--sf-font-display);
  text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px;
  /* the wash sits behind the text; the margin takes its padding back */
  padding:2px 6px; margin:-2px -6px; border-radius:6px;
  transition:background-color .15s;
}
.sf__mail a:hover{background-color:var(--sf-accent)}
.sf__copy{
  display:inline-flex; align-items:center; justify-content:center; min-width:64px; min-height:32px; padding:4px 12px;
  border:1px solid var(--sf-line); border-radius:999px; background:var(--sf-bg); cursor:pointer;
  font:500 12px/1 var(--sf-font-meta); letter-spacing:.01em; color:var(--sf-soft);
  transition:background-color .15s, border-color .15s, color .15s;
}
.sf__copy[hidden]{display:none}
.sf__copy:hover{border-color:var(--sf-ink); color:var(--sf-ink)}
.sf__copy.is-done{background:var(--sf-ink); border-color:var(--sf-ink); color:#fff}
.sf button.sf__copy:focus-visible{border-radius:999px}
.sf__where{margin-top:14px; font:500 13px/1.5 var(--sf-font-meta); letter-spacing:.01em; color:var(--sf-soft)}
.sf__where time{font-variant-numeric:tabular-nums}

/* ---- Links: site, elsewhere, credentials ---- */
.sf__map{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); gap:32px 24px; padding-top:10px}
.sf__map ul{list-style:none; margin:0; padding:0; display:grid; gap:10px; justify-items:start}
.sf__map li{margin:0; font-size:15px; line-height:1.35}
.sf__map li a{
  display:inline-flex; align-items:baseline; gap:6px;
  font-weight:var(--link-weight-inline, 500);
  /* the underline grows in on hover; the yellow wash sits behind the text,
     its padding taken back by the margin so nothing moves */
  padding:1px 5px; margin:-1px -5px; border-radius:5px;
  background:linear-gradient(currentColor,currentColor) 5px calc(100% - 1px)/0 1.5px no-repeat;
  transition:background-size .2s, background-color .15s;
}
.sf__map li a:hover,
.sf__map li a:focus-visible{background-color:rgba(255,208,47,.3); background-size:calc(100% - 10px) 1.5px}
.sf__map li a:active{background-color:rgba(255,208,47,.5)}
.sf__map small{font:500 11px/1 var(--sf-font-meta); letter-spacing:.01em; color:var(--sf-soft)}

/* Certification marks: who issued the certificates, small, in a row under the
   Certifications link. NN/g and IxDF are the badges they issue; Anthropic,
   OpenAI and Google are the company marks. The line under the row counts them
   all, and gives way to the issuer's own line on hover or focus; that line is
   also each link's accessible name. Counts follow the LinkedIn list. */
.sf__map li.sf__marks{position:relative; display:flex; flex-wrap:wrap; align-items:center; gap:8px 9px; margin-top:6px}
.sf__map li.sf__marks a{display:block; padding:0; margin:0; border-radius:6px; background:none}
.sf__map li.sf__marks a:hover,
.sf__map li.sf__marks a:focus-visible{background:none}
.sf__marks img{display:block; height:20px; width:auto; transition:transform .2s cubic-bezier(.16,1,.3,1)}
.sf__marks img.sf__badge{height:28px}
.sf__marks img.sf__wide{height:15px}
.sf__marks a:hover img,
.sf__marks a:focus-visible img{transform:translateY(-2px) scale(1.12)}
.sf__cap{
  position:absolute; left:0; right:0; top:calc(100% - 15px);
  font:500 11px/15px var(--sf-font-meta); letter-spacing:.01em; color:var(--sf-soft);
  opacity:0; transition:opacity .15s; pointer-events:none;
}
.sf__cap--all{position:static; flex:0 0 100%; opacity:1; white-space:nowrap}
.sf__marks a:hover .sf__cap,
.sf__marks a:focus-visible .sf__cap{opacity:1; color:var(--sf-ink)}
.sf__marks:has(a:hover, a:focus-visible) .sf__cap--all{opacity:0}

/* Tooltip text is a real element so Google Translate can reach it; the
   components that use it (canvas-board.css) show it themselves. */
.tip-label{display:none}

/* ---- Fine print: Acknowledgement of Country, sign-off line, disclaimers ---- */
.sf__fine{
  display:grid; grid-template-columns:var(--sf-cols); gap:24px var(--sf-gutter); align-items:start;
  padding-top:24px; border-top:1px solid var(--sf-line);
  font-size:13px; line-height:1.55; color:var(--sf-soft);
}
.sf__ack{display:flex; gap:14px; align-items:flex-start; max-width:60ch; text-wrap:pretty}
.sf__flags{display:inline-flex; gap:6px; flex:none; margin-top:3px}
.sf__flag{display:block; width:24px; height:16px; border-radius:2px}

/* Right column: who made it and where, then the two utilities on one line.
   The disclaimers open in place and run the full column under that line. */
.sf__end{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 24px; align-items:start}
.sf__made{grid-column:1 / -1; color:var(--sf-ink); font-weight:500}
.sf__ch{display:inline-block; width:13px; height:13px; margin:0 1px; vertical-align:-1.5px}
.sf__legal{grid-column:1 / -1; grid-row:2}
.sf__totop{grid-column:2; grid-row:2; justify-self:end; position:relative; z-index:1}
.sf__legal summary,
.sf__totop{
  display:inline-flex; align-items:center; gap:6px; min-height:24px;
  font:500 13px/1.5 var(--sf-font-meta); letter-spacing:.01em; color:var(--sf-soft);
  transition:color .15s;
}
.sf__legal summary{cursor:pointer; list-style:none}
.sf__legal summary::-webkit-details-marker{display:none}
.sf__legal summary::after{content:"+"; font-weight:400}
.sf__legal[open] summary::after{content:"−"}
.sf__legal summary:hover,
.sf a.sf__totop:hover{color:var(--sf-ink)}
.sf__totop svg{display:block; width:12px; height:12px; fill:currentColor}
.sf__legal ul{list-style:none; margin:10px 0 0; padding:0; display:grid; gap:8px; text-wrap:pretty}
.sf__legal li{margin:0}
.sf__legal b{font-weight:600; color:var(--sf-ink); margin-right:6px}
.sf__legal ul a{text-decoration:underline; text-underline-offset:2px}
.sf__legal ul a:hover{color:var(--sf-ink)}


/* ---- Responsive ---- */
/* Between the stacked layout and full width the third column is at its
   narrowest: shrink the marks a step so all five stay on one row. */
@media (900px < width < 1120px){
  .sf__map li a{flex-wrap:wrap}
  .sf__map li.sf__marks{gap:8px 6px}
  .sf__marks img{height:17px}
  .sf__marks img.sf__badge{height:24px}
  .sf__marks img.sf__wide{height:13px}
  .sf__yrs{display:none}
}
@media (width <= 900px){
  .sf__inner{padding-top:48px}
  .sf__top,
  .sf__fine{grid-template-columns:minmax(0,1fr)}
  .sf__top{padding-bottom:40px}
  .sf__signoff h2{max-width:22ch}
  .sf__map{padding-top:0}
  .sf__ack{max-width:none}
}
@media (width <= 560px){
  .sf{border-radius:20px 20px 0 0}
  .sf__inner{padding:36px 16px 24px}
  .sf__top{gap:32px; padding-bottom:32px}
  .sf__signoff h2{font-size:clamp(24px,7vw,32px)}
  .sf__mail{margin-top:20px}
  /* two lists side by side, the short third one as a row under them */
  .sf__map{grid-template-columns:repeat(2, minmax(0,1fr)); gap:28px 16px}
  .sf__map > div:nth-child(3){grid-column:1 / -1}
  .sf__map > div:nth-child(3) ul{display:flex; flex-wrap:wrap; gap:10px 24px}
  .sf__map li a{min-height:28px; align-items:center}
  .sf__map li.sf__marks{flex-basis:100%; gap:8px 16px; margin-top:4px}
  .sf__map li.sf__marks a{min-height:0}
  .sf__marks img{height:24px}
  .sf__marks img.sf__badge{height:34px}
  .sf__marks img.sf__wide{height:18px}
  .sf__fine{gap:20px}
}
@media (prefers-reduced-motion: reduce){
  .sf *{transition:none !important}
}

/* Error pages reuse the short layout (body#short), which forces its own font
   on every element with !important and restyles h2 and p. Win those back here. */
body#short footer.sf{padding:0}
body#short .sf h2{font-size:clamp(28px,3.6vw,42px); letter-spacing:0; font-weight:700}
body#short .sf h2,
body#short .sf h2 *,
body#short .sf .sf__mail a{font-family:var(--sf-font-display) !important}
body#short .sf :is(.sf__label, .sf__map small, .sf__cap, .sf__where, .sf__copy, .sf__legal summary, .sf__totop),
body#short .sf :is(.sf__label, .sf__map small, .sf__cap, .sf__where, .sf__copy, .sf__legal summary, .sf__totop) *{font-family:var(--sf-font-meta) !important}

body#short .sf .sf__cap{font-size:11px; letter-spacing:.01em; padding:0; text-align:left}
body#short .sf p{padding-bottom:0; max-width:none}
body#short .sf p.sf__label{font-size:11px; line-height:1}
body#short .sf p.sf__where{font-size:13px; line-height:1.5}
body#short .sf p.sf__ack{max-width:60ch}
body#short .sf :is(.sf__ack, .sf__made){font-size:13px; line-height:1.55}
@media (width <= 900px){
  body#short .sf p.sf__ack{max-width:none}
}
@media (width <= 560px){
  body#short .sf h2{font-size:clamp(24px,7vw,32px)}
}
