/* Murmurtale Help Center static styles.
   No asset-loading CSS and no escapes: the release help verifier rejects remote
   or embedded assets. Typography is a system-font stack; colour tokens mirror the
   Murmurtale landing/design system (black/green editorial). */

:root {
  --bg: #0a0a0c;
  --surface: #141416;
  --surface-2: #1d1d20;
  --surface-3: #26262b;
  --line: #2c2c31;
  --line-soft: #232327;
  --text: #f5f5f7;
  --text-dim: #b6b6bd;
  --text-faint: #85858e;
  --green: #30d158;
  --green-deep: #248a3d;
  --green-wash: #06220f;
  --amber: #ff9f0a;
  --red: #ff453a;
  --focus: #6db3ff;
  --serif: "Iowan Old Style", "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #06220f;
  padding: 10px 16px;
  font-weight: 650;
  z-index: 50;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---- Masthead -------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; display: block; border-radius: 6px; }
.brand__quill { color: var(--green); font-family: var(--serif); }
.masthead__tag {
  color: var(--text-faint);
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.masthead__spacer { flex: 1; }

/* ---- Search ---------------------------------------------------------- */

.help-toolbar {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.help-toolbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.help-toolbar__home {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}
.help-toolbar__home:hover { text-decoration: none; }
.help-toolbar__spacer { flex: 1; }

.search {
  position: relative;
  width: min(340px, 42vw);
}
.search__input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 999px;
}
.search__input::placeholder { color: var(--text-faint); }
.search__input:focus { border-color: var(--green-deep); }
.search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 6px;
  margin: 0;
  list-style: none;
  max-height: 60vh;
  overflow: auto;
  display: none;
}
.search__results[data-open="true"] { display: block; }
.search__results li { margin: 0; }
.search__results a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--text);
}
.search__results a small { display: block; color: var(--text-faint); font-size: 12.5px; }
.search__results a:hover,
.search__results a[aria-selected="true"] {
  background: var(--green-wash);
  text-decoration: none;
}
.search__empty { padding: 12px; color: var(--text-faint); font-size: 14px; }

/* ---- Layout ---------------------------------------------------------- */

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 210px;
  gap: 40px;
  align-items: start;
}
.layout--home { grid-template-columns: 240px minmax(0, 1fr); }
.layout--wide { display: block; }

/* Sidebar nav */
.sidenav {
  position: sticky;
  top: 78px;
  align-self: start;
  padding-top: 34px;
  font-size: 14.5px;
  max-height: calc(100vh - 90px);
  overflow: auto;
}
.sidenav h2 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 22px 0 8px;
}
.sidenav ul { list-style: none; margin: 0 0 4px; padding: 0; }
.sidenav li { margin: 1px 0; }
.sidenav a {
  display: block;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
}
.sidenav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.sidenav a[aria-current="page"] {
  color: var(--green);
  background: var(--green-wash);
  border-left-color: var(--green);
  font-weight: 600;
}

/* Content column */
.content { padding-top: 30px; min-width: 0; }

.breadcrumbs {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 20px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-dim); }

.article-header { margin-bottom: 8px; }
.eyebrow {
  color: var(--green);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-dim);
  max-width: var(--measure);
  margin: 0 0 30px;
}

article { max-width: var(--measure); }
article > section { scroll-margin-top: 90px; }
article h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  scroll-margin-top: 90px;
}
article h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 30px 0 8px;
  scroll-margin-top: 90px;
}
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin: 6px 0; }
article strong { color: #fff; font-weight: 650; }
article code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  padding: 1px 6px;
  border-radius: 5px;
}
kbd {
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 600;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Callouts */
.note, .tip, .warn {
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 15.5px;
  color: var(--text-dim);
}
.note { border-left-color: var(--focus); }
.tip { border-left-color: var(--green); }
.warn { border-left-color: var(--amber); }
.note p:last-child, .tip p:last-child, .warn p:last-child { margin-bottom: 0; }
.callout-label { display: block; font-weight: 650; color: var(--text); margin-bottom: 4px; font-size: 13px; letter-spacing: 0.02em; }

/* Steps */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  position: relative;
  padding: 2px 0 14px 44px;
  margin: 0;
}
ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--green-wash);
  color: var(--green);
  border: 1px solid var(--green-deep);
  border-radius: 50%;
  font-weight: 650;
  font-size: 14px;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 460px;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
