/* Product stories and documentation share the core brand tokens in styles.css. */
.workflow-section, .module-section, .resource-section { padding-block: 88px; }
.workflow-grid, .module-grid, .resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.workflow-grid article { border-top: 2px solid var(--line); padding-top: 24px; }
.step-number, .resource-grid>a>span { font-size: 10px; letter-spacing: .12em; color: var(--blue); font-weight: 650; }
.workflow-grid h3, .module-grid h3, .resource-grid h3 { font-size: 21px; margin-block: 16px 12px; letter-spacing: -.025em; }
.workflow-grid p, .module-grid p, .resource-grid p { font-size: 14px; color: var(--muted); }
.product-story { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; padding-block: 32px 72px; }
.product-story h2, .module-section h2, .mobile-story h2, .faq h2 { font-size: clamp(30px,3.5vw,44px); letter-spacing: -.04em; line-height: 1.15; font-weight: 650; }
.product-story p, .mobile-story p { margin-block: 20px; color: var(--muted); font-size: 15px; }
figure { margin: 0; }
.product-story figure { padding: 16px; border: 1px solid var(--line); background: var(--sky); border-radius: 12px; }
.product-story figcaption { font-size: 11px; color: var(--muted); margin-top: 16px; }
.image-button { display: block; width: 100%; padding: 0; background: transparent; cursor: zoom-in; }
.image-button img { width: 100%; }
.check-list { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.7; margin-block: 24px; }
.check-list li { padding-left: 4px; margin-bottom: 12px; }
.check-list li::marker { color: var(--blue); }
.module-section { border-top: 1px solid var(--line); }
.module-grid { margin-top: 40px; gap: 0; border-top: 1px solid var(--line); }
.module-grid article { padding: 24px 24px 28px 0; border-bottom: 1px solid var(--line); }
.section-note { font-size: 12px; color: var(--muted); margin-top: 24px; }
.mobile-story { background: #eaf3fc; overflow: hidden; }
.mobile-story-inner { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 80px; padding-block: 64px; max-width: 960px; }
.phone-frame { width: 260px; margin: auto; padding: 8px; background: white; border: 1px solid #bfcee0; border-radius: 24px; box-shadow: 0 24px 40px #14365b18; }
.phone-frame img { border-radius: 16px; max-height: 500px; object-fit: cover; object-position: top; }
.resource-grid { gap: 20px; }
.resource-grid>a { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: white; display: flex; flex-direction: column; }
.resource-grid>a:hover { border-color: #82b7ed; background: #f5f9ff; }
.resource-grid b { font-size: 12px; color: var(--blue); padding-top: 24px; margin-top: auto; }
.faq { max-width: 820px; padding-bottom: 60px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 22px; font-weight: 600; font-size: 15px; line-height: 1.5; }
details p { padding-bottom: 24px; color: var(--muted); font-size: 14px; }
summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.footer nav a:hover { color: var(--blue); }
.header nav { gap: 22px; }
.header nav [aria-current=page] { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.page-hero { padding-block: 64px 56px; }
.page-hero h1 { font-size: clamp(36px,5vw,66px); font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.page-hero>p { max-width: 640px; margin-top: 24px; color: var(--muted); font-size: 17px; }
.notice { padding: 20px 24px; background: var(--sky); border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.8; color: #3f5c7c; margin-block: 24px; }
.page-hero .notice { max-width: 820px; margin-bottom: 0; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 64px; padding-bottom: 88px; align-items: start; }
.docs-nav { position: sticky; top: 24px; border-left: 1px solid var(--line); padding-left: 20px; }
.docs-nav a { display: block; padding-block: 10px; font-size: 13px; color: var(--muted); }
.docs-nav a:hover { color: var(--blue); }
.doc-content { max-width: 820px; min-width: 0; }
.doc-content section { padding-block: 36px; border-top: 1px solid var(--line); }
.doc-content h2 { font-size: 30px; letter-spacing: -.035em; margin-bottom: 20px; line-height: 1.2; }
.doc-content h3 { font-size: 19px; margin-block: 24px 12px; }
.doc-content p { color: var(--muted); font-size: 15px; margin-block: 16px; }
.doc-content a { color: var(--blue); font-size: 14px; }
.doc-content a:hover { text-decoration: underline; }
.doc-image { margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; }
.steps { padding-left: 25px; }
.steps>li { padding-left: 12px; margin-block: 28px; }
.steps>li::marker { color: var(--blue); font-weight: 650; }
.steps h3 { margin-top: 0; }
pre { max-width: 100%; overflow-x: auto; padding: 24px; background: #122d4c; color: #e3efff; border-radius: 8px; font-size: 12px; line-height: 1.85; }
code { font-family: Consolas, "Courier New", monospace; font-size: .9em; }
p code, td code, li code, .notice code { overflow-wrap: anywhere; }
.table-overflow { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-block: 24px; }
.doc-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; line-height: 1.65; }
.doc-content th { background: var(--sky); font-weight: 650; }
.doc-content td, .doc-content th { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-content tr:last-child td { border-bottom: 0; }
.doc-content caption { text-align: left; padding: 14px 18px; color: var(--muted); }
.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.doc-links a { padding-block: 17px; border-bottom: 1px solid var(--line); }
.hosting-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hosting-options article { padding: 24px; border: 1px solid var(--line); border-radius: 10px; }
.hosting-options article:first-child { background: var(--sky); }
.hosting-options h3 { margin-top: 0; }
.service-map { display: grid; gap: 12px; text-align: center; background: var(--sky); padding: 24px; border-radius: 10px; }
.service-map>div { background: white; border: 1px solid var(--line); padding: 16px; border-radius: 6px; }
.service-map strong, .service-map span { display: block; }
.service-map strong { font-size: 14px; }
.service-map div span { color: var(--muted); font-size: 12px; margin-top: 6px; }
.gallery-section { padding-bottom: 80px; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 32px; }
.filter-bar button { background: white; padding: 12px 20px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.filter-bar button[aria-pressed=true] { color: white; background: var(--blue); border-color: var(--blue); }
.filter-bar>span { margin-left: auto; font-size: 12px; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gallery-card { border: 1px solid var(--line); border-radius: 10px; background: white; overflow: hidden; }
.gallery-card[hidden] { display: none; }
.gallery-card .image-button { background: var(--sky); padding: 16px; text-align: left; }
.gallery-card img { aspect-ratio: 1.6; object-fit: contain; object-position: top; background: #e4eef9; }
.gallery-card .image-button>span { display: block; padding-top: 12px; font-size: 11px; color: var(--blue); }
.gallery-card figcaption { padding: 24px; }
.gallery-card h2 { font-size: 22px; letter-spacing: -.03em; }
.gallery-card p { color: var(--muted); font-size: 13px; margin-block: 12px 20px; }
.gallery-card a { font-size: 12px; color: var(--blue); font-weight: 600; }
dialog img { max-height: 78dvh; object-fit: contain; background: #e5eef8; }
@media (max-width: 1000px) {
  .header nav { gap: 14px; font-size: 12px; }
  .docs-layout { grid-template-columns: 170px minmax(0,1fr); gap: 32px; }
  .mobile-story-inner { gap: 32px; }
  .product-story { gap: 32px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .header { flex-wrap: wrap; }
  .header nav { width: 100%; justify-content: space-between; }
  .header nav>a:not(.nav-github) { display: block; }
}
@media (max-width: 700px) {
  .workflow-grid, .resource-grid, .gallery-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-story, .mobile-story-inner { grid-template-columns: 1fr; }
  .mobile-story-inner>div:last-child { grid-row: 1; }
  .mobile-story-inner { padding-block: 48px; }
  .phone-frame { width: 220px; }
  .phone-frame img { max-height: 400px; }
  .workflow-section, .module-section, .resource-section { padding-block: 56px; }
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; padding: 16px; background: var(--sky); border: 1px solid var(--line); border-radius: 8px; }
  .docs-nav .eyebrow { width: 100%; }
  .docs-nav a { padding-block: 8px; }
  .hosting-options { grid-template-columns: 1fr; }
  .page-hero { padding-block: 40px; }
  .page-hero>p { font-size: 15px; }
  .doc-content h2 { font-size: 27px; }
  .footer { align-items: start; flex-direction: column; }
  .footer nav { gap: 16px; }
  .filter-bar>span { width: 100%; margin: 8px 0 0; }
  .filter-bar button { padding-inline: 15px; }
}
@media (max-width: 380px) {
  .module-grid, .doc-links { grid-template-columns: 1fr; }
  .notice, pre { padding: 16px; }
}
