/*
Theme Name: jlmayon
Description: jlmayon access, account and mobile guides.
Version: 1.0.0
Text Domain: jlmayon
Requires at least: 6.0
Requires PHP: 8.0
*/

/* =========================================================
   1. Colours and dimensions
   ======================================================= */

:root {
    color-scheme: light;

    --jm-orange: #f45a00;
    --jm-orange-dark: #b83e00;
    --jm-orange-soft: #fff0e3;
    --jm-orange-border: #ffd4b3;

    --jm-bg: #fffaf5;
    --jm-white: #fff;
    --jm-soft: #fff3e8;

    --jm-text: #35271e;
    --jm-muted: #746357;
    --jm-border: #f0e1d5;

    --jm-width: 660px;
    --jm-gutter: 20px;

    --jm-radius: 22px;
    --jm-shadow:
        0 2px 5px rgb(83 43 16 / 2%),
        0 10px 28px rgb(83 43 16 / 5%);

    --jm-font: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   2. Base
   ======================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 145px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--jm-text);
    background: #eee7df;
    font-family: var(--jm-font);
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

body.jm-site {
    width: min(100%, var(--jm-width));
    min-height: 100vh;
    margin-inline: auto;
    background: var(--jm-bg);
    box-shadow: 0 0 60px rgb(62 36 17 / 7%);
}

body.jm-modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
    color: inherit;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    touch-action: manipulation;
}

a {
    color: var(--jm-orange-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
    outline: 3px solid #1768b2;
    outline-offset: 4px;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--jm-text);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(27px, 6.6vw, 36px);
}

h2 {
    font-size: clamp(23px, 5.5vw, 29px);
}

h3 {
    font-size: 19px;
}

h4 {
    font-size: 17px;
}

::selection {
    color: #512709;
    background: #ffd8b8;
}

.jm-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.screen-reader-text,
.jm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.jm-skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #fff;
    color: #38281d;
    box-shadow: var(--jm-shadow);
    transform: translateY(-180%);
}

.jm-skip-link:focus {
    transform: translateY(0);
}

/* =========================================================
   3. Shared layout
   ======================================================= */

.jm-shell {
    width: 100%;
    padding-inline: var(--jm-gutter);
}

.jm-main {
    min-height: 55vh;
    background: var(--jm-bg);
}

.jm-section {
    padding-block: 29px;
}

.jm-section-soft {
    background: var(--jm-soft);
}

.jm-section + .jm-section {
    border-top: 1px solid #f2e4d8;
}

.jm-section-head {
    margin-bottom: 19px;
}

.jm-section-head p {
    margin-top: 8px;
    color: var(--jm-muted);
    font-size: 14px;
}

.jm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--jm-orange-dark);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jm-eyebrow .jm-icon {
    width: 15px;
    height: 15px;
}

.jm-stack {
    display: grid;
    gap: 15px;
}

.jm-grid {
    display: grid;
    gap: 14px;
}

.jm-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================================
   4. Centred logo header
   ======================================================= */

.jm-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: var(--jm-orange);
    box-shadow: 0 4px 18px rgb(91 40 9 / 9%);
}

.jm-header-top {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 10px var(--jm-gutter);
}

.jm-header-brand {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.jm-header-spacer {
    width: 42px;
    height: 42px;
}

.jm-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    color: white;
    text-decoration: none;
}

.jm-logo:hover {
    text-decoration: none;
}

.jm-logo-image {
    width: auto;
    max-width: 218px;
    max-height: 49px;
    object-fit: contain;
}

.jm-wordmark {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.065em;
}

.jm-wordmark > span {
    color: #ffe0b2;
}

.jm-menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 50%;
    background: rgb(255 255 255 / 13%);
    color: white;
}

.jm-menu-toggle:hover {
    background: rgb(255 255 255 / 23%);
}

.jm-menu-toggle .jm-icon {
    width: 22px;
    height: 22px;
}

.jm-menu-toggle .jm-menu-close {
    display: none;
}

.jm-menu-toggle[aria-expanded="true"] .jm-menu-open {
    display: none;
}

.jm-menu-toggle[aria-expanded="true"] .jm-menu-close {
    display: block;
}

/* =========================================================
   5. Horizontal pill navigation
   ======================================================= */

