/* Project hub — matches crash console tokens (app.css) */

@font-face {
  font-family: "Clockopia";
  src: url("assets/fonts/Clockopia.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Clockopia kept for legacy only; hub clock uses DSEG14 (see .hub-clock-widget rules). */

@font-face {
  font-family: "DSEG14 Classic";
  src: url("assets/fonts/DSEG14Classic-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DSEG14 Modern";
  src: url("assets/fonts/DSEG14Modern-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DS-Digital";
  src: url("assets/fonts/DS-Digital.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Digital-7 Mono Italic";
  src: url("assets/fonts/digital-7-mono-italic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.hub-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

/* Logo background is injected on demand into #hub-logo-stage (see index.html). */

.hub-shell {
  flex: 1;
  min-height: calc(100vh - 40px);
  position: relative;
  z-index: 1;
}

.hub-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: calc(100vh - 40px);
  padding: 32px 28px 48px;
  box-sizing: border-box;
}

.hub-header {
  text-align: center;
  margin-bottom: 36px;
}

.hub-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hub-title-with-thunder {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.hub-title-with-thunder .hub-title {
  margin: 0;
  position: relative;
  z-index: 1;
}

.hub-logo-mark {
  width: 56px;
  height: 42px;
  color: var(--accent);
}

.hub-title {
  margin: 0 0 4px;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hub-thunder {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 150%;
  height: auto;
  margin: 0;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(170, 220, 255, 0.35));
}

.hub-subtitle {
  margin: 0 0 16px;
}

.hub-theme {
  justify-content: center;
}

.hub-nav-dock,
#hub-nav-dock {
  position: fixed;
  z-index: 2;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  align-items: stretch;
  gap: 5px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
  max-width: none;
  width: auto;
}

/* app.css .cards { display:grid } must not flatten the dock if classes linger */
#hub-nav-dock.cards,
#hub-nav-dock.hub-cards,
.hub-nav-dock.cards,
.hub-nav-dock.hub-cards {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
}

.hub-nav-dock .hub-card,
#hub-nav-dock .hub-card,
#hub-nav-dock > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  width: 100% !important;
  max-width: 100%;
  flex: 0 0 auto !important;
  margin: 0 !important;
  opacity: 0.85;
  pointer-events: auto;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

#hub-nav-dock > .hub-card + .hub-card,
.hub-nav-dock > .hub-card + .hub-card {
  margin-top: 0 !important;
}

.hub-nav-dock .hub-card:hover,
.hub-nav-dock .hub-card:focus-visible {
  opacity: 1;
  color: var(--text);
  text-decoration: none;
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(160, 220, 255, 0.95);
  box-shadow:
    0 0 18px rgba(120, 200, 255, 0.55),
    0 0 36px rgba(90, 170, 255, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.42);
  filter: drop-shadow(0 0 10px rgba(140, 210, 255, 0.45));
}

[data-theme="light"] .hub-nav-dock .hub-card:hover,
[data-theme="light"] .hub-nav-dock .hub-card:focus-visible {
  box-shadow:
    0 0 16px rgba(70, 130, 210, 0.45),
    0 0 30px rgba(60, 120, 200, 0.28),
    0 10px 24px rgba(26, 35, 50, 0.22);
}

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1080px;
  margin: 0;
}

.hub-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.hub-card:hover,
.hub-card:focus-visible {
  color: var(--text);
  text-decoration: none;
  outline: none;
}

.hub-cards .hub-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hub-cards .hub-card:hover,
.hub-cards .hub-card:focus-visible {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.44);
  border-color: var(--accent);
}

[data-theme="light"] .hub-cards .hub-card:hover,
[data-theme="light"] .hub-cards .hub-card:focus-visible {
  box-shadow: 0 20px 44px rgba(26, 35, 50, 0.28);
}

.hub-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.hub-card-icon .nav-icon {
  position: relative;
}

.hub-card-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
}

.nav-icon--git {
  width: 18px;
  height: 18px;
}

.nav-icon--git::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.nav-icon--git::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-left: none;
  border-bottom: none;
  border-radius: 0 6px 0 0;
  box-sizing: border-box;
}

.nav-icon--builder {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-sizing: border-box;
  position: relative;
}

.nav-icon--builder::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 10px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

.nav-icon--graphs {
  width: 16px;
  height: 16px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.nav-icon--graphs::before,
.nav-icon--graphs::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 3px;
  background: currentColor;
  border-radius: 1px 1px 0 0;
}
.nav-icon--graphs::before { left: 4px; height: 8px; }
.nav-icon--graphs::after { left: 10px; height: 12px; }

.hub-page .bottom-bar {
  position: relative;
  z-index: 1;
}
.hub-page .platform-footer {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  height: auto;
  min-height: 40px;
  padding: 6px 16px;
  gap: 4px;
}
.hub-page .platform-footer__top,
.hub-page .platform-footer__bottom {
  width: 100%;
  text-align: center;
  line-height: 1.35;
}
.hub-page .platform-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 24px;
}
.hub-page .platform-footer--single-row .platform-footer__main {
  justify-content: flex-start;
}
.hub-page .platform-footer__left {
  flex: 1 1 auto;
  min-width: 0;
}
.hub-page .platform-footer__right {
  flex: 0 0 auto;
  text-align: right;
  max-width: 50%;
}

.hub-clock-widget {
  --cw-lcd-x: 24px;
  position: fixed;
  right: 24px;
  top: 24px;
  left: auto;
  width: 567px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.48);
  border-radius: 18px;
  overflow: visible;
  background: rgba(18, 24, 34, 0.88);
  backdrop-filter: blur(1.5px);
  transition:
    transform 0.22s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    filter 0.22s ease;
  cursor: move;
  user-select: none;
  touch-action: none;
  padding: 28px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: "Clockopia", "Consolas", monospace;
}

