/* doc.css */
:root {
    --text-color: #1a1a18;
    --link-color: #1a1a18;
    --link-hover: #767571;
    --bg-color: #f9fafb;
    --container-bg: #ffffff;
    --focus-ring: #1a1a18;
    --border-color: #eaeaea;
}

body {
    font-family: "Nuffield Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 2rem 1rem;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

h1, h2, h3 {
    font-family: "Nuffield Slab Light", "Nuffield Slab", "Segoe UI", sans-serif;
    color: #111111;
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

p, li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #555555;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

a:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
}

main:focus {
    outline: none;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 266px;
    height: auto;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    font-family: "Courier New", Courier, monospace;
    background-color: #f4f4f4;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

@media (max-width: 600px) {
    main { padding: 1.5rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
}

/* Specific styles for the header layout  */
.document-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 3rem;
  background-color: var(--container-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.header-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.header-logos img {
  max-height: 105px;
  width: auto;
  object-fit: contain;
}
.header-divider {
  border: 0;
  height: 4px;
  background-color: #d3d3d3; /* Matches the lightgrey span from the original doc */
  margin: 1.5rem 0;
  border-radius: 2px;
}
.team-directory {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  font-size: 1.125rem;
  font-style: normal;
}
.directory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0rem;
}
.directory-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.directory-row .department {
  font-style: italic;
  color: #555555;
  text-align: right;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Responsive stacking for smaller screens */
@media (max-width: 600px) {
  .document-header { padding: 1.5rem; }
  .directory-row {
      flex-direction: column;
      justify-content: flex-start;
      gap: 0.25rem;
  }
  .directory-row .department {
      text-align: left;
      font-size: 1rem;
  }
}
