/* The network pages: the global home (/), "Where next?" (/next), a place that is not open yet, and /feedback. Builds on site.css. */

/* Header band without a photo: a navy gradient, optionally with the constellation of places */
.nhero { position: relative; color: #fff; isolation: isolate; background: linear-gradient(160deg, #0b1424 0%, #0f2747 55%, #17406b 100%); overflow: hidden; }
.nhero .wrap { position: relative; }
.nhero-copy { padding: 22px 0 36px; max-width: 40em; }
.nhero h1 { font: 700 clamp(34px, 9.4vw, 62px)/1.04 var(--display); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
.nhero h1 em { font-style: normal; color: var(--sun); }
.nhero .lead { font-size: 18px; line-height: 1.5; margin: 0 0 22px; color: #e6eefa; max-width: 30em; }
.nhero .back { display: inline-flex; align-items: center; min-height: 44px; color: #cfe0f5; text-underline-offset: 3px; margin: 0 0 4px; }
.nhero .cta { display: grid; gap: 10px; max-width: 420px; }
.nhero.small .nhero-copy { padding-bottom: 30px; }
.nhero.small h1 { font-size: clamp(30px, 7.4vw, 48px); }
@media (min-width: 900px) {
  .nhero-copy { padding: 56px 0 84px; }
  .nhero .cta { grid-template-columns: auto auto; justify-content: start; max-width: none; }
  .nhero.small .nhero-copy { padding: 36px 0 52px; }
}
html[dir="rtl"] .nhero .back { }

/* The constellation: places on a map-less route; the open one lights up */
.consts { position: absolute; inset-inline-end: -40px; top: 40px; width: min(560px, 62vw); height: auto; opacity: .9; z-index: -1; pointer-events: none; }
.consts .ln { stroke: rgba(255, 255, 255, .32); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }
.consts .nd { fill: #0f2747; stroke: rgba(255, 255, 255, .75); stroke-width: 1.6; }
.consts .on { fill: var(--sun); stroke: #fff; stroke-width: 2; }
.consts .ring { fill: none; stroke: var(--sun); stroke-width: 1.5; opacity: .55; }
@media (prefers-reduced-motion: no-preference) { .consts .ring { animation: ring 3.2s ease-out infinite; transform-origin: 250px 168px; } @keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } } }
html[dir="rtl"] .consts { transform: scaleX(-1); }
@media (max-width: 899px) { .consts { position: relative; inset: auto; width: 100%; max-width: 380px; margin: 0 auto 6px; display: block; opacity: .85; z-index: 0; } }

/* Sections */
.nsec { padding: 52px 0 8px; }
@media (min-width: 900px) { .nsec { padding: 84px 0 12px; } }
.nsec h2 { margin-bottom: 8px; }

/* A live place: card with its four doors */
.pcards { display: grid; gap: 16px; margin-top: 22px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 20px 18px 18px; }
.pcard-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pcard-top h3 { font: 700 clamp(24px, 6vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; margin: 0; }
.pcard-top .where { color: var(--muted); font-size: 15px; flex: 1 1 100%; margin-top: -6px; }
.tagl { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--wa); color: #fff; font: 700 12px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.tagl.soon { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
html[lang="he"] .tagl { letter-spacing: 0; text-transform: none; }
.pdoors { display: grid; gap: 10px; }
@media (min-width: 700px) { .pdoors { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.pdoor { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.pdoor:hover { border-color: var(--accent); transform: translateY(-1px); }
.pdoor .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.pdoor b { display: block; font: 700 15.5px/1.2 var(--sans); }
.pdoor small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.pdoor.main { background: var(--wa); border-color: transparent; color: #fff; }
.pdoor.main small { color: #e8f7ee; }
.pdoor.main:hover { background: var(--wa-hover); }
.pdoor .ico.wa { background: rgba(255, 255, 255, .2); } .pdoor .ico.ev { background: var(--sun); color: #0f2747; } .pdoor .ico.ask { background: var(--accent); } .pdoor .ico.post { background: var(--teal); }
@media (prefers-color-scheme: dark) { .pdoor .ico.ask { background: #0a69b4; } .pdoor .ico.post { background: #0e7a66; } }
.pcard-more { margin: 12px 4px 0; }
.pcard-more a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

/* Candidates */
.cands { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .cands.two { grid-template-columns: 1fr 1fr; gap: 12px 16px; } }
.cand { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px 12px 16px; padding-inline: 16px 12px; box-shadow: var(--shadow); }
.cand-main { display: grid; gap: 2px; min-width: 0; }
.cand-name { font: 700 19px/1.2 var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cand-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cand-cc { color: var(--muted); font-size: 14px; }
.cand .bar { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin-top: 8px; max-width: 320px; border: 1px solid var(--line); }
.cand .bar i { display: block; height: 100%; background: var(--sun); border-radius: 999px; min-width: 2px; }
.cand-n { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 112px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); font: 700 15px/1.1 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.vbtn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.vbtn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--line); color: var(--ink); cursor: default; }
.vbtn:disabled { opacity: .9; }
.vbtn .ico-svg { font-size: 18px; }
.say { margin: 12px 2px 0; min-height: 1.4em; font-size: 15px; color: var(--muted); }
.say.ok { color: var(--wa); font-weight: 650; }
.say.bad { color: #b3261e; font-weight: 650; }
@media (prefers-color-scheme: dark) { .say.ok { color: #3fbf7f; } .say.bad { color: #ff8a80; } }
.fine { color: var(--muted); font-size: 14px; margin: 12px 2px 0; }

/* Suggest a place */
.suggest { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.suggest h3 { font: 700 20px/1.2 var(--display); margin: 0 0 4px; }
.suggest p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.sgrow { display: grid; gap: 10px; }
@media (min-width: 560px) { .sgrow { grid-template-columns: 1fr auto; } }
.suggest input[type=text], .fbform textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); font: 17px/1.3 var(--sans); }
.suggest input[type=text]:focus-visible, .fbform textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-color: var(--accent); }
.suggest .btn { min-height: 52px; }

/* How it works */
.how { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 20px 22px; box-shadow: var(--shadow); }
.how .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sun); color: #0f2747; font-size: 22px; margin-bottom: 10px; }
.how h3 { font: 700 19px/1.2 var(--display); margin: 0 0 4px; }
.how p { margin: 0; color: var(--muted); }

/* Feedback card on the home page */
.fbcard { display: grid; gap: 14px; background: var(--deep); color: #fff; border-radius: 26px; padding: 26px 22px; margin-top: 4px; }
.fbcard h2 { color: #fff; margin: 0 0 6px; }
.fbcard p { margin: 0; color: var(--on-deep-mute); max-width: 34em; }
@media (min-width: 900px) { .fbcard { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 38px 46px; } .fbcard .btn { justify-self: start; } }

/* /feedback */
.fbform { display: grid; gap: 12px; max-width: 640px; }
.fbform label.l { font: 700 15px/1.2 var(--sans); }
.fbform textarea { min-height: 170px; padding: 14px 16px; resize: vertical; }
.fbform .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fbform .cnt { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alt { max-width: 640px; margin-top: 34px; padding: 18px; border: 1px dashed var(--line); border-radius: 20px; }
.alt h2 { font: 700 20px/1.2 var(--display); margin: 0 0 4px; }
.alt p { margin: 0 0 12px; color: var(--muted); }
.thanks { max-width: 640px; padding: 20px; border-radius: 20px; background: var(--accent-soft); font-size: 18px; }
.thanks .btn { margin-top: 14px; }

/* A place that is not open yet */
.soonbox { display: grid; gap: 14px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); margin-top: 6px; }
.soonbox .bar { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; border: 1px solid var(--line); }
.soonbox .bar i { display: block; height: 100%; background: var(--sun); min-width: 2px; }
.soonbox .vbtn { min-height: 56px; font-size: 17px; justify-content: center; width: 100%; }
.soonlinks { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 2px 0; }
.soonlinks a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 650; text-underline-offset: 3px; }
.soon-note { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.soon-note.show { display: block; }
