/* Meijer Gardens intranet skin: adapted from meijergardens.org palette */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Sourced from meijergardens.org inline CSS */
  --mg-primary: #066aab;          /* signature blue: buttons, links, accents */
  --mg-primary-dark: #045086;
  --mg-primary-light: #74a6d1;    /* sky-blue accent */
  --mg-primary-tint: #e4eff7;     /* very pale blue: hover/highlight */

  --mg-lime: #dfe33a;             /* meijergardens.org lime */
  --mg-lime-dark: #b4b82a;

  --mg-topbar: #111111;           /* black top bar */
  --mg-topbar-fg: #ffffff;
  --mg-topbar-mut: #b9bbbd;

  --mg-bg: #fbfbfb;               /* neutral light bg (not cream) */
  --mg-bg-soft: #eaeaea;          /* light grey blocks */
  --mg-card: #ffffff;
  --mg-ink: #111111;              /* body text */
  --mg-head: #202020;             /* heading color */
  --mg-mut: #545859;               /* muted body text */
  --mg-mut-2: #7a7a7a;            /* secondary muted */
  --mg-line: rgba(0, 0, 0, 0.10);
  --mg-shadow: 0 6px 22px -14px rgba(0, 0, 0, .18);

  /* Backward-compat aliases used by older rules */
  --mg-accent: var(--mg-lime);
  --mg-accent-dark: var(--mg-lime-dark);
  --mg-amber: #d28b2a;
}

html, body {
  background: var(--mg-bg);
  color: var(--mg-ink);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .mg-h {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--mg-head);
  letter-spacing: -0.005em;
}

a { color: var(--mg-primary); }
a:hover { color: var(--mg-primary-dark); text-decoration: none; }

/* Top bar: black like meijergardens.org */
.mg-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--mg-topbar);
  border-bottom: 1px solid #000;
  box-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.mg-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
}
.mg-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mg-ink);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform .2s ease, opacity .15s ease;
}
.mg-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mg-hamburger.open span:nth-child(2) { opacity: 0; }
.mg-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mg-top-in {
  max-width: 1280px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.mg-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 18px; letter-spacing: .04em;
  color: var(--mg-topbar-fg);
}
.mg-brand .leaf {
  display: inline-block;
  width: 230px;
  height: 50px;
  background: url('../assets/images/fmg-logo-black.png') left center/contain no-repeat;
  flex-shrink: 0;
}
.mg-brand .leaf::after { content: none; }
@media (max-width: 720px) {
  .mg-brand .leaf {
    width: 150px;
    height: 38px;
  }
}
.mg-brand small {
  display: block;
  font-family: 'Open Sans'; font-weight: 400; font-size: 11px;
  text-transform: uppercase; letter-spacing: .18em; color: var(--mg-mut);
  margin-top: 2px;
}
.mg-nav {
  display: flex; align-items: center; gap: 22px;
  font-size: 13px; font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mg-nav a { color: var(--mg-topbar-fg); opacity: .85; }
.mg-nav a:hover { color: var(--mg-primary-light); opacity: 1; }
.mg-nav a.active { color: var(--mg-lime); opacity: 1; }
.mg-nav .who {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 100px;
  background: rgba(255,255,255,.08);
  font-size: 11px; color: var(--mg-topbar-mut);
  text-transform: none; letter-spacing: 0;
}
.mg-nav .who b { color: var(--mg-topbar-fg); font-weight: 600; }

/* Mobile chrome: keep full wordmark + Sign in inline, drop the hamburger */
@media (max-width: 720px) {
  .mg-top-in { padding: 10px 14px; gap: 10px; }
  .mg-hamburger { display: none; }
  .mg-nav {
    gap: 8px;
    font-size: 11px;
    letter-spacing: .06em;
  }
  .mg-nav .who { padding: 4px 10px; font-size: 10px; }
  .mg-nav .mg-btn.sm { padding: 6px 12px; font-size: 11px; letter-spacing: .04em; }
}
.mg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--mg-primary); color: #fff;
  transition: background .15s ease, transform .1s ease;
  text-decoration: none;
}
.mg-btn:hover { background: var(--mg-primary-dark); color: #fff; transform: translateY(-1px); }
.mg-btn.lime { background: var(--mg-lime); color: var(--mg-ink); }
.mg-btn.lime:hover { background: var(--mg-lime-dark); color: var(--mg-ink); }
.mg-btn.ghost {
  background: transparent; color: var(--mg-primary);
  border: 1px solid var(--mg-primary);
}
.mg-btn.ghost:hover { background: var(--mg-primary-tint); color: var(--mg-primary-dark); }
.mg-btn.dark { background: var(--mg-ink); color: #fff; }
.mg-btn.dark:hover { background: #000; color: var(--mg-lime); }
.mg-btn.sm { padding: 6px 14px; font-size: 12px; }

/* Layout */
.mg-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 80px;
}

/* Hero */
.mg-hero {
  background: linear-gradient(135deg, #111111 0%, var(--mg-primary-dark) 100%);
  color: #fff;
  border-radius: 8px;
  padding: 44px 44px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  position: relative;
  overflow: hidden;
}
.mg-hero::before {
  content: ""; position: absolute; right: -80px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,224,233,.32), transparent 70%);
}
.mg-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.mg-hero p {
  color: rgba(255,255,255,.85);
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 52ch;
}
.mg-hero .meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.78);
}
.mg-hero .meta b { color: #fff; font-weight: 600; }
.mg-hero .cta-row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.mg-hero .cta-row .mg-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.mg-hero .cta-row .mg-btn.ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.mg-hero .aside {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  padding: 22px;
  align-self: stretch;
  position: relative;
}
.mg-hero .aside h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .18em; margin: 0 0 14px; font-weight: 500; }
.mg-hero .aside ul { list-style: none; padding: 0; margin: 0; }
.mg-hero .aside li { padding: 6px 0; color: rgba(255,255,255,.88); border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.mg-hero .aside li:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  .mg-hero { grid-template-columns: 1fr; padding: 32px 26px; }
}

