/* Group availability calendar pages (MOA): landing, new, created, not found. Generated from drafts/moa-group-calendar/v5
   by scoping every rule to .gcal, so nothing here touches the navbar or footer. */

/* main.css element rules that would otherwise leak into the calendar */
.gcal a { color: revert; text-decoration: revert; background-color: revert; }
.gcal ul, .gcal ol { list-style-type: revert; }
.gcal input { background-color: revert; color: revert; border: revert; }
.gcal select { border-radius: revert; color: revert; width: revert; background-color: revert; }
.gcal h1, .gcal h2, .gcal h3, .gcal h4 { font-family: inherit; font-size: revert; font-weight: revert; }
.gcal { line-height: normal; text-align: left; }

/* Sprite icons standing in for the draft's Font Awesome <i> tags */
.gcal .icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  flex-shrink: 0;
}


/* main.css sets body { height: 100svh } for the destination finder, which
   scrolls inside panels. These pages scroll the window, so body must grow with
   the content or the sticky navbar leaves with it after one screen. */
body.group-calendar-page,
body.group-calendar-card-page,
body.group-calendar-landing {
  height: auto;
}

/* ── new ── */

.gcal-new *,
.gcal-new *::before,
.gcal-new *::after {box-sizing:border-box;margin:0;padding:0}
.gcal-new {--teal:#0b5259;--amber:#ffca9c;--cream:#ffefda;--dark:#2e2e2e;--border:rgba(11,82,89,0.13);--muted:rgba(11,82,89,0.42)}
.gcal-new {font-family:"Inter",-apple-system,sans-serif;background:var(--amber);color:var(--dark);min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}

.gcal-new .nav-logo {font-family:"Abhaya Libre",serif;color:white;font-size:1.2rem;font-weight:700}
.gcal-new .gcal-card {background:var(--cream);border-radius:14px;padding:28px 24px;width:100%;max-width:400px;margin-top:60px;box-shadow:0 4px 24px rgba(11,82,89,0.12)}
.gcal-new h2 {font-size:1.2rem;font-weight:700;color:var(--teal);margin-bottom:6px}
.gcal-new .sub {font-size:0.8rem;color:var(--muted);margin-bottom:24px;line-height:1.5}
.gcal-new .field {margin-bottom:16px}
.gcal-new .field label {display:block;font-size:0.67rem;font-weight:600;color:var(--teal);text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.gcal-new .field input {width:100%;border:1.5px solid var(--border);border-radius:8px;padding:11px 13px;font-size:1rem;font-family:inherit;color:var(--dark);background:white;outline:none;-webkit-appearance:none}
.gcal-new .field input:focus {border-color:var(--teal)}
.gcal-new .field input::placeholder {color:var(--muted)}
.gcal-new .btn {width:100%;background:var(--teal);color:white;border:none;border-radius:8px;padding:14px;font-size:0.9rem;font-weight:700;font-family:inherit;cursor:pointer;box-shadow:3px 3px var(--amber);-webkit-tap-highlight-color:transparent;margin-top:4px}
.gcal-new .hint {font-size:0.72rem;color:var(--muted);text-align:center;margin-top:14px;line-height:1.5}
.gcal-new .field-hint {font-size:0.72rem;color:var(--muted);margin:5px 0 0;line-height:1.4}
.gcal-new .restore {margin-top:18px;padding-top:14px;border-top:1px solid var(--border);text-align:center;font-size:0.78rem;color:var(--dark)}
.gcal-new .link-btn {background:none;border:none;padding:0;font:inherit;font-weight:700;color:var(--teal);text-decoration:underline;cursor:pointer}
.gcal-new .restore-note {font-size:0.7rem;color:#3d5c5f;margin-top:4px}
.gcal-new .restore-error {font-size:0.75rem;color:#a33;margin-top:6px;min-height:0}
.gcal-new .restore-error:empty {display:none}
.gcal-new .field-error {font-size:0.75rem;color:#a33;margin-top:6px}
.gcal-new .field-error:empty {display:none}
.gcal-new .city-ac {position:relative}
.gcal-new .suggestions-drop {position:absolute;top:calc(100% + 4px);left:0;right:0;background:white;border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,0.14);border:1px solid rgba(11,82,89,0.1);overflow:hidden;display:none;z-index:300}
.gcal-new .suggestions-drop.open {display:block}
.gcal-new .suggestion-item {display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;transition:background .12s;font-size:0.88rem;color:var(--dark);border-bottom:1px solid rgba(0,0,0,0.04)}
.gcal-new .suggestion-item:last-child {border-bottom:none}
.gcal-new .suggestion-item:hover,
.gcal-new .suggestion-item.active {background:#f0f8f9}
.gcal-new .suggestion-city {font-weight:600}
.gcal-new .suggestion-country {color:var(--muted);font-size:0.78rem;margin-left:auto}
.gcal-new .suggestion-flag {width:1.1em;height:0.8em;flex-shrink:0}

/* ── created ── */

.gcal-created *,
.gcal-created *::before,
.gcal-created *::after {box-sizing:border-box;margin:0;padding:0}
.gcal-created {--teal:#0b5259;--amber:#ffca9c;--cream:#ffefda;--dark:#2e2e2e;--muted:#3d5c5f;--border:#b8cfd1;--green:#1a6e3c}
.gcal-created {font-family:"Inter",-apple-system,sans-serif;background:var(--amber);color:var(--dark);min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:16px;padding-top:66px}

.gcal-created .nav-logo {font-family:"Abhaya Libre",serif;color:white;font-size:1.2rem;font-weight:700}
.gcal-created .gcal-page {width:100%;max-width:420px}
.gcal-created .gcal-card {background:var(--cream);border-radius:14px;padding:22px 18px}
.gcal-created h1 {font-size:1.15rem;font-weight:700;color:var(--teal);margin-bottom:8px}
.gcal-created .sub {font-size:0.82rem;color:var(--muted);margin-bottom:16px;line-height:1.5}
.gcal-created .link-box {background:white;border:2px solid var(--teal);border-radius:8px;padding:10px 12px;font-size:0.72rem;font-family:monospace;word-break:break-all;color:var(--dark);margin-bottom:12px;user-select:all;line-height:1.4}
.gcal-created .btn {width:100%;border-radius:8px;padding:13px 16px;font-size:0.9rem;font-weight:700;font-family:inherit;cursor:pointer;border:none;display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:3px 3px var(--amber);text-decoration:none;-webkit-tap-highlight-color:transparent}
.gcal-created .btn:focus-visible {outline:3px solid var(--dark);outline-offset:2px}
.gcal-created .btn-primary {background:var(--teal);color:white}
.gcal-created .btn-secondary {background:white;color:var(--teal);border:1.5px solid var(--teal)}
.gcal-created .btn[aria-disabled="true"] {opacity:.38;cursor:not-allowed;pointer-events:none;box-shadow:none}
.gcal-created .btn-row {display:flex;gap:8px;margin-bottom:14px}
.gcal-created .qr-wrap {display:flex;flex-direction:column;align-items:center;background:white;border-radius:10px;padding:14px;margin-bottom:16px}
.gcal-created .qr-label {font-size:0.72rem;color:var(--muted);margin-top:8px}
.gcal-created .build {display:flex;align-items:center;gap:12px;background:white;border-radius:10px;padding:12px 14px;margin-bottom:12px}
.gcal-created .spin {position:relative;width:40px;height:40px;flex-shrink:0}
.gcal-created .spin-ring {position:absolute;inset:0;border-radius:50%;border:3px solid var(--border);border-top-color:var(--teal);animation:spin .9s linear infinite}
.gcal-created .spin-num {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:0.85rem;font-weight:700;color:var(--teal)}
.gcal-created .build.done .spin-ring {animation:none;border-color:var(--green)}
.gcal-created .build.done .spin-num {color:var(--green)}
.gcal-created .build-text {font-size:0.82rem;color:var(--muted);line-height:1.4}
.gcal-created .build-text strong {display:block;color:var(--dark);font-size:0.86rem}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce) {.gcal-created .spin-ring {animation:none}}

/* ── not-found ── */

.gcal-not-found *,
.gcal-not-found *::before,
.gcal-not-found *::after {box-sizing:border-box;margin:0;padding:0}
.gcal-not-found {--teal:#0b5259;--amber:#ffca9c;--cream:#ffefda;--dark:#2e2e2e}
.gcal-not-found {font-family:"Inter",-apple-system,sans-serif;background:var(--amber);color:var(--dark);min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px}

.gcal-not-found .nav-logo {font-family:"Abhaya Libre",serif;color:white;font-size:1.2rem;font-weight:700}
.gcal-not-found .gcal-card {background:var(--cream);border-radius:14px;padding:28px 24px;width:100%;max-width:400px;margin-top:60px}
.gcal-not-found h2 {font-size:1.15rem;font-weight:700;color:var(--teal);margin-bottom:8px}
.gcal-not-found p {font-size:0.82rem;color:#3d5c5f;line-height:1.5;margin-bottom:18px}
.gcal-not-found .btn {display:block;text-align:center;text-decoration:none;background:var(--teal);color:white;border-radius:8px;padding:13px;font-size:0.9rem;font-weight:700;box-shadow:3px 3px var(--amber)}

/* ── landing ── */

.gcal-landing *,
.gcal-landing *::before,
.gcal-landing *::after {box-sizing:border-box;margin:0;padding:0}
.gcal-landing {--teal:#0b5259;--amber:#ffca9c;--cream:#ffefda;--dark:#2e2e2e;--muted:#3d5c5f;--border:rgba(11,82,89,0.13)}
.gcal-landing {font-family:"Inter",-apple-system,sans-serif;background:var(--amber);color:var(--dark);line-height:1.5}

.gcal-landing .nav-logo {font-family:"Abhaya Libre",serif;color:white;font-size:1.1rem;font-weight:700;text-decoration:none}
.gcal-landing .nav-sub {font-size:0.68rem;color:var(--amber);font-weight:500}
.gcal-landing {padding:0 16px 40px}
.gcal-landing section {max-width:1040px;margin:0 auto}

.gcal-landing .btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--teal);color:white;text-decoration:none;border-radius:8px;padding:14px 22px;font-size:0.95rem;font-weight:700;box-shadow:3px 3px var(--cream);-webkit-tap-highlight-color:transparent}
.gcal-landing .btn:focus-visible {outline:3px solid var(--dark);outline-offset:2px}
.gcal-landing .cta-note {font-size:0.75rem;color:var(--muted);margin-top:10px}

/* calendars this device has opened: a cream card, 5 rows (58px + 10px gap)
   before it scrolls, with a small "Create a new calendar" under them.
   Amber shadows: the usual cream one would vanish on the cream card */
.gcal-landing .hero.has-cals .demo {display:none}
.gcal-landing .my-cals {background:var(--cream);border-radius:10px;padding:14px 12px 12px;max-width:420px;box-shadow:0 6px 28px rgba(11,82,89,0.14)}
.gcal-landing .my-cals-label {font-size:0.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--teal);margin-bottom:10px}
.gcal-landing .my-cals-list {list-style:none;display:flex;flex-direction:column;gap:10px;max-height:calc(5 * 58px + 4 * 10px + 4px);overflow-y:auto;overscroll-behavior:contain;padding:0 4px 4px 0}
.gcal-landing .my-cal-btn {display:flex;justify-content:flex-start;width:100%;height:58px;flex-shrink:0;padding:0 18px;font-size:0.95rem;box-shadow:3px 3px var(--amber)}
.gcal-landing .my-cals-new {margin-top:6px;padding:9px 12px;font-size:0.78rem;box-shadow:3px 3px var(--amber)}
.gcal-landing .my-cal-btn .icon {flex-shrink:0}
.gcal-landing .my-cal-text {display:flex;flex-direction:column;min-width:0;line-height:1.25}
.gcal-landing .my-cal-name,
.gcal-landing .my-cal-meta {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gcal-landing .my-cal-meta {font-size:0.7rem;font-weight:500;color:rgba(255,255,255,0.75);margin-top:2px}

/* hero */
.gcal-landing .hero {display:flex;flex-direction:column;gap:28px;padding:32px 0 36px}
.gcal-landing .eyebrow {font-size:0.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--teal);margin-bottom:8px}
.gcal-landing h1 {font-family:"Abhaya Libre",serif;font-size:2.1rem;line-height:1.1;color:var(--teal);margin-bottom:12px}
.gcal-landing .lead {font-size:0.98rem;color:var(--dark);margin-bottom:22px;max-width:30em}

/* calendar illustration */
.gcal-landing .demo {background:var(--cream);border-radius:14px;padding:16px;box-shadow:0 6px 28px rgba(11,82,89,0.14);max-width:420px;width:100%;align-self:center}
.gcal-landing .demo-people {display:flex;flex-wrap:wrap;gap:6px 12px;margin-bottom:12px;font-size:0.72rem;font-weight:600;color:var(--dark)}
.gcal-landing .demo-people span {display:inline-flex;align-items:center;gap:5px}
.gcal-landing .demo-people i {width:9px;height:9px;border-radius:2px;display:inline-block}
.gcal-landing .demo-month {font-size:0.8rem;font-weight:700;color:var(--teal);margin-bottom:6px}
.gcal-landing .demo-grid {display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.gcal-landing .demo-dow {font-size:0.6rem;color:var(--muted);text-align:center;padding-bottom:2px}
.gcal-landing .d {background:white;border-radius:6px;min-height:46px;padding:4px 3px;display:flex;flex-direction:column;gap:2px}
.gcal-landing .d b {font-size:0.68rem;font-weight:600;color:var(--dark);text-align:center;margin-bottom:2px}
.gcal-landing .d s {display:block;height:5px;border-radius:2px;text-decoration:none}
.gcal-landing .d.win {background:#b6e7af}
.gcal-landing .j {background:#c75c1e}.gcal-landing .a {background:#5c6bc0}.gcal-landing .t {background:#2e7d32}
.gcal-landing .demo-best {margin-top:12px;display:flex;align-items:center;gap:8px;background:white;border-radius:8px;padding:9px 11px;font-size:0.78rem;color:var(--dark)}
.gcal-landing .demo-best i {color:#2e7d32}
.gcal-landing .demo-best strong {color:var(--teal)}

.gcal-landing h2 {font-family:"Abhaya Libre",serif;font-size:1.5rem;line-height:1.15;color:var(--teal);margin-bottom:10px}

/* steps */
.gcal-landing .steps {list-style:none;display:grid;grid-template-columns:1fr;gap:12px;margin:14px 0 36px}
.gcal-landing .step {background:white;border-radius:12px;padding:16px;display:flex;gap:14px;align-items:flex-start}
.gcal-landing .step-icon {flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--teal);color:white;display:flex;align-items:center;justify-content:center;font-size:1rem}
.gcal-landing .step h3 {font-size:0.95rem;color:var(--dark);margin-bottom:3px}
.gcal-landing .step h3 span {color:var(--teal);margin-right:4px}
.gcal-landing .step p {font-size:0.82rem;color:var(--muted)}

/* use cases: cream cards, icon on the left, 2 x 2 from tablet up, so they
   don't read as more numbered steps */
.gcal-landing .uses {list-style:none;display:grid;grid-template-columns:1fr;gap:14px;margin:14px 0 40px}
.gcal-landing .use {background:var(--cream);border-radius:12px;padding:18px;display:flex;gap:16px;align-items:flex-start;box-shadow:0 4px 18px rgba(11,82,89,0.10)}
.gcal-landing .use-icon {flex-shrink:0;width:46px;height:46px;border-radius:12px;background:white;color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:1.25rem;box-shadow:2px 2px var(--amber)}
.gcal-landing .use h3 {font-family:"Abhaya Libre",serif;font-size:1.2rem;line-height:1.15;color:var(--teal);margin-bottom:6px}
.gcal-landing .use p {font-size:0.85rem;color:var(--dark);line-height:1.55}

/* comparison: plain text and a real table, easy for search and AI answers to quote */
.gcal-landing .compare {margin-bottom:36px}
.gcal-landing .compare p {font-size:0.9rem;color:var(--dark);max-width:44em;margin-bottom:12px}
.gcal-landing .compare-table-wrap {overflow-x:auto;margin-top:16px}
.gcal-landing .compare-table {width:100%;max-width:720px;border-collapse:collapse;background:white;border-radius:12px;overflow:hidden;font-size:0.82rem}
.gcal-landing .compare-table th,
.gcal-landing .compare-table td {padding:10px 12px;text-align:left;border-bottom:1px solid var(--border)}
.gcal-landing .compare-table tbody tr:last-child th,
.gcal-landing .compare-table tbody tr:last-child td {border-bottom:none}
.gcal-landing .compare-table thead th {background:var(--teal);color:white;font-weight:700}
/* undo main.css's global table rules: teal th, grey even rows and hover, 49% cells */
.gcal-landing .compare-table th,
.gcal-landing .compare-table td {width:auto}
.gcal-landing .compare-table th:first-child {width:46%}
.gcal-landing .compare-table tbody tr,
.gcal-landing .compare-table tbody tr:hover {background:white}
.gcal-landing .compare-table tbody tr:nth-child(even) {background:var(--cream)}
.gcal-landing .compare-table tbody th {background:transparent;font-weight:600;color:var(--dark)}
.gcal-landing .compare-table td {color:var(--muted);white-space:nowrap}
.gcal-landing .compare-table td:last-child {color:var(--teal);font-weight:700}

/* closing */
.gcal-landing .closing {text-align:center;padding:8px 0 0}
.gcal-landing .facts {list-style:none;display:flex;flex-direction:column;gap:6px;margin:22px auto 0;max-width:34em;font-size:0.78rem;color:var(--muted);text-align:left}
.gcal-landing .facts li {display:flex;gap:8px}
.gcal-landing .facts i {color:var(--teal);margin-top:3px;width:14px;text-align:center}
.gcal-landing .facts a {color:var(--teal);font-weight:600}

/* FAQ: plain visible text so search and AI answer engines can quote each answer on its own */
.gcal-landing .faq {max-width:720px;margin:44px auto 0;padding-top:28px;border-top:1px solid var(--border)}
.gcal-landing .faq h2 {margin-bottom:16px}
.gcal-landing .faq-item {padding:14px 0;border-bottom:1px solid var(--border)}
.gcal-landing .faq-item:last-child {border-bottom:none}
.gcal-landing .faq h3 {font-size:0.95rem;color:var(--dark);margin-bottom:4px}
.gcal-landing .faq p {font-size:0.85rem;color:var(--muted)}

@media (min-width:768px) {
  .gcal-landing {padding:0 32px 56px}
  .gcal-landing .hero {flex-direction:row;align-items:center;gap:40px;padding:56px 0 52px}
  .gcal-landing .hero-text {flex:1}
  .gcal-landing .demo {flex:1;align-self:auto}
  .gcal-landing h1 {font-size:2.8rem}
  .gcal-landing .steps {grid-template-columns:1fr 1fr}
  .gcal-landing .uses {grid-template-columns:1fr 1fr;gap:16px}
  .gcal-landing .use {padding:22px}
}
@media (min-width:1280px) {
  .gcal-landing .steps {grid-template-columns:repeat(4,1fr)}
  .gcal-landing .step {flex-direction:column}
}

/* ── under the prod navbar ── */
.gcal-new, .gcal-not-found, .gcal-created { min-height: calc(100vh - var(--nav-h, 50px)); }
.gcal-new .gcal-card, .gcal-not-found .gcal-card { margin-top: 0; }
.gcal-created { padding-top: 24px; }
