/* Charatoon site navigation — header-attached on desktop, bottom fixed on mobile.
   This bar replaces the old keyword-search strip while retaining the Search dialog. */
/* Legacy header hamburger duplicates the new Categories navigation. */
.container > .header .menu-block{display:none!important}
.ct-site-nav{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:center;
  box-sizing:border-box;
  width:100%;max-width:none;
  min-height:62px;
  gap:4px;
  margin:0 0 12px;
  padding:7px 10px;
  background:#7BE;
  border:0;
  border-radius:0 0 12px 12px;
  box-shadow:none;
  position:relative;
  z-index:12;
}
.ct-site-nav .ct-nav-item,.ct-site-nav .ct-nav-item:visited{border:0;background:transparent;color:#17384b;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:46px;padding:6px 4px;cursor:pointer;border-radius:6px;font:600 13px/1.2 Arial,sans-serif;box-sizing:border-box}
.ct-site-nav .ct-nav-item:hover,.ct-site-nav .ct-nav-item:focus-visible{background:rgba(255,255,255,.55);color:#07547a}
.ct-site-nav .ct-nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;line-height:1}
.ct-site-nav .ct-nav-svg{display:block;width:20px;height:20px;min-width:20px;min-height:20px;stroke:currentColor;stroke-width:2;fill:none;vector-effect:non-scaling-stroke}
.ct-site-nav .ct-nav-count{font-size:11px;border-radius:99px;background:#1684b9;color:#fff;padding:1px 5px}
.ct-site-nav [hidden],.ct-modal[hidden],.ct-modal-backdrop[hidden],.ct-to-top[hidden]{display:none!important}
body.ct-modal-active{overflow:hidden}
.ct-modal-backdrop{position:fixed;inset:0;z-index:2100;background:rgba(16,30,44,.58)}
.ct-modal{position:fixed;z-index:2101;top:50%;left:50%;transform:translate(-50%,-50%);width:min(680px,calc(100vw - 26px));max-height:min(740px,85dvh);display:flex;flex-direction:column;box-sizing:border-box;background:#fff;color:#2d3a43;border-radius:14px;box-shadow:0 15px 50px rgba(0,0,0,.24);font:14px/1.5 Arial,sans-serif}
.ct-modal .ct-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px;border-bottom:1px solid #e2e8ed;flex:none}
.ct-modal .ct-modal-title{font-size:19px;line-height:1.3;margin:0;color:#222}
.ct-modal .ct-modal-close{width:38px;height:38px;border:0;border-radius:8px;background:#f1f3f6;font-size:27px;cursor:pointer}
.ct-modal .ct-modal-body{overflow-y:auto;overscroll-behavior:contain;padding:16px;min-height:0}
.ct-modal .ct-modal-note{color:#65717a;font-size:13px;margin:0 0 14px}
.ct-modal a{color:#137aa5}
.ct-search-form{display:flex;gap:8px;align-items:center}
.ct-search-input{flex:1;min-width:0;padding:12px;border:1px solid #b9c8d1;border-radius:7px;font:inherit}
.ct-search-submit{border:0;border-radius:7px;background:#0788c4;color:white;font-weight:700;padding:12px 20px;cursor:pointer}
.ct-categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.ct-category-link,.ct-category-link:visited{display:block;padding:10px;background:#f5f9fb;border:1px solid #e1ebf0;border-radius:7px;color:#2d5b70;text-decoration:none}
.ct-category-link:hover{background:#e7f3fa}
.ct-to-top{position:fixed;right:16px;bottom:18px;z-index:250;border:1px solid #ddd;border-radius:50%;width:44px;height:44px;background:#fff;color:#223d4c;font-size:24px;cursor:pointer;box-shadow:0 2px 9px #0002}
@media(max-width:768px){
  body{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
  .ct-site-nav{position:fixed;left:0;right:0;bottom:0;z-index:1600;width:100%;max-width:none;min-height:0;margin:0;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px));gap:0;border-radius:0;border:0;border-top:1px solid #5d9ec7;box-shadow:0 -2px 15px #0002;background:#7BE}
  .ct-site-nav .ct-nav-item,.ct-site-nav .ct-nav-item:visited{flex-direction:column;gap:2px;padding:3px 1px;min-height:51px;font-size:10px;white-space:nowrap}
  .ct-site-nav .ct-nav-icon{width:20px;height:25px}
  .ct-site-nav .ct-nav-svg{width:20px;height:20px}
  .ct-site-nav .ct-nav-count{display:inline}
  .ct-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ct-to-top{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .ct-modal{max-height:78dvh}
}
