@import url("https://api.fontshare.com/v2/css?f[]=switzer@400,500,600,700&f[]=switzer@400i,500i&display=swap");

/* Crier help site: Help Scout Docs restyled with the Crier design system (.claude/design-system.md). */

:root {
  --canvas: #F3E7D3;
  --surface: #E7D8BE;
  --card: #FDF8EE;
  --ink: #241B14;
  --ink-strong: #130C07;
  --muted: #6B5848;
  --ink-faint: #9C8775;
  --border: #D8C3A3;
  --border-soft: #E7DACD;
  --brand: #B6780C;
  --brand-dark: #8C5B06;
  --brand-soft: #EDCD97;
  --accent: #8E2927;
  --accent-soft: #E8C9C4;
  --sage-soft: #C9D9B9;
  --font: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 27, 20, .06), 0 6px 20px -8px rgba(36, 27, 20, .18);
}

html, body { background: var(--canvas) !important; }
body, button, input, select, textarea {
  font-family: var(--font) !important;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body { font-size: 16px; line-height: 1.6; }
a { color: var(--brand-dark); }
a:hover, a:focus { color: var(--ink-strong); }
::selection { background: var(--brand-soft); color: var(--ink-strong); }

/* ---------- Header ---------- */
.navbar .navbar-inner {
  background: var(--canvas) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  padding: 0;
}
.navbar .navbar-inner .container-fluid {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
}
.navbar .brand { padding: 0; margin: 0; float: none; }
.navbar .brand img { height: 40px !important; max-height: 40px !important; width: auto !important; display: block; margin: 0 !important; }
.navbar .caret { display: none !important; }
.navbar .nav-collapse .nav { padding: 0 !important; }
.navbar .nav-collapse { float: none; }
.navbar .nav-collapse .nav { margin: 0; display: flex; gap: 6px; float: none; }
.navbar .nav-collapse .nav > li { float: none; }
.navbar .nav-collapse .nav > li > a,
.navbar .nav li a {
  color: var(--muted) !important;
  font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  text-shadow: none;
}
.navbar .nav-collapse .nav li a:hover,
.navbar .nav-collapse .nav li a:focus { color: var(--ink-strong) !important; background: var(--surface); }
.navbar .nav-collapse .nav li.active a,
.navbar .nav .active a,
.navbar .nav .active a:hover {
  color: var(--ink-strong) !important; background: var(--surface) !important; box-shadow: none;
}
.navbar .nav li.active a:after, .navbar .nav li.active a:before { display: none !important; }
.navbar .btn-navbar { background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.navbar .btn-navbar .icon-bar { background: var(--ink); box-shadow: none; }

/* ---------- Search hero ---------- */
#docsSearch {
  background: var(--canvas) !important;
  border: 0;
  padding: 64px 24px 56px;
  margin: 0;
  text-align: center;
}
#docsSearch h1 {
  font-family: var(--font); font-weight: 600;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink-strong); margin: 0 0 28px; text-shadow: none;
}
#searchBar { max-width: 640px; margin: 0 auto; position: relative; display: flex; }
#searchBar .search-query,
#sidebar form .search-query {
  width: 100%; height: 56px; box-sizing: border-box;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0 130px 0 24px; font-size: 17px;
  box-shadow: var(--shadow);
}
#searchBar .search-query::placeholder, #sidebar form .search-query::placeholder { color: var(--ink-faint); }
#searchBar .search-query { margin: 0 !important; }
#searchBar .search-query:focus, #sidebar form .search-query:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(182, 120, 12, .18);
}
#searchBar button {
  position: absolute !important; right: 6px !important; top: 6px !important; margin: 0 !important; height: 44px;
  padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--brand) !important; color: var(--ink) !important;
  font-size: 16px; font-weight: 600; text-shadow: none; box-shadow: none;
}
#searchBar button:hover, #searchBar button:focus { background: #D58C0E !important; }
#searchBar button .icon-search { color: var(--ink); }
#searchBar.sm .search-query { height: 46px; font-size: 15px; padding-right: 60px; }
#searchBar.sm button { height: 36px; top: 5px; right: 5px; padding: 0 14px; }