.jm-nav-strip {
    padding: 8px 12px;
    border-bottom: 1px solid #f2dfcf;
    background: #fffaf5;
}

.jm-nav-scroll {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.jm-nav-scroll::-webkit-scrollbar {
    display: none;
}

.jm-nav-strip .jm-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    flex: 1 0 auto;
    padding: 8px 12px;
    border-radius: 11px;
    color: #78604e;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    white-space: nowrap;
}

.jm-nav-strip .jm-nav-link:hover {
    background: #ffebda;
    color: #b84200;
    text-decoration: none;
}

.jm-nav-strip .jm-nav-link.is-current {
    background: var(--jm-orange);
    color: white;
    box-shadow: 0 4px 10px rgb(244 90 0 / 16%);
}

/* Expanded menu */

.jm-menu-panel {
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    max-height: calc(100dvh - 155px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid var(--jm-orange-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 45px rgb(63 32 12 / 17%);
}

.jm-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.jm-menu-panel .jm-nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #f2e6dc;
    border-radius: 13px;
    background: #fffaf6;
    color: #654a37;
    font-size: 13px;
    font-weight: 750;
}

.jm-menu-panel .jm-nav-link:hover,
.jm-menu-panel .jm-nav-link.is-current {
    border-color: #ffd1ad;
    background: #fff0e1;
    color: #b54200;
    text-decoration: none;
}

.jm-menu-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 17px;
    margin-top: 14px;
    padding: 12px 3px 2px;
    border-top: 1px solid var(--jm-border);
    font-size: 11px;
}

/* =========================================================
   6. Buttons
   ======================================================= */

.jm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.jm-btn:hover {
    text-decoration: none;
}

.jm-btn:active {
    transform: translateY(1px);
}

.jm-btn .jm-icon {
    width: 19px;
    height: 19px;
}

