/* Feel Free Travel guides. Same look as the Group Leader pages: blue page, white rounded panel
   over a photo banner. Admin pages use the peach background. */
:root {
  --ink: #0b1232;
  --navy: #074b7a;
  --card-top: #e1f1fb;
  --amber: #c27c0e;
  --amber-top: #fdf0d5;
  --green: #008b28;
  --green-dark: #006d22;
  --border: #c9d5e2;
  --muted: #617182;
  --danger: #b42318;
  --danger-top: #fdeceb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #edf5fa;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #edf5fa; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
.simple { max-width: 560px; margin: 18vh auto; padding: 0 20px; text-align: center; }
.simple h1 { font-size: 32px; margin-bottom: 10px; }

/* ---------- Banner ---------- */
.hero {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(2, 28, 45, .45), rgba(2, 28, 45, .15) 60%, rgba(2, 28, 45, .35)),
    var(--banner, none) center 55% / cover,
    linear-gradient(115deg, #04495b, #ffb76a);
  display: flex;
  align-items: center;
}
.hero-inner { max-width: 1080px; margin: auto; width: 100%; padding: 30px 20px 62px; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(10, 25, 40, .8); }
.eyebrow { font-size: clamp(14px, 2.2vw, 17px); font-weight: 700; letter-spacing: .4px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; margin: 0 0 12px; font-weight: 800; }
.subtitle { font-size: clamp(17px, 2.6vw, 26px); font-weight: 700; }

.panel { position: relative; max-width: 860px; margin: -35px auto 45px; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 8px 30px #153c5726; }

/* ---------- Guide content ---------- */
.contents { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.contents a { text-decoration: none; color: var(--navy); background: #eef4f9; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.contents a:hover { background: var(--card-top); }

.part { display: flex; align-items: baseline; gap: 10px; margin: 38px 0 14px; padding-top: 6px; font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; font-weight: 800; scroll-margin-top: 16px; }
.part:first-of-type { margin-top: 6px; }
.part small { flex: none; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--navy); background: var(--card-top); border-radius: 999px; padding: 3px 10px; transform: translateY(-3px); }
.lead { font-size: 17px; margin-bottom: 14px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fact.wide { grid-column: 1 / -1; }
.fact-list { margin: 4px 0 0; padding-left: 20px; font-size: 16px; }
.fact-list li + li { margin-top: 4px; }

/* A value to copy: the text on show, with a Copy button. */
.copybox { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 2px solid var(--border); border-radius: 14px; background: #f7fbfe; padding: 10px 12px 10px 16px; }
.copybox code { background: none; padding: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.copybox .btn { flex: none; }
.fact { background: linear-gradient(180deg, var(--card-top), #f4faff 70%); border: 1px solid #d3e6f3; border-radius: 18px; padding: 14px 18px; }
.fact-label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--navy); margin-bottom: 4px; }
.fact-value { font-size: 17px; font-weight: 700; }
.fact-value.normal { font-weight: 500; font-size: 16px; }

.example { border: 2px dashed var(--border); border-radius: 18px; padding: 14px 18px; margin: 16px 0; }
.example-title { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.example dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.example dt { color: var(--muted); font-weight: 700; }
.example dd { margin: 0; font-weight: 700; }
code, .code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: #eef4f9; border-radius: 6px; padding: 1px 7px; font-size: .92em; }

/* Steps */
.step { border: 1px solid #d3e6f3; border-radius: 20px; margin: 14px 0; background: #fff; box-shadow: 0 2px 10px #153c570d; overflow: hidden; scroll-margin-top: 16px; }
.step:target { border-color: var(--navy); box-shadow: 0 0 0 3px #074b7a33; }
.step-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(180deg, var(--card-top), #f1f8fd); }
.step-num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; }
.step-num.alt { background: var(--amber); }
.step-head h3 { font-size: 19px; line-height: 1.25; }
.step-head .aside { font-size: 15px; font-weight: 600; color: var(--muted); }
.step-head .step-tag { display: block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--navy); margin-bottom: 1px; }
.step-body { padding: 14px 18px 6px; }
.step-body > * + * { margin-top: 12px; }
.step-body ul, .step-body ol { padding-left: 22px; margin-bottom: 0; }
.step-body li + li { margin-top: 5px; }
.step-body ol { padding-left: 0; list-style: none; counter-reset: sub; }
.step-body ol > li { counter-increment: sub; position: relative; padding-left: 34px; min-height: 26px; }
.step-body ol > li::before { content: counter(sub); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: #e8f0f7; color: var(--navy); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.step-body ol ul { margin-top: 6px; }
.note-line { font-size: 15px; color: var(--muted); }
kbd { font-family: inherit; font-size: .9em; font-weight: 700; background: #fff; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 0 7px; }

/* Callouts */
.callout { border-radius: 14px; padding: 12px 16px; border-left: 5px solid; }
.callout b:first-child { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 2px; }
.callout.warn { background: var(--danger-top); border-color: var(--danger); }
.callout.warn b:first-child { color: var(--danger); }
.callout.important { background: var(--amber-top); border-color: var(--amber); }
.callout.important b:first-child { color: #8a5608; }
.callout.info { background: #eef6fb; border-color: var(--navy); }
.callout.info b:first-child { color: var(--navy); }
.callout p + p { margin-top: 6px; }
.callout.big { margin: 6px 0 18px; padding: 16px 20px; border-left-width: 8px; font-size: 17px; }
.callout.big b:first-child { font-size: 18px; letter-spacing: .3px; margin-bottom: 6px; }
.callout.big p { font-weight: 400; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th { text-align: left; background: #eef4f9; color: var(--navy); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
th, td { padding: 9px 14px; border-bottom: 1px solid #e4edf5; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* Checklist */
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 4px; }
.step-body .checklist > li { padding: 0; min-height: 0; counter-increment: none; }
.step-body .checklist > li::before { content: none; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.checklist label:hover { background: #f4f9fd; }
.checklist input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist-progress { font-size: 14px; font-weight: 700; color: var(--green-dark); }
.checklist-hint { font-size: 14px; font-weight: 700; color: var(--amber); margin-bottom: 6px; }
.checklist-hint:empty { display: none; }
.checklist input:disabled { cursor: not-allowed; }
.checklist label:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.run-who { max-width: 420px; margin-bottom: 12px; }
.run-who label, .run-end label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.run-who select, .run-end textarea { border: 2px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.run-end textarea::placeholder, .fb-form textarea::placeholder { font-weight: 400; color: #8b98a7; }
.run-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.run-add[hidden] { display: none; }
.run-add input { flex: 1 1 200px; border: 2px solid var(--border); border-radius: 12px; padding: 7px 12px; font-size: 16px; background: #fff; }
.run-add input:focus { outline: none; border-color: var(--navy); }
.run-end { display: grid; gap: 10px; margin: 12px 0 6px; }
.run-end textarea { min-height: 96px; resize: vertical; }

.closing { text-align: center; font-weight: 800; font-size: 18px; margin: 26px 0 6px; color: var(--navy); }

/* ---------- Feedback ---------- */
.fb { border-top: 1px solid #e4edf5; margin-top: 14px; padding: 8px 0 10px; }
.fb-toggle { border: 2px solid var(--border); border-radius: 999px; background: #fff; color: #082d47; font-size: 13px; font-weight: 700; padding: 3px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fb-toggle:hover { border-color: #082d47; }
.fb-toggle[hidden] { display: none; }
.fb-form { display: grid; gap: 8px; margin-top: 10px; max-width: 560px; }
.fb-form[hidden] { display: none; }
.fb-form label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fb-form input, .fb-form textarea { border: 2px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: 16px; background: #fff; width: 100%; }
.fb-form textarea { min-height: 84px; resize: vertical; }
.fb-form input:focus, .fb-form textarea:focus { outline: none; border-color: var(--navy); }
.fb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn { border: 2px solid var(--border); background: #fff; color: #082d47; border-radius: 12px; padding: 7px 16px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: #082d47; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { padding: 3px 12px; font-size: 13px; border-radius: 999px; }
.fb-msg { font-size: 14px; font-weight: 700; }
.fb-msg.error { color: var(--danger); }
.fb-msg.ok { color: var(--green-dark); }
.page-feedback { margin-top: 34px; border: 2px dashed var(--amber); border-radius: 20px; background: #fffaf0; padding: 16px 18px 10px; }
.page-feedback h2 { font-size: 20px; margin-bottom: 2px; }
.page-feedback > p { color: var(--muted); font-size: 15px; }
.page-feedback .fb { border-top: 0; margin-top: 0; padding-top: 6px; }
.page-feedback .fb-form[hidden] { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 90; background: #082d47; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin (peach, like the Group Leader admin) ---------- */
html:has(body.admin), body.admin { background: #fbe9dc; }
.admin-bar { background: #8a4a2e; color: #fff; }
.admin-bar-inner { max-width: 1100px; margin: auto; padding: 22px 20px 54px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.admin-bar h1 { font-size: 28px; font-weight: 800; }
.admin-bar .who { opacity: .85; font-size: 15px; }
.admin-bar a { color: #fff; font-weight: 700; font-size: 14px; }
body.admin .panel { max-width: 1100px; margin-top: -30px; }
.admin-tabs { display: flex; gap: 6px; margin: 0 0 20px; border-bottom: 2px solid #e4edf5; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.admin-tab { border: 0; background: none; padding: 10px 16px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.admin-tab.active { color: #8a4a2e; border-bottom-color: #8a4a2e; }
.tab-count { background: var(--danger); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; min-width: 20px; text-align: center; }
.tab-count.zero { display: none; }
.guide-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; border: 1px solid #ecd6c6; border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; background: #fffaf6; }
.guide-card h3 { font-size: 18px; }
.guide-card p { color: var(--muted); font-size: 15px; }
.guide-path { font-size: 13px; color: var(--muted); margin-top: 4px; }
.guide-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.pill { border: 2px solid var(--border); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; padding: 3px 11px; cursor: pointer; }
.pill.bad { color: var(--danger); border-color: #f0b4ae; }
.empty { color: var(--muted); padding: 22px 4px; font-size: 16px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters select { border: 2px solid var(--border); border-radius: 12px; padding: 7px 12px; font-size: 15px; background: #fff; }
.fb-item { border: 1px solid #ecd6c6; border-radius: 18px; padding: 14px 18px; margin-bottom: 12px; background: #fff; }
.fb-item.done { opacity: .72; background: #f7f7f7; }
.fb-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.badge { background: var(--card-top); color: var(--navy); border-radius: 999px; padding: 1px 10px; font-weight: 800; font-size: 12px; }
.badge.step { background: var(--amber-top); color: #8a5608; }
.badge.done { background: #dff3e4; color: var(--green-dark); }
.fb-text { white-space: pre-wrap; font-size: 16px; }
.fb-note { margin-top: 8px; background: #f4f9fd; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.fb-item .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.note-form { display: grid; gap: 8px; margin-top: 10px; }
.note-form textarea { border: 2px solid var(--border); border-radius: 12px; padding: 8px 12px; min-height: 70px; width: 100%; }
.login { text-align: center; padding: 30px 0 16px; }
.login p { margin-bottom: 16px; color: var(--muted); }
.login-form { display: grid; gap: 12px; max-width: 320px; margin: 0 auto 16px; text-align: left; }
.login-form label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.login-form select, .login-form input { border: 2px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.login-form select:focus, .login-form input:focus { outline: none; border-color: #8a4a2e; }
.login-form .btn { justify-content: center; }

@media (max-width: 640px) {
  .hero { min-height: 220px; }
  .hero-inner { padding: 24px 16px 56px; }
  .panel { margin: -28px 10px 30px; padding: 18px 12px; border-radius: 20px; }
  .facts { grid-template-columns: 1fr; }
  .copybox { flex-direction: column; align-items: stretch; padding: 12px; }
  .copybox .btn { justify-content: center; }
  .step-head { padding: 12px 14px; gap: 12px; }
  .step-body { padding: 12px 14px 4px; }
  .step-head h3 { font-size: 17px; }
  .part { flex-direction: column; gap: 6px; }
  .part small { transform: none; align-self: flex-start; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-actions { justify-content: flex-start; }
  body.admin .panel { margin: -28px 10px 30px; }
}
