/* Content pages. Tokens live in styles.css. */

.footer-cols a[aria-current="page"] {
  color: var(--text);
}

.guide nav.crumbs > ol,
.page nav.crumbs > ol,
nav.crumbs > ol {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide nav.crumbs > ol > li,
.page nav.crumbs > ol > li,
nav.crumbs > ol > li {
  display: inline-flex;
  align-items: center;
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
  color: var(--faint);
  padding: 0;
  margin: 0;
}

.guide nav.crumbs > ol > li::marker,
.page nav.crumbs > ol > li::marker,
nav.crumbs > ol > li::marker {
  content: none;
}

.guide nav.crumbs > ol > li:not(:last-child)::after,
.page nav.crumbs > ol > li:not(:last-child)::after,
nav.crumbs > ol > li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--arrow);
}

.crumbs a {
  color: var(--mid);
}

.crumbs [aria-current="page"] {
  color: var(--faint);
}

.page .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}

.example-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page .post-list,
.page .tag-list,
.page .related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page .tag-list {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 8px;
}

.page .tag-list li {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
}

.page .post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
}

.page .post-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
}

.page .post-card h2 a {
  color: var(--text);
}

.page .post-card h2 a:hover {
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--mid);
  font-size: 13px;
}

.tag-list a:hover {
  color: var(--accent-hover);
  border-color: var(--mid);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page .prose h2 {
  margin-top: 12px;
}

.page .prose h3 {
  margin: 8px 0 0;
  font-size: 22px;
  color: var(--text);
}

.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 1.2em;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--link);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.prose pre,
pre.astro-code {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
  padding: 16px 18px;
  overflow: auto;
  color: var(--mid);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose pre code,
pre.astro-code code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prose blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.prose hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
}

.page .panel h2,
.page .faq h2 {
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

.page .eyebrow {
  color: var(--link);
}

.page .panel .fine {
  color: var(--faint);
  font-size: 14px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(440px, 100%);
}

.gate-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.gate-form input[type="email"] {
  height: 48px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  padding: 0 14px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}

.faq-list dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.faq-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.related-list a {
  color: var(--text);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.related-list a:hover {
  color: var(--accent-hover);
}

.page .related-list p {
  color: var(--faint);
  font-size: 14px;
}

/* Subpages share the homepage column, type, cards, and amber controls. */

.guide .wrap.guide-inner {
  width: min(1180px, calc(100% - 48px));
  padding-inline: 0;
  padding-top: 128px;
  padding-bottom: 112px;
}

.page {
  width: min(68ch, calc(100% - 48px));
  margin-inline: auto;
  padding: 128px 0 112px;
}

.guide h1,
.page h1 {
  text-wrap: balance;
}

.guide h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.guide h2 a,
.guide h3 a,
.page h2 a {
  color: var(--text);
}

.guide h2 a:hover,
.guide h3 a:hover,
.page h2 a:hover {
  color: var(--text);
}

.guide .lede,
.page > p,
.page .prose,
.page .prose p,
.page .prose li,
.guide p,
.guide li {
  font-size: 17px;
  line-height: 1.65;
}

.guide p,
.page > p {
  max-width: 68ch;
}

.guide .link-list p,
.guide .card-grid span,
.card-grid span {
  max-width: none;
  color: var(--faint);
  font-size: 15px;
  line-height: 1.45;
}

.guide .kicker,
.page .kicker {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.guide .kicker .dot,
.page .kicker .dot {
  background: var(--amber);
}

.guide .link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.guide .link-list li {
  gap: 8px;
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
}

.guide .link-list a {
  color: var(--text);
  font-size: 18px;
}

.guide .link-list a:hover,
.guide .card-grid a:hover,
.guide .inline-suppliers a:hover {
  color: var(--text);
}

.guide .inline-suppliers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide .inline-suppliers a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
  color: var(--text);
  font-weight: 650;
}

.guide .inline-suppliers a:hover,
.guide .card-grid a:hover,
.guide .link-list li:hover {
  border-color: var(--line-3);
}

.guide .link-list .supplier-mark,
.guide .inline-suppliers .supplier-mark {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.guide .link-list .supplier-mark img,
.guide .inline-suppliers .supplier-mark img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.card-grid {
  gap: 12px;
}

.card-grid a {
  border-radius: 16px;
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
  color: var(--text);
}

.card-grid a:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.prompt-block {
  border-radius: 22px;
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
}

.prompt-bar button {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #0b0f16;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.prompt-bar button:hover {
  background: #ffc14d;
  color: #0b0f16;
}

.guide .steps li > span {
  background: var(--amber);
  color: #0b0f16;
}

.sheet-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.06);
}

.guide .btn-primary,
.page .btn-primary {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #0b0f16;
  font-size: 14px;
  font-weight: 600;
}

.guide .btn-primary:hover,
.page .btn-primary:hover {
  background: #ffc14d;
  color: #0b0f16;
}

.tag-list a {
  border-color: var(--line);
  background: var(--card);
  color: var(--mid);
}

.tag-list a:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.gate-form input[type="email"] {
  border-radius: 12px;
  border-color: var(--line);
  background: var(--elev);
}

@media (max-width: 980px) {
  .guide .inline-suppliers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page.legal-doc {
  width: min(760px, calc(100% - 48px));
}

.legal-doc section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.legal-doc h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.legal-doc h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text);
}

.legal-doc .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.legal-doc table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.legal-doc th {
  color: var(--text);
  font-weight: 600;
}

.legal-doc td {
  color: var(--muted);
}

.author-mark {
  display: block;
  width: 96px;
  height: 96px;
  margin: 8px 0 18px;
}

@media (max-width: 720px) {
  .guide .wrap.guide-inner,
  .page {
    width: min(1180px, calc(100% - 32px));
  }

  .page.legal-doc {
    width: min(760px, calc(100% - 32px));
  }

  .guide .link-list,
  .guide .inline-suppliers,
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
