/*
 * Documentation of Panda Multi Resorts: one page, no database, opened from the disk or a web server.
 * Fonts of the default theme (Rubik and Urbanist, SIL Open Font License) and icons of the extension
 * (Phosphor, MIT license, icons.css), shipped in ../fonts with their licences.
 */
@font-face {
    font-family: "Rubik";
    src: url("../fonts/rubik-normal-latin.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Urbanist";
    src: url("../fonts/urbanist-normal-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #22235a;
    --ink-deep: #17183f;
    --accent: #7a6bd1;
    --accent-2: #6b87dd;
    --accent-soft: #efedfb;
    --text: #34375a;
    --muted: #6d7092;
    --line: #e7e5f2;
    --soft: #f7f6fc;
    --white: #fff;
    --green: #1f8a5b;
    --green-soft: #e7f6ee;
    --amber: #b7791f;
    --amber-soft: #fdf4e3;
    --red: #c2410c;
    --red-soft: #fdeee7;
    --radius: 14px;
    --shadow: 0 18px 50px -24px rgba(23, 24, 63, .35);
    --shadow-soft: 0 6px 24px -12px rgba(23, 24, 63, .25);
    --sidebar: 290px;
    --content: 820px;
    --wide: 1060px;
    --heading: "Urbanist", "Segoe UI", system-ui, sans-serif;
    --body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 400 16px/1.7 var(--body);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #5a4bc2; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(122, 107, 209, .55); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 600; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------ sidebar */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    background: var(--soft);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.sidebar__brand { padding: 24px 24px 14px; }
.sidebar__brand img { width: 196px; }
.sidebar__version {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--muted);
}
.sidebar__version b {
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1px 9px;
}
.sidebar__search { padding: 0 20px 12px; position: relative; }
.sidebar__search input {
    width: 100%;
    font: inherit;
    font-size: 14px;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--text);
}
.sidebar__search .fa-light { position: absolute; left: 32px; top: 11px; color: var(--muted); font-size: 16px; }
.sidebar nav { overflow-y: auto; padding: 4px 12px 32px; scrollbar-width: thin; scrollbar-color: #cfc9f2 transparent; }
.sidebar nav::-webkit-scrollbar { width: 8px; }
.sidebar nav::-webkit-scrollbar-thumb { background: #cfc9f2; border-radius: 8px; }
.nav-group { margin-top: 14px; }
.nav-group > span {
    display: block;
    padding: 0 12px 4px;
    font: 700 11px/1.4 var(--body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9a9cb8;
}
.sidebar nav a {
    display: block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.4;
}
.sidebar nav a:hover { background: var(--white); text-decoration: none; color: var(--ink); }
.sidebar nav a.is-active { background: var(--white); color: var(--accent); font-weight: 500; box-shadow: inset 3px 0 0 var(--accent); }
.sidebar nav a[hidden], .nav-group[hidden] { display: none; }
.topbar { display: none; }

/* ------------------------------------------------------------ main */
main { margin-left: var(--sidebar); }
.section {
    padding: 64px 56px 24px;
    max-width: calc(var(--wide) + 112px);
}
.section + .section { border-top: 1px solid var(--line); }
.prose { max-width: var(--content); }
.eyebrow {
    display: inline-block;
    font: 600 12.5px/1 var(--body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section > h2, .prose > h2 { font-size: 40px; letter-spacing: -1px; margin-bottom: 16px; font-weight: 800; }
h3 { font-size: 24px; letter-spacing: -.3px; margin: 44px 0 12px; font-weight: 750; }
h4 { font-size: 17.5px; margin: 28px 0 8px; font-weight: 700; }
.lead { font-size: 18.5px; line-height: 1.65; color: #45486c; max-width: var(--content); }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
li::marker { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ------------------------------------------------------------ hero */
.hero {
    position: relative;
    overflow: hidden;
    color: #e7e6f7;
    background:
        radial-gradient(900px 480px at 88% 8%, rgba(122, 107, 209, .55), transparent 62%),
        radial-gradient(700px 420px at 6% 100%, rgba(107, 135, 221, .30), transparent 60%),
        linear-gradient(140deg, var(--ink-deep) 0%, var(--ink) 55%, #2e2a73 100%);
    padding: 56px 56px 0;
}
.hero__inner { max-width: var(--wide); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero__logo { width: 230px; }
.hero__kicker { margin-top: 26px; font: 600 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #b9b2f0; }
.hero h1 { color: var(--white); font-size: 60px; font-weight: 800; letter-spacing: -2.5px; margin: 14px 0 16px; line-height: 1.02; }
.hero__lead { font-size: 19px; line-height: 1.6; max-width: 700px; color: #d9d7f2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.chips li {
    margin: 0;
    font-size: 13.5px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #ecebfb;
}
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 600 15px/1 var(--body);
    padding: 13px 20px;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 24px -12px rgba(122, 107, 209, .9);
}
.button:hover { text-decoration: none; filter: brightness(1.07); }
.button--ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); box-shadow: none; }
.hero__visual { position: relative; margin-top: 12px; padding-bottom: 0; }
.hero__visual .browser { margin-bottom: -2px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.hero__visual .phone {
    position: absolute;
    right: 3%;
    bottom: -60px;
    width: 23%;
    min-width: 150px;
    max-width: 230px;
}
.hero__spacer { height: 88px; }

/* ------------------------------------------------------------ frames */
.browser {
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dcd9ee;
    box-shadow: var(--shadow);
}
.browser__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: #f1f0f8;
    border-bottom: 1px solid #e3e1ef;
}
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9d6e8; display: block; }
.browser__bar i:nth-child(1) { background: #f28b82; }
.browser__bar i:nth-child(2) { background: #f6c86b; }
.browser__bar i:nth-child(3) { background: #7fd49b; }
.browser__bar span {
    margin-left: 12px;
    flex: 1;
    max-width: 420px;
    font-size: 12.5px;
    color: #7a7c99;
    background: var(--white);
    border: 1px solid #e3e1ef;
    border-radius: 999px;
    padding: 3px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.phone {
    border-radius: 34px;
    padding: 9px;
    background: #16172e;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65), inset 0 0 0 2px #2f3055;
}
.phone img { border-radius: 26px; }

/* ------------------------------------------------------------ figures */
figure { margin: 28px 0 34px; }
figure.wide { max-width: var(--wide); }
figure.narrow { max-width: 620px; }
figure.small { max-width: 480px; }
figure > .browser img, figure > img.flat { cursor: zoom-in; }
figure > img.flat { border-radius: 12px; border: 1px solid #dcd9ee; box-shadow: var(--shadow-soft); }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.55; max-width: var(--content); }
figcaption b { color: var(--ink); font-weight: 600; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: center; max-width: var(--wide); margin: 28px 0 34px; }
.pair figure { margin: 0; }
.pair .phone { max-width: 240px; }
.side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; max-width: var(--wide); }
.side figure { margin-top: 6px; }

/* ------------------------------------------------------------ cards and grids */
.thanks {
    margin: 34px 0 0;
    max-width: var(--content);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--soft);
    border: 1px solid var(--line);
}
.thanks .fa-light { font-size: 26px; color: var(--accent); margin-top: 2px; }
.thanks p { margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: var(--wide); margin: 30px 0 10px; }
.feature {
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    transition: box-shadow .2s, transform .2s;
}
.feature:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.feature .fa-light {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    color: var(--accent);
    background: var(--accent-soft);
    margin-bottom: 14px;
}
.feature h4 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #55587a; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: var(--wide); margin: 22px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--white); }
.card h4 { margin-top: 0; display: flex; gap: 10px; align-items: center; }
.card h4 .fa-light { color: var(--accent); font-size: 20px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.demo-box {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    max-width: var(--wide);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    margin: 22px 0;
}
.demo-box > div { padding: 20px 22px; }
.demo-box > div + div { border-left: 1px solid var(--line); }
.demo-box span { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.demo-box a, .demo-box code { font-size: 15.5px; }

/* ------------------------------------------------------------ steps */
.steps { list-style: none; padding: 0; margin: 26px 0; counter-reset: step; max-width: var(--content); }
.steps > li { position: relative; padding: 0 0 26px 58px; margin: 0; counter-increment: step; }
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font: 700 15px/1 var(--heading);
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 18px -10px rgba(122, 107, 209, .9);
}
.steps > li::after { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; font-size: 17px; margin-bottom: 4px; }
.steps figure { margin: 16px 0 6px; }

/* ------------------------------------------------------------ callouts */
.callout {
    display: flex;
    gap: 14px;
    max-width: var(--content);
    margin: 22px 0;
    padding: 15px 18px;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid #ddd8f7;
    font-size: 15px;
}
.callout > .fa-light { font-size: 20px; color: var(--accent); margin-top: 2px; flex: none; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--tip { background: var(--green-soft); border-color: #c9ead8; }
.callout--tip > .fa-light { color: var(--green); }
.callout--warn { background: var(--amber-soft); border-color: #f3e0b8; }
.callout--warn > .fa-light { color: var(--amber); }

/* ------------------------------------------------------------ inline */
code {
    font: 500 .88em/1.4 var(--mono);
    color: #4b3fb0;
    background: #f1effb;
    border-radius: 6px;
    padding: .12em .4em;
    overflow-wrap: anywhere;
}
kbd {
    font: 500 .86em var(--mono);
    border: 1px solid #d8d5e9;
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: .05em .45em;
    background: var(--white);
}
.path {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    font-size: .92em;
    font-weight: 500;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1px 9px;
    white-space: normal;
}
.path i { font-style: normal; color: #a19fc0; }
.badge {
    display: inline-block;
    vertical-align: middle;
    font: 600 11px/1.6 var(--body);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 1px 8px;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-soft);
    margin-left: 6px;
}
.badge--new { color: var(--green); background: var(--green-soft); }

/* ------------------------------------------------------------ code blocks */
.code { position: relative; max-width: var(--content); margin: 18px 0 24px; }
pre {
    margin: 0;
    padding: 18px 20px;
    border-radius: 12px;
    background: #1b1c3d;
    color: #e5e3ff;
    overflow-x: auto;
    font: 400 14px/1.65 var(--mono);
}
pre code { background: none; color: inherit; padding: 0; font: inherit; overflow-wrap: normal; }
pre .c { color: #8f8cc0; }
.copy {
    position: absolute;
    top: 10px;
    right: 10px;
    font: 500 12.5px/1 var(--body);
    color: #e5e3ff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 7px;
    padding: 6px 10px;
    cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, .18); }
.code pre { padding-right: 86px; }
.tree { font: 400 14px/1.7 var(--mono); }

/* ------------------------------------------------------------ tables */
.table { max-width: var(--wide); overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.8px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--soft); font: 600 12.5px/1.4 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 500; color: var(--ink); }
.table--compare td:not(:first-child) { color: #55587a; }
.yes { color: var(--green); font-weight: 600; }
.no { color: #a19fc0; }

/* ------------------------------------------------------------ inheritance */
.levels { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 24px 0 12px; max-width: var(--wide); }
.level {
    flex: 1 1 150px;
    padding: 16px 16px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    position: relative;
}
.level b { display: flex; align-items: center; gap: 8px; font-family: var(--heading); font-size: 17px; color: var(--ink); }
.level b .fa-light { color: var(--accent); font-size: 20px; }
.level span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.level + .level::before {
    content: "›";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translate(-50%, -52%);
    font-size: 22px;
    color: var(--accent);
}
.level:nth-child(1) { background: linear-gradient(180deg, #f3f1fd, #fff); }

/* ------------------------------------------------------------ footer, top button, lightbox */
.doc-footer { padding: 40px 56px 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.doc-footer img { width: 170px; margin-bottom: 12px; }
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 20;
    cursor: pointer;
}
.to-top.is-shown { opacity: 1; pointer-events: auto; }
.to-top .fa-light { transform: rotate(90deg); }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(18, 19, 44, .88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 1180px) {
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: none; }
    .sidebar.is-open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .25); }
    main { margin-left: 0; }
    .topbar {
        position: sticky;
        top: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--line);
    }
    .topbar img { width: 150px; }
    .topbar button {
        font: 500 14px/1 var(--body);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px;
        border-radius: 9px;
        border: 1px solid var(--line);
        background: var(--white);
        color: var(--ink);
        cursor: pointer;
    }
    html { scroll-padding-top: 70px; }
    .hero__logo { display: none; }
    .hero__kicker { margin-top: 0; }
    .section { padding: 52px 32px 20px; }
    .hero { padding: 40px 32px 0; }
    .doc-footer { padding: 36px 32px 56px; }
    .pair { grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 760px) {
    body { font-size: 15.5px; }
    .section { padding: 44px 16px 16px; }
    .hero { padding: 32px 16px 0; }
    .doc-footer { padding: 32px 16px 48px; }
    .hero h1 { font-size: 40px; letter-spacing: -1.5px; }
    .hero__lead { font-size: 17px; }
    .hero__logo { width: 190px; }
    .hero__visual .phone { right: 4%; bottom: -40px; width: 34%; min-width: 0; }
    .hero__spacer { height: 64px; }
    .section > h2, .prose > h2 { font-size: 31px; letter-spacing: -.6px; }
    h3 { font-size: 21px; margin-top: 36px; }
    .lead { font-size: 17px; }
    .features, .cards2, .side { grid-template-columns: minmax(0, 1fr); }
    .demo-box { grid-template-columns: minmax(0, 1fr); }
    .demo-box > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .pair { grid-template-columns: minmax(0, 1fr); }
    .pair .phone { max-width: 250px; margin: 0 auto; }
    .steps > li { padding-left: 48px; }
    .browser__bar span { display: none; }
    .level + .level::before { display: none; }
    th, td { padding: 10px 12px; }
}

/* ------------------------------------------------------------ print */
@media print {
    .sidebar, .topbar, .to-top, .copy, .hero__visual { display: none !important; }
    main { margin: 0; }
    .hero { background: none; color: var(--text); padding: 0 0 20px; }
    .hero h1 { color: var(--ink); }
    .hero__lead, .chips li { color: var(--text); }
    .section { padding: 24px 0; break-inside: auto; }
    figure, .callout, .table, pre { break-inside: avoid; }
    a { color: var(--text); }
}
