/* Global & theme */
#agdo-root, #agdo-root * {
  font-family: "Segoe UI", SegoeUI, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}
/* The accent override is fed as the --agendo-accent custom property via an
   inline style (see wp_add_inline_style in agendo.php). CSS attr() with a typed
   value is not supported by browsers, so the old attr(data-accent color) rule
   was removed. When --agendo-accent is unset the theme/default chain applies. */
#agdo-root, #agdoEventModal { --agdo-accent: var(--agendo-accent, var(--wp--preset--color--primary, var(--global-palette1, var(--theme-primary, var(--accent-color, #34557a))))); }

/* Toolbar */
.agdo-toolbar { gap:.75rem; flex-wrap:wrap; }

/* FullCalendar tweaks */
.agdo-wrap .fc .fc-toolbar-title { color: var(--agdo-accent); }
.agdo-wrap .fc .fc-button { border-color: var(--agdo-accent); color: var(--agdo-accent); background: transparent; }
.agdo-wrap .fc .fc-button:hover { background: color-mix(in srgb, var(--agdo-accent) 12%, transparent); }
.agdo-wrap .fc .fc-prev-button .fc-icon::before { content:'\2039'; font-size:1.05rem; }
.agdo-wrap .fc .fc-next-button .fc-icon::before { content:'\203A'; font-size:1.05rem; }

/* Map container: keep rounding but don't clip markers */
#agdo-map {
  width: 100%;
  height: 520px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  overflow: visible !important;
  position: relative;
}

