/* Mega Web - default theme. Colours, fonts, radius and width come from the designer as CSS variables. */
/* The theme is a CSS layer below the designer's (design.css), whose settings win where a site has a design. */
@layer mw-theme, mw-base, mw-design, mw-custom;
@layer mw-theme {
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--font-size, 18px)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-top: 2.5rem; padding-bottom: 4rem; }
.theme-page { padding-top: 2.5rem; padding-bottom: 4rem; }
img, video, audio { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin: .2em 0 .4em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.6) blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; padding: 8px 0; }
.brand-title { font: 700 1.2rem/1.2 var(--font-heading); letter-spacing: -.01em; }
.brand-tagline { font-size: .82rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--surface); }
.search-open { background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; display: inline-flex; }
.search-open:hover { color: var(--text); background: var(--surface); }

/* Language and time zone pickers (top right) */
.site-tools { display: flex; align-items: center; gap: 4px; }
.header-row .site-nav { margin-inline-start: auto; }
.picker { position: relative; }
.picker > summary { list-style: none; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.picker > summary::-webkit-details-marker { display: none; }
.picker > summary:hover, .picker[open] > summary { color: var(--text); background: var(--surface); }
.picker-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px; max-height: 70vh; overflow: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); }
.picker-menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.picker-menu a:hover { background: var(--surface); }
.picker-menu a[aria-current] { font-weight: 700; color: var(--accent); }
.picker-menu .lang-en { color: var(--muted); font-weight: 400; }
.tz-menu { min-width: 260px; padding: 10px; }
.tz-menu label { display: grid; gap: 6px; font-size: .82rem; color: var(--muted); }
.tz-select { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 7px; max-width: 100%; }
.tz-current { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lists */
.intro { margin-bottom: 2rem; font-size: 1.1rem; }
.cards { display: grid; gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.card-cover img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.card-body { padding: 1.1rem 1.3rem 1.3rem; }
.card h2 { font-size: 1.35rem; margin: .15em 0 .35em; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
/* Products and other content types (a type's list, a List element): side by side, as many as fit. */
.cards.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cards.grid .card-cover img { aspect-ratio: 4 / 3; }
.cards.grid .card h2 { font-size: 1.15rem; }
time, .eyebrow { color: var(--muted); font-size: .85rem; letter-spacing: .02em; }
.eyebrow { text-transform: uppercase; margin: 0; }
.empty { color: var(--muted); }
.list-header { margin-bottom: 1.5rem; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; gap: 1rem; }
.pagination a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.page-of { color: var(--muted); font-size: .9rem; }

/* Entries */
.entry-header { margin-bottom: 1.5rem; }
.entry-cover { margin: 0 0 2rem; }
.entry-cover img { width: 100%; border-radius: var(--radius); display: block; }
.tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: .85rem; text-decoration: none; background: var(--surface); border: 1px solid var(--border); padding: 2px 10px; border-radius: 999px; }
.prose { overflow-wrap: break-word; }
.prose img { border-radius: calc(var(--radius) * .6); }
.prose blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 4px solid var(--accent); color: var(--muted); }
.prose pre { background: var(--surface); border: 1px solid var(--border); padding: 1em; border-radius: 8px; overflow: auto; font-size: .88rem; }
.prose code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }
.prose :not(pre) > code { background: var(--surface); padding: .1em .35em; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: .45em .7em; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-nav a { text-decoration: none; display: flex; flex-direction: column; color: var(--text); font-weight: 600; }
.post-nav a.older { text-align: right; }
.post-nav small { color: var(--muted); font-weight: 400; }

.button { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 10px 18px; border-radius: 999px; text-decoration: none; font: inherit; font-size: .95rem; cursor: pointer; }
.button.ghost { background: transparent; color: var(--accent); }
.not-found-box { text-align: center; padding: 3rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Search */
.search-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 10vh auto auto; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.search-dialog::backdrop { background: rgba(10,10,20,.45); backdrop-filter: blur(2px); }
.search-form { display: flex; border-bottom: 1px solid var(--border); }
.search-form input { flex: 1; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.1rem; padding: 16px 18px; outline: none; }
.search-form button { border: 0; background: none; color: var(--muted); padding: 0 16px; cursor: pointer; font-size: .8rem; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow: auto; max-height: calc(min(70vh, 640px) - 60px); }
.search-results li a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.search-results li a:hover, .search-results li a:focus { background: var(--surface); outline: none; }
.search-results strong { display: block; }
.search-results span { color: var(--muted); font-size: .9rem; }
.search-results mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; border-radius: 3px; }
.search-results .none { padding: 14px; color: var(--muted); }

/* Editor bar (only shown to logged-in editors, added by site.js) */
.mw-editbar { position: fixed; right: 16px; bottom: 16px; display: flex; gap: 6px; z-index: 20; }
.mw-editbar a { background: #111; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 system-ui, sans-serif; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }

/* A design's sections with a link name (#name): menu links glide to them, below the sticky header */
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Galleries: a design box's pictures, full size over the page (site.js) */
.mw-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,14,.92); color: #fff; overflow: hidden; }
.mw-lightbox::backdrop { background: rgba(8,8,14,.6); }
.mw-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px; }
.mw-lightbox img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px #000; cursor: default; user-select: none; }
.mw-lightbox figcaption { font-size: .95rem; opacity: .85; text-align: center; max-width: 70ch; }
.mw-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.mw-lightbox button:hover { background: rgba(255,255,255,.25); }
.mw-lightbox .mw-lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.mw-lightbox .mw-lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.mw-lightbox .mw-lb-close { right: 14px; top: 14px; font-size: 26px; }
.mw-lightbox .mw-lb-count { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: .85rem; opacity: .7; }
[dir="rtl"] .mw-lightbox .mw-lb-prev { left: auto; right: 14px; }
[dir="rtl"] .mw-lightbox .mw-lb-next { right: auto; left: 14px; }
[dir="rtl"] .mw-lightbox button span { display: inline-block; transform: scaleX(-1); }

