/* Guides and info pages: the article column, typography, boxes, tables and the cards. Built pages only. */
/* The text column starts at the same left edge as the logo; on wide screens a side column sits on its right. */
.lp-article, .lp-closing { max-width: 760px; margin-left: 0; margin-right: 0; }
.lp-more { margin-left: 0; margin-right: 0; }
.lp-article-narrow { max-width: 720px; }
.lp-side { display: none; }
@media (min-width: 1200px) {
  .lp-layout { display: grid; grid-template-columns: minmax(0, 760px) 320px; column-gap: 3rem; justify-content: space-between; align-items: start; }
  .lp-side { display: block; position: sticky; top: 1.5rem; margin-top: 1.25rem; }
  .lp-toc-inline { display: none; }
  .lp-layout .lp-article > .lp-sheets { display: none; } /* shown in the side card instead */
}
.lp-side .lp-toc { margin: 0 0 1.25rem; padding: .9rem 1rem; }
.lp-side .lp-toc ol { font-size: .9rem; }
.lp-side-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.25rem; display: grid; gap: .6rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.lp-side-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0 0 .15rem; line-height: 1.3; }
.lp-side-card .btn-primary, .lp-side-card .btn-primary:hover { color: #fff; text-decoration: none; }
.lp-side-alt { text-align: center; font-weight: 600; font-size: .9rem; color: #c2410c; text-decoration: none; }
.lp-side-alt:hover { text-decoration: underline; }
.lp-side-note { font-size: .8rem; color: #64748b; text-align: center; margin: 0; }
.lp-side-sub { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #64748b; margin: .5rem 0 0; }
.lp-side-chips { margin: 0; }
.lp-tool-top { max-width: 1120px; }
.lp-more, .lp-closing { margin-top: 3rem; }
.lp-closing { font-size: .9rem; color: #64748b; border-top: 1px solid #e2e8f0; padding-top: 1.25rem; margin-bottom: 2rem; }

.lp-h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #0f172a;
  margin: 1rem 0 .75rem;
}
.lp-lead { font-size: 1.2rem; color: #334155; line-height: 1.55; margin: 0 0 .75rem; }
.lp-byline { font-size: .9rem; color: #64748b; margin: 0 0 2rem; }

/* Article text: the reading size and spacing */
.lp-prose { font-size: 1.0625rem; line-height: 1.7; color: #1e293b; overflow-wrap: break-word; }
@media (min-width: 768px) { .lp-prose { font-size: 1.125rem; } }
.lp-prose > * + * { margin-top: 1rem; }
.lp-prose h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: #0f172a; margin: 2.75rem 0 .85rem; scroll-margin-top: 84px; }
.lp-prose h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: #0f172a; margin: 2rem 0 .6rem; scroll-margin-top: 84px; }
.lp-prose p { margin: 0 0 1rem; }
.lp-prose a { color: #c2410c; text-decoration: underline; text-underline-offset: 2px; }
.lp-prose a:hover { color: #9a3412; }
.lp-prose ul, .lp-prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.lp-prose li { margin-bottom: .4rem; }
.lp-prose li > ul, .lp-prose li > ol { margin: .4rem 0 0; }
.lp-prose strong { color: #0f172a; }
.lp-prose code { font-size: .92em; background: #f1f5f9; border-radius: 4px; padding: .1em .35em; color: #0f172a; word-break: break-word; }
.lp-prose img { display: block; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid #e2e8f0; margin: 1.5rem auto; }
.lp-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2.5rem 0; }
.lp-prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid #cbd5e1; color: #475569; }

/* Contents list (four or more ## headings) */
.lp-toc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.lp-toc-title { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0f172a; margin: 0 0 .5rem; }
.lp-toc ol { margin: 0; padding-left: 1.2rem; font-size: .975rem; }
.lp-toc li { margin-bottom: .25rem; }
.lp-toc a { color: #334155; }

/* Boxes: tip (orange), short version (grey), warning (yellow) */
.lp-box { border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: 1rem; line-height: 1.6; }
.lp-box > :last-child, .lp-box > p:last-child, .lp-box > ul:last-child, .lp-box > ol:last-child { margin-bottom: 0; }
.lp-box p { margin-bottom: .5rem; }
.lp-box ul, .lp-box ol { margin-bottom: .5rem; }
.lp-box-title { font-weight: 700; color: #0f172a; margin-bottom: .4rem !important; }
.lp-box-tip { background: #fff7ed; border-left: 4px solid #f76707; }
.lp-box-short { background: #f1f5f9; border: 1px solid #e2e8f0; }
.lp-box-warn { background: #fefce8; border-left: 4px solid #eab308; }

/* Tables: a wrapper that scrolls sideways on phones, rather than the whole page */
.lp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8f0; border-radius: 10px; margin: 1.5rem 0; max-width: 100%; }
.lp-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.4; margin: 0; }
.lp-table th, .lp-table td { border-bottom: 1px solid #e2e8f0; padding: .6rem .8rem; text-align: left; vertical-align: top; }
.lp-table th { background: #f1f5f9; font-weight: 700; color: #0f172a; white-space: nowrap; }
.lp-table tbody tr:nth-child(even) { background: #f8fafc; }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table td { min-width: 6rem; }
.lp-sizes td:first-child { white-space: nowrap; }

/* Call to action */
.lp-cta { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 1.5rem; margin: 2.5rem 0; }
.lp-cta-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 .35rem; }
.lp-cta-text { color: #475569; margin: 0 0 1rem; }
.lp-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.lp-cta-actions a:not(.btn) { color: #c2410c; font-weight: 600; }
.lp-cta-actions .btn, .lp-cta-actions .btn:hover { color: #fff; text-decoration: none; }  /* the article link style must not reach the button */
/* The same card inside an article (a :::cta line) looks exactly like the one at the end: the article's bigger text,
   paragraph gaps and underlined links stay out of it. */
.lp-prose .lp-cta { font-size: .875rem; line-height: 1.5; }
.lp-prose .lp-cta .lp-cta-title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .35rem; }
.lp-prose .lp-cta .lp-cta-text { margin: 0 0 1rem; }
.lp-prose .lp-cta-actions a:not(.btn) { text-decoration: none; }
.lp-prose .lp-cta-actions a:not(.btn):hover { text-decoration: underline; }

/* Questions at the end of a guide */
.lp-faq { margin-top: 2.5rem; }
.lp-faq h2 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 .25rem; }
.lp-faq h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: #0f172a; margin: 1.5rem 0 .4rem; }
.lp-faq p { font-size: 1.0625rem; line-height: 1.65; color: #334155; margin: 0; }

/* Sheets in this guide */
.lp-sheets { margin-top: 2.5rem; }
.lp-sheets h2 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 .75rem; }
.lp-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-chip {
  display: inline-flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  border: 1px solid #e2e8f0; border-radius: 999px; padding: .35rem .8rem;
  background: #fff; color: #0f172a; text-decoration: none; font-size: .9rem;
}
.lp-chip b { color: #c2410c; }
.lp-chip span { color: #64748b; }
.lp-chip:hover { border-color: #fdba74; background: #fff7ed; }

/* Cards: the guide index and "More guides" */
.lp-cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 576px) { .lp-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .lp-more .lp-cards { grid-template-columns: repeat(3, 1fr); } }
.lp-more h2 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 0; }
.lp-cards > .lp-guide-card { margin: 0; }
.lp-guide-card { display: block; text-decoration: none; color: inherit; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: none; }
.lp-guide-card:hover { border-color: #fdba74; box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.lp-guide-card .card-body { padding: 1.25rem; }
.lp-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: #0f172a; margin: 0 0 .4rem; }
.lp-card-text { color: #475569; font-size: .95rem; line-height: 1.5; margin: 0 0 .6rem; }
.lp-meta { font-size: .85rem; color: #64748b; }

/* Phones: a little less air, and nothing wider than the screen */
@media (max-width: 575.98px) {
  .lp-article, .lp-more, .lp-closing { max-width: 100%; }
  .lp-h1 { margin-top: .5rem; }
  .lp-cta { padding: 1.25rem; }
  .lp-prose h2 { margin-top: 2.25rem; }
}
/* The generated sizes chart: one line per sheet, so it stays short and scrolls sideways on phones. */
.lp-sizes th, .lp-sizes td { white-space: nowrap; min-width: 0; }

/* Landing pages: the hero (heading, lead and the main button), the small button inside the body, and the 404 page */
.lp-hero { margin: 1rem 0 2rem; }
.lp-hero .lp-h1 { margin-top: .5rem; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.25rem; }
.lp-hero-actions .btn-primary { color: #fff; text-decoration: none; }
.lp-hero-alt { color: #c2410c; font-weight: 600; text-decoration: none; }
.lp-hero-alt:hover { text-decoration: underline; }
.lp-hero-note { font-size: .875rem; color: #64748b; margin: .75rem 0 0; }
.lp-inline-cta { margin: 1.5rem 0; }
.lp-inline-cta .btn, .lp-inline-cta .btn:hover { color: #fff; text-decoration: none; }
.lp-notfound { margin-top: 3rem; }
.lp-notfound-code { font-size: .9rem; font-weight: 700; letter-spacing: .08em; color: #c2410c; margin: 0; }
.lp-notfound .lp-hero-actions { margin-top: 1.5rem; }

/* Tool pages: the heading, then the tool itself (it may be wider than the text), and the /labels list headings */
.lp-hero-tool { margin-bottom: 1.25rem; }

.lp-tool { margin: 0 0 2.5rem; }
.lp-hero-actions .btn:not(.btn-primary) { text-decoration: none; }
.lp-hub-head { font-size: 1.35rem; font-weight: 800; margin: 2.25rem 0 1rem; }
/* A short how-to video under a guide's heading */
.lp-video { margin: 0 0 1.75rem; }
.lp-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #0f172a; display: block; }
.lp-video figcaption { font-size: .85rem; color: #64748b; margin-top: .5rem; }
/* /videos: a grid of how-to videos, each with a link to its page */
.lp-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.lp-video-card .lp-video { margin-bottom: 1rem; }
.lp-video-card .lp-card-title { font-size: 1.1rem; margin: 0 0 .35rem; }
.lp-video-more { font-weight: 600; color: #c2410c; text-decoration: none; }
.lp-video-more:hover { text-decoration: underline; }
