/*
 * The website's text pages (pagalba.html, privatumas.html): the app's tokens and font from app.css, but a page that
 * scrolls, lets adults select text and zoom, and reads well from a phone to an iPad.
 */
html.site, html.site body {
  height: auto; min-height: 100%; overflow: visible; overscroll-behavior: auto;
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; touch-action: auto;
}
html.site body { background-size: 64px 64px; }
.site * { touch-action: auto; }

.site-page {
  width: min(100%, 760px); margin: 0 auto; display: flex; flex-direction: column; gap: 20px;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  font-size: 18px; line-height: 1.5;
}
.site-head { display: flex; align-items: center; gap: 16px; }
.site-logo { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.site-brand { font-size: 18px; font-weight: 800; color: var(--ink-soft); line-height: 1.2; }
.site-head h1 { font-size: clamp(32px, 7vw, 44px); line-height: 1.05; font-weight: 800; }

.site-card {
  background: var(--paper); border-radius: 24px; padding: clamp(18px, 4vw, 28px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 6px 0 var(--line-strong), inset 0 0 0 3px var(--line);
}
.site-card h2 { font-size: 26px; line-height: 1.15; font-weight: 800; }
.site-text h2 { margin-top: 8px; font-size: 22px; }
.site-card ul, .site-card ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
/* A link: darker than --sky-deep, for 4.5:1 on white (WCAG AA). */
.site { --link: #1e6dc2; }
.site-card a, .site-foot a { color: var(--link); font-weight: 700; }
.site-card b { font-weight: 800; }
.site-hint { color: var(--ink-soft); font-size: 16px; }

/* FAQ: a question per row; a tap opens the answer */
.site-faq { border-radius: 16px; background: var(--mist-soft); }
.site-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px;
  font-weight: 800; line-height: 1.3; cursor: pointer; list-style: none;
}
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin: 0 4px;
  border-right: 4px solid var(--mist-deep); border-bottom: 4px solid var(--mist-deep);
  transform: translateY(-25%) rotate(45deg); transition: transform var(--t-fast) var(--ease-out);
}
.site-faq[open] summary::after { transform: translateY(25%) rotate(225deg); }
.site-faq > p, .site-faq > ol { padding: 0 16px 16px; }
.site-faq > ol { padding-left: calc(16px + 1.3em); }

/* The form */
.site-form { display: flex; flex-direction: column; gap: 10px; }
.site-label { font-weight: 800; margin-top: 6px; }
.site-form textarea, .site-form input {
  width: 100%; border: 0; border-radius: 16px; padding: 12px 16px; font: 600 18px / 1.4 var(--font); color: var(--ink);
  background: var(--mist-soft); box-shadow: inset 0 0 0 3px var(--line-strong);
}
.site-form textarea { resize: vertical; min-height: 150px; }
.site-form input { min-height: 56px; }
.site-form textarea:focus, .site-form input:focus { outline: none; box-shadow: inset 0 0 0 3px var(--sky); }
.site-form [aria-invalid='true'] { box-shadow: inset 0 0 0 3px var(--tomato); }
.site-attached { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.site-chip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--sky-soft); overflow-wrap: anywhere;
}
.site-mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.site-clear {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--paper); cursor: pointer;
  font: 700 16px / 1 var(--font); color: var(--ink); box-shadow: inset 0 0 0 3px var(--line-strong);
}
.site-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.site-offline, .site-error { padding: 10px 16px; border-radius: 16px; font-weight: 700; }
.site-offline { background: var(--sun-soft); }
.site-error { background: var(--tomato-soft); color: var(--tomato-deep); }
.site-form .btn { align-self: flex-start; margin: 8px 0 8px; min-height: 64px; padding: 0 36px; font-size: 22px; }
.site-card a.btn { min-height: 64px; padding: 0 36px; font-size: 22px; color: #fff; text-decoration: none; }
.site-form .btn:disabled { opacity: 0.55; cursor: default; }
.site-sent { padding: 16px; border-radius: 16px; background: var(--mint-soft); outline: none; }
.site-sent-title { font-size: 24px; font-weight: 800; color: var(--mint-deep); }

.site-foot { text-align: center; }
