/*
 * Guide and template pages, and the directory under the landing page.
 * Loaded after the site stylesheet. It adds to that look and leaves the app's own rules alone.
 */

/* ---------- on the home page ---------- */
.in-app [data-prerendered],
.in-app .site-dir-wrap {
  display: none;
}
@media print {
  .site-dir-wrap {
    display: none !important;
  }
}

.site-dir {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.site-dir div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.site-dir a {
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.site-dir a:hover {
  color: var(--muted);
}
.site-dir-h {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- guide pages ---------- */
.doc .site-dir {
  margin-top: 96px;
}
.doc .foot {
  border-top: 1px solid var(--rule);
}
.doc .foot a {
  text-decoration: underline;
  text-decoration-color: #b9b9b3;
  text-underline-offset: 3px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 14px 0 52px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs i {
  margin: 0 10px;
  font-style: normal;
  color: #b9b9b3;
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs [aria-current] {
  color: var(--ink-2);
}

.prose h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.99;
}
.prose h2 {
  max-width: 860px;
  margin: 72px 0 20px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.05;
  scroll-margin-top: 24px;
}
.prose h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.008em;
}
.prose p,
.prose ul,
.prose ol {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose li::marker {
  color: var(--muted);
}
.prose b {
  font-weight: 600;
  color: var(--ink);
}
.prose .lead {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}
.prose .fine {
  font-size: 12.5px;
  color: var(--muted);
}
.prose :is(p, li, td, figcaption) a:not(.btn) {
  text-decoration: underline;
  text-decoration-color: #a9aaa6;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.prose :is(p, li, td, figcaption) a:not(.btn):hover {
  text-decoration-color: var(--ink);
}

/* tables */
.table-wrap,
.facts {
  max-width: 980px;
  margin: 24px 0 28px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(23, 24, 26, 0.06);
}
.table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
}
.prose table.facts {
  display: table;
  overflow: hidden;
}
.prose th,
.prose td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
}
.prose tbody tr:last-child > * {
  border-bottom: 0;
}
.prose thead th,
.facts th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.facts th {
  width: 150px;
  padding-top: 14px;
}
.prose tbody th {
  font-weight: 600;
  color: var(--ink);
}
.symbols .sym-cell {
  width: 88px;
  padding: 8px 18px;
}
.symbols .sym-cell svg {
  display: block;
}
.symbols tbody th {
  white-space: nowrap;
}

/* figures */
.doc-figure {
  max-width: 980px;
  margin: 36px 0 40px;
}
.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(23, 24, 26, 0.08),
    0 24px 50px -30px rgba(23, 24, 26, 0.3);
}
.doc-figure.sheet {
  max-width: none;
}
.doc-figure figcaption {
  max-width: 760px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* cards inside guides */
.prose .grid {
  margin: 24px 0 28px;
}
.prose .card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.08;
}
.prose .card p {
  margin: 8px 0 16px;
  font-size: 12.8px;
  line-height: 1.45;
  color: var(--muted);
}
.card-thumb:has(> img) {
  position: relative;
}
.card-thumb > img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
}

/* symbol strip */
.prose .sym-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}
.sym-strip li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 18px 8px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(23, 24, 26, 0.06);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  color: var(--ink-2);
}

/* questions */
.qa {
  max-width: 860px;
  border-bottom: 1px solid var(--rule);
}
.qa-item {
  padding: 24px 0 10px;
  border-top: 1px solid var(--rule);
}
.qa-item h3 {
  font-size: 24px;
}
.qa-item p {
  font-size: 15px;
}

/* steps */
.prose .howto {
  max-width: 860px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-bottom: 1px solid var(--rule);
}
.howto li {
  position: relative;
  margin: 0;
  padding: 24px 0 10px 64px;
  border-top: 1px solid var(--rule);
  counter-increment: step;
  scroll-margin-top: 24px;
}
.howto li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 30px;
  left: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.howto .in-tool {
  font-size: 14px;
  color: var(--muted);
}

/* template lists */
.prose .jump,
.prose .tpl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
  margin: 28px 0 0;
}
.prose .jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.prose .jump a:hover {
  border-color: #b9b9b3;
}
.jump a span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.tpl-group {
  margin-top: 80px;
  scroll-margin-top: 24px;
}
.tpl-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}
.tpl-group-head h2 {
  margin: 0;
}
.tpl-group-head p {
  justify-self: end;
  max-width: 400px;
  margin: 0;
  padding-bottom: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* closing band */
.doc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: 96px;
  padding: 44px 48px;
  border-radius: 22px;
  background: radial-gradient(120% 140% at 20% 0%, #44464a 0%, var(--graphite) 45%, var(--graphite-2) 100%);
  color: #f1f1ee;
}
.doc-cta h2 {
  margin: 0 0 10px;
}
.doc-cta p {
  max-width: 480px;
  margin: 0;
  font-size: 14.5px;
  color: #a9aaa6;
}
.doc-cta .actions {
  margin: 0;
}

@media (max-width: 1080px) {
  .prose .sym-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .crumbs {
    margin-bottom: 36px;
  }
  .prose h2 {
    margin-top: 56px;
  }
  .prose .sym-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prose th,
  .prose td {
    padding: 10px 12px;
  }
  .facts th {
    width: 96px;
    white-space: normal;
  }
  .tpl-group-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .tpl-group-head p {
    justify-self: start;
  }
  .howto li {
    padding-left: 40px;
  }
  .doc-cta {
    margin-top: 72px;
    padding: 32px 24px;
  }
}
