/* Shared additions for the live site. The page styles themselves are inline. */
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid #E0382B; outline-offset: 3px; }

/* Résumé page */
.resume-bar { display: flex; justify-content: space-between; align-items: center; max-width: 816px; margin: 0 auto; padding: 16px 12px; font-family: Archivo, sans-serif; font-size: 14px; color: #2A211D; }
.resume-bar a { color: #2A211D; text-decoration: none; padding: 10px 0; }
.resume-wrap { width: 816px; margin: 0 auto 40px; box-shadow: 0 2px 16px rgba(42,33,29,0.12); }
@media print { .resume-bar { display: none; } .resume-wrap { box-shadow: none; margin: 0; zoom: 1 !important; } }

/* Tablet */
@media (max-width: 1000px) {
  .site [style*="repeat(4, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Phone */
@media (max-width: 700px) {
  /* every multi-column grid becomes one column */
  .site #dc-root [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* grids of image tiles keep two across */
  .site #dc-root [style*="grid-template-columns"]:has(> button img) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* case-study titles: smaller, and allow the italic half to wrap */
  .site #dc-root h1[style*="clamp("] { font-size: clamp(42px, 12.5vw, 64px) !important; }
  .site #dc-root h1 span[style*="nowrap"], .site #dc-root h2 span[style*="nowrap"] { white-space: normal !important; }
  /* contact heading on Home */
  .site #dc-root #contact h2 { font-size: 30px !important; }
  /* the shared header: nav, name, utility links stack and centre */
  .site #dc-root header { justify-items: center; text-align: center; padding: 10px 16px !important; row-gap: 0 !important; }
  .site #dc-root header nav, .site #dc-root header > div { justify-content: center !important; justify-self: center !important; gap: 18px !important; }
  /* big section padding comes down */
  .site #dc-root section[style*="padding: 140px"], .site #dc-root section[style*="padding: 120px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  .site #dc-root section[style*="padding: 112px"], .site #dc-root section[style*="padding: 88px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  .site #dc-root [style*="padding-bottom: 120px"], .site #dc-root [style*="padding: 0 16px 120px"], .site #dc-root [style*="padding: 0 16px 140px"], .site #dc-root [style*="padding: 0 24px 140px"] { padding-bottom: 72px !important; }
  .site #dc-root [style*="margin-bottom: 120px"] { margin-bottom: 72px !important; }
  /* colour bands on Home */
  .site #dc-root a[style*="min-height: 680px"] { min-height: 0 !important; flex-direction: column !important; }
  .site #dc-root a[style*="min-height: 680px"] > div { padding: 40px 20px !important; flex-basis: 100% !important; gap: 28px !important; }
  .site #dc-root a[style*="min-height: 680px"] img { max-height: 420px !important; }
  /* framed panels with heavy padding */
  .site #dc-root [style*="padding: 56px"] { padding: 24px !important; }
  /* scrolling strip on Ontos */
  .site #dc-root button[style*="height: 480px"] { height: 320px !important; }
  /* About rows: where / role / years */
  .site #dc-root [style*="110px"][style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) auto !important; row-gap: 4px; }
  .site #dc-root [style*="110px"][style*="grid-template-columns"] > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .site #dc-root [style*="110px"][style*="grid-template-columns"] > span:nth-child(3) { grid-row: 1; grid-column: 2; }
}