.jm-btn-primary {
    background: linear-gradient(135deg, #ff7818, #f45a00);
    color: #fff;
    box-shadow: 0 6px 16px rgb(244 90 0 / 18%);
}

.jm-btn-primary:hover {
    background: linear-gradient(135deg, #f36708, #dd4b00);
    box-shadow: 0 8px 20px rgb(244 90 0 / 23%);
}

.jm-btn-secondary,
.jm-btn-home {
    border-color: #ffd0ac;
    background: linear-gradient(135deg, #fff, #fff4e8);
    color: #b84200;
}

.jm-btn-secondary:hover,
.jm-btn-home:hover {
    border-color: #ffb983;
    background: #ffebd8;
}

.jm-btn-soft {
    border-color: #ffd7b7;
    background: #fff0e1;
    color: #b84200;
}

.jm-btn-block {
    display: flex;
    width: 100%;
}

.jm-btn-small {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
}

.jm-btn.is-disabled {
    border-color: #e9dfd6;
    background: #f1ece7;
    color: #807367;
    box-shadow: none;
    cursor: default;
}

.jm-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 19px;
}

/* =========================================================
   7. Homepage access section
   ======================================================= */

.jm-access {
    padding-block: 18px 23px;
    background:
        radial-gradient(
            ellipse at 100% 0,
            rgb(255 183 112 / 18%),
            transparent 65%
        ),
        #fffaf5;
}

.jm-access-heading {
    margin-bottom: 15px;
    text-align: center;
}

.jm-access-heading .jm-eyebrow {
    margin-bottom: 5px;
}

.jm-access-heading h1 {
    font-size: clamp(25px, 6.2vw, 33px);
}

.jm-access-domain {
    display: inline-block;
    color: #b84200;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: 0;
}

.jm-access-heading p {
    max-width: 45ch;
    margin: 7px auto 0;
    color: #806957;
    font-size: 12px;
    line-height: 1.7;
}

.jm-routes {
    display: grid;
    gap: 9px;
}

.jm-route {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    min-height: 77px;
    padding: 12px 14px;
    border: 1px solid #f5d7bf;
    border-radius: 18px;
    background:
        linear-gradient(105deg, #fff4e7, #fff 43%);
    box-shadow: 0 5px 18px rgb(104 55 17 / 4%);
}

.jm-route-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ffd4ad;
    border-radius: 13px;
    background: linear-gradient(145deg, #fff7e9, #ffdfbb);
    color: #b84200;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    box-shadow: inset 0 1px 0 #fff;
}

.jm-route-copy {
    min-width: 0;
}

.jm-route-label {
    display: block;
    color: #96775f;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jm-route-domain {
    display: block;
    margin-top: 3px;
    color: #4b2e1a;
    font-size: clamp(14px, 3.8vw, 18px);
    font-weight: 850;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.jm-route-visit {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #ff8f3c;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff7e20, #ef5500);
    color: #fff;
    box-shadow: 0 5px 12px rgb(244 90 0 / 19%);
}

.jm-route-visit:hover {
    background: #dd4b00;
    color: #fff;
    text-decoration: none;
}

.jm-route-visit .jm-icon {
    width: 20px;
    height: 20px;
}

.jm-route-visit.is-disabled {
    border-color: #e8ded4;
    background: #eee7df;
    color: #9c8c7e;
    box-shadow: none;
    cursor: default;
}

.jm-route-note {
    margin-top: 10px;
    color: #92765e;
    font-size: 10px;
    line-height: 1.7;
    text-align: center;
}

.jm-access-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 13px;
}

.jm-access-tools .jm-btn {
    min-height: 45px;
    padding: 10px 8px;
    font-size: 12px;
}

.jm-access-tools .jm-icon {
    width: 18px;
    height: 18px;
}

/* =========================================================
   8. Quick links
   ======================================================= */

.jm-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.jm-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 18px 8px;
    border: 1px solid #efdece;
    border-radius: 19px;
    background: linear-gradient(150deg, #fff, #fff3e7);
    color: var(--jm-text);
    box-shadow: var(--jm-shadow);
    text-align: center;
    transition:
        transform 160ms ease,
        border-color 160ms ease;
}

.jm-quick-card:hover {
    transform: translateY(-2px);
    border-color: #ffbb87;
    text-decoration: none;
}

.jm-quick-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #ffd6b3;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff6e7, #ffe0bf);
    color: #df5100;
    box-shadow: inset 0 1px 0 #fff;
}

.jm-quick-card strong {
    font-size: 13px;
    line-height: 1.45;
}

.jm-quick-card small {
    color: #8b705a;
    font-size: 10px;
    line-height: 1.6;
}

/* =========================================================
   9. Shared cards
   ======================================================= */

.jm-card {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--jm-border);
    border-radius: var(--jm-radius);
    background:
        radial-gradient(
            circle at 100% 0,
            #fff0df,
            transparent 160px
        ),
        white;
    box-shadow: var(--jm-shadow);
}

.jm-card-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 16px;
    border: 1px solid #ffd6b4;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff8eb, #ffe1c3);
    color: #d74d00;
}

.jm-card h3 {
    margin-bottom: 9px;
}

.jm-card p {
    color: var(--jm-muted);
    font-size: 14px;
    line-height: 1.85;
}

.jm-card p + p {
    margin-top: 13px;
}

.jm-card .jm-btn {
    margin-top: 18px;
}

/* =========================================================
   10. Inner page heading
   ======================================================= */

.jm-page-hero {
    padding-block: 26px;
    border-bottom: 1px solid #f0dccb;
    background:
        radial-gradient(
            ellipse at 100% 0,
            #ffe5cb,
            transparent 65%
        ),
        #fff4e8;
}

.jm-page-hero h1 {
    max-width: 23ch;
}

.jm-page-lead {
    margin-top: 12px;
    color: #7a604d;
    font-size: 14px;
    line-height: 1.85;
}

.jm-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 15px;
    color: #90735b;
    font-size: 11px;
}

.jm-page-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jm-page-meta .jm-icon {
    width: 14px;
    height: 14px;
    color: #cf4d00;
}

.jm-article {
    padding-block: 25px 5px;
}

/* =========================================================
   11. Chapter cards and article typography
   ======================================================= */

/*
 * Each section will use its own .jm-content-card.
 * No JavaScript is needed to display or index the content.
 */

.jm-content-stack {
    display: grid;
    gap: 18px;
}

.jm-content-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #efdfd1;
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgb(255 241 226 / 55%),
            transparent 170px
        ),
        #fff;
    box-shadow: var(--jm-shadow);
    scroll-margin-top: 145px;
}

