/* =========================================================
   VARIABLES
========================================================= */
:root {
  --bg: #ffffff;
  --ink: #0b1220;
  --muted: rgba(11,18,32,0.68);
  --line: rgba(11,18,32,0.12);
  --line-strong: rgba(11,18,32,0.18);

  --brand: #091f5d;
  --brand-2: #0c2b7c;
  --gold: #f1c40f;

  --card: #ffffff;
  --card-soft: #f8fafc;
  --shadow: 0 10px 24px rgba(0,0,0,0.10);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.07);

  --radius: 16px;
  --radius-sm: 10px;
}

/* =========================================================
   RESET / BASE
========================================================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================
   HERO / BANNER
========================================================= */
.hero {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: var(--brand);
}

@media (max-width: 600px) {
  .hero { height: 125px; }
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,31,93,0.18), rgba(9,31,93,0.04) 45%, rgba(9,31,93,0.18));
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand__title {
  color: #ffffff;
  font-size: 29px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 12px rgba(0,0,0,0.24);
}

.brand__subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}

/* =========================================================
   CONTROLS
========================================================= */
.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search input {
  padding: 8px 13px;
  min-width: 240px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(10,20,40,0.14);
  color: #ffffff;
  outline: none;
  backdrop-filter: blur(4px);
}

.search input::placeholder { color: rgba(255,255,255,0.78); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.36);
  background: rgba(10,20,40,0.18);
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.btn:hover { background: rgba(255,255,255,0.20); text-decoration: none; }
.icon-btn { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
button.btn { appearance: none; -webkit-appearance: none; }
.icon-glyph { display: block; width: 12px; height: 12px; }

/* =========================================================
   TOP NAV
========================================================= */
.topnav {
  background: var(--brand);
  border-bottom: 1px solid rgba(0,0,0,0.16);
}

.topnav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 9px 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topnav__inner a {
  color: var(--gold);
  font-weight: 760;
  padding: 4px 9px;
  border-radius: 999px;
}

.topnav__inner a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }

/* =========================================================
   MAIN LAYOUT
========================================================= */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 40px;
}

/* =========================================================
   QUICK LAUNCH
========================================================= */
.quick-launch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: var(--shadow-soft);
}

.quick-launch__label {
  flex: 0 0 auto;
  min-width: 112px;
  font-weight: 850;
  color: var(--brand);
}

.quick-launch__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.quick-tile:hover {
  background: rgba(9,31,93,0.05);
  text-decoration: none;
}

/* =========================================================
   CARDS / LINKS
========================================================= */
.grid {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__head {
  padding: 13px 15px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.card__title {
  font-weight: 850;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.card__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.card__body { padding: 11px 13px 14px; }

.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links li + li { margin-top: 6px; }

.link-sep {
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
  pointer-events: none;
}

.link-heading {
  margin: 10px 0 3px;
  padding: 0 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.links a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.links a:hover { background: rgba(9,31,93,0.055); text-decoration: none; }

/* =========================================================
   FOOTER
========================================================= */
.footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}

.footer__inner { display: flex; gap: 10px; flex-wrap: wrap; }
.dot { opacity: 0.6; }

@media (max-width: 760px) {
  .hero__content { align-content: center; }
  .controls { width: 100%; }
  .search { flex: 1 1 auto; }
  .search input { width: 100%; min-width: 0; }
  .quick-launch { align-items: flex-start; flex-direction: column; }
  .quick-launch__label { min-width: 0; }
}

/* =========================================================
   OPTION 2: WORKSPACES
========================================================= */
.layout-workspaces .wrap {
  max-width: 1120px;
}

.layout-workspaces .grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.layout-workspaces .card {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  align-items: stretch;
  box-shadow: var(--shadow-soft);
}

.layout-workspaces .card__head {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(9,31,93,0.06), rgba(241,196,15,0.08));
}

.layout-workspaces .card__title {
  color: var(--brand);
}

.layout-workspaces .card__body {
  display: flex;
  align-items: center;
}

.layout-workspaces .links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layout-workspaces .links li,
.layout-workspaces .links li + li {
  margin: 0;
}

.layout-workspaces .links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.035);
  font-weight: 680;
}

.layout-workspaces .links a:hover {
  background: rgba(9,31,93,0.055);
}

@media (max-width: 760px) {
  .layout-workspaces .card {
    grid-template-columns: 1fr;
  }

  .layout-workspaces .card__head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layout-workspaces .card__body {
    display: block;
  }
}

/* Links that only appear while you are logged in */
.is-private::after{
  content: "\1F512";
  font-size: .72em;
  margin-left: .4em;
  opacity: .55;
}
