:root {
    --bg: #f0f0f0;
    --panel: #1b3674;
    --sop: #afbfe4;
    --text: #180505;
    --muted: #9aa4b2;
    --link: #2f71bd;
    --accent: #2ea043;
    --border: #222838;
    --highlight: #998c4260;
    --notice: #c8b588;
    --optional: #c7c8aa;
    --red:#c61111;
  }
  
  * { box-sizing: border-box; }
  
  html, body { 
    height: 100%; 
  }
 

  body {
    margin: 0;
    margin-bottom: 50px;
    padding-bottom: 50px;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  }
  
  .topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--panel);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .brand { 
    font-weight: 600; 
    letter-spacing: 0.2px;
    color: var(--bg);
  }

  .brand a { 
    font-weight: 600; 
    letter-spacing: 0.2px;
    color: var(--bg);
    text-decoration: none;
    margin-right: 1rem; 
  }

  .search input {
    width: min(17rem, 45vw);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: #7e7f81;
    color: var(--text);
  }
  .search input::placeholder { color: var(--muted); }
  
  .layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: calc(100vh - 56px);
  }
  
  .toc {
    border-right: 1px solid var(--border);
    background: #0b0e14;
    padding: 1rem;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow: auto;
  }

  .toc h2 {
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    color: var(--muted);
  }

  .toc ul { 
    list-style: none; 
    padding: 0; 
    margin: 0;
    margin-bottom: 28px; 
  }

  .toc li { 
    margin: 0.2rem; 
  }

  .toc a {
    color: var(--link);
    text-decoration: none;
    font-size: 0.92rem;
  }

  #toc li.toc-number > a {
    text-decoration: none;
    font-weight: bold;
    color: #d5dcec;  
    padding: 0.15rem 0.15rem;
    margin-left: 0.2rem;
  }

  #toc li.toc-number {
    margin-top: 1rem;
  }

  #toc li.toc-number > a:hover { 
    text-decoration: underline; 
  }

  #toc li.toc-subletter > a {
    text-decoration: none;
    font-style: italic;
    color: #376791;
    margin-left: 0.8rem;
  }

   #toc li.toc-subletter > a:hover { 
    text-decoration: underline; 
  }

  article#doc h1, article#doc h2, article#doc h3, article#doc h4 {
    scroll-margin-top: 88px;
  }

  article#doc h1 {
    font-size: 1.35rem;
    margin-top: 0.7rem;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.25rem;
  }

  article#doc p {margin-top: 0rem }
  article#doc h2 { font-size: 1.15rem; margin-top: 1.2rem; margin-bottom: 0rem;}
  article#doc h3 { font-size: 1.02rem; margin-top: 1rem; }
  article#doc h4 { font-size: 0.98rem; margin-top: 0.9rem; }

  article#doc .sop h2 {
    font-size: 1.3rem;
  }

  article#doc .sop h1 {
    font-size: 2rem; 
    background: var(--panel); 
    color:var(--bg); 
    padding: 0.8rem;   
  }

  article#doc .chapter_headline h1 {
    font-size: 2rem; 
    background: var(--panel); 
    color:var(--bg); 
    padding: 0.8rem;
    margin-top: 3rem;   
  }

  .content {
    padding: 1rem 1.25rem;
    margin-bottom: 28px;
  }

  .notice {
    margin: 0 0 1rem;
    background: var(--notice);
    border: 1px solid var(--red);
    padding: 0.75rem 0.9rem;
    border-radius: 4px;
  }

  .important {
    margin: 0 0 1rem;
    background: var(--bg);
    border: 1px solid var(--red);
    padding: 0.25rem 0.9rem;
    border-radius: 4px;
  }

  .optional {
    margin: 0 0 1rem;
    background: var(--optional);
    border: 1px solid var(--red);
    padding: 0.25rem 0.9rem;
    border-radius: 4px;
  }

  .headline {
    margin: 0 0 0.5rem;
    background: var(--muted);
    border: 1px solid var(--muted);
    color: #000000;
    padding: 0.15rem 0.9rem;
    border-radius: 4px;
  }

  .sop {
    margin: 0 0 1rem;
    background: var(--bg);
    border: 1px solid var(--red);
    padding: 0.25rem 0.9rem;
    border-radius: 6px;
    margin-top: 3rem;
  }

  .sop h2 {
    color: #1b3674;
    font-weight: bolder;
    font-size:530%;
    text-decoration: underline;
  }
  
  a.rule-link {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
  }
  a.rule-link:hover { border-bottom-color: var(--link); }
  
  mark.hit {
    background: #da9d10;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
  }
  
  mark.hit.active-hit {
    background-color: #da9d10;
    outline: 2px solid red;
}
  .footer {
    display: flex;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    background: var(--panel);
    font-size: 0.9rem;
    color: var(--muted);
    position: fixed;
    bottom: 0;
    left:0;
    width: 100%;
    height: 28px;
    line-height: 4px;
    z-index: 9;
  }
  
  .none {
    list-style: none;
    margin-top: 10px;
  }


  .check {
    list-style: none;
    margin-top: 0.5rem;
  }


  .check::before {
    content:"\2713\0020"; /* Insert checkmark character */
    margin-right: 8px; /* Adjust spacing as needed */
    color: green; /* Optional: style the checkmark color */   
  }

  .bold {
    font-weight: bold;
  }

  div ul {
    margin-top: 0.2rem;
  }

  .check .normal_after_check {
    margin-top: 0.2rem;
    margin-left: 1rem;
  }

  ul {
    margin-top: -10px;
  }

  .imp_margin_top {
    margin-top: 0px !important;
  }

