/* Sharayah × S² — Digital Media Strategies bridge dashboard */

:root {
  --bg-deep: #0c0f14;
  --bg-card: #141a22;
  --bg-elevated: #1a222d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e6e1;
  --text-muted: #9aa3b2;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --gold: #d4a853;
  --gold-soft: rgba(212, 168, 83, 0.12);
  --radius: 12px;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 168, 83, 0.06), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header.hero {
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-size: 1.05rem;
}

.hero .catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.95rem;
}

.hero .meta {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

nav.toc {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  font-size: 0.88rem;
}

nav.toc a {
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
nav.toc a:hover {
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--gold);
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.tools-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tools-strip span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 0.15rem;
}

.tool-chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.tool-chip a {
  color: var(--text);
}
.tool-chip a:hover {
  color: var(--accent);
}

.course-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.course-card summary::-webkit-details-marker {
  display: none;
}

.course-card summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-weight: 600;
}

.course-card[open] summary::after {
  content: "−";
}

.course-code {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.course-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.course-hours {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-body {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--border);
}

.learning {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0.85rem 0;
}

.learning strong {
  color: var(--text);
}

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

.bridges li {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

.bridges .tool-name {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.bridges .tool-name a {
  color: var(--text);
}
.bridges .tool-name a:hover {
  color: var(--accent);
}

.bridges .because {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.filter-bar {
  margin-bottom: 1rem;
}

.filter-bar input {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.filter-bar input::placeholder {
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.matrix th,
table.matrix td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.matrix th {
  background: var(--bg-elevated);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.matrix tr:last-child td {
  border-bottom: none;
}

table.matrix tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

table.matrix td.bridge-cell {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

table.matrix td.bridge-cell a {
  color: var(--text);
  font-weight: 600;
}
table.matrix td.bridge-cell a:hover {
  color: var(--accent);
}

table.matrix code {
  font-size: 0.85rem;
  color: var(--accent);
}

.milestone {
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-top: 1rem;
}

.milestone h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

.milestone p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer.page-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hidden-row {
  display: none;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .integration-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.app-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.app-pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.app-pillar h3 a {
  color: var(--gold);
}
.app-pillar h3 a:hover {
  color: var(--accent);
}

.curriculum-tie {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}

.new-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.app-pillar ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.core-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.core-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.core-row .bridge {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.loop-steps {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 40rem;
}

.loop-steps strong {
  color: var(--text);
}

/* Operations hub */
.hub-status {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hub-status.ok {
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.hub-status.err {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.hub-btn {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.hub-btn.primary {
  background: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--text);
}

.hub-btn.secondary {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.cli-hint {
  font-size: 0.88rem;
}

.cli-hint code {
  font-size: 0.82rem;
}

.tier-section-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  margin: 1.5rem 0 0.75rem;
}

.tier-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.tier-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tier-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.tier-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--accent);
}

.tier-tagline {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
}

.tier-meta {
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.tier-ideal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.tier-card details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tier-card summary {
  cursor: pointer;
  color: var(--text);
}

.tier-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

@media (min-width: 640px) {
  .course-card summary {
    flex-wrap: nowrap;
  }
}
