/* The one portal's design language (Jira JPI-124; the Blazers One Portal
   canvas): the same words on every site - a pill for an area, a kicker for
   a group, a card with a head, a list with a dot a line, a count, a side
   list - over the tokens the four apps already share (style.css: --primary,
   --gold, --bg, --card, --border, --muted). This file is the one copy in
   the one repository; each app serves it as /portal.css and links it from
   its header, so a change here is a change everywhere. */

/* The menu (portal/menu.js): the Admin area opens to its eight groups in
   two columns, each headed; a wide menu near the right edge opens leftwards
   and never wider than the window. */
header.topbar .nav-menu-items.portal-admin { min-width: 560px; max-width: calc(100vw - 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
header.topbar .portal-group { display: flex; flex-direction: column; gap: 8px; }
header.topbar .portal-group-name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
header.topbar .portal-area-admin .nav-menu-items, header.topbar .portal-area-help .nav-menu-items, header.topbar .portal-area-helpdesk .nav-menu-items { left: auto; right: 0; }
@media (max-width: 760px) { header.topbar .nav-menu-items.portal-admin { grid-template-columns: 1fr; min-width: 0; } }
@media (max-width: 640px) { header.topbar .nav-menu-items.portal-admin { display: flex; } }

/* The words. */
.kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.portal-pill { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); background: #fdeeed; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.portal-pill.is-gold { color: #7a5a12; background: #fff6e6; }
.portal-pill.is-muted { color: var(--muted); background: #eef1f6; }
.portal-count { font-size: 0.8rem; font-weight: 700; color: #fff; background: var(--primary); border-radius: 999px; padding: 2px 9px; }
.portal-n { font-weight: 700; color: var(--muted); }
.portal-dot, .admin-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold, #f7941d); flex: none; position: relative; top: -1px; display: inline-block; }
.portal-dot.is-one, .admin-dot-one { background: var(--primary); }

/* A card with a head: the title, a count, the area at the right. */
.card-head, .portal-card h2, .admin-hub-card-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; }
.card-head h2, .admin-hub-card-head h2 { margin: 0; font-size: 1.05rem; }
.portal-card h2 { font-size: 1.05rem; }
.portal-card h2 a, .admin-hub-list a, .card-head h2 a { text-decoration: none; color: var(--primary); }
.portal-card h2 a:hover, .admin-hub-list a:hover { text-decoration: underline; }
.card-head .portal-pill, .portal-card h2 .portal-pill { margin-left: auto; }

/* A list with a dot a line. */
.portal-list, .admin-hub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.93rem; }
.portal-list li, .admin-hub-list li { display: flex; gap: 8px; align-items: baseline; }
.portal-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold, #f7941d); flex: none; position: relative; top: -2px; }
.admin-hub-list a { font-weight: 600; }

/* A grid of cards: Home, and the Admin section. */
.portal-home { margin-bottom: 24px; }
.portal-home .portal-card { margin: 0; min-width: 0; }
.admin-hub { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-hub-side, .portal-side { position: sticky; top: calc(var(--top-h, 0px) + 16px); background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 0; }
.admin-hub-kicker { padding: 0 18px 10px; }
.admin-hub-side nav, .portal-side nav { display: flex; flex-direction: column; }
.admin-hub-side nav a, .portal-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; text-decoration: none; color: inherit; border-left: 3px solid transparent; font-weight: 600; font-size: 0.95rem; }
.admin-hub-side nav a.active, .admin-hub-side nav a:hover, .portal-side nav a.active, .portal-side nav a:hover { color: var(--primary); border-left-color: var(--primary); background: #fdeeed; }
.admin-hub-n { color: #a0a8b4; font-weight: 400; font-size: 0.8rem; }
.admin-hub-head h1 { margin: 0 0 4px; }
.admin-hub-head .subtitle { margin: 0 0 18px; }
.admin-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-hub-card { margin: 0; min-width: 0; }
.admin-hub-legend { display: flex; gap: 18px; margin-top: 14px; color: var(--muted); }
.admin-hub-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .admin-hub-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .admin-hub { grid-template-columns: 1fr; } .admin-hub-side, .portal-side { position: static; } .admin-hub-side nav, .portal-side nav { flex-direction: row; flex-wrap: wrap; } }

/* A strip that says who this is for, as the canvas's "what this person can open". */
.portal-strip { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold, #f7941d); border-radius: 10px; padding: 12px 18px; margin: 16px 0; }
.portal-strip .kicker { margin-bottom: 4px; }

/* People and access: one person's grid. */
.logins-grid td, .logins-grid th { vertical-align: top; }
.logins-tick { display: inline-block; margin: 0 14px 6px 0; white-space: nowrap; }