/* Live search dropdown */
#serp-dd {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
#serp-dd .result a { color: var(--ink); padding: 10px 16px; }
#serp-dd .result > li.active, #serp-dd .result a:hover { background: var(--surface); color: var(--ink-strong); }

/* ---------- Main layout ---------- */
#contentArea { max-width: 1080px; margin: 0 auto; padding: 8px 24px 64px; box-sizing: border-box; }
.container-fluid { max-width: 1080px; }

/* Homepage collections and categories as cards */
.collection-category h2, #contentArea h2 {
  font-family: var(--font); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink-strong); text-align: left; margin: 40px 0 16px;
}
.category-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; }
.category-list .category,
.category-list.two-col .category {
  float: none; width: auto; margin: 0; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 24px; text-align: left; box-shadow: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-list .category:hover, .category-list .category:focus {
  border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); background: var(--card);
}
.category-list h3 { font-size: 18px; font-weight: 600; color: var(--ink-strong); margin: 0 0 6px; }
.category-list .category:hover h3 { color: var(--ink-strong); }
.category-list .category p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.category-list .category .article-count {
  display: inline-block; color: var(--brand-dark); background: rgba(237, 205, 151, .45);
  border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 500;
}
.category-list .category:hover .article-count { color: var(--ink-strong); }

/* Popular/related article lists */
.articleList { margin: 0; padding: 0; list-style: none; }
.articleList li { border-bottom: 1px solid var(--border-soft); padding: 0; margin: 0; }
.articleList li:last-child { border-bottom: 0; }
.articleList a { display: block; padding: 14px 4px; color: var(--ink); font-size: 16px; text-decoration: none; }
.articleList a:hover { color: var(--brand-dark); }
.articleList a .icon-article-doc { color: var(--ink-faint); margin-right: 8px; }

/* ---------- Category page ---------- */
#categoryHead h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-strong); }
#categoryHead .descrip, #categoryHead .sort { color: var(--muted); }
#categoryHead .sort select { background: var(--card); border: 1px solid var(--border); border-radius: 8px; }

/* ---------- Sidebar ---------- */
#sidebar h3 { color: var(--ink-faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
#sidebar .nav-list a { color: var(--muted); border-radius: 8px; padding: 6px 10px; text-shadow: none; }
#sidebar .nav-list a:hover { color: var(--ink-strong); background: var(--surface); }
#sidebar .nav-list .active a, #sidebar .nav-list .active a:hover {
  color: var(--ink-strong); background: var(--surface); font-weight: 600; text-shadow: none;
}
#sidebar .nav-list .icon-arrow { color: var(--ink-faint); }

/* ---------- Article ---------- */
.contentWrapper {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 40px 48px; box-shadow: none;
}
#fullArticle { color: var(--ink); font-size: 17px; line-height: 1.7; }
#fullArticle .title, #fullArticle h1 {
  font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ink-strong); margin-bottom: 20px;
}
#fullArticle h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-strong); margin: 40px 0 12px; }
#fullArticle h3 { font-size: 19px; font-weight: 600; color: var(--ink-strong); margin: 28px 0 8px; }
#fullArticle h1 em, #fullArticle h2 em, #docsSearch h1 em { font-style: italic; font-weight: 400; color: var(--brand-dark); }
#fullArticle p, #fullArticle li { color: var(--ink); }
#fullArticle strong, #fullArticle b { color: var(--ink-strong); font-weight: 600; }
#fullArticle a { color: var(--brand-dark); text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 3px; text-decoration-thickness: 2px; }
#fullArticle a:hover { text-decoration-color: var(--brand); }
#fullArticle li::marker { color: var(--brand); }
#fullArticle hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
#fullArticle img, #fullArticle .video, #fullArticle video, #fullArticle iframe {
  border-radius: 12px; border: 1px solid var(--border-soft); max-width: 100%;
}
#fullArticle .image-caption, #fullArticle figcaption { color: var(--muted); font-size: 14px; }
#fullArticle code { background: var(--surface); color: var(--ink-strong); border: 0; border-radius: 6px; padding: 1px 6px; font-size: .9em; }
#fullArticle blockquote { border-left: 3px solid var(--brand); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--muted); }
#fullArticle table { border-collapse: collapse; width: 100%; }
#fullArticle th, #fullArticle td { border-bottom: 1px solid var(--border-soft); padding: 10px 12px; text-align: left; }
#fullArticle th { color: var(--ink-strong); font-weight: 600; }