.jm-content-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
}

.jm-content-heading > .jm-icon {
    width: 23px;
    height: 23px;
    margin-top: 4px;
    color: #e25300;
}

.jm-content-heading h2 {
    flex: 1;
    min-width: 0;
    font-size: 23px;
    line-height: 1.4;
}

.jm-content-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #ffd7b5;
    border-radius: 11px;
    background: #ffedda;
    color: #bc4500;
    font-size: 12px;
    font-weight: 850;
}

.jm-prose {
    color: #655347;
    font-size: 15px;
    line-height: 1.95;
}

.jm-prose > * + * {
    margin-top: 17px;
}

.jm-prose p {
    color: #6c5849;
    text-wrap: pretty;
}

.jm-prose p + p {
    margin-top: 19px;
}

.jm-prose strong {
    color: #3e2b1d;
    font-weight: 750;
}

.jm-prose h2 {
    margin-top: 29px;
    margin-bottom: 14px;
    font-size: 24px;
}

.jm-prose h3 {
    margin-top: 23px;
    margin-bottom: 10px;
    color: #99400d;
    font-size: 18px;
}

.jm-prose > :first-child {
    margin-top: 0;
}

.jm-prose ul,
.jm-prose ol {
    padding-left: 23px;
}

.jm-prose li {
    padding-left: 4px;
    color: #6c5849;
}

.jm-prose li + li {
    margin-top: 11px;
}

.jm-prose li::marker {
    color: #dd5200;
    font-weight: 800;
}

.jm-prose a:not(.jm-btn) {
    color: #b54100;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: #ffc59c;
    text-underline-offset: 4px;
}

.jm-prose blockquote {
    padding: 17px;
    border-left: 3px solid #f45a00;
    border-radius: 0 14px 14px 0;
    background: #fff0e2;
}

.jm-prose hr {
    margin-block: 25px;
    border: 0;
    border-top: 1px solid var(--jm-border);
}

/* =========================================================
   12. Pictures
   ======================================================= */

.jm-picture {
    margin-block: 0 23px;
    overflow: hidden;
    border: 1px solid #eed6c1;
    border-radius: 22px;
    background: #fff0df;
    box-shadow: 0 9px 25px rgb(91 46 12 / 6%);
}

.jm-picture img {
    display: block;
    width: 100%;
    height: auto;
}

.jm-picture figcaption {
    padding: 11px 15px;
    background: #fff;
    color: #8a705b;
    font-size: 11px;
    line-height: 1.75;
}

/* =========================================================
   13. Collapsible contents
   ======================================================= */

.jm-toc {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #eedccb;
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--jm-shadow);
}

.jm-toc > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 61px;
    padding: 17px 45px 17px 19px;
    color: #583823;
    font-size: 14px;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.jm-toc > summary::-webkit-details-marker {
    display: none;
}

.jm-toc > summary::after {
    position: absolute;
    top: 25px;
    right: 22px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #d75000;
    border-bottom: 2px solid #d75000;
    content: "";
    transform: rotate(45deg);
}

.jm-toc[open] > summary::after {
    top: 29px;
    transform: rotate(225deg);
}

.jm-toc > summary .jm-icon {
    width: 20px;
    height: 20px;
    color: #df5400;
}

.jm-toc ol {
    display: grid;
    gap: 0;
    padding: 0 21px 18px 41px;
}

.jm-toc li {
    padding: 7px 0 7px 3px;
    color: #c64b00;
    font-size: 13px;
    line-height: 1.7;
}

.jm-toc li + li {
    border-top: 1px dashed #f0e2d7;
}

.jm-toc a {
    color: #79604d;
}

/* =========================================================
   14. Steps and information notices
   ======================================================= */

.jm-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: jm-step;
}