/* A content type's fields (a product's price, an event's date…: Types::html) */
.entry-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1rem 1.5rem; margin: 0 0 2rem; }
.entry-fields .field { margin: 0; min-width: 0; }
.entry-fields .field.wide { grid-column: 1 / -1; }
.entry-fields dt { color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; }
.entry-fields dd { margin: 0; overflow-wrap: anywhere; }
.entry-fields dd time { color: inherit; font-size: inherit; letter-spacing: normal; }
.entry-fields .field-type-money dd { font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.entry-fields dd > .field-picture { margin: 0; }
.entry-fields dd > .field-picture img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.entry-fields dd > .field-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.entry-fields dd > .field-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) / 2); display: block; }
.entry-fields dd > .field-group { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-fields dd > .field-group th, .entry-fields dd > .field-group td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-fields dd > .field-group th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.entry-fields .muted { color: var(--muted); font-size: .85rem; }
.entry-fields.small { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 .5rem; }
.entry-fields.small dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.entry-fields.small .field-type-money dd { font-size: 1.05rem; }

/* Submenus (Menus::links): open with a click or tap, and on hover with a mouse (site.js) */
.site-nav summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: .95rem; cursor: pointer; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary:hover, .nav-sub[open] > summary, .site-nav summary.is-current { color: var(--text); background: var(--surface); }
.site-nav summary svg { transition: transform .15s ease; }
.nav-sub { position: relative; }
.nav-sub[open] > summary svg { transform: rotate(180deg); }
.nav-sub-menu { position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; max-width: min(320px, 90vw); max-height: 70vh; overflow: auto;
  display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); }
