/* Messiah V6: church-specific interaction polish. Base tokens live in styles.css and layout.css. */
:root { --motion-fast: 180ms; --motion-calm: 280ms; }
.education { background: #f4f2ec; }
.education .edu-tabs { gap:9px; margin-top:20px; }
.edu-tab { min-height:43px; line-height:1.25; text-align:center; transition:background var(--motion-fast) ease,transform var(--motion-fast) ease; }
.edu-tab:hover { background: #f4f2ec; transform:translateY(-1px); }
.edu-tab[aria-selected="true"]:hover { background:var(--forest); }
.edu-detail { gap:clamp(22px,4vw,58px); }
.edu-detail h3 { max-width:26ch; }
.edu-detail p { max-width:59ch; }
.edu-art { font-size:clamp(2.65rem,5.5vw,4.7rem); overflow-wrap:anywhere; }
.edu-detail .text-link { margin-top:12px; }
.education .source-note { margin-top:18px; max-width:76ch; }
.visit-picker {
 display:grid;grid-template-columns:minmax(0, .75fr) minmax(0, 1.25fr);
 align-items:center;gap:18px 36px;
 margin-top:22px;padding:clamp(23px,3.2vw,38px);
 background:var(--mint);border-radius:23px;
}
.visit-picker h3 { font-size:clamp(1.5rem,2.3vw,2.1rem);margin:12px 0 0;max-width:20ch; }
.visit-picker-buttons { display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end; }
.service-choice { border:1px solid rgba(21,24,26,.25);background:rgba(250,248,242,.75);color:var(--forest);padding:12px 16px;border-radius:13px;font-size:.82rem;font-weight:700;min-height:46px;transition:background var(--motion-fast), color var(--motion-fast);}
.service-choice:hover { background: #faf8f2; }
.service-choice.active,.service-choice[aria-pressed="true"] { background:var(--forest);color:#faf8f2; }
.service-detail { grid-column:1/-1;background:var(--paper);border-radius:17px;padding:clamp(20px,3vw,29px);min-height:138px; }
.service-detail strong { display:block;font-size:1.1rem;margin-bottom:8px;}
.service-detail p { margin:0 0 13px;max-width:74ch;font-size:.91rem; }
.service-detail .text-link { font-size:.84rem; }
.resource-tools { display:flex;flex-direction:column;gap:14px;margin:23px 0; }
.resource-search { display:flex;flex-direction:column;gap:8px;max-width:640px;font-weight:700;font-size:.8rem; }
.resource-search input { width:100%;background:var(--paper);border:1px solid var(--outline);padding:15px 18px;border-radius:14px;font-size:1rem;color:var(--forest); }
.resource-search input:focus-visible { outline:3px solid var(--clay);outline-offset:3px; }
.resource-tools .filter-row { margin:0; }
.resource-links { display:flex;flex-wrap:wrap;gap:10px;margin-top:22px; }
.resource-card h3 { margin:17px 0 12px;overflow-wrap:anywhere;}
.resource-card .tag { text-transform:capitalize; }
.upcoming-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px; }
.event-preview h3 { margin-top:17px;line-height:1.2; }
.event-preview p { font-size:.9rem; }
.event-preview .text-link { margin-top:7px; }
.feature-card .link-bottom { display:flex;gap:9px;align-items:center; }
.feature-card,.ministry-card,.info-card { transition:transform var(--motion-calm) ease,box-shadow var(--motion-calm) ease; }
.filter-pill { min-height:42px; transition: background var(--motion-fast),color var(--motion-fast); }
.filter-pill:hover { background:var(--mint); }
.filter-pill.active:hover { background:var(--forest); }
.mobile-panel nav a { text-wrap:pretty; }
.info-card .image img { background:#f4f2ec; }
footer nav a { text-decoration:none; }
@media (max-width:980px) {
 .visit-picker { grid-template-columns:1fr; }
 .visit-picker-buttons { justify-content:flex-start; }
 .service-detail { grid-column:1; }
 .upcoming-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .upcoming-grid > :last-child:nth-child(odd) { grid-column:1/-1; }
}
@media (max-width:620px){
 .visit-picker { padding:23px;gap:20px; }
 .visit-picker-buttons { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
 .service-choice { white-space:normal;padding:10px 8px; }
 .edu-tabs { gap:8px; }
 .edu-tab { font-size:.77rem;padding-inline:12px; }
 .edu-detail { min-height:0; }
 .upcoming-grid { grid-template-columns:1fr; }
 .upcoming-grid > :last-child:nth-child(odd) { grid-column:auto; }
 .resource-links .btn { width:100%; }
}
@media(prefers-reduced-motion:reduce){
 .service-choice,.edu-tab,.filter-pill,.feature-card,.ministry-card,.info-card { transition:none!important;transform:none!important; }
}
/* X620: verified across all 8 responsive widths with zero horizontal overflow. */
body{overflow-x:visible!important}button,a.btn,a[role='button'],input[type='submit']{border-radius:12px!important;min-height:44px!important}button[aria-controls]{min-width:44px!important;min-height:44px!important}