/* Keycap: light spelling desk. Paper, ink, one Playdash-green accent; keys are the only raised shapes. */
:root {
  --paper: #f7f5ef;
  --sheet: #ffffff;
  --ink: #17191f;
  --ink-2: #3d424d;
  --mute: #646a76;
  --rule: #e3dfd4;
  --key: #fbfaf6;
  --key-edge: #cfc9bb;
  --cob: #3f8f12;
  --cob-d: #2c6a0a;
  --cob-soft: #ecf6e1;
  --warn: #9a4a00;
  --warn-soft: #fff2e3;
  --ok: #17643a;
  --ok-soft: #e6f4ec;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --col: 760px;
  --wide: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--cob); text-underline-offset: 3px; }
a:hover { color: var(--cob-d); }
kbd { font-family: var(--mono); }
.kc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kc-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.kc-skip:focus { left: 8px; }

/* keys: the raised shape used for every button */
.kc-key { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px;
  border-radius: 9px; border: 1px solid var(--cob-d); border-bottom-width: 4px; background: var(--cob); color: #fff !important;
  font: 700 15px/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .08s, border-bottom-width .08s; }
.kc-key:hover { background: var(--cob-d); }
.kc-key:active { transform: translateY(2px); border-bottom-width: 2px; }
.kc-key--light { background: var(--key); color: var(--ink) !important; border-color: var(--key-edge); }
.kc-key--light:hover { background: #fff; color: var(--cob) !important; }

/* header */
.kc-top { position: sticky; top: 0; z-index: 30; background: rgba(247, 245, 239, .96); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.kc-top__in { max-width: var(--wide); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.kc-top__logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.kc-top__logo img { display: block; height: 38px; width: auto; }
.kc-word { font: 800 22px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.kc-top__nav { flex: 1 1 auto; }
.kc-top__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.kc-top__list a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.kc-top__list a:hover, .kc-top__list .is-now a { background: var(--sheet); color: var(--cob); box-shadow: inset 0 -2px 0 var(--key-edge); }
.kc-top__keys { display: flex; gap: 8px; flex: 0 0 auto; }
.kc-top__tog { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 9px; background: var(--key); cursor: pointer; position: relative; }
.kc-top__tog span, .kc-top__tog span::before, .kc-top__tog span::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); }
.kc-top__tog span { top: 20px; }
.kc-top__tog span::before { top: -6px; left: 0; right: 0; }
.kc-top__tog span::after { top: 6px; left: 0; right: 0; }

/* intro and H1 */
.kc-main { display: block; padding-bottom: 40px; }
.kc-intro { max-width: var(--col); margin: 0 auto; padding: 28px 16px 8px; }
.kc-intro--home { max-width: 900px; padding-top: 36px; text-align: center; }
.kc-h1 { margin: 6px 0 14px; font: 800 clamp(28px, 4.6vw, 44px)/1.12 var(--sans); letter-spacing: -.025em; color: var(--ink); }
.kc-trail { font: 13px/1.4 var(--mono); color: var(--mute); }
.kc-trail a { color: var(--mute); text-decoration: none; }
.kc-trail a:hover { color: var(--cob); }
.kc-intro__pic figure { margin: 14px 0 6px; }
.kc-intro__pic img { border-radius: 14px; display: block; width: 100%; border: 1px solid var(--rule); }

/* front-page search strip */
.kc-strip { margin: 0 auto 10px; max-width: 720px; }
.kc-strip__box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 12px 16px; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 999px; box-shadow: 0 6px 18px rgba(23, 25, 31, .06); font: 600 16px/1.3 var(--mono); }
.kc-strip__lens { width: 16px; height: 16px; border: 2.5px solid var(--mute); border-radius: 50%; position: relative; flex: 0 0 auto; }
.kc-strip__lens::after { content: ""; position: absolute; width: 7px; height: 2.5px; background: var(--mute); right: -6px; bottom: -3px; transform: rotate(45deg); }
.kc-strip__words { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kc-strip__words s { color: var(--mute); text-decoration-color: #c2410c; text-decoration-thickness: 2px; }
.kc-strip__arrow { color: var(--cob); font-weight: 800; }
.kc-strip__right { padding: 4px 12px; border-radius: 8px; border: 1px solid var(--cob-d); border-bottom-width: 3px; background: var(--cob); color: #fff; }
.kc-strip__note { margin: 10px 0 0; color: var(--mute); font-size: 14px; }

.kc-lead { display: block; max-width: var(--wide); margin: 10px auto 6px; padding: 0 16px; }
.kc-lead img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--rule); }

/* key-row contents */
.kc-wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.kc-keys { margin: 14px 0 22px; padding: 14px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; }
.kc-keys__h { margin: 0 0 10px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kc-keys__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kc-keys__row a { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 9px;
  background: var(--key); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.3; font-weight: 600; }
.kc-keys__row a:hover { color: var(--cob); border-color: var(--cob); }
.kc-keys__row kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; }

/* article */
.kc-text { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; padding: 26px 30px 22px; }
.kc-text > *:first-child { margin-top: 0; }
.kc-text h2 { margin: 40px 0 12px; font: 800 26px/1.22 var(--sans); letter-spacing: -.02em; scroll-margin-top: 80px; }
.kc-text h2::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 3px; background: var(--cob); margin-bottom: 12px; }
.kc-text h3 { margin: 26px 0 8px; font: 700 20px/1.3 var(--sans); }
.kc-text h4 { margin: 20px 0 6px; font: 700 17px/1.35 var(--sans); }
.kc-text p { margin: 0 0 16px; }
.kc-text ul, .kc-text ol { margin: 0 0 18px; padding-left: 22px; }
.kc-text li { margin: 6px 0; }
.kc-text li::marker { color: var(--cob); font-weight: 700; }
.kc-text em { font-family: var(--mono); font-style: normal; font-size: .93em; padding: 1px 6px; border-radius: 5px; background: var(--paper); border: 1px solid var(--rule); }
.kc-text strong { font-weight: 700; }
.kc-text figure { margin: 22px 0; }
.kc-text figure img { display: block; border-radius: 12px; border: 1px solid var(--rule); cursor: zoom-in; }
.kc-fig__note, .kc-text figcaption { font-size: 13px; color: var(--mute); margin-top: 6px; }
.kc-by { margin: 26px 0 0 !important; padding-top: 14px; border-top: 1px dashed var(--rule); font: 13px/1.5 var(--mono); color: var(--mute); }

/* tables */
.kc-grid { margin: 22px 0; }
.kc-grid__wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.kc-grid table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.kc-grid th { text-align: left; background: var(--paper); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.kc-grid td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.kc-grid tr:last-child td { border-bottom: 0; }
.kc-grid td:first-child { font-family: var(--mono); font-size: 14px; }

/* components */
.kc-tip { margin: 22px 0; padding: 14px 16px 14px 18px; border-radius: 12px; background: var(--cob-soft); border-left: 5px solid var(--cob); }
.kc-tip p { margin: 0; }
.kc-tip__lab, .kc-tip strong:first-child { color: var(--cob-d); }
.kc-steps { margin: 22px 0; padding: 0; list-style: none; counter-reset: k; }
.kc-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: k; }
.kc-steps li { counter-increment: k; position: relative; margin: 0 0 10px; padding: 12px 14px 12px 58px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.kc-steps li::before { content: counter(k); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 8px; background: var(--key); font: 700 15px/1 var(--mono); color: var(--ink); }
.kc-steps li::marker { content: ""; }
.kc-sheet { margin: 22px 0; }
.kc-sheet table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; font-size: 15px; }
.kc-sheet th { background: var(--ink); color: #fff; text-align: left; padding: 10px 12px; }
.kc-sheet td { padding: 9px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.kc-sheet td:first-child { width: 42%; color: var(--ink-2); font-weight: 600; }
.kc-vs { margin: 22px 0; display: grid; gap: 10px; }
.kc-vs__side { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule); }

/* CTA */
.kc-cta-box, .kc-text .kc-cta { margin: 26px 0; }
.kc-text .factory-cta, .kc-text .kc-cta-wrap { margin: 26px 0; }
.kc-cta { display: flex; justify-content: center; margin: 18px 0 24px; }
.kc-cta .kc-btn, .kc-cta a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 10px; border: 1px solid var(--cob-d); border-bottom-width: 4px;
  background: var(--cob); color: #fff !important; font: 700 17px/1.2 var(--sans); text-decoration: none; }
.kc-cta a:active { transform: translateY(2px); border-bottom-width: 2px; }

/* FAQ */
.kc-faq { margin: 34px 0 0; }
.kc-faq__item { border: 1px solid var(--rule); border-radius: 12px; margin: 0 0 8px; background: var(--sheet); }
.kc-faq__item summary { cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 700; list-style: none; position: relative; }
.kc-faq__item summary::-webkit-details-marker { display: none; }
.kc-faq__item summary::after { content: "+"; position: absolute; right: 12px; top: 10px; width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--key-edge); border-bottom-width: 2px; border-radius: 6px; font: 700 15px/1 var(--mono); color: var(--ink-2); }
.kc-faq__item[open] summary::after { content: "\2212"; }
.kc-faq__a { padding: 0 16px 14px; color: var(--ink-2); }

/* card after the article */
.kc-card { max-width: var(--col); margin: 22px auto 0; padding: 18px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: var(--ink); color: #e9eaee; border-radius: 16px; }
.kc-card p { margin: 0; font-size: 15px; }
.kc-card__h { font-weight: 800; color: #fff; font-size: 17px !important; margin-bottom: 4px !important; }

/* checker */
.kc-check { margin: 24px 0; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--sheet); }
.kc-check__head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--ink); color: #fff; }
.kc-check__head kbd { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #2b2f39; border: 1px solid #4a505d; border-bottom-width: 3px; font-size: 18px; }
.kc-check__title { margin: 0 !important; font-weight: 800; font-size: 18px; color: #fff; }
.kc-check__sub { margin: 0 !important; font-size: 13px; opacity: .8; }
.kc-check__form { padding: 16px 16px 6px; }
.kc-check__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.kc-check__row { display: flex; gap: 8px; }
.kc-check__in { flex: 1; min-width: 0; font: 16px/1.3 var(--mono); padding: 11px 12px; border: 1.5px solid var(--key-edge); border-radius: 9px; background: var(--paper); color: var(--ink); }
.kc-check__in:focus { outline: 2px solid var(--cob); outline-offset: 1px; background: #fff; }
.kc-check__out { padding: 6px 16px 16px; }
.kc-check__verdict { font-weight: 700; margin: 8px 0 !important; padding: 10px 12px; border-radius: 9px; }
.kc-check__out.is-ok .kc-check__verdict { background: var(--ok-soft); color: var(--ok); }
.kc-check__out.is-warn .kc-check__verdict { background: var(--warn-soft); color: var(--warn); }
.kc-check__out.is-off .kc-check__verdict { background: var(--paper); color: var(--ink-2); }
.kc-check__list { margin: 6px 0 8px 18px !important; padding: 0 !important; }
.kc-check__list li { margin: 4px 0 !important; font-size: 15px; line-height: 1.5; }
.kc-check__next { font-size: 14px; margin: 0 !important; color: var(--mute); }

/* footer */
.kc-end { background: var(--ink); color: #c9ccd4; margin-top: 30px; }
.kc-end__in { max-width: var(--wide); margin: 0 auto; padding: 34px 16px 18px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.kc-end__id img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.kc-end__id .kc-word { color: #fff; }
.kc-end__id p { font-size: 14px; margin: 12px 0 0; max-width: 46ch; }
.kc-end__h { margin: 0 0 10px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d929e; }
.kc-end__list { list-style: none; margin: 0; padding: 0; }
.kc-end__list li { margin: 0 0 6px; }
.kc-end__list a { color: #e9eaee; text-decoration: none; font-size: 15px; }
.kc-end__list a:hover { color: #fff; text-decoration: underline; }
.kc-end__line { max-width: var(--wide); margin: 0 auto; padding: 14px 16px 90px; border-top: 1px solid #2e323c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.kc-end__line p { margin: 0; display: flex; align-items: center; gap: 8px; }
.kc-age { padding: 2px 7px; border-radius: 6px; border: 1px solid #4a505d; border-bottom-width: 3px; background: #2b2f39; color: #fff; font-size: 12px; }

/* phone tab bar */
.kc-tabbar { display: none; }

/* image viewer, 404 */
.kc-viewer { position: fixed; inset: 0; z-index: 60; background: rgba(23, 25, 31, .9); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.kc-viewer[hidden] { display: none; }
.kc-viewer img { max-height: 92vh; border-radius: 10px; }
.kc-miss { text-align: center; padding-top: 60px; }
.kc-miss__k { display: inline-block; font: 800 34px/1 var(--mono); padding: 12px 18px; border: 1px solid var(--key-edge); border-bottom-width: 5px; border-radius: 12px; background: var(--key); }

@media (max-width: 980px) {
  .kc-top__tog { display: block; }
  .kc-top__keys { display: none; }
  .kc-top__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 16px 14px; }
  .kc-top__nav.is-open { display: block; }
  .kc-top__list { flex-direction: column; }
  .kc-top__list a { padding: 11px 10px; font-size: 16px; }
  .kc-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(247, 245, 239, .97); border-top: 1px solid var(--rule); }
  .kc-tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; border: 1px solid var(--key-edge); border-bottom-width: 4px; background: var(--key); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; }
  .kc-tabbar a.kc-tabbar__main { background: var(--cob); border-color: var(--cob-d); color: #fff; }
  .kc-end__in { grid-template-columns: 1fr 1fr; }
  .kc-end__id { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .kc-intro { padding-top: 20px; }
  .kc-text { padding: 20px 16px 16px; border-radius: 14px; margin: 0 -4px; }
  .kc-text h2 { font-size: 23px; margin-top: 32px; }
  .kc-text h3 { font-size: 18.5px; }
  .kc-strip__box { border-radius: 16px; font-size: 14px; }
  .kc-keys__row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .kc-keys__row li { flex: 0 0 auto; max-width: 78vw; }
  .kc-grid--stack thead { display: none; }
  .kc-grid--stack tr { display: block; border-bottom: 1px solid var(--rule); padding: 6px 0; }
  .kc-grid--stack td { display: block; border: 0; padding: 4px 12px; }
  .kc-grid--stack td::before { content: attr(data-th); display: block; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
  .kc-grid--stack tr:last-child { border-bottom: 0; }
  .kc-check__row { flex-direction: column; }
  .kc-check__row .kc-key { width: 100%; }
  .kc-card { flex-direction: column; align-items: flex-start; margin: 18px 12px 0; }
  .kc-lead { padding: 0 12px; }
  .kc-end__in { grid-template-columns: 1fr; }
}
