/* Typography, theme colors and a single navigation layout for every input type. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-padding-top:calc(var(--coop-header-height,90px) + 40px); }
body { font-family:var(--theme-font,"Leelawadee UI",Tahoma,sans-serif); font-size:16px; line-height:1.8; color:#263445; }
button,input,select,textarea { font-family:inherit; font-size:16px; }
h1,h2,h3,h4,h5,h6 { font-family:inherit; font-weight:700; line-height:1.5; letter-spacing:normal; overflow-wrap:anywhere; }
p,li { overflow-wrap:anywhere; }
img { max-width:100%; }
main { min-width:0; }
.container { width:min(1280px,calc(100% - 40px)); }
.category-news-card p,.archive-news-excerpt,.staff-content,.entry-content { font-size:16px; line-height:1.9; }
.category-news-card h4,.archive-news-content h3 { font-size:18px; line-height:1.65; }
.category-news-meta,.document-home-meta,.document-card-content small,.staff-position { font-size:14px; line-height:1.65; }
.service strong { font-size:17px; }.service small { font-size:14px; }
.services { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:1100px) { .services { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .services { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.rate-row,.loan-type-name,.field label { font-size:15px; line-height:1.7; }
.rate-row b,.loan-type-row strong { font-size:18px; }
.homepage-news-heading h2,.section-head h2 { font-size:clamp(24px,2.4vw,32px); line-height:1.5; }
.homepage-news-heading p,.section-head p { font-size:16px; }
.category-read-more,.archive-read-more,.doc-view,.doc-download { font-size:15px; min-height:44px; display:inline-flex; align-items:center; }
footer p,footer li { font-size:15px; line-height:1.85; }footer h3 { font-size:18px; }
footer a { display:inline-block; padding-block:4px; }.copyright { font-size:13px; }
.btn,button { touch-action:manipulation; }.btn,.calc-btn { min-height:44px; }
:focus-visible { outline:3px solid var(--gold); outline-offset:4px; }
.coop-skip-link { position:fixed; top:8px; left:12px; z-index:200000; transform:translateY(-160%); padding:10px 18px; background:#fff; color:#17243a; border:2px solid currentColor; border-radius:8px; }
.coop-skip-link:focus { transform:none; }

/* Use the selected palette across the actual homepage components. */
.topbar,footer { background:var(--theme-dark); color:var(--theme-on-dark); }
.topbar a,.topbar span,footer p,footer li,footer h3,.copyright { color:inherit; }
.header,.quick { background:var(--navy); color:var(--theme-on-primary); }
.panel-title,.homepage-category-block .category-block-head,.archive-side-title,.visit-stat-panel>.panel-title,.location-map-panel>.panel-title { background:var(--navy); color:var(--theme-on-primary); }
.homepage-category-block .category-heading-wrap h3,.homepage-category-block .category-block-head>a,.panel-title .all { color:inherit; }
.homepage-category-block .category-label,.btn-gold,.calc-btn,.coop-cookie-accept,.coop-cookie-save { background:var(--gold); color:var(--theme-on-accent); }
.cta { background:var(--navy); color:var(--theme-on-primary); }
.cta p { color:inherit; }.cta h2 { color:inherit; }
.homepage-documents,.homepage-staff,.homepage-category-news,.homepage-visit-location,.document-single,.staff-archive-page { background:var(--bg); }
.category-news-placeholder,.service .icon,.loan-type-icon,.staff-group-label { background:var(--theme-soft); color:var(--blue); }
.category-news-meta span { background:var(--navy); color:var(--theme-on-primary); }
.coop-org-person { border-top-color:var(--gold); }.coop-org-group>h3,.coop-org-person h4,.visit-stat-item strong { color:var(--blue); }
.section-head h2,.homepage-news-heading h2,.staff-single-info h1,.staff-single-info h2,.service strong,.stat b,.document-single-head h1 { color:var(--blue); }
.coop-cover { padding:0; }.coop-cover-slide { position:relative; }
.coop-cover-slide::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,var(--theme-dark),transparent); opacity:.9; pointer-events:none; }
.coop-cover-slide .hero-content { margin-inline:auto; max-width:none; padding-top:80px; padding-bottom:90px; }
.coop-cover-slide .hero-content h1,.coop-cover-slide .hero-content p { max-width:760px; }
.coop-cover-slide .hero-content h1 { font-size:clamp(30px,4vw,52px); line-height:1.5; letter-spacing:normal; }
.coop-cover-controls { background:var(--theme-dark); color:var(--theme-on-dark); }
.coop-cover-controls button { color:var(--blue); min-width:44px; min-height:44px; }

