/* The layout of the portal, after Okta's End-User Dashboard: a white top bar with the wordmark at the
   left and the person's initials at the right; collapsible sections of large landscape white cards on a
   light canvas (no side panel and no filter field since October 30, 2026, Nicolas's ruling). Every colour and the type
   come from the theme's variables (theme/<name>/theme.css); this file names none. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); font: var(--font-size)/1.45 var(--font); }
a { color: inherit; }

/* the wordmark, as the Price Book writes its own title: bold, tight, the second word in the accent */
.wordmark { display: inline-block; font-size: 24px; font-weight: 700; letter-spacing: -.01em; color: var(--wordmark); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--wordmark-accent); }
.wordmark.big { font-size: 28px; }

/* ---------- the signed in page ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5; height: 60px; display: flex; align-items: center; gap: 16px;
  padding: 0 28px; background: var(--topbar); border-bottom: 1px solid var(--line);
}

.me { position: relative; margin-left: auto; }
.me summary { list-style: none; }
.me summary::-webkit-details-marker { display: none; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-ink);
  font-size: 13px; font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.menu {
  position: absolute; right: 0; top: 42px; min-width: 240px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--menu-shadow); padding: 6px 0; z-index: 10; font-size: 14px;
}
.menu .email { padding: 8px 16px; color: var(--muted); border-bottom: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.menu a:hover { background: var(--sel); }
.menu .view-as summary { list-style: none; padding: 8px 16px; cursor: pointer; }
.menu .view-as summary::-webkit-details-marker { display: none; }
.menu .view-as summary:hover { background: var(--sel); }
.menu .view-as[open] summary { color: var(--acc); }
.menu .people { max-height: 280px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu .people a { padding: 6px 16px 6px 28px; }

.viewing { padding: 8px 28px; font-size: 13.5px; background: var(--banner-bg); color: var(--banner-ink); }
.viewing a { color: var(--banner-ink); font-weight: 600; }

/* the sections */
.sections { padding: 28px 28px 48px; max-width: 1296px; margin: 0 auto; }
.section { margin-bottom: 30px; scroll-margin-top: 76px; }
.section-head { margin: 0 0 14px; }
.section-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--heading);
}
/* the Price Book's heading: small caps in the accent */
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.chevron { width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; flex: none; }
.chevron::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 5px; height: 5px;
  border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg);
}
.section.collapsed .chevron::after { top: 3.5px; transform: rotate(225deg); }
.section.collapsed .grid { display: none; }

/* the cards: large, landscape, white, the logo centred and the label under it */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  height: 132px; padding: 16px 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--tile-shadow); text-decoration: none; color: var(--ink); outline: none;
  transition: box-shadow .12s ease, transform .12s ease;
}
.card:hover, .card:focus-visible { box-shadow: var(--tile-shadow-hover); transform: translateY(-1px); }
.card:hover .label, .card:focus-visible .label { color: var(--acc); }
.card .logo { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 12px; background: var(--logo-plate); }
.card .logo img { width: 48px; height: 48px; display: block; }
.card .label { font-size: 14px; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: break-word; }
.card .badge { position: absolute; top: 8px; right: 11px; font-size: 13px; color: var(--muted); }
.card.preview { cursor: default; }
.card.preview:hover { box-shadow: var(--tile-shadow); transform: none; }
.card.preview:hover .label { color: var(--ink); }
.empty { color: var(--muted); font-size: 15px; padding: 24px 0; }

/* ---------- the sign in and refusal pages ---------- */
.signin { display: flex; align-items: center; justify-content: center; padding: 16px; }
.card-signin {
  width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-align: center; padding: 40px 30px 32px; box-shadow: var(--tile-shadow);
}
.card-signin p { margin: 14px 0 24px; font-size: 14.5px; color: var(--muted); }
.button-slot { display: flex; justify-content: center; min-height: 44px; }
.google-disabled {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--disabled-bg); color: var(--disabled-ink); font: inherit; font-size: 14px; cursor: not-allowed;
}
.google-disabled .g { font-weight: 700; }
.card-signin .note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.card-signin .refused { margin: 16px 0 0; color: var(--acc); font-size: 13px; }
.card-signin .back { margin: 0; }
.card-signin .back a { color: var(--acc); }

/* ---------- a phone ---------- */
@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .sections { padding: 20px 16px 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
