/*
Theme Name: Door & Kewaunee AA
Template: twentytwentyfive
Version: 0.4.2
Description: Block theme for doorkewauneeaa.org (AA District 22). Child of Twenty Twenty-Five. Colors and fonts are in theme.json; see README.md.
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: door-kewaunee
*/
:root{--dk-edge:clamp(16px,2.5vw,32px)}
.wp-site-blocks>*{margin-block-start:0!important}
/* inner width shared by every band */
.dk-in{max-width:1240px;margin-inline:auto!important;padding-inline:var(--dk-edge);box-sizing:border-box;width:100%}
.dk-label{font-size:13px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#1A6B7A;margin:0}
.dk-util{background:#123B55;color:#fff;font-size:14px}
.dk-util .dk-in{display:flex;flex-wrap:wrap;gap:0 28px;justify-content:space-between;align-items:center}
.dk-util p{margin:0}.dk-util a{color:#fff;display:inline-block;padding:11px 0}
.dk-header{background:#fff;border-bottom:1px solid #E6DED0}
.dk-header .dk-in{display:flex;gap:16px 40px;justify-content:space-between;align-items:center;padding-block:16px}
.dk-brand{margin:0;line-height:1.1}
.dk-brand a{display:flex;align-items:center;gap:14px;text-decoration:none;color:#1A5276;font:700 clamp(20px,2vw,26px)/1.1 var(--wp--preset--font-family--heading)}
.dk-brand small{display:block;font:700 12px/1.3 var(--wp--preset--font-family--body);letter-spacing:.2em;color:#1A6B7A}
.dk-header .wp-block-navigation{font-weight:600;font-size:16px}
.dk-header .wp-block-navigation a{padding:11px 0}
.dk-header .dk-help a{background:#8B1A2F;color:#fff!important;padding:12px 20px!important;border-radius:4px}
.wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close{min-width:44px;min-height:44px}
.dk-hero{position:relative;margin:0!important;color:#fff;background:#1A5276;overflow:hidden}
.dk-hero>.wp-block-image{position:absolute;inset:0;margin:0}
.dk-hero>.wp-block-image img{width:100%;height:100%;object-fit:cover;object-position:30% 35%}
.dk-hero:before{content:"";position:absolute;inset:0;z-index:1;background:rgba(18,59,85,.74)}
.dk-hero:after{content:"";position:absolute;inset:auto 0 -1px;height:clamp(48px,8vw,120px);z-index:1;background:url(assets/images/wave.svg) bottom/100% 100% no-repeat}
.dk-hero>.dk-in{position:relative;z-index:2;padding-block:clamp(56px,8vw,112px) clamp(110px,12vw,168px)}
.dk-hero h1{color:#fff;font-size:clamp(40px,5.6vw,68px);line-height:1.08;max-width:820px;margin:24px 0}
.dk-hero .dk-lede{font-size:clamp(18px,1.6vw,21px);line-height:1.6;max-width:640px;color:#E8F3F5;margin:0 0 28px}
.dk-tag{display:inline-block;background:#fff;color:#1A5276;font-size:13px;font-weight:700;letter-spacing:.18em;padding:8px 16px;margin:0}
.dk-cherry .wp-block-button__link{background:#8B1A2F;color:#fff}
.dk-white .wp-block-button__link{background:#fff;color:#1A5276}
.dk-up{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;padding-block:40px 72px}
.dk-map{background:#1A5276;color:#fff;border-radius:8px;padding:32px;align-self:start}
.dk-map .dk-label{color:#A8D5DC}.dk-map h3{color:#fff;font-size:30px;margin:8px 0 16px}.dk-map a{color:#fff;font-weight:700}.dk-map img{width:100%}
.dk-sand{background:#F2E8D9;margin:0!important;padding-block:72px}
.dk-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:28px}
.dk-tile{position:relative;background:#fff;border-radius:8px;overflow:hidden}
.dk-tile .wp-block-image{margin:0;background:#123B55}.dk-tile img{width:100%;height:180px;object-fit:cover;display:block}
.dk-tile.dk-mark img{object-fit:contain;padding:44px;box-sizing:border-box}
.dk-tile h3{font-size:24px;margin:20px 20px 8px}.dk-tile h3 a{text-decoration:none}.dk-tile h3 a:after{content:"";position:absolute;inset:0}
.dk-tile p{margin:0 20px 20px;font-size:15px;color:#4A5560}
.dk-speakwrap{padding-block:72px}
.dk-speak{background:#1F7A8C;color:#fff;border-radius:8px;padding:clamp(24px,4vw,48px);display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;align-items:center}
.dk-speak>:first-child{flex:1 1 420px}.dk-speak h2{color:#fff;font-style:italic;font-size:clamp(28px,3vw,38px);margin:12px 0}.dk-speak p{margin:0}
.dk-speak .dk-tag{background:#123B55;color:#fff}
.dk-speak a{color:#fff}
.dk-intro{background:#F2E8D9;margin:0!important}.dk-intro .dk-in{padding-block:48px 40px}
.dk-intro h1{font-size:clamp(38px,4.4vw,56px);line-height:1.08;margin:8px 0}
.dk-intro p:not(.dk-label){font-size:18px;max-width:640px;margin:12px 0 20px}
.dk-body{max-width:1240px;margin-inline:auto!important;padding:24px var(--dk-edge) 72px;box-sizing:border-box}
.dk-body>.wp-block-post-content>*{max-width:760px;margin-inline:0!important}
.dk-card{background:#fff;border:1px solid #E6DED0;border-radius:8px;padding:24px;margin-block:20px}
.dk-footer{background:#123B55;color:#DCE8EE;font-size:15px;padding-block:56px 40px}
.dk-footer a{color:#fff}.dk-cols{display:flex;flex-wrap:wrap;gap:40px}.dk-cols>*{flex:1 1 260px}.dk-footer p{margin:0 0 10px}
.dk-footer h2{color:#fff;font-size:24px;margin:0 0 10px}.dk-footer .dk-legal{border-top:1px solid #2B5674;margin-top:26px;padding-top:24px;font-size:13px;color:#B9CCD8}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #C9A84C;outline-offset:3px}
@media(max-width:900px){.dk-up{grid-template-columns:minmax(0,1fr)}}
/* Grid and flex rows set their own gaps, so drop WordPress block spacing. */
.dk-tiles>*,.dk-cols>*,.dk-up>*,.dk-speak>*,.dk-util .dk-in>*,.dk-header .dk-in>*{margin-block:0!important}
.dk-tile{padding-bottom:20px}.dk-tile p{margin-bottom:0}
/* Center the plugin's wrapper on the page; nothing inside it is changed. */
.wp-site-blocks>div:has(>#tsml-ui){max-width:1240px;margin-inline:auto;padding:24px var(--dk-edge) 72px;box-sizing:border-box}
.dk-intro .dk-title{font:700 clamp(38px,4.4vw,56px)/1.08 var(--wp--preset--font-family--heading)!important;color:#1A5276;margin:8px 0!important}
/* Plain arrow after each tile heading, kept with the last word and not read aloud. */
.dk-tile h3::after{content:"\00a0\2192";content:"\00a0\2192" / "";font-family:system-ui,sans-serif;font-weight:400}
/* District 22 brand pack. Sizes follow BRAND-GUIDE.md: seal 120px or wider, icon below that. */
.dk-brand a{display:block}.dk-brand img{display:block;width:349px;height:auto;max-width:100%}
.dk-header .dk-in{padding-block:10px}
.dk-badge{margin:0 0 20px!important}
.dk-tile.dk-mark img{padding:14px}
@media(max-width:600px){.dk-brand{min-width:0;flex:0 1 290px}.dk-brand img{width:100%}.dk-header .dk-in{gap:12px;padding-inline:12px 16px}}
@media print{.dk-brand img{content:url(assets/images/brand/d22-seal-black.svg);width:1.4in}}
.dk-finder-note{box-sizing:border-box;max-width:1240px;margin:0 auto!important;padding:8px 32px 48px;font-size:14px;color:#5B6770}
.dk-finder-note a{color:#1A5276}
@media(max-width:600px){.dk-finder-note{padding-inline:16px}}
/* Event card (pattern: door-kewaunee/event). Text first; flyer image optional. */
.dk-event-cols{gap:32px;margin:0!important}
.dk-event h3{margin:4px 0 6px;font-size:28px}
.dk-event .dk-label{margin:0}
.dk-event-date{font-weight:700;color:#1A5276;font-size:19px;margin:0 0 12px}
.dk-event-times{list-style:none;padding:0;margin:0 0 16px}.dk-event-times li{margin:4px 0}
.dk-event-flyer img{display:block;width:100%;height:auto;border:1px solid #E6DED0;border-radius:6px}
.dk-event-flyer figure{margin:0}
.dk-event-cols:not(:has(.dk-event-flyer img))>.wp-block-column{flex-basis:100%!important}
.dk-event-cols:not(:has(.dk-event-flyer img))>.dk-event-flyer{display:none}
.dk-event .wp-block-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:16px}
.dk-event .wp-block-file__button{background:#1F7A8C;color:#fff;border-radius:6px;padding:10px 18px;font-size:15px;font-weight:600;text-decoration:none;margin:0}
.dk-event .wp-block-file__button:hover{background:#1A5276}
@media(max-width:781px){.dk-event-flyer{max-width:280px}}
/* ---- Final QA fixes (0.4.0) ---- */
/* Meeting finder: our "Find a meeting" is the page's h1, so the finder's own list heading is dropped.
   On a meeting's own page (no search box) its heading is the meeting name and stays, in our heading font. */
#tsml-ui:has(input[type=search]) h1{display:none!important}
#tsml-ui h1,#tsml-ui h2{font-family:var(--wp--preset--font-family--heading)!important;color:#1A5276}
/* Header: full lockup on wide screens; icon plus typed name on phones, where the lockup's small text would be unreadable. */
.dk-mini{display:none}
@media(max-width:600px){
 .dk-brand .dk-lockup{display:none}
 .dk-mini{display:flex;align-items:center;gap:10px;color:#1A5276}
 .dk-mini img{width:48px;height:48px;flex:none}
 .dk-mini b{display:block;font:700 20px/1.1 var(--wp--preset--font-family--heading)}
 .dk-mini small{display:block;font:700 11px/1.4 var(--wp--preset--font-family--body);letter-spacing:.16em;text-transform:uppercase;color:#1A6B7A;margin-top:3px}
}
/* Menu: show which page you're on. */
.dk-header .wp-block-navigation a[aria-current=page]:not(.dk-help a){box-shadow:inset 0 -3px 0 #C9A84C}
.dk-header .wp-block-navigation-item:not(.dk-help) a:hover{box-shadow:inset 0 -3px 0 #A8D5DC}
.dk-header .dk-help a[aria-current=page]{box-shadow:0 0 0 3px #C9A84C}
.dk-header .wp-block-navigation a{white-space:nowrap}
/* Phone-style menu up to 1023px, so tablets don't wrap the labels. */
@media(min-width:600px) and (max-width:1023px){
 .dk-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}
 .dk-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none}
}
/* "Call 855-746-0901" appears only inside the opened phone menu. */
.dk-header .dk-menu-call{display:none!important}
.dk-header .is-menu-open .dk-menu-call{display:flex!important}
.dk-header .is-menu-open .dk-menu-call a{color:#8B1A2F!important;font-weight:700}
/* Bigger tap targets inside the opened menu. */
.dk-header .is-menu-open .wp-block-navigation-item__content{min-height:44px;display:flex;align-items:center}
.dk-header .is-menu-open .wp-block-navigation__container{gap:6px!important}
/* FAQ rows and helpline extensions: at least 44px to tap. */
.wp-block-details summary{padding:10px 0;min-height:44px;box-sizing:border-box;cursor:pointer}
.dk-ext{list-style:none;padding:0}.dk-ext li{margin:0}
.dk-ext a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
/* Outline button (404 page). */
.dk-outline .wp-block-button__link{background:transparent;color:#1A5276;box-shadow:inset 0 0 0 2px #1A5276}
.dk-404 .dk-in{padding-block:64px 80px}
/* Event flyer: one link, styled as a button. */
.dk-event .wp-block-file a:first-child{display:inline-block;background:#1F7A8C;color:#fff;border-radius:6px;padding:12px 18px;font-size:15px;font-weight:600;text-decoration:none}
.dk-event .wp-block-file a:first-child:hover{background:#1A5276}
/* Phones: get the buttons and the meeting list onto the first screen sooner. */
@media(max-width:600px){
 .dk-hero>.dk-in{padding-block:28px 72px}
 .dk-hero h1{font-size:36px;margin:16px 0 12px}
 .dk-hero .dk-lede{font-size:17px;line-height:1.5;margin-bottom:20px}
 .dk-tag{font-size:12px;padding:6px 12px}
 .dk-intro .dk-in{padding-block:24px 20px}
 .dk-intro h1,.dk-intro .dk-title{font-size:34px!important}
 .dk-intro p:not(.dk-label){font-size:16px;margin:8px 0 14px}
 .dk-intro .wp-block-button__link{font-size:16px;padding:12px 18px}
 .wp-site-blocks>div:has(>#tsml-ui){padding-top:12px}
}
/* Meeting finder List/Map toggle in brand navy (colors only). */
#tsml-ui button[data-active]{color:#1A5276!important}
#tsml-ui button[data-active="true"],#tsml-ui button[data-active]:hover{background-color:#1A5276!important;color:#fff!important}
/* Opened menu: room to breathe and larger text. */
.dk-header .is-menu-open .wp-block-navigation__responsive-container-content{padding:32px var(--dk-edge)!important}
.dk-header .is-menu-open .wp-block-navigation-item{font-size:20px}
@media(max-width:600px){.dk-hero .dk-tag{display:none}.dk-hero h1{margin-top:0}}