.jm-step {
    position: relative;
    min-width: 0;
    padding: 19px 17px 19px 65px;
    border: 1px solid #efdece;
    border-radius: 18px;
    background: linear-gradient(110deg, #fff5e9, #fff 65%);
    counter-increment: jm-step;
}

.jm-step::before {
    position: absolute;
    top: 19px;
    left: 17px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ffd3ad;
    border-radius: 11px;
    background: #ffe8cf;
    color: #b84300;
    font-size: 13px;
    font-weight: 850;
    content: counter(jm-step);
}

.jm-step h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.jm-step p {
    color: #7d6350;
    font-size: 13px;
    line-height: 1.85;
}

.jm-callout {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 17px;
    border: 1px solid #ffd0a9;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5e7, #ffe9d2);
}

.jm-callout > .jm-icon {
    width: 22px;
    height: 22px;
    margin-top: 3px;
    color: #d04b00;
}

.jm-callout p {
    color: #805337;
    font-size: 13px;
    line-height: 1.85;
}

/* =========================================================
   15. FAQ
   ======================================================= */

.jm-faq {
    display: grid;
    gap: 11px;
}

.jm-faq-item {
    overflow: hidden;
    border: 1px solid #efdfd2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 17px rgb(86 46 17 / 4%);
}

.jm-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 17px 46px 17px 19px;
    color: #4c3524;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.65;
    list-style: none;
    cursor: pointer;
}

.jm-faq-item summary::-webkit-details-marker {
    display: none;
}

.jm-faq-item summary::after {
    position: absolute;
    top: 50%;
    right: 21px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #e35b0b;
    border-bottom: 2px solid #e35b0b;
    content: "";
    transform: translateY(-65%) rotate(45deg);
}

.jm-faq-item[open] {
    border-color: #ffc397;
    background: linear-gradient(180deg, #fff5ea, #fff 110px);
}

.jm-faq-item[open] summary {
    color: #b94200;
}

.jm-faq-item[open] summary::after {
    transform: translateY(-20%) rotate(225deg);
}

.jm-faq-answer {
    padding: 0 19px 19px;
    color: #7a6250;
    font-size: 13px;
    line-height: 1.9;
}

.jm-faq-answer > * + * {
    margin-top: 11px;
}

/* =========================================================
   16. Contact cards
   ======================================================= */

.jm-contact-list {
    display: grid;
    gap: 12px;
}

.jm-contact-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 78px;
    padding: 16px;
    border: 1px solid #efdece;
    border-radius: 19px;
    background: linear-gradient(135deg, #fff, #fff7ef);
    color: #4c3220;
    box-shadow: var(--jm-shadow);
}

.jm-contact-card:hover {
    border-color: #ffb782;
    text-decoration: none;
}

.jm-contact-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border: 1px solid #ffd7b6;
    border-radius: 14px;
    background: #ffead5;
    color: #d94f00;
}

.jm-contact-copy {
    min-width: 0;
    flex: 1;
}

.jm-contact-copy strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.jm-contact-copy small {
    display: block;
    margin-top: 4px;
    color: #8b705b;
    font-size: 11px;
    line-height: 1.6;
}

.jm-contact-card > .jm-icon {
    width: 17px;
    height: 17px;
    color: #d2540a;
}

.jm-contact-empty {
    padding: 18px;
    border: 1px solid #eedecd;
    border-radius: 17px;
    background: #fff4e8;
    color: #80654f;
    font-size: 13px;
}

/* =========================================================
   17. Tables
   ======================================================= */

.jm-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #eedccc;
    border-radius: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.jm-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.75;
    text-align: left;
}

.jm-table-wrap caption {
    padding: 14px;
    background: #fff9f2;
    color: #674127;
    font-weight: 800;
    text-align: left;
}

.jm-table-wrap th,
.jm-table-wrap td {
    padding: 13px 14px;
    border-bottom: 1px solid #f0e4da;
    vertical-align: top;
}

.jm-table-wrap th {
    background: #ffead5;
    color: #8e3908;
}

.jm-table-wrap td {
    color: #765b47;
}

.jm-table-wrap tbody tr:nth-child(even) {
    background: #fffbf7;
}

.jm-table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   18. Back to Home
   ======================================================= */

.jm-back-home {
    display: flex;
    justify-content: center;
    margin-top: 27px;
    padding-block: 24px 31px;
    border-top: 1px solid #efddce;
}

.jm-back-home .jm-btn {
    min-width: 190px;
    min-height: 50px;
    box-shadow: 0 6px 18px rgb(182 85 20 / 6%);
}

/* =========================================================
   19. Footer
   ======================================================= */

