/* The help center at docs.ported.io ([product/help-center.md §3, §8]): the app prototype's tokens, base rules and the
   controls the help center uses (design/app/app.css), then its help center styles (design/app/help.css), copied with
   their values. Light only, as the app is. build.ts writes the fonts' hashed addresses into their urls.

   Where the static site differs from the prototype's stylesheet, a comment says why:
   * a guide's table scrolls inside itself on a phone (help-center §3.2), as the API Reference's tables do. */
@font-face{font-family:'DM Sans';font-weight:400;font-display:swap;src:url(/assets/fonts/dm-sans-latin-400-normal-a71e519e44.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-weight:500;font-display:swap;src:url(/assets/fonts/dm-sans-latin-500-normal-720546bd11.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-weight:700;font-display:swap;src:url(/assets/fonts/dm-sans-latin-700-normal-52b34c81a0.woff2) format('woff2')}
@font-face{font-family:'JetBrains Mono';font-weight:400;font-display:swap;src:url(/assets/fonts/jetbrains-mono-latin-400-normal-7c53386f55.woff2) format('woff2')}

:root{
  --bg:#f7f8f6; --card:#ffffff; --ink:#18201c; --muted:#56635c; --faint:#8a958f; --line:#e4e8e5; --line-soft:#f1f3f2;
  --green:#0f7b55; --green-hover:#0c6847; --green-soft:#e3f1ea;
  --amber:#9a6200; --amber-soft:#fdf1dc; --red:#b42318; --red-soft:#fdecea; --blue:#1d5fb8; --blue-soft:#e6eefa;
  --r-sm:10px; --r:12px; --r-lg:16px;
  --shadow:0 1px 2px rgba(16,24,20,.06),0 10px 30px rgba(16,24,20,.07);
  --font:'DM Sans',-apple-system,'Segoe UI',system-ui,sans-serif; --mono:'JetBrains Mono',ui-monospace,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%}
body{background:var(--bg);color:var(--ink);font:400 15px/1.5 var(--font);-webkit-font-smoothing:antialiased}
a{color:var(--green);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
h1{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.5px}
h2{font-size:19px;font-weight:700}
h3{font-size:15px;font-weight:700}
.muted{color:var(--muted)}

/* controls (app.css) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 18px;border:0;border-radius:var(--r);background:var(--green);color:#fff;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .15s}
.btn:hover{background:var(--green-hover)}
.btn:focus-visible,.btn3:focus-visible,.input:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.btn:disabled{background:#a7c9b9;cursor:default}
.btn3{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--card);font-weight:500;cursor:pointer;white-space:nowrap}
.btn3:hover{border-color:#cfd7d2;background:#fbfcfb}
.input{height:42px;width:100%;border:1px solid #d5ddd8;border-radius:var(--r);padding:0 12px;background:#fff;transition:border-color .15s}
.input:hover{border-color:#c3ccc6}
.input:focus{border-color:var(--green);outline:none;box-shadow:0 0 0 3px var(--green-soft)}
.field{display:block;margin-bottom:14px}
.card{background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:22px}
.card h2{margin-bottom:12px}
.logo{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:17px;color:var(--ink)}
.logo:hover{text-decoration:none}
.logo svg{flex:none}
.pill{display:inline-block;background:#eef1ef;border-radius:99px;padding:2px 8px;font-size:12px;font-weight:500;color:var(--muted)}

/* ---------- the help center (help.css), layout A copied from One Happy Town's help center ---------- */
.hc{min-height:100vh;display:flex;flex-direction:column;background:var(--card)}
/* The top bar's three zones: the brand (lockup, divider, "Help center"), the tabs centred as a segmented control, and search */
.hc-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;height:76px;padding:0 32px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--card);z-index:20}
.hc-brand{display:flex;align-items:center;gap:16px;text-decoration:none;color:var(--ink);justify-self:start}
.hc-brand img{height:34px}
.hc-div{width:1px;height:28px;background:var(--line)}
.hc-name{font-size:19px;font-weight:600;letter-spacing:-.01em;white-space:nowrap}
.hc-tabs{display:flex;gap:2px;padding:4px;border-radius:10px;background:var(--line-soft);justify-self:center}
.hc-tabs a,.hc-tabs button{display:flex;align-items:center;justify-content:center;padding:8px 18px;border:1px solid transparent;border-radius:8px;background:none;text-decoration:none;color:var(--muted);font:600 15px/1.2 var(--font);white-space:nowrap;cursor:pointer}
.hc-tabs a[aria-current="page"],.hc-tabs button[aria-selected="true"]{background:var(--card);color:var(--ink);border-color:#c3ccc6;box-shadow:0 1px 3px rgba(16,42,67,.18)}
.hc-tabs a:hover,.hc-tabs button:hover{color:var(--ink)}
.hc-nav[hidden]{display:none}
/* The current tab keeps its focus ring over its raised shadow */
.hc-tabs a[aria-current="page"]:focus-visible,.hc-tabs button[aria-selected="true"]:focus-visible{box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--green),0 1px 3px rgba(16,42,67,.18)}
.hc-end{justify-self:end;display:flex;align-items:center;gap:10px}
.hc-search{display:flex;align-items:center;gap:8px;border:1px solid #c3ccc6;border-radius:8px;padding:0 12px;width:clamp(180px,22vw,300px);min-height:42px}
.hc-search svg{width:18px;height:18px;color:var(--muted)}
.hc-search input{border:0;flex:1;min-width:0;background:none;padding:7px 0}
.hc-search input:focus-visible{box-shadow:none}
.hc-search:focus-within{box-shadow:0 0 0 2px var(--card),0 0 0 4px var(--green)}
/* The phone's dropdown row, search button, Cancel and the dropdown's own tabs show only on phones */
.hc-where,.hc-searchbtn,.hc-cancel,.hc-tabs-drop{display:none}
.hc-drop{display:contents}
.hc-body{flex:1;display:flex}
.hc-nav{width:250px;flex:none;border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:1px;font-size:15px}
.hc-nav b{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:14px 10px 4px}
.hc-nav b:first-child{margin-top:0}
.hc-nav a{padding:5px 10px;border-radius:6px;text-decoration:none;color:var(--ink)}
.hc-nav a:hover{background:var(--line-soft)}
.hc-nav a[aria-current="page"]{background:var(--green-soft);font-weight:700}
.hc-main{flex:1;min-width:0;padding:28px 40px 60px}
.hc-main h1{font-size:32px;line-height:1.15;margin:0 0 14px}
.hc-main h2{font-size:21px;margin:26px 0 8px;scroll-margin-top:92px}
.hc-main p,.hc-main li{line-height:1.65}
/* Paragraphs in a row keep a gap, as the API design's do */
.hc-main p{margin:0 0 12px}
.hc-main ol,.hc-main ul{padding-left:22px}
.hc-crumb,.hc-meta{font-size:14px;color:var(--muted);margin:0 0 8px}
.hc-toc{width:210px;flex:none;padding:28px 18px;font-size:14px;position:sticky;top:76px;align-self:flex-start}
.hc-toc b{display:block;margin-bottom:8px}
.hc-toc a{display:block;color:var(--muted);text-decoration:none;padding:3px 0;overflow-wrap:anywhere}
.hc-toc a:hover{color:var(--ink);text-decoration:underline}
.hc-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;padding:6px 0 18px;border-bottom:1px solid var(--line)}
.hc-code{background:#18201c;color:#e8efe9;border-radius:10px;padding:14px 16px;font:13px/1.6 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;margin:26px 0 0;align-self:start}
.hc-m{display:inline-block;min-width:58px;text-align:center;border-radius:6px;padding:0 6px;font:700 12px/1.8 var(--mono);color:#fff;background:var(--green);vertical-align:2px}
.hc-m.post{background:var(--green)}.hc-m.put,.hc-m.patch{background:#5b3fa0}.hc-m.delete{background:var(--red)}
.hc-main code{font-family:var(--mono);font-size:14px}
.req{font-size:12px;font-weight:700;color:var(--amber);background:var(--amber-soft);border-radius:999px;padding:1px 8px}
.hc-pn{display:flex;justify-content:space-between;gap:16px;margin-top:30px}
.hc-pn a{flex:1;border:1px solid var(--line);border-radius:10px;padding:10px 14px;text-decoration:none;color:var(--ink);font-weight:600}
.hc-pn a.r{text-align:right}
.hc-pn small{display:block;color:var(--muted);font-weight:400}
.hc-results{list-style:none;padding:0}
.hc-results li{padding:14px 0;border-bottom:1px solid var(--line)}
.hc-results p{margin:4px 0 0;color:var(--muted)}
.hc-foot{border-top:1px solid var(--line);padding:14px 22px;font-size:14px;color:var(--muted)}
@media (max-width:1100px){.hc-toc{display:none}}
/* Between phone and desktop the tabs take a second row, centred under the brand and search */
@media (min-width:761px) and (max-width:1024px){
  .hc-top{grid-template-columns:auto 1fr;height:auto;row-gap:10px;padding:12px 32px}
  .hc-tabs{grid-column:1/-1;grid-row:2}
  .hc-main h2{scroll-margin-top:140px}
  .hc-end{grid-column:2;grid-row:1}
}
@media (max-width:760px){
  /* Phone: the brand with search on the right, then one dropdown row saying where the reader is. The dropdown holds the
     tabs and the tab's pages (help-center §3.2). */
  .hc-top{display:flex;flex-wrap:wrap;align-items:center;gap:12px;height:auto;padding:12px 16px}
  /* The phone's brand: a larger lockup, no divider, and "Help center" lined up with the lockup's wordmark */
  .hc-brand{gap:5px;align-items:flex-start}
  .hc-brand img{height:34px}
  .hc-div{display:none}
  /* The lockup's wordmark is Outfit at about half the lockup's height, its baseline 68% down: "Help center" takes its
     size and sits on its baseline (17.1 px type, line box 17.1 px, 8.1 px down) */
  .hc-name{font-size:17.1px;font-weight:600;line-height:17.1px;margin-top:8.1px;letter-spacing:0}
  .hc-top>.hc-tabs{display:none}
  .hc-end{display:contents}
  .hc-searchbtn{display:inline-grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;margin-left:auto}
  .hc-search{display:none;width:100%;min-height:44px;border-width:2px;border-color:var(--green)}
  .hc-cancel{display:inline-flex;align-items:center;min-height:40px;padding:0 4px 0 8px;border:0;background:none;color:var(--green);font:600 15px/1 var(--font);cursor:pointer}
  .hc.searchopen .hc-search{display:flex}
  .hc.searchopen .hc-brand,.hc.searchopen .hc-searchbtn{display:none}
  .hc-where{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:6px 14px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
  .hc-where[aria-expanded="true"]{border-color:#c3ccc6}
  .hc-where[aria-expanded="true"] svg{transform:rotate(180deg)}
  .hc-where-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
  .hc-where-t small{font-size:13px;color:var(--muted);font-weight:500}
  .hc-where-t b{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hc-crumb{display:none}
  .hc-main h2{scroll-margin-top:16px}
  .hc-top{transition:transform .2s ease}
  /* The dropdown opens under the bar: the tabs, then the tab's pages in a roomy list, groups apart */
  .hc-drop{display:none}
  .hc.navopen .hc-drop{display:block;position:fixed;top:var(--hc-top-h,133px);left:0;right:0;bottom:0;background:var(--card);z-index:30;overflow:auto;border-top:1px solid var(--line)}
  .hc-tabs-drop{display:flex;justify-self:stretch;margin:16px 16px 8px}
  .hc-tabs-drop button{flex:1;min-height:44px;padding:8px 10px}
  .hc-drop .hc-nav{display:flex;width:auto;border:0;padding:0 16px 24px;gap:0;font-size:17px}
  .hc-drop .hc-nav b{margin:0 -16px;padding:22px 28px 6px;border-top:1px solid var(--line);font-size:13px;letter-spacing:.07em}
  .hc-drop .hc-nav b:first-child{border-top:0;padding-top:12px}
  .hc-drop .hc-nav a{display:flex;align-items:center;min-height:48px;padding:0 12px}
  .hc-drop .hc-nav[hidden]{display:none}
  .hc-main{padding:18px 16px 40px}
  .hc-split{grid-template-columns:minmax(0,1fr);gap:6px}
  .hc-code{margin-top:0}
  /* A guide's wide table scrolls inside itself (help-center §3.2), as the API Reference's tables do (.hc-ref table) */
  .hc-main table.list{display:block;overflow-x:auto}
}
/* The smallest phones keep the lockup and the search button on one line */
@media (max-width:379px){.hc-div,.hc-name{display:none}}
@media (prefers-reduced-motion:reduce){.hc-top{transition:none}}

/* Ported.io's additions: the callout (a straight bar on the left, no rounded box), the report form of the "Report a
   listing" guide (study 10, variant D) and its sent state. */
.hc-main .callout{display:block;margin:16px 0;padding:12px 16px;background:var(--green-soft);border-left:3px solid var(--green);border-radius:0}
.hc-main .callout b{display:block;margin-bottom:2px}
.hc-report{margin-top:8px}
.hc-report .field{margin-bottom:18px}
.hc-report .field>label{display:block;font-weight:700;margin-bottom:6px}
.hc-report .area{width:100%;min-height:110px;border:1px solid #d5ddd8;border-radius:var(--r);padding:10px 12px;background:#fff;resize:vertical;transition:border-color .15s}
.hc-report .area:hover{border-color:#c3ccc6}
.hc-report .area:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.hc-report .domain{font-family:var(--mono);font-size:14px}
.hc-report .err{color:var(--red);font-size:13px;min-height:20px;margin-top:6px}
.hc-sent .check{width:36px;height:36px;border-radius:50%;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-weight:700;margin-bottom:12px}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hc-brand.logo{gap:10px}
/* Tables and inline code in the help center's pages (One Happy Town's .list table, in Ported.io's tokens). */
.hc-main table.list{width:100%;border-collapse:separate;border-spacing:0;margin:8px 0 18px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.hc-main table.list th{text-align:left;font-size:13px;font-weight:700;color:var(--muted);background:var(--line-soft);padding:10px 14px;border-bottom:1px solid var(--line)}
.hc-main table.list td{padding:10px 14px;border-bottom:1px solid var(--line-soft);vertical-align:top}
.hc-main table.list tr:last-child td{border-bottom:0}
.hc-main code{font-family:var(--mono);font-size:13px;background:var(--line-soft);border-radius:6px;padding:1px 6px}
.hc-main ol,.hc-main ul{padding-left:22px;margin:0 0 14px}
.hc-main li{margin-bottom:4px}

/* The API Reference, rendered from the API design's reference.json: its tables, lists, the paste card and endpoint lines. */
.hc-lede{font-size:17px;color:var(--muted)}
.hc-full{padding:6px 0 18px;border-bottom:1px solid var(--line)}
.hc-ref>div:last-child{border-bottom:0}
.hc-ep{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 10px}
.hc-eph{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hc-eph .url,.hc-ep .url{font-size:15px;background:none;padding:0}
.hc-perm{font-size:12px;font-weight:400;color:var(--muted);background:var(--line-soft);border-radius:99px;padding:2px 9px}
.hc-m.get{background:var(--blue)}
.hc-ex>span{display:block;font-size:13px;color:var(--muted);margin:26px 0 6px}
.hc-ex+.hc-ex>span{margin-top:14px}
.hc-ex .hc-code{margin:0}
.hc-ref table{width:100%;border-collapse:separate;border-spacing:0;margin:8px 0 18px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;font-size:14px;display:block;overflow-x:auto}
.hc-ref th{text-align:left;font-size:13px;font-weight:700;color:var(--muted);background:var(--line-soft);padding:10px 14px;border-bottom:1px solid var(--line)}
.hc-ref td{padding:10px 14px;border-bottom:1px solid var(--line-soft);vertical-align:top}
.hc-ref tr:last-child td{border-bottom:0}
.hc-ref td code{white-space:nowrap}
.hc-ref td.msg{min-width:260px}
.hc-ref .paste{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;margin:14px 0;font:14px/1.5 var(--mono)}
.hc-ref .paste p{margin:0}
.hc-ref .callout.amber{background:var(--amber-soft);border-left-color:var(--amber)}
.hc-ref p,.hc-ref li{overflow-wrap:anywhere}
.hc-report .hc-sendfail{margin-top:10px;font-size:14px}
.hc-report .hc-sendfail:empty{display:none}
.hc-report .hc-sendfail a{color:var(--red);text-decoration:underline}

/* Two rules Pavior's embed adds to the page as <style> elements, which the help center's page policy (no inline styles,
   technical/architecture.md §5.7) refuses: here they come from the help center's own stylesheet. The chat on a phone
   stops the page scrolling behind it, and the embed's frames stay light, as the help center is. */
.moment_disable_scroll{overflow:hidden!important}
iframe[src*="https://app.pavior.com"]{color-scheme:light}
