/* portal.css — shared styles for portal pages (student/teacher/professional/
   seeker/writer/designer). Initial scope: nav + footer + the global hover
   rules. Body styles still live in each page until the bulk extraction is
   approved. */

:root {
  --portal-bg:        #ffffff;
  --portal-text:      #0f172a;
  --portal-text-muted:#475569;
  --portal-border:    #e2e8f0;
  --portal-accent:    #0f172a;
  --portal-radius:    10px;
  --portal-shadow:    0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  /* [2026-05-04] Aligned with the shell header (.llos-shell-inner) and the
     canonical .container in llos.css so the portal logo, breadcrumb, hero,
     and body content all share the same left/right edges on every viewport.
     Previously --portal-max was 1440px and --portal-pad clamp(16px, 4vw, 32px),
     which left an ~80px gap on screens ≥1778px between the shell header (max
     1600px) and the page content — visible as the breadcrumb sitting to the
     right of the logo. */
  --portal-max:       min(90vw, 1600px);
  --portal-pad:       1rem;
  --portal-font:      'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --portal-heading:   'Playfair Display', Georgia, serif;
}
@media (min-width: 640px)  { :root { --portal-pad: 1.5rem; } }
@media (min-width: 1024px) { :root { --portal-pad: 2rem; } }

/* ──────────────────────────────────────────────────────────────────────────
   GLOBAL: no underline on hover for cards or links anywhere in portal pages.
   Client request 2026-04-26: remove the mouseover underline that cards were
   showing. We keep underlines on plain prose links inside .portal-prose so
   accessibility for body copy is preserved — but cards and nav never get one.
   ────────────────────────────────────────────────────────────────────────── */
a { text-decoration: none; color: inherit; }
a:hover, a:focus-visible { text-decoration: none; }
.portal-card a:hover, .portal-card:hover a,
.card a:hover, .card:hover a,
.portal-siblings a:hover,
.portal-footer a:hover { text-decoration: none !important; }

/* Restore underline only inside long-form prose blocks where it's expected. */
.portal-prose a, article.portal-prose a { text-decoration: underline; text-underline-offset: 3px; }
.portal-prose a:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────────────────
   NAV
   ────────────────────────────────────────────────────────────────────────── */
.portal-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--portal-border);
  font-family: var(--portal-font);
}
.portal-nav-inner {
  max-width: var(--portal-max);
  margin: 0 auto;
  padding: 12px var(--portal-pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.portal-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.portal-brand-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--portal-heading); }
.portal-brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: #0f172a; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px;
}
.portal-brand-text { font-size: 18px; font-weight: 700; color: var(--portal-text); }
.portal-brand-divider { color: #cbd5e1; }
.portal-brand-portal {
  font-size: 13px; font-weight: 600;
  color: var(--portal-accent, var(--portal-text));
}

.portal-siblings {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.portal-sibling-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--portal-text-muted);
  transition: background 0.15s, color 0.15s;
}
.portal-sibling-link i { font-size: 12px; opacity: 0.8; }
.portal-sibling-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--portal-text);
}
.portal-sibling-link.is-current {
  color: var(--portal-accent);
  background: color-mix(in srgb, var(--portal-accent) 10%, transparent);
}
@media (max-width: 680px) {
  .portal-siblings { gap: 0; }
  .portal-sibling-link span { display: none; }
  .portal-sibling-link { padding: 8px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   BREADCRUMB — visible trail. JSON-LD is emitted alongside for SEO.
   ────────────────────────────────────────────────────────────────────────── */
.portal-breadcrumb {
  background: #f8fafc;
  border-bottom: 1px solid var(--portal-border);
  font-family: var(--portal-font);
}
.portal-breadcrumb-list {
  max-width: var(--portal-max);
  margin: 0 auto;
  padding: 8px var(--portal-pad);
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: 12px;
}
.portal-breadcrumb-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--portal-text-muted);
}
.portal-breadcrumb-item a { color: var(--portal-text-muted); transition: color 0.15s; }
.portal-breadcrumb-item a:hover { color: var(--portal-text); }
.portal-breadcrumb-item [aria-current="page"] { color: var(--portal-text); font-weight: 600; }
.portal-breadcrumb-sep { color: #cbd5e1; }

/* ──────────────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────────────── */
.portal-footer {
  background: #0f172a;
  color: #cbd5e1;
  font-family: var(--portal-font);
  margin-top: 64px;
}
.portal-footer-inner {
  max-width: var(--portal-max);
  margin: 0 auto;
  padding: 48px var(--portal-pad) 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}
.portal-footer-brand .portal-brand-link { color: #fff; }
.portal-footer-brand .portal-brand-mark { background: #f59e0b; }
.portal-footer-brand .portal-brand-text { color: #fff; }
.portal-footer-tagline { color: #94a3b8; font-size: 13px; line-height: 1.5; margin: 12px 0; max-width: 32ch; }
.portal-footer-social {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; gap: 10px;
}
.portal-footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: #cbd5e1;
  transition: background 0.15s, color 0.15s;
}
.portal-footer-social a:hover { background: rgba(245,158,11,0.18); color: #f59e0b; }

.portal-footer-col-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: #94a3b8; margin: 0 0 12px;
}
.portal-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.portal-footer-col a { color: #cbd5e1; font-size: 14px; transition: color 0.15s; }
.portal-footer-col a:hover { color: #f59e0b; }

.portal-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px var(--portal-pad);
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
