Skip to content

Component classes

Class names moss emits on auto-generated components. Target them directly in .moss/theme/style.css.

ClassKindDescription
.moss-cardscontainerA listing of child pages — auto-generated from a folder's children, or hand-picked by a :::grid {.summary} fence, which emits this same container so both read through one card renderer. The single canonical container; layout density on data-layout (grid for cover-led tiles, list for cover+excerpt rows, minimal for text-only year-grouped indexes). Wrapped in .moss-cards-container to scope CSS container queries.
.moss-cards-containercontainerOuter wrapper around .moss-cards that carries container-type: inline-size so the grid can use @container queries instead of viewport @media queries. Layout-agnostic — wraps any data-layout variant. A body embed also reads the same placement vocabulary every other embed kind does: data-width, a moss-align-left / moss-align-right float class, and a content-relative size as inline style="width:NN%", which replaces the data-width token when both are written — the frontmatter-synthesized listing never carries any of the three.
.moss-cards-minimal-year-groupcontainerYear-grouped section in minimal card layout (e.g. blog index). Modifier --summary collapses past years.
.minimalinstanceBare co-class on a minimal year group, alongside the prefixed name. Retained because themes in the wild key on it.
.moss-cards-minimal-year-group--summarycontainerBEM modifier on .moss-cards-minimal-year-group. Applied to year groups that should render in collapsed summary form (e.g. past years on a blog index).
.moss-cardinstancev1 collapsed shape — single canonical instance class inside .moss-cards. Layout-specific styling targets .moss-cards[data-layout=X] .moss-card. Tag is <a> for ordinary cards and <div> for linkblog cards ([data-linkblog]). A card whose cover is a picture moss read carries the picture's width over its height as --item-cover-ratio in its style (3 / 2), for a theme that lays cards out by each cover's shape.
.moss-card-linkinstanceThe title link of an event card whose page has tickets: or online:, which then is not one whole-card anchor. Its ::after stretches over the card, so the card is still one click target; the card carries position: relative.
.moss-card-coverinstanceCover media slot inside .moss-card. Gets .moss-card-no-cover modifier when no image is present, or data-cover="quote" when a sibling card in the same listing has a cover and this one doesn't.
.moss-marquee-trackinstanceThe strip that slides sideways: inside a .moss-card-pictures[data-motion="marquee"] (motion:marquee) or a .moss-gallery[data-motion="marquee"] (:::gallery marquee). It holds two .moss-marquee-sets and is translated by one set's width, so the loop has no seam. Written once as markup; the stylesheet and marquee.js decide whether it moves, and a strip whose set is narrower than its box does not.
.moss-marquee-controlcontainerThe one button on a page that pauses and resumes every sliding strip, so a reader can stop the motion for good (WCAG 2.2.2). Added by marquee.js before the first strip that moves, never by the build; its label switches between "Pause motion" and "Play motion" and the choice is remembered across pages. Hidden when no strip moves, under prefers-reduced-motion and in print. A theme may restyle it but should keep it visible.
.moss-marquee-setinstanceOne copy of a marquee's pictures. The first is the real strip; the second carries aria-hidden and inert, empty alt text and no links a reader can reach, and is not drawn at all while the strip is still.
.moss-card-picturesinstanceA strip of the page's own pictures in a summary row, in place of the single .moss-card-cover, when the listing says pictures:N (or children_pictures: N) and the page has more than one picture. Each picture is a .moss-card-cover. One row of equal columns on a wide screen; a sideways scroll row below 48rem.
.moss-card-no-coverinstanceModifier applied to .moss-card-cover when no cover media is available.
.moss-card-contentinstanceText content slot inside a grid-layout .moss-card (kicker + title + meta). A card with a cover has a tinted content band (--moss-cover-color) with white title, meta and description (--moss-cover-ink). A theme that clears that band with --moss-cover-color: transparent sets --moss-cover-ink to its own text colour, or the text is white on the page.
.moss-card-rowinstanceRow wrapper inside a list-layout .moss-card holding body + cover side-by-side.
.moss-card-bodyinstanceText body slot of a list-layout .moss-card.
.moss-card-titleinstanceTitle inside .moss-card.
.moss-card-metainstanceType-aware metadata slot (date for articles, count for folders, domain for links), with the page's resolved place appended after its date when location: names one — a bare folder's count never gets a place of its own, but a folder with its own date: (on its home page) shows that date and place first, then its article count after them. Renders ABOVE the title in horizontal mode — filling the kicker position when the explicit kicker slot is unset. To the right of the title in vertical CJK mode (the horizontal kicker position transposed). Meta IS the visual kicker, with the same uppercase overline treatment.
.moss-streaminstanceA listing drawn with children_style: stream or style:stream: one column, each page drawn whole, a hairline between pages.
.moss-stream-iteminstanceOne page in a stream: its title as a heading when it has one of its own, its body, then its date. A page that cannot be drawn whole (a folder, or a page that lists folders itself) also carries moss-stream-row and shows its title and opening words.
.moss-stream-rowinstanceA stream item drawn as a row of its title and opening words, for a page that cannot be drawn whole: a folder, a page that lists folders itself, or the page the stream sits on.
.moss-stream-titleinstanceThe title of a page that has one of its own, as a link to the page. A post with no title has none.
.moss-stream-bodyinstanceThe page's rendered body. Headings are one level lower than on the page itself, and ids are prefixed per page.
.moss-stream-dateinstanceThe page's date as a link to the page.
.moss-card-creditsinstanceThe names a term kind with cards = true shows on a listing card, in the meta after the date and place: each field's names in the kind's fields order, separated by .moss-event-sep. Plain text, never a link.
.moss-creditinstanceOne credited name on a listing card, with its role inside. data-term is the term kind's key and data-value the slug of the name, the one its term page has in its address, so .moss-card:has(.moss-credit[data-term="marks"][data-value="wanted"]) selects the cards that credit the term Wanted in the marks kind.
.moss-card-fieldinstanceA declared field with card = true, drawn on a listing card or row of a page that has a value for it, in the meta after the date and the term credits, in the fields' declaration order. Never a link; a text value keeps inline emphasis (<em>, <strong>, <code>) and drops a markdown link's target. data-field is the field's name; data-value is the slug of a choice's key in config (the text is its label), as on a placed choice, and for any other type the text itself without markup, so .moss-card:has(.moss-card-field[data-field="mark"][data-value="wanted"]) selects the cards of one value.
.moss-credit-roleinstanceThe role after a credited name: the field's label, lowercased, after a comma.
.moss-card-kickerinstanceEyebrow / overline above the title inside .moss-card.
.moss-card-kicker-faviconinstanceFavicon inline before the domain, on a [data-external] card's kicker — emitted only when one is cached for the link. Same ImageContext::Favicon synthesis the retired .link-preview-favicon used (bare <img>, no manifest, no <picture>, no LQIP).
.moss-card-permalinkinstanceAuthor's-archive link mark (★, U+2605) emitted INSIDE .moss-card-kicker for linkblog cards (those whose child page has external_url:). The card title links to the external canonical (publisher); the ★ links to the local archival copy at the page's slug. Reads as part of the kicker line — "Publisher · Year ★". Semantically distinct from Daring-Fireball's linkblog ★ (which marks discussion permalink alongside commentary) — here the local copy is the same content preserved for resilience and stable bylines, not added commentary. Putting <a>★</a> inside the kicker is valid because linkblog cards emit <div class="moss-card" data-linkblog> (not <a>) as the outer element — see the data-linkblog attribute described on .moss-card.
.moss-card-title-linkinstanceAnchor wrapping the .moss-card-title <h3> on linkblog cards. Ordinary cards have the whole-card <a class="moss-card"> as the link target — but linkblog cards switch the outer to <div> so the kicker can host a nested ★ anchor, which means the title needs its own anchor to stay clickable. Same canonical-URL target as the other inner anchors (moss-card-cover-link, moss-card-description-link).
.moss-card-cover-linkinstanceAnchor wrapping the .moss-card-cover on linkblog cards — same role as .moss-card-title-link but for the cover image / media. Targets the canonical (external) URL.
.moss-card-description-linkinstanceAnchor wrapping the .moss-card-description on linkblog cards — same role as .moss-card-title-link but for the description excerpt. Targets the canonical (external) URL.
.moss-card-descriptioninstanceExcerpt / description paragraph inside a .moss-card — below the title in both grid- and list-layout cards.
.moss-card-subtitleinstanceThe page's subtitle: under its title, on grid and summary cards and on list rows. Absent when the page has no subtitle. Muted and smaller than the title by default.
.moss-lang-markinstanceThe language of a listed page, after its title, when that page is in another language than the page listing it. The text is the language's name in the listing page's language and the mark carries that page's lang; the title and description of such a row carry the listed page's own lang. Absent on a row in the listing's language. Small, muted and outlined by default.
.moss-embed-moreinstanceTrailing "More →" link on a truncated children listing (emitted when children_limit caps the embed); links to the folder's full index. Rendered as a sibling immediately after .moss-cards-container, so it sits outside the listing's flex gap and binds to the list via its own margin-top.
.moss-folder-iteminstanceModifier on .moss-card-minimal for folder-type entries in minimal listings.
.moss-folder-titleinstanceTitle text of a folder entry in minimal listings.
.moss-folder-descriptioninstanceDescription paragraph of a folder entry in minimal listings.
.moss-folder-linkinstanceModifier on .moss-prefix-link for folder-type links in minimal listings.
.moss-prefix-linkinstanceLink with a prefix span (date or icon) and a title span. Used inside minimal cards.
.moss-prefix-link-prefixinstancePrefix slot of a prefix-link (typically a date).
.moss-prefix-link-titleinstanceTitle slot of a prefix-link.
.moss-prefix-link-textinstanceStacks a prefix-link's title over the page's subtitle. Present only on a row whose page has a subtitle; otherwise the title span sits directly in the link.
.titleinstanceBare co-class beside moss-prefix-link-title, the counterpart of date on the prefix span. Both predate the prefixed names and are still emitted for themes that key on them.
.moss-prefix-link-suffixinstanceOptional trailing slot of a prefix-link.
.moss-calloutstandaloneObsidian-style callout. The Obsidian-compat .callout class is co-emitted; type lives on data-type (v1).
.calloutstandaloneObsidian-compat class co-emitted on every callout for theme parity. Type lives on data-type (v1).
.moss-accordioncontainerA fenced div written ::: {accordion}: the folded callouts directly inside it open one at a time. Callouts outside the fence, and in another fence, are not part of the group.
.callout-titleinstanceTitle row of a callout.
.callout-contentinstanceBody container of a callout.
.moss-embedstandaloneBase class on every typed embed. Kind on data-type (v1), including audio and video. Ambient video: add data-loop via ![[clip.mp4|loop]]. .moss-embed-audio and .moss-embed-video still ride alongside as co-classes on the element (see their own entries) — .moss-embed-pdf / -notebook / -table / -iframe / -3d are the retired ones, collapsed into data-type.
.moss-derivedstandaloneWraps the text derived from a file by an embed of it (![[file.ext#fragment]]) that is ready, and carries data-fragment, so a theme can tell derived text from the author's own and lay it out beside the source file. The text inside is ordinary page content and renders as markdown. The --pending and --skipped forms are the status blocks that stand in while the text is being read or when it cannot be.
.moss-derived--pendinginstanceModifier: the text is still being read. In the local preview it shows the blueprint grid and a short line saying so; the build replaces it once the text exists, and a publish waits for that.
.moss-derived--skippedinstanceModifier: no text will appear — the deriver declined the file or could not read it. Carries a reader-facing message.
.moss-embed-figurestandaloneWraps a captioned non-image embed (video, audio, pdf, iframe, 3D model, folder listing), the way .moss-image wraps a captioned image. Carries the caption's <figcaption> and, because it is the outermost element, the embed's data-width, float class AND any content-relative size (inline style="width:NN%") — the embed element inside keeps .moss-embed and its data-type, and fills the figure at width:100% rather than carrying any placement of its own.
.moss-embed-pendinginstanceCo-class on .moss-embed while the embedded file is still coming down from iCloud Drive. moss neither waits for the download nor bakes in an error box: it asks for the file, says plainly that it is still arriving, and lets the watcher rebuild the page when it lands. The default CSS does not style this — it is a hook for themes that want to mark the placeholder as provisional.
.moss-embed-audioinstanceCo-class alongside .moss-embed on every audio element — kept, unlike the other kind co-classes, which collapsed into data-type. The default CSS keys off [data-type=audio] rather than this class, so it is a hook for themes, not a style dependency.
.moss-embed-videoinstanceCo-class alongside .moss-embed on every video element — kept, unlike the other kind co-classes, which collapsed into data-type. The default CSS keys off [data-type=video] rather than this class, so it is a hook for themes, not a style dependency. Its poster is the video's 800-pixel thumbnail (clip.thumb.jpg); inside a :::hero it is clip.poster.jpg instead, the same frame at the video's own size (up to 1920x1080), once the build has cut it, because a hero shows the poster across the whole window until the video plays.
.moss-embed-ipynbinstanceAlias of .moss-embed-notebook; consolidation pending.
.moss-embed-errorinstanceError state for embeds whose target cannot be resolved.
.moss-embed-missinginstanceWhat stands where a page names something that is not in the folder: a folder listing (![[journal/]]), a transcluded page, or a picture or other media file (Picture not found: slide.jpg). A div as a block of its own, a span within a line of text. A missing picture or media file is seen in the preview only, since a site with one is not published.
.moss-herostandaloneHero banner section at the top of a page (cover image + title). alt="…" on the fence describes the picture; without it (and without an alt on a ![…](…) or ![[…]] embed) the picture is decorative. v1 adds data-width for author-controlled sizing. from="<folder>/|<embed options>" draws the hero from the first page of that listing (its picture, title, event line, description and a link); the hero's own image= and words show only when the listing is empty.
.moss-hero-contentinstanceText content slot inside .moss-hero — text laid ON the image. For text ABOUT the image, see .moss-hero-caption.
.moss-linksinstanceMarks a paragraph made only of links, with nothing between them but spaces and line breaks (a link around a picture does not count): a row of buttons or a call to action, which CSS alone cannot tell from a sentence holding a link. moss draws nothing for it; it is a hook for themes. .moss-links > a is each link of the row and .moss-links > a:only-child is a lone call to action.
.moss-hero-actionsinstanceA paragraph of a hero's words that holds nothing but links: the hero's call to action, each link drawn as a button. A link inside a sentence stays a text link in the words' colour, underlined.
.moss-hero-captionsstandaloneShared wrapper for the per-slide captions of a multi-slide hero, after the slides and outside the <section>. Each slide's caption is a .moss-hero-caption carrying data-slide; the container is aria-live="polite" so a slide change is announced. Placement: with hero content, in the hero's bottom stack directly above it (over the picture with a scrim; a quiet credit under the picture in a stacked phone hero), except align=end on a wide screen, where it sits at the bottom start beside the end-aligned content.
.moss-parent-labelstandaloneThe parent section's name, as a small link above the page title, in place of the header trail. Turned on by breadcrumb: label in the home page's frontmatter.
.moss-hero-captionstandaloneCaption or credit for a hero image, from :::hero {caption="…"}. A SIBLING of .moss-hero, immediately after it — not a child: the section is a fixed-height cropping frame, and a photographer's credit has to survive as text below the picture rather than be printed across it. Rendered as inline markdown, so a credit can be a link, exactly like a byline: / colophon: row.
.moss-hero-closinginstanceThe hero that is the last block of footer.md: the page's closing picture. The footer drops its column, padding, divider and fill, and the picture runs the viewport's full width as the last painted thing on the page, with its words on it at every width (the build adds data-mobile="overlay"), starting where the article's text starts, and the colophon on its bottom edge. From 48rem its box takes the picture's own shape at the window's width, so the whole picture shows, even when taller than the window; the hero's max-height= caps it (emitted as --moss-hero-max-height), and the crop keeps the side away from the words (align=top keeps the foot) unless image= names a position, both of which the ink measurement follows. On a phone a kept panel ends in a fade into the picture instead of a hard edge. It is never darkened, and where its picture is quiet under the words the words sit in ink with no panel (data-words); its caption= is the picture's credit (.moss-hero-credit). With align=top the words start clamp(8px, 2vw, 24px) below its top edge and its display heading sets at a line height of 1.08, and a link in the words' row of links (.moss-hero-actions) is a button of weight 500 in the text colour, with its border, on the page colour at 80% (inverted on hover), so it reads on any picture whatever ink the words take. With no words it keeps its data-align, data-fade and credit. A dark= picture replaces the light one in dark mode through data-hero-variant="light"|"dark" on each picture. fade=top fades its top into the page (data-fade); the words that sit in ink on that faded top take the theme's own page text colour and page colour (the darker of the two as the dark ink), not fixed inks.
.moss-hero-creditinstanceThe closing picture's caption=, set small inside the picture at its foot, right-aligned to the end of the page's text column (not the window's edge) and on one line where it fits, above the colophon's row, instead of below the picture as an ordinary hero's caption is. It is in moss's UI face unless the theme sets --moss-hero-credit-font. It stays at the foot at every width, the last thing on the foot before the colophon. Its ink is measured there per theme (data-credit): the theme's secondary text colour or its page colour, whichever clears 4.5:1, or a small panel of its own where neither does.
.moss-hero-slidesinstanceWrapper holding the .moss-hero-slide images of a multi-image hero; the CSS ambient crossfade cycles one slide visible at a time.
.moss-hero-pauseinstancePause toggle of a moving hero: a checkbox that stops the crossfade (no script) or the video sequence (script) while checked. Emitted with data-slides and with data-sequence; the accessible name is localized. Sits at the block-end inline-end corner (inline-start with align=end), 44px hit area, hidden under reduced motion. The rotation also pauses while the hero is hovered or holds keyboard focus. It pauses the crossfade only; a video slide keeps playing. In an all-video hero that plays as a sequence the same checkbox is emitted and the script reads it: checked holds the current video and stops the advance.
.moss-hero-indicatorinstanceClip indicator of an all-video (sequence) hero, added by the script as the first child of .moss-hero-captions (which it creates if the hero has no captions), so it sits directly above the caption at its inline start. One .moss-hero-indicator-segment per clip. Not emitted in the markup, and absent under reduced motion.
.moss-hero-indicator-segmentinstanceOne clip of the sequence indicator: a real button (34 x 24px target) drawing a 2px bar in the caption's colour. Labelled "Clip N of M" plus the clip's caption; aria-current="true" on the playing clip. Activating it jumps to that clip from its start (staying paused if the visitor paused). The playing clip's bar fills as the clip plays, driven by --moss-hero-progress (0 to 1) which the script sets from the video's time.
.moss-hero-slideinstanceOne background slide of a multi-image hero. Emitted only when the hero has 2+ images; slides crossfade ambiently via site.css keyed on the section's data-slides. First slide is the reduced-motion static fallback.
.moss-imagestandaloneWrapper around an inline <img> for sizing and figure semantics. data-width carries a named width token (body|wide|page|screen); a content-relative width is instead emitted as inline style="width:NN%" (set by the editor drag-resize), which also forces the inner image to fill that percent box. Images narrower than the content column center horizontally. A captioned image is announced once, through its <figcaption>: when the alt is empty or only repeats the caption the inner <img> has alt="". An alt that differs from the caption comes from an italic line under the image: ![description](x.jpg) then *caption* on the next line. A picture inside a link with an italic line under it ([![alt](x.jpg)](url), or the wikilink form) is a figure too, with the link around the <img> only and the line as its <figcaption>; without the line it stays a linked image in a paragraph. With scripting, a figure that has alt text or a caption opens in the full-screen viewer, and the viewer shows its <figcaption>, links included; a linked one is left to its link, except in a collage on a touch screen, where it opens and the viewer adds an "Open its page" link.
.moss-quotestandaloneA grid cell whose whole content is a blockquote followed by one italic line: the quote, with the line as its source in the <figcaption>. Only the source line links. Its words use --moss-font-quote. Matched only in a grid cell (a collage or a plain grid); in running prose the same shape stays a blockquote and a paragraph. When the source line links to an http or https address, the <blockquote> carries it as cite, and the page's structured data lists it under citation; a prose quotation whose last paragraph starts with an em dash and links the same way gets the same two.
.no-viewerstateWritten by the author on a fenced div, a :::grid or a :::gallery to keep the pictures inside it out of the full-screen viewer; they stay plain images. Pictures inside a link, a hero or a listing card never open it either.
.moss-align-leftstandaloneFloats an embed element to the left of body text (editorial runaround) — an image, a captioned figure (.moss-image, .moss-embed-figure), a bare .moss-embed, or a .moss-cards-container listing. Defaults max-width to 50% on desktop unless the element carries its own data-width or content-relative size, and collapses to a full-width, unfloated block below 48rem regardless. CSS :has() escalates an image's float to its wrapping <figure class="moss-image"> when present; every other kind carries the class on its own outermost element already. Mirrors WordPress's alignleft convention.
.moss-align-rightstandaloneFloats an embed element to the right of body text (editorial runaround) — an image, a captioned figure (.moss-image, .moss-embed-figure), a bare .moss-embed, or a .moss-cards-container listing. Symmetric counterpart to .moss-align-left. Mirrors WordPress's alignright convention.
.moss-article-titleinstanceArticle-page H1 title emitted from frontmatter.
.moss-eyebrowstandaloneA small line above the page title holding every declared field whose place is eyebrow, in declaration order, one <span data-field> each. The spans are separated by a single space, so the fields stay separate words in the page's text; the visible separator is drawn by the stylesheet from --moss-eyebrow-separator and absorbs that space. Emitted only on a page that has a value for such a field.
.moss-title-besidestandalonePairs a page's leading picture with its title block (eyebrow, title, subtitle, facts) in two columns from 48rem up, stacked below. Emitted only on a page with title_block: beside-picture whose body opens with a picture; the picture comes first, the title block follows in a plain div.
.moss-subtitlestandaloneA line under the page title holding the first declared field, in declaration order, whose place is subtitle. Emitted only on a page that has a value for it.
.moss-field-groupstandaloneThe element a declared group draws in its place: the group's parts that have a value, in the order of names them, each in its own <span data-field>, separated by one space that the stylesheet's --moss-field-group-separator absorbs. It sits on the subtitle, key-figure or facts element of its place, or in the eyebrow as a span. Emitted only on a page that has a value for at least one part.
.moss-key-figurestandaloneA large number under the page title for a declared field whose place is key-figure: the count in a <data value> element, then its noun. One paragraph per such field, in declaration order. Emitted only on a page that has a value for it.
.moss-factsstandaloneA list of the page's declared fields whose place is facts: one <div data-field> per field in declaration order, with the field's label in <dt> and its value in <dd>. A row for a choice field also carries data-value, the slug of the choice's key as written in config. On a wide screen the list sits in the right margin beside the title; on a narrow, vertical, full-width or sidebar page, or one with sidenotes, it stays in the flow. Emitted only on a page that has a value for such a field.
.moss-article-endstandaloneThe end block of an article: a partial with slot: before-article-end, saved in a folder, written once and drawn at the end of every article in that folder and the folders beneath it, the nearest file winning. It comes after the article's own end sections, inside the article and before comments and series navigation, and stays out of feeds, search and email. A language tree uses only blocks in its own folders. The default stylesheet gives it its top margin and nothing else.
.moss-field-endstandaloneThe section a page field of type page or pages draws when its place is end: after the page's body, inside the article and before comments and series navigation. A <h2 class="moss-field-end-label"> carries the field's label, then one summary card per linked page that resolves, headlined by the linked page's own opening heading when it has one that differs from its title, with pictures of its pictures as a strip. Emitted only on a page that has a value for the field.
.moss-field-end-labelinstanceThe heading of a moss-field-end section: the field's label, or its name capitalised when it has none.
.moss-align-endstandaloneThe automatic place map as a block of its own rather than a float: after a body with no text, or at the head of the facts column. At its usual width on the end edge, full width on a phone.
.moss-facts-columnstandaloneThe facts list headed by the page's automatic place map, on a page that has both a facts field and a locator. It takes the list's place in the right margin or the flow, and the map fills its width above the first fact. Without a locator the list stands alone as moss-facts.
.moss-heading-anchorinstanceClickable permalink appended inside an author-written body heading that carries a slug id; links to the heading's #-fragment. The element is EMPTY — the # a reader sees is drawn by site.css as ::after content, so selecting a heading never copies it. A page shows the marks when at least two of its sections hold 80 words of running text, the home page like any other; a heading whose id the author named, ## Setup {#setup}, carries one on any page. Never emitted for a level-1 heading (a page's own title, not a section of it — the id is still there, so an existing #title link still resolves), nor for a display title: the auto-injected moss-article-title H1 and a :::hero overlay heading get none, and a :::grid cell heading gets one only when its id is named. [site] heading_anchors = false turns every mark off.
.moss-nobreakinstanceWraps a run of digits joined by hyphens or dashes (a year range such as 1626–1705) in a heading, so the run is never split across two lines; the build adds it to the page title, a folder title and every body heading, and nowhere else. Styled white-space: nowrap.
.moss-gridcontainerGeneric grid container. Classes on the fence that moss reads: no-cards, summary. summary REPLACES this container rather than decorating it: the fence emits .moss-cards-container > .moss-cards[data-layout="list"] instead, so a .moss-grid never reaches the page and a column count is dropped — scroll is dropped the same way when both are written on one fence. v1 adds data-width (P9); a later release adds data-scroll.
.moss-grid-cardinstanceCard instance inside .moss-grid. Its variant is the data-kind attribute.
.moss-gallerycontainerImage gallery container. v1 adds data-width (P9).
.moss-gallery-iteminstanceSingle image entry inside .moss-gallery, with its caption under the link when the author wrote one.
.moss-gallery-captioninstanceThe visible caption of a gallery item: the italic line under the image in :::gallery, inline markdown so it may hold a link. It sits under the image link, never inside it, and the full-screen viewer shows it, links and credit included, as the large view's caption. An item without the line has none, and :::gallery rows keeps the caption under its item. Under a line of several pictures in running text, the italic line captions the whole row and follows the gallery.
.moss-gallery-linkinstanceThe link around a gallery image. With scripting it opens the image in the full-screen viewer (the same one as the media collection pages), stepping through the page's pictures, the gallery's included, with the arrow keys; without scripting it opens the full-size image. href is the full image and data-title is its caption.
.moss-buttonscontainerContainer for a row of .moss-btn buttons. v1: the inverted variant is on data-style="inverted".
.moss-btnstandaloneGeneric button primitive. Role on data-role (v1).
.moss-btn__labelinstanceLabel span inside .moss-btn.
.moss-btn__checkinstanceSuccess checkmark slot inside .moss-btn.
.moss-btn__spinnerinstanceLoading spinner slot inside .moss-btn.
.moss-editionstandaloneFooter block on every page of a site with [site] archival = true: the build date and id, a link to the published source, the citation block and the licence.
.moss-edition-lineinstanceThe edition date and short build id, with a link to the source copy under _moss/source/.
.moss-citeinstanceThe citation block: a label and one line naming the author, page, site, edition and address.
.moss-cite-labelinstanceThe citation block's label, in the page's interface language.
.moss-cite-textinstanceThe citation itself, plain text a reader can copy.
.moss-edition-rightsinstanceThe site's [site] license, stated after the citation on every page. Absent when the site declares no licence.
.moss-membersstandalonePublic fallback for a members page: its access notice and subscribe form. Only the public preview is built; no private body is emitted, including for paid pages.
.moss-subscribestandaloneNewsletter subscribe block (auto-injected into footer when email channel configured).
.moss-subscribe-scriptinstanceMarks the <script> moss injects into <head> when a page carries a subscribe form. It is a handle, not a styling hook — a theme or a test uses it to find (or suppress) moss's own subscribe behaviour without matching on script contents.
.moss-subscribe-forminstanceForm element inside .moss-subscribe.
.moss-btn-slotinstanceFixed-width slot wrapping a form's submit button; used by both the subscribe and comment forms to prevent layout shift across idle/loading/success states.
.moss-subscribe-statusinstanceStatus message shown after submit (success/error).
.moss-subscribe-status__iconinstanceIcon slot inside .moss-subscribe-status.
.moss-subscribe-landingstandaloneStandalone subscribe landing page surface (larger variant).
.moss-calendar-linksstandaloneClosing line of an event page ("Add to calendar") or of a folder that holds events (its calendar file and a webcal subscribe link).
.moss-calendar-linkinstanceOne calendar link: the .ics file, or the webcal:// subscription.
.moss-external-linkstandaloneThe link out at the end of a page with an http(s) external_url:, named by that address's host. Left out when the body already links to that address.
.moss-series-navstandaloneSeries navigation bar (prev/next/collection) on series pages.
.moss-series-nav-linksinstanceRow holding prev/next links in series nav.
.moss-series-nav-linkinstanceIndividual link inside series nav. Modifiers: moss-series-nav-prev, moss-series-nav-next, empty (placeholder).
.emptyinstanceCo-class on a series-nav link with nowhere to go — the previous link on the first entry, the next link on the last. The element is still emitted so the pair keeps its layout.
.moss-series-nav-previnstancePrevious-page modifier on a series nav link.
.moss-series-nav-nextinstanceNext-page modifier on a series nav link.
.moss-series-nav-textinstanceWrapper stacking a series nav link's label above its title.
.moss-series-nav-labelinstanceVisible direction label ("Previous" / "Next", localized) above a series nav link's title.
.moss-series-nav-arrowinstanceArrow glyph inside a series-nav link.
.moss-series-nav-titleinstanceTitle text of the destination page in a series-nav link.
.moss-series-nav-collectioninstanceCollection-listing slot in series nav (sibling pages).
.moss-series-nav-collection-rowinstanceRow inside the collection listing of series nav.
.moss-series-nav-positioninstanceWhere this page sits in its series — "2 of 3" / 「第 2 篇,共 3 篇」. Counts only the pages still in the reading order, so a page that stepped out with series: false is not in the total. Omitted when the folder holds a single page.
.moss-collection-coverstandaloneHeader surface on a collection landing page.
.moss-collection-cover-rowinstanceRow inside .moss-collection-cover.
.moss-collection-cover-bodyinstanceBody content slot inside .moss-collection-cover. On a folder home with a cover this slot holds the whole body, embedded listings included; to style only the prose, target its paragraphs.
.moss-inputstandaloneGeneric form input primitive.
.moss-fieldcontainerForm field group (label + input). Modifier --inline for horizontal layout.
.moss-labelinstanceLabel primitive for .moss-field. Modifier --small for compact form.
.moss-linkstandaloneInline-link primitive (resets <button> chrome too). Use --subtle for muted variant.
.moss-field--inlineinstanceBEM modifier on .moss-field for horizontal label+input layout (used by settings UI primitives).
.moss-label--smallinstanceBEM modifier on .moss-label for compact form (used by services settings rows).
.moss-info-gridcontainerTwo-column aligned label+value rows (CSS grid with display: contents children). Used by the deployment settings panel; ships in the default theme so authors can reuse the layout.
.moss-rowcontainerHorizontal flex row of equal-flex .moss-field children. Form-row layout helper shipped in the default theme.
.moss-input--boxedstandaloneA text field with a full border. While focused it takes the accent on its own edge instead of an outline.
.moss-input-feedbackinstanceAuto-save status hint slot under .moss-field. Three state modifiers: --success, --error, --fade-out.
.moss-input-feedback--successinstanceSuccess state modifier on .moss-input-feedback.
.moss-input-feedback--errorinstanceError state modifier on .moss-input-feedback.
.moss-input-feedback--fade-outinstanceTransient fade-out modifier on .moss-input-feedback (applied after a success message to dismiss it).
.moss-commentsstandaloneComments surface (per-site SQLite backend or Artalk legacy).
.comment-form-slotinstancePlaceholder the comment form is rendered into. Kept distinct from the form itself so a reply form can be moved between slots without re-rendering the form.
.comment-forminstanceThe comment submission form. data-state carries the submission lifecycle, so a theme can style submitting and error states without watching the network.
.comment-form-metainstanceRow holding the commenter identity fields (name, and email where configured), as distinct from the comment body textarea.
.comment-form-statusinstanceLive region announcing the result of a comment submission. an assertive live region is deliberate: the reader has just acted and is waiting on the answer.
.comment-form-submitinstanceCo-class on the comment form's submit button, alongside moss-btn. aria-busy tracks the in-flight submission.
.comment-fieldinstanceA text input inside the comment form. Applied to every field so a theme styles them once rather than per name.
.moss-service-inactiveinstanceCo-class applied to .moss-comments and .moss-subscribe-form when the backing service is not configured. Hidden by default in published sites and revealed inside the preview chrome so authors can see the inactive surface during editing.
.moss-preview-popupchromeFloating link-preview popover injected at document.body level by the runtime preview.js. Fetches /_moss/previews.json and renders a hover card with title, description, and excerpt for internal links. Opens only for an internal wikilink written inside a body paragraph of the page's main content; links in a hero, figure or caption, card or card grid, list, navigation, header or footer never open it. Set [site].link_preview = false in .moss/config.toml to turn hover previews off; preview.js and _moss/previews.json are then not written. Default true.
.moss-preview-titleinstanceTitle slot inside .moss-preview-popup.
.moss-preview-descinstanceDescription slot inside .moss-preview-popup (from frontmatter description).
.moss-preview-textinstanceExcerpt slot inside .moss-preview-popup (auto-extracted from the linked article body).
.moss-skip-linkchromeFirst focusable element in <body>, before the nav island and header. Visually hidden until it receives keyboard focus, then jumps to <main id="main-content"> (WCAG 2.4.1). Themes may restyle it but should keep it off-screen at rest and visible on :focus.
.moss-colophonchromeFooter colophon credit appended by moss, the last child of the page's <footer> (after </main>, as a direct child of <body>, on a page with no footer). Carries its own margin and block padding, and so does its link. [site] colophon = false leaves the element out of every page; the footer keeps its own end space either way; a theme that places the mark in its own row sets the colophon's whole margin (the end margin cancels the footer's end space) and padding and keeps the link's padding, which holds the line the hover wording appears on. Shows the moss mark alone at rest, quiet in the same muted grey as the footer above it; on hover or keyboard focus the mark takes its ink and the name fades in beneath it, without moving the mark.
.moss-colophon-iconinstanceWraps the moss mark inside .moss-colophon — the mark is substituted whole, so the class and aria-hidden sit on a wrapper rather than on the <svg>. Owns the mark's size here (1.25rem) and its resting quiet — the mark inherits the link's muted colour until the credit is hovered or focused, when it takes the ink .moss-mark names for the ground. Beside an archival edition block (archival.css) it is 1rem, inked at rest, and closes the edition line. Decorative; the link's aria-label carries the accessible name.
.moss-colophon-labelinstanceLocalized attribution wording inside .moss-colophon. Transparent at rest and faded in on hover/focus, positioned out of flow beneath the mark so the reveal shifts nothing — it stays in the DOM because it is the link's accessible name. Carries .moss-wordmark for the face.
.moss-colophon-creditinstanceThe site's own line ([site] credit, inline Markdown) before moss's mark, inside .moss-colophon, in the footer's smallest size and muted ink (--moss-footer-ink). It wraps like text, centred. Only its links are underlined, at 40% of the ink at rest and the full ink on hover and focus. Its stylesheet ships only when the key is set. Not the page colophon: rows (.moss-article-colophon) and not a hero's caption= (.moss-hero-credit).
.moss-colophon-dotinstanceThe middle dot that joins .moss-colophon-credit to the mark. It leads the mark's link, so on a narrow line the two wrap together. Decorative, so it is hidden from assistive technology.
.moss-markchromeThe moss mark wherever moss draws it: black or near-white ink with the green drop lifted on a dark ground, never the muted colour of wording beside it. Its rules live in mark.css, which the app's launcher shares; the colophon's .moss-colophon-icon is the one instance in a built site. Size is the surface's to set, and so is any quieting — a surface may repaint the mark by setting --moss-mark-paint / --moss-mark-drop-paint, and time the change with --moss-mark-fade.
.moss-wordmarkchromemoss's name beside or beneath the mark. In Chinese it is set in Long Cang, the running hand that matches the mark's real ink, keyed on the element's inherited lang; the Latin moss stays in the body face. Size is the surface's to set — the colophon's label is one instance.
.moss-shell-framechromeApp-shell frame surface (preview chrome).
.moss-mobile-framechromeRuntime marker the preview bridge adds to <html> when the shell is in mobile device-preview mode. The shell now owns chrome clearance by insetting the preview iframe, so no CSS keys off this class and it currently has no effect; it is retained as a revert path and may be removed.
.main-navchromeTop site navigation bar. Legacy non-moss- prefix kept for theme parity.
.date-linechromeByline row under an article title: the publication date on the left, the reading-size control on the right. Emitted only when the page has a date.
.dateinstanceThe formatted publication date inside .date-line. Text is localized to the page's language.
.moss-event-metacontainerThe event facts of a page with start, in place of the posted date inside .date-line: the time, the status label, the place, and the tickets / online links. Also carries .date. Absent on a page without start.
.moss-event-timeinstanceA <time> element holding the event's human-readable time (localized to the page language, with the end when end is set). Its pieces carry the same .moss-when-* spans as a listing's time, so a theme can lay the date out as it likes. datetime is the start as written, venue-local, with no zone offset. Struck through when the event is cancelled.
.moss-event-statusinstanceText label for status (Cancelled, Postponed, Moved online, Rescheduled), beside the time. Absent for a scheduled event.
.moss-event-placeinstanceThe event's location as plain text, in the page's meta line and after the time in a listing row or card (preceded there by .moss-event-sep). On the page it is emitted only when the place did not resolve to a place page; a resolved place shows in the linked place line under the meta line instead.
.moss-event-linkinstanceA tickets (label Tickets) or online (label Online) link; only http and https addresses are linked.
.moss-event-calendarinstanceThe "Add to calendar" link to the event's .ics file, after the tickets and online links. Carries .moss-event-link too.
.moss-event-ticketsinstanceThe tickets link, which also carries .moss-event-link. An event card with tickets: in a listing carries one too, after its meta.
.moss-event-onlineinstanceThe online link, which also carries .moss-event-link. An event card with online: in a listing carries one too, after its Tickets link.
.moss-event-upcominginstanceThe word "Upcoming" (translated) after the time of an event that has not ended, on a card or a list row in a folder listing. Past events carry no label; their data-when="past" is the hook.
.moss-event-sepinstanceThe separator between an event's time and its place in a listing row or card.
.moss-whencontainerAn event's time in a listing item (list row, card, grid card), in place of the compact date: a <time> whose datetime is the start as written, venue-local. The visible text is the same words the event page shows (localized to the page language). Each piece sits in its own span so a theme can lay the date out as it likes, for instance a large day numeral. The same spans appear inside an event page's .moss-event-time.
.moss-when-weekdayinstanceThe weekday name.
.moss-when-monthinstanceThe month name (11月 in Chinese).
.moss-when-dayinstanceThe day of the month (1日 in Chinese).
.moss-when-yearinstanceThe year (2026年 in Chinese).
.moss-when-timeinstanceThe time of day, with the end when end is later the same day. Absent for an all-day event.
.moss-when-sepinstanceThe separator between an event's date and its clock time; hide it to set the time on a line of its own.
.moss-cards-groupcontainerA run of listing items under children_group: upcoming (or group:upcoming on an embed). An empty run is not emitted. Computed when the site is built.
.moss-term-linecontainerOne field's names as links to their term pages, under the page's title after the byline, drawn for a term kind with line = true (on by default for a place-typed kind, which also carries moss-place-line). One line per field, in the kinds' order and each kind's fields order. Absent on a page whose only name in the field is its own title.
.moss-term-line-labelinstanceThe field's role before the names, the text a term page heads that field's section with. Hide it visually for a line that reads as a kicker.
.moss-bylinecontainerCredit block under the page title, below .date-line when there is one. Emitted from the byline frontmatter field on every page kind — articles, folder indexes, the homepage and plain pages alike — one .moss-byline-row per authored line. On a page moss gives no title of its own (the homepage, a home: true folder page, a plain page) it sits under the author's own opening <h1>, or at the top of the page content when the body has none. Absent when the field is.
.moss-byline-rowinstanceOne credit line. Its content is the author's text rendered as inline markdown, so a row may contain links or emphasis. moss does not know which part is a role and which is a name — style the whole row.
.moss-article-colophoncontainerCredit block at the FOOT of the page, emitted from the colophon frontmatter field — where the piece first ran, contributor biographies, production credits. Same rows as .moss-byline, different end of the page. Emitted on every page kind: inside <article> on an article page, and last in the page content everywhere else — after the children listing on a folder index or the homepage — where the enclosing element is not an <article> despite the class name. Unrelated to .review-colophon, which is the review feature's book card.
.moss-article-colophon-rowinstanceOne foot-credit line, rendered as inline markdown exactly like .moss-byline-row.
.site-nameinstanceThe site title link at the left of the nav bar. On a non-home page the same slot may instead carry .breadcrumb-segment. Absent on every page under [site] header = "nav", which drops the brand from the header in favor of a leading Home item in .nav-links.
.breadcrumb-segmentinstanceOne ancestor link in the nav-left breadcrumb trail, used in place of .site-name once the page is below the site root.
.nav-iconschromeRight-hand icon cluster in the nav bar (search, theme toggle, and similar). Stationary chrome, present whether or not the site has nav links. Under [site].header = "none" it is the next sibling of .moss-nav-island, placed by the island's state (see its data-header).
.nav-leftchromeLeft group of the nav bar. Holds either .site-name or the breadcrumb trail, never both — or, under [site] header = "nav", neither: the element itself is not emitted, and .nav-right takes the full row.
.nav-rightchromeRight group of the nav bar: the mobile menu button, the nav links, and the icon cluster, in that order.
.nav-linkschromeThe nav link list. The link for the page currently being viewed carries the bare class active — style .nav-links .active, not a moss- class — and aria-current="page". Below 20rem (320px) the list becomes a full-screen sheet under the header, opened by .mobile-menu-button; set --moss-menu-bg, --moss-menu-ink and --moss-menu-link-size to restyle it rather than its selectors. Under [site] header = "nav" the list always opens with an unstyled Home link ahead of the site's own nav items. That mode drops the breadcrumb trail, so a nav item whose section contains the page being viewed — without being that exact page — carries active and aria-current="true" instead of "page", the one remaining cue for which section a deep page is under.
.moss-nav-groupchromeA header entry that has a submenu: the folder's own link, its .moss-nav-sub-toggle and its .moss-nav-sub list, together. Written when a header page sits inside a header folder; a header without such pages has none.
.moss-nav-sub-togglechromeThe button that opens and closes a .moss-nav-sub list. It is written hidden and shown by the site script, so without the script the list stays a plain set of links; aria-expanded carries its state.
.moss-nav-subchromeA header folder's submenu: the header pages inside that folder, a third level joining the same list. The site script keeps an open list inside the viewport.
.site-logoinstanceOptional logo image inside the site-name link. Decorative by construction (alt="" + aria-hidden), because the adjacent text already names the site. A raster logo carries its intrinsic width and height, so the header does not move when it loads; an SVG logo carries neither.
.breadcrumb-labelinstanceThe final, non-linked breadcrumb segment — the page you are on. .breadcrumb-segment is the linked form for ancestors.
.breadcrumb-separatorinstanceThe / between breadcrumb segments, hidden from assistive technology and drawn in --moss-border-strong (3:1 non-text contrast). Restyle or hide this rather than trying to remove it from the markup.
.mobile-menu-buttonchromeThe hamburger. Emitted on every page and hidden by media query above the mobile breakpoint — it is not conditionally rendered, so a rule that shows it always will. While the menu is open its three strokes form a cross; its aria-label stays "Menu" and aria-expanded carries open or closed.
.nav-search-btninstanceSearch button in the nav icon cluster. Its glyph is .search-icon.
.search-iconinstanceThe magnifier glyph. Sized in em and stroked with currentColor, so it follows the button's font-size and color rather than needing its own rule.
.nav-theme-btninstanceLight/dark toggle in the nav icon cluster. Its glyph is .theme-toggle-icon.
.theme-toggle-iconinstanceThe sun/moon glyph. One SVG whose clip path animates between states — restyle it, but do not expect two separate icons to swap.
.nav-lang-togglechromeThe language switcher. Present only when the site has more than one edition among the three the switcher resolves (English, Simplified Chinese, Traditional Chinese) — a ja/ or fr/ tree publishes but adds no entry here.
.nav-lang-currentinstanceThe edition being viewed, as inert text rather than a link — style the current-language affordance here.
.nav-lang-linkinstanceA link to another edition of the same page. Carries hreflang, so [hreflang="en"] is a stable hook for per-language styling.
.moss-nav-islandchromeFloating navigation island: a one-line bar, aligned to the text column, revealed on scroll-up once the masthead has left the screen. Opt-in — a site gets none until it sets [site].floating_nav = true (the Services-tab toggle writes that key), or [site].header = "none", which pins it instead (see data-header). On a site that opted in, the markup is emitted on every page with a breadcrumb trail but only ever shows where the page has a contents table to offer: two or more section headings. --moss-nav-island-display: none forces it off from CSS, media query included.
.moss-nav-island-barinstanceThe visible rounded bar. Its width follows --moss-nav-width/--moss-content-width, so it lines up with the article text rather than with the window.
.moss-nav-island-trailinstanceThe breadcrumb inside the island. Same segment classes as the masthead's, plus the current page as a final crumb. It never wraps: ancestors fold into .moss-nav-island-more until the row fits.
.moss-nav-island-currentinstanceThe page you are on, as the trail's last crumb. The only crumb permitted to truncate — an ancestor either fits whole or folds away.
.moss-nav-island-moreinstanceStands in for the ancestor levels the trail had to drop. Opens the levels menu on click; names them on hover via data-tooltip. Never opens on hover — a touch device has none, and that is the width where folding happens.
.moss-nav-island-actionsinstanceButton cluster at the island's end edge. Holds the sections button only — theme, language and search stay in the masthead. Under [site].header = "none" there is no masthead: the sections button sits directly in the bar after the site's name, and the .nav-icons cluster that carries those controls follows the island.
.moss-nav-island-sectionsinstanceOpens this page's section list. Always present in an emitted island, because an island only ever shows on a page with two or more sections — so the button always has something to open. The glyph is a small ruler. The site runtime adds the current section's name before it, in a box of fixed width, and hides the button while the contents ruler is on screen (not under [site].header = "none", where the island stays and the button always names the section).
.moss-nav-island-section-nameinstanceThe current section's title on the sections button, cut in the middle to a fixed 6em box and empty before the first section. Written by the site runtime; absent from emitted HTML.
.moss-nav-island-menuinstancePopover opened by .moss-nav-island-more or .moss-nav-island-sections. In the sections menu every row leads with a short dash (darker once read, a long accent dash for the current section) in a gutter all rows reserve, so the labels line up in one column whether or not a row is current.
.moss-breadcrumb-moreinstanceThe masthead trail's counterpart to .moss-nav-island-more: stands in for the ancestor levels the trail folded, opens the levels menu on click, names them on hover via data-tooltip. Emitted (hidden) only when the trail has a middle to fold — three or more crumbs.
.moss-breadcrumb-menuinstancePopover listing the masthead trail's folded ancestor levels, opened by .moss-breadcrumb-more. A sibling of .nav-left (which clips its own overflow), positioned against .nav-content. Same shape as .moss-nav-island-menu.
.moss-nav-island-progressinstanceReading-progress track along the island's own bottom edge — not a separate bar across the window. Currently measures document scroll.
.moss-nav-island-progress-fillinstanceThe filled portion of the progress track. Its width is written inline by the site runtime; with JavaScript off it stays at 0 and the track reads as empty.
.moss-contents-rulerchromeContents ruler: one short dash per section in the left margin, pinned to the window and vertically centred, with the section titles opening to its right on hover or focus. Added by the site runtime (never in emitted HTML) beside <main> on a page where the nav island is live, and only where the margin leaves a title at least 96px (a ruler on a page with contents: pictures needs only room for its dashes); hidden under vertical typesetting, in print, when the dashes do not fit the window's height, and while the article's body is off screen.
.moss-contents-ruler-dashinstanceOne section's mark: 10px by 1px at rest, darker once read, 18px by 2px in the accent colour for the current section.
.moss-contents-ruler-labelinstanceA section's title, to the right of its dash and hidden until the ruler is hovered or focused. Cut in the middle to the room left before the text column; the link carries the full title as its accessible name. On a page with contents: pictures it is one line of up to about 34 characters (--moss-contents-measure), ended with an ellipsis beyond, and may reach over the page; the link carries the full title as its accessible name and tooltip.
.moss-contents-ruler-veilinstanceA soft fade of the page colour behind the open names of a contents: pictures ruler, from the window's edge, so they read over the page; not a panel, with no edge or shadow. Not drawn and takes no pointer at rest; while open it spans the drawn rows and counts as part of the ruler, so a pointer over it keeps the list open and a click on it goes to the focused row. Written by the site runtime.
.moss-contents-ruler-picinstanceA 64 by 48px picture standing for a section on a page with contents: pictures: the section's first image, read from the image already on the page at the narrowest width moss generated, with that image's focal point (object-position). Shown after the name of the focused row only, unfolding from a thin line. Written by the site runtime; a section with no image has none.
.moss-nav-island-section-titleinstanceA sections-panel row's title, in a box of its own beside the row's picture, on a page with contents: pictures. Rows without a picture hold their title directly. Written by the site runtime.
.footer-defaultchromeThe generated footer link row, emitted only when the site has no authored footer.md. Authoring a footer replaces it, so a rule targeting this stops applying the moment the site gains one.
.footer-linkinstanceOne link in the generated footer row (RSS and similar). Off-site ones also carry data-external.
.footer-bottomchromeThe footer's bottom row: everything in footer.md after its first --- line. The default stylesheet lays its children out as one row with space between them, wrapping on a narrow screen.
.moss-child-section-dividerinstanceDivider rule between auto-generated child sections.
.moss-unknown-shortcodestandaloneFallback wrapper emitted for any :::name fence whose name is not a registered shortcode. The body is still parsed as markdown and a build warning names the shortcode, so a misspelling degrades to a styled region rather than losing content.
.moss-recentcontainerAuto-generated list of recent posts. Sorted newest-first; date and description slots are filled per child. No default CSS in the bundled theme — theme authors style it freely. IMPORTANT: emitted by the EMAIL/newsletter path only. On a web page, :::recent renders its fallback body as ordinary markdown and emits no list, because the per-page processor has no access to the build's aggregate document slice; a :::recent block with an empty body therefore produces nothing at all on a web page. To list posts on a page today, rely on the automatic child listing a folder home emits (moss-cards), and give any :::recent block a fallback body.
.moss-recent__dateinstancePer-entry date slot inside .moss-recent (BEM child). Format is YYYY-MM-DD, derived from frontmatter date. Empty string when the post lacks a parseable date.
.moss-recent__descinstancePer-entry description slot inside .moss-recent (BEM child). Sourced from frontmatter description; empty when unset.
.moss-ambient-videostandaloneJS-injected wrapper around a video[data-loop] element. Provides the positioning context for .moss-ambient-toggle and the [data-paused] state hook. Not emitted by the Rust synthesizer — ambient-video.ts creates it at init.
.moss-ambient-toggleinstanceChrome-free pause/play toggle button for ambient loop videos. Injected by ambient-video.ts. Keyboard-focusable; aria-label toggles between "Pause video" and "Play video". Visible on hover/focus of .moss-ambient-video and always visible when [data-paused]. Satisfies WCAG 2.2.2 Level A (Pause, Stop, Hide).
.moss-mathstandaloneA LaTeX equation. In P1 the element holds the author's own markdown source — `---
title: Component classes
uid: 0da56c25
weight: 42
translationKey: docs-reference-components
description: The stable .moss-* class names emitted by moss's auto-generated components. Target these in .moss/theme/style.css.

Class names moss emits on auto-generated components. Target them directly in .moss/theme/style.css.

/ $ delimiters included — HTML-escaped: an honest fallback that never shows a blank where an equation was written, and never deletes the delimiters of prose that merely looked like math. Requires [site].math (default on). |
| .moss-math-scroll | container | Horizontal-scroll container the build path wraps around typeset display math (svg.moss-math[data-moss-math="display"]). On a narrow viewport a wide equation scrolls inside this box at its natural size rather than shrinking to unreadability or pushing the page into horizontal overflow. Emitted only by P2's typeset path; the P1 <code> fallback is never wrapped. A display SVG left unwrapped still cannot overflow the page — it falls back to scaling down via max-width: 100%. |
| .moss-diagram | standalone | A diagram drawn from a fenced mermaid block when the site is built, so the page carries the SVG and no script. The drawing takes its colours and fonts from --pele-* custom properties set from the site's tokens, so it follows the theme and dark mode. Each SVG shrinks to its column but never below the scale that keeps its smallest text at 11px; past that the figure scrolls, which is why it is focusable. |
| .moss-diagram-wide | instance | The diagram's natural layout. Hidden under 640px when the figure has a narrow layout. |
| .moss-diagram-narrow | instance | The layout drawn for a narrow column, shown only under 640px; display: none otherwise, so a screen reader meets one drawing. |
| .moss-diagram-error | state | A diagram that could not be drawn (a syntax error, an unknown type, a limit or the safety check). The figure shows the source as a code block with the reason above it; the build warns, and --strict fails. |
| .moss-diagram-message | instance | The plain reason a diagram was not drawn, above its source. |
| .moss-table-scroll | container | Horizontal-scroll wrapper the renderer emits around every Markdown table and every CSV/TSV embed (.moss-embed[data-type="table"]). Keeps the <table> semantically intact (unlike a display:block table, which breaks column layout and assistive-tech table semantics) while letting a wide table scroll inside its own box instead of pushing the page into horizontal overflow. tabindex="0" makes an overflowing table keyboard-scrollable. |
| .moss-scroll-dots | container | Position indicator after a :::grid N {scroll} row. Added by the scroll-row runtime script, never by the build, so a page without scripts keeps the plain scrolling row. Up to seven cards it holds one dot per card (cards in view carry .is-visible, the first of them aria-current); a longer row gets a count and ‹ › buttons that move one view. A theme can hide it for one row and draw its own from the row's moss-scroll-position event. Hidden when the row has nothing to scroll, and in print. |
| .moss-scroll-dots-viewport | container | The row of dot buttons inside a dots indicator. touch-action: pan-y keeps a horizontal drag across the dots for scrubbing through the cards instead of panning the page. Added by the scroll-row runtime script, never by the build. |
| .moss-scroll-dots-count | instance | The current card's number and the total, in a count indicator, with tabular figures. A button press also announces the card it reached in a live region. Added by the scroll-row runtime script. |
| .moss-scroll-dots-count-size | instance | The count's widest value, set invisibly in the same grid cell as the visible number so the count keeps one width as the number changes and nothing beside it moves. Added by the scroll-row runtime script. |
| .moss-scroll-dots-prev | instance | Moves a count row back one view. aria-disabled="true" at the start of the row, so it keeps its place in the tab order. Added by the scroll-row runtime script. |
| .moss-scroll-dots-next | instance | Moves a count row forward one view. aria-disabled="true" once the last card is current. Added by the scroll-row runtime script. |
| .moss-col-right | instance | Right-aligned table cell (<th>/<td>). Applied to a whole column when the author right-aligned it in GFM (\|--:\|) or when the column auto-detects as numeric, so figures register on their trailing digits. Pairs with the table's font-variant-numeric: tabular-nums. |
| .moss-col-center | instance | Center-aligned table cell (<th>/<td>). Applied to a whole column the author center-aligned in GFM (\|:-:\|). |
| .moss-search | chrome | Site-search overlay. Not emitted by the build — the client runtime (_moss/js/search.<hash>.js, shipped only when the build wrote a Pagefind index) constructs this subtree lazily on the first open, so a reader who never searches downloads no index and materializes no DOM. Opened by the nav's .nav-search-btn, by /, or by ⌘K/Ctrl+K. BEM children carry the interior: __backdrop (translucent page-coloured scrim, not an opaque modal takeover), __panel (top-anchored at 18vh, fixed 18px radius at any height), __field/__input, __progress (1px accent hairline, delayed 200ms so fast queries never flash it), __seam (hairline inset by the corner radius), __status (idle / no-matches line, sharing one vertical slot with the results so the panel never jumps), __results/__row/__link/__title/__excerpt. Selection is a 2px --moss-color-ui-accent left border plus a ~4% accent tint — never a solid fill block. <mark> inside __excerpt is Pagefind's own term highlighting, restyled to colour emphasis rather than a highlighter box. |
| .moss-footnotes | container | The document's endnote section, appended after the body by the renderer. Holds one <li id="fn-N"> per footnote in first-reference order, whatever depth the author wrote the definition at — a definition inside a blockquote or a list item is hoisted here too. Present only on pages that define at least one footnote. role="doc-endnotes" (DPUB-ARIA) names the region for assistive tech. |
| .moss-footnote-ref | instance | The in-body footnote marker: a superscript number linking down to its note. The number is first-reference order, not the author's label, so [^method] and [^1] both print as ordinals. A second marker for the same note takes id fnref-N-2, fnref-N-3, … so each has its own back-link. |
| .moss-footnote-backref | instance | The return arrow at the end of a note, linking back to the marker that sent the reader there. One per marker, so a note referenced twice ends with two arrows. A note nobody referenced has none. The arrow carries VARIATION SELECTOR-15 (&#xFE0E;) so mobile Chrome renders it as plain text rather than a coloured emoji. |
| .moss-sidenote | instance | A copy of an endnote, built in the browser by sidenotes.ts (never emitted by the build) and inserted immediately after its marker, which is aria-describedby-linked to it. Rendered only in a wide viewport's reserved gutter, where it floats beside the line that cites it; at narrow widths it stays display:none and the endnote section itself — lifted as the sticky bottom sheet — is the note's one presentation. |
| .moss-sidenote-number | instance | The ordinal at the head of a margin sidenote, repeating its marker's number. The one raised element inside the note, and what lets a reader tell two adjacent notes apart. |
| .moss-footnotes-title | instance | The endnote section's heading (localized en/de/zh-hans/zh-hant), inserted by sidenotes.ts — the pure renderer has no language. In flow always, not only on the lifted sheet, so the docked list and the sheet are the same pixels. Differentiated from the notes by type, not lines: the display face, small, muted, letter-spaced. |
| .moss-footnote-grab | instance | The lifted sheet's grabber: a full-width 24px touch strip drawing the standard pill, honest per iOS's rule because the sheet drags between two detents. A button (aria-label localized en/de/zh-hans/zh-hant), so the drag's destination — the expanded glossary — is equally reachable by tap, keyboard and screen reader. Hidden while the section rests in flow; its opacity rides the dock's --moss-sheet-away fade. |
| .moss-footnote-scroller | instance | The wrapper sidenotes.ts folds the endnote section's content into at init — layout-neutral in flow, the clipped scroll area on the lifted sheet. data-scrolly (present at the expanded detent only) is what re-enables native pan-y scrolling; below it the sheet itself owns every vertical gesture. |
| .moss-footnotes-cloned | state | The atomic licence, as a class: set by sidenotes.ts only when EVERY note gained a margin twin. Under the same screen-scoped media condition that renders the margin asides, it retires the endnote list from flow, tab order and the accessibility tree — the reader meets each note exactly once. One unclonable note and the class never lands. Print is outside the scope, so paper always gets the list. |
| .moss-footnotes-lifted | state | The endnote section as the bottom sheet: position: sticky; bottom: 0 plus a JS-driven height clip. The section never leaves flow — the peek clips to exactly the tapped note, dragging up expands to a 62vh glossary, and scrolling the page to the section's true place docks it back, chrome fading via --moss-sheet-away. One surface; nothing is cloned or re-parented. |
| .moss-footnote-slot | instance | The zero-height placeholder sidenotes.ts puts just before the endnote section. While the section is lifted as a sheet its height grows by exactly what the clip took, so the page keeps one length docked and lifted. |
| .moss-footnote-landed | instance | The arrival wash, as a class: :target cannot reach a margin aside (no note id by design), so sidenotes.ts moves this class to whichever element the reader landed on — a margin aside on a #fn-N deep link, or the marker a backref returned them to. It fires only for an arrival the reader could not see coming: opening the sheet is not one, because the sheet shows the note. One element carries it at a time; same keyframes and reduced-motion contract as the li:target wash. |
| .container | chrome | The reading-width wrapper. It is the <article> on a page or post, and also the <nav class="main-nav container"> — one class, one measure, so the masthead lines up with the text under it. Site JS treats article.container as "the current document": immersive mode promotes its direct-child iframes, and the share card reads its data-share-cover. |
| .nav-content | chrome | The row inside the nav bar that holds .nav-left and .nav-right. It is the box the responsive nav measures itself against: when the two groups no longer fit on one line, nav-split.ts sets data-nav-split on this element and the links move to a second row; it first tries data-nav-compact, which draws the outer and toggle gaps in so a row that overflows by a few pixels stays on one line. |
| .font-anchor | chrome | Positioning box for the reading-preferences control that sits at the end of an article's date line. Holds the trigger and the size pills; exists so the pills can be positioned against the trigger rather than the page. |
| .font-pill | instance | The reading-size control that opens from the font trigger. Each button carries data-scale; the one matching the current size additionally carries the bare class active. |
| .font-trigger | instance | The button that opens the reading-size pills. Its second class tracks the chosen size (size-std by default); moss's own theme no longer sizes the closed glyph by it (the trigger is one fixed size regardless of the reader's scale), but the co-class remains, so a theme can still restyle the trigger per size without reading state from JS. |
| .size-std | instance | Co-class on the font trigger reflecting the current reading size (size-std at the default). The default theme's closed glyph is one fixed size regardless of this class; it remains a hook for a theme that wants to show the active size on the closed control. |
| .cover-thumb | instance | The still frame stacked over a video cover. It is what the reader sees until they hover: card-video.ts fades this image out and starts the <video> underneath, and fades it back in on leave. Emitted only for video covers, inside .moss-card-cover or .moss-collection-cover. |
| .media-item | instance | One tile on the media-collection page. fullscreen.ts collects these in document order to build the lightbox playlist, so their order on the page is the order the arrows step through. |
| .lightbox-content | chrome | The stage of the media-collection lightbox. Holds all three players at once; fullscreen.ts unhides whichever one matches the opened item's data-type and leaves the others hidden. |
| .lightbox-image | instance | The lightbox's image player. Emitted empty and hidden; its src is filled in when an image item opens. |
| .lightbox-video | instance | The lightbox's video player. Emitted empty and hidden; paused and cleared when the lightbox closes so audio never outlives the overlay. |
| .lightbox-iframe | instance | The lightbox's embed surface, for media items that are an external player rather than a file. |
| .lightbox-title | instance | Caption line under the lightbox stage. Filled from the open item's data-title. |
| .lightbox-article-link | instance | The way back from a media tile to the article it appeared in. Its href is filled from the open item's data-article, and it is hidden when the item has none. |
| .lightbox-close | instance | Dismisses the media-collection lightbox. Escape does the same thing. |
| .lightbox-next | instance | Steps forward through the .media-item playlist, wrapping at the end. Carries lightbox-nav as well, which styles both arrows together. |
| .lightbox-prev | instance | Steps backward through the .media-item playlist, wrapping at the start. |
| .comments-toggle | instance | The <summary> that opens and closes the comment thread. Its <span> holds the count, which the client rewrites as comments arrive — so the span is a contract of its own, not decoration. |
| .comments-icon | instance | Speech-bubble icon inside the comments disclosure summary. |
| .comments-chevron | instance | Disclosure arrow inside the comments summary. Rotates with the <details> open state; the rotation is the only affordance saying the section collapses. |
| .comment-list | container | The top-level comment thread, rendered server-side at build time and then hydrated in place. New comments are appended here by the client rather than replacing the list, so server-rendered and live comments share one shape. |
| .comment-item | instance | One comment. Holds a .comment-header, a .comment-body, and — if it has replies — a nested .comment-replies. The data-comment-* pair is how the client matches a live comment to the one already on the page instead of rendering it twice. |
| .comment-header | instance | Attribution row of a single comment: who wrote it, when, and where it came from. |
| .comment-body | instance | The comment text itself, separated from the attribution header so the two can be styled independently. |
| .comment-author | instance | The commenter's name, linked to the URL they supplied. Always carries rel=nofollow ugc — the link is reader-supplied content, not an endorsement by the site. | | `.comment-date` | instance | Publication time of a comment, as a `<time>` element carrying a machine-readable `datetime`. | | `.comment-replies` | container | Nested replies under a comment, same shape as `.comment-list`. Emitted only when a comment has replies; the client creates one on demand when the first reply arrives. | | `.comment-reply-btn` | instance | Moves the comment form under this comment so the reply is written where it will appear. Emitted only for Artalk comments, which moss can reply to. | | `.review-colophon` | standalone | Footer block of a review page carrying the details of the work being reviewed. A `<footer>` because it describes the subject rather than continuing the argument. | | `.review-colophon-details` | instance | Container for the reviewed work's identifying fields inside the colophon. | | `.review-biblio` | instance | Full bibliographic citation of the reviewed work, formatted as one line. | | `.review-rating` | instance | The reviewer's own rating of the work. | | `.review-community-rating` | instance | Aggregate rating carried over from the source catalogue, kept visually distinct from the reviewer's own so the two are never read as one judgement. | | `.review-links` | instance | Navigation to the reviewed work elsewhere — catalogue entries, purchase pages, the publisher. | | `.review-sep` | instance | Separator between review links. An element rather than a `::before` so it can be hidden when links wrap. | | `.review-colophon-title` | instance | Title of the work being reviewed — not the title of the review itself, which is the page heading. | | `.review-colophon-subtitle` | instance | Subtitle of the reviewed work, rendered only when one is present. | | `.review-colophon-identity` | instance | The reviewed work's identifier (ISBN, DOI or equivalent), which is what makes a review resolvable to a specific edition. | | `.page-wrapper` | container | Outermost wrapper of a generated media-collection page. | | `.main-content` | instance | Primary content column of a media-collection page, inside the page wrapper. | | `.media-grid` | instance | The grid of media items on a media-collection page. | | `.media-overlay` | instance | Caption overlay drawn over a media thumbnail, typically revealed on hover or focus. | | `.media-title` | instance | Title of a single media item, inside its overlay. | | `.lightbox` | standalone | Full-screen viewer for a media collection. Ships `hidden` and `tabindex=`-1 so it is out of the tab order until opened. |
| .lightbox-caption | instance | Caption area of the lightbox, describing the item currently shown. |
| .lightbox-nav | instance | Previous/next control in the lightbox. Carries a direction co-class (lightbox-prev / lightbox-next) and always an aria-label, since the visible glyph is a chevron. |
| .latest-sidebar | standalone | Sidebar listing the most recent entries. A <nav> because it is a navigational aid, not part of the page's argument. |
| .sidebar-more | instance | Link from the latest-entries sidebar to the full listing. |
| .active | instance | Bare state co-class marking the currently-selected item in a set — the current page in .nav-links, the current size in .font-pill. Style it scoped to its container (.nav-links .active), never on its own. |
| .has-sidebar-layout | instance | Set on the <html> element of every page when any page of the site sets sidebar. No shipped stylesheet reads it; it is a hook for a theme that wants to change page-wide layout on a site that uses sidebars. The page that renders a sidebar also puts has-sidebar on its <main>, which is what the shipped sidebar layout is keyed to. |
| .wikilink | instance | Marks a link that came from [[wikilink]] syntax rather than a markdown link, so a theme can distinguish internal cross-references from ordinary links. |
| .moss-term-role | instance | Section heading on a term page (e.g. /people//) for one name-list field's group of works, when the kind names more than one field. |
| .moss-card-meta-author | instance | The author names on a collapsed moss-places-cards card's one-line meta, joined with the language's list separator. It shrinks and is ellipsised when the line is too long; the date beside it never is. |
| .moss-card-meta-date | instance | The date on a collapsed moss-places-cards card's meta line. It carries its own leading no-break-space, middle dot, no-break-space separator when an author precedes it, and never shrinks or wraps. |
| .immersive-fullscreen-btn | standalone | The expand control moss adds over an embedded iframe (a places map or any embed that goes fullscreen); inside fullscreen it is the exit control, a solid 36px circle with the same shadow as the map's own zoom controls so it reads over any map colour. |
| .immersive-iframe-wrapper | container | Added by site script, not in the built HTML: the box around a local iframe that is a direct child of the article (a places map or any embed of a page on the same site), holding the iframe and its fullscreen and open-in-new-window controls. It copies the iframe's moss-align-left or moss-align-right class and data-width, so a floated or wide embed keeps its placement. An iframe from another site is not wrapped. |
| .moss-form | standalone | A request form written as a list; posts to the form service named by [services.forms] endpoint. |
| .moss-form__field | instance | One field: its label, control, help text and error line. |
| .moss-form__group | instance | A radio or checkbox group; the <legend> is the field's label. |
| .moss-form__label | instance | A field's visible label. |
| .moss-form__optional | instance | Marks a field the reader may skip, beside its label. |
| .moss-form__choice | instance | One radio button or checkbox with its label. |
| .moss-form__help | instance | A field's help text, tied to it with aria-describedby. |
| .moss-form__error | instance | The message for a field the service refused; filled and shown by the form script. |
| .moss-form__status | instance | The one live line under the button for errors that are not about a single field. |
| .moss-form__hp | instance | The honeypot: visually hidden, unreachable by keyboard, filled only by bots. |
| .moss-country-map | container | A country map: inline SVG with one path per country, a legend, the as-of stamp and the panel a reader's choice fills; embedded on another page it also carries the rows as a list, unless that page places the list itself with style:levels, when data-moss-country-map holds the key that list carries. Drawn from a page's country_map: frontmatter and its table. |
| .moss-country-own | instance | The map on its own page, the page whose table it is drawn from. While script runs, the page's first table after it is clipped out of sight (kept for screen readers, shown on focus or when the search's see-the-list link targets it), so the map is the display and the rows are not repeated. |
| .moss-country | instance | One country's path. data-level (from 1, lowest) colours it; a country with no value carries none and shows the land colour. data-box is the area the map frames when it is chosen. Choosing it opens the panel (is-chosen outlines it); hovering lifts its colour (is-lifted does too, from the legend). |
| .moss-country-disputed | instance | Land Natural Earth marks as disputed or breakaway, drawn as plain land and inert: no country is coloured over it. |
| .moss-country-graticule | instance | The faint 30-degree grid under the land. |
| .moss-country-land | container | The group holding every country's path. |
| .moss-country-legend | container | The levels in order, lowest first, each with its swatch and name, so colour is never the only carrier. |
| .moss-country-swatch | instance | A level's colour chip; data-level picks the level. |
| .moss-country-stamp | instance | The as-of line, "As of <the page's date>". Under as_of: today the site script shows the visitor's date instead, and a page with no date: is built with the build day. |
| .moss-country-panel | container | The panel a chosen country opens: name, level, the row's other columns (or the level's text), the as-of date and an optional action link. Hidden until a country is chosen; filled by the site script. |
| .moss-country-panel-head | instance | The panel's name row, with its close button. |
| .moss-country-panel-name | instance | The chosen country's name. |
| .moss-country-panel-close | instance | The panel's close button; Esc and a click on empty sea close it too. |
| .moss-country-panel-level | instance | The chosen country's level, with its swatch. |
| .moss-country-list | container | An embedded country map's rows as text, grouped by level; every row has its own anchor, so the list works without script. A style:levels embed places it apart from its map, with data-moss-country-list naming the map it belongs to and the map's colour shares set inline. |
| .moss-country-group | container | One level's rows. |
| .moss-country-group-title | instance | A group's level name, with its swatch. |
| .moss-country-stage | container | The map and the panel that opens over its right side (a sheet from the bottom of the screen under 56rem). With script it zooms: the shared zoom controls sit at its bottom right, and it takes ctrl or ⌘ + wheel, pinch, drag and the keyboard. |
| .moss-country-search | container | The search field above the map: a link to the list without script, an ARIA combobox with it. Turn it off with search: false under country_map. |
| .moss-country-search-name | instance | A search result's country (or "city, country"); each row also carries the level's swatch and its name. |
| .moss-country-search-level | instance | A search result's level, or "Not rated". |
| .moss-country-search-none | instance | The line shown when nothing matches, with a link to the list. |
| .moss-country-search-status | instance | The result count, read aloud by screen readers and not shown. |
| .moss-country-key-hint | instance | The map's keyboard help, which the zoomable map region names with aria-describedby; read by screen readers and not shown. |
| .moss-country-tip | instance | The small label that follows the pointer over a country on devices that hover: the name and the level, or "Not rated". Disputed land gives none. |
| .moss-country-data | instance | The JSON the panel reads: levels, their texts, the unrated text, the action and each row's columns. |
| .moss-place-children | instance | Direct child places on a place page, each with its roll-up-inclusive member count. Absent for a leaf place with no children, and for every non-place term. |
| .moss-place-line | instance | The place-typed kind's moss-term-line: the automatic place line under a page's byline, generated from location:, every declared place linked to its term page. Absent when location: is unset, the site declares no place-typed kind, or the kind sets line = false. |
| .moss-place-map | instance | Offline SVG map on a place term page or explicit style:map embed. Geography and privacy precision come from .moss/places.toml; no browser network request is made. A dot whose place has its own page is an SVG <a href> named for the place (a dot standing for several places is named for all of them), with a 24 by 24 CSS px hit target and a focus ring that shows on keyboard focus; the place's own page does not link its own dot. A figure holding such links is a labelled figure without role="img", and its svg is not aria-hidden; a figure with no linked dot keeps role="img" and a hidden svg. |
| .moss-place-map-credit | instance | The credit line in a map figure's bottom-right corner, present only on a site that declares [map.layers]; on a figure with a card row (data-moss-places-cards) it sits at the top-left, under the scope chip. Empty (and hidden) until the places explorer fills it with the credit of a detail layer that draws in view. |
| .moss-place-map-frame | container | Placement wrapper for an explicit map embed. Carries the standard width, alignment and size attributes while the semantic map figure remains self-contained. |
| .moss-place-map-caption | instance | Optional caption below an explicitly embedded place map. |
| .moss-place-locator | container | Compact sparse map after an authored page's location line when [site].locator = "align-right"; collapses into the reading flow on narrow screens. |
| .moss-places-viewport | instance | The focusable, pannable region the explorer lays over the static figure's box once the world map has loaded. Captures drag, wheel, pinch and arrow-key gestures; absent (the static SVG alone) until then or if the data fetch fails. |
| .moss-places-world | instance | Carries the world's own decoded raster (raster.ts's splitMapSvg/rasterizeOrFallback, built from the fetched world.svg) plus its live, unfiltered rivers overlay, and the CSS transform the camera drives. |
| .moss-places-world-surface | instance | The world layer's own decoded raster — an <img>, or (a browser lacking Blob/HTMLImageElement.decode() support) the live, unrasterised <svg> itself. Re-decoded at a sharper size on settle, up to a capped zoom past which it is left to go soft under whatever regional tiles cover that area. |
| .moss-places-world-flat | instance | The world layer's land, water and lakes alone, flat, drawn under moss-places-world-surface. Past the depth the world data supports, the surface's detail (relief, sea floor, built-up areas) fades out through --moss-place-world-detail and this keeps land and water distinct instead of enlarging shapes the data cannot carry. |
| .moss-places-tile-flat | instance | A regional tile's land, water and lakes alone, as live SVG under the tile's detail raster, so the coast stays a crisp edge when the detail fades past the world data's clean depth. |
| .moss-places-rivers | instance | A live, unfiltered overlay of just the [data-map-layer="rivers"] group, extracted from the world or a regional tile's own fetched SVG (raster.ts's splitMapSvg) so --moss-place-river-scale keeps working — a rasterised sibling has no access to the page's own custom properties. One per moss-places-world and one per moss-places-tile that actually drew a river. |
| .moss-places-tiles | instance | Regional detail layer above moss-places-world: once the camera's screen scale passes the world ceiling, the tiles tiles.json lists for the current view are fetched, cached and positioned here at their own 10° cell. |
| .moss-places-tile | instance | One fetched, decoded regional tile: a positioned wrapper (tiles.ts's TileLayer) carrying the tile's own raster image and, if the tile drew one, its own moss-places-rivers overlay. |
| .moss-places-labels | container | Decorative place-name layer, above the map and below moss-places-markers. Rebuilt on every camera settle (skipped mid-gesture, matching moss-places-world's own [data-gesture] window) from labels.json's cities, mountain ranges, peaks and rivers, greedily placed by priority within an area budget and never overlapping another label, a marker, the controls or the card row. |
| .moss-places-label | instance | One placed label's text. hidden when the greedy placement pass this settle did not have room for it — present in the DOM either way, so repeated camera settles never rebuild the underlying text/measurement work. |
| .moss-places-label-dot | instance | A city label's own anchor point, shown only when its name text had to move aside from a work marker sitting on the exact place — hidden (the marker IS the dot) when the label sits beside a marker whose own place it names, and hidden along with the label itself when dropped entirely. |
| .moss-places-markers | instance | Marker and ring layer, above the map layers. Rebuilt on every camera settle from the works currently in scope and view. |
| .moss-places-marker | instance | One button per work, or per cluster of works mergeByProximity merges at the current zoom. Clicking a single-work marker selects it; clicking a separable cluster zooms to separate it; clicking a cluster that stays merged at the detail ceiling blooms it into a ring instead. |
| .moss-places-ring-leg | instance | A hairline from a bloomed ring's anchor to one of its own moss-places-ring-dot buttons, evenly spaced clockwise from 12 o'clock. |
| .moss-places-ring-dot | instance | One real, individually-clickable button per work in a bloomed ring — a coincident cluster too close to ever separate by zooming, rendered as a small circle of dots instead of staying a single merged marker. Row order matches the scoped card row, both derived from the same work order. |
| .moss-places-controls | container | Floating control stack, top right in the places explorer and bottom right in a country map: the zoom capsule and the reset circle (hidden while the view is the whole view), sharing one glass material. |
| .moss-places-capsule | container | The two-cell zoom pill. Carries the glass material and the capsule's own rounded ends; its two moss-places-control cells are transparent so the capsule's background shows through, divided by one hairline. |
| .moss-places-control | instance | One control button: a 36px visible circle with a 44px hit area (an inset pseudo-element extends it without growing the painted size), round focus/hover/pressed states following that shape. |
| .moss-places-chip | container | Top-left floating breadcrumb scope chip, sharing moss-places-controls' own glass material. Shows the trail from every work down to the current scope (or the selected work, or an open ring's own member count) and is the map's one hierarchy control: an earlier crumb widens back out, the terminal crumb's own chevron digs into its children. |
| .moss-places-chip-trail | instance | Flex row of moss-places-chip-crumb/moss-places-chip-sep pairs, rebuilt whole on every scope, selection or ring change. |
| .moss-places-chip-crumb | instance | One crumb: a <button> when clicking it widens the scope (or opens the terminal crumb's own menu), a plain <span> for a leaf terminal crumb (a selected work, an open ring's count, or a place with no children). display: flex; align-items: center keeps every crumb's text on the same baseline as its neighbouring moss-places-chip-sep, regardless of which element is a real button. |
| .moss-places-chip-sep | instance | The › between two crumbs, decorative (aria-hidden). |
| .moss-places-chip-chevron | instance | Inline-SVG chevron inside the terminal crumb, present only when places lie under the current scope; flips 180° when its own crumb's aria-expanded is true. |
| .moss-places-chip-collapsible | instance | Wraps every crumb between the trail's first and terminal one. Always in the DOM; places-explorer.css hides it below a phone-width breakpoint, where moss-places-chip-ellipsis shows in its place — a CSS-only swap, nothing JS toggles on resize, except data-expanded, which moss-places-chip-ellipsis itself sets. |
| .moss-places-chip-ellipsis | instance | The phone-width stand-in for moss-places-chip-collapsible, hidden above that breakpoint. A real button, not decorative text: activating it sets its own aria-expanded and toggles moss-places-chip-collapsible's data-expanded, so every crumb the phone width would otherwise hide stays reachable by keyboard or touch. |
| .moss-places-chip-menu | container | The terminal crumb's dig-down menu: the current scope's own direct children, sharing the chip's glass material. Opens on the terminal crumb's click, closes on Escape, an outside click, or choosing an item; arrow keys move a roving tabindex between moss-places-chip-menu-items. |
| .moss-places-chip-menu-item | instance | One child place, sorted by work count descending then name (the same order scope.ts's childrenOf already gives a place term page's own children list). Hovering or focusing it exempts its own works from the marker layer's dimming attribute — the same one a bloomed ring uses — and dims the rest; choosing it narrows the scope to that place. |
| .moss-places-chip-menu-count | instance | A menu item's own locale-formatted work count, in parentheses. |
| .moss-places-cards | container | The horizontal row of works currently in scope and in view, floating along the bottom of the map. Each child is a moss-card, sorted by date descending then title. |
| .moss-places-card-select | instance | Wraps a moss-places-cards card's own moss-card-row: the whole card's click target, toggling its moss-places-card-detail open or closed. |
| .moss-places-card-detail | instance | A selected moss-places-cards card's own expand-in-place detail: description, place names, companion links and a link to the article. Collapsed (and inert) on every other card. |
| .moss-places-chip-scope | instance | The two-segment "This article | All articles" switch that replaces the breadcrumb trail on an article's own map. The current segment carries aria-current. |
| .moss-places-chip-scope-option | instance | One segment of the moss-places-chip-scope switch. |
| .moss-places-card-read | instance | Link to the work's own article, inside an expanded card's detail region. |
| .moss-places-status | standalone | Visually-hidden polite live region announcing scope and selection changes — never pan or zoom, and never a visible status line. |
| .moss-places-embed-frame | instance | The lazy-hydrated iframe embed.ts creates in the stable 3:2 host when near the viewport (or after an explicit Save-Data action). Hidden and non-interactive until its explorer posts READY. |
| .moss-places-embed-frame--settled | instance | Added once the iframe's own explorer posts READY. Enables the canonical iframe as the sole visible map; it does not animate between two map surfaces. |
| .moss-places-embed-status | instance | Localized waiting/loading status inside the stable embed host; removed when the iframe posts READY or the static fallback is restored. |
| .moss-places-embed-load | instance | Localized keyboard-accessible opt-in action for Save-Data or slow connections. No iframe request starts until this button is activated. |
| .moss-places-coop-hint | instance | map.ts's one-time nudge toward the zoom modifier: appended to the viewport the first time a reader wheels a COOPERATIVE (collapsed-embed) map without it held, since a bare wheel there deliberately does nothing — gestures.ts leaves it for the page's own scroll. Never appears on the full explorer page, which has no competing scroll to defer to. |
| .moss-places-coop-hint--visible | instance | Added one frame after the hint mounts (so its own opacity transition runs) and removed a couple of seconds later as the hint auto-dismisses — never left present once dismissed. |