/* gooi.io — subpages in the "Avondgracht" style.
   Loaded after style.css + site.css. Two page shapes:
   - .pg-hero + .pg-main: reading pages (about, privacy, beta, compare, ...)
   - .v3-hero.pg-card-hero: one card on the evening sky (report, login, 404, status) */

/* ---------- Header extras ---------- */

.v3-top-right .pg-send {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink) !important;
  background: #fff;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(5, 12, 30, 0.6);
  white-space: nowrap;
}
.v3-top-right .pg-send:hover { background: var(--delft-soft); }

/* Language switch that is a pair of links (pages that exist per language) */
.lang-toggle a.lang-btn { text-decoration: none; display: inline-block; font-size: 0.8rem; font-weight: 600; }

/* ---------- Reading page hero ---------- */

.pg-hero { padding-bottom: 0; }
.pg-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 6vh, 3.5rem) clamp(1rem, 4vw, 2rem) 205px;
  text-shadow: 0 1px 14px rgba(8, 16, 42, 0.45);
}
.pg-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 20ch;
}
.pg-hero .pg-lede {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: #d6dff2;
}
.pg-hero .pg-hero-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.75rem; text-shadow: none; }
.pg-hero .btn-ghost-light {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.pg-hero .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); }
.pg-hero .v3-skyline { height: 250px; }

/* ---------- Reading layout ---------- */

.pg-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4rem) clamp(1rem, 4vw, 2rem) 0;
}
.pg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.pg-aside { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }

.pg-article { max-width: 68ch; }
.pg-article > section + section { margin-top: 2.6rem; }
.pg-article h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}
.pg-article h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.pg-article p { margin-top: 0.75rem; line-height: 1.7; color: #26354f; }
.pg-article p:first-of-type { margin-top: 0.6rem; }
.pg-article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-article ul { margin-top: 0.75rem; padding-left: 1.2rem; }
.pg-article li { margin-top: 0.35rem; line-height: 1.6; color: #26354f; }
.pg-article code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88em; background: var(--delft-soft); padding: 0.1em 0.35em; border-radius: 6px; }

/* Aside cards */
.pg-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.3rem;
}
.pg-box h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.6rem; }
.pg-toc { list-style: none; display: grid; gap: 0.15rem; }
.pg-toc a {
  display: block;
  padding: 0.3rem 0.6rem;
  margin: 0 -0.6rem;
  border-radius: 8px;
  color: var(--ink-2) !important;
  text-decoration: none;
  font-size: 0.95rem;
}
.pg-toc a:hover { background: var(--delft-soft); color: var(--delft-deep) !important; }

.pg-facts { display: grid; gap: 0.7rem; margin: 0; }
.pg-facts div { display: grid; gap: 0.05rem; }
.pg-facts dt { font-size: 0.82rem; color: var(--ink-2); }
.pg-facts dd { margin: 0; font-weight: 600; }

/* ---------- Building blocks ---------- */

.pg-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}
.pg-split .pg-box h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }

/* Lists with a drawn check or cross (no emoji) */
.pg-check, .pg-cross { list-style: none; padding: 0 !important; display: grid; gap: 0.55rem; margin-top: 0.4rem !important; }
.pg-check li, .pg-cross li { display: grid; grid-template-columns: 22px 1fr; gap: 0.55rem; align-items: start; margin: 0 !important; }
.pg-check li::before, .pg-cross li::before {
  content: '';
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 13px;
}
.pg-check li::before {
  background-color: #e3f4ec;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a5f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7.5'/%3E%3C/svg%3E");
}
.pg-cross li::before {
  background-color: #fbe9e1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
}

