/* Photo grid: <div class="photo-grid" markdown="1"> with Markdown images (needs pages.markdown.extra) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.photo-grid p { margin: 0; }
.photo-grid img { width: 100%; height: 12rem; object-fit: cover; border-radius: 0.5rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The right part of the top bar: language, then light/dark, aligned on the same line */
.navbar-section.actions { display: flex; align-items: center; gap: 0.9rem; }

/* Banners: hero-banner (full width) and hero-full (the rest of the screen under the header) */
.modular-hero.hero { position: relative; display: grid; place-items: center; background-size: cover; background-position: center; color: #fff; text-align: center; }
.modular-hero.hero .image-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)); }
.modular-hero.hero .container { position: relative; }
.modular-hero.hero h1, .modular-hero.hero .lead, .modular-hero.hero p { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.modular-hero.hero-banner { min-height: 42vh; padding: 5rem 0 3rem; }
.modular-hero.hero-full { min-height: calc(100svh - var(--q2-header-height)); padding: 4rem 0; }
.hero-card .container { max-width: 44rem; padding: 2rem; background: #fff; color: #222; border-radius: 0.6rem; }
.hero-card .container, .hero-card .container p, .hero-card .container .lead { color: #333; text-shadow: none; }
.hero-card .container h1 { text-shadow: none; }
:root { --q2-header-height: 5rem; }
.hero-overline { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: 0.01em; opacity: 0.85; }
.site-logo { display: block; height: 3.4rem; width: auto; }
@media (max-width: 48rem) { .site-logo { height: 2.8rem; } }

/* Contact form */
.content-item form .form-group, .content-item form .form-field { margin-bottom: 1rem; }
.content-item form input[type="text"], .content-item form input[type="email"], .content-item form textarea { width: 100%; box-sizing: border-box; }
.content-item form textarea { min-height: 9rem; }
.form-honeypot, .honeypot { position: absolute; left: -9999px; }

/* Full-page blocks (the banner, the sections of a home page, the footer): js/softscroll.js moves between them with the wheel and the keys and lets the page
   scroll freely inside a block taller than the screen, so there is no CSS snapping on a computer. Touch screens only get a loose snapping (proximity). */
html:has(.hero-full) .hero-full, .home-section, .snap-section { scroll-snap-align: start; scroll-margin-top: var(--q2-header-height); }
@media (pointer: coarse) { html:has(.hero-full), html:has(.home-section), html:has(.snap-section) { scroll-snap-type: y proximity; } }
html.is-soft-scrolling { scroll-snap-type: none !important; }
@media (prefers-reduced-motion: reduce) { html:has(.hero-full), html:has(.home-section), html:has(.snap-section) { scroll-snap-type: none; } }
/* A section of a page with a full-screen banner (a rule --- in the text starts one): at least one screen high, content centred */
.snap-section { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--q2-header-height)); padding: 2rem 0; }
.snap-section > .container { width: 100%; }
.hero-overline + h1 { margin-top: 0; }

/* The footer: logo, contact and social links, legal information, light/dark switch and languages */
.site-footer { margin-top: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--pico-muted-border-color, rgba(127, 127, 127, 0.3)); font-size: 0.95rem; }
#footer.site-footer { text-align: left; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
/* The logo, the legal information and the switch take their own width, the contact and the social links the rest (they wrap); the
   switch sits on the right edge, where the menu ends */
@media (min-width: 48rem) { .footer-grid { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 2.5rem; } .footer-switch { justify-self: end; } }
.footer-contact .social { flex-wrap: wrap; }
.footer-grid p { margin: 0 0 0.75rem; }
.footer-logo .site-logo { max-height: 4rem; width: auto; }
#footer .theme-toggle { display: inline-flex; align-items: center; margin: 0 0 1rem; padding: 0.2rem 0; opacity: 0.8; background: none; border: 0; color: inherit; width: auto; }
#footer .theme-toggle:hover { opacity: 1; }

/* No decorative dash above the titles (it made the image of a card look like it belonged to the previous post) */
h2::before, h1 + h2::before, .hero h2::before, .text-center h2::before, .card-title :is(h1, h2)::before, .card-body :is(h1, h2)::before { content: none; display: none; }

