/* DevCleaner guides — shared article styles (matches index.html design system) */
:root {
  --paper: #FAF7F1;
  --paper-deep: #F1ECE2;
  --ink: #16130E;
  --ink-soft: #5C564B;
  --hairline: #DED7C8;
  --safe: #1E7A44;
  --safe-soft: #E2F0E6;
  --warn: #A8730A;
  --warn-soft: #F6ECD6;
  --danger: #B3361E;
  --danger-soft: #F6E0DA;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Bricolage Grotesque", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--display);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
}
::selection { background: var(--ink); color: var(--paper); }

.sheet { max-width: 880px; margin: 0 auto; padding: 0 28px; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  gap: 12px;
}
.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot {
  width: 12px; height: 12px;
  background: var(--safe);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--safe-soft);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--safe);
  border-color: var(--safe);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 122, 68, .25);
}

/* Page head */
.page-head { padding: 56px 0 8px; }
.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.crumbs a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.crumbs a:hover { color: var(--ink); border-color: var(--ink); }
h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.page-lede { color: var(--ink-soft); margin-top: 14px; max-width: 620px; font-size: 17px; }
.byline {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* Article body */
article.guide { padding: 36px 0 56px; max-width: 720px; }
article.guide h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  line-height: 1.15;
}
article.guide h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}
article.guide p { color: var(--ink-soft); margin: 0 0 14px; }
article.guide p strong, article.guide li strong { color: var(--ink); }
article.guide a { color: var(--ink); border-bottom: 1px solid var(--hairline); text-decoration: none; }
article.guide a:hover { border-color: var(--ink); }
article.guide a.btn { color: var(--paper); border-bottom: none; }
article.guide a.btn:hover { color: var(--paper); border-color: var(--safe); }
article.guide ul, article.guide ol { margin: 0 0 16px; padding-left: 4px; list-style: none; }
article.guide ol { counter-reset: item; }
article.guide li {
  position: relative;
  padding: 6px 0 6px 28px;
  color: var(--ink-soft);
}
article.guide ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--safe);
}
article.guide ol li::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--safe);
}
article.guide code {
  font-family: var(--mono);
  font-size: .85em;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--ink);
}
article.guide pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 16px;
}
article.guide pre code {
  background: none; border: none; padding: 0; color: inherit; font-size: inherit;
}
.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #FFFDF8;
  -webkit-overflow-scrolling: touch;
}
article.guide table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0;
}
article.guide table.compare { min-width: 700px; table-layout: fixed; }
article.guide table.compare th { white-space: normal; }
article.guide table.compare th:first-child { width: 105px; }
article.guide table.compare th:nth-child(2) { width: 26%; }
article.guide th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-bottom: 2px solid var(--ink);
  padding: 10px 12px;
  white-space: nowrap;
}
article.guide td {
  border-bottom: 1px solid var(--hairline);
  padding: 11px 12px;
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.55;
}
article.guide tbody tr:nth-child(even) td { background: rgba(241, 236, 226, .45); }
article.guide tbody tr:last-child td { border-bottom: none; }
article.guide td:first-child { color: var(--ink); font-weight: 600; }

/* Callouts */
.note, .warn-box {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0 16px;
  font-size: 14.5px;
}
.note { background: var(--safe-soft); border: 1px solid var(--safe); }
.note p, .warn-box p { margin: 0; }
.warn-box { background: var(--warn-soft); border: 1px solid var(--warn); }

/* Risk chips */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 99px;
  padding: 2px 9px;
  vertical-align: 1px;
}
.chip.safe { color: var(--safe); background: var(--safe-soft); border: 1px solid var(--safe); }
.chip.warn { color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn); }
.chip.danger { color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger); }

/* CTA box inside articles */
.cta-box {
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px 26px;
  margin: 36px 0 0;
}
.cta-box h2, article.guide .cta-box h2 { margin: 0 0 8px; font-size: 21px; }
.cta-box p { margin: 0 0 16px; color: var(--ink-soft); }
.cta-fine { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; }

/* FAQ */
.faq dt { font-weight: 700; margin: 22px 0 6px; }
.faq dd { color: var(--ink-soft); margin: 0 0 14px; }

/* Guide cards (index) */
.guide-list { padding: 32px 0 64px; display: grid; gap: 18px; }
.guide-card {
  display: block;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.55);
  border-radius: 12px;
  padding: 24px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 10px 30px rgba(22, 19, 14, .08);
}
.guide-card .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--safe);
  margin-bottom: 8px;
}
.guide-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.guide-card p { color: var(--ink-soft); font-size: 14.5px; }
.guide-card .read { font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: 14px; }

/* Related links footer of article */
.related { border-top: 1px solid var(--hairline); padding: 28px 0 0; margin-top: 44px; }
.related .sec-label { margin-bottom: 12px; }
.related ul { list-style: none; }
.related li { padding: 5px 0; }
.related a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.related a:hover { border-color: var(--ink); }

footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hairline); }
footer a:hover { border-color: var(--ink); }

@media (max-width: 640px) {
  header .meta-note { display: none; }
  article.guide table { font-size: 13px; }
  article.guide td, article.guide th { padding: 8px 6px; }
}
