/* Mobile home header and category tiles matched to the supplied reference. */
@media (max-width:1199px) {
    :root {
        --pn-reference-green:#00452f;
        --pn-reference-text:#071e2c;
        --pn-reference-muted:#68727b;
    }

    html,
    body {
        background:#fff !important;
    }

    .pn-home {
        position:relative;
        display:flex;
        isolation:isolate;
        width:100%;
        max-width:430px;
        min-height:auto;
        margin:0 auto;
        padding:0 14px 18px;
        overflow:hidden;
        background:#fff !important;
        color:var(--pn-reference-text);
        font-family:Arial,Helvetica,sans-serif;
    }

    .pn-home::before,
    .pn-home::after {
        content:none;
    }

    .pn-home-header {
        margin:0 -14px;
        padding:0 14px 12px;
        border-radius:0 0 43px 43px;
        background:#023020;
    }

    .pn-home-header,
    .pn-home-header * {
        font-family:Arial,Helvetica,sans-serif;
    }

    .pn-home * {
        box-sizing:border-box;
    }

    .pn-topbar {
        display:flex !important;
        min-height:calc(89px + env(safe-area-inset-top,0px));
        align-items:center;
        justify-content:space-between;
        gap:12px;
        padding-top:env(safe-area-inset-top,0px);
    }

    .pn-brand {
        display:flex;
        flex:1 1 auto;
        min-width:0;
        align-items:center;
        justify-content:flex-start;
        gap:7px;
        text-decoration:none !important;
    }

    .pn-brand-mark {
        position:relative;
        display:block;
        width:clamp(46px,14.8vw,64px);
        height:clamp(46px,14.8vw,64px);
        flex:0 0 clamp(46px,14.8vw,64px);
        overflow:hidden;
        border-radius:50%;
    }

    .pn-brand .pn-brand-mark img {
        position:absolute;
        top:-3%;
        left:-4%;
        display:block;
        width:auto !important;
        max-width:none;
        height:110%;
        object-fit:initial;
        filter:none;
    }

    .pn-brand-copy { display:block; min-width:0; }

    .pn-brand-title {
        display:block;
        color:#fff;
        font-size:clamp(19px,6.1vw,26px);
        line-height:1.1;
        font-weight:800;
        letter-spacing:-1px;
        white-space:nowrap;
    }

    .pn-brand-title strong { color:#fff12b; font-weight:800; }

    .pn-brand-tagline {
        display:block;
        margin-top:5px;
        color:#e6efeb;
        font-size:clamp(7.2px,2.14vw,9.2px);
        line-height:1.3;
        white-space:nowrap;
    }

    .pn-brand-tagline b { margin:0 2px; font-weight:400; }

    .pn-login-button {
        display:flex;
        flex:0 0 auto;
        align-items:center;
        justify-content:center;
        gap:4px;
        width:clamp(88px,26vw,112px);
        min-height:44px;
        padding:10px 7px;
        border-radius:28px;
        background:#ffec21;
        color:#080b05 !important;
        font-size:clamp(13px,3.8vw,17px);
        font-weight:600;
        line-height:1;
        text-decoration:none !important;
    }

    .pn-login-icon { width:20px; height:24px; flex:0 0 20px; fill:currentColor; }

    .pn-login-chevron {
        width:10px;
        height:16px;
        flex:0 0 10px;
        fill:none;
        stroke:currentColor;
        stroke-width:3;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

    .pn-login-button:focus-visible,
    .pn-brand:focus-visible,
    .pn-search button:focus-visible { outline:2px solid #fff12b; outline-offset:3px; }

    .pn-search:focus-within { box-shadow:0 0 0 3px rgba(255,236,33,.65); }

    .pn-home-is-signed-in {
        overflow:visible;
    }

    .pn-account-actions {
        position:relative;
        z-index:20;
        display:flex;
        flex:0 0 auto;
        align-items:center;
        gap:7px;
    }

    .pn-account-notifications {
        position:relative;
        display:grid;
        width:28px;
        height:44px;
        place-items:center;
        color:#fff !important;
        text-decoration:none !important;
    }

    .pn-account-notifications > svg {
        width:24px;
        height:27px;
        fill:currentColor;
        stroke:currentColor;
        stroke-width:1.6;
        stroke-linecap:round;
    }

    .pn-account-badge {
        position:absolute;
        top:0;
        right:-2px;
        display:grid;
        min-width:17px;
        height:17px;
        padding:0 3px;
        place-items:center;
        border-radius:12px;
        background:#f52c50;
        color:#fff;
        font-size:10px;
        font-weight:700;
        line-height:1;
    }

    .pn-account-toggle {
        display:flex;
        min-height:44px;
        padding:0;
        align-items:center;
        gap:5px;
        border:0;
        background:transparent;
        color:#fff12b;
        cursor:pointer;
        list-style:none;
    }

    .pn-account-toggle::-webkit-details-marker { display:none; }
    .pn-account-toggle::marker { content:""; }
    .pn-account-toggle::before,
    .pn-account-toggle::after { content:none; }
    .pn-account-menu:not([open]) .pn-account-dropdown { display:none !important; }

    .pn-account-avatar {
        position:relative;
        display:grid;
        width:40px;
        height:40px;
        flex:0 0 40px;
        overflow:hidden;
        place-items:center;
        border:2px solid #ffec21;
        border-radius:50%;
        background:#e2ede5;
        color:#00452f;
    }

    .pn-account-avatar > svg {
        width:25px;
        height:25px;
        fill:currentColor;
        stroke-width:0;
    }

    .pn-account-avatar img {
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        object-fit:cover;
    }

    .pn-account-avatar img[hidden],
    .pn-account-dropdown[hidden] { display:none !important; }

    .pn-account-chevron {
        width:14px;
        height:14px;
        fill:none;
        stroke:currentColor;
        stroke-width:3;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

    .pn-account-menu[open] .pn-account-chevron { transform:rotate(180deg); }

    .pn-account-dropdown {
        position:absolute;
        z-index:30;
        top:calc(100% + 8px);
        right:0;
        display:block;
        width:min(216px,calc(100vw - 28px));
        padding:8px 12px 5px;
        border:1px solid #e8eeea;
        border-radius:13px;
        background:#fff;
        box-shadow:0 10px 25px rgba(0,45,28,.2);
        color:#111b27;
    }

    .pn-account-dropdown::before {
        content:"";
        position:absolute;
        top:-7px;
        right:17px;
        width:14px;
        height:14px;
        transform:rotate(45deg);
        border-top:1px solid #e8eeea;
        border-left:1px solid #e8eeea;
        background:#fff;
    }

    .pn-account-summary {
        position:relative;
        display:flex;
        min-height:50px;
        padding-bottom:8px;
        align-items:center;
        gap:9px;
    }

    .pn-account-summary .pn-account-avatar { width:32px; height:32px; flex-basis:32px; border:0; }
    .pn-account-summary > div { min-width:0; }
    .pn-account-summary strong,
    .pn-account-summary > div > span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .pn-account-summary strong { color:#111b27; font-size:13px; line-height:1.4; font-weight:700; }
    .pn-account-summary > div > span { margin-top:2px; color:#6d7479; font-size:11px; line-height:1.3; }

    .pn-account-dropdown > a {
        display:flex;
        min-height:39px;
        padding:7px 2px;
        align-items:center;
        gap:12px;
        border-top:1px solid #edf0ed;
        color:#111b27 !important;
        font-size:13px;
        line-height:1.3;
        text-decoration:none !important;
    }

    .pn-account-dropdown > a > svg { width:19px; height:19px; flex:0 0 19px; stroke-width:1.8; }
    .pn-account-dropdown > a:first-of-type > svg { fill:currentColor; stroke-width:0; }
    .pn-account-dropdown > a.pn-account-logout { color:#df2338 !important; }
    .pn-account-dropdown > a:hover { background:#f3f9f5; }
    .pn-account-toggle:focus-visible,
    .pn-account-notifications:focus-visible { outline:2px solid #fff12b; outline-offset:3px; border-radius:5px; }
    .pn-account-dropdown > a:focus-visible { outline:2px solid #00704a; outline-offset:-2px; border-radius:4px; }

    .pn-category-intro.pn-user-greeting {
        grid-template-columns:68px minmax(0,1fr);
        margin-top:7px;
        min-height:88px;
        padding:10px 12px;
    }

    .pn-user-greeting .pn-category-intro-hand { width:68px; font-size:56px; transform:rotate(-10deg); }
    .pn-user-greeting .pn-category-intro-copy h1 { overflow-wrap:anywhere; white-space:normal; color:#071e2c; font-family:Arial,Helvetica,sans-serif; }
    .pn-user-greeting h1 span { color:#00663d; font-family:inherit; }
    .pn-user-greeting p { font-family:Arial,Helvetica,sans-serif; }

    .pn-search {
        position:relative;
        z-index:2;
        left:auto;
        bottom:auto;
        display:flex;
        width:100%;
        height:52px;
        margin:0;
        padding:5px 17px 5px 19px;
        align-items:center;
        transform:none;
        border:0;
        border-radius:32px;
        background:#fff;
        box-shadow:0 8px 20px rgba(0,30,20,.13);
    }

    .pn-search > svg {
        width:25px;
        height:25px;
        flex:0 0 25px;
        stroke:#00684f;
        stroke-width:2;
    }

    .pn-search input {
        min-width:0;
        height:100%;
        flex:1 1 auto;
        padding:0 14px;
        border:0;
        outline:0;
        background:transparent;
        color:#263235;
        font:inherit;
        font-size:18px;
    }

    .pn-search input::placeholder {
        color:#777;
        opacity:1;
    }

    .pn-search .pn-search-tool,
    .pn-search .pn-search-filter {
        position:static;
        display:grid;
        width:34px;
        height:42px;
        flex:0 0 34px;
        padding:0;
        place-items:center;
        border:0;
        border-radius:0;
        background:transparent;
        color:#00684f;
        box-shadow:none;
    }

    .pn-search .pn-search-tool svg,
    .pn-search .pn-search-filter svg {
        width:23px;
        height:23px;
        stroke:currentColor;
        stroke-width:2;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

    .pn-search .pn-search-tool.is-listening {
        border-radius:50%;
        background:#079044;
        color:#fff;
    }

    .pn-search-divider {
        width:1px;
        height:30px;
        flex:0 0 1px;
        margin:0 7px;
        background:#e2e4e5;
    }

    .pn-category-intro {
        display:grid;
        min-height:80px;
        margin-top:18px;
        padding:9px 14px 9px 12px;
        grid-template-columns:76px minmax(0,1fr) 55px;
        align-items:center;
        border-radius:18px;
        background:linear-gradient(105deg,#edffec 0%,#e7fbe9 64%,#e8fae7 100%);
    }

    .pn-category-intro-hand {
        display:block;
        width:76px;
        overflow:visible;
        font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif;
        font-size:55px;
        line-height:1;
        transform:rotate(-5deg);
        transform-origin:center;
    }

    .pn-category-intro-copy {
        min-width:0;
    }

    .pn-category-intro h1 {
        margin:0;
        color:#08683f;
        font-size:21px;
        line-height:1.08;
        font-weight:800;
        letter-spacing:-.035em;
        white-space:nowrap;
    }

    .pn-category-intro p {
        margin:5px 0 0;
        color:#267057;
        font-size:13px;
        line-height:1.23;
        font-weight:500;
    }

    .pn-category-intro-arrow {
        display:block;
        width:55px;
        height:62px;
        overflow:visible;
        fill:none;
        stroke:#07945b;
        stroke-width:8;
        stroke-linecap:round;
        stroke-linejoin:round;
    }

    .pn-category-intro-arrow .pn-arrow-mark {
        stroke-width:4;
    }

    .pn-home > .pn-category-grid {
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:10px 9px;
        margin:11px 0 0;
    }

    .pn-home > .pn-category-grid .pn-category-card {
        position:relative;
        display:flex;
        min-width:0;
        min-height:147px;
        padding:7px 5px 10px;
        flex-direction:column;
        align-items:center;
        justify-content:flex-start;
        overflow:hidden;
        border:1px solid rgba(61,105,125,.09);
        border-radius:18px;
        background:#e7f6ff;
        box-shadow:0 2px 7px rgba(28,56,70,.05);
        color:var(--pn-reference-text) !important;
        text-align:center;
        text-decoration:none !important;
        -webkit-tap-highlight-color:transparent;
    }

    .pn-home > .pn-category-grid .pn-category-card:nth-child(2) {
        background:linear-gradient(145deg,#edfcf5,#e1f8ea);
    }

    .pn-home > .pn-category-grid .pn-category-card:nth-child(3) {
        background:linear-gradient(145deg,#fff9df,#fff1c8);
    }

    .pn-home > .pn-category-grid .pn-category-card:nth-child(4) {
        background:linear-gradient(145deg,#f5f1ff,#ede6ff);
    }

    .pn-home > .pn-category-grid .pn-category-card:nth-child(5) {
        background:linear-gradient(145deg,#fff2ed,#ffe6df);
    }

    .pn-home > .pn-category-grid .pn-category-card:nth-child(6) {
        background:linear-gradient(145deg,#e9fbfc,#d8f7f6);
    }

    /* Keep visible breathing room below the final card row in the mobile app. */
    .pn-home > .pn-category-grid .pn-category-card:nth-child(n+4) {
        margin-bottom:28px;
    }

    .pn-home > .pn-category-grid .pn-category-card img {
        display:block;
        width:100%;
        height:76px;
        margin:-1px auto 0;
        object-fit:contain;
        filter:drop-shadow(0 4px 4px rgba(20,53,43,.12));
    }

    .pn-home > .pn-category-grid .pn-card-title {
        display:block;
        width:100%;
        margin-top:0;
        font-size:14px !important;
        line-height:1.13 !important;
        font-weight:800 !important;
        letter-spacing:-.03em;
        white-space:nowrap !important;
        text-align:center !important;
    }

    .pn-home > .pn-category-grid .pn-card-copy {
        display:block;
        width:100%;
        margin-top:5px;
        color:var(--pn-reference-muted);
        font-size:12px !important;
        line-height:1.16 !important;
        font-weight:500 !important;
        white-space:normal !important;
        text-align:center !important;
    }

    .pn-home > .pn-category-grid .pn-badge {
        position:absolute;
        z-index:2;
        top:6px;
        right:6px;
        min-width:35px;
        height:22px;
        padding:0 6px;
        border:2px solid #fff;
        border-radius:12px;
        background:#ef1760;
        box-shadow:0 3px 8px rgba(190,20,67,.22);
        color:#fff;
        font-size:10px;
        line-height:18px;
        font-weight:800;
        text-align:center;
    }
}

@media (max-width:370px) {
    .pn-home {
        padding-right:10px;
        padding-left:10px;
    }

    .pn-home-header {
        margin-right:-10px;
        margin-left:-10px;
        padding-right:10px;
        padding-left:10px;
    }

    .pn-topbar { gap:8px; }

    .pn-account-actions { gap:3px; }
    .pn-account-avatar { width:36px; height:36px; flex-basis:36px; }
    .pn-account-toggle { gap:3px; }

    .pn-search { padding-right:12px; padding-left:15px; }

    .pn-search input { padding-right:5px; padding-left:10px; font-size:16px; }

    .pn-category-intro {
        padding-right:8px;
        padding-left:7px;
        grid-template-columns:67px minmax(0,1fr) 47px;
    }

    .pn-category-intro-hand {
        width:67px;
        font-size:49px;
    }

    .pn-category-intro h1 {
        font-size:18px;
    }

    .pn-category-intro p {
        font-size:11.5px;
    }

    .pn-category-intro.pn-user-greeting { grid-template-columns:59px minmax(0,1fr); }
    .pn-user-greeting .pn-category-intro-hand { width:59px; }

    .pn-category-intro-arrow {
        width:46px;
    }

    .pn-home > .pn-category-grid {
        gap:8px 7px;
    }

    .pn-home > .pn-category-grid .pn-category-card {
        min-height:140px;
        padding-right:3px;
        padding-left:3px;
    }

    .pn-home > .pn-category-grid .pn-category-card img {
        height:71px;
    }

    .pn-home > .pn-category-grid .pn-card-title {
        font-size:12.5px !important;
    }

    .pn-home > .pn-category-grid .pn-card-copy {
        font-size:11px !important;
    }
}
