:root {
  --green:    #12805c;
  --green-d:  #0c5f45;
  --green-l:  #e8f5f0;
  --ink:      #23282d;
  --ink-soft: #5a6067;
  --line:     #e0e5e9;
  --bg-alt:   #f5f8f7;
  --radius:   6px;
  --wrap:     980px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; color: var(--green-d); margin-top: 1.8em; }
h3 { font-size: 1.12rem; margin-top: 1.5em; }
p { margin: 0 0 1.1em; }
a { color: var(--green-d); }
a:hover, a:focus-visible { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-d); }
.header__in { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { margin-right: auto; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }

.primary-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 7px 11px; border-radius: var(--radius); color: #d3ece3;
  text-decoration: none; font-size: .8rem; font-weight: 500;
  max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a:focus-visible { background: #0a4d38; color: #fff; }

.nav-toggle { display: none; width: 44px; height: 40px; background: none; border: 1px solid #2c705a; border-radius: var(--radius); cursor: pointer; }
.nav-toggle__box { display: block; position: relative; width: 20px; height: 2px; margin: 0 auto; background: #fff; }
.nav-toggle__box::before, .nav-toggle__box::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; }
.nav-toggle__box::before { top: -6px; }
.nav-toggle__box::after  { top:  6px; }

/* article */
.article { padding: 42px 0 56px; }
.article h1 { max-width: 24ch; }
.article__meta { color: var(--ink-soft); font-size: .88rem; margin-bottom: 2em; padding-bottom: 1em; border-bottom: 2px solid var(--green-l); }
.article h2 { position: relative; padding-left: 16px; }
.article h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 2px; background: var(--green); }
.article h3 { color: var(--ink); }
.article ul { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.article li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.article li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
thead th { background: var(--green-l); color: var(--green-d); text-align: left; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody th { text-align: left; font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* footer */
.site-footer { background: #1b2226; color: #99a3a9; font-size: .92rem; padding-top: 32px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; padding-bottom: 22px; }
.footer__name { color: #fff; font-weight: 700; }
.footer__head { color: #fff; font-weight: 700; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #99a3a9; text-decoration: none; }
.site-footer a:hover { color: #5fc4a0; }
.footer__bottom { border-top: 1px solid #2b3439; padding: 14px 0; }
.footer__bottom p { margin: 0; font-size: .84rem; }

/* mobile */
@media (max-width: 900px) { .footer__in { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .article { padding: 28px 0 40px; }
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; order: 3; padding-bottom: 10px; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { max-width: none; white-space: normal; padding: 10px 6px; border-bottom: 1px solid #2c705a; border-radius: 0; }
  .header__in { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
