/* IMC reference documentation. Copyright 2025 OceanScan - Marine Systems & Technology, Lda. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-sunk: #eef1f5;
  --fg: #1c2128;
  --fg-muted: #5b6672;
  --border: #d9dee5;
  --border-soft: #e8ecf0;
  --accent: #0b66b3;
  --accent-fg: #ffffff;
  --accent-soft: #e4f0fa;
  --code: #0f3d63;
  --code-bg: #eef3f8;
  --header: #7c4dbd;
  --header-soft: #efe7fa;
  --payload: #0b66b3;
  --payload-soft: #dcebf8;
  --footer: #b0581a;
  --footer-soft: #fbeadd;
  --ok: #1f7a3a;
  --ok-soft: #e1f3e6;
  --warn: #9a5b00;
  --warn-soft: #fff3d6;
  --bad: #b42318;
  --bad-soft: #fde7e4;
  --shadow: 0 10px 30px rgba(20, 30, 45, .14), 0 2px 6px rgba(20, 30, 45, .08);
  --topbar: 56px;
  --sidebar: 288px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1318; --bg-soft: #161b22; --bg-sunk: #1c232c; --fg: #e3e8ee; --fg-muted: #94a0ad;
    --border: #2b333e; --border-soft: #222a33; --accent: #5aa9f0; --accent-fg: #0a1622; --accent-soft: #15283a;
    --code: #b9dafa; --code-bg: #1a2430; --header: #b994ee; --header-soft: #2a2140; --payload: #5aa9f0;
    --payload-soft: #142b40; --footer: #eb9a5c; --footer-soft: #36241a; --ok: #63c784; --ok-soft: #15301f;
    --warn: #e7b14c; --warn-soft: #33270f; --bad: #f2877c; --bad-soft: #3a1a17;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1318; --bg-soft: #161b22; --bg-sunk: #1c232c; --fg: #e3e8ee; --fg-muted: #94a0ad;
  --border: #2b333e; --border-soft: #222a33; --accent: #5aa9f0; --accent-fg: #0a1622; --accent-soft: #15283a;
  --code: #b9dafa; --code-bg: #1a2430; --header: #b994ee; --header-soft: #2a2140; --payload: #5aa9f0;
  --payload-soft: #142b40; --footer: #eb9a5c; --footer-soft: #36241a; --ok: #63c784; --ok-soft: #15301f;
  --warn: #e7b14c; --warn-soft: #33270f; --bad: #f2877c; --bad-soft: #3a1a17;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.6 var(--sans);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code { color: var(--code); }
h1, h2, h3, h4 { line-height: 1.25; margin: 1.8em 0 .6em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 2rem; margin-top: .2em; }
h2 { font-size: 1.35rem; padding-top: .3em; }
h3 { font-size: 1.08rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 .9em; }
.muted { color: var(--fg-muted); }
.small { font-size: .88em; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--bg); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Top bar ------------------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  font: 700 13px/1 var(--mono); letter-spacing: .06em; color: var(--accent-fg);
  background: var(--accent); padding: 7px 8px; border-radius: 7px;
}
.brand-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.version { display: flex; align-items: center; }
.version-label, .version select {
  font: 600 12.5px var(--mono); color: var(--fg-muted); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
}
.version select { color: var(--fg); cursor: pointer; max-width: 170px; }
.search-btn {
  margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0;
  width: min(380px, 40vw); height: 36px; padding: 0 8px 0 10px; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--fg-muted); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 8px; text-align: left;
}
.search-btn:hover { border-color: var(--accent); }
.search-btn svg { flex: none; }
.search-hint { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd {
  font-size: 11.5px; padding: 1px 6px; border-radius: 4px; color: var(--fg-muted);
  border: 1px solid var(--border); background: var(--bg); line-height: 18px;
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: var(--fg-muted); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--border); color: var(--fg); text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.filled { fill: currentColor; stroke: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
.menu-btn { display: none; }

/* Shell -------------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar));
  overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--border); background: var(--bg-soft);
  padding: 0 0 32px;
}
.nav-filter { position: sticky; top: 0; z-index: 1; padding: 12px 12px 8px; background: var(--bg-soft); }
.nav-filter input, .table-tools input, .table-tools select {
  width: 100%; height: 34px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
}
.nav-filter input:focus, .table-tools input:focus, .table-tools select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#nav ul { list-style: none; margin: 0; padding: 0; }
.nav-guide { padding: 4px 8px 10px !important; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px !important; }
.nav-guide a, .nav-cat summary, .nav-msgs a {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px;
  color: var(--fg); font-size: 14px;
}
.nav-guide a:hover, .nav-msgs a:hover, .nav-cat summary:hover { background: var(--bg-sunk); text-decoration: none; }
#nav a.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-cat { margin: 0 8px; }
.nav-cat summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); margin-top: 2px;
}
.nav-cat summary::-webkit-details-marker { display: none; }
.nav-cat summary::before {
  content: ""; width: 6px; height: 6px; flex: none; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
  transform: rotate(-45deg); transition: transform .15s; margin: 0 2px 0 1px;
}
.nav-cat[open] summary::before { transform: rotate(45deg); }
.nav-cat summary .n { margin-left: auto; font-weight: 500; font-size: 12px; }
.nav-cat summary a { color: inherit; }
.nav-msgs { padding: 2px 0 8px 12px !important; }
.nav-msgs a { font: 13px/1.45 var(--mono); padding: 3px 10px; }
.nav-msgs a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-msgs a .id { flex: none; margin-left: auto; color: var(--fg-muted); font-size: 11.5px; }
.nav-msgs a.dep span:first-child { text-decoration: line-through; color: var(--fg-muted); }
.nav-empty { padding: 12px 18px; color: var(--fg-muted); font-size: 14px; }

.content { min-width: 0; padding: 32px clamp(16px, 4vw, 56px) 48px; max-width: 1180px; }
.backdrop { display: none; }

/* Page elements ------------------------------------------------------------ */

