/* The page the router's setup name shows on the public internet (not-on-router.html). It is
   served under that name over plain HTTP, with site.css, this file and the logo and nothing else:
   whatever it needs has to be listed in deployment/nginx-router-setup-domain.conf as well. */
.away-page { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 24px 56px; }
.away-intro { max-width: 44rem; }
.away-state { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--sun-light); color: var(--sun-ink); font-size: 14px; }
.away-state .icon { margin-top: 3px; }

.away-columns { display: grid; gap: 16px; margin-top: 24px; }
.away-side { display: grid; gap: 16px; align-content: start; }
.away-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--card-radius); background: #fff; box-shadow: var(--shadow); }
.away-card h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.away-card p { color: var(--muted); font-size: 14px; }
.away-card p a { color: var(--forest); font-weight: 600; }

/* Numbered steps: the number sits in a disc, joined to the next by a line. */
.away-steps { display: grid; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.away-steps > li { position: relative; display: grid; gap: 6px; justify-items: start; padding: 0 0 24px 46px; counter-increment: step; }
.away-steps > li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--forest); font-size: 14px; font-weight: 800; }
.away-steps > li::after { content: ""; position: absolute; top: 36px; bottom: 6px; left: 14px; width: 2px; border-radius: 1px; background: var(--line); }
.away-steps > li:last-child { padding-bottom: 0; }
.away-steps > li:last-child::after { display: none; }
.away-steps .button { margin-top: 6px; }
.away-card .away-hint { font-size: 13px; }

.away-app { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--mint-light); }
.away-app > div { flex: 1 1 16rem; }
.away-app p { margin-top: 2px; }

.away-links { display: grid; margin: 10px -10px -10px; padding: 0; list-style: none; }
.away-links a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px; border-radius: 14px; text-decoration: none; }
.away-links a:hover { background: var(--soft); }
.away-links a > .icon:first-child { width: 22px; height: 22px; color: var(--forest); }
.away-links span { flex: 1; min-width: 0; }
.away-links strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.away-links small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.away-go { color: var(--subtle); }

.away-card details { border-top: 1px solid var(--line); }
.away-card h2 + details { margin-top: 12px; }
.away-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.away-card summary::-webkit-details-marker { display: none; }
.away-card summary::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(45deg); transition: transform .15s; }
.away-card details[open] > summary::after { transform: rotate(-135deg); }
.away-card details > p { padding-bottom: 12px; }
.away-card details:last-child > p:last-child { padding-bottom: 0; }

.away .site-footer a { color: inherit; }

@media (min-width: 900px) {
  .away-page { padding-top: 40px; }
  .away-intro h1 { font-size: 32px; }
  .away-columns { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .away-card { padding: 26px; }
}
@media (max-width: 767px) {
  .away-page { padding: 20px 16px 40px; }
  .away-intro h1 { font-size: 24px; }
  .away-card { padding: 18px; }
  .away-steps .button, .away-app .button { width: 100%; min-height: 48px; }
}
