/* Engineer's Guide: a prominent Civil Sites entry and an in-app book reader. */
@font-face{font-family:"Dhaya Tamil";src:url("vendor/NotoSansTamil.ttf") format("truetype");font-weight:100 900;font-style:normal;font-display:swap;unicode-range:U+0B80-0BFF,U+200C-200D}
.engineer-guide-card{display:flex;align-items:center;gap:22px;width:100%;min-height:158px;margin:22px 0 24px;padding:24px;text-align:left;border:1px solid #176c52;border-radius:22px;color:#fff;background:radial-gradient(circle at 94% 2%,#248565 0,transparent 48%),linear-gradient(125deg,#063a2d,#0a6049);box-shadow:0 14px 30px #0a50301f;cursor:pointer;overflow:hidden}
.engineer-guide-card[hidden]{display:none!important}
.eg-card-icon{display:grid;place-items:center;flex:0 0 70px;width:70px;height:78px;border:1px solid #ffffff33;border-radius:17px;background:#ffffff0e;color:#f6cd7f;transform:rotate(-5deg)}
.eg-card-icon svg{width:44px;height:44px}
.eg-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
.eg-card-copy small{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#ffe0a3}
.eg-card-copy strong{font-family:var(--disp,system-ui);font-size:clamp(24px,4vw,31px);line-height:1.14;letter-spacing:-.025em;color:#fff}
.eg-card-copy>span{font-size:12px;line-height:1.65;color:#d3e9df}
.eg-card-cta{flex:0 0 auto;display:flex;align-items:center;gap:10px;min-height:44px;padding:12px 17px;border-radius:12px;background:#ffd185;color:#163f31;font-size:13px;font-weight:800;white-space:nowrap}
.engineer-guide-card:focus-visible{outline:3px solid #efad51;outline-offset:4px}
.engineer-guide{position:fixed;inset:0;z-index:9100;display:flex;flex-direction:column;max-width:100%;height:100%;height:100dvh;overflow:hidden;background:#f5f7f4;color:#173b2f;font-family:"Dhaya Tamil",var(--sans,system-ui);isolation:isolate}
.engineer-guide *{box-sizing:border-box}
.engineer-guide button,.engineer-guide a,.engineer-guide select,.engineer-guide input{font:inherit}
.engineer-guide button{cursor:pointer}
.engineer-guide button:disabled{cursor:default;opacity:.36}
.engineer-guide [hidden]{display:none!important}
.eg-header{flex:0 0 auto;display:flex;align-items:center;gap:14px;padding:calc(12px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));background:#074c39;color:#fff;box-shadow:0 2px 0 #dfaa4b}
.eg-brand{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.eg-brand>span{font-size:9px;letter-spacing:.15em;font-weight:700;color:#b9dcc9}
.eg-brand>b{font-size:20px;line-height:1.2;letter-spacing:-.02em}
.eg-icon-button{flex:0 0 44px;width:44px;height:44px;border:1px solid #ffffff30;border-radius:12px;background:#ffffff0b;color:#fff;font-size:26px!important;line-height:1}
.eg-body{flex:1;min-height:0;min-width:0;width:100%;max-width:1080px;margin:auto}
.eg-catalogue{overflow:auto;overscroll-behavior:contain;padding:28px 28px calc(36px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}
.eg-intro{display:flex;align-items:center;gap:26px;padding:20px 0 26px}
.eg-book-icon{flex:0 0 96px;display:grid;place-items:center;width:96px;height:112px;border:1px solid #bad7ca;border-radius:20px;background:#e0eee6;color:#116348;box-shadow:8px 8px 0 #ebc58355}
.eg-book-icon svg{width:56px;height:56px}
.eg-kicker{margin:0 0 8px;font-size:9px;letter-spacing:.15em;font-weight:800;color:#8b5a20}
.eg-intro h2{margin:0;font-size:clamp(25px,4vw,36px);line-height:1.12;letter-spacing:-.035em;color:#104c37}
.eg-intro p[lang=ta]{margin:12px 0;font-size:12px;line-height:1.8;color:#466659}
.eg-pills{display:flex;gap:6px;flex-wrap:wrap}
.eg-pills span{border:1px solid #d5e1d8;border-radius:20px;padding:5px 8px;background:#fff;font-size:10px;font-weight:650}
.eg-search-row{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}
.eg-search-row label{display:flex;flex-direction:column;gap:6px;min-width:0}
.eg-search-row label>span{font-size:11px;font-weight:800;color:#496556}
.eg-search-row input,.eg-search-row select{width:100%;min-width:0;height:48px;padding:10px 12px;border:1px solid #cbdcd2;border-radius:12px;background:#fff;color:#153e2c;font-size:14px!important}
.eg-result-count{margin:18px 0 8px;color:#697c70;font-size:11px}
.eg-topic-group{margin:22px 0 26px}
.eg-group-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.eg-group-heading h3{font-size:16px;margin:0;letter-spacing:-.02em}
.eg-group-heading span{font-size:10px;color:#718074}
.eg-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.eg-topic-card{display:flex;align-items:center;gap:13px;width:100%;min-width:0;min-height:112px;padding:16px 13px;border:1px solid #d4e0d8;border-radius:16px;background:#fff;text-align:left;color:#173f2c;box-shadow:0 4px 8px #103d2210}
.eg-topic-card:hover{border-color:#389d71;background:#fbfefb}
.eg-topic-number{flex:0 0 36px;display:grid;place-items:center;width:36px;height:42px;border-radius:10px;background:#edf4ed;font-size:15px;font-weight:800;color:#397050}
.eg-topic-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.eg-topic-copy b{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.eg-topic-copy>span{font-size:10.5px;line-height:1.7;color:#566e5c}
.eg-topic-copy small{font-size:10px;color:#8a692d}
.eg-topic-arrow{flex:0 0 20px;font-size:24px;color:#b87933}
.eg-no-results{padding:32px 15px;text-align:center;background:#fff;border-radius:16px}
.eg-no-results p{font-size:12px;color:#5b7260}
.eg-source{border-top:1px solid #d8e1da;padding-top:20px;display:flex;flex-direction:column;gap:7px;font-size:11px;line-height:1.6;color:#5f7666}
.eg-source b{font-weight:700;color:#315c45}
.eg-source p{margin:0}
.eg-reader{display:flex;flex-direction:column;position:relative;overflow:hidden;background:#e9ede8}
.eg-topic-heading{flex:0 0 auto;padding:16px 22px 11px;background:#fff;border-bottom:1px solid #dde5dd}
.eg-reader-title h2{font-size:22px;line-height:1.22;letter-spacing:-.025em;margin:2px 0 5px;overflow-wrap:anywhere}
.eg-reader-title>p{font-size:11px;line-height:1.6;margin:0;color:#557460}
.eg-topic-summary{font-size:12px;line-height:1.6;color:#5a6e5e;margin:10px 0 3px}
.eg-reader-links{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px}
.eg-text-button,.eg-pdf-link{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 0;border:0;background:transparent;color:#086147;font-size:12px!important;font-weight:750!important;text-decoration:none}
.eg-pdf-link>span{font-size:10px;font-weight:500;color:#6e7b6f}
.eg-tools{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 15px;border-bottom:1px solid #d4dfd3;background:#f4f7f1}
.eg-page-name{font-size:11px;font-weight:700}
.eg-zoom{display:flex;gap:4px;align-items:center}
.eg-zoom button{height:40px;min-width:40px;border:1px solid #ccd8c9;border-radius:9px;color:#20563b;background:#fff;font-size:20px;font-weight:700}
.eg-zoom [data-guide-fit]{font-size:11px;min-width:58px}
.eg-page-viewport{flex:1;min-height:120px;min-width:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;background:#dce3da}
.eg-page-sheet{margin:0 auto;background:#fff;min-width:100%;max-width:none;min-height:100%;transform-origin:0 0}
.eg-original-page{display:block;width:100%;height:auto;max-width:none;aspect-ratio:595/842;background:#fff}
.eg-page-loading{position:absolute;top:55%;left:50%;transform:translate(-50%,-50%);max-width:90%;padding:13px 18px;border:1px solid #d7e0d4;border-radius:13px;background:#fffffff2;box-shadow:0 8px 20px #23482320;color:#305739;font-size:13px;pointer-events:none}
.eg-page-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-25%);display:flex;flex-direction:column;gap:9px;align-items:center;width:min(88%,330px);padding:22px 14px;border:1px solid #ddc6b1;border-radius:16px;background:#fffaf4;text-align:center;box-shadow:0 10px 30px #20462333;font-size:13px;color:#754626}
.eg-page-error>span{font-size:12px}
.eg-reader-footer{flex:0 0 auto;padding:9px 14px calc(9px + env(safe-area-inset-bottom,0px));border-top:1px solid #cedbcb;background:#fff}
.eg-page-nav{display:grid;grid-template-columns:1fr 88px 1fr;gap:9px}
.eg-page-nav button,.eg-page-nav select{height:44px;width:100%;min-width:0;border:1px solid #cad8c9;border-radius:11px;background:#f5f8f2;color:#185136;font-size:12px;font-weight:750;padding:8px}
.eg-page-nav select{background:#fff;text-align:center;font-weight:500}
.eg-reader-footer p{margin:7px 0 0;text-align:center;font-size:9px;line-height:1.5;color:#6c7b6d}
.eg-sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:600px){
  .engineer-guide-card{position:relative;display:grid;grid-template-columns:51px minmax(0,1fr);gap:15px;margin-top:20px;padding:21px 18px;min-height:182px}
  .eg-card-icon{flex-basis:51px;width:51px;height:61px;border-radius:13px}
  .eg-card-icon svg{width:33px;height:33px}
  .eg-card-copy strong{font-size:25px}
  .eg-card-copy>span{font-size:11px}
  .eg-card-cta{grid-column:2;justify-self:start;margin-left:0;padding:9px 14px;min-height:40px;font-size:12px}
  .eg-catalogue{padding:16px 16px calc(30px + env(safe-area-inset-bottom,0px))}
  .eg-intro{align-items:flex-start;gap:15px;padding:12px 0 23px}
  .eg-book-icon{flex-basis:52px;width:52px;height:66px;border-radius:13px;box-shadow:5px 5px 0 #ebc58355}
  .eg-book-icon svg{width:34px;height:34px}
  .eg-intro h2{font-size:25px}
  .eg-pills{gap:5px}.eg-pills span{font-size:9px;padding:5px 7px}
  .eg-search-row{grid-template-columns:1fr;gap:10px}
  .eg-topic-grid{grid-template-columns:minmax(0,1fr)}
  .eg-topic-card{min-height:105px;padding:14px 12px}
  .eg-topic-copy b{font-size:15px}
  .eg-topic-heading{padding:13px 16px 7px}
  .eg-reader-title h2{font-size:19px}
  .eg-topic-summary{font-size:11px;margin-top:8px}
  .eg-header{gap:10px}.eg-brand>b{font-size:19px}
}
@media(max-width:350px){.eg-card-copy strong{font-size:22px}.eg-card-copy small{font-size:8px}.eg-topic-summary{display:none}.eg-page-nav{grid-template-columns:1fr 75px 1fr;gap:6px}.eg-reader-title h2{font-size:17px}.eg-brand>b{font-size:17px}}
@media(max-height:540px){.eg-topic-summary,.eg-reader-title>p,.eg-reader-links,.eg-reader-footer>p{display:none}.eg-topic-heading{padding:7px 14px}.eg-reader-title{display:flex;gap:12px;align-items:center}.eg-reader-title .eg-kicker{margin:0}.eg-reader-title h2{font-size:17px;margin:0}.eg-tools{padding:4px 14px}.eg-header{padding-top:7px;padding-bottom:7px}.eg-reader-footer{padding-top:5px;padding-bottom:5px}}
