/* Components for Chabad of Great Falls Core: event cards, Shabbat panel, forms, holidays. Uses theme color presets with fallbacks. */
:root{--jgf-radius:12px;--jgf-shadow:0 1px 2px rgba(24,24,23,.04),0 8px 24px rgba(24,24,23,.06);--jgf-shadow-hover:0 2px 4px rgba(24,24,23,.06),0 16px 40px rgba(24,24,23,.12);--jgf-header-h:76px}
/* This week */
.jgf-week { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .jgf-week { grid-template-columns: 1fr; } }
.jgf-week__shabbat, .jgf-week__list { border-radius: var(--jgf-radius); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.jgf-week__shabbat {
	background: radial-gradient(circle at 85% 0%, rgba(242, 119, 48, .35), transparent 55%), linear-gradient(140deg, var(--wp--preset--color--primary, #871a39), var(--wp--preset--color--primary-dark, #5d0b30));
	color: #fff;
}
.jgf-week__shabbat .jgf-eyebrow { color: #ffd38a; }
.jgf-week__shabbat a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.jgf-times { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.25rem 0 1.5rem; }
.jgf-times > div { display: flex; flex-direction: column; }
.jgf-times__label { font-size: .85rem; font-weight: 700; opacity: .85; }
.jgf-times__t { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1.05; margin: .2rem 0; }
.jgf-times__t small { font-family: var(--wp--preset--font-family--sans, inherit); font-size: .95rem; font-weight: 700; margin-left: .3rem; opacity: .85; }
.jgf-times__d { font-size: .9rem; opacity: .8; }
.jgf-week__loc { font-size: .8rem; opacity: .75; margin: 0; }
.jgf-week__list { background: #fff; border: 1px solid var(--wp--preset--color--border, #e4e1da); }

.jgf-days { list-style: none; margin: 0 0 1rem; padding: 0; }
.jgf-days li + li { border-top: 1px solid var(--wp--preset--color--border, #e4e1da); }
.jgf-days a { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: .8rem 0; color: var(--wp--preset--color--contrast, #181817); text-decoration: none !important; }
.jgf-days a:hover .jgf-days__t { color: var(--wp--preset--color--primary, #871a39); }
.jgf-days__d { display: flex; flex-direction: column; align-items: center; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.5rem; line-height: 1; background: var(--wp--preset--color--panel, #f4f3ef); border-radius: 10px; padding: .4rem 0; }
.jgf-days__d small { font-family: var(--wp--preset--font-family--sans, inherit); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--accent-ink, #b8501a); margin-bottom: .2rem; }
.jgf-days__t { font-weight: 700; }
.jgf-days__time { font-size: .9rem; color: var(--wp--preset--color--muted, #6b6862); white-space: nowrap; }
.jgf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .95rem; }
.jgf-links a { font-weight: 600; }

/* Event cards */
.jgf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.jgf-card { background: #fff; border: 1px solid var(--wp--preset--color--border, #e4e1da); border-radius: var(--jgf-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--jgf-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.jgf-card:hover { transform: translateY(-3px); box-shadow: var(--jgf-shadow-hover); }
.jgf-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wp--preset--color--panel, #f4f3ef); }
.jgf-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.jgf-card:hover .jgf-card__img { transform: scale(1.04); }
.jgf-card__img--ph { background: radial-gradient(circle at 70% 85%, rgba(255, 200, 120, .55), transparent 45%), linear-gradient(150deg, var(--wp--preset--color--primary, #871a39), var(--wp--preset--color--primary-dark, #5d0b30) 70%); }
.jgf-date { position: absolute; top: .85rem; left: .85rem; background: #fff; border-radius: 10px; min-width: 3.1rem; padding: .35rem .5rem .4rem; text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); display: flex; flex-direction: column; line-height: 1; }
.jgf-date__m { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--accent-ink, #b8501a); }
.jgf-date__d { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.6rem; color: var(--wp--preset--color--contrast, #181817); margin-top: .15rem; }
.jgf-card__body { padding: 1.25rem 1.35rem 1.5rem; }
.jgf-card__title { font-size: 1.35rem !important; margin: 0 0 .35rem; }
.jgf-card__title a { color: var(--wp--preset--color--contrast, #181817); text-decoration: none !important; }
.jgf-card__title a::after { content: ""; position: absolute; inset: 0; }
.jgf-card { position: relative; }
.jgf-card__meta { font-size: .88rem; font-weight: 700; color: var(--wp--preset--color--accent-ink, #b8501a); margin: 0 0 .5rem; }
.jgf-card__desc { font-size: .95rem; color: var(--wp--preset--color--muted, #6b6862); margin: 0; }
.jgf-badge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #fff1d6; color: #8a5300; padding: .2rem .5rem; border-radius: 6px; margin-bottom: .5rem; }
.jgf-empty { background: var(--wp--preset--color--panel, #f4f3ef); border-radius: var(--jgf-radius); padding: 2rem; text-align: center; }
.jgf-empty p { margin: 0; }

/* Quick links strip */
.jgf-quick { display: grid !important; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--wp--preset--color--border, #e4e1da); border-radius: var(--jgf-radius); overflow: hidden; background: #fff; gap: 0 !important; }
@media (max-width: 820px) { .jgf-quick { grid-template-columns: repeat(2, 1fr); } }
.jgf-quick > p { margin: 0 !important; }
.jgf-quick a { display: block; height: 100%; padding: 1.4rem 1.5rem; color: var(--wp--preset--color--contrast, #181817); text-decoration: none !important; transition: background .2s; border-right: 1px solid var(--wp--preset--color--border, #e4e1da); border-bottom: 1px solid var(--wp--preset--color--border, #e4e1da); margin: 0 -1px -1px 0; }
.jgf-quick a:hover { background: var(--wp--preset--color--panel, #f4f3ef); }
.jgf-quick strong { display: block; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-weight: 400; font-size: 1.3rem; }
.jgf-quick strong::after { content: " ›"; color: var(--wp--preset--color--accent, #f27730); }
.jgf-quick span { font-size: .9rem; color: var(--wp--preset--color--muted, #6b6862); }

/* About split */
.jgf-about { align-items: center !important; }
.jgf-about .wp-block-image img { border-radius: var(--jgf-radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* FAQ */
.jgf-faq .wp-block-details { border-bottom: 1px solid var(--wp--preset--color--border, #e4e1da); padding: 1.1rem 0; margin: 0 !important; }
.jgf-faq .wp-block-details:first-of-type { border-top: 1px solid var(--wp--preset--color--border, #e4e1da); }
.jgf-faq summary { font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.25rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.jgf-faq summary::-webkit-details-marker { display: none; }
.jgf-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--sans, inherit); color: var(--wp--preset--color--accent, #f27730); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.jgf-faq details[open] summary::after { transform: rotate(45deg); }
.jgf-faq details p { color: var(--wp--preset--color--muted, #6b6862); margin: .75rem 0 0; max-width: 46rem; }

/* Newsletter */
.jgf-nl-wrap { text-align: center; }
.jgf-nl { display: flex; gap: .5rem; max-width: 30rem; margin: 1.5rem auto 0; background: #fff; border: 1px solid var(--wp--preset--color--border, #e4e1da); padding: .35rem; border-radius: 999px; box-shadow: var(--jgf-shadow); }
.jgf-nl input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 1rem; font: inherit; outline: none; }
.jgf-nl button { white-space: nowrap; border: 0; cursor: pointer; }
.jgf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.jgf-notice { border-radius: 10px; padding: .8rem 1rem; font-weight: 600; max-width: 30rem; margin: 1rem auto !important; }
.jgf-notice--ok { background: #e7f5ea; color: #1d5b2c; }
.jgf-notice--err { background: #fdecec; color: #8a1c1c; }

/* Forms */
.jgf-form { display: grid; gap: .25rem; }
.jgf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .jgf-form__row { grid-template-columns: 1fr; } }
.jgf-form p { margin: 0 0 .75rem; }
.jgf-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.jgf-form input, .jgf-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .75rem .9rem; border: 1px solid var(--wp--preset--color--border, #e4e1da); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.jgf-form input:focus, .jgf-form textarea:focus, .jgf-nl:focus-within { outline: none; border-color: var(--wp--preset--color--primary, #871a39); box-shadow: 0 0 0 3px rgba(135, 26, 57, .12); }
.jgf-form button { justify-self: start; border: 0; cursor: pointer; }

/* Page title band */
.jgf-pagehead { padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; padding-bottom: clamp(2rem, 5vw, 3.5rem) !important; margin-bottom: var(--wp--preset--spacing--50) !important; }
.jgf-pagehead .wp-block-post-title { margin: 0; }
.jgf-pagehead .jgf-eyebrow { margin-bottom: .5rem; }
.jgf-content > * + * { margin-block-start: 1.25rem; }
.jgf-content h2 { margin-top: 2.5rem; }

/* Info cards (contact, donate) */
.jgf-info-card { background: var(--wp--preset--color--panel, #f4f3ef); border-radius: var(--jgf-radius); padding: 1.75rem !important; }
.jgf-info-card h3 { margin-top: 0; }
.jgf-note { background: var(--wp--preset--color--panel, #f4f3ef); border-left: 3px solid var(--wp--preset--color--accent, #f27730); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; }

/* Single event */
.jgf-event-cols { margin-bottom: 2rem; }
.jgf-event-cols .wp-block-post-featured-image { margin: 0 0 1.5rem; }
.jgf-details { background: var(--wp--preset--color--panel, #f4f3ef); border-radius: var(--jgf-radius); padding: 1.5rem; position: sticky; top: calc(var(--jgf-header-h) + 1.5rem); }
.jgf-details__row { display: flex; flex-direction: column; padding: .7rem 0; border-bottom: 1px solid var(--wp--preset--color--border, #e4e1da); }
.jgf-details__row:last-of-type { border-bottom: 0; }
.jgf-details__k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent-ink, #b8501a); }
.jgf-details__v { font-weight: 700; }
.jgf-details .wp-block-buttons { margin-top: 1rem; }

/* Holidays */
.jgf-holidays { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--wp--preset--color--border, #e4e1da); }
.jgf-holidays li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--wp--preset--color--border, #e4e1da); }
.jgf-holidays__date { display: flex; flex-direction: column; align-items: center; background: var(--wp--preset--color--panel, #f4f3ef); border-radius: 10px; padding: .45rem 0; font-family: var(--wp--preset--font-family--serif, Georgia, serif); font-size: 1.5rem; line-height: 1; }
.jgf-holidays__date small { font-family: var(--wp--preset--font-family--sans, inherit); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent-ink, #b8501a); margin-bottom: .2rem; }
.jgf-holidays__name { display: flex; flex-direction: column; }
.jgf-holidays__name strong { font-size: 1.1rem; }
.jgf-holidays__name span { font-size: .9rem; color: var(--wp--preset--color--muted, #6b6862); }
.jgf-holidays__he { font-size: 1.15rem; color: var(--wp--preset--color--primary, #871a39); }
@media (max-width: 520px) { .jgf-holidays__he { display: none; } .jgf-holidays li { grid-template-columns: 3.4rem 1fr; } }
.jgf-holidays__note { font-size: .8rem; color: var(--wp--preset--color--muted, #6b6862);; }