/* Touch layout is the default, including iPad landscape and iPad Pro. */
.header { top:0; z-index:10000; }
body.admin-bar .header { top:32px; }
.header .nav { display:grid; grid-template-columns:minmax(0,1fr) auto; height:auto; min-height:86px; gap:12px; padding:12px 0; position:relative; color:var(--theme-on-primary); }
.header .brand { min-width:0; max-width:none; width:auto; gap:12px; color:inherit; }
.header .brand>div { min-width:0; }
.header .brand strong { font-size:clamp(16px,2vw,21px); line-height:1.65; font-weight:700; letter-spacing:normal; }
.header .brand small { display:block; max-width:none; font-size:13px; line-height:1.6; letter-spacing:normal; color:inherit; opacity:.85; }
.header .brand img.coop-logo { width:58px!important; height:58px!important; flex:none; }
.header .mobile-menu { display:none; align-items:center; justify-content:center; gap:8px; margin:0; min-width:76px; min-height:48px; padding:8px 12px; border:1px solid currentColor; border-radius:10px; font-size:23px; background:transparent; color:inherit; cursor:pointer; }
.coop-nav-ready .header .mobile-menu { display:inline-flex; }
.coop-menu-label { font-size:14px; font-weight:600; }
#coop-primary-menu { display:block!important; grid-column:1/-1; position:static; width:100%; min-width:0; margin:0; padding:12px; border-radius:12px; background:var(--navy); color:var(--theme-on-primary); text-align:start; font-size:16px; box-shadow:0 14px 35px #0002; overflow:visible!important; }
.coop-nav-ready #coop-primary-menu { display:none!important; position:absolute; inset:auto 0 auto; top:100%; }
.coop-nav-ready #coop-primary-menu.open { display:block!important; overflow-y:auto!important; overscroll-behavior:contain; max-height:calc(100vh - var(--coop-header-height,100px) - 60px); max-height:calc(100dvh - var(--coop-header-height,100px) - 60px); }
#coop-primary-menu ul { list-style:none; margin:0!important; padding:0!important; }
#coop-primary-menu>ul { display:block!important; position:static!important; overflow:visible!important; gap:0; }
#coop-primary-menu li { display:block!important; position:relative; width:100%; margin:0; padding:0; }
#coop-primary-menu li>a { display:block!important; color:inherit!important; font-size:16px!important; font-weight:500; line-height:1.7; white-space:normal!important; padding:12px 14px!important; min-height:48px; background:transparent!important; border-radius:8px; }
#coop-primary-menu li.menu-item-has-children>a { padding-inline-end:58px!important; }
#coop-primary-menu li>a::after { content:none!important; }
#coop-primary-menu li>a:hover,#coop-primary-menu li.current-menu-item>a { background:var(--theme-dark)!important; color:var(--theme-on-dark)!important; }
#coop-primary-menu li>a:focus-visible { outline-offset:-3px; }
#coop-primary-menu .coop-submenu-toggle { position:absolute; right:2px; top:2px; display:grid; place-items:center; width:44px; height:44px; min-height:44px; margin:0; padding:0; border:1px solid currentColor; border-radius:8px; color:inherit; background:transparent; font:inherit; cursor:pointer; }
#coop-primary-menu .coop-submenu-toggle span { transition:transform .15s; font-size:22px; line-height:1; }
#coop-primary-menu .coop-submenu-toggle[aria-expanded="true"] span { transform:rotate(180deg); }
#coop-primary-menu ul.sub-menu { display:block!important; position:static!important; top:auto!important; left:auto!important; right:auto!important; width:auto!important; min-width:0!important; max-width:none; margin:0!important; padding:0 0 0 14px!important; border:0; border-left:1px solid currentColor; border-radius:0!important; background:transparent!important; box-shadow:none!important; overflow:visible!important; }
.coop-nav-ready #coop-primary-menu ul.sub-menu { display:none!important; }
.coop-nav-ready #coop-primary-menu li.submenu-open>ul.sub-menu { display:block!important; }
@media (min-width:1200px) and (hover:hover) and (pointer:fine) {
  .header .nav { grid-template-columns:minmax(0,1fr); gap:0; padding:16px 0 0; }
  .header .brand { padding-bottom:16px; max-width:850px; }
  .coop-nav-ready .header .mobile-menu { display:none; }
  .coop-nav-ready #coop-primary-menu,#coop-primary-menu { display:block!important; position:relative; inset:auto; top:auto; padding:0; overflow:visible!important; max-height:none; border-radius:0; box-shadow:none; border-top:1px solid #ffffff30; }
  #coop-primary-menu>ul { display:flex!important; flex-wrap:wrap; justify-content:flex-start; align-items:stretch; gap:2px 8px; }
  #coop-primary-menu>ul>li { width:auto; flex:none; }
  #coop-primary-menu li>a { padding:12px 16px!important; }
  #coop-primary-menu li.menu-item-has-children>a { padding-inline-end:54px!important; }
  #coop-primary-menu .coop-submenu-toggle { border-color:transparent; right:2px; top:3px; }
  #coop-primary-menu ul.sub-menu { position:absolute!important; top:100%!important; left:0!important; right:auto!important; width:280px!important; min-width:0!important; max-width:calc(100vw - 32px); padding:8px!important; border:1px solid #ffffff30; border-radius:12px!important; background:var(--navy)!important; color:var(--theme-on-primary); box-shadow:0 16px 36px #0003!important; }
  #coop-primary-menu ul.sub-menu ul.sub-menu { top:0!important; left:100%!important; }
  #coop-primary-menu li.coop-submenu-flip>ul.sub-menu { left:auto!important; right:0!important; }
  #coop-primary-menu ul.sub-menu li.coop-submenu-flip>ul.sub-menu { left:auto!important; right:100%!important; }
}
@media(max-width:782px) { body.admin-bar .header { top:46px; } }
@media(max-width:600px) {
  body.admin-bar .header { top:0; }
  .container { width:calc(100% - 28px); }
  .header .nav { min-height:76px; gap:10px; }
  .header .brand { gap:9px; }.header .brand img.coop-logo { width:46px!important; height:46px!important; }
  .header .brand strong { font-size:15px; line-height:1.6; }.header .brand small { display:none; }
  .header .mobile-menu { min-width:48px; padding:6px 10px; }.coop-menu-label { display:none; }
  .hero p { font-size:17px; line-height:1.85; }.coop-cover-slide .hero-content { padding-top:46px; padding-bottom:70px; }
  .homepage-category-block .category-news-grid { grid-template-columns:1fr; padding:14px; }
  .category-news-card p { min-height:0; }.category-news-image { height:210px; }
  .category-news-meta { flex-wrap:wrap; }.category-block-head,.homepage-news-heading { gap:14px; }
  .document-home-actions,.document-card-actions { flex-wrap:wrap; gap:12px; }
  .quick-item small { font-size:13px; }.quick-item strong { font-size:16px; }
  .coop-cover-controls { gap:8px; padding:6px 10px; max-width:calc(100% - 24px); font-size:14px; }
  .coop-cover-controls button { padding:6px 10px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