.jm-footer {
    padding-top: 31px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    background: #302019;
    color: #d9c5b8;
}

.jm-footer-brand {
    text-align: center;
}

.jm-footer .jm-logo {
    margin-bottom: 15px;
}

.jm-footer .jm-logo-image {
    max-width: 210px;
    max-height: 76px;
}

.jm-footer-description {
    max-width: 48ch;
    margin-inline: auto;
    color: #d4bfb0;
    font-size: 12px;
    line-height: 1.9;
}

.jm-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
    padding-top: 23px;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.jm-footer-title {
    margin-bottom: 12px;
    color: #ffba84;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.jm-footer-links {
    display: grid;
    gap: 8px;
}

.jm-footer-links a {
    width: fit-content;
    color: #edddd2;
    font-size: 12px;
    line-height: 1.75;
}

.jm-footer-links a:hover {
    color: #ffbb85;
}

.jm-footer-bottom {
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #bda18d;
    font-size: 10px;
    line-height: 1.9;
    text-align: center;
}

.jm-footer-bottom p + p {
    margin-top: 6px;
}

/* =========================================================
   20. Icon-only floating buttons
   No reserved lane or content padding.
   ======================================================= */

.jm-float {
    position: fixed;
    z-index: 90;
    right: 10px;
    bottom: calc(17px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.jm-float-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 50%;
    color: #fff;
    box-shadow:
        0 4px 11px rgb(60 31 11 / 15%),
        inset 0 1px 0 rgb(255 255 255 / 20%);
    pointer-events: auto;
    transition: transform 160ms ease;
}

.jm-float-button:hover {
    color: #fff;
    text-decoration: none;
}

.jm-float-button .jm-icon {
    width: 21px;
    height: 21px;
}

.jm-float-customer {
    background: linear-gradient(145deg, #ff862b, #ee5600);
}

.jm-float-telegram {
    background: #168fc4;
}

.jm-float-facebook {
    background: #1b65cf;
}

.jm-float-whatsapp {
    background: #188d50;
}

.jm-float-top {
    border-color: #ffd0aa;
    background: #fff;
    color: #d34b00;
}

.jm-float-top:hover {
    color: #d34b00;
}

/* =========================================================
   21. VPN tutorial dialog
   ======================================================= */

.jm-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    isolation: isolate;
}

.jm-modal-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgb(40 24 13 / 65%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.jm-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 580px);
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    border: 1px solid #ffdbc0;
    border-radius: 25px;
    background: #fffaf5;
    box-shadow: 0 25px 85px rgb(0 0 0 / 24%);
}

.jm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 18px 18px 13px;
}

.jm-modal-title {
    font-size: 20px;
    line-height: 1.4;
}

.jm-modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 1px solid #ffd0ac;
    border-radius: 50%;
    background: #fff;
    color: #c24700;
}

.jm-modal-close .jm-icon {
    width: 18px;
    height: 18px;
}

.jm-modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    flex: 0 0 auto;
    margin: 0 18px 14px;
    padding: 5px;
    border: 1px solid #ffd4b0;
    border-radius: 15px;
    background: #ffebd8;
}

.jm-modal-tab {
    min-height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #896046;
    font-size: 12px;
    font-weight: 800;
}

.jm-modal-tab[aria-selected="true"] {
    background: #f45a00;
    color: #fff;
    box-shadow: 0 4px 10px rgb(244 90 0 / 16%);
}

.jm-modal-scroll {
    min-height: 0;
    padding: 0 18px 19px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #e7b38d transparent;
    -webkit-overflow-scrolling: touch;
}

.jm-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.jm-tutorial-step {
    min-width: 0;
    padding: 12px;
    border: 1px solid #eedccb;
    border-radius: 18px;
    background: #fff;
}

.jm-tutorial-image {
    display: flex;
    justify-content: center;
    margin-bottom: 13px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff3e7;
}

.jm-tutorial-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.jm-tutorial-number {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-bottom: 8px;
    border-radius: 9px;
    background: #ffe7cd;
    color: #b84200;
    font-size: 12px;
    font-weight: 850;
}

.jm-tutorial-step h3 {
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.5;
}

.jm-tutorial-step p {
    color: #836851;
    font-size: 11px;
    line-height: 1.85;
}