/* Help Scout callouts: tip (yellow), note (blue), warning (red), success (green) */
#fullArticle .callout-yellow, #fullArticle .callout-blue, #fullArticle .callout-red,
#fullArticle .callout-green, #fullArticle .callout {
  border: 0; border-left: 4px solid var(--brand); border-radius: 10px;
  background: rgba(237, 205, 151, .35); color: var(--ink); padding: 14px 18px; margin: 24px 0;
}
#fullArticle .callout-blue { border-left-color: var(--muted); background: var(--surface); }
#fullArticle .callout-red { border-left-color: var(--accent); background: rgba(232, 201, 196, .6); }
#fullArticle .callout-green { border-left-color: #4F7A3C; background: rgba(201, 217, 185, .6); }
#fullArticle .admin-edit, #fullArticle .printArticle { color: var(--ink-faint); }

/* "Did this answer your question?" + related */
.articleFoot { border-top: 1px solid var(--border-soft); margin-top: 40px; padding-top: 20px; color: var(--muted); }
.articleFoot time, .articleFoot p { color: var(--ink-faint); }
#rateAction, .articleRatings { color: var(--muted); }
.articleRatings .rateAction, .rateAction { border-radius: 999px; }
.related { background: transparent; border: 0; padding: 32px 0 0; }
.related h3 { color: var(--ink-faint); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.related ul > li a { color: var(--ink); }
.related ul > li a:hover { color: var(--brand-dark); }

/* Search results page */
#serp h1 { color: var(--ink-strong); font-weight: 600; }
#serp .articlesFound, #serp .nada { color: var(--muted); }

/* Pagination */
#main-content .pagination ul { box-shadow: none; }
#main-content .pagination ul li a, #main-content .pagination ul li span {
  background: var(--card); border-color: var(--border-soft); color: var(--ink);
}
#main-content .pagination ul li.active a { background: var(--brand); color: var(--ink); border-color: var(--brand); }

/* ---------- Footer ---------- */
#contentArea footer, footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px; text-align: center; }
#contentArea footer p, footer p { color: var(--ink-faint); font-size: 13px; }
#contentArea footer p a, footer p a { color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
  .navbar .navbar-inner .container-fluid { padding: 12px 16px; }
  .navbar .brand img { max-height: 32px; }
  .navbar .nav-collapse { width: 100%; }
  .navbar .nav-collapse .nav { flex-direction: column; gap: 2px; padding: 8px 0; }
  #docsSearch { padding: 40px 16px 36px; }
  #contentArea { padding: 0 16px 48px; }
  .contentWrapper { padding: 24px 20px; border-radius: 16px; }
  #searchBar .search-query { padding-right: 110px; font-size: 16px; }
}

/* Help Scout's clearfix pseudo-elements become flex items; drop them where we use flex. */
.navbar .navbar-inner .container-fluid::before,
.navbar .navbar-inner .container-fluid::after { display: none !important; }
#searchBar { padding: 0 !important; }
.navbar .brand, .navbar .brand span { color: var(--ink-strong) !important; text-shadow: none; }
#contentArea { padding-top: 32px; }
#fullArticle p, #fullArticle li, #fullArticle td, #fullArticle th, #fullArticle div, #fullArticle blockquote { font-size: 17px; line-height: 1.7; }
#fullArticle li { margin-bottom: 6px; }
#fullArticle a.printArticle, #fullArticle .printArticle { text-decoration: none; }
#sidebar .nav-list a { font-size: 15px; }
#sidebar .nav-list li { margin: 0 0 2px; }
#searchBar button { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; line-height: 1; }
#searchBar button .icon-search { margin: 0 !important; position: static !important; line-height: 1; }
@media (max-width: 768px) {
  #searchBar button span { display: none !important; }
  #searchBar button { padding: 0 18px; }
  #searchBar .search-query { padding-right: 72px; }
}