/* Posts as cards: a box of its own, the image on top, columns that adapt */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); align-items: stretch; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 56rem) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 38rem) { .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; } }
.news-card, .record-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(127, 127, 127, 0.28); border-radius: 0.6rem; background: var(--q2-bg-elev, Canvas); }
.news-card__image, .record-card__image { display: block; line-height: 0; }
.news-card__image img, .record-card__image img { width: 100%; height: auto; display: block; }
.news-card__body, .record-card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.9rem 1rem 1.1rem; }
.news-card__meta, .record-card__meta { margin: 0.25rem 0 0; font-size: 0.8rem; opacity: 0.7; }
.news-card__title, .record-card__title { margin: 0; font-size: 1.1rem; line-height: 1.25; }
.news-card__title a, .record-card__title a { color: inherit; text-decoration: none; }
.news-card__title a:hover, .record-card__title a:hover { text-decoration: underline; }
.news-card__text, .record-card__text { margin: 0.25rem 0 0; font-size: 0.9rem; opacity: 0.85; }

/* Sections of a home page: presentation with an image on the side, then blocks of cards */
.home-section { margin: 3.5rem 0; }
.home-section > h2 { margin: 0 0 1.25rem; }
.home-intro { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 48rem) { .home-intro--image { grid-template-columns: 3fr 2fr; } }
.home-intro__image img { width: 100%; height: auto; border-radius: 0.6rem; display: block; }
.home-more { margin-top: 1.5rem; text-align: center; }

/* Top bar: the main menu on the left next to the logo (never on the right), the right side is for what is secondary */
#header .desktop-menu { justify-content: flex-start; }
#header .navbar-section.actions { gap: 1rem; }

/* Breadcrumbs, only in a sub-section */
.breadcrumbs-nav { margin: 0 0 1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.85rem; opacity: 0.85; }
.breadcrumbs li { margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.6rem; opacity: 0.6; }

