/* The portal's home (portal.js), in the explorer's register: the band's lead (how many, the search), the sections under
   it, the glass tiles with their pictures, the side panel's counts, the shimmer while loading, and the sign-in pill. */

/* the band's lead: one line of how many, then the search, the same height loading or loaded */
.portal-head { margin-top: 1rem; max-width: 40rem; }
.portal-count { min-height: 1.5rem; margin: 0 0 0.875rem; font-size: var(--type-body); line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.portal-search { min-height: 46px; }
.portal-search .input { min-height: 46px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); border-color: transparent; }
.portal-search .input:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }
.portal-loading__mark { display: inline-block; height: 1.6em; width: auto; margin-right: 0.6rem; vertical-align: -0.35em; }

/* the sections under the band */
.portal-body { display: flex; flex-direction: column; gap: 2rem; }
.portal-section[hidden] { display: none; }
.portal-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.875rem; }
.portal-h { margin: 0 0 0.875rem; font-family: var(--font-heading); font-size: var(--type-kicker); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-navy-700); }
.portal-h-row .portal-h { margin: 0; }
.portal-h__n { font-size: var(--type-meta); color: var(--color-navy-700); }
.portal-empty { margin: 0.5rem 0 0; font-size: var(--type-secondary); color: var(--color-navy-700); }
.portal-empty[hidden] { display: none; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .portal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.portal-grid--recent { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* a tile: the explorer's glass card (showcase.css #work .card-glass.glass), its picture on top */
#work .portal-tile.card-glass.glass { padding: 12px 12px 16px; }
.portal-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; text-decoration: none; color: inherit; transition: background-color 0.2s ease, transform 0.2s ease; }
.portal-tile:hover { transform: translateY(-2px); }
.portal-tile:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.portal-tile__shot { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; margin-bottom: 6px; object-fit: cover; object-position: top left; border-radius: 12px; background: rgba(7, 37, 59, 0.08); box-shadow: 0 0 0 1px rgba(7, 37, 59, 0.08); }
.portal-tile__shot--none { display: flex; align-items: center; justify-content: center; color: var(--color-navy-600); }
.portal-tile__tag { margin: 0 4px; padding: 2px 9px; border-radius: 999px; background: var(--navy-tint-06, rgba(7, 37, 59, 0.06)); font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-navy-700); }
.portal-tile__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.5em; margin: 0 4px; padding-right: 1.75rem; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.portal-tile__desc { display: block; width: calc(100% - 8px); margin: 0 4px; padding-right: 1.75rem;   /* clear of the new-tab icon */ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--type-secondary); line-height: 1.45; color: var(--color-navy-700); }
.portal-tile__go { position: absolute; right: 16px; bottom: 16px; color: var(--color-navy-600); }
.portal-tile--compact .portal-tile__title { font-size: 0.9375rem; }
#work .portal-tile--compact.card-glass.glass { padding: 10px 10px 12px; }
@media (max-width: 639px) {
  .portal-grid--recent { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .portal-tile--compact .portal-tile__tag, .portal-tile--compact .portal-tile__go { display: none; }
  .portal-tile--compact .portal-tile__title { padding-right: 0; font-size: 0.8125rem; }
}

/* the side panel's counts; gone on the narrowed rail, as the names are */
.nav-count { margin-left: auto; padding-left: 0.5rem; font-size: var(--type-meta); color: var(--nav-quiet); }
#sidebar.w-14 .nav-count { display: none; }

/* the shimmer while sign-in and the tiles are on their way: a soft light passing, in the shape of what comes */
.shim { position: relative; overflow: hidden; display: block; background: rgba(7, 37, 59, 0.07); border-radius: 8px; }
.shim::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: portal-shim 1.6s ease-in-out infinite; }
@keyframes portal-shim { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .shim::after { animation: none; } }
.portal-count.shim--line { width: 14rem; max-width: 70%; background: rgba(255, 255, 255, 0.16); }
.portal-search.shim--bar { border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.shim--h, .shim--n { display: inline-block; width: 9rem; border-radius: 6px; vertical-align: top; }
.shim--n { width: 6rem; }
.shim--tag { width: 6rem; color: transparent; }
.shim--title { width: 70%; color: transparent; }
.shim--desc { width: 85%; color: transparent; }
.portal-tile--shim { pointer-events: none; }
.portal-tile--shim .portal-tile__shot { border-radius: 12px; }
.portal-navshim { display: flex; flex-direction: column; gap: 10px; margin-top: 1.5rem; padding: 0 0.75rem; }
.shim--nav { height: 0.9rem; background: rgba(255, 255, 255, 0.1); }
.shim--nav:nth-child(2) { width: 75%; } .shim--nav:nth-child(3) { width: 60%; }
#sidebar.w-14 .portal-navshim { display: none; }

/* the sign-in pill (signin.js): outlined, the bar's own ink, the one-color G; Google's own button lies over it, almost
   transparent, and takes the press, the keyboard and the screen reader */
.signin-pill { position: relative; display: inline-flex; max-width: 100%; }
.signin-pill__face { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: #fff; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; opacity: 0.92; transition: opacity 0.2s ease, background-color 0.2s ease; }
.signin-pill__g { flex: none; }
.signin-pill:hover .signin-pill__face { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.signin-pill:focus-within .signin-pill__face { opacity: 1; background: rgba(255, 255, 255, 0.08); outline: 2px solid #fff; outline-offset: 3px; }
.signin-pill__gsi { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 999px; opacity: 0.01; }
.signin-pill--small .signin-pill__face { height: 38px; padding: 0 16px; font-size: 0.68rem; }
.gate-top { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 24px; color: #fff; }
.gate-top__name { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; }
.gate-top__name img { height: 32px; width: auto; }
.gate { position: relative; }
@media (max-width: 639px) { .gate-top .signin-pill { display: none; } .signin-pill__face { padding: 0 16px; font-size: 0.72rem; } }
.gate-pill[hidden], .signin-pill[hidden] { display: none; }
@media (max-width: 767px) { .portal-head { padding-right: 56px; } }   /* clear of the photo's pause button */
