/*
 * The public battery passport page.
 *
 * Mobile first and standalone: not part of the ExtJS theme and must not depend
 * on it, because the page it dresses is opened by a consumer on a phone and
 * loads nothing else. Sized for a thumb and for daylight in a workshop - large
 * type, high contrast, generous targets, one column at every width.
 *
 * The single strongest visual statement on the page is the boundary between the
 * regulated passport and the manufacturer's services. Everything above it sits
 * on white cards over a cool ground; everything below it sits on a warmer,
 * darker panel. A reader should be able to tell which half they are in
 * without reading a heading.
 *
 * No product logos or brand marks. The demonstrator uses public product context
 * and dressing it in someone else's identity would misrepresent who published
 * it.
 */

/*
 * Self-hosted on purpose. This page is scanned off a battery, often on a phone
 * with a poor signal in a workshop, and it must not wait on a font CDN - nor
 * hand a consumer's IP address to one - before it can say what the battery is.
 *
 * All four faces together are about 60 kB over the wire, because they are
 * latin subsets in woff2 and the Roboto Flex subset is pinned to its weight
 * axis. The full RobotoFlex.ttf next to them is 1.7 MB and stays where it is:
 * it dresses the ExtJS application, which is a logged-in desktop tool and can
 * afford it. The latin-ext files only load if the passport actually contains
 * such characters, which is what the unicode-range is for.
 *
 * Poppins is SIL OFL 1.1; see Poppins-OFL.txt beside the files.
 */
