@charset "utf-8";

/* =========================================================
   WINFAN — Fan selection guide (/products/fan-selection/)
   Two added modules: drive methods, rotation & outlet direction.
   Extends assets/css/style.css + assets/css/solutions.css.
   ========================================================= */

/* ---------- module 1: transmission methods ---------- */
.drivegrid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:var(--line);border:1px solid var(--line);
}
.dcard{background:#fff;padding:clamp(22px,2.4vw,30px);display:flex;flex-direction:column}
.dcard__tag{
  align-self:flex-start;
  font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:#fff;background:var(--brand);padding:6px 13px;border-radius:999px;
}
.dcard__media{margin-top:18px}
.dcard__media img{display:block;width:100%;height:auto}
.dcard__text{
  margin-top:16px;font-size:13.8px;line-height:1.62;color:var(--muted);
  /* reserve three lines and sit the copy on the baseline, so the rule
     below it and the copy itself line up across all three cards */
  min-height:calc(3 * 1.62em);
  display:flex;flex-direction:column;justify-content:flex-end;
}
.dcard__list{margin-top:auto;padding-top:2px;border-top:1px solid var(--line)}
.dcard__list li{
  display:grid;grid-template-columns:34px 1fr;gap:13px;align-items:center;
  padding:11px 0;border-bottom:1px solid var(--line);
}
.dcard__list li:last-child{border-bottom:0}
.dcard__list li>div b{display:block;font-size:13.8px;font-weight:600;color:var(--text);line-height:1.35}
.dcard__list li>div span{display:block;margin-top:3px;font-size:12.4px;line-height:1.5;color:var(--muted)}
.dico{
  width:34px;height:34px;border-radius:50%;
  background:var(--brand);color:#fff;
  display:grid;place-items:center;flex:0 0 auto;
}
.dico svg{display:block;stroke-width:1.9}

/* comparison table + key takeaways */
.dcompare{
  margin-top:clamp(28px,3.2vw,44px);
  display:grid;grid-template-columns:minmax(0,2.05fr) minmax(0,1fr);
  gap:clamp(22px,2.8vw,40px);align-items:start;
}
.dstable{min-width:660px}
.dstable th[scope="row"]{
  text-transform:none;letter-spacing:0;font-size:13.4px;font-weight:600;
  color:var(--text);background:#fff;padding:15px 18px;vertical-align:middle;
  border-bottom:1px solid var(--line);
}
.dstable tbody tr:hover th[scope="row"]{background:#faf9f6}
.stable__ico{
  display:inline-grid;place-items:center;width:30px;height:30px;
  border-radius:50%;background:var(--sand-2);color:var(--brand);
  margin-right:10px;vertical-align:-8px;
}
.stable__ico svg{display:block;stroke-width:2}

.takeaway{border:1px solid var(--line);background:#fff;padding:clamp(20px,2.2vw,26px)}
.takeaway__t{
  font-family:"Archivo","Inter",sans-serif;
  font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--brand);padding-bottom:14px;border-bottom:1px solid var(--line);
}
.takeaway__list{padding-top:4px}
.takeaway__list li{
  display:grid;grid-template-columns:22px 1fr;gap:11px;align-items:start;
  padding:12px 0;border-bottom:1px solid var(--line);
  font-size:13.8px;line-height:1.6;color:#3a3a40;
}
.takeaway__list li:last-child{border-bottom:0}
.takeaway__list b{color:var(--text);font-weight:600}
.tico{display:block;color:var(--brand);flex:0 0 auto;margin-top:2px}
.tico svg{display:block}

/* ---------- module 2: rotation and outlet direction ---------- */
.rotcaption{
  font-family:"Archivo","Inter",sans-serif;
  font-size:12.5px;font-weight:600;letter-spacing:.02em;color:var(--brand);
  margin-bottom:clamp(14px,1.6vw,20px);
}
.rotgrid{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:1px;background:var(--line);border:1px solid var(--line);
}
.rotcard{background:#fff;padding:20px 18px 24px;text-align:center}
.rotcard__code{
  display:inline-block;min-width:30px;
  font-family:"Archivo","Inter",sans-serif;font-size:13px;font-weight:700;
  letter-spacing:.08em;color:#fff;background:var(--brand);
  padding:5px 10px;border-radius:2px;
}
.rotcard__media{margin-top:16px}
.rotcard__media img{display:block;width:100%;height:auto}

.rotfoot{
  margin-top:clamp(20px,2.4vw,30px);
  padding-top:clamp(14px,1.6vw,20px);
  border-top:1px solid var(--line);
  font-size:13.6px;line-height:1.6;color:var(--text);font-weight:600;
}

.rotnotes{
  margin-top:clamp(22px,2.6vw,34px);
  display:grid;grid-template-columns:repeat(2,1fr);
  gap:clamp(16px,2vw,26px);
}
.rotnote{border:1px solid var(--line);background:#fff;padding:clamp(20px,2.2vw,26px)}
.rotnote__t{
  display:flex;align-items:center;gap:10px;
  font-family:"Archivo","Inter",sans-serif;
  font-size:11px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;
  color:var(--brand);padding-bottom:14px;border-bottom:1px solid var(--line);
}
.rotnote__t svg{flex:0 0 auto}
.rotnote__list{padding-top:4px}
.rotnote__list li{
  display:grid;grid-template-columns:22px 1fr;gap:11px;align-items:start;
  padding:11px 0;border-bottom:1px solid var(--line);
  font-size:13.6px;line-height:1.6;color:#3a3a40;
}
.rotnote__list li:last-child{border-bottom:0}

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .dcompare{grid-template-columns:1fr}
  .takeaway{max-width:none}
}
@media (max-width:900px){
  .drivegrid{grid-template-columns:repeat(2,1fr)}
  .drivegrid .dcard:last-child{grid-column:1 / -1}
  .rotgrid{grid-template-columns:repeat(2,1fr)}
  .rotnotes{grid-template-columns:1fr}
}
@media (max-width:720px){
  .drivegrid{grid-template-columns:1fr}
  .drivegrid .dcard:last-child{grid-column:auto}
  /* comparison table collapses to stacked cards */
  .dstable{min-width:0}
  .dstable thead{display:none}
  .dstable tbody tr{display:block;border:1px solid var(--line);background:#fff;margin-bottom:10px;padding:4px 0}
  .dstable tbody tr:hover{background:#fff}
  .dstable tbody tr:hover th[scope="row"]{background:#fff}
  .dstable th[scope="row"]{
    display:block;padding:12px 16px;border-bottom:1px solid var(--line);
  }
  .dstable td{
    display:block;border-bottom:1px solid var(--line);
    padding:11px 16px 11px 16px;white-space:normal;
  }
  .dstable td:last-child{border-bottom:0}
  .dstable .nw{white-space:nowrap}
  .dstable td::before{
    content:attr(data-label);display:block;margin-bottom:5px;
    font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#8a8a92;
  }
  .rotgrid{grid-template-columns:repeat(2,1fr)}
  .rotcard{padding:16px 12px 18px}
}
@media (max-width:460px){
  .rotgrid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .dcard:hover{transform:none}
}
