:root {
  --bg: #fff; --surface: #f5f8f8; --text: #1d2a2a; --muted: #566868; --line: #dde6e6;
  --cta: #ffa629; --cta-text: #201300;
  --brand: #0f4c4a; --link: #0b6e69; --accent-bg: #e4f4ef; --warn-bg: #fdf1e1; --warn: #c77712; --code: #eef3f3;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: var(--bg); padding: 8px 12px; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { color: var(--brand); text-decoration: none; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { color: var(--muted); margin-left: 4px; }
.home { display: flex; align-items: center; gap: 6px; flex: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font-size: 14px; text-decoration: none; }
.home svg { display: block; }
.store { flex: none; background: var(--cta); color: var(--cta-text); border-radius: 6px; padding: 5px 14px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
/* call to action: warm orange with dark text (high contrast), the only element in this color */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 24px 0 28px; padding: 22px 26px; background: var(--accent-bg); border: 2px solid var(--brand); border-radius: 14px; }
.cta strong { display: block; font-size: 1.25rem; color: var(--brand); line-height: 1.3; }
.cta span { color: var(--muted); }
.button { display: inline-block; background: var(--cta); color: var(--cta-text); border-radius: 10px; padding: 14px 26px; font-size: 1.1rem; font-weight: 700; text-decoration: none; text-align: center; box-shadow: 0 4px 14px rgb(214 123 10 / .35); transition: transform .15s, box-shadow .15s; }
.cta .button span { color: inherit; }
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(214 123 10 / .45); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
@media (max-width: 560px) { .cta { padding: 18px; } .cta .button { width: 100%; } }
.side a.side-store { display: none; margin-top: 16px; background: var(--cta); color: var(--cta-text); font-weight: 700; text-align: center; padding: 10px; }
.lang { border: 1px solid var(--line); border-radius: 6px; padding: 3px 12px; text-decoration: none; font-size: 14px; }
.menu { display: none; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; max-width: 1360px; margin: 0 auto; }
.plain .shell { display: block; max-width: 860px; }
.side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; padding: 20px 16px; border-right: 1px solid var(--line); font-size: 15px; }
.side ul, .toc ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.side a:hover { background: var(--surface); }
.side a[aria-current] { background: var(--accent-bg); color: var(--brand); font-weight: 600; }
.side .group { margin: 18px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.version { margin: 24px 10px 0; font-size: 13px; color: var(--muted); }
main { grid-column: 2; padding: 28px 44px 56px; max-width: 880px; width: 100%; min-width: 0; }
.toc { grid-column: 3; position: sticky; top: 60px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; padding: 36px 16px; font-size: 14px; }
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--link); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--brand); }
h1 { font-size: 2rem; margin: 0 0 12px; }
h2 { font-size: 1.45rem; margin: 48px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
h3 { font-size: 1.13rem; margin: 28px 0 8px; }
h2 a, h3 a { color: inherit; text-decoration: none; }
h2 a:hover::after, h3 a:hover::after { content: " #"; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); }
code { background: var(--code); border-radius: 4px; padding: 1px 5px; font-size: .9em; overflow-wrap: anywhere; }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
figure { margin: 20px 0; }
figure img, figure video { display: block; max-width: 100%; height: auto; margin: 0 auto; }
/* a card around the screenshots of the storefront */
figure .zoomable, figure > img, figure video { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zoomable { display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 8px; cursor: zoom-in; }
figure video { width: 100%; }
figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; align-items: start; }
.grid figure { margin: 0; }
.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.note, .warn { margin: 18px 0; padding: 12px 16px; border-radius: 8px; background: var(--accent-bg); border-left: 4px solid var(--link); }
.warn { background: var(--warn-bg); border-left-color: var(--warn); }
.note > :first-child, .warn > :first-child { margin-top: 0; }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }
.option { margin: 22px 0; padding: 2px 18px 6px; border: 1px solid var(--line); border-radius: 10px; }
.option h3 { margin: 14px 0 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.meta b { font-weight: 600; color: var(--text); }
.choices { font-size: 14px; }
.choices span { color: var(--muted); }
.choices em { display: inline-block; font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; margin: 2px 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; }
.pager a { border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; text-decoration: none; }
.pager a span { display: block; font-size: 12px; color: var(--muted); }
.pager .next { text-align: right; }
.products { list-style: none; padding: 0; display: grid; gap: 14px; }
.products a { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; text-decoration: none; }
.products span { display: block; color: var(--muted); }
.bottom { border-top: 1px solid var(--line); padding: 18px 24px; text-align: center; font-size: 14px; color: var(--muted); display: flex; gap: 20px; justify-content: center; }
.zoom { border: 0; padding: 12px; border-radius: 12px; background: #fff; max-width: 96vw; max-height: 94vh; cursor: zoom-out; }
.zoom::backdrop { background: rgb(0 0 0 / .75); }
.zoom img { display: block; max-width: 100%; height: auto; }
.zoom button { position: sticky; top: 0; float: right; border: 0; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; background: #0f4c4a; color: #fff; cursor: pointer; }
@media (max-width: 1320px) {
  .brand span { display: none; }
}
@media (max-width: 1150px) {
  .shell { grid-template-columns: 230px minmax(0, 1fr); }
  .toc { display: none; }
  .store { display: none; }
  .side a.side-store { display: block; }
}
@media (max-width: 900px) {
  /* the full plugin name is long: up to three lines instead of cutting off the technical name */
  .brand { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.3; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .top { padding: 0 10px; gap: 8px; }
  .menu, .lang { padding-left: 8px; padding-right: 8px; }
  .menu { display: block; flex: none; font-size: 18px; line-height: 1.2; }
  .brand span { display: none; }
  .home span { display: none; }
  .home { padding: 5px 7px; }
  .brand { font-size: 12px; }
  h1 { font-size: 1.55rem; overflow-wrap: anywhere; }
  .side { display: none; position: fixed; inset: 60px 0 0; height: auto; z-index: 9; background: var(--bg); border: 0; }
  .nav-open .side { display: block; }
  main { padding: 20px 16px 40px; }
}
