.browser-roll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: left;
}

.browser-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -14px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}
.browser-item {
  flex: 0 0 auto;
}

.browser-item:first-child {
  margin-left: 0;
}

.browser-item img {
  width: 24px;
  height: auto;
}

.browser-item:hover {
  transform: translateY(-6px) scale(1.1);
  z-index: 10;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.browser-info {
  margin-top: 12px;
  min-height: 32px;
  display: flex;
  justify-content: left;
  pointer-events: none;
}

.browser-info-inner {
  background: #ffffff;
  border:1px solid #aaa;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;

  box-shadow:
    0 4px 12px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(0,0,0,.06);

  opacity: 0;
  transform: translateY(-6px) scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}

.browser-info.active .browser-info-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.browser-name {
  font-weight: 600;
  margin-right: 6px;
}

.browser-version {
  font-size: 12px;
  opacity: .75;
}
.browser-item {
  touch-action: manipulation;
}
.browser-item.active {
  transform: translateY(-6px) scale(1.1);
  z-index: 10;
}
@media (hover: none) {
  .browser-item:hover {
    background: none; 
  }
}

/*table {table-layout: fixed;}
table thead th:first-child {
  width: 100px; 
}
td{color:var(--gray-400)!important;}*/

/* ---------- Search ---------- */
.prop-search {
    position: relative;
    margin: 8px 0 28px;
}
.prop-search__input {
    width: 100%;
    padding: 18px 110px 18px 54px;
    font-size: 1.05rem;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.prop-search__input:focus {
    outline: none;
    background: #fff;
    border-color: var(--bs-primary, #4f46e5);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.prop-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #94a3b8;
    pointer-events: none;
}
.prop-search__hint {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .75rem;
    color: #64748b;
    background: #eef2f7;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}
.prop-search__input:focus ~ .prop-search__hint { opacity: 0; }
 
/* ---------- Grid ---------- */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
 
/* ---------- Chips ---------- */
.prop-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.prop-chip__name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prop-chip__arrow {
    flex-shrink: 0;
    font-size: 16px;
    color: #cbd5e1;
    transition: color .18s, transform .18s;
}
.prop-chip:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary, #4f46e5);
    background: rgba(79, 70, 229, .04);
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .3);
    color: var(--bs-primary, #4f46e5);
}
.prop-chip:hover .prop-chip__arrow {
    color: var(--bs-primary, #4f46e5);
    transform: translate(2px, -2px);
}
 
@media (max-width: 575px) {
    .prop-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .prop-chip { padding: 10px 12px; }
    .prop-search__hint { display: none; }
}

/* ---------- Tone colours (one set per status family) ---------- */
.status-cat--info,    .status-section--info     { --tone: #3b82f6; --tone-soft: rgba(59,130,246,.10); }
.status-cat--success, .status-section--success  { --tone: #10b981; --tone-soft: rgba(16,185,129,.10); }
.status-cat--redirect,.status-section--redirect { --tone: #f59e0b; --tone-soft: rgba(245,158,11,.12); }
.status-cat--client,  .status-section--client   { --tone: #f97316; --tone-soft: rgba(249,115,22,.10); }
.status-cat--server,  .status-section--server   { --tone: #ef4444; --tone-soft: rgba(239,68,68,.10); }

/* ---------- Overview cards ---------- */
.status-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}
.status-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-top: 4px solid var(--tone);
    border-radius: 14px;
    text-decoration: none;
    color: #475569;
    transition: transform .18s ease, box-shadow .18s ease;
}
.status-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -12px var(--tone);
}
.status-cat__range {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--tone);
}
.status-cat__title { font-weight: 600; color: #0f172a; }
.status-cat__blurb { font-size: .85rem; line-height: 1.45; }
.status-cat__count {
    margin-top: 8px;
    align-self: flex-start;
    font-size: .72rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--tone-soft);
    color: var(--tone);
    font-weight: 600;
}

/* ---------- Sections ---------- */
.status-section { margin: 36px 0 8px; }
.status-section__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    scroll-margin-top: 90px;
}
.status-section__badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tone-soft);
    color: var(--tone);
}
.status-section__sub { font-weight: 400; color: #64748b; font-size: .9em; }

/* ---------- Rows ---------- */
.status-list { display: grid; gap: 10px; }
.status-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-left: 4px solid var(--tone);
    border-radius: 12px;
    transition: box-shadow .18s ease, transform .18s ease;
}
.status-row:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 20px -10px var(--tone);
}
.status-row__code {
    flex-shrink: 0;
    min-width: 58px;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: .95rem;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--tone-soft);
    color: var(--tone);
}
.status-row__body { min-width: 0; }
.status-row__name {
    font-weight: 600;
    text-decoration: none;
}
.status-row__name:hover { text-decoration: underline; }
.status-row__meta {
    margin: 4px 0 0;
    font-size: .92rem;
    line-height: 1.55;
    color: #64748b;
}

