/* Expert Class Travel — site styles */
:root {
  --navy: #044b89;
  --navy-deep: #032f57;
  --navy-ink: #0c2236;
  --green: #60a433;
  --green-dark: #4c8a24;
  --red: #e84545;
  --sky: #eaf2fa;
  --paper: #f6f8fb;
  --line: #dde5ee;
  --text: #1d2b3a;
  --muted: #5b6b7c;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(4, 40, 80, .06), 0 8px 24px rgba(4, 40, 80, .08);
  --font-head: "Nunito", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font-body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy-ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
code { background: var(--sky); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
small { font-size: .82em; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin-top: .8em; }
.lead { font-size: 1.2rem; color: var(--navy-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.narrow-lg { max-width: 920px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 800 1rem/1 var(--font-head); color: var(--white); background: var(--green);
  border: 0; border-radius: 999px; padding: .85em 1.5em; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s; box-shadow: 0 2px 0 var(--green-dark);
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(96, 164, 51, .45); outline-offset: 2px;
}
.btn-lg { font-size: 1.15rem; padding: 1em 2.4em; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--sky); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: none; }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-danger-ghost { background: transparent; color: #b42323; box-shadow: inset 0 0 0 2px #f1c4c4; }
.btn-danger-ghost:hover { background: #fdeeee; color: #b42323; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger { color: #b42323; }

/* ---------- Alerts / tags ---------- */
.alert { border-radius: 10px; padding: .8em 1em; margin: 1em 0; border-left: 4px solid; background: var(--sky); border-color: var(--navy); font-size: .97rem; }
.alert-success { background: #eef7e8; border-color: var(--green); }
.alert-error { background: #fdeeee; border-color: var(--red); }
.tag { display: inline-block; font: 700 .72rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; background: var(--sky); color: var(--navy); padding: .45em .7em; border-radius: 999px; }
.tag-warn { background: #fff3d6; color: #8a5a00; }
.status { display: inline-block; font: 700 .78rem/1 var(--font-head); padding: .45em .75em; border-radius: 999px; background: var(--sky); color: var(--navy); white-space: nowrap; }
.status-new { background: #fdeeee; color: #b42323; }
.status-open { background: #fff3d6; color: #8a5a00; }
.status-quoted { background: var(--sky); color: var(--navy); }
.status-booked { background: #eef7e8; color: #3b6e1b; }
.status-closed { background: #eef0f3; color: var(--muted); }
.status-failed { background: #fdeeee; color: #b42323; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; font-weight: 600; font-size: .95rem; color: var(--navy-ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form label > input, .form label > select, .form label > textarea { flex: 1 0 100%; }
.form .check > input, .form .toggle > input { flex: 0 0 auto; }
.form .check, .form .toggle { flex-wrap: nowrap; align-items: flex-start; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; }
input[disabled] { background: var(--paper); color: var(--muted); }
textarea { resize: vertical; }
.form .check, .form .toggle { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input, .toggle input { width: auto; margin-top: .3em; accent-color: var(--green); }
.toggle { background: var(--paper); padding: 1rem; border-radius: 10px; }
.toggle input { width: 1.2rem; height: 1.2rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .gap-lg { gap: 1.5rem; } }
.form-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.inline-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; width: auto; }
.hp { position: absolute; left: -9999px; }
fieldset.imgfield { border: 1.5px dashed var(--line); border-radius: 10px; padding: 1rem; display: grid; gap: .8rem; margin: 0; }
fieldset.imgfield legend { font-weight: 700; padding: 0 .4em; color: var(--navy-ink); }
.thumb { max-height: 160px; width: auto; border-radius: 8px; }

/* ---------- Closed splash / auth ---------- */
body.bare { background: var(--navy-deep); }
.closed, .auth-shell {
  position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(96, 164, 51, .28), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(232, 69, 69, .16), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.closed-arc { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, .22); pointer-events: none; }
.closed-card, .auth-card {
  position: relative; width: 100%; max-width: 560px; background: var(--white); border-radius: 22px;
  padding: clamp(28px, 6vw, 52px); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.auth-card { max-width: 440px; text-align: left; }
.closed-logo { width: min(100%, 380px); margin: 0 auto 1.6rem; }
.auth-logo { width: 220px; margin: 0 auto 1.4rem; }
.closed-badge { display: inline-block; font: 800 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .12em; color: var(--red); background: #fdeeee; padding: .55em 1em; border-radius: 999px; margin-bottom: 1rem; }
.closed h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.closed-msg { color: var(--muted); margin: 0 auto 1.8rem; max-width: 42ch; }
.closed-contact { margin: 1.6rem 0 0; font-size: .95rem; }
.auth-card h1 { font-size: 1.7rem; }
.auth-links { margin: 1.1rem 0 0; font-size: .95rem; text-align: center; }
.auth-links + .auth-links { margin-top: .4rem; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 200px; }
.site-nav { display: none; }
.site-nav a, .site-nav .linklike { font: 700 .98rem/1 var(--font-head); color: var(--navy-ink); text-decoration: none; padding: .7em .8em; border-radius: 8px; }
.site-nav a:hover, .site-nav .linklike:hover { background: var(--sky); color: var(--navy); }
.site-nav a.active { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav-admin { color: var(--red) !important; }
.nav-muted { color: var(--muted) !important; font-weight: 600 !important; }
.nav-user { display: flex; align-items: center; gap: .2rem; }
.nav-user form { margin: 0; }
.nav-toggle { display: inline-grid; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }
.site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: .5rem 16px 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open .nav-user { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .4rem; }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; flex-direction: row; align-items: center; gap: .1rem; position: static; padding: 0; box-shadow: none; border: 0; }
  .site-nav.open .nav-user, .nav-user { border: 0; margin: 0 0 0 .6rem; padding: 0 0 0 .6rem; border-left: 1px solid var(--line); }
  .brand img { width: 230px; }
}
.notice-bar { background: #fff3d6; color: #6a4500; font-size: .92rem; padding: .6rem 0; text-align: center; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(96, 164, 51, .3), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 16ch; }
.hero p { font-size: 1.2rem; color: #cfe0f1; max-width: 46ch; }
.hero-search { display: flex; gap: .5rem; background: var(--white); padding: .4rem; border-radius: 999px; max-width: 520px; margin-top: 1.6rem; }
.hero-search input { border: 0; border-radius: 999px; padding-left: 1.1rem; }
.hero-mark { display: none; width: 260px; justify-self: end; background: var(--white); border-radius: 50%; padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr auto; } .hero-mark { display: block; } }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { margin: 0; }
.section-head a { font: 700 .95rem var(--font-head); text-decoration: none; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(28px, 5vw, 48px) 0; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--muted); margin: 0; }

.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(4, 40, 80, .08), 0 16px 36px rgba(4, 40, 80, .14); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-img img, .dest-img img, .pkg-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: .55rem 0 .4rem; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-meta { display: flex; gap: .6rem; align-items: center; font-size: .88rem; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.price { font: 900 1.25rem var(--font-head); color: var(--navy); }
.price small { font: 600 .75rem var(--font-body); color: var(--muted); }

/* Branded placeholder when no image is set */
.placeholder { display: grid; place-items: center; position: relative; overflow: hidden; }
.placeholder span { position: relative; font: 900 clamp(1.3rem, 3vw, 2rem) var(--font-head); color: rgba(255, 255, 255, .92); text-align: center; padding: 0 1rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.placeholder::before { content: ""; position: absolute; inset: -20%; background: repeating-radial-gradient(circle at 120% 120%, transparent 0 38px, rgba(255, 255, 255, .07) 38px 40px); }
.ph-0 { background: linear-gradient(135deg, #0a5aa3, var(--navy-deep)); }
.ph-1 { background: linear-gradient(135deg, #6db63c, #2f7a4a); }
.ph-2 { background: linear-gradient(135deg, #1679b8, #2f9a6b); }

.dest-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dest-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; display: block; box-shadow: var(--shadow); }
.dest-tile .dest-img { position: absolute; inset: 0; }
.dest-tile .placeholder span { display: none; }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 30, 60, .75), transparent 60%); }
.dest-label { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; display: grid; }
.dest-label strong { font: 900 1.35rem var(--font-head); }
.dest-label small { color: #d6e4f2; }
.dest-tile:hover { color: var(--white); }
.dest-tile:hover .dest-img img { transform: scale(1.04); }
.dest-img img { transition: transform .4s; }

.dest-list { display: grid; gap: 1.2rem; }
.dest-row { display: grid; gap: 1.2rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none; }
.dest-row > div:last-child { padding: 0 1.2rem 1.2rem; }
.dest-row .dest-img { aspect-ratio: 16 / 9; }
.dest-row h2 { margin: .1em 0 .3em; }
.dest-row:hover { color: inherit; }
.dest-row:hover h2 { color: var(--navy); }
.eyebrow { font: 800 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); }
@media (min-width: 760px) {
  .dest-row { grid-template-columns: 320px 1fr; align-items: center; }
  .dest-row .dest-img { height: 100%; aspect-ratio: auto; min-height: 190px; }
  .dest-row > div:last-child { padding: 1.2rem 1.4rem 1.2rem 0; }
}

.why { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { padding: 1.4rem; border-radius: var(--radius); border: 1.5px solid var(--line); }
.why p { color: var(--muted); margin: 0; }
.why-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.4rem; margin-bottom: .8rem; }
.why > div:nth-child(1) .why-icon { color: var(--red); background: #fdeeee; }
.why > div:nth-child(3) .why-icon { color: var(--green-dark); background: #eef7e8; }

.cta { background: var(--green); color: var(--white); padding: 2.4rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); margin: 0; }

/* ---------- Filters / pager / empty ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.filters input { flex: 2 1 220px; width: auto; }
.filters select { flex: 1 1 180px; width: auto; }
.pager { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2rem; }
.pager a { min-width: 40px; text-align: center; padding: .5em .8em; border-radius: 8px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Package page ---------- */
.pkg-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; color: var(--white); }
.pkg-hero-img { position: absolute; inset: 0; }
.pkg-hero-img.placeholder span { display: none; }
.pkg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 30, 60, .8), rgba(3, 30, 60, .1) 70%); }
.pkg-hero-text { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 2rem; }
.pkg-hero h1 { color: var(--white); margin: .2em 0 0; max-width: 22ch; }
.pkg-hero .crumbs a { color: #d6e4f2; }
.crumbs { font-size: .92rem; color: var(--muted); margin: 0 0 .4rem; }
.crumbs a { text-decoration: none; }
.pkg-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .pkg-layout { grid-template-columns: 1fr 320px; align-items: start; } .pkg-side { position: sticky; top: 100px; } }
.pkg-side { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; }
.facts { display: grid; gap: .9rem; margin-bottom: 1.2rem; }
.facts small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }
.facts strong { font: 800 1.1rem var(--font-head); color: var(--navy-ink); }
.ticks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .05em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #eef7e8; color: var(--green-dark); font-weight: 900; font-size: .8rem; display: grid; place-items: center; }

/* ---------- About / contact ---------- */
.about { display: grid; gap: 2rem; align-items: center; }

.prose { max-width: 66ch; font-size: 1.08rem; }
.contact { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 300px; } }
.contact-side { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; align-self: start; }
.contact-side small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .72rem; }

/* ---------- Panels / tables / admin ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.25rem; }
form.panel { margin-top: 1rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .6rem .7rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: .75rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table.small { font-size: .85rem; }
.row-link { cursor: pointer; }
.row-link:hover td { background: var(--paper); }
.row-muted td { color: var(--muted); }
.actions { white-space: nowrap; }
.actions > * { margin-right: .7rem; display: inline; }
.actions form { display: inline; }
.admin-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.admin-head h1 { margin: 0; }
body.is-admin .site-header { border-bottom: 3px solid var(--navy); }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin-bottom: 1.5rem; }
.stat { display: grid; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.stat strong { font: 900 2.2rem/1.1 var(--font-head); color: var(--navy); }
.stat:first-child strong { color: var(--red); }
.stat:hover { border-color: var(--navy); color: var(--muted); }
.status-pill { font: 800 .85rem var(--font-head); padding: .6em 1em; border-radius: 999px; text-decoration: none; }
.status-pill.is-closed { background: #fdeeee; color: #b42323; }
.status-pill.is-open { background: #eef7e8; color: #3b6e1b; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chips a { padding: .45em .9em; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0 0 1rem; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; word-break: break-word; }
.message { background: var(--paper); border-radius: 10px; padding: 1rem 1.1rem; white-space: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cde2; padding: 2rem 0; font-size: .92rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.footer-inner img { background: var(--white); border-radius: 50%; padding: 4px; }
.footer-inner strong { color: var(--white); font-family: var(--font-head); }
.footer-legal { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; line-height: 1.55; }
.footer-legal p, .bare-legal p { margin: 0 0 .35rem; }
.footer-legal .ack, .bare-legal .ack { color: var(--white); }
.bare-legal { position: relative; background: var(--navy-deep); color: #b9cde2; text-align: center; padding: 1.2rem 16px 1.4rem; font-size: .8rem; line-height: 1.55; }
.bare-legal .copy { max-width: 100ch; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Bare pages: splash fills the screen, legal footer sits at the bottom */
body.bare { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.bare > main { flex: 1; display: flex; flex-direction: column; }
body.bare > main > .closed, body.bare > main > .auth-shell { flex: 1; min-height: 0; }

/* ---------- Settings tabs ---------- */
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 2px solid var(--line); margin: 1rem 0 0; -webkit-overflow-scrolling: touch; }
.tab { font: 800 .95rem var(--font-head); color: var(--muted); text-decoration: none; padding: .8em 1.1em; border-radius: 10px 10px 0 0; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab:hover { color: var(--navy); background: var(--sky); }
.tab.active { color: var(--navy); border-bottom-color: var(--green); background: var(--white); }
.tab-panel { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; margin-top: 0; }
#settings-form { margin: 0; }
.tab-panel[hidden] { display: none; }

/* ---------- Rich-text editor ---------- */
.rt-field { display: grid; gap: .35rem; }
.rt-label { font-weight: 600; font-size: .95rem; color: var(--navy-ink); }
.rt-label small { font-weight: 400; color: var(--muted); }
.rt { border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.rt:focus-within { border-color: var(--green); }
.rt-toolbar { display: flex; flex-wrap: wrap; gap: .2rem; padding: .4rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.rt-btn { font: 700 .85rem var(--font-body); color: var(--navy-ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .35em .65em; cursor: pointer; min-width: 34px; }
.rt-btn:hover { background: var(--sky); border-color: var(--navy); }
.rt-sep { width: 1px; background: var(--line); margin: .2rem .25rem; }
.rt-area { min-height: 180px; padding: .9rem 1rem; outline: none; font-size: 1rem; max-width: none; }
.rt-area > :first-child { margin-top: 0; }
.rt-area h2 { font-size: 1.35rem; margin: 1em 0 .4em; }
.rt-area h3 { font-size: 1.1rem; margin: 1em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1em; }
.prose blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--green); color: var(--muted); }
.hero-intro { font-size: 1.2rem; color: #cfe0f1; max-width: 46ch; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-intro a { color: var(--white); }
.hero-intro strong { color: var(--white); }

/* ---------- Social links ---------- */
.social-edit { border: 1.5px solid var(--line); border-radius: 10px; padding: 1rem; margin: 0; display: grid; gap: .7rem; }
.social-edit legend { font-weight: 700; padding: 0 .4em; color: var(--navy-ink); }
.social-edit .fine { margin: 0; }
.social-rows { display: grid; gap: .6rem; }
.social-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; gap: .5rem; align-items: center; }
@media (max-width: 560px) { .social-row { grid-template-columns: 1fr auto; } .social-row input { grid-column: 1 / -1; grid-row: 2; } }
.btn-icon { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; font-size: 1rem; }
.btn-icon:hover { border-color: #f1c4c4; color: #b42323; background: #fdeeee; }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; justify-self: start; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.social a { display: inline-block; font: 700 .82rem/1 var(--font-head); text-decoration: none; padding: .55em .9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: var(--white); }
.social a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.footer-social { margin-left: auto; }

/* ---------- Legal pages ---------- */
.legal-links { margin-bottom: .6rem !important; }
.legal-links a { color: var(--white); }
.bare-legal .legal-links a { color: #d6e4f2; }
.legal-shell { flex: 1; padding: 32px 16px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.legal-card { max-width: 820px; margin: 0 auto; background: var(--white); border-radius: 22px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.legal-card .auth-logo { margin: 0 0 1.4rem; }
.legal-doc { max-width: 75ch; }
.legal-doc h2 { margin-top: 1.4em; }

/* ---------- YouTube video blocks (adapt to landscape / portrait / square) ---------- */
.video { width: 100%; margin: 0 auto; }
.video-landscape { max-width: 640px; }
.video-square { max-width: 440px; }
.video-portrait { max-width: 320px; }
.video-frame { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { display: grid; place-items: center; background: linear-gradient(135deg, #ffffff, var(--sky)); }
.video-ph img { width: 26%; max-width: 130px; opacity: .9; }
.video-ph-play { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: rgba(4, 75, 137, .85); right: 18px; bottom: 18px; }
.video-ph-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-ph-admin { position: absolute; left: 14px; bottom: 14px; font: 700 .8rem var(--font-head); background: var(--white); color: var(--navy); padding: .5em .8em; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
.hero-media { width: 100%; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-media .video { margin-right: 0; }
  .hero-media .video-portrait { aspect-ratio: auto; }
}
.about-media { width: 100%; }
@media (min-width: 800px) {
  .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.video-edit { border: 1.5px solid var(--line); border-radius: 10px; padding: 1rem; margin: 0; display: grid; gap: .8rem; }
.video-edit legend { font-weight: 700; padding: 0 .4em; color: var(--navy-ink); }
.video-edit .fine { margin: 0; }
.video-opts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }

/* ---------- Home hero: text left, large video right, minimal empty space ---------- */
.hero .hero-inner { gap: 1.25rem 2.5rem; align-items: center; padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(24px, 3vw, 36px); }
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .3em; max-width: none; }
.hero .hero-intro { font-size: 1.05rem; line-height: 1.55; max-width: none; }
.hero .hero-intro p { margin-bottom: .6em; }
.hero .hero-media { width: 100%; }
.hero .video { max-width: none; }
.hero .video-frame { border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .28); }
.hero .video-portrait { max-width: 340px; }
.hero .video-square { max-width: 520px; }
@media (min-width: 900px) {
  .hero .hero-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero .hero-media .video { margin-right: 0; }
  .hero .video-portrait { width: min(360px, 78vh * 9 / 16); max-width: 100%; }
  /* Tall or square videos: the text takes the remaining width so there's no gap in the middle */
  .hero .hero-inner:has(.video-portrait), .hero .hero-inner:has(.video-square) { grid-template-columns: minmax(0, 1fr) auto; }
  .hero .hero-inner:has(.video-square) .hero-media { width: min(460px, 40vw); }
  /* Shorts: text and video each take half the width; app.js sizes the video to the text's height */
  .hero .hero-inner:has(.video-portrait) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
  .hero .hero-inner:has(.video-portrait) .hero-intro { max-width: none; }
  .hero .hero-inner:has(.video-portrait) .hero-copy { border-left: 4px solid var(--green); padding-left: clamp(16px, 2vw, 28px); }
  .hero .hero-inner:has(.video-portrait) .hero-intro p:last-child { margin-bottom: 0; }
  .hero .hero-media:has(.video-portrait) { width: 100%; display: flex; justify-content: center; }
  .hero .hero-media .video-portrait { margin: 0; max-width: 100%; }
  .hero .video-square { margin-left: auto; }
}
@media (max-width: 899px) {
  .hero .video-portrait { max-width: 260px; }
}
