/* ==========================================================================
   PiglinHost modern layer
   Loaded after main.css on every page (via _build/partials/head-assets.html).
   Refines the template rather than replacing it: tokens, header, menus,
   cards, pricing, FAQ, footer and mobile spacing.
   ========================================================================== */

:root {
    --ph-blue: #0948b3;
    --ph-blue-600: #0840a0;
    --ph-blue-500: #0145c6;
    --ph-navy: #071a3d;
    --ph-navy-2: #0b2556;
    --ph-orange: #f67a3c;
    --ph-orange-600: #e8662a;
    /* Accessible orange for anything carrying white text/icons (4.75:1 with #fff, WCAG AA) */
    --ph-orange-btn: #c74a12;
    --ph-orange-btn-hover: #a93d0d;
    --ph-green: #22a55b;
    --ph-ink: #0f1f3d;
    --ph-muted: #5b6b86;
    --ph-line: #e3e9f3;
    --ph-soft: #f4f7fc;
    --ph-radius: 18px;
    --ph-radius-sm: 12px;
    --ph-shadow: 0 1px 2px rgba(15, 31, 61, .04), 0 8px 24px -12px rgba(15, 31, 61, .18);
    --ph-shadow-lg: 0 30px 60px -30px rgba(9, 72, 179, .45);
    --ph-ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
body { color: var(--ph-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
p { color: var(--ph-muted); }
.text-white p, .gradient-bg p, .primary-bg p { color: rgba(255, 255, 255, .86); }
h1, h2, h3, .h1, .h2, .h3 { letter-spacing: -.02em; }
h1, .h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.1; font-weight: 800; }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.18; font-weight: 800; }

:focus-visible { outline: 3px solid var(--ph-orange); outline-offset: 2px; border-radius: 6px; }

.ph-skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 10000;
    background: #fff; color: var(--ph-blue); padding: .6rem 1rem; border-radius: 10px; font-weight: 700;
    box-shadow: var(--ph-shadow);
}
.ph-skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--ph-radius-sm); font-weight: 650; transition: transform .15s var(--ph-ease), box-shadow .2s var(--ph-ease), background-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .85rem 1.5rem; }
.btn-tertiary { background: var(--ph-orange-btn); border-color: var(--ph-orange-btn); color: #fff; }
.btn-tertiary:hover, .btn-tertiary:focus { background: var(--ph-orange-btn-hover); border-color: var(--ph-orange-btn-hover); color: #fff; box-shadow: 0 10px 24px -10px rgba(199, 74, 18, .8); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(9, 72, 179, .7); }
.btn-ghost-light { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost-light:hover, .btn-ghost-light:focus { color: #fff; background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); }

/* ---------- Header ---------- */
.main-header-menu-wrap { transition: background .25s, box-shadow .25s, padding .25s; }
.main-header-menu-wrap.affix {
    background: rgba(7, 26, 61, .82) !important;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
    animation: none;
}
.header-nav .navbar-brand img { height: 44px; width: auto; }
.main-header-menu-wrap.affix .navbar-brand img { height: 38px; }
.custom-nav-link { font-weight: 600; letter-spacing: .005em; }
.navbar-toggler { color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; padding: .45rem .7rem; min-width: 44px; min-height: 44px; }

@media (min-width: 768px) and (max-width: 1199.98px) {
    .header-nav .navbar-brand img { height: 36px; }
    .main-navbar-nav .custom-nav-link { padding-left: .5rem !important; padding-right: .5rem !important; font-size: .9rem; }
    .header-nav-last-item .btn { padding: .45rem .8rem; font-size: .88rem; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-navbar-nav > .custom-nav-item:first-child { display: none; } /* "Home": the logo already links home */
    .header-nav-last-item .btn .fa-user { display: none; }
}

/* Mega menus */
.ph-menu { padding: .6rem !important; border-radius: var(--ph-radius) !important; border: 1px solid var(--ph-line); box-shadow: 0 24px 60px -20px rgba(7, 26, 61, .35) !important; background: #fff; }
.ph-menu-item { display: flex; gap: .85rem; align-items: flex-start; padding: .75rem; border-radius: 12px; color: var(--ph-ink); text-decoration: none; transition: background .15s; }
.ph-menu-item:hover, .ph-menu-item:focus { background: var(--ph-soft); color: var(--ph-ink); }
.ph-menu-item strong { display: block; font-size: .95rem; font-weight: 700; color: var(--ph-ink); }
.ph-menu-item small { display: block; color: var(--ph-muted); font-size: .8rem; line-height: 1.4; margin-top: .1rem; }
.ph-menu-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(9, 72, 179, .1); color: var(--ph-blue); font-size: 1rem; }
.ph-menu-icon--alt { background: rgba(1, 69, 198, .1); color: #0145c6; }
.ph-menu-icon--accent { background: rgba(246, 122, 60, .14); color: var(--ph-orange-600); }
.ph-menu-icon--green { background: rgba(34, 165, 91, .14); color: #167a41; }
.ph-menu-icon--discord { background: rgba(88, 101, 242, .14); color: #5865f2; }
.ph-menu-games { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; padding: .35rem .25rem .25rem; border-top: 1px solid var(--ph-line); margin-top: .35rem; }
.ph-menu-games a { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border-radius: 10px; color: var(--ph-ink); font-size: .88rem; font-weight: 600; text-decoration: none; }
.ph-menu-games a:hover, .ph-menu-games a:focus { background: var(--ph-soft); color: var(--ph-blue); }
.ph-menu-games img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }

/* Mobile off-canvas menu */
.ph-offcanvas { width: min(88vw, 360px) !important; border-right: 0; }
.ph-offcanvas .offcanvas-body { display: flex; flex-direction: column; padding: .75rem 1rem 1.25rem; }
.ph-off-title { margin: 1rem .5rem .35rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ph-muted); }
.ph-off-title:first-child { margin-top: .25rem; }
.ph-off-link { display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: .55rem .6rem; border-radius: 12px; color: var(--ph-ink); font-weight: 600; text-decoration: none; }
.ph-off-link i { width: 1.25rem; text-align: center; color: var(--ph-blue); }
.ph-off-link:hover, .ph-off-link:focus { background: var(--ph-soft); color: var(--ph-blue); }
.ph-off-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .25rem .5rem .25rem 2.6rem; }
.ph-off-chips a { padding: .4rem .7rem; border-radius: 99px; background: var(--ph-soft); color: var(--ph-ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.ph-off-actions { display: grid; gap: .6rem; margin-top: auto; padding-top: 1.25rem; }
.ph-off-actions .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; }

/* ---------- Hero & coloured bands ---------- */
.gradient-bg { position: relative; isolation: isolate; overflow: hidden; }
.gradient-bg::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, .12), transparent 70%),
        radial-gradient(500px 320px at 10% 110%, rgba(246, 122, 60, .22), transparent 70%);
}
footer.gradient-bg::before { display: none; }
.hero-content-wrap h1 { margin-bottom: 1.25rem; }
.gradient-bg .tech-feature-list li, .primary-bg .tech-feature-list li { color: rgba(255, 255, 255, .9); }

/* Mobile: the map's always-on location labels overlap, so show dots only */
@media (max-width: 767.98px) {
    .network-map-wrap .tooltip { display: none !important; }
}
.primary-bg { background: linear-gradient(110deg, var(--ph-blue-600), var(--ph-blue-500)) !important; }

.ph-hero-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.ph-hero-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.ph-hero-trust i { color: #ffc24a; }

/* ---------- Cards ---------- */
.features-box {
    border-radius: var(--ph-radius); border: 1px solid var(--ph-line); box-shadow: var(--ph-shadow);
    height: 100%; transition: transform .25s var(--ph-ease), box-shadow .25s var(--ph-ease), border-color .25s;
}
.features-box:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow-lg); border-color: rgba(9, 72, 179, .25); }
.features-box-icon span {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    background: rgba(9, 72, 179, .09); font-size: 1.35rem !important;
}
.features-box h5, .features-box h3 { font-weight: 750; font-size: 1.08rem; color: var(--ph-ink); }

.popular-price.pricing-new-wrapper {
    border-radius: 22px !important; border-color: var(--ph-line) !important; box-shadow: var(--ph-shadow) !important;
    transition: transform .25s var(--ph-ease), box-shadow .25s var(--ph-ease), border-color .25s; height: calc(100% - 1.5rem);
}
.popular-price.pricing-new-wrapper:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow-lg) !important; border-color: rgba(9, 72, 179, .35) !important; }
.pricing-feature-list-2 li { padding: .3rem 0; color: var(--ph-muted); }