.nav-sub-menu a, .nav-sub-menu .nav-label { display: block; color: var(--text); }
.nav-sub-menu .nav-self { font-weight: 600; }
.nav-group { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; border-top: 1px solid var(--border); }
.nav-group:first-child { border-top: 0; }
.nav-group .nav-group-head { font-weight: 600; }
.nav-group-head.nav-label { padding: 6px 10px; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.site-nav .nav-deep { padding-inline-start: 22px; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-nav a { padding: 2px 8px; }
.footer-nav .nav-sub-menu { top: auto; bottom: calc(100% + 6px); }

/* Forms (Forms::html) */
.mw-form { display: grid; gap: 1rem; max-width: 40rem; margin: 1.5rem 0; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-fields > * { grid-column: 1 / -1; min-width: 0; }
.form-fields > .half { grid-column: auto; }
.form-field { display: grid; gap: .35rem; align-content: start; margin: 0; padding: 0; border: 0; }
.form-field > label, .form-field > legend { font-weight: 600; font-size: .95rem; padding: 0; }
.form-field > legend { margin-bottom: .35rem; }
.form-req { color: var(--accent); }
.mw-form input:not([type="checkbox"]):not([type="radio"]), .mw-form select, .mw-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) / 2); padding: 10px 12px; }
.mw-form textarea { resize: vertical; min-height: 7em; }
.mw-form input:focus-visible, .mw-form select:focus-visible, .mw-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; cursor: pointer; padding: 2px 0; }
.form-check input { width: 1.15em; height: 1.15em; margin: .25em 0 0; accent-color: var(--accent); flex: none; }
.form-help { margin: 0; color: var(--muted); font-size: .85rem; }
.form-error { margin: 0; color: color-mix(in srgb, #e53935 75%, var(--text)); font-size: .88rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: color-mix(in srgb, #e53935 75%, var(--text)) !important; }
.form-note { color: var(--muted); }
.form-note p { margin: 0 0 .4rem; }
.form-note .form-note-title { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 14px; border-radius: calc(var(--radius) / 2); background: var(--surface); border: 1px solid var(--border); }
.form-status:focus { outline: none; }
.form-status.bad { border-color: color-mix(in srgb, #e53935 75%, var(--text)); }
.mw-form.sent .form-status { border-color: var(--accent); font-size: 1.05rem; }
.form-actions { margin: 0; }
.mw-form.sending .form-actions button { opacity: .6; cursor: progress; }
.form-sent-errors { padding-inline-start: 1.2em; }

/* Shop: Add to cart, the cart link, the cart, the checkout and an order's page (Shop, Orders). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--muted); padding: 8px; border-radius: 8px; text-decoration: none; }
.cart-link:hover { color: var(--text); background: var(--surface); }
.cart-count { position: absolute; top: 0; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 700 .68rem/18px var(--font-body); text-align: center; }
.cart-count[hidden] { display: none; }
.buy { margin: 1.25rem 0 1.75rem; display: grid; gap: .6rem; justify-items: start; }
.buy-price { margin: 0; font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.buy-row { display: flex; align-items: end; gap: .75rem; flex-wrap: wrap; }
.buy-qty { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.buy-qty input, .cart-qty input { width: 5.5em; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) / 2); padding: 9px 10px; }
.buy .button { padding: 11px 22px; }
.buy.sending .button { opacity: .6; cursor: progress; }
.buy-note { margin: 0; color: var(--muted); font-size: .9rem; }
.sold-out .buy-note { font-weight: 700; color: var(--text); }
.buy-status { margin: 0; font-size: .95rem; }
.buy-status.bad { color: color-mix(in srgb, #e53935 75%, var(--text)); font-weight: 600; }
.button.big { padding: 13px 26px; font-size: 1.02rem; }
.button[data-disabled] { opacity: .5; pointer-events: none; }
.shop-alert { padding: 12px 14px; border-radius: calc(var(--radius) / 2); border: 1px solid color-mix(in srgb, #e53935 60%, var(--border)); background: color-mix(in srgb, #e53935 7%, var(--bg)); }
.shop-alert:focus { outline: none; }

.cart-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto 7em auto; align-items: center; gap: 1rem; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-pic img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: calc(var(--radius) / 2); background: var(--surface); }
.cart-what { display: grid; gap: .15rem; min-width: 0; }
.cart-title { color: var(--text); font-weight: 600; text-decoration: none; }
.cart-title:hover { color: var(--accent); }
.cart-unit { color: var(--muted); font-size: .9rem; }
.cart-note { color: color-mix(in srgb, #e53935 75%, var(--text)); font-size: .88rem; font-weight: 600; }
.cart-total { text-align: end; font-weight: 600; }
.cart-remove { background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; display: inline-flex; }
.cart-remove:hover { color: var(--text); background: var(--surface); }
.cart-update { margin: 1rem 0 0; }
.cart-foot { display: grid; justify-items: end; text-align: end; gap: .25rem; margin-top: 1.5rem; }
.cart-foot p { margin: 0; }
.cart-sum { font-size: 1.2rem; display: flex; gap: 1rem; align-items: baseline; }
.cart-foot .button { margin: .75rem 0 .5rem; }

.checkout-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; max-width: none; margin: 0; }
.checkout-main { display: grid; gap: 1.75rem; min-width: 0; }
.checkout-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout-step > legend { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; padding: 0; margin-bottom: .75rem; }
.checkout-step[hidden] { display: none; }
.choice-list { display: grid; gap: .5rem; }
.choice { display: flex; align-items: flex-start; gap: .75rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: calc(var(--radius) / 2); cursor: pointer; background: var(--bg); }
.choice:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { width: 1.15em; height: 1.15em; margin: .3em 0 0; accent-color: var(--accent); flex: none; }
.choice-text { display: grid; gap: .1rem; flex: 1; }
.choice-text small { color: var(--muted); font-size: .85rem; }
.choice-price { font-weight: 600; white-space: nowrap; }
.checkout-terms { display: grid; gap: .5rem; }
.checkout-terms summary { cursor: pointer; color: var(--accent); }
.checkout-summary { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.checkout-summary h2, .order-columns h2, .pay-box h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.summary-lines { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .4rem; font-size: .95rem; }
.summary-lines li, .summary-totals > div, .pay-details > div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-totals { margin: 0; padding-top: .75rem; border-top: 1px solid var(--border); display: grid; gap: .35rem; }
.summary-totals[hidden] { display: none; }
.summary-totals dt, .pay-details dt { color: var(--muted); }
.summary-totals dd, .pay-details dd { margin: 0; text-align: end; }
.summary-tax { font-size: .88rem; }
.summary-total { font-size: 1.2rem; font-weight: 700; padding-top: .35rem; }
.summary-total dt { color: var(--text); }
.checkout-summary .form-actions { margin-top: 1.25rem; }
.checkout-summary .button { width: 100%; }
.checkout-summary .button.sending { opacity: .6; cursor: progress; }

.order-state { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.order-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); }
.order-badge.status-paid, .order-badge.status-shipped { color: color-mix(in srgb, #2e7d32 80%, var(--text)); border-color: color-mix(in srgb, #2e7d32 45%, var(--border)); }
.order-badge.status-waiting { color: color-mix(in srgb, #b26a00 85%, var(--text)); border-color: color-mix(in srgb, #b26a00 45%, var(--border)); }
.order-badge.status-failed, .order-badge.status-cancelled { color: color-mix(in srgb, #e53935 75%, var(--text)); }
.pay-box { margin: 1.5rem 0 2rem; padding: 1.25rem 1.35rem; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); max-width: 34rem; }
.pay-box p { margin: 0 0 .75rem; }
.pay-details { margin: 0 0 .75rem; display: grid; gap: .35rem; }
.pay-details dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-reference dd { color: var(--accent); font-size: 1.1rem; }
.order-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; margin-bottom: 2rem; }
.order-columns h2 + p { margin-top: 0; }
.order-columns > div > h2:not(:first-child) { margin-top: 1.5rem; }

@media (max-width: 860px) {
  .checkout-form, .order-columns { grid-template-columns: 1fr; gap: 1.75rem; }
  .checkout-summary { position: static; }
}
@media (max-width: 640px) {
  .cart-line { grid-template-columns: 56px 1fr auto; grid-template-areas: "pic what remove" "pic qty total"; row-gap: .5rem; }
  .cart-pic { grid-area: pic; align-self: start; }
  .cart-pic img { width: 56px; height: 56px; }
  .cart-what { grid-area: what; }
  .cart-qty { grid-area: qty; }
  .cart-total { grid-area: total; }
  .cart-remove { grid-area: remove; }
  .cart-foot { justify-items: stretch; text-align: start; }
  .cart-sum { justify-content: space-between; }
}

@media (max-width: 640px) {
  .form-fields > .half { grid-column: 1 / -1; }
  .nav-sub-menu { position: fixed; inset-inline: 12px; top: auto; margin-top: 6px; max-width: none; }
}

@media (max-width: 640px) {
  .entry-fields dd > .field-group thead { display: none; }
  .entry-fields dd > .field-group tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); }
  .entry-fields dd > .field-group td { display: grid; grid-template-columns: 9em 1fr; gap: 8px; border: 0; padding: 3px 0; }
  .entry-fields dd > .field-group td::before { content: attr(data-label); color: var(--muted); font-size: .82rem; }
  .mw-lightbox figure { padding: 56px 8px 48px; }
  .mw-lightbox .mw-lb-prev, .mw-lightbox .mw-lb-next { top: auto; bottom: 6px; translate: none; }
  body { font-size: 17px; }
  main, .theme-page { padding-top: 1.5rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.older { text-align: left; }
}
/* The master page (Universe): its sites as cards, a search box and the categories. */
.site-cards { display: grid; gap: 1.25rem; }
.site-card .card-body { display: flex; flex-direction: column; gap: .35rem; }
.site-card .card-body > p:last-child { margin-top: auto; padding-top: .5rem; }
.site-card-cover { display: block; }
.site-card-letter { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--accent); color: #fff; font-size: 3rem; font-weight: 700; }
.site-card-category { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .04em; color: var(--accent) !important; }
.site-card-address { font-size: .85rem !important; overflow-wrap: anywhere; }
.site-bar { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.site-search { display: flex; gap: .5rem; max-width: 40rem; }
.site-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); }
.site-categories { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-categories a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .92rem; background: var(--surface); }
.site-categories a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-categories .count { opacity: .7; font-size: .85em; }
.site-categories.subs a { font-size: .85rem; padding: 4px 12px; }
.site-cards-more { margin: .5rem 0 0; }
@media (max-width: 640px) { .site-search { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
}