/* Fold-out detail (technical notes, FAQ) */
.pg-details, .pg-faq details {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 1.1rem;
}
.pg-details summary, .pg-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.pg-details summary::-webkit-details-marker, .pg-faq summary::-webkit-details-marker { display: none; }
.pg-details summary::after, .pg-faq summary::after {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bd8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.pg-details[open] summary::after, .pg-faq details[open] summary::after { transform: rotate(180deg); }
.pg-details > :not(summary), .pg-faq details > :not(summary) { padding-bottom: 1rem; margin-top: 0 !important; }
.pg-faq { margin-top: 1rem; display: grid; gap: 0.6rem; }
.pg-faq details { margin-top: 0; }
.pg-faq p { color: #26354f; line-height: 1.65; }

/* Closing call to action */
.pg-cta {
  margin-top: clamp(3rem, 8vh, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
}
.pg-cta h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.pg-cta p { margin-top: 0.35rem; color: #c5d0e2; max-width: 52ch; }

/* ---------- One card on the evening sky ---------- */

.pg-card-hero .v3-receive-inner { padding-bottom: 240px; }
.pg-card-hero .v3-receive-inner.is-wide { max-width: 640px; }
.pg-card-title {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pg-card-sub { margin-top: 0.5rem; color: var(--ink-2); }
.pg-below { max-width: 640px; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2rem) 0; color: var(--ink-2); text-align: center; }

/* Forms in the light style */
.pg-form { margin-top: 1.4rem; display: grid; gap: 1.1rem; }
.pg-field { display: grid; gap: 0.4rem; }
.pg-field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.pg-field .pg-optional { font-weight: 400; color: var(--ink-2); }
.pg-field small { color: var(--ink-2); font-size: 0.85rem; line-height: 1.45; }
body.v3 .pg-field input,
body.v3 .pg-field select,
body.v3 .pg-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e3;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.v3 .pg-field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
body.v3 .pg-field input:focus,
body.v3 .pg-field select:focus,
body.v3 .pg-field textarea:focus {
  outline: none;
  border-color: var(--delft);
  box-shadow: 0 0 0 4px rgba(47, 107, 216, 0.15);
}
body.v3 .pg-field select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344546e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 16px no-repeat;
  padding-right: 2.4rem;
}
.pg-form .btn { width: 100%; justify-content: center; padding: 0.85rem 1rem; font-size: 1.02rem; }
.pg-msg { font-size: 0.95rem; border-radius: 12px; }
.pg-msg:empty { display: none; }
.pg-msg.success, .pg-msg.ok { display: block; padding: 0.8rem 1rem; background: #e3f4ec; color: #14613f; }
.pg-msg.error { display: block; padding: 0.8rem 1rem; background: #fbe9e1; color: #9a3412; }
.pg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 404: an Amsterdam house-number plate */
.pg-plate {
  display: inline-grid;
  place-items: center;
  min-width: 132px;
  padding: 0.55rem 1.3rem 0.45rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f62c4, #1d4596);
  color: #fff;
  font: 700 2.6rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px #1d4596, 0 10px 24px -10px rgba(16, 32, 58, 0.6);
}

/* Status */
.pg-status-head { display: flex; align-items: center; gap: 0.9rem; }
.pg-status-dot {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--delft-soft);
  color: var(--delft);
}
.pg-status-dot svg { width: 24px; height: 24px; }
.pg-status-dot.ok { background: #e3f4ec; color: var(--ok); }
.pg-status-dot.error { background: #fbe9e1; color: #c2410c; }
.pg-status-grid { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.pg-status-tile { background: var(--page); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; }
.pg-status-tile span { display: block; font-size: 0.82rem; color: var(--ink-2); }
.pg-status-tile strong { display: block; margin-top: 0.15rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pg-status-note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--ink-2); }

/* ---------- Small screens ---------- */

@media (max-width: 920px) {
  .pg-layout { grid-template-columns: 1fr; }
  .pg-aside { position: static; }
  .pg-aside .pg-toc-box { display: none; }
}
@media (max-width: 640px) {
  .pg-split { grid-template-columns: 1fr; }
  .pg-hero-inner { padding-bottom: 150px; }
  .pg-hero .v3-skyline { height: 190px; }
  .pg-card-hero .v3-receive-inner { padding-bottom: 170px; }
  .v3-top-right .pg-send { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
  .v3-top-right .v3-login { display: none; }
  .pg-status-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-details summary::after, .pg-faq summary::after { transition: none; }
}

/* ---------- Card page details ---------- */

.pg-card-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pg-card-foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; }
.pg-login-links { margin-top: 0.9rem; font-size: 0.92rem; }
.pg-404 .pg-plate { margin-bottom: 1.1rem; }

/* Messages written by report.js (#message.message.*) and login.js (.msg.error) */
.pg-form .message:empty { display: none; }
.pg-form .message.success,
.pg-form .message.error,
.login-msg .msg {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}
.pg-form .message.success, .login-msg .msg.success { background: #e3f4ec; color: #14613f; }
.pg-form .message.error, .login-msg .msg.error { background: #fbe9e1; color: #9a3412; }

/* "Stored, but locked" list */
.pg-lock { list-style: none; padding: 0 !important; display: grid; gap: 0.55rem; margin-top: 0.4rem !important; }
.pg-lock li { display: grid; grid-template-columns: 22px 1fr; gap: 0.55rem; align-items: start; margin: 0 !important; }
.pg-lock li::before {
  content: '';
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--delft-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6bd8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Card pages: the footer follows the canal directly */
body.pg main:has(> .pg-card-hero:only-child) + .v3-footer { margin-top: 0; }

@media (max-width: 420px) {
  .v3-top-right { gap: 0.5rem; }
  .v3-top-right .pg-send { font-size: 0.82rem; padding: 0.35rem 0.65rem; }
  body.v3 .lang-btn { padding: 0.2rem 0.5rem; }
}
