/* The pages a business's customers see: help centre, contact form, conversation. Their colour, our calm. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --brand: #c94f18;
  --bg: #fbf8f1;
  --surface: #ffffff;
  --ink: #1c1812;
  --ink-2: #544c3f;
  --ink-3: #686051;
  --line: #e7e0d0;
  --line-2: #d4cab5;
  --red: #b3261e;
  --soft: color-mix(in srgb, var(--brand) 8%, var(--bg));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110c;
    --surface: #1c1812;
    --ink: #f2eadb;
    --ink-2: #c9bda8;
    --ink-3: #9d917b;
    --line: #2f2920;
    --line-2: #443b2c;
    --red: #ff8a80;
    --soft: color-mix(in srgb, var(--brand) 16%, var(--bg));
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
mark { background: var(--soft); color: inherit; font-weight: 600; }

.pub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
.pub-brand { display: flex; align-items: center; font-weight: 600; font-size: 17px; text-decoration: none; min-width: 0; }
.pub-brand img { display: block; max-height: 34px; max-width: 200px; }
.pub-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-contact { font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--ink-2); }
.pub-contact:hover { color: var(--ink); }
.pub-main { flex: 1; width: 100%; }
.pub-foot { padding: 18px; text-align: center; font-size: 13px; color: var(--ink-3); }
.pub-foot a { color: inherit; }

.pub-hero { padding: clamp(36px, 7vw, 72px) 16px clamp(28px, 5vw, 48px); text-align: center; background: var(--soft); }
.pub-hero h1 { font: 500 clamp(30px, 5vw, 44px)/1.15 "Fraunces", Georgia, serif; }
.pub-hero p { margin: 8px auto 0; max-width: 560px; color: var(--ink-2); }
.pub-search { display: flex; gap: 6px; max-width: 520px; margin: 20px auto 0; padding: 5px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.pub-search input { flex: 1; min-width: 0; padding: 7px 10px; border: 0; background: none; }
.pub-search input:focus-visible { outline: none; }
.pub-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pub-search button { padding: 7px 16px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; }
.pub-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 32px clamp(24px, 4vw, 56px); max-width: 1000px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) 16px; }
.pub-section h2 { font-size: 15px; font-weight: 600; color: var(--ink-3); padding-bottom: 7px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pub-section li a { display: block; padding: 6px 0; text-decoration: none; line-height: 1.4; }
.pub-section li a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.pub-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 20px 16px 36px; color: var(--ink-2); }
.pub-button { display: inline-block; padding: 9px 18px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.pub-button:hover { filter: brightness(.94); }
.pub-chip { display: inline-block; padding: 5px 14px; margin-left: 4px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); text-decoration: none; cursor: pointer; font-size: 14.5px; }
.pub-chip:hover { border-color: var(--brand); color: var(--brand); }

.pub-narrow { max-width: 660px; margin: 0 auto; padding: clamp(24px, 5vw, 44px) 16px 40px; }
.pub-narrow > h1 { font: 500 clamp(26px, 4vw, 34px)/1.2 "Fraunces", Georgia, serif; margin-bottom: 6px; }
.pub-lede { color: var(--ink-2); margin-bottom: 18px; }
.pub-empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pub-done { text-align: center; }
.pub-done p { margin: 8px 0 18px; color: var(--ink-2); }

.pub-article { max-width: 720px; margin: 0 auto; padding: clamp(20px, 4vw, 36px) 16px 20px; }
.pub-crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.pub-article > h1 { font: 500 clamp(28px, 4.5vw, 38px)/1.2 "Fraunces", Georgia, serif; margin-bottom: 16px; }
.prose { overflow-wrap: anywhere; }
.prose > * + * { margin-top: .8em; }
.prose a { color: var(--brand); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .25em; }
.prose h2, .prose h3 { font-weight: 600; margin-top: 1.3em; }
.prose blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line-2); color: var(--ink-2); }
.prose pre { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; font-size: 14px; }
.prose code { font-size: .9em; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 4px 9px; }
.pub-vote { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.pub-related { margin-top: 26px; }
.pub-related h2 { font-size: 15px; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.pub-related li a { display: block; padding: 4px 0; }
.pub-results-title { font: 500 24px/1.2 "Fraunces", Georgia, serif; margin: 22px 0 8px; }
.pub-narrow .pub-search { margin: 0; max-width: none; }
.pub-results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pub-results a { font-weight: 600; text-decoration: none; }
.pub-results a:hover { color: var(--brand); text-decoration: underline; }
.pub-results p { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }

.pub-form { display: flex; flex-direction: column; gap: 14px; }
.pub-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: 15px; }
.pub-form input:not([type="file"]), .pub-form textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); font-weight: 400; font-size: 16px; }
.pub-form input:focus-visible, .pub-form textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.pub-form textarea { resize: vertical; }
.pub-form small { font-weight: 400; color: var(--ink-3); }
.pub-form .pub-button { align-self: flex-start; }
.pub-file { font-size: 14.5px; }
.pub-hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.pub-error { padding: 9px 12px; margin-bottom: 12px; border-radius: 7px; background: color-mix(in srgb, var(--red) 12%, var(--bg)); color: var(--red); font-size: 15px; }
.pub-suggest { padding: 10px 13px; background: var(--soft); border-radius: 8px; font-size: 15px; }
.pub-suggest p { font-weight: 500; margin-bottom: 3px; }
.pub-suggest a { color: var(--brand); }
.pub-suggest li { padding: 2px 0; }

body.embed { min-height: 0; background: var(--surface); font-size: 15px; }
.embed .pub-narrow { padding: 18px 16px 20px; }
.embed .pub-narrow > h1 { font-size: 22px; }
.embed .pub-lede { margin-bottom: 12px; font-size: 14.5px; }
.embed .pub-form { gap: 10px; }
.embed .pub-file { display: none; }
.embed .pub-form input:not([type="file"]), .embed .pub-form textarea { padding: 7px 10px; font-size: 15px; }
.portal-head { margin-bottom: 16px; }
.portal-ref { font-size: 14px; color: var(--ink-3); }
.portal-head h1 { font: 500 clamp(24px, 4vw, 30px)/1.2 "Fraunces", Georgia, serif; margin-bottom: 8px; overflow-wrap: anywhere; }
.portal-status { display: inline-block; padding: 2px 11px; border-radius: 13px; font-size: 14px; font-weight: 500; background: var(--soft); }
.portal-solved { background: color-mix(in srgb, #2c7445 16%, var(--bg)); }
.portal-waiting { background: color-mix(in srgb, #3b6ea5 16%, var(--bg)); }
.portal-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.portal-msg { padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.portal-customer { background: var(--soft); border-color: transparent; }
.portal-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.portal-meta time { color: var(--ink-3); font-size: 13px; }
.portal-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; font-size: 14.5px; }
.portal-files img { display: block; max-width: 240px; max-height: 180px; border-radius: 6px; border: 1px solid var(--line); }
.portal-files small { color: var(--ink-3); }
.portal-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 15px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.portal-rated p { margin: 8px 0 16px; color: var(--ink-2); }
.portal-rated em { font-style: normal; font-weight: 500; }