/* Band of categories: buttons that lead to the category, the current one filled */
.category-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 1.75rem; padding: 0.75rem; border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 0.6rem; background: color-mix(in srgb, #7f7f7f 6%, var(--q2-bg-elev, Canvas)); }
.category-pill { padding: 0.35rem 0.95rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: 999px; color: inherit; font-size: 0.9rem; text-decoration: none; }
.category-pill:hover, .category-pill:focus-visible { border-color: var(--q2-accent); }
.category-pill.is-active { color: var(--q2-accent-contrast, #fff); background: var(--q2-accent); border-color: var(--q2-accent); }

/* Lists of posts: a grid read by rows; with JavaScript it becomes a masonry that still reads by rows (see js/masonry.js) */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; align-items: start; }
.blog-grid > .news-card { display: flex; width: 100%; margin: 0; }
.blog-grid.is-masonry { grid-auto-rows: 1px; grid-auto-flow: row dense; row-gap: 0; align-items: start; }

/* A page with a side column (purchase, player, links, payment form): two columns when the screen allows, the side one stays in view */
.with-aside { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 60rem) { .with-aside { grid-template-columns: minmax(0, 2fr) minmax(17rem, 1fr); } .with-aside > aside { position: sticky; top: calc(var(--q2-header-height) + 1rem); } }
.with-aside > aside > * + * { margin-top: 1.5rem; }
.aside-box { padding: 1rem 1.1rem; border: 1px solid rgba(127, 127, 127, 0.28); border-radius: 0.6rem; background: var(--q2-bg-elev, Canvas); }
.aside-box > h2, .aside-box > h3 { margin: 0 0 0.6rem; font-size: 1rem; }
#header .desktop-menu, #header .dropmenu { min-width: 0; }
#header .dropmenu > ul { flex-wrap: nowrap; white-space: nowrap; }
#header .social { display: none; }
@media (min-width: 72rem) { #header .social { display: flex; } }
.footer-contact .social { margin-top: 0.5rem; }
.footer-contact .social a { font-size: 1.1rem; width: 2rem; height: 2rem; }
.footer-contact .social { margin-left: -0.3rem; }

.tag-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.tag-chips li { list-style: none; margin: 0; padding: 0.05rem 0.55rem; border: 1px solid currentColor; border-radius: 999px; font-size: 0.72rem; opacity: 0.75; }
.news-card__image--contain { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: var(--pico-card-sectioning-background-color, rgba(128, 128, 128, 0.12)); }
.news-card__image--contain img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

/* A list with a class is a component (tags, buttons, menus), not prose: no bullets */
ul[class] > li { list-style: none; }

/* Running text may be hyphenated (the parent theme does it), titles never are */
h1, h2, h3, h4, h5, h6 { hyphens: manual; text-wrap: balance; }

/* A post without a title: an arrow leads to it, the text of the card stays the main thing */
.news-card__more { margin: 0.5rem 0 0; text-align: right; }
.news-card__more a { text-decoration: none; opacity: 0.7; }
.news-card__more a:hover { opacity: 1; }

/* The attribution of a quote: the last paragraph of the quote written as <cite>Author, Work</cite>, set apart (the dash comes from the style) */
blockquote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.9em; text-align: right; opacity: 0.75; }
blockquote cite::before { content: "\2014\00a0"; }

/* Radios and checkboxes keep their border when focused: quark2 makes the border of a focused field transparent, which hid the
   thick border of the checked one until the focus moved elsewhere */
input[type=radio]:focus, input[type=checkbox]:focus { border-color: var(--pico-border-color); }


/* The title of a page: the display size of quark2 (up to 60px) is kept for the heroes */
.content-item h1, .blog-page-header h1 { font-size: clamp(2rem, 2.5vw + 1.1rem, 3rem); line-height: 1.1; }

/* A row of images (a <div class="image-row" markdown="1"> around them in a text): same width, wrapping on a narrow screen */
.image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: 1rem; margin: 1.5rem 0; align-items: start; }
.image-row p { margin: 0; }
.image-row img { display: block; width: 100%; height: auto; border-radius: 0.4rem; }

/* The opening text of a page (header lead:): bigger, at the top of the content */
.page-lead { margin: 0 0 1.75rem; font-size: 1.2rem; font-weight: 400; line-height: 1.55; color: inherit; }
.page-lead > :last-child { margin-bottom: 0; }
.page-lead p, .page-lead li { font-size: inherit; }

/* The home page (theme template w4os/home.html.twig): text and picture side by side where the column is wide enough, cards with an
   icon, the install ways; in the side columns, the support box under the Connect block of the plugin */
.w4os-home-layout { gap: 2.5rem !important; }
.w4os-home-main { container-type: inline-size; }
.w4os-home-main > h2 { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(127, 127, 127, 0.25); }
.home-intro { display: grid; gap: 1.75rem; align-items: center; margin-bottom: 2rem; }
.home-intro img { width: 100%; height: auto; display: block; border-radius: 0.6rem; box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.35); }
.home-intro p:has(img) { margin: 0; }
@container (min-width: 40rem) { .home-intro { grid-template-columns: 3fr 2fr; } }
.tool-cards ul, .install-cards ul { display: grid; gap: 1.25rem; margin: 1.75rem 0; padding: 0; list-style: none; }
.tool-cards ul { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.install-cards ul { grid-template-columns: 1fr; }
@container (min-width: 28rem) { .install-cards ul { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 60rem) { .install-cards ul { grid-template-columns: repeat(4, 1fr); } }
.tool-cards li, .install-cards li { list-style: none; margin: 0; padding: 1.1rem 1.2rem 1.25rem; border: 1px solid rgba(127, 127, 127, 0.3); border-radius: 0.7rem; transition: border-color 0.2s, transform 0.2s; }
.tool-cards li::before, .tool-cards li::marker, .install-cards li::before, .install-cards li::marker { content: none; }
.tool-cards li:hover, .install-cards li:hover { border-color: var(--q2-accent, #61c909); transform: translateY(-2px); }
.tool-cards li > i, .install-cards li > i { display: block; margin-bottom: 0.6rem; font-size: 1.5rem; color: var(--q2-accent, #61c909); }
.install-cards li { border-top: 3px solid var(--q2-accent, #61c909); background: color-mix(in srgb, var(--q2-accent, #61c909) 10%, var(--q2-bg-elev, Canvas)); }

/* Side columns: grid blocks, boxes and news, apart from each other; the support box */
.w4os-home-grid > * + *, .w4os-home-news > * + * { margin-top: 2rem; }
/* The support of the project, a box in a solid tint of the green of w4os on the surface of the theme */
.home-box { padding: 1.2rem 1.25rem; border-radius: 0.7rem; border: 1px solid rgba(97, 201, 9, 0.45); background: color-mix(in srgb, #61c909 7%, var(--q2-bg-elev, Canvas)); }
.home-box h3 { margin-top: 0; }
.home-box h3 i { color: var(--q2-accent, #61c909); margin-right: 0.25rem; }
.home-box p { font-size: 0.95rem; }
.home-support__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.9rem 0 0; }
.home-support__buttons img { display: block; height: 2.3rem; width: auto; }
.home-support__magiiic img { background: #fff; padding: 0.3rem 0.5rem; border-radius: 0.35rem; height: 2.3rem; box-sizing: border-box; }
/* A link to more (Details...): the look is the w4os plugin's .w4os-more (Markdown: [Details](/download?classes=w4os-more)); in the
   install cards, over the w4os theme's rule for their last link (inline, an arrow after it), and a little bolder */
.install-cards li a.w4os-more { display: block; font-weight: 600; }
.install-cards li a.w4os-more::after { content: none; }

/* The accent of the w4os plugin's blocks (Connect, callouts...) is the site's */
:root { --w4os-accent: var(--q2-accent); }

/* What grid websites run on (template grids.html.twig): the web systems of the grid websites in two groups, a table each in two
   columns, the pie (a gap between the groups) above the shorter table; the list of the grids using w4os at the side. A colour per
   system id:
   the grids with an OpenSim web interface in colours, w4os in the accent, the others from Paul Tol's muted palette (colour-blind
   safe, readable on light and dark); the grids without one in shades of the text colour (light and dark follow it), set by the
   template in the order shown. The table gives every figure, the pie is a picture of it. */
.grids-page { container-type: inline-size; position: relative; }
/* The list of the grids, a plain list: under the title, or beside the page, out of the width of the menu, on a screen wide enough
   for it (the page's right edge, its gap and the list's width within the screen) */
.grids-side { margin: 0 0 2.5rem; }
.grids-side > p { margin: 0.4rem 0; }
.grids-list { padding-left: 1.2rem; margin: 0.6rem 0 0; }
.grids-list li { margin: 0; padding: 0; }
.grids-list a { display: inline; }
@media (min-width: 115rem) { .grids-side { position: absolute; top: 3rem; left: calc(100% + 2.5rem); width: 18rem; margin: 0; } }
.grid-systems {
    --system-wordpress_w4os: var(--q2-accent);
    --system-dreamgrid: #AA4499;
    --system-diva_wifi: #44AA99;
    --system-oswebinterface: #882255;
    --system-modlos: #88CCEE;
    --system-jopensim: #CC6677;
    --system-hosted: #DDCC77;
    --system-custom: #332288;
    --system-other_cms_ui: #999933;
    container-type: inline-size;
}
.grid-systems__chart { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; }
/* A phone: the pie first, then the two tables; wider: two columns of the same width, the pie above the shorter table */
.grid-systems__group { display: contents; }
.grid-systems__pie { order: -1; flex: 0 0 auto; display: block; width: min(100%, 14rem); height: auto; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 25%, transparent); }
.grid-systems__table { flex: 1 1 100%; width: 100%; }
@container (min-width: 36rem) { .grid-systems__group { display: block; flex: 1 1 0; min-width: 0; } .grid-systems__pie { margin: 0 auto 1.5rem; } }
/* A slice and its row lit together (js/grids.js), the slice under the pointer alone without it */
.grid-systems__slice { fill: none; stroke-width: 50; transition: opacity 0.15s; }
.grid-systems__pie:hover .grid-systems__slice:not(:hover), .grid-systems__chart.is-lit .grid-systems__slice:not(.is-active) { opacity: 0.3; }
.grid-systems__chart.is-lit tr.is-active > * { background: color-mix(in srgb, currentColor 10%, var(--q2-bg, transparent)); }
.grid-systems__table caption { caption-side: top; text-align: left; margin-bottom: 0.4rem; font-weight: 600; }
.grid-systems__table th[scope="row"] { font-weight: normal; padding-left: 2.4em; text-indent: -1.4em; }
.grid-systems__table td { text-align: right; white-space: nowrap; }
.grid-systems__updated { display: block; font-size: 0.85em; opacity: 0.75; text-indent: 0; }
.grid-systems__date { white-space: nowrap; }
.grid-systems__missing { margin: -0.4rem 0 1.4rem; }
.grid-systems__swatch { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 0.2em; margin-right: 0.5em; vertical-align: -0.1em; box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 25%, transparent); }
.avatar-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 0.5rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 48rem) { .form-layout { grid-template-columns: 1fr; } }