@font-face {
    font-family: 'Roboto Flex';
    src: url('../style/fonts/RobotoFlex-latin.woff2') format('woff2');
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../style/fonts/Poppins-Medium-latin.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('../style/fonts/Poppins-Medium-latin-ext.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
        U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    src: url('../style/fonts/Poppins-SemiBold-latin.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
        U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    src: url('../style/fonts/Poppins-SemiBold-latin-ext.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
        U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Colours and type are the Substantio CI manual (CI_Substantio, 17.07.2026),
 * software palette - the section of the manual that governs product surfaces,
 * not the website one: headlines #0A2540, body text #3f4b66, highlight #635bff,
 * backgrounds #FAFDFF over #F6F9FC, icon grey #767F93, and lines as 20% of
 * #3f4b66. Headings are Poppins, body is Roboto Flex.
 *
 * Two things are derived here rather than quoted, because the manual covers
 * light software surfaces only and this page has a dark half:
 *   - the services band and the hero are built from the CI headline navy
 *     #0A2540, running to the CI logo navy #2e2e54 in the hero gradient;
 *   - --pp-accent-bright is #635bff lifted toward white so the highlight still
 *     carries on that navy, where #635bff itself sits at about 3:1.
 */
:root {
    --pp-ink: #0A2540;
    --pp-ink-soft: #3F4B66;
    /*
     * The CI's #767F93 is its icon grey and its 40% #3f4b66 is blocked text.
     * Neither clears 4.5:1, so they dress only the decorative marks - the
     * disclosure chevron and the legal-source line. Everything a consumer
     * actually reads, however small, takes the CI paragraph colour, because
     * this page is read at arm's length in daylight in a workshop.
     */
    --pp-muted: #767F93;
    --pp-line: rgba(63, 75, 102, .20);
    --pp-ground: #F6F9FC;
    --pp-card: #FAFDFF;
    --pp-field: #E8ECF0;
    --pp-accent: #635BFF;
    --pp-accent-bright: #9B95FF;
    --pp-warn-bg: rgba(242, 142, 12, .10);
    --pp-warn-ink: #3F4B66;
    --pp-warn-line: #F28E0C;
    --pp-service-ground: #0A2540;
    --pp-service-card: #12304F;
    --pp-service-card-hover: #17395B;
    --pp-service-line: #1E4166;
    --pp-service-ink: #F6F9FC;
    --pp-service-soft: #A7B4CC;
    --pp-font-head: 'Poppins', 'Segoe UI', Roboto, -apple-system, sans-serif;
    --pp-font-body: 'Roboto Flex', 'Roboto', 'Segoe UI', -apple-system, sans-serif;
    /*
     * Where the publisher's tab seats. The hero's bottom padding and the pull
     * the identity card is given are the same number by definition - that
     * shared edge is what makes the badge read as a tab rather than a button
     * floating above a card. Every breakpoint that restates the hero padding
     * has to restate this too, which is why it is a token.
     */
    --pp-tab-seat: 14px;
    --pp-radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--pp-ground);
    color: var(--pp-ink);
    font-family: var(--pp-font-body);
    font-size: 16px;
    line-height: 1.5;
}

/* --- hero --- */

.pp-hero {
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(160deg, #0A2540 0%, #2E2E54 100%);
    color: #FFFFFF;
}

/*
 * One column on a phone - headline, cart, title, mark, in that order. From
 * 560px the cart moves out to the right of the headline, because past that
 * width a drawing stacked over a two-word product name leaves a hole in the
 * middle of the hero.
 */
.pp-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin: 0 auto;
    padding: 22px 18px var(--pp-tab-seat) 18px;
}

/*
 * The product leads. No text-transform: the product is called ELiTE, with that
 * i, and uppercasing it in CSS renders someone else's trade name wrongly on a
 * page that is meant to be about their product.
 *
 * min-height reserves the line before the experience call returns, so the rule
 * and the drawing below it do not jump once it does.
 */
.pp-hero-product {
    min-height: 32px;
    font-family: var(--pp-font-head);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.01em;
}

/*
 * Set by the script on the last word, whatever the product is called. It is a
 * block so the break always falls before it rather than wherever the line
 * happens to run out: "Golf cart traction" over "battery", never "Golf cart"
 * over "traction battery".
 */
.pp-hero-accent {
    display: block;
    color: var(--pp-accent-bright);
}

.pp-hero-rule {
    height: 2px;
    max-width: 330px;
    margin-top: 13px;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--pp-accent) 0%, rgba(99, 91, 255, 0) 100%);
}

.pp-hero-art {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 6px 0 2px -6px;
}

/* Until the script knows which product this is: keep the space, show nothing. */
.pp-hero-art-pending {
    visibility: hidden;
}

.pp-hero-title {
    margin: 0 0 2px 0;
    font-family: var(--pp-font-head);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.pp-hero-reg {
    color: var(--pp-service-soft);
    font-size: 12.5px;
}

/* --- the publisher's mark --- */

/*
 * Who published the page, in the hero rather than only in the footer. The
 * whole tab links to substantio.com, which makes the target the size of the
 * tab instead of the 20px logo inside it.
 *
 * A tab, not a floating button: rounded at the top, square at the bottom, and
 * sitting on the edge the identity card starts at. The hero's bottom padding
 * is 14px and the card is pulled up by the same 14px, so the badge's bottom
 * edge and the card's top edge are the same line.
 *
 * -4px on the right because the hero pads 18px and the page pads 14px; without
 * it the tab would stand 4px inside the card it is supposed to sit on.
 */
.pp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    margin-top: 16px;
    margin-right: -4px;
    padding: 6px 13px 7px 11px;
    border-radius: 10px 10px 0 0;
    background-color: var(--pp-accent);
    color: #FFFFFF;
    text-decoration: none;
}

a.pp-badge:hover {
    filter: brightness(.93);
}

a.pp-badge:focus-visible {
    outline: 2px solid var(--pp-accent-bright);
    outline-offset: 2px;
}

.pp-badge-pre {
    font-size: 10.5px;
    font-style: italic;
}

/*
 * The lockup carries its own typography and its own spacing, so it is one
 * image and nothing here re-sets it. Height drives it; the width follows.
 */
.pp-badge-logo {
    display: block;
    flex: none;
    width: auto;
    height: 20px;
}

/* --- page --- */

.pp-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 14px 0 14px;
}

/* --- identity --- */

.pp-identity {
    margin: calc(-1 * var(--pp-tab-seat)) 0 14px 0;
    padding: 18px;
    border-radius: var(--pp-radius);
    /*
     * Square where the tab lands. A rounded corner under a square-bottomed tab
     * leaves a notch of hero showing between the two, and they stop reading as
     * one shape.
     */
    border-top-right-radius: 0;
    background-color: var(--pp-card);
    box-shadow: 0 2px 10px rgba(10, 37, 64, .10);
}

.pp-identity-product {
    margin-bottom: 10px;
    color: var(--pp-ink-soft);
    font-size: 15px;
    font-weight: 600;
}