.cw-clock-inner {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.92), rgba(13, 18, 28, 0.9));
}

.cw-clock-inner > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cw-line {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.hub-clock-widget:hover {
  transform: scale(1.035);
  border-color: rgba(165, 225, 255, 0.98);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(140, 210, 255, 0.55),
    0 0 22px rgba(120, 200, 255, 0.52),
    0 0 44px rgba(90, 175, 255, 0.32),
    inset 0 0 14px rgba(120, 200, 255, 0.07);
  filter: saturate(1.06);
}

.hub-clock-widget.is-dragging {
  opacity: 0.25;
  transition: opacity 0.12s ease;
}

.hub-clock-widget.is-dragging:hover {
  transform: none;
}

.cw-primary-block {
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  row-gap: 0;
  overflow: hidden;
  background: transparent;
}

.cw-row-tz {
  margin-top: 15px; /* 15dip between line 1 and line 2 */
}

.cw-row-date {
  margin-top: 5px; /* 5dip between line 2 and line 3 */
}

.cw-row {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.cw-row-clock {
  display: flex;
  justify-content: center;
  align-items: end;
  overflow: hidden;
  container-type: inline-size;
  padding: 12px 0 4px;
}

.cw-line-time .cw-time-main {
  font-weight: 800;
}

.cw-row-tz,
.cw-row-date {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  line-height: 1;
  padding: 0;
}

.cw-time-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  column-gap: 4px;
  line-height: 1;
  font-weight: 400;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-family: "DSEG14 Classic", "Consolas", monospace;
  font-variant-numeric: tabular-nums;
  color: #d8f6b8;
  text-shadow: 0 0 10px rgba(190, 240, 150, 0.42);
}

#cw-hm-lcd {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  letter-spacing: 0.04em;
}

#cw-colon-lcd,
#cw-ss-lcd {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

#cw-tz-text {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  margin-left: 10px;
  opacity: 0.92;
}

.ot-lcd-line {
  display: inline;
}

#cw-hm-lcd .ot-glyph {
  height: calc(var(--cw-lcd-x) * 2);
  width: auto;
  max-width: 100%;
}

#cw-colon-lcd .ot-glyph,
.ot-lcd-sec .ot-glyph,
.ot-lcd-tz .ot-glyph {
  height: var(--cw-lcd-x);
  width: auto;
}

@container (max-width: 300px) {
  .hub-clock-widget {
    --cw-lcd-x: 20px;
  }
}

.ot-lcd-sec {
  margin-left: 0;
}

.ot-lcd-sec .ot-glyph-wrap:first-child {
  margin-right: 0;
}

.ot-lcd-tz {
  margin-left: calc(var(--cw-lcd-x) * 2);
}