/* Mobile-only header subtitle that replaces the Hero/Hub box */
.mg-hub-mobile-label { display: none; }
@media (max-width: 720px) {
  .mg-hub,
  .mg-hub-arrow,
  .mg-hero { display: none; }
  .mg-hub-mobile-label {
    display: block;
    text-align: center;
    padding: 18px 20px 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--mg-primary);
  }
  .mg-wrap { padding-top: 12px; }
}

/* Core Hub: diagram-style central card */
.mg-hub {
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-top: 4px solid var(--mg-primary);
  border-radius: 8px;
  padding: 32px 36px;
  text-align: center;
  box-shadow: var(--mg-shadow);
  margin: 28px auto 0;
  max-width: 560px;
  position: relative;
}
.mg-hub .mark {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1200 / 380;
  margin: 0 auto 12px;
  background: url('../assets/images/fmg-logo-white.png') center/contain no-repeat;
}
.mg-hub h1 {
  position: absolute; left: -9999px; /* logo replaces the title */
}
.mg-hub p {
  color: var(--mg-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  margin: 0;
}
.mg-hub-arrow {
  width: 1.5px;
  height: 40px;
  margin: 0 auto;
  background: repeating-linear-gradient(180deg, var(--mg-primary-light) 0 6px, transparent 6px 12px);
  position: relative;
}
.mg-hub-arrow::after {
  content: "";
  position: absolute;
  bottom: -2px; left: -5px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--mg-primary-light);
}

/* Foundation layer: bottom of the diagram */
.mg-foundation-caption {
  text-align: center;
  font-size: 12px;
  color: var(--mg-mut);
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 36px 0 8px;
}
.mg-foundation {
  background: var(--mg-bg-soft);
  border: 1px solid var(--mg-line);
  border-radius: 8px;
  padding: 22px 28px;
  text-align: center;
}
.mg-foundation h3 {
  font-size: 14px;
  margin: 0 0 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mg-head);
  font-family: 'Montserrat', sans-serif;
}
.mg-foundation .items {
  color: var(--mg-mut);
  font-size: 13px;
  letter-spacing: .04em;
}

/* Pillar grid */
.mg-pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; margin-top: 28px; }
.mg-pillar {
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-top: 3px solid var(--p, var(--mg-primary));
  border-radius: 8px;
  padding: 22px 24px 20px;
  box-shadow: var(--mg-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.mg-pillar:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.18); }
.mg-pillar .top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.mg-pillar .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--p-tint, var(--mg-primary-light));
  color: var(--p, var(--mg-primary));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.mg-pillar h3 { font-size: 19px; margin: 0; line-height: 1.15; }
