/* ==========================================================================
   Intranet (/intranet, /intranet/onboarding, /intranet/working-groups) --
   laid out after the intranet proposal (sources/Intranet ETAIA —
   proposition*.pdf): Quick access bar (under the hero banner), main column +
   sidebar, step/video/document/reading lists, working-group panels.
   Loaded after site.css (server.js `stylesheets`), same tokens.
   ========================================================================== */

/* Generic outlined button (fills on hover) -- e.g. a WG's "Documents on
   Nextcloud". Same look as the header's .nav-outline, usable anywhere. */
.btn-outline {
  background: transparent;
  color: var(--etaia-02);
  border: 1px solid var(--etaia-02);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--etaia-02);
  color: #ffffff;
}

/* Signed-in header: "Public website ↗" set slightly apart from the nav. */
@media (min-width: 721px) {
  .nav-public {
    margin-left: 1rem;
  }
}

/* ---------------- Quick access bar (site-header.handlebars) ----------------
   Right under the header, sticky so it stays visible on scroll. */
.quick-access {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque -- the bar is sticky, page content scrolls underneath it. */
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.quick-access .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.quick-access-label,
.intranet-eyebrow,
.list-eyebrow {
  color: var(--etaia-01);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-access-label {
  margin-right: 0.75rem;
}

.quick-access-chip {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.quick-access-chip:hover,
.quick-access-chip:focus-visible {
  border-color: var(--etaia-02);
  color: var(--etaia-02);
}

/* No page-wide lavender background on intranet pages (site.css's
   .page-content fill) -- plain white, per the intranet proposal.
   body.is-intranet is set by the layout whenever a route passes
   `intranet` (server.js's intranetLocals). */
body.is-intranet .page-content {
  background-color: var(--paper);
}

/* ---------------- page header (intranet-page-header.handlebars) ----------- */
.intranet-welcome {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--hairline);
}

.intranet-welcome .intranet-eyebrow {
  margin: 0 0 0.4rem;
}

.intranet-welcome h1 {
  margin: 0 0 0.6rem;
  color: var(--etaia-01);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.intranet-welcome p:not(.intranet-eyebrow) {

  margin: 0;
  line-height: 1.6;
}

.intranet-welcome p:not(.intranet-eyebrow) + p {
  margin-top: 0.6rem;
}

/* The page header's own buttons (hero links) -- a regular .button-row,
   just spaced from the intro above. */
.intranet-welcome-links {
  margin-top: 1rem;
}

/* ---------------- columns + sections ---------------- */
.intranet-body {
  padding: 2rem 0 4rem;
}

.intranet-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Intranet home: the first section ("Get started") full width above the
   columns (intranet.handlebars) -- its 4 steps fit on one row there -- and
   the same separator between it and the columns as between two sections. */
.intranet-lead .list-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.intranet-columns--after-lead {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}

.intranet-section + .intranet-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}

/* Anchor targets land below the sticky Quick access bar, not under it. */
.intranet-section,
.wg-panel {
  scroll-margin-top: 4rem;
}

.intranet-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.intranet-section-head h2 {
  margin: 0;
  color: var(--etaia-02);
  font-size: 1.5rem;
}

.intranet-section-head .button-row {
  flex-shrink: 0;
  margin: 0;
}

.intranet-section p {
  line-height: 1.6;
}

/* ---------------- sidebar (intranet-sidebar.handlebars) ---------------- */
.intranet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.intranet-panel {
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.intranet-panel .intranet-eyebrow {
  margin: 0 0 0.5rem;
}

.intranet-panel-intro {
  margin: 0 0 0.5rem;
  color: var(--text-muted-color);
  font-size: 0.85rem;
  line-height: 1.5;
}

.intranet-resource,
.intranet-contact {
  display: block;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hairline);
}

.intranet-resource {
  color: var(--text-color);
  text-decoration: none;
}

.intranet-resource strong,
.intranet-contact strong {
  display: block;
  font-size: 0.9rem;
}

.intranet-resource span,
.intranet-contact p {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--text-muted-color);
  font-size: 0.8rem;
  line-height: 1.45;
}

.intranet-resource:hover strong {
  color: var(--etaia-02);
}

.intranet-contact a {
  color: var(--etaia-02);
  font-weight: 600;
}

/* ```list contacts (section-block.handlebars) -- e.g. intranet.txt's Key
   contacts under "Your working groups": one column per contact, same
   per-contact look as in the sidebar (.intranet-contact, top rule each). */
.intranet-contacts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 1.5rem;
  margin-top: 0.5rem;
}

