/*
 * tu-com theme, on top of the family look (family.css and family-look.css,
 * which load after this file and carry the colours as --look-* variables,
 * light and dark). This file sets the site's font, the logo in the header,
 * the footer's own words, the share row and the generated pages. Each curated
 * page's own parts are in page-<slug>.css.
 *
 * The shared look loads last, so a rule here that ties with one of its rules
 * loses; outrank it (one more class) when a rule must win.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px; /* a link into the page lands below the header */
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}
[hidden] {
  display: none !important;
}
.print-only {
  display: none;
}

/* Skip link: off screen until it has focus. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--look-page);
  color: var(--look-link);
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
}

/* Links take the look's link colour on the page, and the words' colour on
   the block, a band or a tile, where the page's link colour would not show.
   The Bible references the build turns into links are links too. */
a {
  color: var(--look-link);
}
.look-opening a.scripture-ref,
.look-band a.scripture-ref,
.look-tile a.scripture-ref,
.look-footer a.scripture-ref {
  color: inherit;
}
/* The Scripture pop-up, in the look's colours (light and dark follow). */
:root {
  --scripture-popup-bg: var(--look-page);
  --scripture-popup-fg: var(--look-text);
  --scripture-popup-border: var(--look-heading);
  --scripture-popup-link: var(--look-link);
}

/* Reading lines of 65 to 75 characters in the opening block too (the shared
   rule allows 40em there, about 86 characters at 18px). */
main .look-opening p {
  max-width: 31em;
}
/* A Bible reference on a line of its own is a tap target: 44px tall. */
.refs a.scripture-ref,
.com-refs a.scripture-ref,
.look-opening .look-lead a.scripture-ref {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The logo beside the name in the header. */
.family-brand .com-mark {
  flex: none;
  width: 36px;
  height: 32px;
}

/* The header row. Ten menu words, the logo and the name need about 1,120px
   at the family's 16px; the shared header is 1,080px, so on .com it may run
   to 1,200px and the gap between words is 16px. The row shows from 80rem
   (rowFrom in site.config.json); below that, the Menu button. */
.family-header .family-nav {
  max-width: 1240px;
}
.family-header .family-row {
  gap: 0 16px;
}

/* Every page starts on the block: the header continues into the opening. */
main {
  display: block;
}

/* ------------------------------------------------------------ the footer */
.look-footer p {
  margin: 0;
  max-width: 40em;
}
.look-footer .com-gift {
  font-size: 1.1875rem;
  font-weight: 700;
}
.com-foot-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 40em;
}
.look-footer .com-foot-rows a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 700;
}
.look-footer p a:not([class]),
.look-footer li a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.look-footer .cc0,
.look-footer .updated,
.look-footer .notice-copyright {
  font-size: 1rem;
}

/* ------------------------------------------- curated pages, all of them */
/* Sections: space between them, headings first. */
.look-prose > h2:first-child {
  margin-top: 56px;
}
.look-prose > p,
.look-prose > ul,
.look-prose > ol,
.look-prose > section > p,
.look-prose > section > ul {
  margin: 0 0 16px;
}
/* A small line above a heading that says where it sits. */
.com-tag {
  margin: 48px 0 0 !important;
  color: var(--look-link);
  font-size: 1rem;
  font-weight: 700;
}
.com-tag + h2 {
  margin-top: 4px !important;
}
/* A band straight under the opening block. */
.look-band.com-first-band {
  margin-top: 0;
}
.look-band {
  margin-top: 24px;
  margin-bottom: 8px;
}
.look-band p {
  max-width: 31em;
}
/* Buttons on the page: full width on a phone, as wide as their words on a
   desktop. */
.com-actions {
  margin: 20px 0 4px;
}
@media (min-width: 48rem) {
  .com-actions .look-button {
    width: auto;
    min-width: 260px;
    padding: 14px 32px;
  }
}
/* A teaching page's own closing words, before the footer. */
.com-pass-on {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--look-rule);
}
.com-pass-on p {
  margin: 0 0 12px;
}

/* ---------------------------------------- command rows (home and walk) */
/* The eight commands: large rows that open, a number in a filled circle. */
.com-cmds {
  border-top: 2px solid var(--look-rule);
  margin: 8px 0 20px;
}
details.cmd {
  border-bottom: 2px solid var(--look-rule);
}
details.cmd > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
}
details.cmd > summary::-webkit-details-marker {
  display: none;
}
details.cmd .n {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--look-strong);
  color: var(--look-on-strong);
  font-size: 1.125rem;
  font-weight: 700;
}
details.cmd .t {
  flex: 1;
  color: var(--look-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}
/* A chevron, drawn: down when shut, up when open. */
details.cmd > summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin: 0 6px 6px 0;
  border-right: 3px solid var(--look-heading);
  border-bottom: 3px solid var(--look-heading);
  transform: rotate(45deg);
}
details.cmd[open] > summary::after {
  margin-bottom: 0;
  margin-top: 6px;
  transform: rotate(-135deg);
}
details.cmd > div {
  padding: 0 0 16px 52px;
}
details.cmd > div p {
  margin: 0 0 12px;
}
details.cmd .refs {
  font-weight: 700;
}
details.cmd strong {
  color: var(--look-heading);
}

/* ------------------------------------------------------- the share row */
.share-row {
  margin: 40px 0 0;
  padding: 0 var(--look-gutter);
  font-size: 1rem;
}
.share-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.share-row a,
.share-row button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--look-link);
  border-radius: 12px;
  background: transparent;
  color: var(--look-link);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share-row .share-link {
  max-width: 31em;
  margin: 8px 0 0;
}
.share-row .share-url {
  word-break: break-all;
}
@media (pointer: fine) {
  .share-sms {
    display: none !important;
  }
}

/* ------------------------------------------------ generated pages */
main.generated {
  padding-top: 32px;
  padding-bottom: 16px;
}
main.generated img {
  max-width: 100%;
  height: auto;
}

/* The family "not found" page: the opening block, then the footer. */
main.com-not-found .look-opening {
  padding-bottom: 56px;
}