.ot-lcd-subline {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  line-height: 1;
}

.cw-line-region.ot-lcd-subline .ot-glyph {
  height: calc(var(--cw-lcd-x) * 0.5);
  width: auto;
}

.cw-line-date.ot-lcd-subline .ot-glyph {
  height: var(--cw-lcd-x);
  width: auto;
}

.ot-glyph-wrap {
  display: inline-block;
  line-height: 0;
  transform-origin: bottom center;
}

.ot-glyph-wrap--bold {
  transform: scale(1.06, 1.1);
  transform-origin: bottom center;
}

.ot-glyph {
  fill: #d8f6b8;
  filter: drop-shadow(0 0 5px rgba(190, 240, 150, 0.38));
}

.ot-glyph .lcd-active,
.ot-glyph path {
  fill: #d8f6b8;
}

.ot-fallback-char {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0.62em;
  color: #d8f6b8;
  font-family: "Consolas", "Menlo", "Monaco", monospace;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 5px rgba(190, 240, 150, 0.42);
}

.ot-fallback-char--bold {
  font-weight: 700;
}

.ot-glyph .ot-grid rect {
  fill: rgba(20, 30, 24, 0.85);
  filter: drop-shadow(0 0 1.4px rgba(135, 205, 255, 0.5));
}

.ot-glyph .ot-active {
  fill: #d8f6b8;
}

.ot-colon-blink {
  animation: cwBlink 1.25s linear infinite;
}

.cw-line-region {
  color: #b8c2d4;
  font-size: clamp(0.62rem, 1vw, 0.75rem);
  letter-spacing: 0.16em;
  font-weight: 400;
  text-transform: uppercase;
  font-family: "Digital-7 Mono Italic", "Consolas", monospace;
}

.cw-line-date {
  color: #c5d0e2;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.12em;
  font-weight: 400;
  text-transform: uppercase;
  font-family: "Digital-7 Mono Italic", "Consolas", monospace;
}

.cw-separator {
  margin: 5px 0;
  height: 2px;
  width: 100%;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(239, 243, 252, 0) 0%,
    rgba(239, 243, 252, 0.5) 50%,
    rgba(239, 243, 252, 0) 100%
  );
}

.cw-world-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  border-top: 0;
  justify-items: center;
  background: transparent;
}

.cw-world-cell {
  min-width: 0;
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 4px;
  background: rgba(20, 28, 40, 0.62);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.cw-world-cell:first-child {
  border-left: 0;
}

.cw-world-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cw-world-label {
  color: #c5d0e2;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.12em;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  flex: 0 0 auto;
  font-family: "Digital-7 Mono Italic", "Consolas", monospace;
}

.cw-dial {
  --cw-dial-size: 90px;
  --cw-roman-orbit: 28px;
  width: var(--cw-dial-size);
  max-width: var(--cw-dial-size);
  height: var(--cw-dial-size);
  flex: 0 0 auto;
  margin: 0;
  border-radius: 50%;
  position: relative;
  border: none;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 36%),
    #edf2fb;
  box-shadow:
    0 0 0 4px #b8c6d8,
    0 0 0 5px rgba(244, 248, 253, 0.94),
    0 0 0 6px #7f94aa,
    0 2px 8px rgba(0, 0, 0, 0.38),
    inset 0 1px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(70, 86, 108, 0.22),
    inset -4px -4px 8px rgba(0, 0, 0, 0.12),
    inset 5px 6px 8px rgba(255, 255, 255, 0.38);
}

.cw-roman {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px;
  transform: rotate(calc(var(--i) * 30deg)) translateY(calc(-1 * var(--cw-roman-orbit))) rotate(calc(var(--i) * -30deg));
  font-family: "Clockopia", "Consolas", monospace;
  font-size: 9px;
  font-weight: 700;
  color: #223147;
  text-align: center;
  line-height: 1;
}

.cw-roman-major {
  font-size: 11px;
  opacity: 1;
}

.cw-roman-minor {
  font-size: 3px;
  opacity: 0.25;
}

