/* ============================================================
   Pikaro — page standard for every subpage (owner decision 2026-10-21)
   ------------------------------------------------------------
   One header, one title size, one footer for every page except the
   homepage. Loaded LAST in each subpage's <head>, after the page's own
   inline styles, so these rules win where a page used to differ.

   - Header: breadcrumb (Pikaro / section / page) above the logo.
     Logo 44px high (30px on phones). The header scrolls with the page.
   - One frame for every subpage: header and content share ONE width
     (960px) and ONE left edge, so the logo sits in exactly the same place
     on every page. Content starts 24px inside the logo edge. Long-form
     text keeps a readable line length (max 732px) by ending earlier on the
     right — it is never re-centred, so its left edge never moves.
   - Page title (h1): 50px on desktop, scaling down on smaller screens.
   - Footer: a link row (company pages) above the social icons.
   ============================================================ */

/* reserve the scrollbar's space on every page, so a short page without a
   scrollbar does not shift the frame sideways */
html { scrollbar-gutter: stable; }

.page-header {
    position: static;
    padding: 2.5rem 1.5rem 1rem;
}
.page-header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}
/* ONE frame: the same width and left edge for the header and the content */
.page-header-inner { max-width: 960px; margin: 0 auto; }
main.page,
main.page-narrow,
main.legal-page,
main.pricing-page,
main.error-page {
    /* the same 24px outer gutter as the header, so on tablets too the
       content stays 24px inside the logo edge */
    width: calc(100% - 3rem);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
/* text pages: readable line length, left edge unchanged */
main.page-narrow > *,
main.legal-page > *,
main.error-page > * {
    max-width: 732px;
}

.page-logo {
    height: 44px;
    width: auto;
}

.crumbs {
    font-size: 0.85rem;
    color: #9a9486;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.crumbs a {
    color: #bfb49a;
    text-decoration: none;
    transition: color 0.2s;
}
.crumbs a:hover { color: #faf4e8; }
.crumbs .sep { opacity: 0.5; }

.hero h1,
.app-hero h1,
.article-head h1,
.legal-content h1,
.pricing-intro h1,
.error-page h1 {
    font-size: clamp(2.1rem, 5.5vw, 50px);
    line-height: 1.12;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
}
.footer-links-row a {
    color: #bfb49a;
    text-decoration: none;
    font-size: 0.8rem;
}
.footer-links-row a:hover { color: #faf4e8; }

@media (max-width: 600px) {
    .page-header { padding: 3.25rem 1rem 0.7rem; }
    main.page,
    main.page-narrow,
    main.legal-page,
    main.pricing-page,
    main.error-page { width: 100%; padding-left: 1rem; padding-right: 1rem; }
    .page-logo { height: 30px; }
    .crumbs { font-size: 0.72rem; gap: 0.3rem; }
    .hero h1,
    .app-hero h1,
    .article-head h1,
    .legal-content h1,
    .pricing-intro h1,
    .error-page h1 {
        font-size: clamp(1.45rem, 6.4vw, 1.8rem);
        line-height: 1.2;
    }
    .footer-links-row a { font-size: 0.75rem; }
}

/* Breadcrumb: always ONE line on every page (owner, 2026-10-23). The current
   page's name shrinks and ends with "…" if the line is too long; the links
   before it never shrink or wrap. */
.page-header-inner > .crumbs { align-self: stretch; max-width: 100%; min-width: 0; }
.crumbs { flex-wrap: nowrap; white-space: nowrap; }
.crumbs > * { flex: 0 0 auto; }
.crumbs > :last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
