/* PASSAGE — Google Calendar card (gcal.js). Uses the shared tokens in
   styles.css; mobile-first, nothing here may widen the page at 390px. */

.gc-card { overflow-wrap: anywhere; }
.gc-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.gc-ht { flex: 1 1 auto; min-width: 0; }
.gc-head .pill { flex: 0 0 auto; margin-top: 2px; }
.gc-orb {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(169,130,76,.12); color: var(--gold-deep);
}
.gc-orb svg { width: 22px; height: 22px; }
.gc-title { font-family: var(--disp); font-weight: 700; font-size: 16px; color: var(--ink); }
.gc-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }

.gc-status {
  border: 1px solid var(--stroke-soft); border-radius: var(--r-sm);
  background: var(--bone); padding: 12px 14px; margin-bottom: 14px;
  border-left: 3px solid var(--ink-faint);
}
.gc-status-ok { border-left-color: var(--green-soft); }
.gc-status-warn { border-left-color: var(--gold); background: rgba(169,130,76,.07); }
.gc-s1 { font-weight: 600; font-size: 14px; color: var(--ink); }
.gc-acct { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 4px; }
.gc-s2 { font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
.gc-s2 b { color: var(--ink); font-weight: 600; }
.gc-err { font-size: 12.5px; color: var(--red); margin-top: 6px; }

.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gc-actions .btn { min-height: 36px; }
.gc-danger { color: var(--red); }

.gc-types { border-top: 1px solid var(--stroke-soft); padding-top: 12px; }
.gc-types-h { font-family: var(--disp); font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.gc-grp { margin-bottom: 10px; }
.gc-grp-t { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 6px 0 4px; }
.gc-grp { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 760px) { .gc-grp { grid-template-columns: 1fr 1fr; column-gap: 18px; } .gc-grp-t { grid-column: 1 / -1; } }

.gc-tg { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; }
.gc-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gc-tg-sw {
  flex: 0 0 auto; width: 34px; height: 20px; border-radius: 99px; margin-top: 1px;
  background: var(--bone-2); border: 1px solid var(--stroke); position: relative; transition: background .15s;
}
.gc-tg-sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s;
}
.gc-tg input:checked + .gc-tg-sw { background: var(--green-soft); border-color: var(--green-soft); }
.gc-tg input:checked + .gc-tg-sw::after { transform: translateX(14px); }
.gc-tg input:focus-visible + .gc-tg-sw { outline: 2px solid var(--gold); outline-offset: 2px; }
.gc-tg input:disabled + .gc-tg-sw { opacity: .5; }
.gc-tg-t { font-size: 14px; color: var(--ink); min-width: 0; }
.gc-tg-t small { display: block; font-size: 12px; color: var(--ink-faint); }

.gc-foot { font-size: 12px; color: var(--ink-faint); margin-top: 10px; line-height: 1.5; }

/* dashboard mini-widget */
.gc-w { display: flex; gap: 10px; align-items: flex-start; }
.gc-w-orb { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(169,130,76,.12); color: var(--gold-deep); flex: 0 0 auto; }
.gc-w-orb svg { width: 17px; height: 17px; }
.gc-w-t { font-weight: 600; font-size: 14px; }
.gc-w-e { font-size: 12.5px; color: var(--ink-soft); }
.gc-w-e span { color: var(--ink-faint); margin-right: 4px; }

/* phone: the pill drops under the title instead of squeezing the description */
@media (max-width: 560px) {
  .gc-head { flex-wrap: wrap; }
  .gc-head .pill { order: 3; margin-left: 52px; margin-top: -4px; }
  .gc-ht { flex-basis: calc(100% - 52px); }
}