th { color: var(--text); font-weight: 650; border-bottom-color: var(--line); }
td { color: var(--text-dim); }

/* FAQ accordions (native details) */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 10px 0;
  background: var(--surface);
  overflow: hidden;
}
.faq > summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "+";
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}
.faq[open] > summary::after { content: "–"; }
.faq[open] > summary { border-bottom: 1px solid var(--line-soft); }
.faq__body { padding: 4px 18px 6px; color: var(--text-dim); font-size: 15.5px; }

/* Screenshot slots — verified captures or release-bound placeholders */
figure.shot { margin: 26px 0; }
.shot__image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101012;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}
.shot__frame {
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(48, 209, 88, 0.05) 0 12px, transparent 12px 24px),
    var(--surface);
  border-radius: var(--radius);
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 28px;
  color: var(--text-faint);
}
.shot__badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green-deep);
  border-radius: 999px;
  padding: 3px 11px;
}
.shot__state { max-width: 46ch; font-size: 14px; color: var(--text-dim); }
figure.shot figcaption {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: 10px;
  padding-left: 2px;
}

/* On-this-page TOC */
.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  padding-top: 34px;
  font-size: 13.5px;
}
.toc h2 {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 10px;
}
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-soft); }
.toc li { margin: 0; }
.toc a { display: block; color: var(--text-dim); padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a[aria-current="true"] { color: var(--green); border-left-color: var(--green); }

/* Related + feedback */
.related, .feedback {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.related h2, .feedback h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related a {
  display: block;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 550;
}
.related a:hover { border-color: var(--green-deep); text-decoration: none; }
.related a span { display: block; font-weight: 400; font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }
.feedback p { color: var(--text-dim); font-size: 15.5px; margin: 0 0 6px; }

/* ---- Home page ------------------------------------------------------- */

.hero { padding: 54px 0 30px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 52px); }
.hero .lede { font-size: 21px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 8px 0 40px; }
.cat-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat-card:hover, .cat-card:focus-within { border-color: var(--green-deep); transform: translateY(-2px); }
.cat-card__title { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.cat-card__title a { color: var(--text); }
.cat-card__title a:hover { color: var(--green-deep); text-decoration: none; }
.cat-card p { color: var(--text-faint); font-size: 14.5px; margin: 0 0 12px; }
.cat-card nav { margin: 0; }
.cat-card ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cat-card li { margin: 4px 0; }
.cat-card li a { color: var(--text-dim); }
.cat-card li a:hover { color: var(--green-deep); }

.popular { margin: 10px 0 20px; }
.popular h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 0 0 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  background: var(--surface);
}
.chip:hover { border-color: var(--green-deep); color: var(--text); text-decoration: none; }

/* ---- Footer ---------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
}
.foot__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 22px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  align-items: baseline;
  color: var(--text-faint);
  font-size: 13.5px;
}
.foot__inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__inner a { color: var(--text-dim); }
.foot__brand { font-family: var(--serif); color: var(--text); font-size: 15px; }

/* ---- Responsive ------------------------------------------------------ */

@media (max-width: 1080px) {
  .layout, .layout--home { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 860px) {
  .layout, .layout--home { display: block; }
  .sidenav {
    position: static;
    max-height: none;
    padding-top: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
    background: var(--surface);
  }
  .sidenav details { margin: 0; }
  .sidenav > details > summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--text);
    list-style: none;
    padding: 4px 0;
  }
  .sidenav > details > summary::-webkit-details-marker { display: none; }
  .content { padding-top: 8px; }
  .masthead__tag { display: none; }
  .search { width: 100%; }
}

@media (max-width: 620px) {
  .masthead__inner { flex-wrap: wrap; gap: 12px; }
  .masthead__spacer { display: none; }
  .search { order: 3; width: 100%; }
  .help-toolbar__inner { padding: 10px 16px; }
  .help-toolbar__home { display: none; }
  .help-toolbar__spacer { display: none; }
  body { font-size: 16px; }
}
