/* The public identity guide uses the current Silver marketing palette. */
.rb { --ink: #191b22; --muted: #626777; --silver: #eef1f4; --line: #e2e6eb; color: var(--ink); font: 400 16px/1.6 Inter, sans-serif; letter-spacing: -.015em; }
.rb *, .rb *::before, .rb *::after { box-sizing: border-box; }
.rb h1, .rb h2, .rb h3, .rb p, .rb figure { margin: 0; }
.rb a { color: inherit; }
.rb img { max-width: 100%; height: auto; }
.rb :focus-visible { outline: 2px solid #286c4c; outline-offset: 5px; }
.rb-wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: clamp(24px, 4vw, 56px); }
.rb-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.rb-hero { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-top: clamp(56px, 7vw, 100px); padding-bottom: 48px; }
.rb h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.08; font-weight: 600; letter-spacing: -.055em; margin: 16px 0 24px; }
.rb-lead { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.45; max-width: 670px; }
.rb-button { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; gap: 22px; min-height: 48px; padding: 12px 22px; background: var(--ink); color: #fff !important; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; }
.rb-button:hover { background: #2d323c; }
.rb-button > span { font-size: 22px; line-height: 1; }
.rb-showcase { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.rb-showcase figure { position: relative; display: grid; place-items: center; min-height: clamp(230px, 28vw, 360px); border-radius: 16px; background: var(--silver); overflow: hidden; padding: 48px 32px 72px; }
.rb .rb-dark { background: var(--ink); color: #fff; }
.rb-showcase-logo img { width: 80%; }
.rb-showcase-mark img { width: 44%; }
.rb-showcase figcaption { position: absolute; left: 28px; right: 28px; bottom: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }
.rb-showcase-logo figcaption { color: #bec2cc; }
.rb-showcase-mark figcaption { color: var(--muted); }
.rb-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); padding-top: 80px; padding-bottom: 80px; }
.rb-sidebar { align-self: start; position: sticky; top: 112px; }
.rb-sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.rb-sidebar .rb-label { margin-bottom: 16px; }
.rb-sidebar nav a { padding: 9px 12px; margin-left: -12px; color: var(--muted); font-size: 14px; border-radius: 7px; text-decoration: none; }
.rb-sidebar nav a:hover { color: var(--ink); background: #f6f7f8; }
.rb-sidebar nav a[aria-current] { color: var(--ink); background: var(--silver); font-weight: 500; }
.rb-sidebar-download { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; text-decoration: none; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rb-section { scroll-margin-top: 112px; padding-block: 64px; border-bottom: 1px solid var(--line); }
.rb-section:first-child { padding-top: 0; }
.rb-section:last-child { border: 0; padding-bottom: 0; }
.rb h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1.15; margin-top: 14px; }
.rb h3 { font-size: 18px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; }
.rb-intro { color: var(--muted); max-width: 730px; font-size: 16px; line-height: 1.75; margin-top: 24px !important; }
.rb-naming { display: grid; grid-template-columns: 1fr 1.45fr; gap: 36px; align-items: center; margin-top: 36px; border-block: 1px solid var(--line); padding-block: 28px; }
.rb-name { font-size: clamp(34px, 3.2vw, 48px); font-weight: 600; letter-spacing: -.05em; }
.rb-naming p, .rb-rule-grid p, .rb-raqoon-copy p { font-size: 14px; line-height: 1.75; color: var(--muted); margin-top: 12px; }
.rb-logo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.rb-logo-demo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; min-height: 190px; padding: 40px 24px 20px; background: #f6f7f8; border-radius: 12px; }
.rb-logo-demo img { width: 80%; }
.rb-logo-demo figcaption { font-size: 12px; color: var(--muted); }
.rb-logo-demo.rb-dark figcaption { color: #bec2cc; }
.rb-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 36px; }
.rb-spacing { margin-top: 24px !important; padding: 32px 28px; background: #f6f7f8; border-radius: 10px; }
.rb-spacing-boundary { position: relative; border: 1px dashed #8a909c; padding: 24px; }
.rb-spacing-boundary img { display: block; width: 100%; }
.rb-space-label { position: absolute; top: -11px; left: 12px; font-size: 11px; padding-inline: 5px; background: #f6f7f8; color: var(--muted); }
.rb-minimum { display: flex; align-items: center; gap: 48px; height: 137px; margin-top: 24px; padding: 24px; background: #f6f7f8; border-radius: 10px; }
.rb-minimum > div { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rb-minimum span { font-size: 12px; color: var(--muted); }
.rb-subheading { margin-top: 40px !important; }
.rb-misuse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.rb-misuse { display: grid; place-items: center; height: 112px; border-radius: 10px; background: #f6f7f8; padding: 18px; overflow: hidden; }
.rb-misuse img { width: 80%; }
.rb-stretched img { transform: scaleY(1.9); }
.rb-recoloured img { filter: invert(36%) sepia(86%) saturate(970%) hue-rotate(171deg); }
.rb-low-contrast { background: #45474d; }
.rb-low-contrast img { opacity: .45; }
.rb-misuse-grid figcaption { font-size: 12px; margin-top: 10px; color: var(--muted); }
.rb-misuse-grid figcaption span { font-size: 18px; margin-right: 3px; color: var(--ink); }
.rb-small-note { font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 24px !important; }
.rb-small-note a { text-decoration: underline; text-underline-offset: 3px; }
.rb-colours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin-top: 32px; }
.rb-swatch { width: 100%; min-height: 152px; display: flex; flex-direction: column; justify-content: space-between; align-items: start; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--swatch); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.rb-swatch-light { color: #fff; border-color: transparent; }
.rb-swatch > span:last-child { display: flex; width: 100%; justify-content: space-between; gap: 6px; font-size: 11px; }
.rb-swatch:hover { outline: 1px solid var(--muted); outline-offset: 3px; }
.rb-colour p { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.rb-colour small { font-size: 11px; color: var(--muted); margin-top: 8px; display: block; }
.rb-copy-status { font-size: 13px; color: #286c4c; min-height: 22px; margin-top: 12px !important; }
.rb-type-specimen { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 24px; padding: 36px; margin-top: 32px; background: var(--silver); border-radius: 12px; }
.rb-type-aa { font-size: clamp(80px, 9vw, 130px); line-height: 1; letter-spacing: -.075em; font-weight: 500; }
.rb-alphabet { font-size: clamp(12px, 1.1vw, 16px); line-height: 1.9; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rb-type-specimen .rb-small-note { margin-top: 18px !important; font-size: 12px; }
.rb-type-scale { margin-top: 28px; }
.rb-type-scale > div { padding-block: 24px; border-bottom: 1px solid var(--line); }
.rb-type-scale span { display: block; }
.rb-type-scale small { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; }
.rb-type-display { font-size: clamp(34px, 4.4vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -.05em; }
.rb-type-heading { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -.04em; }
.rb-type-subheading { font-size: 24px; line-height: 1.3; font-weight: 500; }
.rb-type-body { font-size: 16px; line-height: 1.6; max-width: 570px; }
.rb-text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: 16px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.rb-raqoon-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; margin-top: 32px; }
.rb-raqoon-portrait { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rb-raqoon-portrait img { display: block; width: 100%; }
.rb-raqoon-portrait figcaption { font-size: 12px; color: var(--muted); padding: 14px 20px; border-top: 1px solid var(--line); }
.rb-raqoon-copy h3:not(:first-child) { margin-top: 24px; }
.rb-corner-example { position: relative; overflow: hidden; min-height: 280px; background: var(--silver); border-radius: 12px; margin-top: 32px; padding: 30px; }
.rb-corner-example p { font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; margin-top: 16px; max-width: 62%; }
.rb-corner-example > img:not(.rb-corner-raqoon) { margin-top: 26px; }
.rb-corner-raqoon { position: absolute; bottom: 0; right: 0; width: min(33%, 215px); }
.rb-animation-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.rb-motion-toggle { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-height: 44px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; cursor: pointer; }
.rb-motion-toggle[hidden] { display: none; }
.rb-motion-toggle:hover { background: var(--silver); }
.rb-animations { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.rb-animation { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rb-animation-stage { position: relative; background: var(--silver); height: 280px; overflow: hidden; }
.rb-animation-stage img { position: absolute; bottom: 0; right: 0; width: auto; height: 90%; max-width: 100%; object-fit: contain; object-position: bottom right; }
.rb-animation figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; font-size: 13px; }
.rb-animation figcaption a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.rb-download-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.rb-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.rb-asset { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rb-asset-preview { display: grid; place-items: center; height: 190px; padding: 36px; background: #f6f7f8; }
.rb-asset-preview img { width: 90%; max-height: 100%; object-fit: contain; }
.rb-asset-mark img { width: 40%; }
.rb-asset-wordmark img { width: 65%; }
.rb-asset-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; }
.rb-asset-info h3 { font-size: 14px; }
.rb-asset-info p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.rb-asset-info a { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 22px; }
.rb-asset-info a:hover { background: var(--silver); }
.rb-skip { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff !important; border-radius: 8px; }
.rb-skip:focus { top: 16px; }
@media (max-width: 1000px) {
    .rb-body { grid-template-columns: 140px minmax(0, 1fr); gap: 32px; }
    .rb-hero { gap: 24px; }
    .rb-colours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-type-specimen { padding: 24px; }
    .rb-raqoon-grid { gap: 24px; }
}
@media (max-width: 760px) {
    .rb-hero { flex-direction: column; align-items: start; padding-bottom: 32px; gap: 24px; }
    .rb-showcase { grid-template-columns: 1.2fr 1fr; gap: 10px; }
    .rb-showcase figure { min-height: 210px; padding: 24px 18px 52px; border-radius: 12px; }
    .rb-showcase figcaption { left: 16px; right: 16px; bottom: 16px; font-size: 11px; }
    .rb-showcase-logo figcaption > span:last-child { display: none; }
    .rb-showcase-logo img { width: 95%; }
    .rb-showcase-mark img { width: 55%; }
    .rb-body { display: block; padding-top: 32px; padding-bottom: 56px; }
    .rb-sidebar { position: static; margin-bottom: 40px; }
    .rb-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 3px 4px; }
    .rb-sidebar .rb-label, .rb-sidebar-download { display: none; }
    .rb-sidebar nav a { margin: 0; padding: 11px 12px; font-size: 13px; }
    .rb-section { padding-block: 44px; scroll-margin-top: 96px; }
    .rb-naming { grid-template-columns: 1fr; gap: 16px; }
    .rb-rule-grid { gap: 24px; }
    .rb-colours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-raqoon-grid { grid-template-columns: 1fr; }
    .rb-raqoon-portrait { max-width: 400px; }
    .rb-type-heading { font-size: 32px; }
    .rb-download-heading { flex-direction: column; align-items: start; }
}
@media (max-width: 480px) {
    .rb-showcase { grid-template-columns: 1fr; }
    .rb-showcase figure { min-height: 220px; }
    .rb-showcase-logo img { width: 80%; }
    .rb-showcase-mark img { width: 32%; }
    .rb-logo-pair, .rb-rule-grid, .rb-assets, .rb-animations { grid-template-columns: 1fr; }
    .rb-logo-demo { min-height: 170px; }
    .rb-misuse-grid { grid-template-columns: 1fr; }
    .rb-misuse { height: 100px; }
    .rb-misuse img { width: 55%; }
    .rb-colours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-swatch { min-height: 140px; padding: 16px; }
    .rb-type-specimen { grid-template-columns: 1fr; gap: 20px; }
    .rb-alphabet { font-size: 13px; }
    .rb-type-heading { font-size: 28px; }
    .rb-corner-example { min-height: 260px; padding: 24px; }
    .rb-corner-raqoon { width: 37%; }
    .rb-corner-example p { max-width: 72%; }
    .rb-assets { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { html:has(.rb) { scroll-behavior: auto; } }
