/* Drivkalkylatorn — scoped to .dk ([drivkalkyl]). */
.dk, .dk * { box-sizing: border-box; }
.dk [hidden] { display: none !important; } /* theme resets must not un-hide our sections */
.dk button { text-transform: none; letter-spacing: normal; box-shadow: none; }
.dk {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #16232f; line-height: 1.55;
  max-width: 820px; margin: 0 auto; padding: 24px 20px 36px; /* same column as the registration form */
}
.dk-head { text-align: left; margin-bottom: 22px; }
.dk-how { margin-top: 6px; font-size: 14px; color: #33475b; }
.dk-how summary { cursor: pointer; color: #0b57d0; font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.dk-how summary::-webkit-details-marker { display: none; }
.dk-how summary::after { content: '▾'; font-size: 12px; transition: transform 0.15s; }
.dk-how[open] summary::after { transform: rotate(180deg); }
.dk-how p { margin: 8px 0 0; max-width: 64ch; line-height: 1.6; }
.dk-resbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dk-back { background: none; border: 1px solid #d5e0ea; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; color: #0b3d66; cursor: pointer; }
.dk-resbar-t { font-size: 20px; font-weight: 800; color: #0b3d66; }
.dk-infobox { background: #fff; border: 1px solid #d5e0ea; border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.dk-members { font-size: 12px; color: #5a6b7a; margin: 0 0 8px; }
.dk h1.dk-title { font-size: 28px; font-weight: 500; color: #1f1f1f; margin: 0 0 8px; text-transform: none; letter-spacing: 0; line-height: 1.25; }
.dk-lead { color: #444746; font-size: 16px; margin: 0 0 4px; max-width: 64ch; line-height: 1.5; }

.dk-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.dk-modes button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: #fff; border: 2px solid #d5e0ea; border-radius: 14px; padding: 14px 16px;
  font: inherit; cursor: pointer; color: #16232f;
}
.dk-modes button b { font-size: 15px; color: #1f1f1f; font-weight: 500; }
.dk-modes button small { font-size: 13px; color: #444746; }
.dk-modes button.on { border-color: #0b57d0; background: #e8f0fe; }

.dk-label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
.dk-label-sub { font-weight: 400; color: #5a6b7a; font-size: 12px; }
.dk-map { width: 100%; height: 340px; border-radius: 10px; background: #e3eef7; margin-bottom: 8px; }
.dk-pos-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dk-btn-ghost { background: #e3eef7; color: #0b3d66; border: 0; border-radius: 8px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.dk-pos-label { font-size: 13px; color: #5a6b7a; }
.dk-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dk-coords input, .dk input[type="datetime-local"] { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #c7d3de; border-radius: 8px; background: #fff; color: #16232f; }
.dk-typecards { display: grid; gap: 8px; }
.dk-typecards button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: #fff; border: 2px solid #d5e0ea; border-radius: 10px; padding: 10px 14px;
  font: inherit; cursor: pointer; color: #16232f;
}
.dk-typecards button b { font-size: 14px; color: #0b3d66; }
.dk-typecards button small { font-size: 12px; color: #5a6b7a; }
.dk-typecards button.on { border-color: #0b3d66; background: #e7f0f8; }
.dk-typecards button.on b::after { content: '  ✓'; }
.dk-hint { font-size: 12px; color: #5a6b7a; margin: 6px 0 0; }
#dk-submit {
  display: block; width: 100%; margin-top: 18px; background: #0b3d66; color: #fff; border: 0; border-radius: 10px;
  padding: 14px 20px; font-size: 16px; font-weight: 600; cursor: pointer; font-family: inherit;
}
#dk-submit[disabled] { opacity: 0.6; }

.dk-out { margin-top: 0; }
.dk-error { margin-top: 12px; background: #fdf6e8; border: 2px solid #ecd9ac; border-radius: 12px; padding: 12px; font-size: 14px; }
.dk-summary { background: #fff4e5; border-left: 4px solid #ff8b3d; border-radius: 8px; padding: 10px 14px; font-size: 15px; font-weight: 600; color: #6b3a00; margin: 0 0 10px; }
.dk-caveat { color: #8a6d1a; font-size: 12px; margin: 6px 0 0; }
.dk-harbors { margin-top: 14px; }
.dk-harbors h2 { font-size: 16px; color: #0b3d66; margin: 0 0 4px; }
.dk-harbor { font-size: 14px; padding: 6px 0; border-bottom: 1px solid #e3e8ee; }
.dk-harbor-name { font-weight: 700; color: #0b3d66; text-decoration: none; }
.dk-harbor-meta { color: #5a6b7a; font-size: 13px; }

.dk-next { display: grid; gap: 10px; margin-top: 22px; }
.dk-next-card { background: #f2f7fb; border-radius: 12px; padding: 16px 18px; }
.dk-next-card h2 { font-size: 16px; color: #0b3d66; margin: 0 0 6px; }
.dk-next-card p { font-size: 14px; color: #33475b; margin: 0 0 12px; }
.dk-next-btn { display: block; text-align: center; background: #0b3d66; color: #fff; border-radius: 10px; padding: 12px; font-weight: 600; text-decoration: none; }
.dk-next-btn--2 { background: #e3eef7; color: #0b3d66; }
.dk-foot { margin-top: 24px; text-align: center; font-size: 12px; color: #5a6b7a; }
@media (min-width: 720px) { .dk-next { grid-template-columns: 1fr 1fr; } }
/* the shared cone legend (drift-cone.js emits .ha-legend/.ha-key or .vf-*) */
.dk .ha-legend, .dk .vf-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #33475b; }
.dk .ha-key i, .dk .vf-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.dk .vf-svg, .dk .ha-svg { width: 100%; background: #f2f7fb; border: 1px solid #d5e0ea; border-radius: 10px; }

/* Mobile */
@media (max-width: 600px) {
  .dk { padding: 16px 14px 28px; }
  .dk h1.dk-title { font-size: 24px; }
  .dk-modes { grid-template-columns: 1fr; }
  .dk-coords { grid-template-columns: 1fr; }
  .dk-map { height: 280px; }
  .dk-resbar { flex-wrap: wrap; }
  .dk-resbar-t { font-size: 17px; }
}
