/* 118: base styles, then the shell and Oversigt, then the parking page. */
:root {
  color-scheme:light;
  --ink:#173f36;
  --green:#1b5747;
  --mint:#d9eadf;
  --cream:#f6f6f0;
  --muted:#5c756b;
  --line:#d7e0d8;
  --orange:#d16c42;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font:15px/1.45 "Avenir Next",Avenir,"Trebuchet MS",sans-serif;
}
button,input {
  font:inherit;
}
button {
  cursor:pointer;
}
.hidden {
  display:none!important;
}
.top {
  height:60px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(24px,calc((100vw - 1120px)/2));
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:12px;
  letter-spacing:.13em;
  font-weight:800;
  line-height:1.3;
}
.brand small {
  display:block;
  font-size:10px;
  letter-spacing:.18em;
  color:#769084;
}
.brand-icon {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:white;
  border-radius:10px;
  font:700 14px Georgia,serif;
}
.text-button,.refresh {
  border:0;
  background:transparent;
  color:var(--green);
}
main {
  max-width:1120px;
  margin:auto;
  padding:32px 24px 36px;
}
.eyebrow {
  font-size:12px;
  letter-spacing:.17em;
  font-weight:800;
  color:#728a7c;
  margin:0 0 15px;
}
h1,h2,p {
  margin-top:0;
}
h1 {
  font:normal clamp(34px,5vw,52px)/1.05 Georgia,serif;
  letter-spacing:-.04em;
  margin-bottom:16px;
}
h1 em {
  font-weight:normal;
  color:#638674;
}
h2 {
  font:normal 26px/1.1 Georgia,serif;
  letter-spacing:-.035em;
  margin:0;
}
.refresh {
  border:1px solid #bdcfc1;
  border-radius:50%;
  width:36px;
  height:36px;
  font-size:20px;
  line-height:1;
}
.primary {
  border:0;
  border-radius:12px;
  min-height:46px;
  font-weight:700;
  transition:transform .15s,opacity .15s;
}
.primary:hover {
  transform:translateY(-2px);
}
button:disabled {
  opacity:.5;
  cursor:wait;
  transform:none;
}
.login label {
  display:block;
  font-size:12px;
  letter-spacing:.1em;
  font-weight:800;
  color:#4f6c5d;
}
.login input {
  border:1px solid #c7d7ca;
  background:white;
  border-radius:10px;
  min-height:44px;
  padding:10px;
  width:100%;
  color:var(--ink);
  margin:6px 0 12px;
}
.primary {
  background:var(--green);
  color:#fff;
  width:100%;
  padding:0 18px;
}
.login {
  max-width:440px;
  margin:8px auto;
}
.login p:not(.eyebrow) {
  color:var(--muted);
}
.login form {
  margin-top:20px;
}
.error {
  color:#a53f30!important;
}
.toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:#163f34;
  color:#fff;
  border-radius:10px;
  padding:11px 16px;
  box-shadow:0 12px 38px #0002;
  z-index:3;
  max-width:90vw;
}
.toast.error {
  background:#943d2d;
  color:#fff!important;
}
@media(max-width:720px) {
  .top {
    height:52px;
    padding:0 16px;
  }
  main {
    padding:18px 16px 24px;
  }
  h1 {
    font-size:32px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}

/* ---- shell: header link, Oversigt and the subnav -------------------------------- */
a.brand { color: inherit; text-decoration: none; }
.overview h1 { margin-bottom: 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 68px;
  background: #fff; border: 1px solid #dbe5dc; border-radius: 16px; color: inherit; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 30px #1c4d3814; }
.tile:focus-visible, .back:focus-visible { outline: 3px solid #9cc5ad; outline-offset: 2px; }
.tile-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: #fff;
  display: grid; place-items: center; font: 24px/1 Georgia, serif;
}
.tile-body { flex: 1; min-width: 0; }
.tile-title { display: block; font: 19px/1.15 Georgia, serif; letter-spacing: -.02em; }
.tile-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.tile-arrow { color: var(--green); font-size: 18px; }
.overview-note { color: #789083; font-size: 13px; margin-top: 14px; }

.subnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px 0 10px; }
.back { color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 0; }

/* ---- parking -------------------------------------------------------------------------------------- */
.pn { max-width: 640px; }
.pn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pn-title { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 2px; }
.pn-meta { color: var(--muted); margin: 0; }
.pn-updated { font-size: 12px; color: #789083; margin: 4px 0 0; }
.pn-label { font: 800 11px/1.3 "Avenir Next", Avenir, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #728a7c; margin: 18px 0 6px; }
.pn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pn-car { background: #fff; border: 1px solid #dbe5dc; border-radius: 14px; padding: 10px 12px; }
.pn-car-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pn-car-name { color: #607a6e; font-weight: 700; font-size: 13px; text-align: right; }
.pn-car-state { margin: 8px 0 0; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pn-car-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.is-active .pn-car-state { color: #2f7a52; }
.is-soon .pn-car-state { color: #b8572f; }
.is-off .pn-car-state { color: #97705e; }
.is-off .pn-car-state::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.is-unknown .pn-car-state { color: #a53f30; }
.is-loading .pn-car-state { color: #8ea99a; }
.pn-bar { height: 5px; border-radius: 3px; background: #e3ece5; margin: 7px 0 0; overflow: hidden; }
.pn-bar span { display: block; height: 100%; border-radius: 3px; background: #3f8a62; }
.is-soon .pn-bar span { background: var(--orange); }
.pn-until { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.pn-give, .pn-go {
  border: 0; border-radius: 10px; min-height: 40px; font-weight: 700; background: var(--green); color: #fff;
  transition: transform .15s, opacity .15s;
}
.pn-give { width: 100%; margin-top: 10px; }
.pn-give:hover, .pn-go:hover { transform: translateY(-1px); }

/* a Danish plate: white, red rim, blue EU strip */
.pn-plate {
  display: inline-flex; align-items: stretch; background: #fff; border: 2px solid #b8343a; border-radius: 6px;
  font-weight: 800; letter-spacing: .07em; font-size: 16px; line-height: 1; color: #111; overflow: hidden; white-space: nowrap;
}
.pn-plate > span:last-child { padding: 6px 9px 5px; }
.pn-plate-eu { background: #2d5b87; color: #fff; font-size: 10px; letter-spacing: .05em; display: grid; place-items: end center; padding: 0 5px 5px; }
.pn-other { display: flex; gap: 8px; }
.pn-plate-input { flex: 1; min-width: 0; font-size: 19px; }
.pn-plate-input input {
  border: 0; outline: 0; min-width: 0; width: 100%; padding: 9px 10px; font: inherit; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: #111; background: transparent;
}
.pn-plate-input input::placeholder { color: #c3c9c5; }
.pn-plate-input:focus-within { box-shadow: 0 0 0 3px #9cc5ad; }
.pn-go { padding: 0 16px; }
.pn-hint { font-size: 13px; color: #a53f30; min-height: 18px; margin: 6px 0 0; }

/* the confirmation sheet: a bottom sheet on a phone, a centred card on a wide screen */
.pn-sheet {
  border: 0; padding: 0; width: 100%; max-width: 520px; margin: auto auto 0; max-height: 92vh;
  border-radius: 24px 24px 0 0; background: var(--cream); color: var(--ink); box-shadow: 0 -10px 40px #0003;
}
.pn-sheet::backdrop { background: #0d241d73; }
.pn-sheet[open] { animation: pn-up .22s ease-out; }
@keyframes pn-up { from { transform: translateY(40px); opacity: 0; } }
.pn-sheet form { padding: 8px 18px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.pn-grip { width: 40px; height: 5px; border-radius: 3px; background: #c9d6cc; margin: 0 auto 12px; }
.pn-sheet h2 { margin-bottom: 12px; }
.pn-plate-big { align-self: flex-start; font-size: 24px; }
.pn-plate-big .pn-plate-eu { font-size: 12px; padding: 0 7px 7px; }
.pn-plate-big > span:last-child { padding: 8px 12px 7px; }
.pn-sheet-name { color: var(--muted); margin: 6px 0 12px; }
.pn-period { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: #fff; border: 1px solid #dbe5dc; border-radius: 14px; padding: 10px 14px; }
.pn-period small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #728a7c; }
.pn-period strong { font: normal 19px/1.2 Georgia, serif; }
.pn-period-arrow { color: #8ea99a; font-size: 20px; }
.pn-mail { display: block; font-size: 12px; font-weight: 700; color: #4f6c5d; margin-top: 12px; }
.pn-mail input { display: block; width: 100%; margin-top: 5px; min-height: 42px; padding: 8px 10px; border: 1px solid #c7d7ca; border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.pn-sheet-error { color: #a53f30; font-size: 13px; min-height: 18px; margin: 8px 0 4px; }
.pn-confirm { min-height: 46px; font-size: 16px; }
.pn-sheet.done .pn-confirm { background: #2f7a52; opacity: 1; cursor: default; }
.pn-cancel { border: 0; background: transparent; color: var(--green); font-weight: 700; min-height: 40px; margin-top: 2px; }
@media (min-width: 721px) {
  .pn-sheet { margin: auto; border-radius: 24px; }
  .pn-grip { display: none; }
}
@media (max-width: 720px) {
  .subnav { margin: -8px 0 6px; }
  .overview h1 { margin-bottom: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .pn-plate { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pn-sheet[open] { animation: none; } }

/* car photos */
.pn-car-who { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pn-car-who .pn-car-name { text-align: left; }

.pn-car-art { width: 84px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
@media (max-width: 360px) { .pn-car-art { width: 72px; height: 46px; } }
/* photo credits */
.credits { font-size: 11px; line-height: 1.5; color: #8a9d92; margin-top: 24px; max-width: 640px; }
.credits a { color: inherit; }
/* staging: a reminder that nothing here reaches e-park */
.offline-note { background: #fff4dc; border: 1px solid #ecd49c; color: #6d5523; border-radius: 12px; padding: 8px 12px; font-size: 13px; margin: 0 0 12px; max-width: 640px; }
