/* V13: responsive reader modes, playful welcome, and directory polish.
   Preserve native browser zoom and reflow instead of zooming the full body. */
html[data-secord-size="large"]{font-size:112.5%}
html[data-secord-size="largest"]{font-size:125%}
html[data-secord-size="large"] body,
html[data-secord-size="largest"] body{zoom:normal!important}
html[data-secord-size="large"] .resident-utility-inner,
html[data-secord-size="largest"] .resident-utility-inner{flex-wrap:wrap!important;height:auto!important;row-gap:8px!important}
html[data-secord-size="large"] .resident-hall-line,
html[data-secord-size="largest"] .resident-hall-line{flex-wrap:wrap;min-width:0;gap:6px 12px}
html[data-secord-size="large"] .utility-right,
html[data-secord-size="largest"] .utility-right{flex-wrap:wrap!important;min-width:0;max-width:100%;gap:8px 14px!important}
html[data-secord-size="large"] .secord-a11y-toolbar,
html[data-secord-size="largest"] .secord-a11y-toolbar{max-width:100%;gap:6px;justify-content:flex-end}
/* For enlarged text, place the weather beside the logo, with navigation on its own row.
   This prevents the weather and menu from covering one another on wide screens. */
@media(min-width:1431px){
 html[data-secord-size="large"] .resident-v2 .homepage-header .nav-inner,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .nav-inner{
   display:grid!important;
   grid-template-columns:minmax(210px,1fr) minmax(280px,max-content)!important;
   grid-template-areas:"brand weather" "navigation navigation"!important;
   gap:7px 20px!important;align-items:center!important;
   height:auto!important;min-height:0!important;padding:12px 30px 9px!important;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .brand,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .brand{
   grid-area:brand;min-width:0!important;max-width:100%;width:auto;justify-self:start;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .weather-hub,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .weather-hub{
   grid-area:weather;justify-self:end;min-width:0!important;max-width:100%!important;
   margin:0!important;position:relative;z-index:1;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .nav,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .nav{
   grid-area:navigation;display:flex!important;position:static!important;
   width:100%!important;max-width:100%;flex-wrap:wrap!important;gap:3px 12px!important;
   justify-content:center!important;overflow:visible;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .nav a,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .nav a{
   font-size:.80rem!important;padding:9px 12px!important;line-height:1.35!important;
   white-space:normal!important;max-width:100%;
 }
}
/* The compact menu remains available at <=1430px; weather may wrap rather than overlap. */
@media(max-width:1430px){
 html[data-secord-size="large"] .resident-v2 .homepage-header .nav-inner,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .nav-inner{
   display:flex!important;flex-wrap:wrap!important;height:auto!important;min-height:0!important;
   align-items:center!important;row-gap:8px!important;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .weather-hub,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .weather-hub{
   max-width:calc(100% - 90px)!important;margin-left:auto!important;overflow:hidden!important;
 }
}
@media(max-width:670px){
 html[data-secord-size="large"] .resident-v2 .homepage-header .weather-hub,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .weather-hub{
   flex:1 1 100%!important;max-width:100%!important;width:100%!important;
   height:auto!important;min-height:55px!important;margin:5px 0 0!important;
   justify-content:center!important;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .weather-forecast,
 html[data-secord-size="largest"] .resident-v2 .homepage-header .weather-forecast{
   grid-template-columns:repeat(2, minmax(37px,1fr))!important;
   max-width:100%!important;height:auto!important;
 }
 html[data-secord-size="large"] .resident-v2 .homepage-header .forecast-day:nth-child(n+3),
 html[data-secord-size="largest"] .resident-v2 .homepage-header .forecast-day:nth-child(n+3){display:none!important}
}
/* Avoid clipped access tools in the rest of the site at increased text sizes. */
html[data-secord-size="large"] .topbar:not(.homepage-header) .nav-inner,
html[data-secord-size="largest"] .topbar:not(.homepage-header) .nav-inner{flex-wrap:wrap!important;height:auto!important;gap:8px!important}
html[data-secord-size="large"] .topbar:not(.homepage-header) .nav,
html[data-secord-size="largest"] .topbar:not(.homepage-header) .nav{flex-wrap:wrap!important;min-width:0!important}
/* The temporary launch greeting, distinct from the time-sensitive red pinned notices. */
.secord-welcome{
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(116deg,#eaf8fd 0%,#eaf9f5 47%,#fff4da 100%);
 border-bottom:3px solid #7bc4bb;
}
.secord-welcome:before{content:"";position:absolute;z-index:-1;width:440px;height:440px;right:-180px;top:-300px;border-radius:50%;border:55px solid rgba(255,195,77,.15)}
.secord-welcome:after{content:"";position:absolute;z-index:-1;width:400px;height:120px;left:12%;bottom:-90px;border-radius:50%;background:rgba(39,163,155,.1)}
.secord-welcome[hidden]{display:none!important}
.secord-welcome .secord-welcome-inner{display:grid;grid-template-columns:128px minmax(0,1fr) 165px;align-items:center;gap:clamp(16px,2vw,30px);padding-top:26px;padding-bottom:28px}
.secord-welcome-art{width:120px;height:120px;border-radius:27px;display:grid;place-items:center;position:relative;overflow:hidden;border:3px solid #fff;box-shadow:0 12px 30px #1d66792a;background:linear-gradient(180deg,#66c0d8 0%,#bce8d3 51%,#19788c 52%,#064e74 100%)}
.secord-welcome-art .welcome-sun{position:absolute;top:5px;left:16px;color:#fff3a0;font-size:3.4rem;line-height:1;text-shadow:0 0 20px #f6ce4b}
.secord-welcome-art .welcome-hills{position:absolute;bottom:17px;left:0;right:0;font-size:5.4rem;text-align:center;color:#b5e9c4;transform:rotate(-8deg)}
.secord-welcome-art .welcome-water{position:absolute;bottom:-9px;font-size:5rem;color:#a2e6e9;opacity:.85;letter-spacing:1rem}
.secord-welcome .secord-welcome-kicker{font:850 .72rem/1.3 system-ui,sans-serif!important;letter-spacing:.15em!important;color:#0a6b79!important;margin:0 0 5px!important}
.secord-welcome .secord-welcome-copy h2{font:800 clamp(1.6rem,2.7vw,2.4rem)/1.13 Georgia,serif!important;color:#123d57!important;margin:0 0 10px!important;letter-spacing:-.02em}
.secord-welcome .secord-welcome-copy h2 em{color:#147e84;font-style:normal;text-decoration:underline;text-decoration-color:#d7b46a;text-decoration-thickness:3px;text-underline-offset:5px}
.secord-welcome .secord-welcome-copy>p:not(.secord-welcome-kicker){font-size:.95rem!important;line-height:1.5!important;color:#315a65!important;max-width:850px}
.secord-welcome-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:13px}
.secord-welcome-actions a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;border-radius:999px;min-height:43px;padding:10px 17px;font-size:.84rem;line-height:1.25;font-weight:850}
.secord-welcome-actions .secord-welcome-btn{background:#08648d!important;color:#fff!important;box-shadow:0 4px 0 #0644622c}
.secord-welcome-secondary{background:#fff;color:#11566e!important;border:2px solid #83c7cf}
.secord-welcome-decoration{font:850 .76rem/1.5 system-ui,sans-serif;color:#216b76;letter-spacing:.13em;text-align:center;transform:rotate(6deg);background:#fffdf0;border:2px dashed #e6c985;border-radius:17px;padding:16px 8px;box-shadow:0 5px 16px #1a6a7018}
.secord-welcome-decoration span{display:block;font-size:2rem;letter-spacing:0;color:#e39454;line-height:1}
@media(max-width:1020px){.secord-welcome .secord-welcome-inner{grid-template-columns:100px 1fr}.secord-welcome-art{width:96px;height:96px}.secord-welcome-decoration{display:none}}
@media(max-width:650px){.secord-welcome .secord-welcome-inner{grid-template-columns:1fr;gap:9px;padding-top:19px;padding-bottom:20px}.secord-welcome-art{width:65px;height:65px;border-radius:17px}.secord-welcome-art .welcome-sun{font-size:2rem}.secord-welcome-art .welcome-hills,.secord-welcome-art .welcome-water{display:none}.secord-welcome .secord-welcome-copy h2{font-size:1.6rem!important}}
/* Contrast mode remains readable without images or gradients. */
html.secord-contrast .secord-welcome{background:#fff!important;border:3px solid #000!important}
html.secord-contrast .secord-welcome *{color:#000!important;text-shadow:none!important}
html.secord-contrast .secord-welcome-actions a{border:2px solid #000!important;background:#fff!important;color:#000!important}
html.secord-contrast .secord-welcome-art{background:#111!important}
html.secord-contrast .secord-welcome-art span{color:#fff!important}
/* Better breathing room between directories with varied content. */
.township-directory-section .official-grid--directory{align-items:stretch}
.township-directory-section .directory-official{min-width:0;overflow-wrap:anywhere}
.township-directory-section .directory-official .directory-detail a{overflow-wrap:anywhere}
/* Interior pages also need a separated second row at larger text sizes. */
@media(min-width:901px){
 html[data-secord-size="large"] .topbar:not(.homepage-header) .nav-inner,
 html[data-secord-size="largest"] .topbar:not(.homepage-header) .nav-inner{
  display:grid!important;grid-template-columns:minmax(230px,1fr) minmax(160px,auto)!important;
  grid-template-areas:"interior-brand interior-search" "interior-nav interior-nav"!important;
  column-gap:14px!important;row-gap:4px!important;align-items:center!important;
  min-height:0!important;height:auto!important;padding:10px 24px!important;
 }
 html[data-secord-size="large"] .topbar:not(.homepage-header) .brand,
 html[data-secord-size="largest"] .topbar:not(.homepage-header) .brand{grid-area:interior-brand;min-width:0;justify-self:start}
 html[data-secord-size="large"] .topbar:not(.homepage-header) .nav,
 html[data-secord-size="largest"] .topbar:not(.homepage-header) .nav{
  grid-area:interior-nav;display:flex!important;position:static!important;flex:0 0 auto!important;
  flex-wrap:wrap!important;justify-content:center!important;width:100%;gap:3px 6px!important;
 }
 html[data-secord-size="large"] .topbar:not(.homepage-header) .nav a,
 html[data-secord-size="largest"] .topbar:not(.homepage-header) .nav a{font-size:.84rem!important;padding:9px 12px!important;line-height:1.3!important;max-width:100%}
 html[data-secord-size="large"] .topbar:not(.homepage-header) .search-pill,
 html[data-secord-size="largest"] .topbar:not(.homepage-header) .search-pill{grid-area:interior-search;justify-self:end;margin:0!important}
 html[data-secord-size="large"] .topbar:not(.homepage-header) .menu-btn,
 html[data-secord-size="largest"] .topbar:not(.homepage-header) .menu-btn{display:none!important}
}
html[data-secord-size="large"] .resident-utility-inner .utility-right>a,
html[data-secord-size="largest"] .resident-utility-inner .utility-right>a{margin-right:12px!important}