@media (max-width: 575px) {
    .status-row { gap: 12px; padding: 12px 14px; }
    .status-row__code { min-width: 50px; }
}

/* =====================================================================
   Shared styles for reference / detail templates (.ref-page)
   Set the tone with a modifier on the wrapper: ref--info | ref--success |
   ref--redirect | ref--client | ref--server  (no modifier = theme primary)
   ===================================================================== */

/* =====================================================================
   Shared styles for reference / detail templates (.ref-page)
   Set the tone with a modifier on the wrapper: ref--info | ref--success |
   ref--redirect | ref--client | ref--server  (no modifier = theme primary)
   ===================================================================== */
 
/* ---------- Tone ---------- */
.ref-page {
    --tone: var(--bs-primary, #4f46e5);
	--tone-code: #1e3a8a;
    --tone-soft: rgba(79, 70, 229, .10);
    --ref-border: #e8edf3;
    --ref-surface: #fff;
    --ref-text: #0f172a;
    --ref-muted: #64748b;
    margin-top: 20px;
}
.ref--info     { --tone: #3b82f6; --tone-soft: rgba(59, 130, 246, .10); }
.ref--success  { --tone: #10b981; --tone-soft: rgba(16, 185, 129, .10); }
.ref--redirect { --tone: #f59e0b; --tone-soft: rgba(245, 158, 11, .12); }
.ref--client   { --tone: #f97316; --tone-soft: rgba(249, 115, 22, .10); }
.ref--server   { --tone: #ef4444; --tone-soft: rgba(239, 68, 68, .10); }
 
/* ---------- Summary strip ---------- */
.ref-hero {
    /* Grid: [code] [text, takes the free space] [chips]. Never wraps unpredictably. */
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--tone-soft), transparent 75%);
    border: 1px solid var(--ref-border);
    border-left: 5px solid var(--tone);
    border-radius: 16px;
}
.ref-hero__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--tone);
}
.ref-hero__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ref-hero__eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ref-muted);
}
.ref-hero__name { font-size: 1.25rem; font-weight: 600; color: var(--ref-text); }
.ref-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.ref-chip {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: .8rem;
    color: var(--ref-muted);
    background: var(--ref-surface);
    border: 1px solid var(--ref-border);
    border-radius: 999px;
}
 
/* ---------- Content blocks ---------- */
.ref-block {
    margin-top: 18px;
    background: var(--ref-surface);
    border: 1px solid var(--ref-border);
    border-radius: 16px;
    overflow: hidden;
}
.ref-block__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ref-text);
    border-bottom: 1px solid #eef2f6;
}
.ref-block__title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: var(--tone);
}
.ref-block__body { padding: 10px 22px; }
.ref-block__body > :last-child { margin-bottom: 0; }
.ref-block__body pre.syntax { margin: 0; border-radius: 10px; }
 
.ref-description p { font-size: 1.02rem; line-height: 1.75; }
 
.ref-causes ul, .ref-causes ol { padding-left: 1.3rem; margin-bottom: 0; }
.ref-causes li { margin: .45rem 0; line-height: 1.65; }
.ref-causes li::marker { color: var(--tone); font-weight: 700; }
 
/* ---------- Browser support ---------- */
.ref-support__summary {
    --sup: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--ref-text);
    background: color-mix(in srgb, var(--sup) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--sup) 28%, transparent);
    border-radius: 12px;
}
.ref-support__summary::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sup);
}
.ref-support__summary--ok      { --sup: #10b981; }
.ref-support__summary--mixed   { --sup: #f59e0b; }
.ref-support__summary--bad     { --sup: #ef4444; }
.ref-support__summary--unknown { --sup: #94a3b8; }
 
.ref-support__group {
    margin: 18px 0 10px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ref-muted);
}
.ref-support .browser-roll { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-support .browser-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.ref-support .browser-item img { width: 28px; height: 28px; object-fit: contain; }
.ref-support .browser-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px -8px rgba(15, 23, 42, .35);
}
.ref-support .browser-info {
    min-height: 1.6em;
    margin-top: 14px;
    font-size: .9rem;
    color: var(--ref-muted);
}
 
.ref-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--ref-border);
    font-size: .8rem;
    color: var(--ref-muted);
}
.ref-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ref-legend__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
 
/* ---------- Small screens ---------- */
/* Medium screens: chips drop below, left-aligned under the code + text */
@media (max-width: 767px) {
    .ref-hero { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); }
    .ref-hero__meta { grid-column: 1 / -1; justify-content: flex-start; }
}
 
@media (max-width: 575px) {
    .ref-hero { padding: 16px; grid-template-columns: minmax(0, 1fr); }
    .ref-hero__code { font-size: 2.1rem; }
    .ref-block__title, .ref-block__body { padding-left: 16px; padding-right: 16px; }
}

