/* templates pages: same type and colours as the landing */
.tpl-page { background: var(--yellow); }
.tpl-main { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 70px; }
.tpl-hero { text-align: center; margin: 10px 0 46px; }
.tpl-hero .stack { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 22px; }
.tpl-hero .box { font-size: clamp(18px, 2.3vw, 28px); }
.tpl-how { list-style: none; padding: 0; margin: 0 auto; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font: italic 700 16px/1.25 var(--body); }
.tpl-how li { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); padding: 8px 14px 9px 8px; max-width: 330px; text-align: left; }
.tpl-how b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--blue); color: var(--yellow); font: 400 24px/1 var(--pixel); font-style: normal; }
.tpl-how.small { justify-content: flex-start; margin: 18px 0 0; } .tpl-how.small li { font-size: 14px; }

.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: start; }
.tpl-card { background: var(--paper); border: 4px solid var(--ink); box-shadow: 9px 10px 0 var(--ink); padding: 14px; display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.tpl-card .tpl-compare.tall { width: min(100%, 320px); margin: 0 auto; }
.tpl-card .tpl-compare.tall[style*='4 / 5'] { width: min(100%, 400px); }
.tpl-info h2, .tpl-info h1 { margin: 2px 0 8px; font: italic 700 clamp(22px, 2.2vw, 30px)/1.05 var(--body); letter-spacing: -.02em; }
.tpl-info h1 { font-size: clamp(30px, 4vw, 52px); display: inline-block; background: var(--blue); color: var(--yellow); padding: 4px 14px 8px; }
.tpl-info h2 a { color: var(--ink); text-decoration: none; } .tpl-info h2 a:hover { color: var(--blue); }
.tpl-info > p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.tpl-tags { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.tpl-tags li { font: 400 16px/1 var(--pixel); text-transform: uppercase; background: var(--yellow); border: 2px solid var(--ink); padding: 3px 6px 2px; }

.tpl-compare { position: relative; aspect-ratio: var(--ar); width: 100%; overflow: hidden; background: #111; border: 3px solid var(--ink); }
.tpl-compare.big { width: 100%; }
.tpl-compare.big.tall { width: min(100%, 420px); margin: 0 auto; }
.tpl-compare video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.tpl-compare .tag { position: absolute; bottom: 8px; z-index: 3; font: 400 15px/1 var(--pixel); text-transform: uppercase; color: var(--ink); padding: 3px 6px 4px; border: 2px solid var(--ink); pointer-events: none; }
.tpl-compare .tag.left { left: 8px; background: #fff; } .tpl-compare .tag.right { right: 8px; background: var(--yellow); }
.tpl-compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.tpl-compare .handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: var(--ink); border: 2px solid var(--ink); font: 400 15px/1 var(--pixel); padding: 4px 5px; white-space: nowrap; }
.tpl-compare .range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 4; cursor: url("/media/hand-px.png") 8 1, ew-resize; }

.tpl-prompt { margin: 0 0 8px; }
.tpl-prompt textarea { width: 100%; resize: vertical; font: 400 18px/1.15 var(--pixel); color: #0d1f06; background: #c7d7a5; border: 2px inset #808080; padding: 8px 10px; min-height: 120px; }
.tpl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tpl-actions .xp-btn { text-decoration: none; }
.tpl-credit { font-size: 12.5px; color: #4a4a40; margin: 6px 0 0; }
.tpl-credit a { color: var(--blue); }

.tpl-cta { max-width: 760px; margin: 60px auto 0; }
.tpl-cta .xp-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tpl-cta p { flex: 1; min-width: 240px; margin: 0; font-size: 17px; }

.tpl-back { margin: 0 0 14px; font: 400 20px/1 var(--pixel); } .tpl-back a { color: var(--ink); }
.tpl-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; background: var(--paper); border: 4px solid var(--ink); box-shadow: 10px 12px 0 var(--ink); padding: 20px; }
.tpl-detail-media { display: flex; justify-content: center; }
.tpl-more { margin-top: 44px; }
.tpl-more h2 { font: 400 26px/1 var(--pixel); text-transform: uppercase; margin: 0 0 12px; }
.tpl-more ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tpl-more a { display: inline-block; font: italic 700 16px/1 var(--body); color: var(--yellow); background: var(--blue); padding: 8px 12px 10px; text-decoration: none; border: 2px solid var(--ink); }
.tpl-foot { text-align: center; padding: 26px 16px 40px; border-top: 4px solid var(--ink); font-size: 13px; color: #3a3a30; }
.tpl-foot a { color: var(--blue); }
@media (max-width: 1020px) { .tpl-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tpl-card, .tpl-detail { grid-template-columns: 1fr; } .tpl-compare.big { max-height: none; width: 100%; } }
.tpl-actions .xp-btn.open { background: var(--blue); color: var(--yellow); box-shadow: inset 2px 2px 0 #6c7bff, inset -2px -2px 0 #0a1590; }
