/* Runline × git.runline.dev — v4
   v4: rebuilt the anonymous landing page (custom/templates/home.tmpl) as a
   clean centered layout — dropped the Fomantic `ui ... page grid` classes that
   were fighting the custom centering, and put the white logo on an aubergine
   tile so it shows on the light theme. Navbar + dashboard tweaks unchanged. */

/* Runline top accent strip */
body::before {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF505D, #FF3D4C);
  z-index: 9999;
}

/* Aubergine bg behind the white navbar logo so it shows on all themes */
#navbar .logo, .navbar .logo,
.navbar [href="/"],
nav .logo, header .logo,
#navbar > a:first-child,
.navbar-start > a:first-child {
  background: #1A0D1E !important;
  padding: 4px 10px !important;
  border-radius: 4px;
}

/* Activity log + dashboard spacing */
.dashboard .news,
.activity-feed,
.activity-content,
.news-item,
.event-description {
  padding: 8px 12px !important;
}
.news .desc { padding: 6px 0 !important; }
.timeline-item, .event { padding: 10px 14px !important; margin-bottom: 4px !important; }
.feed .news > li { padding: 10px 16px !important; border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08)); }
.repository.search .list .item { padding: 14px 16px !important; }
.page-content > .container, .container.fluid { padding-top: 12px !important; }

/* ============================================================
   Anonymous landing page — custom/templates/home.tmpl
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:opsz,wght@8..144,600&family=Inter:wght@400;500;600&display=swap');

.page-content.home .runline-landing {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
}

.runline-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  background: #1A0D1E;              /* aubergine so the white logo is visible on any theme */
  border-radius: 26px;
  margin-bottom: 30px;
  box-shadow: 0 10px 28px rgba(26, 13, 30, 0.20);
}
.runline-logo-wrap img { display: block; }

.runline-title {
  font-family: 'Roboto Serif', Georgia, serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--color-text, #1A0D1E);
}

.runline-subtitle {
  font-size: 17px;
  font-weight: 500;
  color: #FF3D4C;
  margin: 0 0 30px;
}

.runline-blurb { max-width: 560px; margin: 0 auto 34px; }
.runline-blurb p {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--color-text, #333);
  margin: 0;
}
.runline-blurb .runline-muted {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  color: var(--color-text-light-2, #777);
  font-size: 13.5px;
}

.runline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}
.runline-cta .button { margin: 0; }

/* gitea 1.27 navbar compat (2026-09-09): the app logo is now `a#navbar-logo`
   inside `.navbar-left`, so the v4 `.navbar .logo` / `#navbar > a:first-child`
   selectors no longer match and the white logomark went invisible on the light
   theme. Re-apply the aubergine tile to the new element. */
#navbar-logo {
  background: #1A0D1E !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
}
#navbar-logo img { display: block; }

/* --- Runline brand color polish for gitea 1.27 (2026-09-09): recolor gitea's
   primary (github-light default green) to Runline red across buttons/accents. --- */
:root {
  --color-primary: #FF3D4C;
  --color-primary-dark-1: #F5303F; --color-primary-dark-2: #E02535;
  --color-primary-dark-3: #C71F2E; --color-primary-dark-4: #A81926;
  --color-primary-dark-5: #8A1420; --color-primary-dark-6: #70101A; --color-primary-dark-7: #560C14;
  --color-primary-light-1: #FF5661; --color-primary-light-2: #FF6F79;
  --color-primary-light-3: #FF8891; --color-primary-light-4: #FFB0B6;
  --color-primary-light-5: #FFD3D6; --color-primary-light-6: #FFE8EA; --color-primary-light-7: #FFF3F4;
  --color-primary-alpha-30: rgba(255,61,76,0.30); --color-primary-alpha-40: rgba(255,61,76,0.40);
  --color-primary-alpha-50: rgba(255,61,76,0.50); --color-primary-alpha-60: rgba(255,61,76,0.60);
  --color-primary-alpha-70: rgba(255,61,76,0.70); --color-primary-alpha-80: rgba(255,61,76,0.80);
  --color-primary-alpha-90: rgba(255,61,76,0.90);
  --color-primary-hover: #F5303F; --color-primary-active: #E02535; --color-primary-contrast: #ffffff;
}
.ui.primary.button, .ui.primary.buttons .button { background: #FF3D4C; }
.ui.primary.button:hover, .ui.primary.buttons .button:hover { background: #F5303F; }
.ui.primary.button:active { background: #E02535; }