/* ===== Tile layout, after help.hey.com: one collection, categories as tiles, no top nav ===== */
:root { --tile-shadow: 0 2px 4px rgba(36, 27, 20, .04), 0 24px 48px -24px rgba(36, 27, 20, .28); }

/* Header: logo only */
.navbar .navbar-inner { border-bottom: 0 !important; }
.navbar .navbar-inner .container-fluid { max-width: 1200px; padding: 32px 24px 8px; }
.navbar .brand img { height: 44px !important; max-height: 44px !important; }
.navbar .nav-collapse, .navbar .btn-navbar { display: none !important; }

/* Hero */
#docsSearch { padding: 48px 24px 64px; }
#docsSearch h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 36px; }
#searchBar { max-width: 720px; }
#searchBar .search-query { height: 64px; border: 0; background: var(--card); box-shadow: var(--tile-shadow); font-size: 18px; padding-left: 32px; }
#searchBar button { height: 52px; top: 6px !important; right: 6px !important; padding: 0 26px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }

/* Homepage tiles */
#contentArea { max-width: 1200px; }
.category-list, .category-list.two-col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.category-list .category, .category-list.two-col .category {
  min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px; border: 0; border-radius: 24px;
  background: var(--card); box-shadow: var(--tile-shadow); text-decoration: none;
}
.category-list .category:hover, .category-list .category:focus {
  border: 0; transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(36, 27, 20, .05), 0 32px 56px -24px rgba(36, 27, 20, .38);
}
.category-list h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 10px; }
.category-list .category p:empty { display: none; }
.category-list .category .article-count { background: none; padding: 0; margin: 0; font-size: 17px; font-weight: 600; color: var(--brand-dark); }

/* Category page: a big card of large article links */
#main-content .contentWrapper, .contentWrapper {
  border: 0; border-radius: 24px; background: var(--card); box-shadow: var(--tile-shadow); padding: 56px 64px;
}
#categoryHead h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 24px; }
#categoryHead .sort { display: none; }
.contentWrapper .articleList li { border: 0; }
.contentWrapper .articleList a { padding: 8px 0; font-size: 21px; font-weight: 600; color: var(--brand-dark);
  text-decoration: underline; text-decoration-color: var(--brand-soft); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contentWrapper .articleList a:hover { color: var(--ink-strong); text-decoration-color: var(--brand); }
.articleList a .icon-article-doc { display: none; }

/* Sidebar: bold category list */
#sidebar h3 { display: none; }
#sidebar form .search-query { height: 56px; border: 0; background: var(--card); box-shadow: var(--tile-shadow); }
#sidebar .nav-list { margin-top: 32px; }
#sidebar .nav-list a, #sidebar .nav-list > li > a {
  font-size: 21px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink-strong); background: none !important; padding: 6px 0;
}
#sidebar .nav-list a:hover { color: var(--brand-dark); }
#sidebar .nav-list .active a, #sidebar .nav-list .active a:hover {
  color: var(--brand-dark); background: none !important;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--brand-soft);
}
#sidebar .nav-list .icon-arrow { display: none; }

/* Footer */
#contentArea footer, footer { border-top: 0; }

