Template:OHC/styles.css
Template page
More languages
More actions
/* OHC Network Wiki -- component styles, careui design system.
Colour comes exclusively from the --ohc-* token layer in
MediaWiki:Common.css; do not introduce literals here. Note the
TemplateStyles sanitizer rejects var() in border-radius, font-family,
padding and border-color, so those stay literal.
Reference: [[OHC Network Wiki:Design/careui]] */
/* Hero ------------------------------------------------------------------ */
.ohc-hero { text-align: center; padding: 2.2em 1em 1.1em; }
.ohc-hero__title { font-family: 'Figtree Variable', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 2.4em; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--ohc-foreground); }
.ohc-hero__tagline { margin: 0.55em auto 0; max-width: 42em; font-size: 1.25em; font-weight: 700; color: var(--ohc-primary); }
.ohc-hero__summary { margin: 0.8em auto 0; max-width: 46em; line-height: 1.65; color: var(--ohc-soft-foreground); }
.ohc-hero__cta { margin-top: 1.2em; display: flex; gap: 0.7em; flex-wrap: wrap; justify-content: center; }
/* Buttons --------------------------------------------------------------- */
.ohc-btn { display: inline-block; padding: 0.55em 1.3em; border-radius: 9999px; background: var(--ohc-primary); font-weight: 600; box-shadow: 0 1px 2px var(--ohc-shadow-color-strong); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ohc-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--ohc-shadow-color-strong); }
.ohc-btn a, .ohc-btn a:visited { color: var(--ohc-primary-foreground) !important; text-decoration: none; }
.ohc-btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ohc-primary); }
.ohc-btn--ghost:hover { background: var(--ohc-primary-bg); }
.ohc-btn--ghost a, .ohc-btn--ghost a:visited { color: var(--ohc-primary) !important; }
/* Badges / proof strip -------------------------------------------------- */
.ohc-badges { display: flex; flex-wrap: wrap; gap: 0.5em; justify-content: center; margin: 1em 0; }
.ohc-badge { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.32em 0.9em; border-radius: 9999px; font-size: 0.85em; font-weight: 600; color: var(--ohc-foreground); background: var(--ohc-muted-background); box-shadow: inset 0 0 0 1px var(--ohc-border); }
.ohc-badge__dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ohc-primary); }
/* Card grid ------------------------------------------------------------- */
.ohc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1em; margin: 1em 0; }
.ohc-card { position: relative; background: var(--ohc-card); border: 1px solid var(--ohc-border); border-top: 3px solid var(--ohc-primary); border-radius: 14px; padding: 1.05em 1.15em; transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.ohc-card:hover { box-shadow: 0 8px 24px var(--ohc-shadow-color); transform: translateY(-2px); border-top-color: var(--ohc-primary-500); }
.ohc-card__meta { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: 0.55em; padding-right: 1.4em; }
.ohc-card__title { font-family: 'Figtree Variable', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: 1.06em; margin-bottom: 0.3em; }
.ohc-card__title a { color: var(--ohc-foreground); text-decoration: none; }
.ohc-card__title a:hover { color: var(--ohc-primary); }
.ohc-card__body { line-height: 1.6; font-size: 0.95em; color: var(--ohc-soft-foreground); }
.ohc-badge--mono { font-family: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
/* Whole card is the click target (title link stretches over the card) --- */
.ohc-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ohc-card__go { position: absolute; top: 0.8em; right: 1em; font-family: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.1em; font-weight: 700; line-height: 1; color: var(--ohc-primary); opacity: 0.45; transition: opacity 0.15s ease, transform 0.15s ease; }
.ohc-card:hover .ohc-card__go { opacity: 1; transform: translateX(2px); }
/* Signal / quote -------------------------------------------------------- */
.ohc-signal { border-left: 3px solid var(--ohc-primary); background: var(--ohc-muted-background); border-radius: 0 10px 10px 0; padding: 0.9em 1.1em; margin: 0.6em 0; }
.ohc-signal__quote { font-style: italic; line-height: 1.55; }
.ohc-signal__who { margin-top: 0.4em; font-size: 0.9em; color: var(--ohc-soft-foreground); }
/* Infobox --------------------------------------------------------------- */
.ohc-infobox { float: right; clear: right; width: 22em; max-width: 100%; margin: 0 0 1em 1em; border: 1px solid var(--ohc-border); border-radius: 14px; overflow: hidden; background: var(--ohc-card); font-size: 0.88em; }
.ohc-infobox__title { background: var(--ohc-primary); color: var(--ohc-primary-foreground); font-family: 'Figtree Variable', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; text-align: center; font-weight: 700; font-size: 1.15em; padding: 0.65em 0.8em; }
.ohc-infobox__image { text-align: center; padding: 0.8em; background: var(--ohc-muted-background); }
.ohc-infobox table { width: 100%; border-collapse: collapse; }
.ohc-infobox__section { background: var(--ohc-muted-background); font-weight: 700; text-align: center; padding: 0.4em; border-top: 1px solid var(--ohc-border); }
.ohc-infobox th.ohc-label { text-align: left; vertical-align: top; padding: 0.4em 0.6em; width: 8.5em; font-weight: 600; color: var(--ohc-soft-foreground); border-top: 1px solid var(--ohc-border); }
.ohc-infobox td.ohc-data { padding: 0.4em 0.6em; border-top: 1px solid var(--ohc-border); }
/* Navbox ---------------------------------------------------------------- */
.ohc-navbox { clear: both; border: 1px solid var(--ohc-border); border-radius: 14px; margin: 1.2em 0; font-size: 0.9em; overflow: hidden; }
.ohc-navbox__title { background: var(--ohc-primary); color: var(--ohc-primary-foreground); text-align: center; font-family: 'Figtree Variable', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; padding: 0.6em; }
.ohc-navbox__row { display: flex; border-top: 1px solid var(--ohc-border); }
.ohc-navbox__group { flex: none; width: 8em; padding: 0.5em 0.7em; font-weight: 700; color: var(--ohc-foreground); background: var(--ohc-muted-background); }
.ohc-navbox__items { padding: 0.5em 0.7em; }
.ohc-navbox__items a { color: var(--ohc-primary); }
/* Domain sidebar -------------------------------------------------------- */
.ohc-sidebar { float: right; clear: right; width: 18em; max-width: 100%; margin: 0 0 1em 1.5em; border: 1px solid var(--ohc-border); border-radius: 14px; font-size: 0.85em; overflow: hidden; background: var(--ohc-card); }
.ohc-sidebar__title { background: var(--ohc-primary); color: var(--ohc-primary-foreground); text-align: center; font-family: 'Figtree Variable', 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 700; padding: 0.55em 0.6em; font-size: 1.05em; }
.ohc-sidebar__group { border-top: 1px solid var(--ohc-border); }
.ohc-sidebar__group-title { padding: 0.35em 0.7em; font-weight: 700; font-size: 0.9em; color: var(--ohc-soft-foreground); background: var(--ohc-muted-background); text-transform: uppercase; letter-spacing: 0.04em; }
.ohc-sidebar__items { padding: 0.25em 0; }
.ohc-sidebar__item { display: block; padding: 0.2em 0.7em 0.2em 1.2em; line-height: 1.5; }
.ohc-sidebar__item--active { font-weight: 700; background: var(--ohc-muted-background); border-left: 3px solid var(--ohc-primary); }
@media (max-width: 72em) { .ohc-sidebar { float: none; width: 100%; margin: 1em 0; } }
/* Plugin sidebar (wide variant used by Template:Plugin) ----------------- */
.ohc-sidebar--wide { width: 22em; }
/* Mermaid diagrams ------------------------------------------------------ */
.ext-mermaid { overflow-x: auto; max-width: 100%; }
.ext-mermaid svg { max-width: 100%; height: auto; }
/* Message boxes --------------------------------------------------------- */
.ohc-mbox { display: flex; gap: 0.6em; align-items: flex-start; border: 1px solid var(--ohc-border); border-left: 4px solid var(--ohc-primary); background: var(--ohc-muted-background); border-radius: 10px; padding: 0.6em 0.9em; margin: 0.8em 0; }
.ohc-mbox--source { border-left-color: var(--ohc-status-warning); }
.ohc-mbox__icon { font-size: 1.3em; line-height: 1; }
/* Links inside a primary-filled surface must take the surface's
foreground, or they inherit --color-link and land emerald-on-emerald. */
.ohc-infobox__title a,
.ohc-infobox__title a:visited,
.ohc-infobox__title a.external,
.ohc-navbox__title a,
.ohc-navbox__title a:visited,
.ohc-navbox__title a.external,
.ohc-sidebar__title a,
.ohc-sidebar__title a:visited,
.ohc-sidebar__title a.external { color: var(--ohc-primary-foreground); }