.ref-example {
    --tabs-bar: #f1f5f9;
    --tabs-pill: #ffffff;
    --tabs-text: #64748b;
    --tabs-line: #e8edf3;
}
 
/* Container: a 56px toolbar strip painted across the top, panels below */
.ref-example .tabs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(var(--tabs-bar) 0 56px, transparent 56px);
}
 
/* Hide the radios but keep them focusable */
.ref-example .tabs > input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
 
/* Tab buttons */
.ref-example .tabs > label {
    order: 1;
    float: none;
    position: relative;
    top: auto;
    left: auto;
    margin: 11px 0 11px 4px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--tabs-text);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ref-example .tabs > label:first-of-type { margin-left: 12px; }
.ref-example .tabs > label:hover { color: var(--tone); }
 
.ref-example .tabs > input:checked + label {
    color: var(--tone);
    background: var(--tabs-pill);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 1px 1px rgba(15, 23, 42, .06);
}
.ref-example .tabs > input:focus-visible + label {
    outline: 2px solid var(--tone);
    outline-offset: 2px;
}
 
/* Panels */
.ref-example .tabs > .tab {
    order: 2;
    flex: 0 0 100%;
    display: none;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--tabs-line);
    background: transparent;
}
.ref-example .tabs > input:checked + label + .tab { display: block; }
 
/* "Open in editor" action, pinned to the right of the toolbar */
.ref-example .tabs__action {
    order: 1;
    margin: 0 12px 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--tone);
    background: var(--tone-soft);
    border-radius: 999px;
    transition: background .15s ease, color .15s ease;
}
.ref-example .tabs__action:hover { background: var(--tone); color: #fff; }
.ref-example .tabs__action svg { width: 14px; height: 14px; }
 
/* Code panel */
.ref-example .tab pre { margin: 0; border-radius: 0; }
 
@media (max-width: 575px) {
    .ref-example .tabs > label { padding: 6px 14px; }
    .ref-example .tabs__action span { display: none; }
}
/* Info / tip callout (e.g. "try our generator") */
.ref-callout {
    margin: 16px 0 0;
    padding: 14px 18px;
    line-height: 1.6;
    background: var(--tone-soft);
    border: 1px solid color-mix(in srgb, var(--tone) 25%, transparent);
    border-left: 4px solid var(--tone);
    border-radius: 12px;
}
.ref-callout > :last-child { margin-bottom: 0; }
.ref-callout code { background: var(--ref-surface); }
 
/* Interactive demo area */
.ref-demo { overflow-x: auto; }
.examples {background:#fff;}

/* ---------- Notes / warning banner ---------- */
.ref-alert {
    margin: 0 0 18px;
    padding: 14px 18px;
    line-height: 1.6;
    color: #7f1d1d;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
}
.ref-alert > :last-child { margin-bottom: 0; }
 
/* ---------- Hero tweaks for long labels (e.g. <!-- --> (Comment)) ---------- */
.ref-hero__code--tag { font-size: 2rem; overflow-wrap: anywhere; }
.ref-hero__name--sm { font-size: 1rem; font-weight: 500; color: var(--ref-muted); }
.ref-chip--warn {
    color: #b45309;
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .35);
    font-weight: 600;
}
 
/* ---------- Properties list ---------- */
dl, dt, dd {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

dt::after, dt::before,
dd::after, dd::before {
    content: none;
    display: none;
    margin: 0;
    padding: 0;
    position: static;
}
.ref-page dl {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 0;
    margin: 0;
}
.ref-page dt,
.ref-page dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}
.ref-page dt {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ref-muted);
    padding-top: 15px;
}
.ref-page dt:last-of-type,
.ref-page dd:last-of-type { border-bottom: 0; }
 
/* ---------- Example (tabs) ---------- */
.ref-block__body--flush { padding: 0; }
.ref-example .tabs { border-radius: 0; }
.ref-example pre { margin: 0; }
 
/* ---------- Generic content styling inside blocks ---------- */
.ref-block__body code:not([class*="language-"]) {
    padding: 2px 7px;
    font-size: .88em;
    color: var(--tone-code);
    background: var(--tone-soft);
    border-radius: 6px;
}
.ref-block__body pre code { padding: 0; background: none; color: inherit; }
 
.ref-block__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
}
.ref-block__body table th {
    padding: 10px 12px;
    text-align: left;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ref-muted);
    border-bottom: 2px solid var(--ref-border);
}
.ref-block__body table td {
    padding: 11px 12px;
    vertical-align: top;
    border-bottom: 1px solid #eef2f6;
}
.ref-block__body table tr:last-child td { border-bottom: 0; }
.ref-block__body table tbody tr:hover td { background: var(--tone-soft); }
 
/* ---------- Small screens ---------- */
@media (max-width: 575px) {
    .ref-props { grid-template-columns: 1fr; }
    .ref-props dt { padding-bottom: 0; border-bottom: 0; }
    .ref-block__body table { display: block; overflow-x: auto; }
}