/* ============================================================
   BASECAMP 5 HELP DOCS — Option B: Navy Hero
   ============================================================ */


/* -------------------------------------------------------
   Fonts
------------------------------------------------------- */

@font-face {
  font-family: 'Graphik';
  font-style: normal;
  font-weight: normal;
  src: url('https://helpscout-docs.37signals.com/Graphik-Regular-Cy-Gr-Web.woff') format('woff');
}

@font-face {
  font-family: 'Graphik';
  font-style: normal;
  font-weight: bold;
  src: url('https://helpscout-docs.37signals.com/Graphik-Semibold-Cy-Gr-Web.woff') format('woff');
}

@font-face {
  font-family: 'Graphik';
  font-style: italic;
  font-weight: normal;
  src: url('https://helpscout-docs.37signals.com/Graphik-RegularItalic-Cy-Gr-Web.woff') format('woff');
}

@font-face {
  font-family: 'Graphik';
  font-style: italic;
  font-weight: bold;
  src: url('https://helpscout-docs.37signals.com/Graphik-SemiboldItalic-Cy-Gr-Web.woff') format('woff');
}


/* -------------------------------------------------------
   Base
------------------------------------------------------- */

body {
  font-family: 'Graphik', 'Helvetica Neue', helvetica, 'Apple Color Emoji', arial, sans-serif;
  background-color: #ffffff;
  color: #2a2a2a;
}

.container-fluid {
  max-width: 1080px;
  padding: 0 2em;
}

h1, h2, h3, h4, h5, h6 {
  color: #1a7ee8 !important;
}

/* H3 and below in articles: dark charcoal, not blue,
   so section headers (H2) and subsection headers (H3) read as distinct levels */
#fullArticle h3,
#fullArticle h4,
#fullArticle h5,
#fullArticle h6 {
  color: #2a2a2a !important;
}


/* -------------------------------------------------------
   Top nav — navy background, white links

   The navbar and search area both get #1a7ee8 so they
   read as one continuous hero band.
------------------------------------------------------- */

.navbar {
  max-width: 100%;
  margin: 0 0 0 0;
  border-bottom: none;
  background-color: #1a7ee8;
}

.navbar .navbar-inner {
  background-color: #1a7ee8;
  box-shadow: none;
  padding-bottom: 16px;
}

.navbar .nav {
  position: static;
  margin: 0 auto;
  float: none;
  text-align: center;
}

.navbar .nav li a,
.navbar .nav li.active a {
  padding: 8px 22px !important;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 10px !important;
  margin: 0 4px;
  line-height: 1;
  text-shadow: none !important;
}

.navbar .nav li a:hover,
.navbar .nav li.active a:hover {
  color: #ffffff !important;
  border-color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  text-decoration: none !important;
}

.navbar .nav li a:focus {
  color: #ffffff !important;
  outline: auto;
}

/* Logo — TODO: swap for BC5 logo URL once available */
#mainNav .brand {
  padding: 1.25em 0 0.75em 0;
  float: none;
  text-align: center;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

#mainNav .brand img {
  height: 52px !important;
  width: auto !important;
  vertical-align: middle;
}

#mainNav .brand span {
  display: none;
}

/* Site name text rendered by Help Scout below the logo image */
#mainNav .brand a,
#mainNav .brand p,
#mainNav .brand h1 {
  color: #ffffff !important;
  text-shadow: none !important;
  font-size: 1.375rem !important;
  font-weight: bold !important;
  vertical-align: middle;
}

.navbar .nav .active .caret {
  display: none;
}

.navbar .btn-navbar {
  display: none;
}

.nav-collapse,
.nav-collapse.collapse {
  height: auto;
  overflow: visible;
  transform: none;
}


/* -------------------------------------------------------
   Search area — extends the navy hero

   Help Scout generates an h1 in #docsSearch (the site
   name / tagline). Style it as the hero headline.
   Update the text in Help Scout Settings → Customize.
------------------------------------------------------- */

#docsSearch {
  background-color: #1a7ee8;
  padding: 1em 1em 3em 1em;
  text-align: center;
  border-color: transparent;
}

#docsSearch h1 {
  display: block !important;
  color: #ffffff !important;
  font-size: 1.625rem;
  font-weight: bold;
  margin-bottom: 0.75em;
  letter-spacing: -0.3px;
}

#serp-dd {
  z-index: 1000;
}

#searchBar {
  position: relative !important;
  display: block !important;
  max-width: 520px;
  margin: 0 auto;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

#searchBar .input-append {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

#searchBar .search-query {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.75em 100px 0.75em 1.25em !important;
  margin: 0 !important;
  height: auto !important;
  border: none !important;
  border-radius: 6px 0 0 6px !important;
  background-color: #ffffff !important;
  color: #2a2a2a !important;
  box-shadow: none !important;
  float: none !important;
  line-height: 1.25 !important;
}

#searchBar button {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 90px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background-color: #ffffff !important;
  color: #1a7ee8 !important;
  font-weight: bold !important;
  border-radius: 0 6px 6px 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  float: none !important;
  text-align: center !important;
}

