:root {
  --bg: #FFFFFF;
  --primary: #C0281C;
  --text: #030712;
  --border: #E5E7EB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.wrap { max-width: 1328px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top {
  background: var(--bg);
  box-shadow: 0 2px 6px rgba(3, 7, 18, 0.12);
  padding: 30px 0;
}

.topinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; display: block; }

.right { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a[aria-current="page"] { font-weight: 600; }
.nav a:hover { text-decoration: underline; }

.sub {
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 6px;
}
.sub:hover { filter: brightness(0.92); }

main { padding-top: 40px; padding-bottom: 56px; flex: 1; width: 100%; }

h1, h2, h3, h4 {
  font-family: Manrope, Inter, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 32px; margin: 0 0 20px; }
h2 { font-size: 28px; margin: 15px 0 16px; }
h3 { font-size: 24px; margin: 15px 0 16px; padding-top: 15px; border-top: 1px solid var(--border); }
h4 { font-size: 18px; margin: 20px 0 8px; }

.updated { margin: 0 0 0; padding-bottom: 15px; border-bottom: 1px solid var(--border); }

p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 16px; }
li strong { font-weight: 400; }


.foot { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 15px; }
.foot .brand img { height: 32px; }
.foot p { margin: 16px 0 0; }
.foot .links a { margin-right: 24px; }
.foot .small { opacity: 1; }

.doclist { list-style: none; margin: 0; padding: 0; }
.doclist li { margin: 0; border-bottom: 1px solid var(--border); }
.doclist a { display: block; padding: 18px 0; font-family: Manrope, Inter, system-ui, sans-serif; font-weight: 700; font-size: 20px; text-decoration: none; }
.doclist a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .top { padding: 16px 0; }
  .nav { display: none; }
  .brand img { height: 28px; }
}
