:root {
  --green: #0f6e5a;
  --green-dark: #0a4f41;
  --green-soft: #e6f3ef;
  --ink: #1c2421;
  --muted: #56625d;
  --line: #d6dfdb;
  --bg: #fafcfb;
  --warn-bg: #fff6e0;
  --warn-line: #e8c35d;
  --err: #b3261e;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; }
img, svg { max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; background: #fff; padding: .5rem; z-index: 10; }

.site-header { background: var(--green); color: #fff; }
.header-inner { display: flex; flex-direction: column; gap: .25rem; padding-top: .75rem; padding-bottom: .5rem; }
.brand { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.brand-mark { color: #bfe6da; }
.site-nav { display: flex; gap: .25rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
.site-nav a { color: #fff; text-decoration: none; padding: .4rem .7rem; border-radius: 999px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.18); color: #fff; }
@media (min-width: 760px) {
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

main { padding-top: 1.25rem; padding-bottom: 2rem; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; }
.lead { font-size: 1.125rem; color: var(--muted); }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.card h3 { margin: 0 0 .4rem; }
.card p { margin: 0 0 .6rem; color: var(--muted); }

.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.field { margin-bottom: 1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.hint { display: block; font-size: .9rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="number"], input[type="time"], select, textarea {
  width: 100%; font: inherit; padding: .65rem .7rem; border: 1px solid #aebbb5; border-radius: 8px; background: #fff; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #9fd6c6; border-color: var(--green); }
.row-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
button, .btn {
  font: inherit; font-weight: 600; min-height: 44px; padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--green);
  background: var(--green); color: #fff; cursor: pointer;
}
button:hover { background: var(--green-dark); }
button.secondary { background: #fff; color: var(--green); }
button.secondary:hover { background: var(--green-soft); }
button.link { background: none; border: none; color: var(--err); padding: .4rem; min-height: 0; font-weight: 400; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }

.result { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--green-soft); border: 1px solid #b7dccf; }
.result:empty { display: none; }
.result .big { font-size: 1.5rem; font-weight: 700; margin: 0; }
.error { color: var(--err); font-weight: 600; }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: .75rem 1rem; }
.method { font-size: .95rem; }
code { background: #eef2f0; padding: .1rem .3rem; border-radius: 4px; font-size: .95em; word-break: break-word; }

table { width: 100%; border-collapse: collapse; margin: .5rem 0; font-size: .97rem; }
th, td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.item { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin-bottom: .75rem; background: #fcfdfd; }
.item-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.item-head strong { font-size: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .25rem .9rem; border: 0; padding: 0; margin: 0; }
.checks label { font-weight: 400; display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; }
.checks input { width: 20px; height: 20px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; font-size: .93rem; color: var(--muted); padding: 1.25rem 0 2rem; }
.footer-nav a { white-space: nowrap; }