#searchBar button:hover {
  background-color: #e8f1fd !important;
}


/* -------------------------------------------------------
   Contact button
------------------------------------------------------- */

/* Contact button hidden — Beacon ("Need Help?") handles this instead */
#contact,
#contactMobile {
  display: none !important;
}


/* -------------------------------------------------------
   Homepage: collection labels
   (Help Center / Learning Center h2 headings)
------------------------------------------------------- */

.collection-category {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5em 2em 0;
}

.collection-category h2 {
  font-size: 0.875rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #999999 !important;
  font-weight: 700 !important;
  margin-bottom: 1.25em !important;
  text-align: left !important;
}


/* -------------------------------------------------------
   Homepage: category cards with banner images

   Each card shows a 170px image banner at the top, then
   category name, description, and article count below.

   Images are applied per-category via background-image
   on each category's ID selector (see bottom of file).
   Until artwork is ready, a solid-color gradient fills
   the image area as a placeholder.

   To add real artwork, replace the linear-gradient in
   each per-category rule with: url('https://your-cdn/image.jpg')
   Keep the same background-size/repeat/position values.
------------------------------------------------------- */

.category-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

.category-list .category {
  box-sizing: border-box !important;
  display: block !important;
  width: auto !important;
  min-height: auto !important;
  vertical-align: top;
  text-decoration: none;
  border-radius: 8px !important;
  border: 1px solid #e0d8cc !important;
  box-shadow: none !important;
  background-color: #ffffff !important;
  background-size: 100% 170px !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  padding: 182px 16px 14px !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

.category-list .category:hover {
  border-color: #c8b898 !important;
}

.category-list .category:hover h3 {
  text-decoration: underline;
}

.category-list .category:before {
  display: none !important;
}

/* Category name */
.category-list h3 {
  margin: 0 0 0.4em 0 !important;
  padding: 0 0 0.4em 0 !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  color: #1a7ee8 !important;
  background-color: transparent !important;
  position: static !important;
  display: block !important;
  text-decoration: none !important;
  border-bottom: 2px solid #1a7ee8 !important;
}

/* Category description */
.category-list .category p {
  color: #445566 !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  margin: 0 0 0.4em 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

/* Article count */
.category-list .category .article-count {
  color: #999999 !important;
  background-color: transparent !important;
  font-size: 0.8125rem !important;
  display: block !important;
  margin: 0 !important;
}

/* Mobile: single column */
@media screen and (max-width: 600px) {
  .category-list {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}


/* -------------------------------------------------------
   Learning Center — cream band

   Targets the second .collection-category on the page.
   This assumes Help Center comes first, Learning Center
   second — which matches the current Help Scout setup.
------------------------------------------------------- */

.collection-category + .collection-category {
  background-color: #f6ebd7;
  max-width: 100%;
  padding: 2.5em 0 3em;
  margin-top: 3em;
}

.collection-category + .collection-category > h2 {
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 2em;
  color: #aaaaaa !important;
}

.collection-category + .collection-category .category-list {
  max-width: 1080px;
  margin: 0 auto !important;
  padding: 0 2em;
}

/* Amber underline accent instead of blue */
.collection-category + .collection-category .category-list .category {
  background-color: #fffdf6 !important;
  border-color: #d8c6a6 !important;
}

.collection-category + .collection-category .category-list h3 {
  border-bottom-color: #c4952a !important;
}

.collection-category + .collection-category .category-list .category p {
  color: #6a5a40 !important;
}

.collection-category + .collection-category .category-list .category .article-count {
  color: #a08060 !important;
}


/* -------------------------------------------------------
   Per-category placeholder colors

   Uses nth-child so no category IDs are needed.
   Colors match the Kelly-inspired card images.

   When real artwork is ready, swap these out for
   ID-targeted rules using url('https://...') instead
   of the linear-gradient — see comment above.

   Help Center order:
   1. Getting Started
   2. Using Basecamp
   3. Working with Your Team
   4. Personal Settings
   5. Apps & Integrations
   6. Troubleshooting & FAQs
   7. Account, Billing & Settings

   Learning Center order:
   1. The 37signals Way
   2. Field Guides
   3. Classes
------------------------------------------------------- */

/* Help Center — one color per card position */
.category-list .category:nth-child(1) { background-image: linear-gradient(#1a7ee8, #1a7ee8); } /* Getting Started      */
.category-list .category:nth-child(2) { background-image: linear-gradient(#87bb00, #87bb00); } /* Using Basecamp       */
.category-list .category:nth-child(3) { background-image: linear-gradient(#0d3f7a, #0d3f7a); } /* Working with Team    */
.category-list .category:nth-child(4) { background-image: linear-gradient(#cc2200, #cc2200); } /* Personal Settings    */
.category-list .category:nth-child(5) { background-image: linear-gradient(#5c3b8c, #5c3b8c); } /* Apps & Integrations  */
.category-list .category:nth-child(6) { background-image: linear-gradient(#c87800, #c87800); } /* Troubleshooting      */
.category-list .category:nth-child(7) { background-image: linear-gradient(#001a40, #001a40); } /* Account & Billing    */

/* Learning Center — override nth-child colors for its 3 cards */
.collection-category + .collection-category .category-list .category:nth-child(1) { background-image: linear-gradient(#0a0a0a, #0a0a0a); } /* The 37signals Way */
.collection-category + .collection-category .category-list .category:nth-child(2) { background-image: linear-gradient(#0a4020, #0a4020); } /* Field Guides       */
.collection-category + .collection-category .category-list .category:nth-child(3) { background-image: linear-gradient(#c84b00, #c84b00); } /* Classes            */


/* -------------------------------------------------------
   Article list (inside category pages)
------------------------------------------------------- */

.articleList {
  margin-top: 2em;
}

.articleList li {
  padding: 0.875em 0 0.5em 0;
  margin: 0.25em 0;
  border-top: 1px solid #d8c6a6;
}

.articleList a {
  padding: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: #1a7ee8;
}

.articleList a:hover {
  text-decoration: underline;
}


/* -------------------------------------------------------
   Article / entry page
------------------------------------------------------- */

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  font-size: 1.05rem;
  line-height: 1.7;
}

#fullArticle a {
  font-size: inherit !important;
  color: #1a7ee8;
}

#fullArticle a:hover {
  text-decoration: underline;
}

#sidebar {
  margin-top: 3.25em;
}

#main-content {
  background: none;
  padding: 32px 0 0 40px;
}

/* Narrower sidebar, wider content on desktop.
   Sidebar floats left, main-content floats right —
   overriding Bootstrap's span3/span9 percentages. */
@media screen and (min-width: 769px) {
  #sidebar {
    width: 185px !important;
  }

  #main-content {
    width: calc(100% - 213px) !important; /* 185px sidebar + ~28px gutter */
  }
}

@media (max-width: 768px) {
  #main-content {
    background: none;
    padding: 0;
  }
}

.contentWrapper {
  padding: 0;
  box-shadow: none;
  background-color: transparent;
  border: none;
}

.contentWrapper h1 {
  font-weight: bold;
  color: #1a7ee8;
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 1em;
}

#categoryHead .sort {
  display: none;
}

#sidebar .nav-list a {
  color: #1a7ee8;
  font-size: 1rem;
}

#sidebar .nav-list a:hover {
  color: #1a7ee8;
  text-decoration: underline;
}

/* Hide "last updated" timestamp */
.articleFoot time.lu {
  display: none;
}

/* Jump list */
.subnav {
  list-style: none;
  padding: 0 0 0 1em;
  margin: 0 0 1.5em 0;
  border-left: 1px dashed #d8c6a6;
}

.subnav li {
  font-size: 1rem !important;
  margin: 4px 0;
}

.subnav a {
  font-weight: normal !important;
  color: #1a7ee8 !important;
  padding: 0 !important;
  font-size: inherit !important;
}

.subnav .icon-article-doc {
  display: none !important;
}


/* -------------------------------------------------------
   Article media
------------------------------------------------------- */

.icon-print {
  display: none !important;
}

#fullArticle a img {
  border: 0;
}

#fullArticle details {
  margin-bottom: 1.5em;
}

#fullArticle details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
}

#fullArticle details summary > * {
  display: inline;
}

#fullArticle details[open] summary {
  margin-bottom: 1em;
}

#fullArticle source,
#fullArticle video {
  height: auto;
  max-width: 100%;
  width: 100%;
}

#fullArticle video {
  border: 1px solid #d8c6a6;
  border-radius: 6px;
  box-sizing: border-box;
  display: block;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5em;
  margin-top: -4px;
  overflow: hidden;
  padding: 4px;
}


/* -------------------------------------------------------
   Footer
------------------------------------------------------- */

footer p {
  margin-top: 4em;
  margin-bottom: 5em;
  text-align: center;
  color: #888888;
  font-size: 0.875rem;
}


/* -------------------------------------------------------
   Tabbed content (for article-level CSS tabs)
------------------------------------------------------- */

.tabs input[type="radio"] { display: none; }

.tabs {
  border: 1px solid #d4d0c8;
  border-radius: 8px;
}

.tab-labels {
  display: flex;
  border-bottom: 1px solid #d4d0c8;
  margin-bottom: 0;
  padding: 0 8px;
}

.tab-labels label {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-labels label:hover { color: #222; }

.tab-panel { display: none; }

.panels {
  background: #fffff8;
  border-radius: 0 0 8px 8px;
  padding: 20px 24px;
}

.tabs #t1:checked ~ .tab-labels label[for="t1"],
.tabs #t2:checked ~ .tab-labels label[for="t2"],
.tabs #t3:checked ~ .tab-labels label[for="t3"] {
  color: #1a56db;
  border-bottom-color: #1a56db;
  font-weight: 700;
}

.tabs #t1:checked ~ .panels #panel1,
.tabs #t2:checked ~ .panels #panel2,
.tabs #t3:checked ~ .panels #panel3 { display: block; }
