/* ==========================================================================
   Dev Hub — index.css (main landing page)
   ========================================================================== */

html, body {
  min-height: 100vh;
}

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: 30rem;
  margin: 0 auto;
  padding: 0 6vw;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 900px) {
  .site-header-inner {
    max-width: 72rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand h1 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand span.sub {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-row {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  flex-shrink: 0;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  padding: 0;
  position: relative;
}

.quick-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.quick-status {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}

.quick-status.pending {
  color: var(--ink);
  font-style: italic;
}

@media (max-width: 520px) {
  .brand span.sub {
    display: none;
  }

  .quick-label {
    display: none;
  }

  .quick-row {
    gap: 1.1rem;
  }
}

/* ---------- Content: 3-column layout ---------- */
.content-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 5vh, 3rem) 6vw 6vh;
}

.layout {
  width: 100%;
  max-width: 30rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "announcements"
    "main"
    "tools";
  gap: clamp(2rem, 5vh, 3rem);
}

@media (min-width: 1080px) {
  .layout {
    max-width: 72rem;
    grid-template-columns: 15rem minmax(0, 26rem) 15rem;
    grid-template-areas: "announcements main tools";
    align-items: start;
    gap: 3rem;
  }
}

.main-col {
  grid-area: main;
  min-width: 0;
}

.tools-col {
  grid-area: tools;
  min-width: 0;
}

.announcements-col {
  grid-area: announcements;
  min-width: 0;
  display: none;
}

.announcements-col.visible {
  display: block;
}

.announcements-col .section-title {
  margin-top: 0;
}

.announcement-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ---------- Link rows ---------- */
ul.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

ul.links li {
  border-bottom: 1px solid var(--line);
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0.1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.row-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.row-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.row-desc {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.row-desc.pending {
  color: var(--ink);
  font-style: italic;
}

.row-arrow {
  font-size: 1.1rem;
  color: var(--muted);
  transform: translateY(-1px);
  transition: color 0.2s ease, transform 0.2s ease;
}

.row:hover .row-arrow {
  color: var(--ink);
  transform: translateY(-1px) translateX(2px);
}

.row-static {
  cursor: default;
}

.row-static .row-desc {
  font-style: italic;
}

.build-stats {
  display: flex;
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.build-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.build-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.build-stat-value {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
