/* PeppyPOS help center (loads after ../css/site.css) */
body { background: var(--cream); }
[hidden] { display: none !important; }
.hc-top { background: var(--white); border-bottom: 3px solid var(--black); position: sticky; top: 0; z-index: 20; }
.hc-top .wrap { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.hc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.hc-brand img { width: 46px; height: auto; }
.hc-brand b { font: 700 22px/1 var(--font-h); }
.hc-brand span { font: 600 15px/1 var(--font-h); background: var(--orange); color: var(--black); padding: 6px 10px; border-radius: 999px; border: 2px solid var(--black); }
.hc-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.hc-nav a.txt { font: 600 17px/1 var(--font-h); color: var(--black); text-decoration: none; }
.hc-nav a.txt:hover { color: var(--orange-dk); }

.hc-hero { background: var(--orange); border-bottom: 3px solid var(--black); padding: 48px 0 56px; position: relative; overflow: hidden; }
.hc-hero h1 { font-size: clamp(38px, 5vw, 64px); margin: 0 0 10px; }
.hc-hero p { font-weight: 700; font-size: 19px; color: #3A200A; max-width: 640px; }
.hc-hero .paw { position: absolute; right: 4%; top: 18px; width: 180px; height: 180px; color: rgba(14,11,15,.10); transform: rotate(18deg); }
.hc-search { position: relative; max-width: 680px; margin-top: 22px; }
.hc-search input { width: 100%; min-height: 62px; border: 3px solid var(--black); border-radius: 999px; padding: 0 22px 0 58px; font: 700 19px var(--font-b); color: var(--black); background: var(--white); box-shadow: 0 6px 0 var(--black); }
.hc-search input:focus { outline: none; box-shadow: 0 6px 0 var(--black), 0 0 0 4px rgba(255,255,255,.7); }
.hc-search svg { position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); color: var(--mute); }

.hc-main { padding: 40px 0 64px; }
.hc-count { font-weight: 700; color: var(--mute); margin: 0 0 16px; min-height: 1.5em; }
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.hc-card { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 3px solid var(--black); border-radius: 24px; padding: 20px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 0 var(--black); transition: transform .15s, box-shadow .15s; }
.hc-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--black); }
.hc-card h2 { font-size: 23px; margin: 2px 0 6px; }
.hc-card p { margin: 0; font-size: 16px; font-weight: 600; color: var(--mute); }
.ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--orange-lt); border: 2px solid var(--black); display: grid; place-items: center; color: var(--black); }
.ico svg { width: 28px; height: 28px; }
.hc-results { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.hc-results h2 { font-size: 22px; margin: 0 0 6px; }
.hc-results li a { display: flex; gap: 12px; align-items: center; background: var(--white); border: 2px solid #E4D6C5; border-radius: 16px; padding: 12px 16px; text-decoration: none; color: var(--black); font-weight: 700; }
.hc-results li a:hover { border-color: var(--orange); }
.hc-results small { display: block; font-weight: 700; color: var(--mute); font-size: 14px; }
.hc-results svg { flex: none; width: 18px; height: 18px; color: var(--orange-dk); margin-left: auto; }
.hc-empty { background: var(--white); border: 3px dashed var(--orange); border-radius: 24px; padding: 24px; font-weight: 700; }

.stuck { margin-top: 44px; background: var(--black); color: #E9E1E7; border-radius: 28px; padding: clamp(22px, 4vw, 36px); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stuck h2 { color: var(--white); font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; }
.stuck p { margin: 0; font-weight: 600; }
.stuck > div { flex: 1 1 320px; }

/* Topic pages */
.hc-crumb { font-weight: 700; font-size: 15px; color: var(--mute); margin: 0 0 10px; }
.hc-crumb a { color: var(--black); }
.hc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.hc-side { position: sticky; top: 96px; background: var(--white); border: 3px solid var(--black); border-radius: 22px; padding: 14px; }
.hc-side b { display: block; font: 700 15px/1 var(--font-h); padding: 6px 10px 10px; color: var(--mute); }
.hc-side a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--black); font-weight: 700; font-size: 16px; }
.hc-side a svg { width: 20px; height: 20px; flex: none; }
.hc-side a:hover { background: var(--cream); }
.hc-side a[aria-current="page"] { background: var(--orange); }
.hc-art { background: var(--white); border: 3px solid var(--black); border-radius: 28px; padding: clamp(20px, 4vw, 44px); box-shadow: 0 8px 0 var(--black); min-width: 0; }
.hc-art > header { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.hc-art > header .ico { width: 64px; height: 64px; border-radius: 20px; }
.hc-art > header .ico svg { width: 34px; height: 34px; }
.hc-art h1 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.hc-art .intro { font-size: 19px; font-weight: 600; margin: 10px 0 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; font: 600 15px/1 var(--font-h); color: var(--black); background: var(--cream); border: 2px solid #E4D6C5; border-radius: 999px; padding: 8px 12px; text-decoration: none; }
.toc a:hover { border-color: var(--orange); }
.hc-art section { padding-top: 26px; margin-top: 26px; border-top: 2px dashed #EADCCB; scroll-margin-top: 90px; }
.hc-art h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hc-art h3 { font-size: 20px; margin: 18px 0 8px; }
.hc-art p, .hc-art li { font-size: 17px; }
.hc-art ol, .hc-art ul { padding-left: 0; margin: 0 0 14px; }
.hc-art ol { list-style: none; counter-reset: st; display: grid; gap: 10px; }
.hc-art ol > li { counter-increment: st; position: relative; padding-left: 46px; min-height: 32px; }
.hc-art ol > li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); border: 2px solid var(--black); display: grid; place-items: center; font: 700 16px/1 var(--font-h); color: var(--black); }
.hc-art ul { list-style: none; display: grid; gap: 8px; }
.hc-art ul > li { position: relative; padding-left: 24px; }
.hc-art ul > li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.hc-art b, .hc-art strong { color: var(--black); }
.ui { font-weight: 800; color: var(--black); background: #FFF0DF; border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.msg { font-style: italic; color: var(--black); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--font-h); padding: 6px 10px; border-radius: 999px; border: 2px solid var(--black); background: var(--white); color: var(--black); white-space: nowrap; letter-spacing: 0; }
.pill svg { width: 14px; height: 14px; }
.pill.plan { background: #FFE3C4; }
.pill.owner { background: var(--black); color: var(--white); }
.pill.net { background: #E4F4EB; border-color: #1E7A4C; color: #145A37; }
.note { display: flex; gap: 12px; background: var(--cream); border: 2px solid #EADCCB; border-left: 6px solid var(--orange); border-radius: 14px; padding: 14px 16px; margin: 12px 0 16px; font-size: 16px; font-weight: 600; }
.note svg { width: 22px; height: 22px; flex: none; color: var(--orange-dk); margin-top: 2px; }
.note p { margin: 0; font-size: 16px; }
.tbl { width: 100%; overflow-x: auto; margin: 8px 0 16px; border: 2px solid #E4D6C5; border-radius: 16px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #EFE3D5; vertical-align: top; }
.tbl th { font: 700 15px/1.2 var(--font-h); color: var(--black); background: #FFF3E6; }
.tbl tr:last-child td { border-bottom: 0; }
.faq details { border: 2px solid #E4D6C5; border-radius: 16px; padding: 0 16px; margin: 0 0 10px; background: var(--white); }
.faq summary { cursor: pointer; font: 700 18px/1.3 var(--font-h); color: var(--black); padding: 14px 0; list-style: none; display: flex; gap: 10px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--orange-dk); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0 0 14px; font-size: 17px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hc-foot { background: var(--black); color: #CFC6CC; padding: 28px 0; font-size: 15px; font-weight: 600; }
.hc-foot .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.hc-foot a { color: var(--white); }
.hc-foot span { margin-right: auto; }

@media (max-width: 960px) {
  .hc-layout { grid-template-columns: 1fr; }
  .hc-side { position: static; display: none; }
}
@media (max-width: 640px) {
  .hc-top .wrap { min-height: 62px; gap: 10px; }
  .hc-brand img { width: 38px; }
  .hc-brand b { font-size: 19px; }
  .hc-brand span { font-size: 13px; padding: 5px 8px; }
  .hc-nav { gap: 10px; }
  .hc-nav a.txt { display: none; }
  .hc-nav .btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .hc-hero { padding: 30px 0 38px; }
  .hc-hero .paw { width: 110px; height: 110px; right: -10px; }
  .hc-search input { min-height: 56px; font-size: 17px; }
  .hc-art { border-radius: 22px; box-shadow: 0 6px 0 var(--black); }
  .hc-art > header .ico { width: 52px; height: 52px; }
  .hc-art ol > li { padding-left: 42px; }
  .ui { white-space: normal; }
  .pager .btn { width: 100%; }
}

/* fixes: icons inside buttons, table of contents chips */
.btn svg { width: 20px; height: 20px; flex: none; }
.hc-art ul.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.hc-art ul.toc > li { padding-left: 0; font-size: 15px; }
.hc-art ul.toc > li::before { content: none; }
.tbl td:nth-child(2) { white-space: nowrap; }
/* phones: wide tables (class "stack", made by build-guide.mjs) show one card per row */
@media (max-width: 640px) {
  .tbl.stack { overflow: visible; }
  .tbl.stack table { min-width: 0; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: block; padding: 8px 0; border-bottom: 1px solid #EFE3D5; }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 4px 14px; border: 0; white-space: normal; }
  .tbl.stack td::before { content: attr(data-label); font: 700 14px/1.4 var(--font-h); color: var(--black); }
}
@media (max-width: 640px) { .stuck .btn { width: 100%; } .toc a { font-size: 14px; padding: 7px 10px; } }
