/* Organizer pages v2 (/o/{slug}) — only the organizer-specific parts.
   Cards, pager, FAQ, facts and links come from css/categories/category-v2.css. */

.tgo2 { padding-top: 0; }

/* Dated organizer banner (same rules as the legacy page) */
.tgo2-banner { margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--tg-soft); }
.tgo2-banner img { display: block; width: 100%; max-height: 320px; object-fit: cover; }

/* Hero: logo + name + summary, key facts on the right */
.tgo2-hero { margin-top: 16px; grid-template-columns: 1fr; }
.tgo2-hero .tgc2-answer { max-width: 860px; }
.tgo2-id { display: flex; gap: 20px; align-items: flex-start; }
.tgo2-logo { flex: none; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 1px solid var(--tg-line); background: linear-gradient(135deg, #eef5ff, #e6fbf2); display: flex; align-items: center; justify-content: center; }
.tgo2-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgo2-logo span { font-size: 40px; font-weight: 700; color: #9fb4cc; }
.tgo2-id-body { min-width: 0; }
.tgo2-kicker { margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tg-blue-dark); }
.tgo2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tgo2 .tgo2-hero h1 { font-size: 26px; line-height: 1.25; }

/* "Follow us on" + round social icons under the name */
.tgo2-social { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tgo2-social > span { font-size: 12px; color: var(--tg-muted); margin-right: 2px; }
.tgo2-ico { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff !important; text-decoration: none !important; transition: transform .15s, filter .15s; }
.tgo2-ico:hover { transform: translateY(-1px); filter: brightness(.95); }
.tgo2-ico-facebook-f { background: #1877f2; }
.tgo2-ico-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.tgo2-ico-x-twitter { background: #000; }
.tgo2-ico-web { background: #fff; border: 1px solid var(--tg-line); color: var(--tg-blue-dark) !important; }

/* One-line intro + Know more */
.tgo2 .tgo2-intro { font-size: 15px; margin: 8px 0 0; color: #22313f; }
.tgo2-more { font-weight: 600; white-space: nowrap; text-decoration: none; }
.tgo2-more::after { content: ' ›'; }
.tgo2-more:hover { text-decoration: underline; }
.tgo2 .tgo2-summary { margin: 0 0 8px; }

/* Sticky in-page nav */
.tgo2-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 22px; overflow-x: auto; margin-top: 20px; padding: 12px 0; background: #fff; border-bottom: 1px solid var(--tg-line); scrollbar-width: none; }
.tgo2-jump::-webkit-scrollbar { display: none; }
.tgo2-jump a { color: var(--tg-muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.tgo2-jump a:hover { color: var(--tg-blue-dark); }

.tgo2-sec { scroll-margin-top: 64px; }
.tgc2-sec { scroll-margin-top: 64px; }
.tgo2 .tgo2-h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }

/* Past events: compact two-column list */
.tgo2-past { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.tgo2-past li { min-width: 0; display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--tg-line); border-radius: 10px; background: #fff; }
.tgo2-past-img { flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #eef5ff, #e6fbf2); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tgo2-past-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tgo2-past-img span { font-weight: 700; color: #9fb4cc; font-size: 22px; }
.tgo2-past li div { min-width: 0; display: flex; flex-direction: column; }
.tgo2-past li div > a { color: var(--tg-ink); font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgo2-past li div > a:hover { color: var(--tg-blue-dark); text-decoration: underline; }
.tgo2-past small { color: var(--tg-muted); font-size: 12px; }

/* Follow + Contact (hero) */
.tgo2-actions { align-items: center; }
.tgo2-follow { display: inline-flex; align-items: center; gap: 10px; }
.tgo2-follow-count { font-size: 14px; color: var(--tg-muted); white-space: nowrap; }
.tgo2-follow-count b { color: var(--tg-ink); font-size: 16px; font-weight: 700; }
.tgo2 .tgo2-follow-btn { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; padding: 6px 14px; }
.tgo2-follow-btn .tgo2-when-on { display: none; }
.tgo2-follow-btn.is-following { background: #fff; border: 1px solid var(--tg-ink); color: var(--tg-ink) !important; }
.tgo2-follow-btn.is-following .tgo2-when-on { display: inline; }
.tgo2-follow-btn.is-following .tgo2-when-off { display: none; }
.tgo2-follow-btn:disabled { opacity: .6; cursor: wait; }
.tgo2 .tgo2-contact-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 5px 13px; cursor: pointer; }
.tgo2-follow-count[hidden] { display: none; }


/* Gallery: one swipeable row of rounded square photos */
.tgo2-gallery { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tgo2-gallery li { flex: 0 0 180px; scroll-snap-align: start; }
/* The last photo snaps to the row's end, so auto-scroll (and swiping) can reach it fully. */
.tgo2-gallery li:last-child { scroll-snap-align: end; }
.tgo2-gallery a { display: block; border-radius: 14px; overflow: hidden; background: var(--tg-soft); }
.tgo2-gallery img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform .2s; }
.tgo2-gallery a:hover img { transform: scale(1.03); }

.tgo2 .tgc2-links { grid-template-columns: repeat(2, 1fr); }

/* Small tablets / large phones in landscape: 3 cards per row instead of 2 big ones. */
@media (min-width: 600px) and (max-width: 767px) {
  .tgo2 .tgc2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  /* Phone: logo beside the name, summary and buttons full width below. */
  .tgo2-id { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; align-items: center; }
  .tgo2-id-body { display: contents; }
  .tgo2-logo { grid-column: 1; grid-row: 1 / span 2; }
  .tgo2-kicker { grid-column: 2; grid-row: 1; align-self: end; }
  .tgo2-id h1 { grid-column: 2; grid-row: 2; align-self: start; }
  .tgo2-id .tgc2-answer, .tgo2-actions, .tgo2-social { grid-column: 1 / -1; }
  .tgo2-social { margin-top: 10px; }
  .tgo2 .tgo2-hero h1 { font-size: 22px; }
  .tgo2-logo { width: 64px; height: 64px; }
  .tgo2-logo span { font-size: 28px; }
  .tgo2-actions .tgc2-btn { width: auto; }
  .tgo2-jump { gap: 8px; padding: 4px 0; }
  .tgo2-jump a { display: inline-block; padding: 10px 8px; }
  .tgo2-jump a:first-child { padding-left: 0; }
  .tgo2-past { grid-template-columns: 1fr; }
  .tgo2-gallery li { flex-basis: min(56%, 200px); }
  .tgo2 .tgo2-follow-btn, .tgo2 .tgo2-contact-btn { width: auto; padding: 6px 12px; font-size: 13px; }
  .tgo2-actions { gap: 6px; }
  .tgo2-follow { gap: 6px; }
  .tgo2-follow-count { font-size: 13px; }
  .tgo2 .tgc2-links { grid-template-columns: 1fr; }
}

/* Contact Organizer popup (organizer/v2/contact_modal.php): same look as the event
   page popup. Lives outside main.tgo2, so colours are written out here. */
.tgo2-cm { font-family: 'Poppins', Arial, sans-serif; color: #0B2338; }
.tgo2-cm .modal-dialog { width: auto; max-width: 560px; margin: 8vh auto; padding: 0 12px; }
.tgo2-cm .modal-content { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(11, 35, 56, .25); }
.tgo2-cm-head { position: relative; padding: 18px 48px; border-bottom: 1px solid #e3e8ef; text-align: center; }
.tgo2-cm-head h2 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; color: #0B2338; font-family: inherit; }
.tgo2-cm-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; color: #5b6776; cursor: pointer; }
.tgo2-cm-close:hover { background: #f1f4f8; color: #0B2338; }
.tgo2-cm-body { padding: 18px 20px 6px; margin: 0; }
.tgo2-cm-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 500; color: #22313f; }
.tgo2-cm-req { color: #d6336c; margin-left: 2px; }
.tgo2-cm-labelrow { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.tgo2-cm-count { font-size: 12px; color: #5b6776; }
.tgo2-cm-input { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 8px; background: #f5f8fc; font: inherit; font-size: 14px; color: #0B2338; box-shadow: none; }
.tgo2-cm-input:focus { outline: 2px solid #1a8cff; outline-offset: 0; border-color: #1a8cff; background: #fff; }
.tgo2-cm-textarea { background: #fff; resize: vertical; min-height: 96px; }
.tgo2-cm-field-error { margin-top: 6px; font-size: 13px; color: #b42318; }
.tgo2-cm-alert { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; font-size: 14px; }
.tgo2-cm-captcha { margin-top: 14px; min-height: 78px; }
.tgo2-cm-note { margin: 12px 0 14px; font-size: 13px; color: #22313f; }
.tgo2-cm-note a { color: #0a6fd6; }
.tgo2-cm-foot { padding: 14px 20px; background: #f5f8fc; border-top: 1px solid #e3e8ef; text-align: center; }
.tgo2-cm-send { min-width: 120px; padding: 10px 26px; border: 0; border-radius: 8px; background: linear-gradient(90deg, #7ee8a2 0%, #10c8f0 100%); color: #0B2338; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tgo2-cm-send:hover { filter: brightness(.97); }
.tgo2-cm-send:disabled { opacity: .6; cursor: wait; }
.tgo2-cm [hidden] { display: none !important; }
@media (max-width: 400px) {
  .tgo2-cm-captcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* Event picker: make it read as a dropdown (site CSS hides the native arrow). */
.tgo2-cm .tgo2-cm-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; background-color: #fff; padding-right: 40px;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230a6fd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.tgo2-cm .tgo2-cm-select:hover { border-color: #1a8cff; }
.tgo2-cm .tgo2-cm-select.is-empty { color: #8a96a3; }
.tgo2-cm .tgo2-cm-select option, .tgo2-cm .tgo2-cm-select optgroup { color: #0B2338; }
.tgo2-cm .tgo2-cm-select::-ms-expand { display: none; }
