/* Murudo Help Center. Same editorial system as murudo.co's articles: Inter,
   black and white with the purple accent, thin rules, small radii. Dark mode
   follows the phone's own setting. */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --text: #181418;
  --text-secondary: #625c62;
  --border: #d9d5d9;
  --border-strong: #aaa3aa;
  --accent: #8d4f8d;
  --accent-hover: #744074;
  --accent-soft: #f6eef6;
  --warn: #8a5a00;
  --warn-soft: #fdf5e3;
  --danger: #a3261f;
  --danger-soft: #fcefee;
  --nav-surface: rgba(255, 255, 255, 0.96);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --surface: #0d0b0e;
    --text: #f5f3f5;
    --text-secondary: #aaa4aa;
    --border: #29262a;
    --border-strong: #555056;
    --accent: #b875b8;
    --accent-hover: #cc8ecc;
    --accent-soft: #1a121a;
    --warn: #e2b35a;
    --warn-soft: #1a1508;
    --danger: #f0827b;
    --danger-soft: #1c0d0c;
    --nav-surface: rgba(5, 5, 5, 0.96);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
::selection { background: #8b3a8b; color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 8px 12px; background: var(--accent); color: #fff; border-radius: 4px; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--nav-surface); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.site-header-inner { display: flex; align-items: center; gap: 14px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 700; }
.brand img { display: block; width: 32px; height: 24px; }
.search-header { flex: 1; max-width: 360px; margin-left: auto; }
.search input {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--border-strong); border-radius: 4px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.95rem;
}
.search input::placeholder { color: var(--text-secondary); }
.nav-cta { padding: 8px 14px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: var(--accent-hover); color: #fff; }

/* Home */
.hero { padding: 44px 0 34px; border-bottom: 1px solid var(--border); background: var(--surface); }
.eyebrow, .section-label { margin: 0 0 10px; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.section-label a { color: inherit; text-decoration: none; }
.hero h1 { margin: 0 0 8px; font-size: clamp(2rem, 6vw, 3rem); }
.hero-count { margin: 0 0 20px; color: var(--text-secondary); }
.search-hero { display: flex; gap: 8px; max-width: 640px; }
.search-hero input { min-height: 50px; font-size: 1rem; }
.search-hero button { padding: 0 20px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.search-hero button:hover { background: var(--accent-hover); }
.popular { padding-top: 34px; }
.popular + section { padding-top: 40px; }

.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-strong); }
.rows li { border-bottom: 1px solid var(--border); }
.rows a { display: block; padding: 14px 2px; color: var(--text); text-decoration: none; }
.rows a:hover .row-title { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.row-title { display: block; font-weight: 600; }
.row-summary { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 0.92rem; }
.row-cat { display: block; margin-bottom: 2px; color: var(--accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 36px; border-top: 1px solid var(--border-strong); }
.cat { padding: 22px 0 20px; border-bottom: 1px solid var(--border); }
.cat h2 { margin: 0 0 4px; font-size: 1.15rem; }
.cat h2 a { color: var(--text); text-decoration: none; }
.cat h2 a:hover { color: var(--accent); }
.cat > p { margin: 0 0 10px; color: var(--text-secondary); font-size: 0.92rem; }
.cat ul { margin: 0 0 10px; padding: 0; list-style: none; }
.cat li { padding: 3px 0; font-size: 0.95rem; }
.cat li a { color: var(--text); text-decoration: none; }
.cat li a:hover { color: var(--accent); text-decoration: underline; }
.more { font-size: 0.88rem; font-weight: 600; }

/* Pages */
.page { padding: 26px 0 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--text-secondary); font-size: 0.85rem; }
.crumbs a { color: var(--text-secondary); }
.page h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.dek { margin: 0 0 18px; color: var(--text-secondary); font-size: 1.05rem; max-width: 700px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.article { min-width: 0; max-width: 710px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-secondary); font-size: 0.75rem; font-weight: 600; }
.toc { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 4px; }
.toc p { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-secondary); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { padding: 2px 0; font-size: 0.94rem; }
.updated { margin: 30px 0 0; color: var(--text-secondary); font-size: 0.85rem; }
.related { margin-top: 30px; }
.side { display: none; }

/* Article text */
.prose { border-top: 1px solid var(--border-strong); padding-top: 6px; overflow-wrap: break-word; }
.prose h2 { margin: 34px 0 10px; font-size: 1.35rem; }
.prose h3 { margin: 26px 0 8px; font-size: 1.08rem; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 2px; }
.prose li > p { margin: 0 0 8px; }
.prose ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol.steps > li { counter-increment: step; position: relative; margin: 0; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--border); }
.prose ol.steps > li:first-child { border-top: 1px solid var(--border); }
.prose ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 11px;
  width: 26px; height: 26px; border: 1px solid var(--accent); border-radius: 4px;
  color: var(--accent); font-size: 0.82rem; font-weight: 700; line-height: 24px; text-align: center;
}
.prose ol.steps ol.steps { margin-top: 8px; }
.prose code { padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.88em; }
.prose strong { font-weight: 650; }

.callout { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px; background: var(--accent-soft); }
.callout p { margin: 0 0 8px; }
.callout > :last-child { margin-bottom: 0; }
.callout-label { margin-bottom: 4px !important; color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.callout-warning { border-left-color: var(--warn); background: var(--warn-soft); }
.callout-warning .callout-label { color: var(--warn); }
.callout-important { border-left-color: var(--danger); background: var(--danger-soft); }
.callout-important .callout-label { color: var(--danger); }
li > .callout { margin-top: 10px; }

.shots { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 18px; }
.shots img { display: block; width: 270px; max-width: calc(50% - 7px); height: auto; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
.shots-1 img { max-width: min(270px, 78%); }

.table-wrap { margin: 0 0 18px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { border-bottom-color: var(--border-strong); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); white-space: nowrap; }

/* Contact and footer */
.contact { margin-top: 44px; padding: 22px 0 26px; border-top: 1px solid var(--border-strong); }
.contact h2 { margin: 0 0 6px; font-size: 1.15rem; }
.contact p { margin: 0 0 6px; max-width: 700px; }
.contact-note { color: var(--text-secondary); font-size: 0.9rem; }
.site-footer { margin-top: 20px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 0.86rem; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px 0 28px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-secondary); }

/* Search results */
.search-results { padding: 18px 0 8px; }
.search-results h2 { margin: 0 0 10px; font-size: 1.05rem; }
.search-results .none { margin: 0 0 14px; color: var(--text-secondary); }
.search-results button { margin: 12px 0 0; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.88rem; cursor: pointer; }
body.searching main { display: none; }

@media (min-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 710px) 250px; justify-content: space-between; }
  .side { display: block; align-self: start; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; padding-left: 20px; border-left: 1px solid var(--border); }
  .side ul { margin: 0; padding: 0; list-style: none; }
  .side li { padding: 4px 0; font-size: 0.88rem; line-height: 1.4; }
  .side li a { color: var(--text-secondary); text-decoration: none; }
  .side li a:hover { color: var(--accent); }
  .side li a[aria-current="page"] { color: var(--text); font-weight: 600; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .brand span { font-size: 0.98rem; }
  .nav-cta { display: none; }
  .search-header { max-width: none; }
  .hero { padding: 30px 0 26px; }
  .search-hero button { padding: 0 14px; }
}
@media print {
  .site-header, .side, .site-footer, .search-results, .contact { display: none; }
}