.single-game-hosting { border-radius: var(--ph-radius); overflow: hidden; box-shadow: var(--ph-shadow); transition: transform .25s var(--ph-ease), box-shadow .25s; }
.single-game-hosting:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow-lg); }

/* ---------- FAQ ---------- */
.faq-wrap .accordion-item { border: 1px solid var(--ph-line) !important; border-radius: 14px !important; margin-bottom: .75rem; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 31, 61, .04); }
.faq-wrap .accordion-button { font-weight: 700; color: var(--ph-ink); padding: 1.1rem 1.25rem; font-size: 1rem; }
.faq-wrap .accordion-button:not(.collapsed) { background: var(--ph-soft); color: var(--ph-blue); box-shadow: none; }
.faq-wrap .accordion-body { color: var(--ph-muted); padding: 0 1.25rem 1.2rem; background: var(--ph-soft); }

/* ---------- Network map ---------- */
.network-map-wrap ul { margin: 0; padding: 0; }
.network-map-wrap ul li:empty { display: none; }

/* ---------- Footer ---------- */
.ph-footer { background: radial-gradient(900px 400px at 90% -10%, rgba(1, 69, 198, .55), transparent 60%), linear-gradient(180deg, var(--ph-navy-2), var(--ph-navy)); color: rgba(255, 255, 255, .78); padding-top: 4rem; }
.ph-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .15s; }
.ph-footer a:hover, .ph-footer a:focus { color: #fff; }
.ph-footer-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 2rem; margin-bottom: 3.5rem; border-radius: 24px;
    background: linear-gradient(110deg, var(--ph-blue-600), var(--ph-blue-500));
    box-shadow: 0 30px 60px -30px rgba(1, 69, 198, .9); position: relative; overflow: hidden;
}
.ph-footer-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(246, 122, 60, .25); filter: blur(30px); }
.ph-footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); margin: 0 0 .35rem; }
.ph-footer-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.ph-footer-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; z-index: 1; }
.ph-footer-about { color: rgba(255, 255, 255, .7); max-width: 30rem; font-size: .95rem; }
.ph-footer-h { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.ph-footer-cols ul { list-style: none; padding: 0; margin: 0; }
.ph-footer-cols li { margin-bottom: .55rem; font-size: .93rem; }
.ph-social { display: flex; gap: .5rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.ph-footer .ph-social li { margin: 0; padding: 0; line-height: 1; }
.ph-footer .ph-social a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 1.05rem; line-height: 1; }
.ph-footer .ph-social a i { margin: 0; line-height: 1; }
.ph-footer .ph-social a:hover, .ph-footer .ph-social a:focus { background: var(--ph-orange-btn); color: #fff; }
.ph-footer-bottom { margin-top: 3rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.ph-footer-bottom .container { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: flex-start; }
.ph-footer-bottom p { color: rgba(255, 255, 255, .6); margin: 0; max-width: 46rem; }
.ph-footer-bottom ul { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.ph-footer-bottom .ph-footer-disclaimer { flex-basis: 100%; font-size: .75rem; color: rgba(255, 255, 255, .45); }

.scroll-top { border: 0; width: 46px; height: 46px; border-radius: 14px !important; box-shadow: var(--ph-shadow); }

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    .ptb-100 { padding-top: 64px !important; padding-bottom: 64px !important; }
    .ptb-120 { padding-top: 110px !important; padding-bottom: 64px !important; }
    .ptb-60 { padding-top: 48px !important; padding-bottom: 48px !important; }
    .section-heading.mb-5 { margin-bottom: 1.5rem !important; }

    /* Feature cards: compact icon-left rows instead of six full-screen cards */
    .features-box { display: flex; gap: 1rem; padding: 1.15rem !important; }
    .features-box .features-box-icon { margin: 0 !important; }
    .features-box-icon span { width: 44px; height: 44px; font-size: 1.1rem !important; }
    .features-box h5, .features-box h3 { font-size: 1rem; margin-bottom: .3rem; }
    .features-box p { font-size: .92rem; margin: 0; }
    .feature-section .col-md-6.mt-4 { margin-top: .75rem !important; }

    .popular-price.pricing-new-wrapper { padding: 1.5rem !important; }
    .gradient-bg .img-wrap img { max-height: 260px; width: auto; margin: 1rem auto 0; display: block; }

    .ph-footer { padding-top: 2.5rem; }
    .ph-footer-cta { padding: 1.5rem; margin-bottom: 2.5rem; }
    .ph-footer-cta-actions, .ph-footer-cta-actions .btn { width: 100%; }
    .ph-footer-bottom ul { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Locations + ping widget (_build/partials/locations.html) ---------- */
.ph-loc-card {
    display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 2rem; align-items: center;
    margin-top: 2rem; padding: 1.75rem; background: #fff; border: 1px solid var(--ph-line);
    border-radius: 24px; box-shadow: var(--ph-shadow);
}
.ph-loc-h { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ph-muted); margin-bottom: .75rem; }
.ph-loc-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.ph-loc-list li {
    display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: .75rem;
    padding: .65rem .8rem; border: 1px solid var(--ph-line); border-radius: 14px; min-height: 56px;
}
.ph-loc-list li.is-best { border-color: rgba(22, 122, 65, .5); background: linear-gradient(90deg, rgba(34, 165, 91, .08), transparent 70%); }
.ph-loc-code { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--ph-soft); font-size: .72rem; font-weight: 800; color: var(--ph-ink); }
.ph-loc-name { font-weight: 700; color: var(--ph-ink); line-height: 1.2; }
.ph-loc-name small { display: block; font-weight: 500; color: var(--ph-muted); font-size: .8rem; margin-top: .15rem; }
.ph-loc-best { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 6px; font-size: .68rem; font-weight: 800; background: rgba(22, 122, 65, .12); color: #146c3a; vertical-align: 2px; }
.ph-loc-ms { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ph-ink); white-space: nowrap; }
.ph-loc-list li.is-good .ph-loc-ms { color: #146c3a; }
.ph-loc-list li.is-ok .ph-loc-ms { color: #8a5d00; }
.ph-loc-list li.is-bad .ph-loc-ms { color: #b42318; }
.ph-loc-note { font-size: .85rem; margin-bottom: 1rem; }
.ph-loc-map { position: relative; }
.ph-loc-map img { width: 100%; height: auto; display: block; }
.ph-loc-dot { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--ph-blue); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.ph-loc-dot.is-good { background: #22a55b; } .ph-loc-dot.is-ok { background: #e8a10c; } .ph-loc-dot.is-bad { background: #e5484d; }
.ph-loc-dot.is-best::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #22a55b; animation: ph-ring 1.8s infinite; }
@keyframes ph-ring { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.6); } }
@media (max-width: 991.98px) {
    .ph-loc-card { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
    .ph-loc-map { order: -1; }
}

/* ---------- WCAG 2.2 AA fixes from the axe-core audit ---------- */
/* Template greys/ambers that failed 4.5:1 on white */
.pricing-new-wrapper li p, .u-header__promo-text { color: var(--ph-muted); }
.text-warning { color: #8a5d00 !important; }
.text-muted { color: var(--ph-muted) !important; }
/* Links inside running text must not rely on colour alone (1.4.1) */
.main p a:not(.btn), .main li a:not(.btn):not(.nav-link), .section-heading a:not(.btn), .support-cta a:not(.btn), .accordion-body a, .a11y-doc a {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.main p a:not(.btn):hover, .main li a:not(.btn):not(.nav-link):hover { text-decoration-thickness: 2px; }

/* ---------- "How much RAM do I need?" guide (_build/partials/ram-guide.html) ---------- */
.ph-ram-card {
    display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 2rem; align-items: start;
    margin-top: 2rem; padding: 1.75rem; background: #fff; border: 1px solid var(--ph-line); border-radius: 24px; box-shadow: var(--ph-shadow);
}
.ph-ram-q { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.ph-ram-q legend { font-size: 1rem; font-weight: 750; color: var(--ph-ink); margin-bottom: .6rem; float: none; width: auto; }
.ph-ram-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.ph-ram-opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-ram-opts--players { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ph-ram-opts label { position: relative; margin: 0; cursor: pointer; }
.ph-ram-opts input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.ph-ram-opts span {
    display: flex; flex-direction: column; justify-content: center; min-height: 48px; height: 100%; padding: .55rem .8rem;
    border: 1.5px solid var(--ph-line); border-radius: 12px; font-weight: 650; color: var(--ph-ink); text-align: center;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ph-ram-opts small { display: block; font-weight: 500; font-size: .78rem; color: var(--ph-muted); margin-top: .1rem; }
.ph-ram-opts label:hover span { border-color: rgba(9, 72, 179, .45); }
.ph-ram-opts input:checked + span { border-color: var(--ph-blue); background: rgba(9, 72, 179, .06); box-shadow: inset 0 0 0 1px var(--ph-blue); }
.ph-ram-opts input:focus-visible + span { outline: 3px solid var(--ph-orange-btn); outline-offset: 2px; }
.ph-ram-result { position: sticky; top: 100px; padding: 1.5rem; border-radius: 18px; background: linear-gradient(160deg, var(--ph-blue-600), var(--ph-blue-500)); color: #fff; }
.ph-ram-result p { color: rgba(255, 255, 255, .88); }
.ph-ram-kicker { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.ph-ram-plan { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.ph-ram-plan img { width: 56px; height: 56px; image-rendering: pixelated; }
.ph-ram-plan strong { display: block; font-size: 1.35rem; color: #fff; line-height: 1.2; }
.ph-ram-plan span span { font-weight: 600; color: rgba(255, 255, 255, .88); }
.ph-ram-why { font-size: .92rem; min-height: 3em; }
.ph-ram-small { font-size: .85rem; margin: .85rem 0 0; }
.ph-ram-result a:not(.btn) { color: #fff; text-decoration: underline; }
.ph-ram-table { margin-top: 1.5rem; }
.ph-ram-table summary { cursor: pointer; font-weight: 700; color: var(--ph-blue); padding: .5rem 0; min-height: 44px; display: flex; align-items: center; }
.ph-ram-table caption { caption-side: top; color: var(--ph-muted); font-size: .9rem; }
.ph-ram-table th[scope="row"] { font-weight: 650; color: var(--ph-ink); }
@media (max-width: 991.98px) {
    .ph-ram-card { grid-template-columns: 1fr; padding: 1.25rem; }
    .ph-ram-result { position: static; }
}
@media (max-width: 575.98px) {
    .ph-ram-opts--players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ph-ram-opts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Long-form documents (terms, policies) ---------- */
.ph-doc { max-width: 52rem; margin: 0 auto; }
.ph-doc h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin: 2.5rem 0 .75rem; scroll-margin-top: 100px; }
.ph-doc p, .ph-doc li { color: #3d4b63; line-height: 1.75; }
.ph-doc ul, .ph-doc ol { padding-left: 1.25rem; }
.ph-doc li { margin-bottom: .35rem; }
.ph-doc-meta { font-size: .9rem; color: var(--ph-muted); }
.ph-doc-summary { padding: 1.5rem 1.75rem; border-radius: 18px; background: var(--ph-soft); border: 1px solid var(--ph-line); margin: 1.5rem 0; }
.ph-doc-summary h2 { margin-top: 0; }
.ph-doc-toc { padding: 1.25rem 1.75rem; border: 1px solid var(--ph-line); border-radius: 18px; margin-bottom: 1rem; }
.ph-doc-toc h2 { font-size: 1rem; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ph-muted); }
.ph-doc-toc ol { columns: 2; column-gap: 2rem; margin: 0; }
.ph-doc-toc li { break-inside: avoid; margin-bottom: .2rem; }
@media (max-width: 767.98px) { .ph-doc-toc ol { columns: 1; } .ph-doc-summary, .ph-doc-toc { padding: 1.1rem 1.15rem; } }

/* ---------- Site-wide sale bar (assets/js/promo.js) ---------- */
.promo-bar { position: relative; background: #0b0f1a; color: #fff; font-size: 1rem; }
.promo-bar--bf26, .promo-bar--bf2026 { background: linear-gradient(90deg, #07090f 0%, #241006 55%, #4a1a04 100%); box-shadow: inset 0 -2px 0 #ff8a2a; }
.promo-bar--xmas26 { background: linear-gradient(90deg, #7d0f1c, #b3172a); box-shadow: inset 0 -2px 0 #fff; }
.promo-bar-inner { display: flex; align-items: center; justify-content: center; gap: .75rem; min-height: 56px; padding-top: .5rem; padding-bottom: .5rem; padding-right: 44px; }
.promo-bar p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin: 0; color: #fff; line-height: 1.3; }
.promo-bar-text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .75rem; }
.promo-bar-badge { padding: .2rem .55rem; border-radius: 6px; background: #ff8a2a; color: #1a0b02; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.promo-bar--xmas26 .promo-bar-badge { background: #fff; color: #8f1220; }
.promo-bar-head { font-size: 1.05rem; }
.promo-bar-pct { color: #ffb15c; font-size: 1.3rem; font-weight: 800; }
.promo-bar--xmas26 .promo-bar-pct { color: #fff; }
.promo-bar-clock { font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.promo-bar a.promo-bar-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem 1.15rem; border-radius: 10px; background: #fff; color: #0b0f1a; font-weight: 800; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 2px rgba(255, 138, 42, .55), 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s, box-shadow .15s; }
.promo-bar a.promo-bar-btn::after { content: "\2192"; color: #e8590c; font-weight: 800; }
.promo-bar a.promo-bar-btn:hover, .promo-bar a.promo-bar-btn:focus-visible { background: #fff; color: #0b0f1a; transform: translateY(-1px); box-shadow: 0 0 0 3px #ff8a2a, 0 6px 18px rgba(0, 0, 0, .35); }
.promo-bar a.promo-bar-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.promo-bar--xmas26 a.promo-bar-btn { color: #8f1220; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.promo-bar--xmas26 a.promo-bar-btn::after { color: #b3172a; }
.promo-bar-close { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, .55); font-size: 1.1rem; line-height: 1; }
.promo-bar-close:hover, .promo-bar-close:focus-visible { background: rgba(255, 255, 255, .12); color: #fff; }
.has-promo-bar #main-content > section:first-of-type { padding-top: calc(130px + var(--promo-h, 40px)) !important; }
@media (max-width: 767.98px) {
    .promo-bar-inner { gap: .5rem; padding-left: 12px; padding-right: 36px; }
    .promo-bar p { flex-wrap: nowrap; justify-content: space-between; gap: .6rem; width: 100%; }
    .promo-bar-text { justify-content: flex-start; gap: .2rem .45rem; text-align: left; }
    .promo-bar-badge { font-size: .68rem; padding: .15rem .4rem; }
    .promo-bar-head { font-size: .85rem; line-height: 1.25; }
    .promo-bar-pct { font-size: 1.05rem; }
    .promo-bar-clock { display: none; }
    .promo-bar a.promo-bar-btn { min-height: 44px; padding: .35rem .8rem; font-size: .88rem; flex: none; }
    .promo-bar-close { top: 6px; right: 4px; transform: none; width: 26px; height: 26px; font-size: 1rem; }
    .has-promo-bar #main-content > section:first-of-type { padding-top: calc(120px + var(--promo-h, 40px)) !important; }
    @media (prefers-reduced-motion: reduce) { .promo-bar a.promo-bar-btn { transition: none; } }
}

/* Locations widget: flags + live ping labels on the map */
.ph-loc-flag { width: 28px; height: 21px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 31, 61, .12); }
.ph-loc-list li { grid-template-columns: 28px 1fr auto; }
.ph-loc-tag {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
    padding: .25rem .55rem; border-radius: 999px; background: #fff; color: var(--ph-ink);
    font-size: .78rem; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(15, 31, 61, .35); border: 1px solid var(--ph-line);
}
.ph-loc-tag img { width: 16px; height: 12px; border-radius: 2px; }
.ph-loc-tag b { font-variant-numeric: tabular-nums; }
.ph-loc-tag.is-good b { color: #146c3a; } .ph-loc-tag.is-ok b { color: #8a5d00; } .ph-loc-tag.is-bad b { color: #b42318; }
.ph-loc-tag.is-best { border-color: #22a55b; box-shadow: 0 0 0 2px rgba(34, 165, 91, .35), 0 6px 18px -6px rgba(15, 31, 61, .35); }
.ph-loc-tag--up { transform: translate(-50%, -100%); }
.ph-loc-tag--down { transform: translate(-50%, 0); }
.ph-loc-tag--right { transform: translate(0, -50%); }
.ph-loc-tag--left { transform: translate(-100%, -50%); }
@media (max-width: 767.98px) { .ph-loc-tag { display: none; } } /* the list shows the values on small screens */

/* ---------- Language picker (assets/js/i18n.js) ---------- */
.ph-lang { margin-top: 1.25rem; }
.ph-lang-label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: .5rem; }
.lang-switcher { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.lang-switcher a { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .65rem; border-radius: 10px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); font-size: .85rem; font-weight: 600; text-decoration: none; }
.lang-switcher a:hover, .lang-switcher a:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; }
.lang-switcher a[aria-current="true"] { background: #fff; color: var(--ph-ink); }
.lang-switcher img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; }
/* Footer link lists and the language picker are navigation, not running text: no underline needed. */
.main .ph-footer a, .ph-footer a { text-decoration: none; }
.ph-footer a:hover, .ph-footer a:focus-visible { text-decoration: underline; text-underline-offset: .18em; }
.ph-footer .lang-switcher a:hover, .ph-footer .lang-switcher a:focus-visible { text-decoration: none; }

/* ---------- Homepage control panel showcase (_build/gen-panel-section.js) ---------- */
.ps { padding: 90px 0; }
.ps-head { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.ps-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.75rem; }
.ps-tab {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .6rem 1rem;
    border: 1.5px solid var(--ph-line); border-radius: 14px; background: #fff; color: var(--ph-ink); font-weight: 700; font-size: .95rem;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ps-tab i { color: var(--ph-blue); }
.ps-tab:hover { border-color: rgba(9, 72, 179, .45); }
.ps-tab[aria-selected="true"] { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; box-shadow: 0 12px 24px -14px rgba(9, 72, 179, .8); }
.ps-tab[aria-selected="true"] i { color: #fff; }
.ps-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; padding: 2rem; background: #fff; border: 1px solid var(--ph-line); border-radius: 24px; box-shadow: var(--ph-shadow); }
.ps-panel[hidden] { display: none; }
.ps-copy h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: .75rem; }
.ps-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.ps-list li { position: relative; padding-left: 1.75rem; color: var(--ph-muted); }
.ps-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(34, 165, 91, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23146c3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .8rem no-repeat; }
.ps-shot { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(15, 31, 61, .45); }
.ps-mock { margin: 0; }
.ps-mock-body { padding: 1rem; }
.ps-caption { margin: .6rem 0 0; font-size: .8rem; color: var(--ph-muted); text-align: center; }
@media (max-width: 991.98px) {
    .ps { padding: 64px 0; }
    .ps-panel { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; }
    .ps-visual { order: -1; }
    .ps-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
    .ps-tab { flex: 0 0 auto; }
}

/* ---------- Homepage PiglinPanel monitor mockup (_build/gen-panel-section.js) ---------- */
.pm { padding: 90px 0; }
.pm-head { max-width: 46rem; margin: 0 auto 1.75rem; text-align: center; }
.pm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 0 auto 2rem; max-width: 1100px; }
.pm-tab {
    display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .8rem;
    border: 1.5px solid var(--ph-line); border-radius: 999px; background: #fff; color: var(--ph-ink); font-weight: 650; font-size: .88rem;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.pm-tab i { color: var(--ph-blue); font-size: .85rem; }
.pm-tab:hover { border-color: rgba(9, 72, 179, .45); }
.pm-tab[aria-selected="true"] { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; box-shadow: 0 10px 20px -12px rgba(9, 72, 179, .8); }
.pm-tab[aria-selected="true"] i { color: #fff; }

.pm-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.pm-monitor { position: relative; }
.pm-bezel { position: relative; padding: 14px; border-radius: 22px 22px 6px 6px; background: linear-gradient(180deg, #1c2233, #10141f); box-shadow: 0 40px 80px -40px rgba(7, 26, 61, .65), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pm-screen { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #0b0d2a; cursor: zoom-in; }
.pm-screen img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 740; object-fit: cover; transition: opacity .2s ease; }
.pm-screen img.is-swapping { opacity: .35; }
.pm-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(7, 26, 61, .8); color: #fff; opacity: 0; transition: opacity .2s; }
.pm-screen:hover .pm-zoom, .pm-screen:focus-visible .pm-zoom { opacity: 1; }
.pm-screen:focus-visible { outline: 3px solid var(--ph-orange-btn); outline-offset: 3px; }
.pm-chin { height: 26px; margin: 0 2px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #d9dee8, #b9c1cf); display: grid; place-items: center; }
.pm-chin span { width: 34px; height: 5px; border-radius: 99px; background: rgba(15, 31, 61, .25); }
.pm-stand { width: 22%; height: 46px; margin: 0 auto; background: linear-gradient(180deg, #c3cad6, #a9b2c2); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); border-radius: 0 0 6px 6px; }
.pm-stand::after { content: ""; display: block; height: 8px; width: 160%; margin: 46px 0 0 -30%; border-radius: 99px; background: rgba(15, 31, 61, .18); filter: blur(4px); }

.pm-caption { text-align: center; max-width: 40rem; margin: .5rem auto 0; min-height: 7.5rem; }
.pm-caption h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.pm-expand { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-top: .5rem; padding: .5rem 1rem; border: 1.5px solid var(--ph-line); border-radius: 12px; background: #fff; color: var(--ph-blue); font-weight: 700; }
.pm-expand:hover { border-color: var(--ph-blue); }
.pm-note { text-align: center; font-size: .8rem; margin: 1rem 0 0; }

/* Viewer */
.pm-modal { width: min(96vw, 1500px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #0b0f1a; color: #fff; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.pm-modal::backdrop { background: rgba(5, 10, 25, .82); backdrop-filter: blur(4px); }
.pm-modal-inner { display: flex; flex-direction: column; max-height: 94vh; }
.pm-modal-bar { display: flex; align-items: center; gap: 1rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pm-modal-bar h3 { flex: 1; margin: 0; font-size: 1.05rem; color: #fff; }
.pm-modal-count { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.pm-modal-view { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1; padding: 1rem 4rem; background: #070a14; }
.pm-modal-img { display: block; max-width: 100%; max-height: calc(94vh - 160px); width: auto; height: auto; border-radius: 8px; }
.pm-modal-btn { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.05rem; }
.pm-modal-btn:hover, .pm-modal-btn:focus-visible { background: rgba(255, 255, 255, .22); }
.pm-modal-prev, .pm-modal-next { position: absolute; top: 50%; transform: translateY(-50%); }
.pm-modal-prev { left: .75rem; } .pm-modal-next { right: .75rem; }
.pm-modal-desc { margin: 0; padding: .85rem 1.25rem 1.1rem; color: rgba(255, 255, 255, .82); font-size: .95rem; }
html.pm-modal-open { overflow: hidden; }

@media (max-width: 767.98px) {
    .pm { padding: 60px 0; }
    .pm-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: calc(var(--bs-gutter-x, 1.5rem) * -.5); margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) .5rem; scrollbar-width: thin; }
    .pm-tab { flex: 0 0 auto; }
    .pm-bezel { padding: 7px; border-radius: 12px 12px 4px 4px; }
    .pm-chin { height: 14px; } .pm-chin span { display: none; }
    .pm-stand { height: 24px; } .pm-stand::after { margin-top: 24px; }
    .pm-zoom { opacity: 1; width: 34px; height: 34px; right: 8px; bottom: 8px; }
    .pm-modal { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
    .pm-modal-inner { max-height: 100vh; height: 100%; }
    .pm-modal-view { padding: .5rem; }
    .pm-modal-img { max-height: calc(100vh - 190px); }
    .pm-modal-prev, .pm-modal-next { top: auto; bottom: .5rem; transform: none; background: rgba(0, 0, 0, .55); }
}
@media (prefers-reduced-motion: reduce) { .pm-screen img { transition: none; } }
/* Viewer zoom: full-height image you can pan */
.pm-modal-img { cursor: zoom-in; }
.pm-modal-view.is-zoomed { overflow: auto; justify-content: flex-start; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.pm-modal-view.is-zoomed .pm-modal-img { max-width: none; max-height: none; height: calc(94vh - 160px); width: auto; cursor: zoom-out; }
.pm-modal-btn[aria-pressed="true"] { background: var(--ph-blue); }
@media (max-width: 767.98px) {
    .pm-modal-view.is-zoomed .pm-modal-img { height: calc(100vh - 190px); }
    .pm-modal-view.is-zoomed .pm-modal-prev, .pm-modal-view.is-zoomed .pm-modal-next { display: none; }
}

/* iMac-style monitor: screen, chin and stand as one piece (overrides the earlier monitor styles) */
.pm-imac { max-width: 1060px; margin: 0 auto; }
.pm-imac .pm-body { position: relative; z-index: 1; border-radius: 22px; overflow: hidden; background: #f4f6fa; box-shadow: 0 50px 90px -45px rgba(7, 26, 61, .55), 0 0 0 1px rgba(15, 31, 61, .08); }
.pm-imac .pm-bezel { padding: 16px 16px 14px; border-radius: 0; background: #f4f6fa; box-shadow: none; }
.pm-imac .pm-screen { border-radius: 6px; box-shadow: 0 0 0 1px rgba(15, 31, 61, .25); }
.pm-imac .pm-chin { height: 54px; margin: 0; border-radius: 0; background: linear-gradient(180deg, #c3d3f3 0%, #a6bce9 100%); display: block; }
.pm-imac .pm-neck { width: 20%; height: 86px; margin: -2px auto 0; background: linear-gradient(90deg, #96acd9, #b7c8ec 50%, #96acd9); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.pm-imac .pm-foot { width: 30%; height: 12px; margin: 0 auto; border-radius: 3px 3px 10px 10px; background: linear-gradient(180deg, #b7c8ec, #8fa5d3); box-shadow: 0 14px 18px -10px rgba(15, 31, 61, .45); }
@media (max-width: 767.98px) {
    .pm-imac .pm-body { border-radius: 12px; }
    .pm-imac .pm-bezel { padding: 7px 7px 6px; }
    .pm-imac .pm-chin { height: 22px; }
    .pm-imac .pm-neck { height: 34px; }
    .pm-imac .pm-foot { height: 6px; }
}

/* Mobile readability: keep small text at 12px or more and give breadcrumb links a 24px tap area (WCAG 2.5.8). */
.ph-footer-h { font-size: max(.8rem, 12.5px); }
.ph-footer-bottom .ph-footer-disclaimer { font-size: max(.75rem, 12px); }
.btn-group .btn-sm { font-size: max(.8rem, 12.5px); }
.promo-plan .btn { font-size: max(.85rem, 13px); }
.ph-loc small, .gp-from { font-size: max(.8rem, 12px); }
nav[aria-label="Breadcrumb"] a { display: inline-block; padding: 4px 0; min-height: 24px; }

/* 404 page */
.ph-404-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 900; line-height: 1; margin: 0 0 .5rem; color: rgba(255, 255, 255, .35); }
.ph-404-links { list-style: none; padding: 0; margin: 0 auto; max-width: 48rem; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.ph-404-links a { display: flex; align-items: center; gap: .65rem; padding: 1rem 1.15rem; border: 1px solid var(--ph-line, #e3e9f3); border-radius: 14px; background: #fff; color: var(--ph-ink); font-weight: 700; text-decoration: none; }
.ph-404-links a:hover, .ph-404-links a:focus-visible { border-color: var(--ph-blue); color: var(--ph-blue); }
.ph-404-links i { color: var(--ph-blue); width: 1.25rem; text-align: center; }

/* Currency picker flags */
.cur-flag { display: inline-block; width: 20px; height: 15px; margin-right: .4rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 31, 61, .15); vertical-align: -2px; object-fit: cover; flex: none; }

/* Long single words (German, Polish) must not run off small screens */
@media (max-width: 575.98px) { h1, h2 { overflow-wrap: break-word; hyphens: auto; } }

/* Sale box above the Minecraft plans + tag on eligible cards (assets/js/promo.js initPlanSale) */
.ph-plan-sale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; max-width: 960px; margin: 1.5rem auto .5rem; padding: 1.1rem 1.4rem; border-radius: 16px; color: #fff; text-align: left; background: linear-gradient(100deg, #07090f 0%, #241006 60%, #4a1a04 100%); box-shadow: 0 10px 30px rgba(15, 31, 61, .18), inset 0 -3px 0 #ff8a2a; }
.ph-plan-sale--xmas26 { background: linear-gradient(100deg, #7d0f1c, #b3172a); box-shadow: 0 10px 30px rgba(15, 31, 61, .18); }
.ph-plan-sale-copy { flex: 1 1 320px; }
.ph-plan-sale-badge { display: inline-block; margin-bottom: .4rem; padding: .2rem .55rem; border-radius: 6px; background: #ff8a2a; color: #1a0b02; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ph-plan-sale--xmas26 .ph-plan-sale-badge { background: #fff; color: #8f1220; }
.ph-plan-sale-head { margin: 0; color: #fff; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 800; line-height: 1.25; }
.ph-plan-sale-sub { margin: .3rem 0 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.ph-plan-sale-clock { display: flex; gap: .5rem; }
.ph-plan-sale-unit { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: .45rem .4rem; border-radius: 10px; background: rgba(255, 255, 255, .1); }
.ph-plan-sale-unit b { color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ph-plan-sale-unit small { color: rgba(255, 255, 255, .75); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.ph-plan-on-sale { position: relative; border-color: #ff8a2a !important; box-shadow: 0 0 0 2px rgba(255, 138, 42, .35), 0 .125rem .25rem rgba(0, 0, 0, .075) !important; }
.ph-plan-sale-tag { position: absolute; z-index: 5; top: -14px; left: 50%; transform: translateX(-50%); padding: .25rem .7rem; border-radius: 999px; background: #ff8a2a; color: #1a0b02; font-size: .78rem; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 10px rgba(255, 138, 42, .35); }
@media (max-width: 575.98px) {
    .ph-plan-sale { padding: 1rem; margin-left: 0; margin-right: 0; }
    .ph-plan-sale-clock { width: 100%; justify-content: space-between; }
    .ph-plan-sale-unit { flex: 1; min-width: 0; }
}
