/* The content pages (/pl/..., /en/...: src/studio/pages.py): a readable article with example
   designs and calls into the studio. Builds on app.css's tokens, like terms.css. */
.content-page { max-width: 820px; margin: 0 auto; padding: 22px max(20px, env(safe-area-inset-left)) 72px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); }
.content-page .doc { font-size: 16.5px; line-height: 1.65; }
.content-page .doc h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(32px, 5vw, 46px); line-height: 1.06; margin: 0 0 8px; }
.content-page .doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.content-page .doc .lead { font-size: 18.5px; color: var(--ink); }
.content-page .doc h2 { font-family: var(--font-display); letter-spacing: -.02em; font-size: 26px; line-height: 1.2; margin: 44px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.content-page .doc h3 { font-size: 18px; margin: 22px 0 6px; }
.content-page .doc ul, .content-page .doc ol { padding-left: 22px; }
.content-page .doc li { margin: 6px 0; }
.cta-row { margin: 26px 0; }
/* Example designs: the picture, what it is, and a way to make one like it. */
.examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.example { margin: 0; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); display: flex; flex-direction: column; }
.example img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stage-glow); }
.example figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.example figcaption p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.example figcaption .btn { align-self: flex-start; margin-top: auto; }
/* A list of words to print, each a click away from being a design. */
.slogans { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.slogans li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; background: var(--surface); border-radius: 14px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); margin: 0 !important; }
.slogan { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.slogans a { font-size: 14px; white-space: nowrap; }
/* What each product is, from the catalogue. */
.product-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.product-fact { background: var(--surface); border-radius: 18px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.product-fact h3 { margin: 0 0 2px !important; font-size: 17px; }
.product-fact .price { font-weight: 700; margin: 0 0 6px; }
.product-fact p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.content-page .note { font-size: 14.5px; color: var(--muted); }
/* Tables: the order-by dates, and anything else a page lays out in rows. */
.content-page table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); }
.content-page th, .content-page td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.content-page th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.content-page tr:last-child td { border-bottom: 0; }
.content-page td small { color: var(--muted); font-size: 13px; }
.related ul { padding-left: 20px; }
@media (max-width: 600px) {
  .content-page { padding-top: 14px; }
  .examples-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .example figcaption { padding: 10px 10px 12px; }
  /* Two cards a row: the button takes the card's width and may wrap (it ran past the edge). */
  .example figcaption .btn { font-size: 13px; padding: 8px 10px; white-space: normal; text-align: center; justify-content: center; align-self: stretch; }
}
