/* ImposeMe site styles (the Signs tool keeps its own scoped #gsi-app styles) */
:root {
  --green: #476f5a;
  --green-dark: #355445;
  --green-tint: #eef3f0;
  --orange: #ee7d45;
  --orange-dark: #d9652c;
  --ink: #1d2329;
  --muted: #5b6570;
  --rule: #d6dbe0;
  --paper: #ffffff;
  --table: #47505a;
  --magenta: #e4007c;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: "Barlow Semi Condensed", "Barlow", sans-serif; font-weight: 700; line-height: 1.08; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

/* ---------- header / nav ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 34px; width: auto; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); border-radius: 4px; padding: 6px 12px; color: var(--ink); cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav li { position: relative; }
.nav a, .nav .soon { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 4px; white-space: nowrap; }
.nav a:hover { color: var(--green); background: var(--green-tint); }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav .soon { color: var(--muted); font-weight: 500; cursor: default; }
.nav .soon small { font-size: 0.72rem; font-weight: 600; color: var(--green); background: var(--green-tint); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 210px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 6px; box-shadow: 0 10px 24px rgba(29, 35, 41, .12); display: none; }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); }
  .nav .sub { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav .has-sub > a::after { display: none; }
}

/* ---------- home ---------- */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero p.lead { margin-top: 20px; font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; padding: 13px 22px; border-radius: 4px; background: var(--orange); color: #fff; border: 2px solid var(--orange); }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.textlink { font-weight: 600; }
.table-art { background: var(--table); border-radius: 8px; padding: 28px; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; }
.table-art svg { display: block; width: 100%; height: auto; max-height: 560px; margin: 0 auto; }
.table-art figcaption { color: #dfe5ea; font-size: 0.9rem; margin-top: 14px; text-align: center; }
.cutline { stroke-dasharray: 400; stroke-dashoffset: 400; animation: trace 2.2s ease-out .4s forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cutline { animation: none; stroke-dashoffset: 0; } }

.band { padding: 64px 0; border-top: 1px solid var(--rule); }
.band.tint { background: var(--green-tint); border-top: 0; }
.band h2 { margin-bottom: 28px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.points h3 { margin-bottom: 8px; color: var(--green); }
.points p { color: var(--muted); }

.tools { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.tools li { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.tools h3 { font-size: 1.5rem; }
.tools p { color: var(--muted); }
.tools .status { font-weight: 600; color: var(--muted); }
.tools .status a { color: var(--orange-dark); }

/* ---------- content pages ---------- */
.page-head { padding: 48px 0 8px; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.prose { padding: 24px 0 72px; }
.prose section { margin-top: 48px; }
.prose h2 { margin-bottom: 16px; }
.prose p, .prose li { max-width: 70ch; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(step); font-family: "Barlow Semi Condensed", sans-serif; font-weight: 700; font-size: 1.6rem; color: #fff; background: var(--green); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.steps h3 { margin: 8px 0 4px; }
.steps p { color: var(--muted); }
.spec { width: 100%; max-width: 900px; border-collapse: collapse; margin-top: 8px; font-size: 0.98rem; }
.spec th, .spec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.spec-wrap { overflow-x: auto; }
.callout { margin-top: 18px; padding: 14px 16px; background: var(--green-tint); border-left: 4px solid var(--green); max-width: 70ch; }

/* ---------- tool page ---------- */
.tool-page { padding: 40px 0 72px; }
.tool-page #gsi-app { max-width: none; }
.tool-page .gsi-title { font-size: clamp(2.2rem, 4.5vw, 3rem) !important; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.site-foot img { height: 22px; width: auto; display: block; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .points { grid-template-columns: 1fr; gap: 24px; }
  .tools li { grid-template-columns: 1fr; gap: 6px; }
  .wrap { padding: 0 16px; }
}
