/* htmlcssjs.net: the look of the pages this package adds around the modules (tutorials, search, the 404 page). Loaded after theme-map.css.
   The site's reset (Tailwind preflight) removes heading sizes, list marks, paragraph margins and link underlines; the tutorial module was
   built and tested under a page that has them. The rules below give the tutorial text exactly the values of that page (test T-tutorial-look
   compares them), in the site's colours. Nothing here changes a rule outside the classes named. */

/* ---- tutorial pages ---- */
.hcj-page-tut { --sh-bg: #ffffff; --sh-fg: #1f2937; --sh-muted: #4b5563; --sh-line: #d1d5db; --sh-accent: #3730a3; --sh-code-bg: #f3f4f6;
  max-width: 56rem; margin: 0 auto; padding: 1.25rem; color: var(--sh-fg); background: #ffffff; border: 1px solid #e5e7eb; border-radius: .75rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); line-height: 1.6; }
@media (min-width: 768px) { .hcj-page-tut { padding: 2rem 2.5rem; } }
.hcj-page-tut h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem); line-height: 1.2; font-weight: 700; margin: 1rem 0; color: #111827; }
.hcj-page-tut h2 { font-size: 1.375rem; line-height: 1.3; font-weight: 700; margin: 2rem 0 .5rem; color: #111827; }
.hcj-page-tut h3 { font-size: 1.0625rem; font-weight: 700; margin: 1.25rem 0 .25rem; color: #111827; }
.hcj-page-tut [id] { scroll-margin-top: 6rem; }
.hcj-page-tut p { margin: 1em 0; }
.hcj-page-tut ul, .hcj-page-tut ol { margin: 1em 0; padding-left: 40px; }
.hcj-page-tut ul { list-style: disc; }
.hcj-page-tut ol { list-style: decimal; }
.hcj-page-tut ul ul, .hcj-page-tut ol ul { list-style: circle; }
.hcj-page-tut ul.tut-meta, .hcj-page-tut ol.tut-toc ul { list-style: none; }
.hcj-page-tut ul.tut-meta { padding: 0; margin: 0 0 1rem; }
.hcj-page-tut ul.tut-list { padding-inline-start: 1.25rem; }
.hcj-page-tut a:not(.hcj-pg a) { color: var(--sh-accent); text-decoration: underline; text-underline-offset: .15em; }
.hcj-page-tut a:not(.hcj-pg a):hover { color: #312e81; }
.hcj-page-tut a:focus-visible, .hcj-page-tut summary:focus-visible, .hcj-page-tut [tabindex]:focus-visible { outline: 3px solid var(--sh-accent); outline-offset: 2px; }
.hcj-page-tut pre { margin: 0 0 1rem; padding: .75rem 1rem; background: var(--sh-code-bg); border: 1px solid var(--sh-line); border-radius: 6px; overflow-x: auto; font: .875rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; tab-size: 2; }
.hcj-page-tut code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hcj-page-tut .hcj-pg pre { margin: 0; }
.hcj-tut-back { margin: 0 0 .5rem; }
.hcj-page-tut .hcj-tut-back { margin: 0 0 .5rem; }
.hcj-page-tut nav[aria-label="On this page"] ol { list-style: decimal; }

/* ---- the list of tutorials ---- */
.hcj-page-tutlist { max-width: 80rem; background: transparent; border: 0; box-shadow: none; padding: 0; }
.hcj-tut-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hcj-tut-card { display: flex; flex-direction: column; margin: 0; padding: 1.5rem; background: #ffffff; border: 1px solid #e5e7eb; border-radius: .75rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.hcj-tut-card:focus-within, .hcj-tut-card:hover { box-shadow: 0 6px 18px rgba(55, 48, 163, .15); }
.hcj-tut-card-title { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: #1f2937; }
.hcj-tut-card-title a { color: #3730a3; text-decoration: underline; text-underline-offset: .15em; }
.hcj-tut-card-title a:hover { color: #312e81; }
.hcj-tut-card-title a:focus-visible { outline: 3px solid #3730a3; outline-offset: 2px; border-radius: 2px; }
.hcj-tut-card-text { margin: 0 0 1rem; color: #374151; flex-grow: 1; }
.hcj-tut-card-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 .75rem; padding: 0; list-style: none; color: #4b5563; font-size: .9375rem; }
.hcj-tut-card-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.hcj-tut-card-topics li { padding: .125rem .625rem; font-size: .875rem; font-weight: 500; color: #3730a3; background: #e0e7ff; border-radius: 999px; }

/* ---- search page: the module's own classes, with the headings and lists the site's reset removed ---- */
.hcj-page-search { max-width: 56rem; margin: 0 auto; color: #1f2937; }
.hcj-page-search h1 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; margin: 0 0 1rem; color: #1f2937; }
.hcj-page-search h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; margin: 2rem 0 .5rem; color: #1f2937; }
.hcj-page-search h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: #1f2937; }
.hcj-page-search p { margin: 0 0 1rem; }
.hcj-page-search ul { margin: 0 0 1rem; padding-left: 1.5rem; list-style: disc; }
.hcj-page-search li { margin: .25rem 0; }
.hcj-page-search a { color: #3730a3; text-decoration: underline; text-underline-offset: .15em; }
.hcj-page-search a:hover { color: #312e81; }
.hcj-page-search .hcj-search-results ul, .hcj-page-search .hcj-search-results ol { list-style: none; padding-left: 0; }
.hcj-page-search .hcj-search-submit { cursor: pointer; }

/* ---- the 404 page: the module's text on the site's own hero ---- */
.hcj-404 { max-width: 40rem; margin: 0 auto; }
.hcj-404 h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; margin: 0 0 1rem; }
@media (min-width: 768px) { .hcj-404 h1 { font-size: 3rem; line-height: 1; } }
.hcj-404 p { font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 2rem; }
.hcj-404 ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hcj-404 a { display: inline-block; padding: .75rem 1.5rem; font-weight: 600; color: #3730a3; background: #ffffff; border-radius: .5rem; text-decoration: none; }
.hcj-404 a:hover { background: #f3f4f6; }
.hcj-404 a:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
.hcj-page-tutlist { color: #1f2937; }
.hcj-page-tut :not(pre) > code { overflow-wrap: anywhere; }
.hcj-page-tut { overflow-wrap: break-word; }
