:root {
  --font-body: "Inter", sans-serif;
  --font-heading: "Playfair Display", serif;

  --color-text: #222;
  --color-muted: #555;
  --color-background: #fff;
  --color-accent: #0072B2; /* Accessible blue */
  --color-border: #ddd;
  --color-note-bg: #f9f9f9;
  --nav-width: 220px;
}
  .container {
    max-width: auto;   
    margin: 0 auto;     
    padding: 1rem;      
  }
  
  header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  html {
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
    margin: 0;
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }
  
  nav {
    flex: 0 0 var(--nav-width);
    background: #f8f9fa;
    border-right: 1px solid var(--color-border);
    padding: 2rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    font-size: 0.95rem;
  }
  
  nav h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.25rem;
  }
  
  nav ul {
    list-style: none;
    padding-left: 0;
  }
  
  nav li {
    margin-bottom: 0.5rem;
  }
  
  nav a {
    text-decoration: none;
    color: var(--color-text);
  }
  
  nav a:hover {
  color: #005f8d; /* slightly darker for better hover contrast */
}

legend, .note {
  background: #f0f6fc; /* more visible on white */
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
}

  main {
    flex: 1; 
    padding: 2rem 2rem;
    max-width: 900px;
    box-sizing: border-box;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.2rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  p { margin: 1rem 0; }
  ul, ol { margin: 1rem 0 1rem 2rem; }
  li { margin-bottom: 0.5rem; }
  
  figure { margin: 2rem 0; text-align: center; }
  figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: 0.5rem; }
  
  legend, .note {
    background: var(--color-note-bg);
    border-left: 4px solid var(--color-accent);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--color-muted);
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
  }
  
  th, td {
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
  }
  
  th {
    background: var(--color-note-bg);
    font-weight: bold;
  }
  
  .sr-only {
    border: 0;
    clip: rect(0,0,0,0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
  
  footer {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--color-muted);
  }
  
  
  @media (max-width: 900px) {
    body {
      flex-direction: column;
    }
    nav {
      width: 100%;
      height: auto;
      position: relative;
      border-right: none;
      border-bottom: 1px solid var(--color-border);
    }
    main {
      padding: 2rem 1rem;
      max-width: 100%;
    }
  }
  img {
    max-width: 100%;   
    height: auto;      
    display: block;    
    margin: 0 auto;    
  }  