/* ---------------- ```list styles (section-block.handlebars) ---------------- */
.list-steps,
.list-reading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.list-step,
.list-read {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.list-step h3,
.list-read h3 {
  margin: 0.2rem 0 0;
  color: var(--text-color);
  font-size: 1rem;
}

.list-step p,
.list-read p {
  margin: 0;
  font-size: 0.88rem;
}

.list-link {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--etaia-01);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.list-link:hover {
  text-decoration: underline;
}

/* ```list steps|tiles / ```list reading|tiles: same hover as site.css's .content--tiles cells (About
   us "Our activities") but in this site's own light --accent-lavender
   (#F2F0FE, site.css) -- the card fills with it over a 0.3s transition;
   light enough that its text keeps its own dark colors. */
.list-steps--tiles .list-step,
.list-reading--tiles .list-read {
  transition: background-color .3s, border-color .3s;
}

.list-steps--tiles .list-step:hover,
.list-reading--tiles .list-read:hover {
  background-color: var(--accent-lavender);
  border-color: var(--accent-lavender);
}

.list-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.list-videos--featured {
  grid-template-columns: 1fr;
}

.list-video h3 {
  margin: 0.6rem 0 0.15rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.list-video p {
  margin: 0.5rem 0 0;
  color: var(--text-muted-color);
  font-size: 0.85rem;
}

.list-video h3 + p {
  margin-top: 0;
}

.list-video-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, #2b1247, #4a1f7a 55%, #26103f);
  color: #ffffff;
  text-decoration: none;
}

.list-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.list-video-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: var(--etaia-01);
}

.list-video-overlay-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.list-documents {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.list-documents li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.list-documents li + li {
  border-top: 1px solid var(--hairline);
}

.list-documents a,
.list-documents li > span:first-child {
  color: var(--etaia-02);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.list-documents-meta {
  color: var(--text-muted-color);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------------- working groups ---------------- */
/* Intranet home's compact list (```wg-list widget). */
.wg-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.wg-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline);
}

.wg-list-number {
  flex: 0 0 3.2rem;
  color: var(--etaia-01);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wg-list-name {
  flex: 1;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
}

.wg-list-name:hover {
  color: var(--etaia-02);
}

.wg-list-lead {
  color: var(--text-muted-color);
  font-size: 0.82rem;
  text-align: right;
}

/* /intranet/working-groups panels (wg-panel.handlebars). */
.wg-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.wg-panel {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.wg-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wg-panel h3 {
  margin: 0.5rem 0 0.75rem;
  color: var(--text-color);
  font-size: 1.15rem;
}

.wg-panel-section h4 {
  margin: 0.75rem 0 0.25rem;
  color: var(--etaia-02);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wg-panel-section p,
.wg-panel-section li {
  font-size: 0.88rem;
}

/* A plain bullet instead of the site-wide check-circle -- same as
   .wg-card-section in site.css (the <svg> is still rendered, just hidden). */
.wg-panel-section .icon-list .e-font-icon-svg {
  display: none;
}

.wg-panel-section .icon-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.45em;
  height: 0.45em;
  margin: 0.5em 0.15em 0 0.1em;
  border-radius: 50%;
  background: var(--etaia-02);
}

.wg-panel-leads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
}

.wg-panel-leads .list-eyebrow {
  flex-basis: 100%;
}

.wg-panel-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.wg-panel-lead img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--etaia-02);
}

.wg-panel-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

/* ---------------- tablet / phone ---------------- */
@media (max-width: 960px) {
  .intranet-columns {
    grid-template-columns: 1fr;
  }

  .intranet-lead .list-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-steps,
  .list-reading,
  .list-videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .list-videos--featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .intranet-section-head {
    flex-direction: column;
  }

  .list-steps,
  .intranet-lead .list-steps,
  .list-reading,
  .list-videos,
  .wg-panels {
    grid-template-columns: 1fr;
  }

  .wg-list li {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }

  .wg-list-lead {
    flex-basis: 100%;
    text-align: left;
  }
}
