/* The brand guidelines page (/omni-branding/). Built on the site's own tokens in redux.css;
   everything here is prefixed bg- so it cannot reach another page. */

/* The Omni Digital faces, for their specimens only. Self-hosted: the site allows fonts from
   itself and nowhere else. Copied from the Omni Digital website's own files. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); }

.bg-toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 1.6rem; }
/* The hero is the dark band, so the links are set for it. */
.bg-toc a { font-weight: 600; color: #fff; text-decoration: none; }
.bg-toc a:hover, .bg-toc a:focus-visible { color: var(--pink-hot); }

.bg { border-top: 1px solid var(--line); }
.bg--alt { background: var(--paper-2); }
.bg-wrap { display: grid; gap: 28px; }
/* Each section's description sits under its title, never beside it (Sam, 30 Nov 2026). */
.bg-head { display: grid; gap: 14px; }
.bg-head p { color: var(--ink-2); max-width: var(--measure); margin: 0; }
/* A short rule under each section title, as the 2021 toolkit did (Sam, 30 Nov 2026). */
.bg-head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--pink); margin-top: 14px; }
.bg h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; margin: 0 0 6px; }
.bg p { margin: 0; }

.bg-grid { display: grid; gap: 20px; }
.bg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bg-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.bg-card p { color: var(--ink-2); }
.bg-label { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.bg-note { color: var(--ink-2); font-size: 0.98rem; }

/* The family */
.bg-mark { height: 110px; display: flex; align-items: center; }
.bg-mark img { height: 72px; width: auto; max-width: 100%; }
.bg-fam .bg-mark img[src*="omnifarious"] { height: 44px; }

/* The O */
.bg-o { width: 88px; }
.bg-o svg, .bg-tile svg, .bg-exbox svg { display: block; width: 100%; height: auto; }
.bg-spec { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; font-size: 0.95rem; }
.bg-spec dt { color: var(--ink-2); }
.bg-spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.bg-spec--wide { gap: 8px 18px; margin-top: 4px; }
.bg-use { display: grid; gap: 12px; align-content: start; }
.bg-use p, .bg-ex p { font-size: 0.98rem; color: var(--ink-2); }
.bg-use b { color: var(--ink); }
.bg-tile { aspect-ratio: 1; width: 100%; max-width: 180px; display: grid; place-items: center; border-radius: var(--radius); }
.bg-tile > svg { width: 46%; }
.bg-tile--round { border-radius: 50%; }
.bg-tile--plain { background: #fff; border: 1px solid var(--line); }
.bg-zone { width: 62%; aspect-ratio: 1; outline: 1.5px dashed #C9A8BE; display: grid; place-items: center; color: var(--pink); }
.bg-zone svg { width: 68%; }

.bg-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bg-rules ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); }
.bg-do { border-top: 3px solid var(--green); }
.bg-dont { border-top: 3px solid #971900; }
.bg-ex { display: grid; gap: 10px; align-content: start; }
.bg-exbox { aspect-ratio: 4 / 3; max-width: 100%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; position: relative; }
.bg-exbox > span { display: block; width: 32%; }
.bg-exbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), #971900 50%, transparent calc(50% + 1px)); opacity: .55; }
.bg-outlined path { fill: none; stroke: var(--pink); stroke-width: 5; }

/* Wordmarks */
.bg-wm figure { margin: 0; display: grid; gap: 8px; }
.bg-sw { height: 130px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bg-sw img { height: 70px; width: auto; max-width: 100%; }
.bg-sw img[src*="omni-black"], .bg-sw img[src*="omni-white"] { height: 46px; }
.bg-sw img.bg-wide { height: 40px; }
.bg-wm figcaption { font-size: 0.92rem; color: var(--ink-2); }

/* Colour */
.bg-pal { display: grid; gap: 12px; }
.bg-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bg-chip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bg-chip__sw { height: 84px; box-shadow: inset 0 -1px 0 var(--line); }
.bg-chip__info { padding: 10px 12px 12px; font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.bg-chip__info b { display: block; color: var(--ink); font-size: 1rem; }
.bg-chip__info span { display: block; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Typography */
.bg-specimen { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.05; color: var(--ink) !important; }
.bg-alpha { font-size: 0.95rem; word-break: break-word; }
.bg-fraunces, .bg-fraunces-s { font-family: var(--display); font-weight: 500; }
.bg-fraunces { font-variation-settings: "opsz" 144; }
/* A heading with its light second line (Sam, 30 Nov 2026). */
.bg-pair { margin: 6px 0 2px; padding: 16px 18px; background: var(--plum); border-radius: var(--radius); }
.bg-pair p { color: #fff !important; }
.bg-pair__h { font: 500 1.7rem/1.1 var(--display); font-variation-settings: "opsz" 144; }
.bg-pair__s { font: 300 1.15rem/1.3 var(--display); margin-top: 4px !important; }
.bg-manrope, .bg-manrope-s { font-family: "Manrope", system-ui, sans-serif; }
.bg-manrope { font-weight: 800; letter-spacing: -0.02em; }
.bg-mono, .bg-mono-s { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.bg-mono { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.bg-scroll { overflow-x: auto; }
.bg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.bg-table th, .bg-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.bg-table th { font-weight: 600; color: var(--ink-2); }

/* Documents */
.bg-doc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: start; }
.bg-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.bg-a4 { aspect-ratio: 210 / 297; max-width: 100%; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(43, 2, 37, 0.10); position: relative; container-type: inline-size; }
.bg-a4__logo { position: absolute; left: 8.57cqw; top: 7.6cqw; width: 18cqw; height: auto; }
.bg-a4__title { position: absolute; left: 8.57cqw; right: 8.57cqw; top: 21cqw; font: 500 5.4cqw/1.15 var(--display); color: #333333; }
.bg-a4__bars { position: absolute; left: 8.57cqw; right: 8.57cqw; top: 34cqw; display: grid; gap: 2.4cqw; }
.bg-a4--later .bg-a4__bars { top: 7.6cqw; }
.bg-a4__bars i { display: block; height: 1.2cqw; background: #ECE6EA; border-radius: 1px; }
.bg-a4__bars i.h { width: 42%; height: 2.2cqw; background: #D8CED5; margin-top: 2.6cqw; }
.bg-a4__bars i.s { width: 76%; }
.bg-a4__foot { position: absolute; left: 8.57cqw; right: 8.57cqw; bottom: 6.5cqw; display: flex; justify-content: space-between; align-items: flex-start; gap: 4cqw; font: 400 1.75cqw/1.45 var(--body); color: #4a4450; }
.bg-a4--later .bg-a4__foot { bottom: 4cqw; }
.bg-a4__foot b { font-weight: 600; color: #333333; }
.bg-a4__foot .pg { font-weight: 600; white-space: nowrap; }
.bg-pin { position: absolute; width: 5.2cqw; height: 5.2cqw; border-radius: 50%; background: var(--pink); color: #fff; font: 700 2.8cqw/5.2cqw var(--body); text-align: center; box-shadow: 0 0 0 0.8cqw #fff; }
.bg-callouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: c; }
.bg-callouts li { display: grid; grid-template-columns: 30px 1fr; gap: 0 12px; counter-increment: c; }
.bg-callouts li::before { content: counter(c); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.bg-callouts h3 { font-size: 1.12rem; margin: 0 0 2px; }
.bg-callouts p { color: var(--ink-2); font-size: 0.98rem; }

/* Company details */
.bg-block { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--pink); padding: 18px 22px; line-height: 1.6; margin-top: 6px; }
.bg-block b { font-weight: 600; color: #333333; }

/* Tone of voice */
.bg-voice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.bg-quote { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.2 var(--display); font-variation-settings: "opsz" 96; }
.bg-quote em { font-style: normal; color: var(--pink); font-weight: 600; }
.bg-traits { display: grid; gap: 16px; align-content: start; }
.bg-traits p:not(.bg-label) { color: var(--ink-2); }
.bg-traits b { display: block; color: var(--ink); font-weight: 600; }

/* Logo files */
.bg-file { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.bg-file__img { height: 110px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color 200ms var(--ease); }
.bg-file__img--dark { background: #2B0225; border-color: #2B0225; }
.bg-file__img img { width: auto; height: auto; max-width: 100%; max-height: 72px; }
/* "Omni" alone has no name line under it, so at the same height it would read larger. */
.bg-file__img img[src="/brand/omni-black.svg"], .bg-file__img img[src="/brand/omni-white.svg"] { max-height: 44px; }
.bg-file:hover .bg-file__img, .bg-file:focus-visible .bg-file__img { border-color: var(--pink); }
.bg-file__name { font-weight: 600; font-size: 0.98rem; display: flex; justify-content: space-between; gap: 8px; }
.bg-file__name small { font-weight: 400; color: var(--ink-2); }

@media (max-width: 900px) {
  .bg-head, .bg-doc, .bg-voice { grid-template-columns: 1fr; }
  .bg-3 { grid-template-columns: 1fr; }
  .bg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bg-rules { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bg-2, .bg-4 { grid-template-columns: 1fr; }
  .bg-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