/* Mixed clock typography: line 1 DSEG14, lines 2–3 Digital-7, rest Clockopia */
.hub-clock-widget .cw-line-time,
.hub-clock-widget .cw-line-time .cw-lcd-text,
.hub-clock-widget .cw-time-main,
.hub-clock-widget .cw-time-main .cw-lcd-text {
  font-family: "DSEG14 Classic", "Consolas", monospace !important;
  font-variant-numeric: tabular-nums;
}

.hub-clock-widget .cw-line-region,
.hub-clock-widget .cw-line-region.cw-lcd-text,
.hub-clock-widget .cw-line-date,
.hub-clock-widget .cw-line-date.cw-lcd-text,
.hub-clock-widget .cw-world-label {
  font-family: "Digital-7 Mono Italic", "Consolas", monospace !important;
  font-variant-numeric: tabular-nums;
}

.hub-clock-widget .cw-world-section,
.hub-clock-widget .cw-roman {
  font-family: "Clockopia", "Consolas", monospace !important;
}

.cw-resize-handle {
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hub-clock-widget:hover .cw-resize-handle {
  display: flex !important;
  background: transparent !important;
}

.cw-resize-handle-visual {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cw-resize-handle-visual svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  pointer-events: none;
}

.cw-resize-sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}

.cw-resize-sw .cw-resize-handle-visual {
  transform: none;
}

.cw-resize-nw {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}

.cw-resize-nw .cw-resize-handle-visual {
  transform: scaleY(-1);
}

.cw-resize-ne {
  right: 0;
  top: 0;
  cursor: nesw-resize;
}

.cw-resize-ne .cw-resize-handle-visual {
  transform: scale(-1, -1);
}

.cw-resize-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.cw-resize-se .cw-resize-handle-visual {
  transform: scaleX(-1);
}

.cw-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  border-radius: 99px;
}

.cw-hour { width: 4px; height: 26%; background: #1f2f46; }
.cw-minute { width: 3px; height: 35%; background: #2e4767; }
.cw-second { width: 1.5px; height: 39%; background: #b63b3b; }

.cw-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #101928;
  border: 1px solid #f3f6ff;
}


@keyframes cwBlink {
  0%, 20% { opacity: 0; }
  20.01%, 60% { opacity: 1; }
  60.01%, 100% { opacity: 0; }
}

.hub-docs-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}
.hub-docs-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.hub-docs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.66);
  pointer-events: auto;
}
.hub-docs-modal[hidden] .hub-docs-backdrop {
  pointer-events: none;
}

.hub-docs-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hub-docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 28%) 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  border-top: 1px solid var(--border);
}

.hub-docs-toc {
  margin: 0;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--border);
  overflow: auto;
  padding: 10px;
}

.hub-docs-toc-title {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-docs-toc-group + .hub-docs-toc-group {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.hub-docs-toc-head,
.hub-docs-toc-leaf {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
}

.hub-docs-toc-head {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hub-docs-toc-leaf {
  margin-left: 8px;
  font-weight: 600;
  font-size: 13px;
}

.hub-docs-toc-head:hover,
.hub-docs-toc-leaf:hover,
.hub-docs-toc-head:focus-visible,
.hub-docs-toc-leaf:focus-visible {
  background: var(--row-hover);
  outline: none;
}

.hub-docs-panels {
  overflow: auto;
  padding: 10px 12px 14px;
  min-height: 0;
}

.hub-docs-section .detail-tree-body {
  font-size: 14px;
  line-height: 1.5;
}

.hub-docs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.hub-docs-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.hub-docs-close {
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.hub-docs-body {
  overflow: auto;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.hub-docs-body h3 {
  margin: 16px 0 8px;
  font-size: 1.03rem;
}

.hub-docs-body h4 {
  margin: 12px 0 6px;
  font-size: 0.96rem;
}

.hub-docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 14px;
}

.hub-docs-body th,
.hub-docs-body td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.hub-docs-body a[data-doc-link] {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 860px) {
  .hub-clock-widget {
    left: auto;
    right: 10px;
    top: 10px;
    width: min(94vw, 567px);
    min-width: 0;
  }
  .hub-nav-dock .hub-card {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-nav-dock .hub-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .hub-nav-dock .hub-card:hover,
  .hub-nav-dock .hub-card:focus-visible {
    transform: none;
  }
  .hub-cards .hub-card {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .hub-cards .hub-card:hover,
  .hub-cards .hub-card:focus-visible {
    transform: none;
  }
}