.pp-identity-label {
    color: var(--pp-ink-soft);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pp-identity-value {
    margin-top: 3px;
    font-family: 'Roboto Mono', Consolas, monospace;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pp-identity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.pp-chip {
    padding: 3px 9px;
    border-radius: 11px;
    background-color: var(--pp-field);
    color: var(--pp-ink-soft);
    font-size: 12px;
    font-weight: 500;
}

.pp-loading {
    color: var(--pp-ink-soft);
}

.pp-warn {
    margin: 12px 0 0 0;
    padding: 9px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--pp-warn-line);
    background-color: var(--pp-warn-bg);
    color: var(--pp-warn-ink);
    font-size: 13px;
}

/* SBDEV-802: the previous and the next passport of the same battery. */
.pp-link {
    color: var(--pp-accent);
    font-weight: 500;
    text-decoration: underline;
}

.pp-problem {
    margin: 6px 0 0 0;
    color: var(--pp-ink-soft);
}

.pp-demo {
    margin: 0 0 16px 0;
    padding: 0 2px;
    color: var(--pp-ink-soft);
    font-size: 12px;
    line-height: 1.45;
}

/* --- passport sections --- */

.pp-section {
    margin-bottom: 10px;
    border-radius: var(--pp-radius);
    background-color: var(--pp-card);
    box-shadow: 0 1px 2px rgba(10, 37, 64, .06);
}

.pp-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.pp-section-head::-webkit-details-marker {
    display: none;
}

.pp-section-head:focus-visible {
    outline: 2px solid var(--pp-accent);
    outline-offset: -2px;
    border-radius: var(--pp-radius);
}

.pp-section-title {
    font-family: var(--pp-font-head);
    font-size: 15px;
    font-weight: 600;
}

.pp-section-count {
    flex: none;
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 10px;
    background-color: var(--pp-field);
    color: var(--pp-ink-soft);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* The marker rotates so the control reads as a control. */
.pp-section-head::after {
    flex: none;
    content: '';
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 2px solid var(--pp-muted);
    border-bottom: 2px solid var(--pp-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s ease;
}

.pp-section[open] > .pp-section-head::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
    .pp-section-head::after {
        transition: none;
    }
}

.pp-facts {
    margin: 0;
    padding: 0 18px 6px 18px;
}

.pp-facts dt {
    padding-top: 12px;
    border-top: 1px solid var(--pp-line);
}

.pp-fact-name {
    display: block;
    color: var(--pp-ink-soft);
    font-size: 13.5px;
    line-height: 1.35;
}

.pp-fact-source {
    display: block;
    margin-top: 1px;
    color: var(--pp-muted);
    font-size: 11px;
}

.pp-facts dd {
    margin: 3px 0 13px 0;
}

.pp-value {
    font-size: 16px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.pp-value-list {
    margin: 0;
    padding-left: 18px;
    font-weight: 400;
}

.pp-value-list li {
    margin-bottom: 2px;
}

/*
 * A list with labelled components (data point 13: substance, CAS, hazard
 * class, share). Phone first: each row is a small card whose cells carry their
 * column label, because four columns do not fit 340px. From 560px it is a
 * table.
 */
.pp-value-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 400;
}

.pp-value-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.pp-value-table tr {
    display: block;
    padding: 8px 0;
    border-top: 1px solid var(--pp-line);
}

.pp-value-table tr:first-child {
    border-top: 0;
    padding-top: 2px;
}

.pp-value-table td {
    display: flex;
    gap: 10px;
    padding: 1px 0;
}

.pp-value-table td::before {
    content: attr(data-label);
    flex: 0 0 44%;
    color: var(--pp-muted);
    font-size: 12px;
    line-height: 1.6;
}

.pp-document {
    font-size: 15px;
}

.pp-checksum {
    margin-top: 4px;
    color: var(--pp-muted);
    font-size: 11px;
    font-weight: 400;
}

.pp-checksum summary {
    cursor: pointer;
}

.pp-checksum code {
    display: block;
    margin-top: 2px;
    word-break: break-all;
}

@media (min-width: 560px) {
    .pp-value-table thead {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .pp-value-table tr {
        display: table-row;
        padding: 0;
    }

    .pp-value-table th {
        padding: 4px 12px 4px 0;
        color: var(--pp-muted);
        font-size: 12px;
        font-weight: 500;
        text-align: left;
        vertical-align: bottom;
        border-bottom: 1px solid var(--pp-line);
    }

    .pp-value-table td {
        display: table-cell;
        padding: 5px 12px 5px 0;
        border-top: 1px solid var(--pp-line);
    }

    .pp-value-table tr:first-child td {
        border-top: 0;
    }

    .pp-value-table td::before {
        content: none;
    }
}

/* --- restricted --- */

.pp-card {
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: var(--pp-radius);
    background-color: var(--pp-card);
    box-shadow: 0 1px 2px rgba(10, 37, 64, .06);
}

.pp-card p {
    margin: 0 0 10px 0;
    color: var(--pp-ink-soft);
    font-size: 14px;
}

.pp-card-title {
    margin: 0 0 10px 0;
    font-family: var(--pp-font-head);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pp-restricted {
    border-left: 3px solid var(--pp-accent);
}

.pp-fine {
    margin: 0;
    color: var(--pp-ink-soft);
    font-size: 12.5px;
    line-height: 1.5;
}

/* --- the boundary, and everything commercial below it --- */

/*
 * The divider used to be a hairline. It is now the edge of the dark panel
 * itself, which states the same thing more plainly, so this only holds the
 * gap open.
 */
.pp-boundary {
    height: 20px;
}

.pp-services {
    margin: 0 -14px;
    padding: 24px 20px 26px 20px;
    border-radius: 14px;
    background-color: var(--pp-service-ground);
    color: var(--pp-service-ink);
}

.pp-services[hidden] {
    display: none;
}

.pp-services-title {
    margin: 0 0 6px 0;
    font-family: var(--pp-font-head);
    font-size: 18px;
    font-weight: 600;
}

.pp-services-intro {
    margin: 0 0 16px 0;
    color: var(--pp-service-soft);
    font-size: 13.5px;
    line-height: 1.5;
}

.pp-actions-title {
    margin: 18px 0 8px 0;
    color: var(--pp-service-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#ppActionGroups > .pp-actions-title:first-child {
    margin-top: 0;
}

.pp-actions {
    display: grid;
    gap: 8px;
}

.pp-action {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 12px;
    padding: 13px 15px;
    border: 1px solid var(--pp-service-line);
    border-radius: 10px;
    background-color: var(--pp-service-card);
    color: var(--pp-service-ink);
    text-decoration: none;
}

a.pp-action:hover {
    border-color: var(--pp-accent);
    background-color: var(--pp-service-card-hover);
}

a.pp-action:focus-visible {
    outline: 2px solid var(--pp-accent-bright);
    outline-offset: 2px;
}

.pp-action-label {
    grid-column: 1;
    font-size: 15px;
    font-weight: 600;
}

.pp-action-desc {
    grid-column: 1;
    color: var(--pp-service-soft);
    font-size: 12.5px;
    line-height: 1.4;
}

.pp-action-mark {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: var(--pp-accent-bright);
    font-size: 17px;
}

.pp-action-off {
    opacity: .55;
}

.pp-action-off .pp-action-mark {
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pp-services .pp-fine {
    margin-top: 16px;
    color: var(--pp-service-soft);
}

/* --- the publisher's own call to action --- */

/*
 * On the white page, under the identity card and its demonstrator note. It
 * used to be a solid highlight block in the hero; on the light ground it is
 * outlined and tinted instead, so it reads as a banner from us rather than as
 * one more white card of passport data, and does not outshout the identity
 * above it.
 *
 * It fades in after 1.5s rather than being inserted then: the space is held
 * from the first paint, so nothing below it moves. A banner that appears by
 * pushing the battery ID down the screen while someone is reading it is worse
 * than no banner.
 *
 * animation with fill mode `both` and no opacity on the rule itself - that way
 * the delay hides it, but a browser that ignores the animation shows it rather
 * than hiding it forever.
 */
@keyframes pp-cta-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

@keyframes pp-cta-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.pp-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(99, 91, 255, .45);
    border-radius: var(--pp-radius);
    background-color: rgba(99, 91, 255, .06);
    color: var(--pp-ink);
    text-decoration: none;
    animation: pp-cta-in .45s ease 1.5s both;
}

/* The delay stays, the movement goes. */
@media (prefers-reduced-motion: reduce) {
    .pp-cta {
        animation-name: pp-cta-fade;
    }
}

a.pp-cta:hover {
    background-color: rgba(99, 91, 255, .12);
}

a.pp-cta:focus-visible {
    outline: 2px solid var(--pp-accent);
    outline-offset: 2px;
}

.pp-cta-text {
    font-family: var(--pp-font-head);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.pp-cta-mark {
    color: var(--pp-accent);
    font-size: 17px;
}

/* --- foot --- */

.pp-foot {
    padding: 20px 2px calc(14px + env(safe-area-inset-bottom)) 2px;
    color: var(--pp-ink-soft);
    text-align: center;
    font-size: 12px;
}

/*
 * Underlined, not only coloured: #635bff on this ground is right at 4.5:1 and
 * colour alone should not be what marks a link.
 */
.pp-foot-link {
    color: var(--pp-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pp-foot-link:focus-visible {
    outline: 2px solid var(--pp-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Read out, not shown: the "opens in a new tab" suffix on outbound links. */
.pp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 560px) {
    .pp-hero-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding-bottom: var(--pp-tab-seat);
    }

    .pp-hero-head {
        grid-column: 1;
        grid-row: 1;
    }

    .pp-hero-art {
        grid-column: 2;
        grid-row: 1;
        max-width: 262px;
        margin: 0 0 0 18px;
    }

    .pp-hero-titles {
        grid-column: 1;
        grid-row: 2;
        margin-top: 20px;
    }

    .pp-cta {
        padding: 15px 18px;
    }

    .pp-badge {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: end;
        margin-top: 10px;
    }

    .pp-hero-product {
        font-size: 33px;
    }

    .pp-hero-title {
        font-size: 22px;
    }

    .pp-identity-value {
        font-size: 23px;
    }

    .pp-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/*
 * Above a phone.
 *
 * The page is built for a phone and stays one column at every width, which is
 * the right call for a scanned record and is not what changes here. What
 * changes is that 640px was the only width it ever had: on a tablet held in
 * landscape, or on the desk monitor a workshop actually reads it on, the
 * passport was a narrow ribbon in a field of grey with type sized for an arm's
 * length it was no longer being read at.
 *
 * So the column grows once - modestly, to 760px, which is still a measure and
 * not a page - and the type grows with it. 900px is the trigger rather than
 * 760px so that the column is comfortably inside the viewport when it widens,
 * instead of touching both edges at the moment it does.
 */
@media (min-width: 900px) {
    .pp-hero-inner,
    .pp-page {
        max-width: 760px;
    }

    .pp-hero-inner {
        padding: 30px 22px var(--pp-tab-seat) 22px;
    }

    .pp-page {
        padding: 0 22px;
    }

    /*
     * Tied to the gutter above: the services panel bleeds to the edge of the
     * column, so its negative margin has to be whatever that padding is.
     */
    .pp-services {
        margin: 0 -22px;
        padding: 28px 26px 30px 26px;
    }

    .pp-cta {
        padding: 17px 22px;
    }

    /* hero gutter and page gutter are both 22px here, so no nudge */
    .pp-badge {
        margin-right: 0;
    }

    .pp-hero-product {
        font-size: 38px;
    }

    .pp-hero-art {
        max-width: 280px;
    }

    .pp-identity {
        padding: 22px;
    }

    .pp-identity-value {
        font-size: 26px;
    }

    .pp-section-head {
        padding: 17px 22px;
    }

    .pp-facts {
        padding: 0 22px 8px 22px;
    }

    .pp-card {
        padding: 18px 22px;
    }
}

/*
 * A phone on its side, and the small laptop that reports the same height.
 *
 * The hero is sized to introduce the page on a portrait screen; in 380px of
 * height it is most of what there is, and the identity - the one thing a
 * scanner came for - starts below the fold. Nothing is hidden, it just stops
 * taking the room.
 */
@media (max-height: 460px) and (min-width: 560px) {
    .pp-hero-inner {
        padding-top: 14px;
        padding-bottom: var(--pp-tab-seat);
    }

    .pp-hero-art {
        max-width: 180px;
    }

    .pp-hero-product {
        font-size: 26px;
    }

    .pp-hero-titles {
        margin-top: 12px;
    }
}

/*
 * Very narrow: a small phone, or a phone with the text size turned up, which
 * is the same problem arriving from the other direction.
 *
 * The identity value is a monospaced 20px string with no break opportunity
 * until overflow-wrap finds one, and at 320px it was the only thing deciding
 * the width of the page. It gives up two points rather than the layout.
 */
@media (max-width: 360px) {
    .pp-page {
        padding: 0 11px;
    }

    .pp-services {
        margin: 0 -11px;
        padding: 20px 16px 22px 16px;
    }

    .pp-cta {
        padding: 12px 14px;
    }

    .pp-badge {
        margin-right: -3px;
    }

    .pp-hero-inner {
        padding: 18px 14px var(--pp-tab-seat) 14px;
    }

    .pp-identity {
        padding: 15px;
    }

    .pp-identity-value {
        font-size: 18px;
    }

    .pp-section-head,
    .pp-facts {
        padding-left: 15px;
        padding-right: 15px;
    }

    .pp-card {
        padding: 14px 15px;
    }
}
