/* ==========================================================================
   CGL Ops -- shared shell styling
   Camp Granite Lake ops tools

   Scope note: everything here is namespaced under .cglops / .cglops-bar so it
   cannot collide with the four tool plugins, each of which ships its own
   heavily-scoped CSS (#cglpo-root, #pc-root, #cgl-ms-root, ...). This file
   styles the *frame* around the tools -- dashboard and toolbar -- not their
   interiors.

   Theme-proofing: several camp themes (Flatsome in particular) paint
   -webkit-text-fill-color on body and force font-weight:300, which washes out
   plugin UI. We reset both inside our scope, same trick the tools already use.
   ========================================================================== */

:root {
  --cglops-pine:      #2f6b3a;   /* primary: the green already used in Summer Reports */
  --cglops-pine-dk:   #22512c;
  --cglops-pine-bg:   #eef4ef;
  --cglops-granite:   #33393f;   /* headings / ink */
  --cglops-lake:      #1f6f8b;   /* accent for links */
  --cglops-mut:       #5d6b64;
  --cglops-line:      #d9e0da;
  --cglops-bg:        #f6f8f6;
  --cglops-card:      #ffffff;
  --cglops-warn:      #8a6d1f;
  --cglops-warn-bg:   #fdf6e3;
  --cglops-radius:    12px;
  --cglops-shadow:    0 1px 2px rgba(31,45,35,.05), 0 4px 14px rgba(31,45,35,.06);
  --cglops-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                      "Helvetica Neue", Arial, sans-serif;
}

.cglops,
.cglops *,
.cglops-bar,
.cglops-bar * {
  -webkit-text-fill-color: currentColor !important;
  box-sizing: border-box;
}

.cglops {
  font-family: var(--cglops-font);
  font-weight: 400;
  color: var(--cglops-granite);
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 56px;
  line-height: 1.55;
}

/* ---------- Toolbar shown on every tool page ---------- */

.cglops-bar {
  font-family: var(--cglops-font);
  background: var(--cglops-pine);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.4;
}

.cglops-bar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.cglops-bar a { color: #fff; text-decoration: none; }
.cglops-bar a:hover { text-decoration: underline; }

.cglops-back {
  font-weight: 600;
  padding: 3px 9px 3px 6px;
  border-radius: 7px;
  transition: background .12s ease;
}
.cglops-back:hover { background: rgba(255,255,255,.14); text-decoration: none !important; }
.cglops-back-flat { opacity: .85; }

.cglops-sep     { opacity: .45; }
.cglops-toolname{ font-weight: 600; letter-spacing: .01em; }
.cglops-spacer  { flex: 1 1 auto; }

.cglops-who {
  opacity: .9;
  font-size: 12.5px;
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cglops-out {
  font-size: 12.5px;
  opacity: .9;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 7px;
}
.cglops-out:hover { background: rgba(255,255,255,.14); text-decoration: none !important; }

@media (max-width: 600px) {
  .cglops-who { display: none; }
}

/* ---------- Dashboard ---------- */

.cglops-head { margin-bottom: 22px; }

.cglops-h1 {
  font-family: var(--cglops-font);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--cglops-granite) !important;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.cglops-ver {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--cglops-mut) !important;
  vertical-align: middle;
  margin-left: 10px;
  padding: 2px 9px;
  border: 1px solid var(--cglops-mut);
  border-radius: 20px;
}

.cglops-lede {
  font-size: 15.5px;
  color: var(--cglops-mut) !important;
  margin: 0 0 10px;
  max-width: 62ch;
}

.cglops-meta { font-size: 13px; color: var(--cglops-mut) !important; margin: 0; }
.cglops-meta a { color: var(--cglops-lake); }
.cglops-dot { margin: 0 7px; opacity: .5; }

.cglops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.cglops-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--cglops-card);
  border: 1px solid var(--cglops-line);
  border-radius: var(--cglops-radius);
  padding: 18px 18px 16px;
  text-decoration: none !important;
  color: var(--cglops-granite) !important;
  box-shadow: var(--cglops-shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 168px;
}

a.cglops-card:hover {
  transform: translateY(-2px);
  border-color: var(--cglops-pine);
  box-shadow: 0 2px 4px rgba(31,45,35,.06), 0 10px 26px rgba(31,45,35,.11);
}

a.cglops-card:focus-visible {
  outline: 2px solid var(--cglops-pine);
  outline-offset: 2px;
}

.cglops-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--cglops-pine);
  display: block;
}

/* Inline SVG tile icons -- sized here so the plugin markup stays clean */
.cglops-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.cglops-card-t {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cglops-granite) !important;
}

.cglops-card-d {
  font-size: 13.5px;
  color: var(--cglops-mut) !important;
  flex: 1 1 auto;
}

.cglops-go {
  font-size: 13px;
  font-weight: 600;
  color: var(--cglops-pine) !important;
  margin-top: 8px;
}

/* Unavailable tool: visibly inert, but still explains itself */
.cglops-card-off {
  background: #fbfcfb;
  border-style: dashed;
  box-shadow: none;
}
.cglops-card-off .cglops-icon,
.cglops-card-off .cglops-card-t,
.cglops-card-off .cglops-card-d { opacity: .55; }

.cglops-off {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cglops-warn) !important;
  background: var(--cglops-warn-bg);
  border-radius: 7px;
  padding: 5px 9px;
}

.cglops-admin { margin-top: 26px; font-size: 13px; }
.cglops-admin a { color: var(--cglops-lake); }

/* ---------- Sign-in gate ---------- */

.cglops-gate {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.cglops-gate-card {
  background: var(--cglops-card);
  border: 1px solid var(--cglops-line);
  border-radius: 16px;
  box-shadow: var(--cglops-shadow);
  padding: 34px 32px 30px;
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.cglops-gate-card .cglops-h1 { font-size: 25px; }
.cglops-gate-card .cglops-lede { margin: 0 auto 18px; font-size: 14.5px; }

.cglops-btn {
  display: inline-block;
  background: var(--cglops-pine);
  color: #fff !important;
  border: 1px solid var(--cglops-pine);
  border-radius: 9px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .12s ease;
}
.cglops-btn:hover { background: var(--cglops-pine-dk); border-color: var(--cglops-pine-dk); }

.cglops-btn-quiet {
  background: #fff;
  color: var(--cglops-granite) !important;
  border-color: var(--cglops-line);
}
.cglops-btn-quiet:hover { background: var(--cglops-pine-bg); border-color: var(--cglops-pine); }

.cglops-google { margin: 4px 0 2px; }
.cglops-google a,
.cglops-google .wp_google_login__button {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 10px 18px !important;
  border: 1px solid var(--cglops-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--cglops-granite) !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(31,45,35,.06);
}
.cglops-google a:hover { background: var(--cglops-pine-bg) !important; }

.cglops-or {
  position: relative;
  color: var(--cglops-mut) !important;
  font-size: 12.5px;
  margin: 16px 0 14px;
}
.cglops-or::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--cglops-line);
}
.cglops-or span {
  position: relative;
  background: var(--cglops-card);
  padding: 0 12px;
}

.cglops-fine {
  font-size: 12.5px;
  color: var(--cglops-mut) !important;
  margin: 12px 0 0;
}

/* ---------- Print: the toolbar is screen furniture ---------- */
@media print {
  .cglops-bar { display: none !important; }
}
