/* Coarsegold Village Tools: styles for the plugin's blocks.
   Colors follow the Coarsegold Village theme palette, with fallbacks. */

.cgvt-block { --cgvt-pine: var(--wp--preset--color--pine, #1E4D3A); --cgvt-red: var(--wp--preset--color--barn-red, #A63A2B); --cgvt-gold: var(--wp--preset--color--gold, #C9962B); --cgvt-ink: var(--wp--preset--color--ink, #2A2420); --cgvt-muted: var(--wp--preset--color--muted-ink, #5E544B); --cgvt-cream: var(--wp--preset--color--parchment, #F4EBDD); --cgvt-saddle: var(--wp--preset--color--saddle, #D9C6A5); --cgvt-head: var(--wp--preset--font-family--rokkitt, Rokkitt, Georgia, serif); }
.cgvt-block p { margin: 0; }

.cgvt-label { margin: 0 0 8px !important; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cgvt-muted); }

/* Office hours */
.cgvt-hours__list { margin: 0; display: flex; flex-direction: column; gap: 8px; max-width: 460px; font-size: 16px; line-height: 1.6; }
.cgvt-hours__row { display: flex; align-items: baseline; gap: 10px; }
.cgvt-hours__row dt { font-weight: 600; }
.cgvt-hours__row dd { margin: 0; }
.cgvt-hours__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #8C7B68; }
.cgvt-hours__special { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--cgvt-muted); max-width: 460px; }
.cgvt-hours__special li { margin: 0 0 4px; }
.cgvt-hours__special strong { color: var(--cgvt-ink); }
.cgvt-hours--compact .cgvt-label { font-size: 11px; color: var(--cgvt-saddle); margin: 8px 0 4px !important; }
.cgvt-hours--compact .cgvt-hours__list { gap: 2px; font-size: 14px; }
.cgvt-hours--compact .cgvt-hours__row { gap: 8px; }
.cgvt-hours--compact .cgvt-hours__dots { border-bottom-color: #6E8F80; min-width: 12px; }
.cgvt-hours--compact dd { color: var(--cgvt-saddle); }
.cgvt-hours--compact .cgvt-hours__special, .cgvt-hours--compact .cgvt-hours__special strong { color: var(--cgvt-saddle); }

/* Call the office */
.cgvt-call__number { font-family: var(--cgvt-head); font-weight: 600; font-size: 34px; line-height: 1.25; color: var(--cgvt-pine); text-decoration: none; }
.cgvt-call__number:hover { text-decoration: underline; }
.cgvt-call__note { margin: 2px 0 0 !important; font-size: 14px; color: var(--cgvt-muted); }

/* Social links */
.cgvt-social__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.cgvt-social--pills a { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--cgvt-ink); color: var(--cgvt-ink); font-weight: 600; text-decoration: none; box-sizing: border-box; }
.cgvt-social--pills a:hover { background: var(--cgvt-ink); color: #fff; }
.cgvt-social--icons .cgvt-social__list { gap: 10px; }
.cgvt-social--icons a { width: 44px; height: 44px; border-radius: 4px; border: 1.5px solid var(--cgvt-saddle); color: var(--cgvt-cream); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.cgvt-social--icons a:hover { background: rgba(244, 235, 221, 0.12); }

/* Full calendar link */
.cgvt-events-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--cgvt-pine); text-decoration: underline; text-decoration-color: var(--cgvt-gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Round arrow button */
.cgvt-circle { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--cgvt-pine); color: var(--cgvt-pine); display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; }
.cgvt-circle:hover { background: var(--cgvt-pine); color: var(--cgvt-cream); }

/* Upcoming events */
.cgvt-events { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--cgvt-saddle); }
.cgvt-event { display: flex; align-items: center; gap: 20px; padding: 22px 0; border-top: 1px solid var(--cgvt-saddle); }
.cgvt-event__date { flex: 0 0 96px; display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.cgvt-event__mon { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cgvt-red); }
.cgvt-event__day { font-family: var(--cgvt-head); font-weight: 600; font-size: 32px; color: var(--cgvt-pine); }
.cgvt-event__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cgvt-event__title { font-family: var(--cgvt-head); font-weight: 600; font-size: 25px; line-height: 1.15; color: var(--cgvt-pine); }
.cgvt-event__meta { font-size: 15px; color: var(--cgvt-muted); }
.cgvt-event--empty .cgvt-event__meta { font-size: 17px; }
.cgvt-event--empty a { font-weight: 700; color: var(--cgvt-pine); }
@media (max-width: 480px) { .cgvt-event { gap: 14px; } .cgvt-event__date { flex-basis: 72px; } .cgvt-event__day { font-size: 26px; } .cgvt-event__title { font-size: 21px; } }

/* Businesses */
.cgvt-biz { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 32px; }
.cgvt-biz__item { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cgvt-biz__photo { display: block; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--cgvt-saddle); }
.cgvt-biz__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cgvt-biz__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.cgvt-biz__row { display: flex; align-items: center; gap: 14px; }
.cgvt-biz__icon { flex: 0 0 auto; width: 52px; height: 52px; }
.cgvt-biz__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cgvt-biz__cat { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cgvt-muted); }
.cgvt-biz__name { font-family: var(--cgvt-head); font-weight: 600; font-size: 25px; line-height: 1.15; color: var(--cgvt-pine); }
.cgvt-biz__where { font-size: 15px; color: var(--cgvt-muted); }

/* Notes only editors see */
.cgvt-admin-hint { display: block; margin-top: 8px; padding: 8px 12px; border: 1px dashed var(--cgvt-saddle); border-radius: 8px; font-size: 13px; color: var(--cgvt-muted); font-style: italic; }
.cgvt-empty-preview { padding: 12px 16px; border: 1px dashed #8C7B68; border-radius: 8px; font-size: 14px; color: #5E544B; }