/* Posterboard */
.agdo-poster-card {
  display: flex; flex-direction: column; border: 1px solid #e7e7e7;
  border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); background:#fff; height:100%;
}
.agdo-poster-body { display:flex; flex-direction:column; gap:.25rem; padding:14px 16px; min-height:170px; }
.agdo-title { line-height:1.2; }
.agdo-muted { color:#666; font-size:.9rem; }
.agdo-ellipsis-3 { -webkit-line-clamp:3; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.agdo-actions { margin-top:auto; }

/* Date badge */
.agdo-date-badge {
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  flex:0 0 64px; width:64px; height:64px; min-width:64px;
  border-radius:10px;background:var(--agdo-accent);color:#fff;font-weight:700;line-height:1
}
.agdo-date-month { font-size:.75rem; text-transform:uppercase }
.agdo-date-day { font-size:1.25rem }

/* Tile */
.agdo-tile-col { display:flex; }
.agdo-tile-card { display:flex; flex-direction:row; align-items:stretch; gap:14px; border:1px solid #e9e9e9; border-radius:12px; padding:12px; background:#fff; width:100%; height:100%; }
.agdo-tile-imgwrap { flex:0 0 160px; width:160px; }
.agdo-tile-img { width:100%; height:160px; object-fit:contain; border-radius:8px; background:#f4f4f4; display:block; }
.agdo-tile-body { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.agdo-tile-title { font-weight:600; line-height:1.2; margin-bottom:.2rem; }

/* Stream timeline (no dot overlap) */
.agdo-stream { position:relative; padding-left:48px; }
.agdo-stream::before { content:""; position:absolute; left:24px; top:0; bottom:0; width:4px; background:#e7e7e7; border-radius:2px; }
.agdo-stream-item { position:relative; margin-bottom:16px; }
.agdo-stream-item .agdo-dot { position:absolute; left:20px; top:10px; width:12px; height:12px; background:var(--agdo-accent); border-radius:50%; }
.agdo-stream-content { margin-left:8px; }

/* Admin settings styling */
.agdo-wrap *{box-sizing:border-box}
.agdo-hero{padding:16px 18px;margin:20px 0;border:1px solid #e7eef7;border-radius:12px;background:#f9fbff}
.agdo-hero h1{margin:0 0 8px 0}
.agdo-tabs{display:flex;gap:6px;margin:16px 0 12px}
.agdo-tab{border:1px solid #e6e6e6;padding:8px 12px;border-radius:10px;background:#fff;cursor:pointer}
.agdo-tab.active{border-color:var(--agdo-accent); color:#fff; background:var(--agdo-accent)}
.agdo-section{display:none}
.agdo-section.active{display:block}
.agdo-grid{display:grid;gap:14px;grid-template-columns:1fr}
@media (min-width:900px){ .agdo-grid{grid-template-columns:1fr 1fr} }
.agdo-card{border:1px solid #e9e9ee;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.03)}
.agdo-card-h{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid #f0f0f3}
.agdo-card-h h3{margin:0;font-size:15px}
.agdo-card-b{padding:14px}
.agdo-field{margin:0 0 12px}
.agdo-label{display:block;font-weight:600;margin-bottom:6px}
.agdo-input{width:100%}
.agdo-help{color:#666;margin:6px 0 0}
.agdo-badge{background:#eef5ff;color:#0b5ed7;border:1px solid #d6e6ff;border-radius:999px;padding:3px 8px;font-size:12px}

/* ---------------------------------------------------------------------------
   Agenda view: date chip + collapsible cards. Every element is painted with
   controlled tokens (one accent + neutral ink), so it never inherits the
   theme's heading/link colour and never falls back to Bootstrap blue. The
   accent follows --agdo-accent (your theme's accent variable if present, the
   Agendo accent setting, else a refined default).
   ------------------------------------------------------------------------- */
.agdo-ag{ --ag-ink:#1f2937; --ag-mut:#6b7280; --ag-line:#e5e7eb; --ag-soft:#f6f7f9; color:var(--ag-ink); }
.agdo-ag *{ box-sizing:border-box; }
.agdo-ag-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.agdo-ag-range{ font-weight:700; font-size:15px; letter-spacing:.03em; text-transform:uppercase; color:var(--ag-ink); }
.agdo-ag-tools{ display:flex; gap:8px; }
.agdo-ag-btn{ appearance:none; cursor:pointer; font:inherit; font-size:12.5px; font-weight:600; color:var(--agdo-accent); background:#fff; border:1px solid var(--ag-line); border-radius:8px; padding:6px 11px; }
.agdo-ag-btn:hover{ border-color:var(--agdo-accent); }
.agdo-ag-group{ display:grid; grid-template-columns:64px 1fr; gap:12px; margin:0 0 10px; }
.agdo-ag-date{ display:flex; flex-direction:column; align-items:center; align-self:start; width:64px; border:1px solid var(--ag-line); border-radius:10px; overflow:hidden; background:#fff; }
.agdo-ag-date .m{ width:100%; text-align:center; background:var(--agdo-accent); color:#fff; font-size:11px; font-weight:700; letter-spacing:.08em; padding:3px 0; }
.agdo-ag-date .d{ font-size:22px; font-weight:800; line-height:1.1; color:var(--ag-ink); padding-top:4px; }
.agdo-ag-date .w{ font-size:11px; color:var(--ag-mut); padding-bottom:5px; }
.agdo-ag-cards{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.agdo-ag-card{ border:1px solid var(--ag-line); border-radius:10px; background:#fff; padding:12px 14px; }
.agdo-ag-h{ display:flex; align-items:flex-start; gap:10px; }
.agdo-ag-title{ appearance:none; background:none; border:0; padding:0; margin:0; text-align:left; cursor:pointer; font:inherit; font-size:16px; font-weight:700; line-height:1.3; color:var(--agdo-accent); flex:1 1 auto; min-width:0; }
.agdo-ag-title:hover{ text-decoration:underline; }
.agdo-ag-at{ font-weight:600; color:var(--ag-ink); }
.agdo-ag-toggle{ appearance:none; flex:0 0 auto; width:24px; height:24px; border-radius:50%; border:1px solid var(--ag-line); background:#fff; color:var(--ag-mut); cursor:pointer; position:relative; }
.agdo-ag-toggle::before,.agdo-ag-toggle::after{ content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); background:currentColor; }
.agdo-ag-toggle::before{ width:10px; height:2px; }
.agdo-ag-toggle::after{ width:2px; height:10px; transition:transform .15s; }
.agdo-ag-toggle[aria-expanded="true"]{ color:#fff; background:var(--agdo-accent); border-color:var(--agdo-accent); }
.agdo-ag-toggle[aria-expanded="true"]::after{ transform:translate(-50%,-50%) scaleY(0); }
.agdo-ag-meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:3px; font-size:13px; color:var(--ag-mut); }
.agdo-ag-pill{ font-size:11px; font-weight:600; color:var(--ag-mut); background:var(--ag-soft); border:1px solid var(--ag-line); border-radius:999px; padding:1px 8px; }
.agdo-ag-body{ margin-top:10px; padding-top:10px; border-top:1px solid var(--ag-line); }
.agdo-ag-desc{ font-size:14px; line-height:1.55; color:var(--ag-ink); }
.agdo-ag-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:10px; }
.agdo-ag-cats{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--ag-mut); }
.agdo-ag-cat{ color:var(--agdo-accent); border:1px solid var(--ag-line); border-radius:999px; padding:1px 8px; text-transform:none; letter-spacing:0; font-weight:600; }
.agdo-ag-more{ appearance:none; cursor:pointer; font:inherit; font-size:13px; font-weight:600; color:var(--agdo-accent); background:none; border:0; padding:0; white-space:nowrap; }
.agdo-ag-more:hover{ text-decoration:underline; }
@media(max-width:480px){ .agdo-ag-group{ grid-template-columns:52px 1fr; gap:9px; } .agdo-ag-date{ width:52px; } }
/* Keep the shared toolbar chrome neutral too (no theme heading/link colour). */
#agdo-root .agdo-toolbar label,
#agdo-root .agdo-toolbar .form-check-label{ color:#1f2937; }
.agdo-row{display:flex;gap:12px;flex-wrap:wrap}
.agdo-row > *{flex:1}
.agdo-note{background:#fff9e6;border:1px solid #ffe4a3;padding:10px;border-radius:8px}
.agdo-good{background:#e6fff2;border:1px solid #a7f0c4;padding:8px;border-radius:8px;display:inline-flex;align-items:center;gap:8px}
.agdo-bad{background:#ffeaea;border:1px solid #ffc7c7;padding:8px;border-radius:8px;display:inline-flex;align-items:center;gap:8px}

/* --- Stream view fix: anchor dot to row and keep it off text --- */
.agdo-stream .agdo-item { position: relative; padding-left: 40px; margin-bottom: 18px; }
.agdo-stream .agdo-dot  { left: 8px; top: 10px; }


/* --- Calendar event cursor fix: use pointer on clickable entries --- */
.fc .fc-daygrid-event,
.fc .fc-timegrid-event,
.fc .fc-event,
.fc .fc-daygrid-dot-event {
  cursor: pointer;
  user-select: none;
}

/* --- Map infowindow UI (optional polish) --- */
.agdo-map-infowin .agdo-i-title { font-weight:700; margin-bottom:4px; }
.agdo-map-infowin .agdo-i-when  { font-size:.9rem; margin-bottom:4px; color:#555; }
.agdo-map-infowin .agdo-i-where { font-size:.9rem; margin-bottom:4px; }
.agdo-map-infowin .agdo-i-desc  { margin-top:4px; font-size:.95rem; }
.agdo-map-infowin .agdo-btn     { border:1px solid #cfd5e2; padding:4px 8px; border-radius:6px; background:#fff; text-decoration:none; }
.agdo-map-infowin .agdo-btn:hover { background:#f6f7fb; }
.agdo-map-infowin .agdo-btn-sm  { font-size:.875rem; }

/* --- Uniform attachment image sizing across views --- */
/* Any explicit image block we render */
.agdo-img,
.agdo-card .agdo-img,
.agdo-list .agdo-img,
.agdo-accordion .agdo-img,
.agdo-stream .agdo-img,
.agdo-posterboard .agdo-img,
.agdo-tile .agdo-img,
.agdo-modal .agdo-img,
.agdo-map-infowin .agdo-i-img img {
  display: block;
  width: 100%;
  height: 160px;           /* unified height target (matches Tile look) */
  object-fit: contain;     /* show the whole graphic, never cropped */
  background: #f4f4f4;
  border-radius: 8px;
}

/* If an image appears inside descriptions, keep it from breaking layout */
.agdo-card .desc img,
.agdo-list .agdo-list-desc img,
.agdo-modal .agdo-ev-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Grid cards and tiles keep consistent spacing regardless of image presence */
.agdo-card .body,
.agdo-card-body {
  padding-top: 12px;
}

/* === Stronger settings tab styles (high specificity, with fallbacks) === */
#agdo-root .agdo-tabs .agdo-tab {
  font-weight: 600;
  border: 1px solid #d7dbe5;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
}

#agdo-root .agdo-tabs .agdo-tab:hover {
  border-color: var(--agdo-accent, #0d6efd);
  background: color-mix(in srgb, var(--agdo-accent, #0d6efd) 10%, #ffffff);
}

#agdo-root .agdo-tabs .agdo-tab:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--agdo-accent, #0d6efd) 40%, transparent);
  outline-offset: 2px;
}

/* Make the selected tab *very* visible */
#agdo-root .agdo-tabs .agdo-tab.active {
  background: color-mix(in srgb, var(--agdo-accent, #0d6efd) 92%, #000) !important;
  border-color: color-mix(in srgb, var(--agdo-accent, #0d6efd) 85%, #000) !important;
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.08);
}

/* Fallback if color-mix() is not supported */
@supports not (background: color-mix(in srgb, red 50%, white)) {
  #agdo-root .agdo-tabs .agdo-tab:hover {
    border-color: var(--agdo-accent, #0d6efd) !important;
    background: #eef4ff !important;
  }
  #agdo-root .agdo-tabs .agdo-tab.active {
    background: var(--agdo-accent, #0d6efd) !important;
    border-color: var(--agdo-accent, #0d6efd) !important;
    color: #fff !important;
  }
}

/* If your screen used WP native 'nav-tab' classes instead, cover those too */
#agdo-root .nav-tab-active,
#agdo-root .nav-tab:focus,
#agdo-root .nav-tab:hover {
  border-color: var(--agdo-accent, #0d6efd) !important;
}
#agdo-root .nav-tab-active {
  background: var(--agdo-accent, #0d6efd) !important;
  color: #fff !important;
}

/* === Map overflow fix (append-only) === */
#agdo-map {
  overflow: hidden !important; /* clip Google canvas to the rounded border */
  max-width: 100%;
  display: block;
}

/* === Stream dot alignment fix (append-only) === */
.agdo-stream { position: relative; padding-left: 48px !important; }
.agdo-stream::before { left: 24px !important; }

/* Support both markup variants: .agdo-stream-item and .agdo-item */
.agdo-stream .agdo-stream-item,
.agdo-stream .agdo-item {
  position: relative;
  padding-left: 48px !important; /* give room for dot and rail */
}

/* Keep the dot on the rail, away from text */
.agdo-stream .agdo-stream-item .agdo-dot,
.agdo-stream .agdo-item .agdo-dot {
  position: absolute !important;
  left: 16px !important;     /* aligns with the rail */
  top: 0.6rem !important;    /* centers near the first line */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--agdo-accent, #0d6efd);
  pointer-events: none;
  z-index: 1;
}

/* Ensure content doesn't shift or overlap */
.agdo-stream .agdo-stream-content { margin-left: 0 !important; }

/* ============================================================
   Agendo admin - NETTAP shared design system (navy + mint)
   Scoped to .agdo-wrap so the calendar views are untouched.
   ============================================================ */
.agdo-wrap{--nv:#0b1929;--nv2:#1f2a3a;--mint:#E8972B;--mint2:#FFB547;--ink:#0b1929;--mut:#6b7785;--line:#e5e9ee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);max-width:1180px}
.agdo-wrap h1,.agdo-wrap h3{color:var(--nv)}
.agdo-wrap .agdo-hero{display:block;background:linear-gradient(135deg,#0b1929 0%,#1f2a3a 100%);border:0;color:#fff;padding:18px 22px;margin:16px 0 20px;border-radius:12px;box-shadow:0 10px 24px rgba(11,25,41,.08)}
.agdo-wrap .agdo-hero .agdo-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px;letter-spacing:.5px;text-transform:uppercase;color:#fff}
.agdo-wrap .agdo-hero .agdo-brand-dot{width:10px;height:10px;border-radius:50%;background:var(--mint2);box-shadow:0 0 12px var(--mint2)}
.agdo-wrap .agdo-hero h1{margin:6px 0 0;color:#fff;font-size:22px;font-weight:600}
.agdo-wrap .agdo-hero p{margin:4px 0 0;color:#c5cdd6;font-size:13px}
.agdo-wrap .agdo-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px}
.agdo-wrap .agdo-tab{border:1px solid var(--line);background:#fff;color:#344152;border-radius:999px;padding:6px 14px;font-weight:600;font-size:13px;cursor:pointer}
.agdo-wrap .agdo-tab:hover{border-color:var(--mut);color:var(--nv)}
.agdo-wrap .agdo-tab.active{background:var(--nv);color:var(--mint2);border-color:var(--nv)}
.agdo-wrap .agdo-card{border:0;border-radius:12px;background:#fff;box-shadow:0 1px 3px rgba(11,25,41,.06)}
.agdo-wrap .agdo-card-h{border-bottom:1px solid #f0f2f4;padding:14px 18px}
.agdo-wrap .agdo-card-h h3{font-size:15px;font-weight:700;color:var(--nv)}
.agdo-wrap .agdo-card-b{padding:16px 18px}
.agdo-wrap .agdo-label{font-weight:600;color:var(--nv);font-size:13.5px}
.agdo-wrap .agdo-input,.agdo-wrap input[type=text],.agdo-wrap input[type=number],.agdo-wrap input[type=password],.agdo-wrap select{border:1px solid var(--line);border-radius:8px;padding:9px 12px;font-size:14px;background:#fff}
.agdo-wrap .agdo-input:focus,.agdo-wrap input:focus,.agdo-wrap select:focus{border-color:#4ec3e0;outline:none;box-shadow:0 0 0 3px rgba(78,195,224,.18)}
.agdo-wrap .agdo-help{color:var(--mut);font-size:12.5px}
.agdo-wrap .agdo-badge{background:#FFF6E6;color:#015825;border:1px solid #b9f5d8;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
.agdo-wrap .agdo-good{background:#FFF6E6;border:1px solid #b9f5d8;color:#015825;border-radius:8px}
.agdo-wrap .agdo-bad{background:#ffeceb;border:1px solid #f5c2c0;color:#8c1d22;border-radius:8px}
.agdo-wrap .button-primary{background:var(--mint);border-color:var(--mint);color:#04241a;text-shadow:none;box-shadow:0 1px 0 var(--mint);font-weight:700}
.agdo-wrap .button-primary:hover{background:#00b06a;color:#04241a;border-color:#00b06a}

/* ================= Settings redesign (1.2.0) - scoped .agdo-set2 ================= */
.agdo-set2{ --s2-navy:#001726; --s2-navy2:#0b1929; --s2-mint:#E8972B; --s2-mint2:#FFB547; --s2-mint-100:#FFF6E6;
  --s2-cyan-100:#e6f6fb; --s2-ink:#0b1929; --s2-ink2:#344152; --s2-ink3:#566270; --s2-ink4:#9aa3ad;
  --s2-line:#e5e9ee; --s2-line2:#f0f2f4; --s2-bg:#f6f8fa; --s2-card:#fff; --s2-radius:14px; --s2-radius-sm:9px;
  --s2-ui:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --s2-serif:"Instrument Serif",Georgia,serif; --s2-mono:"Geist Mono",ui-monospace,Menlo,monospace;
  font-family:var(--s2-ui); }
.agdo-set2 *{ box-sizing:border-box; }

/* Hero */
.agdo-set2 .agdo-hero{ display:flex; align-items:flex-start; gap:20px; padding:20px 28px; margin:16px 0 0;
  border:0; border-radius:var(--s2-radius); background:linear-gradient(135deg,var(--s2-navy),var(--s2-navy2) 60%,#08283a);
  color:#eaf3f7; box-shadow:0 6px 24px rgba(11,25,41,.12); }
.agdo-set2 .agdo-hero-main{ flex:1; min-width:0; }
.agdo-set2 .agdo-hero .agdo-brand{ font-family:var(--s2-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#FFD58A; display:flex; align-items:center; gap:8px; }
.agdo-set2 .agdo-hero .agdo-brand-dot{ width:8px; height:8px; border-radius:50%; background:var(--s2-mint2); box-shadow:0 0 0 4px rgba(255,181,71,.18); }
.agdo-set2 .agdo-hero h1{ font-family:var(--s2-serif); font-weight:400; font-size:38px; line-height:1.02; letter-spacing:.3px; margin:8px 0 4px; color:#fff; }
.agdo-set2 .agdo-hero p{ margin:0; color:#a9c6d3; max-width:52ch; }
.agdo-set2-search{ display:flex; align-items:center; gap:8px; width:250px; max-width:100%; align-self:center;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.20); border-radius:999px; padding:9px 14px; color:#dcedf4; }
.agdo-set2-search svg{ flex:none; opacity:.75; }
.agdo-set2-search input{ background:transparent; border:0; outline:none; color:#fff; font-size:13.5px; width:100%; }
.agdo-set2-search input::placeholder{ color:#93b6c6; }

/* Layout: rail + content */
.agdo-set2 .agdo-set2-layout{ display:grid; grid-template-columns:236px 1fr; gap:20px; align-items:start; margin-top:20px; }
.agdo-set2 .agdo-tabs{ display:flex; flex-direction:column; gap:2px; margin:0; padding:8px; position:sticky; top:52px;
  background:var(--s2-card); border:1px solid var(--s2-line); border-radius:var(--s2-radius); box-shadow:0 1px 3px rgba(11,25,41,.06); }
.agdo-set2-railh{ font-family:var(--s2-mono); font-size:10px; letter-spacing:.11em; text-transform:uppercase; color:var(--s2-ink4); padding:8px 12px 6px; }
.agdo-set2 .agdo-tab{ display:flex; align-items:center; gap:11px; width:100%; text-align:left; border:0; background:transparent;
  color:var(--s2-ink2); font-family:var(--s2-ui); font-size:13.5px; font-weight:500; padding:9px 12px; border-radius:10px; cursor:pointer; position:relative; }
.agdo-set2 .agdo-tab svg{ flex:none; color:var(--s2-ink3); }
.agdo-set2 .agdo-tab span{ flex:1; }
.agdo-set2 .agdo-tab:hover{ background:var(--s2-line2); color:var(--s2-ink); }
.agdo-set2 .agdo-tab.active{ background:var(--s2-mint-100); color:var(--s2-ink); font-weight:600; }
.agdo-set2 .agdo-tab.active svg{ color:var(--s2-mint); }
.agdo-set2 .agdo-tab.active::before{ content:""; position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:0 3px 3px 0; background:var(--s2-mint); }

/* Sections + card grid */
.agdo-set2 .agdo-section{ display:none; }
.agdo-set2 .agdo-section.active{ display:block; }
.agdo-set2 .agdo-grid{ display:block; }
.agdo-set2 .agdo-card{ border:1px solid var(--s2-line); border-radius:var(--s2-radius); background:var(--s2-card);
  box-shadow:0 1px 3px rgba(11,25,41,.06); margin-bottom:16px; overflow:hidden; }
.agdo-set2 .agdo-card-h{ padding:14px 18px; border-bottom:1px solid var(--s2-line2); }
.agdo-set2 .agdo-card-h h3{ font-size:14.5px; font-weight:600; color:var(--s2-ink); }
.agdo-set2 .agdo-badge{ background:var(--s2-cyan-100); color:#0a6a86; font-family:var(--s2-mono); font-size:10.5px; font-weight:500; padding:3px 9px; border-radius:999px; }
.agdo-set2 .agdo-card-b{ padding:4px 18px 10px; }

/* Two-column rows (leaf fields only; nested rows stay stacked) */
.agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)){
  display:grid; grid-template-columns:minmax(190px,290px) minmax(0,1fr); gap:2px 26px; align-items:start; margin:0; padding:13px 0; border-top:1px solid var(--s2-line2); }
.agdo-set2 .agdo-card-b > .agdo-field:first-child{ border-top:0; }
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-label,
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > label{ grid-column:1; grid-row:1; margin:0; font-weight:600; font-size:13.5px; color:var(--s2-ink); }
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-help,
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .description{ grid-column:1; margin:3px 0 0; font-size:12.5px; color:var(--s2-ink3); }
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > input,
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > select,
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > textarea,
.agdo-set2 .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-input{ grid-column:2; grid-row:1 / span 5; align-self:start; margin:0; }
/* Status + action rows (e.g. OAuth connected/disconnected + button) stay a compact
   inline row with an auto-width button, not stretched grid cells. */
.agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)):has(> .agdo-good),
.agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)):has(> .agdo-bad){ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.agdo-set2 .agdo-card-b .agdo-field:has(> .agdo-good) > .agdo-good,
.agdo-set2 .agdo-card-b .agdo-field:has(> .agdo-bad) > .agdo-bad{ margin:0; }
.agdo-set2 .agdo-card-b .agdo-field:has(> .agdo-good) > a.button,
.agdo-set2 .agdo-card-b .agdo-field:has(> .agdo-bad) > a.button{ margin:0 !important; width:auto; flex:0 0 auto; justify-self:start; }

/* Checkbox toggle fields: let the checkbox label use the full width (both grid
   columns) instead of being squeezed into the narrow label column. */
.agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)):has(> label > input[type="checkbox"]) > label{ grid-column:1 / -1; grid-row:auto; font-weight:400; }

/* Fields inside a side-by-side .agdo-row stack their label over the control, so a
   small control (e.g. Marker size) sits directly under its label instead of being
   pushed across the wide two-column grid. */
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)){ display:block; padding:0; border-top:0; }
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-label{ grid-column:auto; grid-row:auto; margin:0 0 6px; }
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > input,
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > select,
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-input{ grid-column:auto; grid-row:auto; margin:0; }
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > select,
.agdo-set2 .agdo-card-b .agdo-row > .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-input{ width:100%; max-width:none; }

/* Inputs */
.agdo-set2 .agdo-card-b input[type=text],.agdo-set2 .agdo-card-b input[type=email],.agdo-set2 .agdo-card-b input[type=url],
.agdo-set2 .agdo-card-b input[type=number],.agdo-set2 .agdo-card-b input[type=password],.agdo-set2 .agdo-card-b select,.agdo-set2 .agdo-card-b textarea{
  background:var(--s2-bg); border:1px solid var(--s2-line); border-radius:var(--s2-radius-sm); padding:9px 11px; color:var(--s2-ink); font-size:13.5px; font-family:var(--s2-ui); box-shadow:none; }
.agdo-set2 .agdo-card-b input:focus,.agdo-set2 .agdo-card-b select:focus,.agdo-set2 .agdo-card-b textarea:focus{ border-color:var(--s2-mint); box-shadow:0 0 0 3px rgba(232,151,43,.22); outline:none; }
.agdo-set2 .agdo-card-b .regular-text{ max-width:100%; }

/* Save bar */
.agdo-set2 .agdo-set2-savebar{ position:sticky; bottom:0; z-index:20; margin-top:16px; display:flex; align-items:center; gap:14px;
  background:var(--s2-card); border:1px solid var(--s2-line); border-radius:999px; padding:9px 12px 9px 18px; box-shadow:0 6px 24px rgba(11,25,41,.12); }
.agdo-set2 .agdo-set2-savestatus{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--s2-ink3); margin-right:auto; }
.agdo-set2 .agdo-set2-tick{ color:var(--s2-mint); font-weight:700; }
.agdo-set2 .agdo-set2-savebar.is-dirty{ border-color:var(--s2-mint); }
.agdo-set2 .agdo-set2-savebar.is-dirty .agdo-set2-savestatus{ color:var(--s2-ink); font-weight:600; }
.agdo-set2 .agdo-set2-savebar .agdo-set2-savebtn{ background:var(--s2-mint) !important; border-color:var(--s2-mint) !important; color:#04231a !important; }
.agdo-set2 .agdo-set2-savebar .agdo-set2-savebtn:hover{ background:var(--s2-mint2) !important; }
.agdo-set2 .agdo-set2-savebar .submit{ margin:0; padding:0; }

@media (max-width:880px){
  .agdo-set2 .agdo-set2-layout{ grid-template-columns:1fr; }
  .agdo-set2 .agdo-tabs{ flex-direction:row; flex-wrap:wrap; position:static; }
  .agdo-set2 .agdo-hero{ flex-direction:column; }
  .agdo-set2-search{ width:100%; }
}
@media (max-width:560px){
  .agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)){ grid-template-columns:1fr; }
}

/* ===== Review polish (1.2.3): field-width cap + secret/read-only rows ===== */
.agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > input{ max-width:680px; }
.agdo-set2 .agdo-card-b .agdo-field:not(:has(.agdo-field)):not(:has(.agdo-row)) > .agdo-set2-secret{ grid-column:2; grid-row:1 / span 5; align-self:start; margin:0; }
.agdo-set2 .agdo-set2-secret{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; width:100%; }
.agdo-set2 .agdo-set2-secret input{ flex:1 1 auto; min-width:0; max-width:520px; }
.agdo-set2 .agdo-set2-secret .button{ flex:none; }
.agdo-set2 .agdo-set2-secret input[readonly]{ background:var(--s2-line2,#f0f2f4); color:var(--s2-ink2,#344152); }

/* =========================================================
   Agendo 1.3.0 - new views, toolbar, split, next-event, FC v6
   ========================================================= */

/* Toolbar layout (search + range + toggles wrap cleanly) */
.agdo-toolbar{ display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; margin-bottom:16px; }
.agdo-tb-group{ display:flex; align-items:center; gap:8px; }
.agdo-tb-search{ flex:1 1 220px; min-width:160px; max-width:360px; }
.agdo-tb-search input{ width:100%; }
.agdo-view-select{ max-width:220px; }
.agdo-range-select{ max-width:170px; }
.agdo-tz-toggle .form-check-label{ white-space:nowrap; }

/* FullCalendar v6 accent theming (drives Month/Week/Day/Year) */
.agdo-wrap .fc{
  --fc-button-bg-color:transparent;
  --fc-button-border-color:var(--agdo-accent);
  --fc-button-text-color:var(--agdo-accent);
  --fc-button-hover-bg-color:color-mix(in srgb, var(--agdo-accent) 12%, transparent);
  --fc-button-hover-border-color:var(--agdo-accent);
  --fc-button-active-bg-color:var(--agdo-accent);
  --fc-button-active-border-color:var(--agdo-accent);
  --fc-today-bg-color:color-mix(in srgb, var(--agdo-accent) 10%, transparent);
  --fc-now-indicator-color:var(--agdo-accent);
  --fc-event-bg-color:var(--agdo-accent);
  --fc-event-border-color:var(--agdo-accent);
  --fc-page-bg-color:#fff;
}
.agdo-wrap .fc .fc-toolbar-title{ color:var(--agdo-accent); }
.agdo-wrap .fc .fc-button-primary:not(:disabled).fc-button-active,
.agdo-wrap .fc .fc-button-primary:not(:disabled):active{ color:#fff; }
.agdo-wrap .fc a{ color:inherit; text-decoration:none; }

/* Month + Agenda split view */
.agdo-split{ display:grid; grid-template-columns:1fr 330px; gap:18px; align-items:start; }
@media (max-width:820px){ .agdo-split{ grid-template-columns:1fr; } }
.agdo-split-panel{ border:1px solid #e7e7e7; border-radius:12px; padding:14px 16px; background:#fff; min-height:120px; }
.agdo-split-date{ font-weight:700; margin-bottom:10px; color:var(--agdo-accent); }
.agdo-split-empty{ color:#6b7280; font-size:14px; }
.agdo-split-ev{ display:block; width:100%; text-align:left; border:0; border-top:1px solid #eef0f3; background:transparent; padding:10px 0; cursor:pointer; }
.agdo-split-ev:first-of-type{ border-top:0; }
.agdo-split-ev:hover .agdo-split-title{ color:var(--agdo-accent); }
.agdo-split-time{ display:block; font-size:12px; font-weight:700; color:var(--agdo-accent); }
.agdo-split-title{ display:block; font-weight:600; }
.agdo-split-loc{ display:block; font-size:12.5px; color:#6b7280; }

/* Next-event banner */
.agdo-next{ display:flex; align-items:center; gap:8px; border-radius:10px; padding:8px 14px; margin-bottom:14px; font-size:14px;
  background:color-mix(in srgb, var(--agdo-accent) 8%, #fff); border:1px solid color-mix(in srgb, var(--agdo-accent) 28%, #fff); color:#243b53; }
.agdo-next-dot{ width:9px; height:9px; border-radius:50%; background:var(--agdo-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--agdo-accent) 22%, transparent); }
.agdo-next-when{ color:var(--agdo-accent); font-weight:600; }

/* Fallback if color-mix() is unsupported */
@supports not (background: color-mix(in srgb, red 50%, white)){
  .agdo-wrap .fc{ --fc-button-hover-bg-color:#eef4ff; --fc-today-bg-color:#eef4ff; }
  .agdo-next{ background:#eef4ff; border-color:#cfe0ff; }
}


/* =========================================================
   Agendo 1.3.1 - front-end design polish
   Cohesive palette that overrides theme colour bleed (pink titles/links),
   even card heights, fixed date badges, and a cleaner modal.
   ========================================================= */

/* Titles read as dark ink everywhere, not the theme's link colour */
#agdo-root .agdo-title,
#agdo-root .agdo-poster-card h5,
#agdo-root .agdo-tile-title,
#agdo-root .list-group-item h6,
#agdo-root .agdo-stream-content .fw-semibold,
#agdo-root .accordion-body .fw-semibold,
#agdo-root .agenda .fw-semibold,
#agdoEventModal .modal-title{ color:#1a2230 !important; font-weight:700; }

/* Links (locations, etc.) use the accent, consistently */
#agdo-root .agdo-muted a,
#agdo-root .list-group-item a,
#agdo-root .agdo-stream-content a,
#agdo-root .accordion-body a,
#agdo-root .agdo-poster-body a,
#agdo-root .agdo-tile-body a,
#agdoEventModal .modal-body a{ color:var(--agdo-accent) !important; text-decoration:none; }
#agdo-root .agdo-muted a:hover,
#agdo-root .list-group-item a:hover,
#agdoEventModal .modal-body a:hover{ text-decoration:underline; }

/* Posterboard: badge aligns to the top of the text block and never shrinks */
#agdo-root .agdo-poster-body .d-flex{ align-items:flex-start; }
#agdo-root .agdo-date-badge{ flex:0 0 64px !important; }

/* Even card heights: clamp posterboard titles to two lines */
#agdo-root .agdo-poster-card .agdo-title{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:2px;
}

/* Buttons: consistent accent outline, not theme-styled */
#agdo-root .agdo-actions .btn-outline-primary{
  color:var(--agdo-accent) !important; border-color:var(--agdo-accent) !important; background:transparent !important;
}
#agdo-root .agdo-actions .btn-outline-primary:hover{
  color:#fff !important; background:var(--agdo-accent) !important;
}

/* Nicer empty-image placeholder (no bare grey box) */
#agdo-root .agdo-poster-noimg,
#agdo-root .agdo-tile-img:empty{
  background:linear-gradient(135deg, color-mix(in srgb, var(--agdo-accent) 16%, #fff), color-mix(in srgb, var(--agdo-accent) 4%, #fff)) !important;
  position:relative;
}
#agdo-root .agdo-poster-noimg::after,
#agdo-root .agdo-tile-img:empty::after{
  content:"\1F5D3"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:34px; opacity:.28;
}
@supports not (background: color-mix(in srgb, red 50%, white)){
  #agdo-root .agdo-poster-noimg, #agdo-root .agdo-tile-img:empty{ background:#f2f5fb !important; }
}

/* Modal: tidy typography and cap the image height (event logos were huge) */
#agdoEventModal .modal-content{ border:0; border-radius:14px; overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.28); }
#agdoEventModal .modal-header{ border-bottom:1px solid #eef0f3; }
#agdoEventModal .modal-footer{ border-top:1px solid #eef0f3; }
#agdoEventModal #agdoModalImage{ max-height:220px; width:auto; max-width:100%; margin:0 auto; display:block; object-fit:contain; }
#agdoEventModal .modal-body p strong{ color:#6b7280; font-weight:600; }
#agdoEventModal .modal-title{ line-height:1.25; }

/* =========================================================
   Agendo 1.3.2 - stop theme colour bleed into FullCalendar + descriptions
   ========================================================= */

/* FullCalendar grid text is dark ink, not the theme's link colour.
   (Day numbers and column headers are <a> when navLinks is on.) */
.agdo-wrap .fc .fc-daygrid-day-number,
.agdo-wrap .fc .fc-col-header-cell-cushion,
.agdo-wrap .fc .fc-timegrid-axis-cushion,
.agdo-wrap .fc .fc-timegrid-slot-label-cushion,
.agdo-wrap .fc .fc-list-day-text,
.agdo-wrap .fc .fc-list-day-side-text,
.agdo-wrap .fc .fc-multimonth-title{ color:#1a2230 !important; text-decoration:none !important; }
.agdo-wrap .fc .fc-col-header-cell-cushion{ font-weight:600; }

/* Events sit on the accent fill, so their text is white in the grids */
.agdo-wrap .fc .fc-daygrid-event .fc-event-title,
.agdo-wrap .fc .fc-daygrid-event .fc-event-time,
.agdo-wrap .fc .fc-timegrid-event .fc-event-title,
.agdo-wrap .fc .fc-timegrid-event .fc-event-time{ color:#fff !important; }
/* List view rows are on white, so their titles are dark ink */
.agdo-wrap .fc .fc-list-event-title a{ color:#1a2230 !important; }
.agdo-wrap .fc .fc-list-event-title a:hover{ color:var(--agdo-accent) !important; }

/* Card/description body copy is dark ink, not theme red (muted + links keep their colours) */
#agdo-root .agdo-ellipsis-3,
#agdo-root .agdo-ellipsis-3 *,
#agdo-root .agdo-poster-body > div:not(.agdo-muted):not(.d-flex):not(.agdo-actions),
#agdo-root .agdo-tile-body .agdo-ellipsis-3{ color:#3a3f47; }
#agdo-root .agdo-ellipsis-3 a{ color:var(--agdo-accent) !important; }

/* =====================================================================
   Agendo 1.3.3 - premium visual system (2026)
   A cohesive, modern layer: soft elevation, smooth micro-interactions,
   refined buttons/badges/inputs, a polished modal and calendar.
   ===================================================================== */
#agdo-root, #agdoEventModal{
  --agdo-radius:16px; --agdo-radius-sm:11px; --agdo-pill:999px;
  --agdo-ink:#171d27; --agdo-ink-soft:#3a3f47; --agdo-mut:#6b7280; --agdo-line:#e9edf2; --agdo-line-2:#f1f4f8;
  --agdo-ease:cubic-bezier(.22,.61,.36,1);
  --agdo-sh-1:0 1px 2px rgba(16,24,40,.04), 0 3px 12px rgba(16,24,40,.05);
  --agdo-sh-2:0 10px 34px rgba(16,24,40,.13);
  --agdo-acc-soft:color-mix(in srgb, var(--agdo-accent) 10%, #fff);
  --agdo-acc-ring:color-mix(in srgb, var(--agdo-accent) 20%, transparent);
}

/* Smooth transitions only on interactive things (avoids layout jank) */
#agdo-root a,
#agdo-root .btn,
#agdo-root .agdo-poster-card,
#agdo-root .agdo-tile-card,
#agdo-root .list-group-item,
#agdo-root .agdo-poster-img,
#agdo-root .agdo-tile-img,
#agdo-root .accordion-button,
#agdo-root .form-control,
#agdo-root .form-select,
#agdoEventModal .btn{
  transition: color .16s var(--agdo-ease), background-color .16s var(--agdo-ease),
              border-color .16s var(--agdo-ease), box-shadow .2s var(--agdo-ease),
              transform .2s var(--agdo-ease);
}

/* ---- Cards: soft elevation, lift + image zoom on hover ---- */
#agdo-root .agdo-poster-card,
#agdo-root .agdo-tile-card{
  border:1px solid var(--agdo-line); border-radius:var(--agdo-radius);
  box-shadow:var(--agdo-sh-1); overflow:hidden;
}
#agdo-root .agdo-poster-card:hover,
#agdo-root .agdo-tile-card:hover{
  transform:translateY(-4px); box-shadow:var(--agdo-sh-2); border-color:#dbe2ea;
}
#agdo-root .agdo-poster-img,
#agdo-root .agdo-tile-img{ transition:transform .45s var(--agdo-ease); }
#agdo-root .agdo-poster-card:hover .agdo-poster-img,
#agdo-root .agdo-tile-card:hover .agdo-tile-img{ transform:scale(1.04); }

/* ---- Date badge: subtle gradient + soft coloured shadow ---- */
#agdo-root .agdo-date-badge{
  border-radius:13px;
  background:linear-gradient(150deg, color-mix(in srgb, var(--agdo-accent) 86%, #fff), var(--agdo-accent));
  box-shadow:0 6px 16px color-mix(in srgb, var(--agdo-accent) 26%, transparent);
}

/* ---- Buttons: pill, ghost -> smooth fill + lift, no clunky flip ---- */
#agdo-root .agdo-actions .btn,
#agdo-root .btn.btn-outline-secondary[href*="agendo_ics"],
#agdo-root #agdo-ics-feed,
#agdoEventModal .btn{
  border-radius:var(--agdo-pill); font-weight:600; letter-spacing:.005em;
  padding:.42rem 1rem; box-shadow:none;
}
#agdo-root .agdo-actions .btn-outline-primary,
#agdoEventModal .btn-outline-secondary,
#agdo-root #agdo-ics-feed{
  color:var(--agdo-accent) !important;
  border:1px solid color-mix(in srgb, var(--agdo-accent) 32%, #fff) !important;
  background:transparent !important;
}
#agdo-root .agdo-actions .btn-outline-primary:hover,
#agdoEventModal .btn-outline-secondary:hover,
#agdo-root #agdo-ics-feed:hover{
  color:#fff !important; background:var(--agdo-accent) !important; border-color:var(--agdo-accent) !important;
  transform:translateY(-1px); box-shadow:0 6px 16px color-mix(in srgb, var(--agdo-accent) 32%, transparent);
}
#agdo-root .agdo-actions .btn-outline-secondary{
  color:var(--agdo-ink-soft) !important; border:1px solid var(--agdo-line) !important; background:#fff !important;
}
#agdo-root .agdo-actions .btn-outline-secondary:hover{
  color:var(--agdo-ink) !important; border-color:#c9d2dd !important; background:#f7f9fc !important; transform:translateY(-1px);
}
#agdoEventModal .btn-secondary{
  border-radius:var(--agdo-pill); background:#eef1f6; border-color:#eef1f6; color:var(--agdo-ink-soft);
}
#agdoEventModal .btn-secondary:hover{ background:#e3e8ef; color:var(--agdo-ink); }

/* ---- Links: smooth, tasteful underline ---- */
#agdo-root a{ text-underline-offset:3px; text-decoration-thickness:1px; }

/* ---- Toolbar: clean modern inputs with accent focus ring ---- */
#agdo-root .agdo-toolbar .form-control,
#agdo-root .agdo-toolbar .form-select{
  border:1px solid var(--agdo-line); border-radius:var(--agdo-radius-sm); box-shadow:none; padding:.5rem .8rem;
  background-color:#fff;
}
#agdo-root .agdo-toolbar .form-control:hover,
#agdo-root .agdo-toolbar .form-select:hover{ border-color:#cfd8e3; }
#agdo-root .agdo-toolbar .form-control:focus,
#agdo-root .agdo-toolbar .form-select:focus{
  border-color:var(--agdo-accent); box-shadow:0 0 0 3px var(--agdo-acc-ring); outline:none;
}
#agdo-root .agdo-toolbar .form-check-input:checked{ background-color:var(--agdo-accent); border-color:var(--agdo-accent); }
#agdo-root .agdo-toolbar .form-check-input:focus{ box-shadow:0 0 0 3px var(--agdo-acc-ring); border-color:var(--agdo-accent); }

/* ---- Next-event banner: refined ---- */
#agdo-root .agdo-next{ border-radius:var(--agdo-radius-sm); box-shadow:var(--agdo-sh-1); border:1px solid color-mix(in srgb, var(--agdo-accent) 22%, #fff); }
#agdo-root .agdo-next-dot{ animation:agdoPulse 2.4s var(--agdo-ease) infinite; }
@keyframes agdoPulse{ 0%,100%{ box-shadow:0 0 0 0 var(--agdo-acc-ring); } 50%{ box-shadow:0 0 0 5px transparent; } }

/* ---- List / agenda / stream / accordion: gentle hover, clean lines ---- */
#agdo-root .list-group-item{ border-color:var(--agdo-line-2); }
#agdo-root .list-group-item:hover{ background:var(--agdo-acc-soft); }
#agdo-root .accordion-button{ border-radius:var(--agdo-radius-sm) !important; box-shadow:none !important; }
#agdo-root .accordion-button:not(.collapsed){ background:var(--agdo-acc-soft); color:var(--agdo-accent); }
#agdo-root .accordion-button:focus{ box-shadow:0 0 0 3px var(--agdo-acc-ring); }

/* ---- Split view panel: card-like, refined ---- */
#agdo-root .agdo-split-panel{ border:1px solid var(--agdo-line); border-radius:var(--agdo-radius); box-shadow:var(--agdo-sh-1); padding:16px 18px; }
#agdo-root .agdo-split-ev{ border-radius:10px; padding:10px 12px; margin:2px -6px; border-top:0; }
#agdo-root .agdo-split-ev + .agdo-split-ev{ border-top:1px solid var(--agdo-line-2); }
#agdo-root .agdo-split-ev:hover{ background:var(--agdo-acc-soft); }

/* ---- FullCalendar: modern grid, refined chips + buttons ---- */
.agdo-wrap .fc{ --fc-border-color:#eef1f5; }
.agdo-wrap .fc .fc-toolbar.fc-header-toolbar{ margin-bottom:1rem; }
.agdo-wrap .fc .fc-toolbar-title{ font-weight:700; letter-spacing:-.01em; }
.agdo-wrap .fc .fc-button{
  border-radius:var(--agdo-radius-sm) !important; font-weight:600; text-transform:none; padding:.4rem .75rem;
  box-shadow:none !important;
}
.agdo-wrap .fc .fc-button:not(:disabled):hover{ transform:translateY(-1px); }
.agdo-wrap .fc .fc-button-primary:not(:disabled).fc-button-active{
  box-shadow:0 4px 12px color-mix(in srgb, var(--agdo-accent) 30%, transparent) !important;
}
.agdo-wrap .fc .fc-daygrid-day-number{ padding:6px 8px; border-radius:8px; font-weight:600; }
.agdo-wrap .fc .fc-daygrid-day:hover{ background:color-mix(in srgb, var(--agdo-accent) 5%, transparent); }
.agdo-wrap .fc .fc-daygrid-event,
.agdo-wrap .fc .fc-timegrid-event{
  border:none; border-radius:7px; padding:2px 6px; font-weight:500;
  box-shadow:0 1px 3px rgba(16,24,40,.14);
}
.agdo-wrap .fc .fc-daygrid-event:hover,
.agdo-wrap .fc .fc-timegrid-event:hover{ transform:translateY(-1px); box-shadow:0 3px 8px rgba(16,24,40,.2); }
.agdo-wrap .fc .fc-list-event:hover td{ background:var(--agdo-acc-soft) !important; }
.agdo-wrap .fc .fc-list-event-dot{ border-color:var(--agdo-accent) !important; }
.agdo-wrap .fc-theme-standard .fc-scrollgrid,
.agdo-wrap .fc-theme-standard td,
.agdo-wrap .fc-theme-standard th{ border-color:#eef1f5; }

/* ---- Modal: premium ---- */
#agdoEventModal .modal-content{ border:0; border-radius:18px; box-shadow:0 30px 80px rgba(16,24,40,.32); overflow:hidden; }
#agdoEventModal .modal-header{ border-bottom:1px solid var(--agdo-line-2); padding:18px 22px; }
#agdoEventModal .modal-body{ padding:20px 22px; }
#agdoEventModal .modal-footer{ border-top:1px solid var(--agdo-line-2); padding:14px 22px; }
#agdoEventModal .btn-close:focus{ box-shadow:0 0 0 3px var(--agdo-acc-ring); }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  #agdo-root *, .agdo-wrap .fc *{ transition:none !important; animation:none !important; }
  #agdo-root .agdo-poster-card:hover, #agdo-root .agdo-tile-card:hover{ transform:none; }
}


/* Agendo 1.3.4 - modal shares the palette; body copy is dark ink, not theme colour */
#agdoEventModal .modal-body{ color:#3a3f47; }
#agdoEventModal .modal-title{ color:#171d27 !important; }
#agdoEventModal #agdoModalDate,
#agdoEventModal #agdoModalLocation{ color:#171d27; }
#agdoEventModal #agdoModalDescription,
#agdoEventModal #agdoModalDescription *{ color:#3a3f47 !important; }
#agdoEventModal #agdoModalLocation a,
#agdoEventModal .modal-body a{ color:var(--agdo-accent) !important; }
#agdoEventModal .modal-body p strong{ color:#6b7280; font-weight:600; }


/* =====================================================================
   Agendo 1.3.5 - posterboard: aligned dates + separated info sections
   Reserve a 2-line title so the date row lines up across every card
   regardless of title length, and give each info block (when / where /
   details) its own divider + icon so the card reads as clean sections.
   ===================================================================== */
#agdo-root .agdo-poster-body{ gap:0; padding:16px 16px 14px; }

/* Header: badge + title(fixed 2 lines) + date; divider below it */
#agdo-root .agdo-poster-top{ align-items:flex-start; padding-bottom:12px; margin-bottom:0; border-bottom:1px solid var(--agdo-line-2); }
#agdo-root .agdo-poster-card .agdo-title{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  min-height:2.4em; margin:0 0 3px;
}
#agdo-root .agdo-poster-top .agdo-muted{ display:flex; align-items:center; gap:6px; margin-top:2px; }
#agdo-root .agdo-poster-top .agdo-muted::before{
  content:""; width:13px; height:13px; flex:0 0 13px; background:#6b7280;
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207.5V12l3%202%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207.5V12l3%202%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

/* Location block: its own row, pin icon, divider below */
#agdo-root .agdo-poster-body > .agdo-muted{
  display:flex; align-items:flex-start; gap:7px; padding:11px 0; margin:0;
  border-bottom:1px solid var(--agdo-line-2); font-size:.9rem;
}
#agdo-root .agdo-poster-body > .agdo-muted::before{
  content:""; width:14px; height:14px; flex:0 0 14px; margin-top:1px;
  background:var(--agdo-accent);
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2021s7-6.3%207-11a7%207%200%201%200-14%200c0%204.7%207%2011%207%2011z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%272.5%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%2021s7-6.3%207-11a7%207%200%201%200-14%200c0%204.7%207%2011%207%2011z%27%2F%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2710%27%20r%3D%272.5%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
#agdo-root .agdo-poster-body > .agdo-muted a{ color:var(--agdo-accent) !important; }

/* Description block: its own row, doc icon */
#agdo-root .agdo-poster-body .agdo-ellipsis-3{
  display:flex; align-items:flex-start; gap:7px; padding:11px 0 0; -webkit-line-clamp:3;
}
#agdo-root .agdo-poster-body .agdo-ellipsis-3::before{
  content:""; width:14px; height:14px; flex:0 0 14px; margin-top:2px; background:#9aa3ad;
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l3%203v15H6z%27%2F%3E%3Cpath%20d%3D%27M9%209h6M9%2013h6M9%2017h3%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M6%203h9l3%203v15H6z%27%2F%3E%3Cpath%20d%3D%27M9%209h6M9%2013h6M9%2017h3%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}
/* keep the 3-line clamp working with the icon flex row */
#agdo-root .agdo-poster-body .agdo-ellipsis-3{ position:relative; }

/* Actions: clear top divider, comfortable spacing */
#agdo-root .agdo-poster-body .agdo-actions{ margin-top:auto; padding-top:12px; border-top:1px solid var(--agdo-line-2); }

/* Tile view: matching section spacing (no per-field icons to avoid mislabels) */
#agdo-root .agdo-tile-title{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.4em; }
#agdo-root .agdo-tile-body .agdo-muted{ padding:2px 0; }

/* 1.3.5a - pin action buttons to the bottom so they align across all cards,
   and keep the description clamped to 3 lines (icon is absolutely placed so it
   does not break the -webkit-box clamp). */
#agdo-root .agdo-poster-card{ display:flex; flex-direction:column; height:100%; }
#agdo-root .agdo-poster-body{ display:flex; flex-direction:column; flex:1 1 auto; }
#agdo-root .agdo-poster-body .agdo-ellipsis-3{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
  align-items:unset; gap:0; padding:11px 0 0 21px; position:relative;
}
#agdo-root .agdo-poster-body .agdo-ellipsis-3::before{ position:absolute; left:0; top:13px; margin-top:0; }
#agdo-root .agdo-poster-body .agdo-actions{ margin-top:auto; }


/* =====================================================================
   Agendo 1.3.6 - FIX posterboard header alignment against the REAL markup.
   The header row is `.agdo-poster-body > .d-flex.align-items-center` (Bootstrap
   centers it, which drops the badge when a card's column is taller). Force it to
   top-align so every date badge lines up, keep the date on one line, and give
   the date its clock icon + a divider under the header.
   ===================================================================== */
#agdo-root .agdo-poster-body > .d-flex{
  align-items:flex-start !important;
  padding-bottom:12px; margin-bottom:0; border-bottom:1px solid var(--agdo-line-2);
}
#agdo-root .agdo-poster-card .agdo-title{ min-height:2.4em; }
#agdo-root .agdo-poster-body > .d-flex > div[style]{ min-width:0; flex:1 1 auto; }
#agdo-root .agdo-poster-body > .d-flex .agdo-muted{
  display:flex; align-items:center; gap:6px; margin-top:3px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
#agdo-root .agdo-poster-body > .d-flex .agdo-muted::before{
  content:""; width:13px; height:13px; flex:0 0 13px; background:#6b7280;
  -webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207.5V12l3%202%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%279%27%2F%3E%3Cpath%20d%3D%27M12%207.5V12l3%202%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

/* 1.3.7 - the date/time sits in a narrow column, so let it wrap (never truncate
   the am/pm) and reserve two lines so the rows still line up across cards. */
#agdo-root .agdo-poster-body > .d-flex .agdo-muted{
  white-space:normal !important; overflow:visible !important; text-overflow:clip !important;
  align-items:flex-start; min-height:2.4em;
}
#agdo-root .agdo-poster-body > .d-flex .agdo-muted::before{ margin-top:3px; }

/* =====================================================================
   Agendo 1.3.8 - Make the separation between event info areas VISIBLE.
   The 1.3.5/1.3.6 section dividers used --agdo-line-2 (#f1f4f8), which is
   almost invisible on white, so cards read as one block. Give each area
   (when / where / details / actions) a perceptible hairline and even
   breathing room so the card reads as clearly separated sections.
   ===================================================================== */
#agdo-root{ --agdo-divider:#ced6df; }

/* WHEN: header band (badge + title + date/time) */
#agdo-root .agdo-poster-body > .d-flex,
#agdo-root .agdo-poster-top{
  border-bottom:1px solid var(--agdo-divider) !important; padding-bottom:14px !important;
}
/* WHERE: location band */
#agdo-root .agdo-poster-body > .agdo-muted{
  border-bottom:1px solid var(--agdo-divider) !important; padding:14px 0 !important;
}
/* DETAILS: description band */
#agdo-root .agdo-poster-body .agdo-ellipsis-3{ padding-top:14px !important; }
/* ACTIONS: buttons band (keep margin-top:auto so buttons stay bottom-aligned) */
#agdo-root .agdo-poster-body .agdo-actions{
  border-top:1px solid var(--agdo-divider) !important; padding-top:14px !important;
}
/* Tile view: matching visible section dividers */
#agdo-root .agdo-tile-body .agdo-muted{
  border-bottom:1px solid var(--agdo-divider); padding:10px 0 !important;
}
#agdo-root .agdo-tile-body .agdo-muted:last-of-type{ border-bottom:0; }

/* ===== Settings rail (1.3.x): same layout as Crosspatch / Member Central =====
   Squared search box, rail offset under the admin bar, rectangular sticky save bar,
   16px rail icons, and the 880px mobile wrap. Ported from Crosspatch's .cxp-set2 rules.
   The Health screen shares the hero through .agdo-set2 on its wrap. */
.agdo-set2 .agdo-hero{ justify-content:space-between; border-radius:16px; margin-bottom:0; }
.agdo-set2 .agdo-hero p{ font-size:13.5px; }
.agdo-set2.agdo-health .agdo-hero{ margin-bottom:20px; }
.agdo-set2-search{ width:230px; border-radius:10px; padding:9px 12px; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); color:#cfe6ef; }
.agdo-set2-search input{ box-shadow:none; padding:0; min-height:0; }
.agdo-set2-search input:focus{ box-shadow:none; }
.agdo-set2 .agdo-tabs{ border-radius:12px; box-shadow:0 1px 2px rgba(11,25,41,.05); top:calc(var(--wp-admin--admin-bar--height,32px) + 12px); }
.agdo-set2 .agdo-tab{ color:var(--s2-ink3); border-radius:8px; line-height:1.35; }
.agdo-set2 .agdo-set2-savebar{ border-radius:12px; padding:12px 16px; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); box-shadow:0 -2px 16px rgba(11,25,41,.06); }
.agdo-set2 .agdo-set2-savebar .agdo-set2-savebtn{ text-shadow:none; box-shadow:none; }

@media print{ .agdo-set2 .agdo-tabs, .agdo-set2 .agdo-set2-savebar{ display:none; } .agdo-set2 .agdo-section{ display:block !important; } }
@media (max-width:880px){
  .agdo-set2-search{ width:100%; align-self:stretch; }
  .agdo-set2 .agdo-tab{ width:auto; }
  .agdo-set2 .agdo-tab.active::before{ display:none; }
}

/* ------------------------------------------------------------------ *
 * Event detail modal (v1.4): our own richer layout - hero image, a
 * date badge, one-line "when", location, description and an action row.
 * Accent-aware via --agdo-accent so it fits each site's palette.
 * ------------------------------------------------------------------ */
#agdoEventModal.agdo-ev-modal .modal-dialog { max-width: 680px; }
#agdoEventModal .agdo-ev { position: relative; border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(10,22,40,.28); }
#agdoEventModal .agdo-ev-close { position: absolute; top: 12px; right: 14px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(12,22,40,.55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
#agdoEventModal .agdo-ev-close:hover { background: rgba(12,22,40,.8); }
#agdoEventModal .agdo-ev-hero { margin: 0; max-height: 260px; overflow: hidden; background: #0c1628; }
#agdoEventModal .agdo-ev-hero img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; display: block; }
#agdoEventModal .agdo-ev-body { padding: 22px 26px 24px; font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
#agdoEventModal .agdo-ev-head { display: flex; align-items: flex-start; gap: 16px; }
#agdoEventModal .agdo-ev-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; min-height: 62px; padding: 6px 0; border-radius: 12px; background: var(--agdo-accent); color: #fff; line-height: 1; }
#agdoEventModal .agdo-ev-badge em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .9; }
#agdoEventModal .agdo-ev-badge b { font-size: 28px; font-weight: 800; margin-top: 2px; }
#agdoEventModal .agdo-ev-title { margin: 2px 0 0; font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-weight: 400; font-size: 30px; line-height: 1.1; color: #0c1628; }
#agdoEventModal .agdo-ev-meta { margin: 18px 0 4px; display: grid; gap: 12px; }
#agdoEventModal .agdo-ev-row { display: flex; align-items: flex-start; gap: 12px; }
#agdoEventModal .agdo-ev-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--agdo-accent) 12%, transparent); color: var(--agdo-accent); }
#agdoEventModal .agdo-ev-rowtext { display: flex; flex-direction: column; }
#agdoEventModal .agdo-ev-k { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8a97a5; }
#agdoEventModal .agdo-ev-v { font-size: 15px; color: #1d2733; margin-top: 1px; }
#agdoEventModal .agdo-ev-v a { color: var(--agdo-accent); text-decoration: none; }
#agdoEventModal .agdo-ev-v a:hover { text-decoration: underline; }
#agdoEventModal .agdo-ev-desc { margin: 18px 0 2px; padding-top: 16px; border-top: 1px solid #eceff3; color: #3a4654; font-size: 14.5px; line-height: 1.6; }
#agdoEventModal .agdo-ev-desc img { max-width: 100%; height: auto; border-radius: 8px; }
#agdoEventModal .agdo-ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#agdoEventModal .agdo-ev-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid #d7dde5; background: #fff; color: #1d2733; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
#agdoEventModal .agdo-ev-btn:hover { border-color: var(--agdo-accent); color: var(--agdo-accent); }
#agdoEventModal .agdo-ev-btn.is-primary { background: var(--agdo-accent); border-color: var(--agdo-accent); color: #fff; }
#agdoEventModal .agdo-ev-btn.is-primary:hover { filter: brightness(1.06); color: #fff; }
@media (max-width: 560px){ #agdoEventModal .agdo-ev-title { font-size: 25px; } #agdoEventModal .agdo-ev-body { padding: 18px; } }
