/* Hub v35 — unified navy workspace with warm yellow accents. */
:root {
  --hub-navy: #0b1730;
  --hub-yellow: #f4c430;
  --hub-yellow-soft: #fff4bf;
  --hub-paper: #f2f5fa;
  --hub-card: #ffffff;
  --hub-border: #dce4ef;
  --hub-muted: #68758a;
}

body {
  background:
    radial-gradient(circle at 86% 0, rgba(244, 196, 48, .13), transparent 25rem),
    var(--hub-paper);
}

.brand-mark {
  background: linear-gradient(145deg, #203b69, var(--hub-navy));
  box-shadow: 0 0 0 3px rgba(244, 196, 48, .17);
}

.secure { color: #53705e; }
.ghost { border-color: var(--hub-border); background: var(--hub-card); }
.hero h1 span, .eyebrow { color: #b17e00; }

.news-board {
  border-color: var(--hub-border);
  background:
    linear-gradient(110deg, rgba(244, 196, 48, .08), transparent 30%),
    var(--hub-card);
}

.news-card {
  --news-accent: #c18c05 !important;
  border-color: #eadb9f;
  background: var(--hub-card);
}

.app-card,
.graphic-featured {
  --accent: #b17e00;
  border-color: var(--hub-border);
  color: var(--hub-navy);
  background: var(--hub-card);
  box-shadow: 0 8px 24px rgba(18, 40, 73, .065);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: inherit;
  background: var(--hub-yellow);
  opacity: .75;
}

.app-card:hover,
.graphic-featured:hover {
  border-color: #dfbd46;
  box-shadow: 0 13px 30px rgba(18, 40, 73, .11);
}

.app-card .icon,
.graphic-featured .icon {
  color: var(--hub-navy);
  background: var(--hub-yellow-soft);
}

.app-card small,
.app-card b,
.graphic-featured small,
.graphic-featured b { color: #9a7106; }

.app-card h3,
.graphic-featured h3 { color: var(--hub-navy); }

.app-card .number,
.graphic-featured .number { color: #8290a5; }

.graphic-featured::after,
.feature-badge { display: none; }

.owner-panel {
  color: var(--hub-navy);
  border: 1px solid var(--hub-border);
  background: var(--hub-card);
  box-shadow: 0 8px 24px rgba(18, 40, 73, .05);
}

.owner-panel p { color: var(--hub-muted); }

.owner-panel nav a {
  color: var(--hub-navy);
  border-color: transparent;
  background: #f4f6fa;
}

.owner-panel nav a:hover {
  border-color: #e3c454;
  background: #fff8dc;
}

.owner-panel nav span { color: #9a7106; }
.news-primary { color: var(--hub-navy); background: var(--hub-yellow); }

html[data-dark="true"] body {
  background:
    radial-gradient(circle at 86% 0, rgba(244, 196, 48, .09), transparent 25rem),
    var(--bg);
}

html[data-dark="true"] .app-card,
html[data-dark="true"] .graphic-featured,
html[data-dark="true"] .news-board,
html[data-dark="true"] .news-card,
html[data-dark="true"] .owner-panel {
  color: var(--text);
  border-color: #263757;
  background: #101d38;
}

html[data-dark="true"] .app-card h3,
html[data-dark="true"] .graphic-featured h3,
html[data-dark="true"] .owner-panel { color: var(--text); }

html[data-dark="true"] .app-card .icon,
html[data-dark="true"] .graphic-featured .icon {
  color: var(--hub-yellow);
  background: rgba(244, 196, 48, .11);
}

html[data-dark="true"] .app-card small,
html[data-dark="true"] .app-card b,
html[data-dark="true"] .graphic-featured small,
html[data-dark="true"] .graphic-featured b,
html[data-dark="true"] .owner-panel nav span,
html[data-dark="true"] .eyebrow { color: #e1ba3f; }

html[data-dark="true"] .owner-panel nav a {
  color: var(--text);
  background: #162642;
}

html[data-dark="true"] .owner-panel nav a:hover {
  border-color: #8a7532;
  background: #20304f;
}

@media (min-width: 901px) {
  .shell {
    width: min(1440px, calc(100% - 24px));
    min-height: 100vh;
    padding: 8px 0 10px;
  }

  .topbar { min-height: 42px; }
  .hero { padding: 8px 2px; }
  .hero h1 { font-size: clamp(25px, 2.7vw, 35px); }
  .news-board { margin-bottom: 8px; padding: 9px 12px; }
  .section-heading { margin-bottom: 6px; }
  .app-grid { gap: 7px; }

  .app-card,
  .graphic-featured {
    min-height: 118px;
    padding: 9px 10px;
  }

  .app-card h3,
  .graphic-featured h3 { font-size: 13px; }

  .owner-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .owner-panel > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding-right: 12px;
    border-right: 1px solid var(--hub-border);
    white-space: nowrap;
  }

  .owner-panel > div .eyebrow {
    margin: 0;
    font-size: 8px;
  }

  .owner-panel h2 { font-size: 13px; }
  .owner-panel > div > p:last-child { display: none; }

  .owner-panel nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .owner-panel nav a {
    display: flex;
    min-width: 0;
    min-height: 29px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .owner-panel nav span {
    margin: 0;
    overflow: hidden;
    font-size: 0;
  }

  .owner-panel nav span::after {
    content: "→";
    font-size: 10px;
  }

  footer { margin-top: 8px; font-size: 8px; }
}

@media (max-width: 900px) {
  .owner-panel { margin-top: 14px; padding: 16px; }
  .owner-panel nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .hero h1 br { display: block; }
  .hero h1 span {
    display: block;
    margin-left: 0;
  }

  .news-board-head { gap: 10px; }
  .news-manage { width: 100%; }
  .owner-panel nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-panel nav a { padding: 10px; font-size: 12px; }
  .owner-panel nav span { font-size: 9px; }
}