.mg-pillar .subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--p, var(--mg-primary));
  margin-top: 2px;
}
.mg-pillar .tagline { color: var(--mg-mut); font-size: 13.5px; margin: 6px 0 14px; }
.mg-pillar ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--mg-line); }
.mg-pillar li { border-bottom: 1px solid var(--mg-line); }
.mg-pillar li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; color: var(--mg-ink); font-size: 14px; font-weight: 500;
}
.mg-pillar li a::after { content: "→"; color: var(--mg-mut); transition: transform .15s ease, color .15s ease; }
.mg-pillar li a:hover { color: var(--mg-primary); }
.mg-pillar li a:hover::after { transform: translateX(3px); color: var(--mg-primary); }

/* Pillar color variants: derived from meijergardens.org accents */
.mg-pillar.p-comm    { --p: #066aab; --p-tint: #e4eff7; }
.mg-pillar.p-kb      { --p: #4e3629; --p-tint: #f1ebe6; }
.mg-pillar.p-people  { --p: #97a91a; --p-tint: #eef2cf; }
.mg-pillar.p-tools   { --p: #545859; --p-tint: #eaeaea; }
.mg-pillar.p-it      { --p: #74a6d1; --p-tint: #e1ecf5; }
.mg-pillar.p-finance { --p: #b5701c; --p-tint: #f7ecdc; }

/* Section / item detail */
.mg-crumb {
  font-size: 12.5px; color: var(--mg-mut); text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 14px;
}
.mg-crumb a { color: var(--mg-mut); }
.mg-crumb a:hover { color: var(--mg-primary); }
.mg-crumb .sep { margin: 0 8px; opacity: .5; }

.mg-section h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.08; margin: 0 0 10px; }
.mg-section .summary { font-size: 17px; color: var(--mg-mut); margin: 0 0 30px; max-width: 70ch; }

.mg-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 920px) { .mg-cols { grid-template-columns: 1fr; } }

.mg-panel {
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: var(--mg-shadow);
}
.mg-panel h2 { font-size: 18px; margin: 0 0 14px; }
.mg-panel + .mg-panel { margin-top: 18px; }
.mg-panel .intro { color: var(--mg-ink); font-size: 16px; line-height: 1.62; margin: 0 0 18px; white-space: pre-wrap; }
.mg-panel ul.bullets { list-style: none; padding: 0; margin: 0; }
.mg-panel ul.bullets li {
  padding: 11px 0 11px 30px; position: relative;
  border-bottom: 1px solid var(--mg-line);
  color: var(--mg-ink); font-size: 14.5px; line-height: 1.5;
}
.mg-panel ul.bullets li::before {
  content: ""; position: absolute; left: 8px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mg-accent);
}
.mg-panel ul.bullets li:last-child { border-bottom: 0; }

/* Files list */
.mg-files { display: flex; flex-direction: column; gap: 10px; }
.mg-files .none { color: var(--mg-mut); font-style: italic; font-size: 14px; }
.mg-file {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--mg-bg-soft);
  border: 1px solid var(--mg-line);
  border-radius: 10px;
  text-decoration: none; color: var(--mg-ink);
  transition: background .15s ease, transform .1s ease;
}
.mg-file:hover { background: var(--mg-primary-light); color: var(--mg-primary-dark); transform: translateY(-1px); }
.mg-file .ext {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--mg-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  flex-shrink: 0;
}
.mg-file .file-name { font-weight: 600; font-size: 14px; }
.mg-file .file-note { font-size: 12.5px; color: var(--mg-ink); opacity: .8; margin-top: 1px; }
.mg-file .file-meta { font-size: 12px; color: var(--mg-mut); }
.mg-file .gone { margin-left: auto; color: var(--mg-mut); font-size: 18px; }

/* Forms / inputs */
.mg-input, .mg-textarea {
  width: 100%; padding: 11px 14px;
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  color: var(--mg-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mg-input:focus, .mg-textarea:focus { outline: 0; border-color: var(--mg-primary); box-shadow: 0 0 0 3px rgba(34,109,122,.15); }
.mg-textarea { resize: vertical; min-height: 200px; line-height: 1.55; }
.mg-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--mg-ink); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.mg-field + .mg-field { margin-top: 16px; }
.mg-help { font-size: 12.5px; color: var(--mg-mut); margin-top: 4px; }

/* Admin */
.mg-admin-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
@media (max-width: 920px) { .mg-admin-grid { grid-template-columns: 1fr; } }
.mg-sidenav {
  background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 14px;
  padding: 14px;
}
.mg-sidenav .group { margin-bottom: 14px; }
.mg-sidenav .group h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--mg-mut);
  margin: 8px 10px 6px; font-weight: 600;
}
.mg-sidenav .group a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--mg-ink); font-size: 14px;
  text-decoration: none;
}
.mg-sidenav .group a:hover { background: var(--mg-bg-soft); }
.mg-sidenav .group a.active { background: var(--mg-primary); color: #fff; }

/* Calendar */
.mg-cal-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 920px) { .mg-cal-wrap { grid-template-columns: 1fr; } }
.mg-cal { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 16px; padding: 22px; box-shadow: var(--mg-shadow); min-height: 540px; }
.mg-cal-aside { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 16px; padding: 22px; box-shadow: var(--mg-shadow); }
.mg-event-row { padding: 12px 0; border-bottom: 1px solid var(--mg-line); }
.mg-event-row:last-child { border-bottom: 0; }
.mg-event-row .when { font-size: 12px; color: var(--mg-mut); text-transform: uppercase; letter-spacing: .08em; }
.mg-event-row .title { font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.mg-event-row .where { font-size: 13px; color: var(--mg-mut); margin-top: 2px; }
.mg-event-row .att { font-size: 12px; color: var(--mg-mut); margin-top: 4px; }
.mg-event-row.is-now { padding-left: 12px; border-left: 3px solid var(--mg-accent); }
.mg-cal-empty { text-align: center; padding: 40px 20px; color: var(--mg-mut); }
.mg-cal-empty h3 { font-size: 18px; margin: 0 0 8px; color: var(--mg-ink); }
.mg-cal-empty p { max-width: 36ch; margin: 0 auto 18px; font-size: 14px; }

/* Toast / status messages */
.mg-toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--mg-ink); color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
.mg-toast.show { opacity: 1; transform: translateY(0); }
.mg-toast.error { background: #94413a; }
.mg-toast.success { background: var(--mg-accent-dark); }

/* Auth */
.mg-auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(135deg, #111111 0%, #202020 100%); }
.mg-auth {
  background: #fff; border-radius: 8px; padding: 40px;
  max-width: 420px; width: 100%;
  border-top: 4px solid var(--mg-primary);
  box-shadow: 0 32px 60px -20px rgba(0,0,0,.5);
}
.mg-auth .leaf { width: 72px; height: 72px; background: url('../assets/images/palm-green.png') center/contain no-repeat; display: inline-block; margin-bottom: 14px; }
.mg-auth .leaf::after { content: none; }
.mg-auth h1 { font-size: 26px; margin: 0 0 6px; }
.mg-auth .sub { color: var(--mg-mut); font-size: 14px; margin: 0 0 24px; }
.mg-auth .mg-btn { width: 100%; justify-content: center; padding: 12px 20px; margin-top: 18px; }
.mg-auth .err { color: #94413a; font-size: 13px; margin-top: 12px; min-height: 18px; }
.mg-auth .alt { font-size: 13px; color: var(--mg-mut); text-align: center; margin-top: 18px; }
.mg-auth .alt a { color: var(--mg-primary); }

/* Drop zone */
.mg-drop {
  border: 2px dashed var(--mg-line); border-radius: 12px;
  padding: 28px 20px; text-align: center;
  background: var(--mg-bg-soft);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.mg-drop:hover, .mg-drop.dragging { border-color: var(--mg-primary); background: var(--mg-primary-light); }
.mg-drop h4 { font-size: 15px; margin: 0 0 4px; }
.mg-drop p { font-size: 13px; color: var(--mg-mut); margin: 0; }

/* Utility */
.mg-hide { display: none !important; }
.mg-row { display: flex; align-items: center; gap: 10px; }
.mg-spacer { flex: 1; }
.mg-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(34,109,122,.18); border-top-color: var(--mg-primary);
  border-radius: 50%; animation: mg-spin .8s linear infinite;
}
@keyframes mg-spin { to { transform: rotate(360deg); } }
.mg-loading { display: flex; align-items: center; gap: 10px; color: var(--mg-mut); font-size: 14px; padding: 30px; justify-content: center; }

/* Sign-in gate: hide page content until the staff check passes */
body.mg-locked main, body.mg-locked .mg-hub-mobile-label { visibility: hidden; }
.mg-noaccess { max-width: 560px; margin: 40px auto; }
.mg-noaccess .mg-btn { margin-top: 12px; }

/* Staff FAQ browser (section page) */
#mg-faqs:not(:empty) { margin-top: 28px; }
.mg-faq-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mg-faq-head h2 { margin: 0; }
.mg-faq-search { max-width: 340px; }
.mg-faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mg-faq-tab {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  background: var(--mg-bg-soft); color: var(--mg-ink); border: 1px solid var(--mg-line);
}
.mg-faq-tab span { font-weight: 500; color: var(--mg-mut); margin-left: 4px; }
.mg-faq-tab:hover { background: var(--mg-primary-tint); }
.mg-faq-tab.on { background: var(--mg-primary); color: #fff; border-color: var(--mg-primary); }
.mg-faq-tab.on span { color: rgba(255,255,255,.75); }
#mg-faqs.searching .mg-faq-tabs { opacity: .45; }
.mg-faq-doc-title { display: none; font-size: 16px; margin: 0 0 10px; }
#mg-faqs.searching .mg-faq-doc-title { display: block; }
#mg-faqs.searching .mg-faq-doc + .mg-faq-doc { margin-top: 26px; }
#mg-contact p { font-size: 14px; margin: 0; }
.mg-faq-group + .mg-faq-group { margin-top: 22px; }
.mg-faq-group h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--mg-mut);
  margin: 0 0 6px; font-weight: 600;
}
.mg-qa { border-bottom: 1px solid var(--mg-line); }
.mg-qa summary {
  cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative;
  font-weight: 600; font-size: 15px; color: var(--mg-head);
}
.mg-qa summary::-webkit-details-marker { display: none; }
.mg-qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 18px; color: var(--mg-mut); }
.mg-qa[open] summary::after { content: "−"; }
.mg-qa summary:hover { color: var(--mg-primary); }
.mg-qa .ans { padding: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--mg-ink); }
.mg-qa .ans p { margin: 0 0 6px; }
.mg-qa .ans ul { margin: 0 0 6px; padding-left: 20px; }
.mg-qa .ans li { margin: 2px 0; }
.mg-faq-empty { color: var(--mg-mut); font-style: italic; font-size: 14px; padding: 12px 0; }
@media (max-width: 640px) { .mg-faq-search { max-width: none; } .mg-panel.mg-faq { padding: 20px 18px; } }

