/* devi.css — JainKBC.com — shared style for devi.php, devi-view.php, nikay.php
   Version: 1.4 | 2026-10-18 21:50 IST (list-card image no longer cropped: object-fit contain)
   Place in: guj/dev-devi/devi.css */
body{font-family:'Montserrat',Arial,sans-serif;background:#fdf9f4;margin:0;padding-top:70px;color:#3a2a22}
.wrap{max-width:820px;margin:0 auto;padding:16px}
h1.pg{text-align:center;color:#7a1414;font-size:28px;margin:8px 0 4px}
.crumb{font-size:13px;margin-bottom:10px}
.crumb a{color:#7a1414}
.lead{color:#4a3a30;font-size:15px;line-height:1.75;margin-bottom:18px}
.box{background:#fffefb;border:1px solid #eee0d6;border-radius:10px;padding:14px 16px;margin-bottom:18px;box-shadow:0 2px 8px rgba(120,60,20,.06)}
.card-d{display:flex;gap:16px;background:#fffefb;border:1px solid #eee0d6;border-radius:10px;padding:14px;margin-bottom:18px;box-shadow:0 2px 8px rgba(120,60,20,.06)}
.pic{flex:0 0 150px}
.pic img{width:150px;height:auto;max-height:260px;object-fit:contain;border-radius:8px;border:2px solid #e2d6cb;background:#f4ece0;display:block}
.ph{width:150px;height:200px;border-radius:8px;border:2px solid #e2d6cb;background:#f4ece0;display:flex;align-items:center;justify-content:center}
.ph{display:flex;align-items:center;justify-content:center;color:#b59b86;font-size:46px;font-weight:700}
.body{flex:1;min-width:0}
.nm{color:#7a1414;font-size:20px;font-weight:700;margin:0}
.sb{color:#8a7460;font-size:13px;margin:2px 0 8px}
.sm{font-size:14.5px;line-height:1.75;margin:0 0 8px}
details>summary{list-style:none;cursor:pointer;color:#7a1414;font-weight:700;font-size:14px;display:inline-block;padding:4px 0}
details>summary::-webkit-details-marker{display:none}
details>summary:hover{color:#b8860b}
details .less{display:none}
details[open] .more{display:none}
details[open] .less{display:inline}
.det{margin-top:8px;border-top:1px dashed #e2d6cb;padding-top:10px}
table.f{width:100%;border-collapse:collapse;font-size:13.5px;margin-bottom:10px}
table.f th{width:34%;text-align:left;vertical-align:top;color:#8a7460;font-weight:600;padding:5px 8px 5px 0}
table.f td{padding:5px 0;vertical-align:top;border-bottom:1px solid #f1e6da}
.det p{font-size:14.5px;line-height:1.75;margin:0 0 8px}
.nt{font-size:12.5px;color:#7b6a5c;background:#faf2e6;border-left:3px solid #d9b26a;padding:7px 10px;border-radius:4px;margin-top:8px}
.acts{margin-top:10px;font-size:14px}
.acts a.btnmore{display:inline-block;background:#7a1414;color:#ffd966;padding:7px 14px;border-radius:6px;text-decoration:none;font-weight:700}
.acts a.btnmore:hover{background:#6e1616;color:#ffd966;text-decoration:none}
.nik li{margin-bottom:6px;font-size:14px;line-height:1.65}
.foot{text-align:center;margin:20px 0 30px;font-size:14px}
.foot a{color:#7a1414;margin:0 10px}
/* detail pages */
.sec{background:#fffefb;border:1px solid #eee0d6;border-radius:10px;padding:14px 16px;margin-bottom:14px}
.sec h2{color:#7a1414;font-size:18px;margin:0 0 8px}
.sec p{font-size:15px;line-height:1.85;margin:0 0 9px}
.sec ul{padding-left:20px;margin:0 0 8px}
.sec li{font-size:14.5px;line-height:1.8;margin-bottom:5px}
.tocbox{background:#faf2e6;border:1px solid #ecd9b8;border-radius:10px;padding:10px 16px;margin-bottom:16px;font-size:14px;overflow-wrap:anywhere;word-break:break-word}
.tocbox b{display:block;margin-bottom:4px}
.tocbox a{display:inline-block;color:#7a1414;margin:3px 14px 3px 0;line-height:1.5;max-width:100%}
.stv{background:#fff8e8;border:1px solid #ecd9b8;border-radius:8px;padding:10px 14px;margin:8px 0}
.stv h3{font-size:16px;color:#7a1414;margin:0 0 6px}
.stv .ln{font-size:15px;line-height:1.9;margin:0 0 6px;white-space:pre-line}
.stv .cr{font-size:12.5px;color:#7b6a5c;margin:0}
.srcs{font-size:13px;color:#7b6a5c}
.srcs a{color:#7a1414}
.topnav{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:6px 0 12px;font-size:14px}
.topnav a{color:#7a1414;font-weight:700}
@media (max-width:560px){
  .card-d{flex-direction:column}
  .pic{flex:none}
  .pic img{width:100%;height:auto;max-height:320px}
  .ph{width:100%;height:210px}
}
/* v1.2 copyright note */
.copynote{font-size:.85rem;color:#555;border-top:1px dashed #ccc;padding-top:10px}
.copynote h2{font-size:1rem}

/* v1.3 colour + figures (2026-10-18 11:00 IST) */
h1.pg{color:#8b1a1a;font-weight:800}
.lead b,.lead{font-weight:600}
.topnav a,.crumb a{font-weight:700}
.sec{border-top:4px solid #8b1a1a}
.sec h2{font-weight:800;font-size:19px;color:#8b1a1a;border-bottom:1px solid #f0e2d2;padding-bottom:6px;margin-bottom:10px}
.sec:nth-of-type(4n+1){border-top-color:#0f6b6b}.sec:nth-of-type(4n+1) h2{color:#0f6b6b}
.sec:nth-of-type(4n+2){border-top-color:#4b3fa0}.sec:nth-of-type(4n+2) h2{color:#4b3fa0}
.sec:nth-of-type(4n+3){border-top-color:#b4540a}.sec:nth-of-type(4n+3) h2{color:#b4540a}
.sec:nth-of-type(4n){border-top-color:#8b1a1a}.sec:nth-of-type(4n) h2{color:#8b1a1a}
table.f th{color:#0f6b6b;font-weight:800}
.sec li::marker{color:#b8860b;font-weight:700}
.tocbox b{color:#8b1a1a;font-weight:800}
.tocbox a{font-weight:700;color:#4b3fa0}
.stv{background:#fff6dc;border:1px solid #e6c97a;border-left:5px solid #b8860b}
.stv h3{font-size:17px;font-weight:800;color:#b4540a;border-bottom:1px dashed #e6c97a;padding-bottom:5px}
.stv .ln{font-weight:600;color:#4a1f1f}
.nt{font-weight:600}
.srcs b{color:#0f6b6b;font-weight:800}
.nm{font-weight:800}.sb{color:#b4540a;font-weight:700}
.copynote h2{color:#555;border:0}
.fig{margin:4px 0 12px;text-align:center}
.fig img{max-width:100%;max-height:320px;border-radius:8px;border:2px solid #e2d6cb;object-fit:contain;background:#f4ece0}
.fig figcaption{font-size:12.5px;color:#7b6a5c;font-weight:600;margin-top:4px}
.fig.noimg{height:130px;border:2px dashed #d9c3a8;border-radius:8px;background:#faf2e6;display:flex;flex-direction:column;align-items:center;justify-content:center}
.fig.noimg::before{content:"\1F5BC";font-size:30px;color:#b59b86}
