/* mkstick. Shares the czt.sh page frame: same header, footer, widths, type and colours. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk.woff2) format("woff2");
}

:root {
  --jade: #0b6b52;
  --jade-dark: #084d3b;
  --sun: #ffd23f;
  --text: #10231c;
  --dim: #40524a;
  --faint: #73847c;
  --line: #d3ded8;
  --wash: #f4f7f5;
  --bad: #a3271f;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --measure: 700px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.6 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
a { color: var(--jade); text-underline-offset: 2px; }
a:hover { color: var(--jade-dark); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header, as on czt.sh */
.site-header { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 58px; }
.brand { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
#site-nav { margin-left: auto; }
#site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
#site-nav li { margin: 0; }
#site-nav a, .p-cta { color: var(--dim); font-size: 0.94rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
#site-nav a:hover, .p-cta:hover { color: var(--text); text-decoration: underline; }
.t-social { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex: none; }
.t-social li { margin: 0; }
.t-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--dim); }
.t-social a:hover { color: var(--text); background: var(--wash); }
.t-social svg { width: 17px; height: 17px; fill: currentColor; }
.t-menu-btn { display: none; flex: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0; margin-left: auto; }
.t-menu-btn i { display: block; width: 18px; height: 2px; background: var(--text); }

/* mkstick's own bar and introduction. The frame above and below is czt.sh's; this part is the product's. */
.product-bar { border-bottom: 1px solid var(--line); background: #fff; }
.product-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.product-name { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.product-name:hover { color: var(--text); }
.mark { width: 30px; height: 30px; flex: none; }
.product-bar nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.product-bar nav a { color: var(--text); font-size: 0.96rem; font-weight: 600; text-decoration: none; white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; }
.product-bar nav a:hover { border-bottom-color: var(--sun); }

.product-hero { background: var(--jade); color: #fff; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 360px); gap: 48px; align-items: center; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(40px, 6vw, 84px); }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 18px; max-width: 12em; }
.lede { margin: 0 0 24px; color: #dcebe5; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.cta .btn { display: inline-flex; align-items: center; text-decoration: none; }
.latest { margin: 0; color: #c4dbd2; font-size: 0.94rem; }
.hero-art { width: 100%; height: auto; display: block; }
.hashtag { margin: 14px 0 0; color: var(--sun); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 750; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--text); }
.btn.sun:hover { background: #f2c200; border-color: #f2c200; color: var(--text); }
.btn.onjade { background: transparent; border-color: #fff; color: #fff; }
.btn.onjade:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.product-hero :focus-visible { outline-color: #fff; }

.need { list-style: none; margin: 0 0 clamp(36px, 5vw, 64px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.need li { margin: 0; padding: 18px 20px 18px 0; font-size: 0.96rem; color: var(--dim); }
.need li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.need b { color: var(--text); font-weight: 650; display: block; }

h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 750; margin: 0 0 14px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 6px; }
p { margin: 0 0 12px; }

/* Steps on a rail. One step is open at a time. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 820px; }
.step { position: relative; padding: 0 0 28px 48px; counter-increment: step; margin: 0; }
.step::before { content: ""; position: absolute; left: 14px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step::after {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--dim);
  font-size: 0.88rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.step h2 { margin-bottom: 4px; }
.step[data-state="done"]::after { background: var(--sun); border-color: var(--sun); color: var(--text); }
.step[data-state="current"]::after { background: var(--jade); border-color: var(--jade); color: #fff; }
.step[data-state="current"] h2 { margin-bottom: 12px; }
.step[data-state="current"] { padding-bottom: 38px; }
.step[data-state="todo"] h2 { color: #8a9892; font-weight: 600; }
.step[data-state="todo"] .body, .step[data-state="done"] .body { display: none; }
.step .sumline { display: none; margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.step[data-state="done"] .sumline { display: block; }
.step .body > p { max-width: var(--measure); }
.change { margin-left: 8px; font-size: 0.92rem; }
.howto { padding-left: 1.3em; margin: 0 0 16px; max-width: var(--measure); }
.howto li { margin: 10px 0; padding-left: 4px; }
.howto .btn { display: inline-flex; align-items: center; text-decoration: none; }

.muted { color: var(--dim); }
.small { font-size: 0.92rem; }
.status { color: var(--dim); }
.status:empty { display: none; }
.status.ok { color: var(--jade); font-weight: 600; }
.status.bad { color: var(--bad); font-weight: 600; }
.file { font-size: 0.85rem; overflow-wrap: anywhere; min-height: 1.4em; margin: 4px 0 10px; }

.fields { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 12px; }
.fields label { display: grid; gap: 4px; font-size: 0.9rem; color: var(--dim); }
select { font: inherit; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); max-width: 100%; }

/* Choices */
.rows h3 { margin: 14px 0 0; padding-bottom: 6px; font-size: 0.92rem; font-weight: 600; color: var(--dim); border-bottom: 1px solid var(--line); }
.rows h3:first-child { margin-top: 0; }
.row { display: flex; gap: 12px; align-items: baseline; padding: 12px 8px; min-height: 48px; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:hover { background: var(--wash); }
.row input { accent-color: var(--jade); margin: 0; width: 17px; height: 17px; transform: translateY(3px); flex: none; }
.row .name { font-weight: 600; flex: 1; }
.row .meta { color: var(--dim); font-size: 0.92rem; text-align: right; }
.row:has(input:checked) { background: var(--wash); }
.row:has(input:checked) .name { color: var(--jade); }
.row.off { cursor: default; opacity: 0.6; }

/* Controls */
.btn {
  font: inherit; font-size: 0.98rem; font-weight: 600; min-height: 44px; padding: 0 18px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--jade); background: #fff; color: var(--jade);
}
.btn:hover { background: var(--wash); color: var(--jade); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--jade); color: #fff; }
.btn.primary:hover { background: var(--jade-dark); color: #fff; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 0.88rem; }
.btn:disabled { border-color: var(--line); background: var(--wash); color: var(--dim); cursor: not-allowed; transform: none; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--jade); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn:disabled { color: var(--dim); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.drop:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }

.drop { display: block; border: 1px dashed var(--jade); border-radius: 6px; padding: 24px 16px; text-align: center; cursor: pointer; color: var(--jade); font-weight: 600; margin-bottom: 8px; }
.drop:hover, .drop.over { background: var(--wash); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.summary { list-style: none; padding: 0; margin: 12px 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.summary li { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; }
.summary li span:last-child { text-align: right; overflow-wrap: anywhere; }
.k { color: var(--dim); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; }

/* Format help */
details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 12px; max-width: var(--measure); }
summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--jade); }
details[open] { padding-bottom: 10px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 4px; }
.tabs button { font: inherit; min-height: 44px; padding: 8px 16px; border: 0; background: none; cursor: pointer; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--jade); }
.tabpanel { padding-top: 6px; }
ol, ul { padding-left: 1.3em; }
li { margin: 4px 0; }
pre { background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow-x: auto; font-size: 0.85rem; margin: 8px 0; }

progress { width: 100%; max-width: var(--measure); height: 14px; accent-color: var(--jade); display: block; margin-bottom: 8px; }
.notice { border: 1px solid var(--line); background: var(--wash); padding: 14px 16px; margin: 0 0 28px; border-radius: 6px; max-width: 820px; }
.notice p:last-child { margin-bottom: 0; }
#error { margin: 12px 0 0; }
.notice.warn { background: #fffbea; border-color: #e9d588; margin: 12px 0 0; max-width: var(--measure); }
#error .btn { margin-right: 8px; }

/* Sections under the tool, spaced as on czt.sh */
.block { padding-top: clamp(48px, 7vw, 96px); }
.block > p { max-width: var(--measure); color: #22352d; }
.done { margin-top: 8px; padding-top: 28px; border-top: 4px solid var(--sun); max-width: 820px; }
.give { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid var(--line); max-width: 820px; }
.give li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.give .k { flex: 0 0 240px; white-space: nowrap; }
.give code { flex: 1 1 260px; overflow-wrap: anywhere; }
.keys { border-collapse: collapse; margin: 10px 0 14px; width: 100%; max-width: 380px; }
.keys caption { text-align: left; font-weight: 650; padding-bottom: 4px; }
.keys th, .keys td { text-align: left; padding: 5px 28px 5px 0; border-bottom: 1px solid var(--line); }
.keys th { font-weight: 600; color: var(--dim); }
.legal { margin: clamp(40px, 6vw, 72px) 0 0; color: var(--faint); font-size: 0.88rem; max-width: var(--measure); }

/* Footer, as on czt.sh */
.p-foot { background: #fff; border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 112px); padding: 28px 0; font-size: 0.95rem; color: var(--dim); }
.p-foot-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.p-foot p { margin: 0; }
.p-foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.p-foot-links li { margin: 0; }
.p-foot-links a { color: var(--text); text-decoration: none; }
.p-foot-links a:hover { text-decoration: underline; }
.p-foot .p-foot-base { margin-top: 16px; color: var(--faint); font-size: 0.88rem; }

@media (max-width: 1040px) {
  .t-social { display: none; }
}
@media (max-width: 860px) {
  .t-menu-btn { display: flex; }
  .p-cta { display: none; }
  #site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; margin: 0; }
  .menu-open #site-nav { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; }
  #site-nav li { border-bottom: 1px solid var(--line); }
  #site-nav a { display: block; font-size: 1.0625rem; padding: 14px 0; }
  .hero { grid-template-columns: 1fr; gap: 0; }
  .hero-art { display: none; }
  .need { grid-template-columns: 1fr; }
  .need li, .need li + li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .need li:first-child { border-top: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .product-bar nav a:nth-child(-n+3) { display: none; }
  .product-name { font-size: 1.1rem; }
  .step { padding-left: 42px; }
  .row { flex-wrap: wrap; }
  .row .meta { text-align: left; width: 100%; padding-left: 29px; }
  .give .k { flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
