
:root{
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #0b3d91;
  --accent-ochre: #C28E0E;
  --link: #0b3d91;
  --link-hover: #072a63;
  --panel: #fafafa;
}

*{box-sizing:border-box}

html, body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: 'Jost', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  line-height:1.6;
  scroll-behavior:smooth;
}

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

.wrapper{
  display:grid;
  grid-template-columns: 320px 1fr;
  min-height:100vh;
}

.sidebar{
  position: sticky;
  top:0;
  align-self:start;
  height:100vh;
  overflow:auto;
  padding:1rem;
  border-right:1px solid var(--border);
  background:var(--panel);
}

.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:1rem;
}
.brand .mark{
  width:12px;height:12px;border-radius:3px;background:var(--primary);
}
.brand h1{
  font-size:1.1rem;
  margin:0;
  font-weight:600;
  letter-spacing:.2px;
}

.menu{
  list-style:none;
  padding:0;margin:0;
}
.menu > li{
  margin:.25rem 0;
}
.menu a, .menu button{
  width:100%;
  background:transparent;
  border:0;
  text-align:left;
  padding:.5rem .5rem;
  font: inherit;
  border-radius:.5rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.menu a:hover, .menu button:hover{
  background:#f2f2f2;
}
.menu .group{
  padding-left:.5rem;
  margin:.25rem 0 .5rem;
  border-left:2px solid var(--border);
}
.menu .group a{
  display:block;
  padding:.35rem .5rem;
  border-radius:.5rem;
}
.menu .group a.active{
  background: rgba(194, 142, 14, 0.12);
  color: var(--accent-ochre);
  border-left: 3px solid var(--accent-ochre);
  padding-left: calc(.5rem - 3px + .5rem);
  font-weight:600;
}

.toggler{
  display:none;
  position:sticky;
  top:0;
  left:0;
  z-index:50;
  background:var(--panel);
  border-bottom:1px solid var(--border);
  padding:.75rem 1rem;
  align-items:center;
  gap:.75rem;
}
.toggler button{
  font-size:1.25rem;
  width:2rem;height:2rem;
  border-radius:.5rem;
  border:1px solid var(--border);
  background:var(--bg);
  cursor:pointer;
}

.main{
  padding:2rem clamp(1rem, 2vw, 2rem);
  max-width: 1000px;
}

section{
  padding-top: 4rem;
  margin-top: -4rem;
}

h2{
  margin-top:0;
  font-size:1.75rem;
  line-height:1.2;
}
h3{
  margin-top:2rem;
  font-size:1.25rem;
}
h4{
  margin-top:1.25rem;
  font-size:1.05rem;
  color:var(--muted);
}

.card{
  background: #fff;
  border:1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  margin:.75rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.notice{
  font-size:.95rem;
  color:var(--muted);
  border-left:4px solid var(--primary);
  padding:.75rem 1rem;
  background:#f9fafb;
  border-radius:.5rem;
}

@media (max-width: 900px){
  .wrapper{
    grid-template-columns: 1fr;
  }
  .sidebar{
    position: fixed;
    left:0; top: 3.25rem;
    height: calc(100vh - 3.25rem);
    width: 100%;
    max-width: 420px;
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .sidebar.open{
    transform: translateX(0%);
    box-shadow: 8px 0 24px rgba(0,0,0,.15);
  }
  .toggler{
    display:flex;
    justify-content:space-between;
  }
  .main{
    padding-top:1rem;
  }
}

@media print{
  .toggler, .sidebar{ display:none !important; }
  .main{ padding:0; }
}