.eyebrow { font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 .4em; }
.lede { font-size: 1.08rem; color: var(--fg-muted); max-width: 72ch; }
.crumbs { font-size: 13.5px; color: var(--fg-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: .5em; }
.anchor { float: left; margin-left: -1.1em; width: 1.1em; opacity: 0; color: var(--fg-muted); font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, tr:hover .anchor, .anchor:focus { opacity: 1; text-decoration: none; }

.hero { padding: 8px 0 8px; }
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.btn {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-weight: 550; font-size: 14.5px;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.stat {
  display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-soft); color: var(--fg);
}
.stat:hover { border-color: var(--accent); text-decoration: none; }
.stat b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--fg-muted); font-size: 13.5px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--fg); background: var(--bg);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.card-title { font-weight: 650; }
.card-count { font-size: 13px; color: var(--accent); font-weight: 600; }
.card-list { font: 12.5px/1.5 var(--mono); color: var(--fg-muted); overflow-wrap: anywhere; }

.prose { max-width: 80ch; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 .9em; }
.prose li { margin: .2em 0; }
.prose code, .fields code, .list code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
.prose figure { margin: 1.2em 0; text-align: center; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; background: #fff; padding: 6px; border: 1px solid var(--border); }
.prose figcaption { font-size: 13.5px; color: var(--fg-muted); margin-top: 6px; }
.desc-heading { font-size: 1.05rem; margin: 1.4em 0 .5em; }
pre.code, .prose pre {
  background: var(--bg-sunk); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; overflow-x: auto; line-height: 1.5;
}
pre code { background: none !important; padding: 0 !important; color: var(--fg); }
.description { margin: 1.4em 0; }

.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 1em 0; }
.callout.warning { border-color: var(--warn); background: var(--warn-soft); }
.callout > :last-child { margin-bottom: 0; }

/* Message pages ------------------------------------------------------------- */

.msg-head h1 { margin-bottom: .35em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--border); font: 600 13px var(--mono); color: var(--fg);
}
.chip.abbrev { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--bg-sunk); color: var(--fg-muted); vertical-align: middle;
}
.badge.periodic { background: var(--ok-soft); color: var(--ok); }
.badge.deprecated, .badge.wire { background: var(--bad-soft); color: var(--bad); }
.badge.unstable { background: var(--warn-soft); color: var(--warn); }
.badge.new { background: var(--ok-soft); color: var(--ok); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px;
  margin: 20px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--border);
}
.facts div { background: var(--bg-soft); padding: 10px 14px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 550; }

.strip { display: flex; gap: 2px; margin: 12px 0 6px; min-height: 40px; border-radius: 8px; overflow: hidden; }
.seg {
  flex-basis: 0; min-width: 6px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; overflow: hidden; color: var(--payload); background: var(--payload-soft);
  font: 600 11.5px var(--mono);
}
.seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.seg[href]:hover { background: var(--payload); color: var(--accent-fg); text-decoration: none; }
.seg.header { color: var(--header); background: var(--header-soft); }
.seg.footer { color: var(--footer); background: var(--footer-soft); }
.seg.var {
  background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, currentColor 14%, transparent) 6px 8px);
}
.strip-legend { font-size: 13px; color: var(--fg-muted); display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; }
.key.header { background: var(--header); } .key.payload { background: var(--payload); } .key.footer { background: var(--footer); }

/* Tables ------------------------------------------------------------------- */

.table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border-soft); }
tbody tr:last-child > td { border-bottom: 0; }
thead th {
  background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--fg-muted); font-weight: 650; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.list tbody tr:hover, .fields > tbody > tr:hover { background: var(--bg-soft); }