.jm-tutorial-download {
    margin-top: 15px;
}

.jm-tutorial-note {
    margin-top: 12px;
    color: #927a64;
    font-size: 10px;
    line-height: 1.8;
}

/* =========================================================
   22. 404 and pagination
   ======================================================= */

.jm-error {
    padding-top: 45px;
    text-align: center;
}

.jm-error-number {
    color: #f45a00;
    font-size: clamp(85px, 24vw, 125px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.07em;
}

.jm-error h1 {
    margin-top: 17px;
    font-size: 28px;
}

.jm-error p {
    max-width: 38ch;
    margin: 13px auto 0;
    color: #806650;
    font-size: 14px;
}

.jm-error-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 21px;
    font-size: 13px;
}

.jm-pagination {
    margin-top: 24px;
}

.jm-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.jm-pagination a.page-numbers,
.jm-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #eed8c5;
    border-radius: 12px;
    background: #fff;
    color: #a84206;
    font-size: 13px;
    font-weight: 750;
}

.jm-pagination span.current {
    border-color: #f45a00;
    background: #f45a00;
    color: #fff;
}

/* =========================================================
   23. WordPress content
   ======================================================= */

.aligncenter {
    margin-inline: auto;
}

.alignleft,
.alignright {
    float: none;
    margin-block: 18px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    padding-top: 8px;
    color: var(--jm-muted);
    font-size: 12px;
}

.wp-block-image img {
    border-radius: 16px;
}

.jm-prose iframe,
.wp-block-embed iframe {
    max-width: 100%;
}

/* =========================================================
   24. Desktop H5 presentation
   ======================================================= */

@media (min-width: 820px) {
    body.jm-site {
        margin-block: 22px;
        min-height: calc(100vh - 44px);
        border: 1px solid #e9dcd0;
        border-radius: 27px;
    }

    .jm-header {
        border-radius: 26px 26px 0 0;
    }

    .jm-footer {
        border-radius: 0 0 26px 26px;
    }

    .jm-float {
        right: calc((100vw - var(--jm-width)) / 2 - 61px);
        bottom: 25px;
    }

    .jm-section {
        padding-block: 34px;
    }

    .jm-content-card {
        padding: 27px;
    }
}

/* =========================================================
   25. Mobile full width
   ======================================================= */

