/* The trap cards, shared by the homepage (demo v0.81) and the 12 questions landing (demo v0.27): the two demos carry the
   same cards, and their copies had drifted apart (Teo, PR #45). The homepage build's focus rings are the reference
   (deep on the light card, at least 4.33 : 1).
   Without JavaScript the card does not flip: both faces stand in the page one under the other, the front button stays
   disabled (no dead Tab stop) and the "Vissza" button and the tap hint are hidden (Teo, PR #44 N3). traps.js enables
   the front and site.js sets html.js; only then do the faces stack and turn. */
.traps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.trap{display:grid;perspective:1200px}
.trap .inner{display:grid;gap:12px}
.trap .face{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-left:3px solid var(--deep);border-radius:var(--arc-md);padding:22px 22px 20px;display:flex;flex-direction:column;gap:12px;text-align:left;font:inherit}
.trap .front{min-height:240px}
.trap .dg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:120px}
.trap .tplan{display:block;width:100%;height:auto;max-height:170px}
.trap .bhead{display:flex;justify-content:space-between;align-items:center;gap:10px}
.trap .back .st{display:flex;gap:8px;align-items:flex-start;font-size:14px;font-weight:600;line-height:1.4}
.trap .back .st .mk{width:18px;height:18px;font-size:12px;margin-top:1px;color:#fff}
.trap .back .st .mk.warn{font-size:10px}
.trap .back .st small{display:block;font-weight:500;font-size:13px;color:var(--muted)}
.trap .back .rows{display:grid;gap:8px}
.trap .no{font-size:13px;font-weight:800;letter-spacing:.1em;color:var(--deep)}
.trap .q{font-size:21px;line-height:1.3;font-weight:700}
.trap .hint{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;font-size:14px;font-weight:700;color:var(--deep)}
.tap{width:34px;height:34px;flex:none;overflow:visible;margin:-4px -4px 0 0}
.tap .hand{fill:var(--paper);stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.tap .sweep{fill:none;stroke:var(--mid);stroke-width:2;stroke-linecap:round;stroke-dasharray:9;stroke-dashoffset:0}
.tap .tip{fill:var(--mid)}
.tap .sweep{opacity:1}
.trap .back{background:var(--cream)}
.trap .back p{margin:0;font-size:15px;line-height:1.55}
.trap .back p.why{font-size:15px}
.trap .back p.lbl{font-size:13px;color:var(--muted);line-height:1.45}
.trap .back p.lbl{margin-top:auto}
.trap .back .lbl a{color:var(--deep);font-weight:700;text-underline-offset:3px}
.trap .front .dg{margin-top:auto}
.trap .front .tplan{max-height:200px}
.trap .back button{flex:none;font:inherit;font-size:13px;font-weight:700;color:var(--deep);background:none;border:2px solid var(--deep);border-radius:var(--arc-sm);padding:5px 14px;min-height:var(--tap);cursor:pointer}
.trap .front:focus-visible, .trap .back button:focus-visible, .trap .back a:focus-visible{outline:3px solid var(--deep);outline-offset:2px}
.traps-foot{margin:32px 0 0;font-size:17px;font-weight:600}
/* without JavaScript: nothing to flip, so no flip controls */
html:not(.js) .trap .hint, html:not(.js) .trap .bhead button{display:none}
/* with JavaScript: the faces stack and turn */
.js .trap .inner{gap:0;transition:transform .6s cubic-bezier(.4,.1,.2,1);transform-style:preserve-3d}
.js .trap .face{grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.js .trap .front{cursor:pointer}
.js .trap .back{transform:rotateY(180deg)}
.js .trap.flipped .inner{transform:rotateY(180deg)}
@media (prefers-reduced-motion:reduce){
 .js .trap .inner{transition:none;transform:none!important}
 .js .trap .face{transition:opacity .25s}
 .js .trap .back{transform:none;opacity:0;visibility:hidden}
 .js .trap.flipped .back{opacity:1;visibility:visible}
 .js .trap.flipped .front{opacity:0;visibility:hidden}
}
@media (max-width:1100px){
 .traps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
 .traps{grid-template-columns:minmax(0,1fr)}
 .trap .front{min-height:0}
}