.list.compact td { padding: 6px 12px; }
tr.deprecated td:nth-child(2) code { text-decoration: line-through; }
.c-id, .c-off, .c-size { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }
.c-off { color: var(--fg-muted); width: 1%; }
.fields .c-field { min-width: 170px; }
.fields .c-field .abbrev { font-weight: 650; background: none; padding: 0; }
.fname { display: block; color: var(--fg-muted); font-size: 13px; }
.fields .c-type { white-space: nowrap; }
.fields .c-type code { background: none; padding: 0; }
.fields .c-unit, .fields .c-range { white-space: nowrap; }
.fields .c-desc { min-width: 280px; }
.fields .c-desc .prose p { margin-bottom: .5em; }
.fields tr:target { background: var(--accent-soft) !important; }
.default { margin-top: 2px; font-size: 13px; }
.note { font-size: 13px; color: var(--warn); margin: .3em 0; }
.values { margin-top: 6px; }
details.values > summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 550; }
.vtable { margin-top: 6px; font-size: 13px; border: 1px solid var(--border-soft); border-radius: 6px; }
.vtable td { padding: 4px 8px; }
.vtable .v-id, .vtable .v-const { white-space: nowrap; width: 1%; }
.vtable code { background: none !important; padding: 0 !important; }
.desc-table { font-size: 13.5px; }
.desc-table td, .desc-table th { padding: 5px 10px; }

.table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0 0; }
.table-tools input { flex: 1 1 260px; width: auto; }
.table-tools select { flex: 0 1 220px; width: auto; }
.sortable th { cursor: pointer; user-select: none; }
.sortable th[aria-sort]::after { content: " ↑"; }
.sortable th[aria-sort="descending"]::after { content: " ↓"; }

.refs { padding-left: 1.2em; }
.refs li { margin: .2em 0; }
.refs.inline { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.pager a { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; min-width: 40%; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager a span { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .05em; }
.pager .next { text-align: right; margin-left: auto; }
.pager code { background: none; }

.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); }
.toc h4 { margin: 0 0 6px; }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2; font: 13px/1.7 var(--mono); }
.def { padding-top: 4px; }
.def h2, .def h3 { margin-bottom: .3em; }
.def code { background: none; }
.usedby summary { cursor: pointer; color: var(--accent); font-size: 13.5px; }
.change { border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px; margin: 10px 0; }
.change h3 { margin: 10px 0 4px; }
.change ul { margin: 0 0 10px; padding-left: 1.2em; }
.change code { background: none; }

.page-foot {
  margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--fg-muted);
}

/* Search ------------------------------------------------------------------- */

.search-overlay {
  position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center;
  padding: 10vh 16px 16px; background: rgba(10, 16, 24, .45);
}
.search-overlay.open { display: flex; }
.search-box {
  width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.search-input-row { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.search-input-row svg { color: var(--fg-muted); flex: none; }
.search-input-row input {
  flex: 1; height: 52px; border: 0; outline: none; background: none; color: var(--fg); font: inherit; font-size: 16.5px;
}
.search-results { overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.search-results li a {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 2px 12px; align-items: baseline;
  padding: 8px 10px; border-radius: 8px; color: var(--fg);
}
.search-results li a:hover { text-decoration: none; }
.search-results li.active a { background: var(--accent-soft); }
.search-results .kind {
  grid-row: span 2; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em;
  color: var(--fg-muted); padding-top: 2px;
}
.search-results .label { font: 600 14px var(--mono); overflow-wrap: anywhere; }
.search-results .detail { font-size: 13px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results mark { background: none; color: var(--accent); }
.search-empty { padding: 22px; text-align: center; color: var(--fg-muted); }
.search-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-muted); background: var(--bg-soft); }

/* Small screens ---------------------------------------------------------------- */

@media (max-width: 960px) {
  .shell { display: block; }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; top: var(--topbar); left: 0; bottom: 0; z-index: 40; height: auto;
    width: min(320px, 86vw); transform: translateX(-102%); transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: var(--topbar) 0 0; z-index: 35; background: rgba(10, 16, 24, .35); }
  .brand-text { display: none; }
  .search-btn { width: auto; flex: 1; }
}
@media (max-width: 720px) {
  .table-wrap:has(> .fields) { border: 0; overflow: visible; }
  .fields, .fields > tbody { display: block; }
  .fields > thead { display: none; }
  .fields > tbody > tr {
    display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 14px;
    padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 10px;
  }
  .fields > tbody > tr > td { display: block; padding: 0; border: 0; min-width: 0; white-space: normal; }
  .fields .c-field { order: -1; grid-column: 1 / -1; }
  .fields .c-off { width: auto; }
  .fields .c-off::before { content: "offset "; font-family: var(--sans); }
  .fields .c-desc { grid-column: 1 / -1; margin-top: 6px; }
  .fields .anchor { display: none; }
}
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .search-hint, .search-btn kbd { display: none; }
  .search-btn { flex: 0 0 auto; width: 36px; padding: 0; justify-content: center; margin-left: auto; }
  .version select { max-width: 120px; }
  .content { padding-top: 20px; }
  h1 { font-size: 1.6rem; }
}

@media print {
  .topbar, .sidebar, .backdrop, .pager, .anchor { display: none !important; }
  .shell { display: block; }
  .content { max-width: none; padding: 0; }
  .table-wrap { overflow: visible; border: 0; }
  details.values > :not(summary) { display: block; }
  a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