@media (max-width: 960px) {
  .category-list, .category-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 768px) {
  .navbar .navbar-inner .container-fluid { padding: 20px 16px 0; }
  .navbar .brand img { height: 36px !important; max-height: 36px !important; }
  #docsSearch { padding: 32px 16px 40px; }
  #searchBar .search-query { height: 56px; }
  #searchBar button { height: 44px; padding: 0 16px; }
  .category-list, .category-list.two-col { grid-template-columns: 1fr; gap: 16px; }
  .category-list .category { min-height: 132px; padding: 28px 20px; }
  .category-list h3 { font-size: 24px; }
  #main-content .contentWrapper, .contentWrapper { padding: 32px 24px; border-radius: 20px; }
  .contentWrapper .articleList a { font-size: 19px; }
  #sidebar .nav-list a { font-size: 19px; }
}
.contentWrapper { min-height: 0 !important; }
.contentWrapper .articleList a { margin-left: 0 !important; padding-left: 0 !important; }
#sidebar .nav-list .icon-arrow, #sidebar .nav-list .active a .icon-arrow { display: none !important; }
#contentArea footer, #contentArea footer p, footer p { text-align: center !important; float: none !important; }
#main-content { border: 0 !important; box-shadow: none !important; background: transparent !important; }
@media (max-width: 768px) { .category-list .category, .category-list.two-col .category { min-height: 120px; padding: 28px 20px; } }

/* Tile descriptions: Help Scout has no category description field, so they live here, keyed on category id. */
.category-list .category h3::after {
  display: block; margin-top: 8px; font-size: 16px; font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--muted);
}
#category-8 h3::after  { content: "Sign up, set up your page and connect your socials"; }
#category-13 h3::after { content: "Loyalty, offers and events, and the counter"; }
#category-30 h3::after { content: "Add your team and see how you're doing"; }
#category-11 h3::after { content: "Your free trial, plans and Direct Debit"; }
#category-31 h3::after { content: "The Crier app, and your venue in ChatGPT or Claude"; }
.category-list .category h3 { margin-bottom: 14px; }
.category-list.two-col .category, .category-list .category { min-height: 220px; }

/* Two collections on the homepage: For venues, For locals. Four tiles across so the venue row fits. */
#category-26 h3::after { content: "What Crier is and how to start"; }
#category-33 h3::after { content: "Use offers, go to events and collect stamps"; }
#category-32 h3::after { content: "Your profile, settings and account"; }
#category-34 h3::after { content: "The Crier app, and Crier in ChatGPT or Claude"; }
.collection-category { margin-bottom: 56px; }
.collection-category h2, #contentArea .collection-category h2 {
  margin: 0 0 20px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-align: left;
}
.collection-category h2 a { color: var(--ink-strong); text-decoration: none; }
.collection-category h2 a:hover { color: var(--brand-dark); }
.collection-category .category-list, .collection-category .category-list.two-col { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.collection-category .category-list .category { min-height: 210px; padding: 32px 20px; }
.collection-category .category-list h3 { font-size: 24px; }
@media (max-width: 1100px) {
  .collection-category .category-list, .collection-category .category-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .collection-category .category-list, .collection-category .category-list.two-col { grid-template-columns: 1fr; gap: 16px; }
  .collection-category .category-list .category { min-height: 120px; padding: 28px 20px; }
  .collection-category h2, #contentArea .collection-category h2 { font-size: 22px; }
}

/* Breadcrumbs (built by the Headers script): Help home › collection › category. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 20px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.crumbs a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.crumbs a:hover, .crumbs a:focus { text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
.crumbs-sep { color: var(--ink-faint); }

/* Phones: breadcrumbs, then search, then the content. Category and article pages drop the category list (the breadcrumbs replace it); collection pages keep it, above the popular articles. */
@media (max-width: 768px) {
  #contentArea > .row-fluid { display: flex; flex-direction: column; }
  #contentArea > .row-fluid > #sidebar { order: -1; width: 100%; margin: 0 0 20px; padding: 0; }
  #sidebar #searchBar { margin: 0; }
  .page-article #sidebar .nav-list, .page-category #sidebar .nav-list { display: none !important; }
  .page-collection #sidebar .nav-list { margin-top: 20px; }
  .crumbs { font-size: 14px; margin-bottom: 14px; }
}

/* Footer sits at the bottom of the screen on short pages. */
body { display: flex; flex-direction: column; min-height: 100vh; }
#contentArea { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; padding-bottom: 24px !important; }
#contentArea > footer { margin-top: auto; }
