/* myproducer.io Help Center — same colors, type and feel as www.myproducer.io */
:root {
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --ink: #0F1E2B;
  --muted: #5B6B78;
  --line: #DDE5EB;
  --brand: #00AEEF;
  --brand-ink: #0077A8;
  --go: #17A673;
  --go-soft: #E3F6EE;
  --stop: #C2453B;
  --stop-soft: #FBE9E7;
  --wait: #E9EEF2;
  --tip: #EAF6FD;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -12px rgba(16,40,64,.18);
  --display: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0B151D; --surface: #121F29; --ink: #EAF1F6; --muted: #93A4B1; --line: #233441;
  --brand: #22BDF5; --brand-ink: #7FD8FA; --go: #3FCB94; --go-soft: #133327;
  --stop: #F07A6E; --stop-soft: #3A1D1A; --wait: #1C2B36; --tip: #10283A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -12px rgba(0,0,0,.6); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0B151D; --surface: #121F29; --ink: #EAF1F6; --muted: #93A4B1; --line: #233441;
  --brand: #22BDF5; --brand-ink: #7FD8FA; --go: #3FCB94; --go-soft: #133327;
  --stop: #F07A6E; --stop-soft: #3A1D1A; --wait: #1C2B36; --tip: #10283A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -12px rgba(0,0,0,.6); color-scheme: dark; }

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Nav */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo { height: 30px; width: auto; display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; } :root[data-theme="dark"] .logo-dark { display: block; }
.brand .label { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links .login { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } .brand .label { font-size: 14px; padding-left: 10px; } .brand { gap: 10px; } .logo { height: 26px; } }

/* Hero + search */
.hero { padding: 48px 0 40px; text-align: center; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 34em; }
.search { position: relative; max-width: 620px; margin: 0 auto; text-align: left; }
.search input { width: 100%; height: 56px; padding: 0 18px 0 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; box-shadow: var(--shadow); }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search.small input { height: 46px; font-size: 16px; box-shadow: none; padding-left: 44px; }
.search.small svg { left: 15px; top: 13px; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: none; }
.results.open { display: block; }
.results a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.results a:first-child { border-top: 0; }
.results a:hover, .results a.active { background: var(--tip); }
.results b { display: block; font-weight: 600; }
.results small { display: block; color: var(--muted); font-size: 13.5px; }
.results .none { padding: 14px 16px; color: var(--muted); font-size: 15px; }

/* Category cards */
.section-title { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 16px; }
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 48px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: minmax(0, 1fr); } }
.cat { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--brand); transform: translateY(-1px); }
.cat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tip); color: var(--brand-ink); margin-bottom: 12px; }
.cat .ic svg { width: 22px; height: 22px; }
.cat h2 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.cat p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.cat .count { font-size: 13.5px; color: var(--muted); }
.popular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0 0 48px; }
@media (max-width: 700px) { .popular { grid-template-columns: minmax(0, 1fr); } }
.popular li { border-top: 1px solid var(--line); }
.popular a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; text-decoration: none; color: var(--ink); font-weight: 500; }
.popular a:hover { color: var(--brand-ink); }
.popular a::after { content: "→"; color: var(--muted); }

/* Help card */
.help { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 56px; }
.help h2 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 2px; }
.help p { margin: 0; color: var(--muted); }
.btn { font-weight: 600; font-size: 16px; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }

/* Category page */
.page-head { margin: 0 0 24px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; }
.list { list-style: none; padding: 0; margin: 0 0 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: block; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.list a:hover { background: var(--tip); }
.list b { display: block; font-weight: 600; font-size: 16.5px; }
.list small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }

/* Article */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; margin-bottom: 56px; }
@media (max-width: 920px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 36px 36px; min-width: 0; }
@media (max-width: 640px) { .article { padding: 22px 18px 26px; border-radius: 12px; } }
.article h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; text-wrap: balance; }
.article .summary { color: var(--muted); font-size: 18px; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article h2 { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; margin: 32px 0 10px; scroll-margin-top: 16px; }
.article h3 { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 24px 0 6px; }
.article p, .article li { font-size: 16.5px; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.article li { margin: 0 0 6px; }
.article li::marker { color: var(--muted); }
.article ol li::marker { font-weight: 700; color: var(--brand-ink); }
.article strong { font-weight: 600; }
.article code, .article kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--wait); padding: 1px 6px; border-radius: 5px; }
.article img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 4px; box-shadow: var(--shadow); }
.article figure { margin: 18px 0 22px; }
.article figure.phone img { max-width: 320px; }
.article figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15.5px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-weight: 600; color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; }
.note { border-radius: 10px; padding: 14px 16px; margin: 18px 0; background: var(--tip); font-size: 15.5px; }
.note p:last-child { margin-bottom: 0; }
.note.warn { background: var(--stop-soft); }
.note > strong:first-child { display: block; margin-bottom: 2px; }
.updated { color: var(--muted); font-size: 14px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--brand); }
.pager small { display: block; color: var(--muted); font-size: 13px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

.side { position: sticky; top: 20px; }
@media (max-width: 920px) { .side { position: static; } }
.side h2 { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.side ul { list-style: none; padding: 0; margin: 0 0 28px; }
.side li a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.4; }
.side li a:hover { background: var(--surface); }
.side li a[aria-current="page"] { background: var(--surface); color: var(--brand-ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand); }
.side .search { margin-bottom: 24px; }

/* FAQ */
.faq { margin: 0 0 48px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 16px; color: var(--ink); }
.faq .a p { margin: 0 0 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--ink); }

/* Phones: compact topic list, tighter tables */
@media (max-width: 560px) {
  .cats { gap: 10px; }
  .cat { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; }
  .cat .ic { grid-row: span 2; margin: 0; }
  .cat h2 { font-size: 16.5px; margin: 0; }
  .cat p { display: none; }
  .cat .count { font-size: 13px; }
  .article table { font-size: 14px; }
  .article th, .article td { padding: 8px 8px; }
  .hero { padding: 32px 0 28px; }
}
