/*
 * PawsAdmin Help Center - the whole stylesheet.
 *
 * Self-contained by requirement (spec D10): no imports, no CSS framework, no
 * Woof design-system tokens, no web fonts. The palette is PawsAdmin's own teal
 * and blue, taken from the product CSS (#009688, #1c84c6) and the dark teal the
 * article bodies already use inline (#0f5f51). The accent stays teal on purpose:
 * PawsAdmin blue (#13a1fd) was tried, and blue titles over blue links read as one
 * colour.
 */

:root {
  --teal: #009688;
  --teal-dark: #0f5f51;
  --teal-wash: #e7f4f2;
  --blue: #1c84c6;
  --ink: #23303a;
  --ink-soft: #5b6b77;
  --line: #e2e8ec;
  --page: #f7f9fa;
  --card: #ffffff;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- header ---- */

/* Light header: the Support Hub lockup is black line art with photos in it, so
 * it needs a light ground. The lockup carries its own wordmark, so there is no
 * text beside it. */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); border-top: 3px solid var(--teal); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { display: block; height: 56px; width: auto; }
.head-link { color: var(--ink-soft); font-size: 14px; }

/* ---- breadcrumb ---- */

.crumbs { background: var(--page); border-bottom: 1px solid var(--line); font-size: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 11px 0; }
.crumbs li + li::before { content: "/"; color: #b6c2cb; margin-right: 6px; }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

main { padding: 28px 20px 56px; }

/* ---- home ---- */

/* The photo band. The dog sits mid-photo, so the photo is anchored right at
 * three-quarters width and the left quarter is a flat dark ground that the
 * scrim fades out of: the headline and search sit on the dark, the dog stays
 * clear. Narrow screens take the photo full-bleed under an even scrim. */
.is-home main { padding: 0 0 56px; }
.hero-band { position: relative; background: #1c1e20 url(/assets/support-hero.jpg) right 30% / max(75%, 900px) auto no-repeat; }
.hero-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1c1e20 0%, #1c1e20 26%, rgba(28, 30, 32, .6) 42%, rgba(28, 30, 32, .15) 56%, rgba(28, 30, 32, 0) 64%); }
/* .hero is shared with the 404 page, which has no band: only the band turns
 * the text white. */
.hero { padding: 26px 0 6px; }
.hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.3px; }
.hero p { margin: 0; color: var(--ink-soft); }
.hero-band .hero { position: relative; max-width: 560px; padding: 44px 0 46px; }
.hero-band .hero h1 { color: #fff; }
.hero-band .hero p { color: rgba(255, 255, 255, .88); }
.hero-band .kb-search input { border-color: transparent; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 26px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cat-card h2 { margin: 0 0 4px; font-size: 18px; }
.cat-card h2 a { color: var(--teal-dark); }
.cat-meta { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.sec-list { list-style: none; margin: 0; padding: 0; }
.sec-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sec-list .count { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---- section / category ---- */

.page-head { margin: 0 0 22px; }
.page-head h1 { margin: 0 0 6px; font-size: 27px; letter-spacing: -.3px; }
.lede { margin: 0 0 6px; color: var(--ink-soft); max-width: 68ch; }
.page-meta { margin: 0; font-size: 13px; color: var(--ink-soft); }

.sec-block { margin: 0 0 26px; }
.sec-block h2 { margin: 0 0 4px; font-size: 18px; }
.sec-block h2 a { color: var(--teal-dark); }
.sec-desc { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }

.art-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.art-item a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: inherit; }
.art-item a:hover { border-color: var(--teal); text-decoration: none; }
.art-item strong { display: block; color: var(--blue); font-size: 16px; }
.art-item span { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-soft); }
.empty { color: var(--ink-soft); }

/* ---- article ---- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 32px; align-items: start; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px 24px; min-width: 0; }
.article-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-head h1 { margin: 0 0 6px; font-size: 27px; line-height: 1.25; letter-spacing: -.3px; }

.article-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.article-foot p { margin: 0; }

.article-aside { position: sticky; top: 18px; display: grid; gap: 16px; }
.aside-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.aside-block h2 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); }
.aside-block ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.aside-block li { padding: 4px 0; }
.aside-block li.lvl-3 { padding-left: 14px; font-size: 13px; }

/* ---- imported article body ----
 * These rules style 240 articles of Zendesk HTML we do not control, so they are
 * defensive: images and tables must never push the column wider than the card.
 */

.article-body { overflow-wrap: break-word; }
.article-body > *:first-child { margin-top: 0; }
.article-body h1 { font-size: 23px; margin: 30px 0 10px; line-height: 1.3; }
.article-body h2 { font-size: 20px; margin: 30px 0 10px; line-height: 1.3; }
.article-body h3 { font-size: 17px; margin: 24px 0 8px; }
.article-body h4 { font-size: 15px; margin: 20px 0 6px; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 24px; }
.article-body li { margin: 4px 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.article-body figure { margin: 16px 0; max-width: 100%; }
.article-body figure img { display: block; }
.article-body a { text-decoration: underline; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.article-body blockquote { margin: 16px 0; padding: 10px 16px; background: var(--teal-wash); border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code { background: #f1f4f6; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.article-body pre { background: #f1f4f6; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; overflow-x: auto; }
.article-body pre code { background: none; border: 0; padding: 0; }
.article-body table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body th { background: #f1f4f6; }
.article-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; border-radius: 6px; }
/* Zendesk bodies carry inline widths on wrapper divs; never let one overflow. */
.article-body div, .article-body section { max-width: 100%; }

/* ---- search ----
 * One control, three placements: the header (every page but home), the home
 * hero, and the 404 page. assets/kb-search.js fills .kb-search-results.
 */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.kb-search { position: relative; }
.kb-search input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--page) no-repeat 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b77' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px 9px 36px;
  -webkit-appearance: none;
  appearance: none;
}
.kb-search input::-webkit-search-decoration, .kb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.kb-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 132, 198, .18); background-color: var(--card); }

.kb-search-head { flex: 1 1 auto; max-width: 420px; }
.kb-search-head input { font-size: 15px; }

.kb-search-hero { max-width: 640px; margin: 18px 0 4px; }
.kb-search-hero input { font-size: 17px; padding: 13px 14px 13px 42px; background-position: 14px center; background-color: var(--card); border-radius: 10px; }

.kb-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20, 40, 60, .14);
  max-height: min(70vh, 520px); overflow-y: auto; text-align: left;
}
/* The script toggles the `hidden` attribute; keep it winning over any later display rule. */
.kb-search-results[hidden] { display: none; }
.kb-search-item { display: block; padding: 11px 16px; color: var(--ink); }
.kb-search-item + .kb-search-item { border-top: 1px solid var(--line); }
.kb-search-item:hover, .kb-search-item.is-active { background: var(--teal-wash); text-decoration: none; }
.kb-search-item strong { display: block; font-size: 15px; font-weight: 600; color: var(--blue); }
.kb-search-cat { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--teal-dark); margin-bottom: 2px; }
.kb-search-sum { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.kb-search-empty { padding: 14px 16px; font-size: 14px; color: var(--ink-soft); }
.kb-search-empty a { font-weight: 600; }

/* ---- contact form (/hc/en-us/requests/new) and its receipt ---- */

.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.request-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.request-form .article-head { margin: 0; }
.request-aside { display: grid; gap: 16px; }
.request-aside .aside-block h2 { margin-bottom: 8px; }
.plain-list { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.aside-note { background: var(--teal-wash); border-color: #cfe7e2; }
.aside-note h2 { color: var(--teal-dark); }
.aside-note p { margin: 0; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field-opt, .field-hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--page);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 132, 198, .18); background: var(--card); }
.field-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.field input[type="file"] { padding: 10px 12px; border-style: dashed; border-color: #c9d3da; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); cursor: pointer; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field-row .field { flex: 1 1 240px; }
/* The honeypot: a real field to a bot, invisible and unreachable to a person. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { background: #fbe9ea; border: 1px solid #f1c3c6; border-left: 3px solid #a8232c; border-radius: 0 8px 8px 0; padding: 10px 14px; font-size: 14px; color: #6e1a20; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 6px; }
.form-note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-primary { border: 0; background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: #0b4c41; text-decoration: none; color: #fff; }
.btn-secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn-secondary:hover { border-color: var(--teal); text-decoration: none; }

.sent-card { max-width: 640px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.sent-card h1 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: -.3px; }
.sent-card p { margin: 0; }
.sent-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-wash); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }

/* ---- 404 ---- */

.not-found { padding-top: 40px; max-width: 640px; }
.not-found p { color: var(--ink-soft); }
.not-found-links { margin-top: 18px; font-size: 14px; }

/* ---- footer ---- */

.site-foot { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0; font-size: 13px; color: var(--ink-soft); }
.site-foot p { margin: 0 0 4px; }
.foot-links a { color: var(--ink-soft); }

/* ---- narrow screens ---- */

@media (max-width: 900px) {
  .article-layout, .request-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .request-form { padding: 22px 18px 18px; }
  /* The aside dissolves into the grid so its two blocks can land on either side
   * of the article: the short on-this-page list above, where it is useful, and
   * the sibling list below, so a reader is not scrolled past seven unrelated
   * titles before reaching the one they opened. */
  .article-aside { display: contents; }
  .aside-toc { order: -1; }
  .aside-more { order: 1; }
  .article { padding: 22px 18px 18px; }
  .hero-band { background-position: 62% 30%; background-size: cover; }
  .hero-band::before { background: linear-gradient(180deg, rgba(28, 30, 32, .55), rgba(28, 30, 32, .78)); }
  .hero-band .hero { padding: 30px 0 32px; }
  .hero h1 { font-size: 25px; }
  .brand img { height: 40px; }
  .article-head h1, .page-head h1 { font-size: 23px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  /* The header search drops to its own full-width row under the brand. */
  .head-inner { flex-wrap: wrap; padding-bottom: 10px; }
  .kb-search-head { order: 3; flex-basis: 100%; max-width: none; }
  .is-home .head-inner, .is-404 .head-inner { padding-bottom: 0; }
}