@media (max-width: 819px) {
    html,
    body {
        background: var(--jm-bg);
    }

    body.jm-site {
        width: 100%;
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .jm-float {
        right: calc(9px + env(safe-area-inset-right, 0px));
        bottom: calc(15px + env(safe-area-inset-bottom, 0px));
        gap: 7px;
    }

    .jm-float-button {
        width: 40px;
        height: 40px;
        min-height: 40px;
        flex-basis: 40px;
    }

    .jm-float-button .jm-icon {
        width: 20px;
        height: 20px;
    }
}

/* =========================================================
   26. Small phones
   ======================================================= */

@media (max-width: 420px) {
    :root {
        --jm-gutter: 16px;
    }

    .jm-header-top {
        min-height: 64px;
    }

    .jm-logo-image {
        max-width: 185px;
        max-height: 43px;
    }

    .jm-wordmark {
        font-size: 30px;
    }

    .jm-nav-strip {
        padding-inline: 9px;
    }

    .jm-nav-strip .jm-nav-link {
        min-height: 35px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .jm-content-card,
    .jm-card {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .jm-content-heading {
        gap: 10px;
    }

    .jm-content-heading h2 {
        font-size: 21px;
    }

    .jm-prose {
        font-size: 14px;
        line-height: 1.9;
    }

    .jm-quick-grid {
        gap: 9px;
    }
}

@media (max-width: 359px) {
    :root {
        --jm-gutter: 13px;
    }

    .jm-header-top {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    .jm-header-spacer,
    .jm-menu-toggle {
        width: 36px;
        height: 36px;
    }

    .jm-logo-image {
        max-width: 170px;
    }

    .jm-route {
        grid-template-columns: 33px minmax(0, 1fr) 37px;
        gap: 9px;
        padding: 11px;
    }

    .jm-route-number {
        width: 33px;
        height: 36px;
        font-size: 13px;
    }

    .jm-route-visit {
        width: 37px;
        height: 37px;
    }

    .jm-route-domain {
        font-size: 13px;
    }

    .jm-access-tools .jm-btn {
        gap: 5px;
        font-size: 11px;
    }

    .jm-grid-two {
        grid-template-columns: 1fr;
    }

    .jm-modal {
        padding: 9px;
    }

    .jm-modal-dialog {
        max-height: calc(100dvh - 18px);
        border-radius: 20px;
    }

    .jm-modal-title {
        font-size: 17px;
    }

    .jm-modal-head {
        padding-inline: 13px;
    }

    .jm-modal-tabs {
        margin-inline: 13px;
    }

    .jm-modal-scroll {
        padding-inline: 13px;
    }

    .jm-tutorial-grid {
        grid-template-columns: 1fr;
    }

    .jm-tutorial-image img {
        max-width: 240px;
    }

    .jm-tutorial-step h3 {
        font-size: 15px;
    }

    .jm-tutorial-step p {
        font-size: 12px;
    }
}

/* Short screens: keep the route area compact */

@media (max-height: 740px) and (max-width: 819px) {
    .jm-access {
        padding-top: 13px;
        padding-bottom: 18px;
    }

    .jm-access-heading {
        margin-bottom: 11px;
    }

    .jm-access-heading p {
        margin-top: 5px;
    }

    .jm-routes {
        gap: 8px;
    }

    .jm-route {
        min-height: 69px;
        padding-block: 9px;
    }

    .jm-access-tools {
        margin-top: 10px;
    }
}

/* =========================================================
   27. Admin toolbar
   ======================================================= */

.admin-bar .jm-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .jm-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .jm-header {
        top: 0;
    }
}

/* =========================================================
   28. Motion and printing
   ======================================================= */

@media (hover: hover) {
    .jm-float-button:hover {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body,
    body.jm-site {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .jm-header,
    .jm-footer,
    .jm-float,
    .jm-modal,
    .jm-back-home,
    .jm-button-row {
        display: none !important;
    }

    .jm-shell {
        padding-inline: 0;
    }

    .jm-page-hero,
    .jm-content-card,
    .jm-card,
    .jm-step {
        background: #fff;
        box-shadow: none;
    }

    .jm-content-card {
        padding: 15px 0;
        border: 0;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
    }

    .jm-prose,
    .jm-prose p {
        color: #000;
    }
}
/* 隐藏顶部横向菜单，保留汉堡展开菜单 */
.jm-header .jm-nav-strip {
    display: none !important;
}
.jm-entry-section {
    padding: 12px 0 24px;
}

.jm-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.jm-entry-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 12px 14px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(160deg, #ffffff, #fff5eb);
    border: 1px solid #f0dfcf;
    border-radius: 22px;
    box-shadow: 0 7px 22px rgb(112 57 17 / 6%);
}

.jm-entry-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    color: #f45a00;
    background: linear-gradient(145deg, #fff4e6, #ffe3c6);
    border: 1px solid #ffd4ad;
    border-radius: 17px;
    box-shadow: inset 0 1px 0 #ffffff;
}

.jm-entry-icon .jm-icon {
    width: 26px;
    height: 26px;
}

.jm-entry-card h2 {
    margin: 0 0 8px;
    color: #35271e;
    font-size: clamp(15px, 3.8vw, 20px);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.jm-entry-card p {
    margin: 0 0 18px;
    color: #746357;
    font-size: 12px;
    line-height: 1.65;
}

.jm-entry-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 8px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(135deg, #f87016, #d94b00);
    border: 1px solid #d94b00;
    border-radius: 13px;
    box-shadow: 0 4px 10px rgb(217 75 0 / 15%);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease;
}

.jm-entry-button .jm-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.jm-entry-button:hover {
    color: #ffffff;
    background: #c94700;
    box-shadow: 0 5px 14px rgb(217 75 0 / 23%);
}

.jm-entry-button:focus-visible {
    outline: 3px solid #a93700;
    outline-offset: 4px;
}

@media (max-width: 359px) {
    .jm-entry-grid {
        gap: 9px;
    }

    .jm-entry-card {
        padding: 18px 9px 11px;
        border-radius: 18px;
    }

    .jm-entry-button {
        gap: 5px;
        font-size: 13px;
    }
}