/* Email gate for the guides. The first section stays readable, the rest opens after a sign-up.
   Off when the page is opened as a local file, so the PDF renderer always sees the whole guide. */
.gate-box { display: none; }
.gated .gate-locked, .gated .gate-hide { display: none !important; }
.gated .gate-box { display: block; }
.gate-box { margin: 2.2rem 0 1rem; background: #2C386C; color: #F8F4EC; border-radius: 18px; padding: 1.8rem 1.6rem 1.6rem; box-shadow: 0 16px 36px rgba(44,56,108,.25); position: relative; }
.gate-fade { height: 90px; margin-top: -90px; position: relative; pointer-events: none; background: linear-gradient(to bottom, rgba(248,244,236,0), #F8F4EC); display: none; }
.gated .gate-fade { display: block; }
.gate-box .gate-kicker { font: 700 .74rem/1 'JetBrains Mono','Courier New',monospace; letter-spacing: .16em; text-transform: uppercase; color: #FF6B9D; margin: 0 0 .6rem; }
.gate-box h2.gate-title { font-family: Jost,'Century Gothic',Arial,sans-serif; font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: #fff; margin: 0 0 .6rem; border: 0; padding: 0; }
.gate-box p { color: #F8F4EC; margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.6; }
.gate-form { display: grid; grid-template-columns: 1fr 1.4fr; gap: .7rem; }
.gate-form label { display: block; font: 500 .85rem/1.3 Jost,Arial,sans-serif; color: #F8F4EC; }
.gate-form input[type=text], .gate-form input[type=email] { width: 100%; margin-top: .3rem; padding: .7rem .8rem; border-radius: 8px; border: 2px solid transparent; font: 400 1rem/1.3 Jost,Arial,sans-serif; color: #2E2E2E; background: #fffdf9; box-sizing: border-box; }
.gate-form input:focus { outline: none; border-color: #FF6B9D; }
.gate-form label.gate-consent { grid-column: 1 / -1; display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.gate-consent input { width: 20px; height: 20px; margin-top: .1rem; flex-shrink: 0; accent-color: #FF6B9D; }
.gate-form button { grid-column: 1 / -1; justify-self: start; background: #FF6B9D; color: #2C386C; border: 0; border-radius: 999px; padding: .8rem 1.6rem; font: 600 1.05rem/1.2 Jost,Arial,sans-serif; cursor: pointer; }
.gate-form button:hover { background: #fff; }
.gate-form button[disabled] { opacity: .6; cursor: wait; }
.gate-box p.gate-small { font-size: .85rem; opacity: .85; margin: .9rem 0 0; }
.gate-error { grid-column: 1 / -1; color: #FFD3E1; font: 500 .95rem/1.4 Jost,Arial,sans-serif; min-height: 1.2em; }
.gate-form label.gate-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2C386C; color: #F8F4EC; padding: .8rem 1.3rem; border-radius: 999px; font: 500 1rem/1.3 Jost,Arial,sans-serif; box-shadow: 0 10px 28px rgba(44,56,108,.35); z-index: 50; max-width: 90vw; text-align: center; }
@media (max-width: 600px) { .gate-form { grid-template-columns: 1fr; } .gate-box { padding: 1.5rem 1.2rem 1.3rem; } .gate-box h2.gate-title { font-size: 1.35rem; } }
@media print { .gate-box, .gate-fade, .gate-toast { display: none !important; } }