/* Admin → Access: scrollable group picker */
.mg-checklist { max-height: 280px; overflow-y: auto; border: 1px solid var(--mg-line); border-radius: 10px; padding: 6px 0; margin-top: 8px; }
.mg-checklist label { display: flex; align-items: center; gap: 10px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.mg-checklist label:hover { background: rgba(0,0,0,.03); }

/* Admin → Roles & section access */
.mg-rolelist { display: grid; gap: 8px; }
.mg-role { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--mg-line); border-radius: 10px; flex-wrap: wrap; }
.mg-role .actions { margin-left: auto; display: flex; gap: 6px; }
.mg-matrix-wrap { overflow-x: auto; border: 1px solid var(--mg-line); border-radius: 10px; }
.mg-matrix { border-collapse: collapse; width: 100%; font-size: 14px; }
.mg-matrix th, .mg-matrix td { padding: 8px 12px; border-bottom: 1px solid var(--mg-line); text-align: center; white-space: nowrap; }
.mg-matrix th:first-child, .mg-matrix td:first-child { text-align: left; white-space: normal; min-width: 200px; }
.mg-matrix thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mg-mut); font-weight: 600; background: rgba(0,0,0,.02); }
.mg-matrix tr.pillar td { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mg-primary); background: rgba(0,0,0,.02); text-align: left; }
.mg-matrix input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; }
.mg-matrix input[type=checkbox]:disabled { cursor: default; opacity: .35; }
.mg-matrix .only-admins { display: inline-block; margin-left: 6px; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: #f3e3c4; color: #6b4a12; }

/* Admin → section editor: SharePoint folder link */
.mg-sp { border: 1px dashed var(--mg-line); border-radius: 10px; padding: 14px 16px; margin: 4px 0 16px; }
.mg-sp.linked { border-style: solid; background: rgba(6,106,171,.04); }
.mg-sp .mg-row .mg-input { flex: 1; min-width: 220px; }
.mg-sp-err { color: #94413a; font-weight: 600; }
.mg-tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 1px 7px; border-radius: 99px; background: rgba(6,106,171,.1); color: #066AAB; vertical-align: 1px; }
