/* InfoTwin pages: 435 = /infotwin/ (MapLibre), 490 = /infotwin-3d-mesh/ (ArcGIS mesh). */

/* ---- shared: remove the gaps above the map ---- */
body:is(.page-id-435, .page-id-490) main#primary{padding:0 !important}
body:is(.page-id-435, .page-id-490) .entry-content{max-width:100% !important;padding:0 12px 10px !important}
body:is(.page-id-435, .page-id-490) .entry-content > h1{font-size:clamp(1.35rem,1rem + .9vw,1.8rem) !important;line-height:1.2 !important;margin:10px 0 4px !important}
body:is(.page-id-435, .page-id-490) .entry-content > h1::after{display:none !important}
body:is(.page-id-435, .page-id-490) .entry-content > p{font-size:.95rem !important;line-height:1.45 !important;margin:0 0 8px !important}
body:is(.page-id-435, .page-id-490) .entry-content > br{display:none}

/* ---- 3D mesh page: bigger view (admin bar adds 32px) ---- */
@media (min-width:701px){
  body.page-id-490 #itwmesh-view:not(:fullscreen){height:calc(100vh - 251px) !important;min-height:560px !important}
  body.page-id-490.admin-bar #itwmesh-view:not(:fullscreen){height:calc(100vh - 283px) !important}
}

/* ---- /infotwin/: bigger map, jump link not needed any more on large screens ---- */
@media (min-width:701px){
  body.page-id-435 #infotwin-wrap{margin-top:6px !important}
  body.page-id-435 #infotwin-map{height:calc(100vh - 200px) !important;min-height:560px !important}
  body.page-id-435.admin-bar #infotwin-map{height:calc(100vh - 232px) !important}
}
@media (min-width:1025px){body.page-id-435 .entry-content > p.itw-jump{display:none}}

/* ---- /infotwin/: the two simulation descriptions as expand/hide cards ---- */
body.page-id-435 .itwl-sims{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:2px 0 8px}
@media (max-width:700px){body.page-id-435 .itwl-sims{grid-template-columns:1fr}}
body.page-id-435 .itwl-sims > p.itw-simcard{margin:0 !important;padding:0 !important;font-size:.95rem !important;line-height:1.5 !important;background:#fff;border:1px solid #e3e0cf;border-left:6px solid #ea5a00 !important;border-radius:12px;box-shadow:0 4px 16px rgba(29,29,27,.08);text-align:left}
body.page-id-435 .itwl-sims > p.itw-simcard:not(.itwl-collapsed){grid-column:1 / -1}
body.page-id-435 .itwl-toggle{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:9px 14px;cursor:pointer;color:#1d1d1b;font:inherit}
body.page-id-435 .itwl-toggle:hover{background:#faf7ee}
body.page-id-435 .itwl-toggle:focus-visible{outline:3px solid #ea5a00;outline-offset:-3px;border-radius:8px}
body.page-id-435 .itwl-toggle strong{display:block !important;margin:0 !important;font-size:1.05rem !important;color:#1d1d1b !important}
body.page-id-435 .itwl-act{flex:none;font-size:.8rem;font-weight:600;color:#ea5a00;white-space:nowrap}
body.page-id-435 .itwl-act::after{content:" ▾"}
body.page-id-435 .itw-simcard:not(.itwl-collapsed) .itwl-act::after{content:" ▴"}
body.page-id-435 .itwl-body{display:block;padding:2px 18px 14px}
body.page-id-435 .itwl-collapsed .itwl-body{display:none}
body.page-id-435 .itwl-body a{display:inline-block;margin-top:.3em;padding:3px 14px;border-radius:999px;background:#1d1d1b;font-weight:600;text-decoration:none;color:#ea5a00 !important}
body.page-id-435 .itwl-body a:hover{background:#c81e0f;color:#fff !important}
