/* RF CraftWorld x30 — Modules, Design 3.0. All rules scoped to this page. */
body:has(.modules-header) .wrapper{max-width:1400px;width:100%;margin:0 auto;padding:14px 18px 35px;color:#e7eef4}
body:has(.modules-header) .wrapper *{box-sizing:border-box}
.modules-header,.simple-modules-section,.advanced-modules{border:1px solid #435869;background:#1a2935;border-radius:9px;padding:18px 20px;margin:0 0 16px;color:#e7eef4;min-width:0}
.modules-header{position:relative;background:linear-gradient(105deg,#283a47,#172630);border-left:4px solid #d7ae73;padding-left:76px;min-height:84px}
.modules-header .modules-icon{position:absolute;left:21px;top:20px;font-size:35px;line-height:1}
.modules-header h1{margin:0 0 4px;font-size:26px;color:#f2d397;line-height:1.2}
.modules-header .modules-subtitle{color:#cbd6de;margin:0;font-size:14px}
.simple-modules-section h2,.advanced-modules h2{font-size:21px;color:#f0c98c;margin:0 0 7px}
.simple-modules-section .section-desc,.advanced-modules .section-desc{color:#c4d2dc;line-height:1.5;margin:0 0 15px;font-size:14px}
/* Base mechanics: two compact cards per row. */
.simple-modules-section .simple-modules-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.simple-modules-section .simple-module-card{background:#243543!important;border:1px solid #465d6d;border-radius:7px;padding:12px 14px;display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 12px;min-width:0;margin:0;color:#e9f0f5!important;align-items:start}
.simple-modules-section .simple-module-card.highlighted{border-left:3px solid #c6a16b}
.simple-modules-section .module-icon{grid-column:1;grid-row:1/span 2;font-size:24px;line-height:1.25;text-align:center;width:32px;height:32px;background:transparent;overflow:visible}
.simple-modules-section .module-title{grid-column:2;grid-row:1;color:#f4d5a3!important;font-weight:700;font-size:15px;line-height:1.3}
.simple-modules-section .module-desc{grid-column:2;grid-row:2;color:#cad6df!important;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
/* Advanced modules: description left, bounded gameplay screenshot right. */
.advanced-modules .moduleall{display:flex;align-items:center;justify-content:center;margin:0 auto 15px;max-width:420px;padding:10px;background:#14212b;border:1px solid #354b5b;border-radius:6px}
.advanced-modules .moduleall img{display:block;max-width:100%;max-height:115px;width:auto;height:auto;object-fit:contain}
.advanced-modules .advanced-module-block{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,44%);gap:20px;align-items:start;min-width:0;margin:0 0 12px;padding:17px 18px;background:#223440!important;border:1px solid #455d6d;border-radius:8px;color:#eaf0f4!important}
.advanced-modules .advanced-module-block:last-child{margin-bottom:0}
.advanced-modules .advanced-module-block:has(> .module-info:only-child){grid-template-columns:minmax(0,1fr)}
.advanced-modules .module-info{min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr);grid-auto-rows:auto;align-content:start;column-gap:12px}
.advanced-modules .module-icon-img{grid-column:1;grid-row:1/span 2;display:flex;align-items:center;justify-content:center;width:48px!important;height:48px!important;min-width:48px;max-width:48px;max-height:48px;overflow:hidden;padding:2px;background:#14232e;border:1px solid #506676;border-radius:7px;margin:0!important}
.advanced-modules .module-icon-img img{display:block;width:auto!important;height:auto!important;max-width:44px!important;max-height:44px!important;min-width:0!important;min-height:0!important;object-fit:contain}
.advanced-modules .module-info h3{grid-column:2;grid-row:1;align-self:center;font-size:17px;color:#f4d5a3!important;font-weight:700;line-height:1.35;margin:0 0 7px;overflow-wrap:anywhere}
.advanced-modules .module-info:not(:has(.module-icon-img)) h3{grid-column:1/-1}
.advanced-modules .module-info .module-description{grid-column:2;grid-row:2;margin:0;color:#d0dce4!important;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.advanced-modules .module-info:not(:has(.module-icon-img)) .module-description{grid-column:1/-1}
.advanced-modules .module-screenshot{min-width:0;max-width:100%;border:1px solid #485d6c;border-radius:7px;background:#15212c;padding:10px;display:flex;align-items:flex-start;justify-content:center;overflow:hidden;margin:0}
.advanced-modules .module-screenshot img{display:block;max-width:100%!important;max-height:280px!important;width:auto!important;height:auto!important;object-fit:contain;border-radius:4px}
@media(max-width:1050px){.advanced-modules .advanced-module-block{grid-template-columns:minmax(0,1fr)}.advanced-modules .module-screenshot img{max-height:320px!important}}
