/* worldtravelers.org site shell and components (DESIGN-DIRECTION.md). Loaded after legacy.css. */

:root {
  --navy: #0B3C6B;
  --blue: #1F6DB1;
  --blue-light: #55A4E1;
  --sky: #EBF3FC;
  --red: #B3202E;
  --red-dark: #8F1824;
  --ink: #1F2933;
  --ink-soft: #52606D;
  --line: #D9E2EC;
  --line-strong: #AFC0D6;
  --ground: #FFFFFF;
  --ground-alt: #F5F8FB;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-display: Lora, Georgia, "Times New Roman", serif;
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn-lg { min-height: 48px; padding: 10px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--sky); color: var(--blue); }
.btn-outline-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header-inner { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 64px; height: 65px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; }
.brand-name sup { font-size: 0.55em; }
.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; justify-content: space-between; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav-group { position: relative; }
.nav-group-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  background: none; border: 0; border-radius: 6px; color: var(--navy);
  font: 600 1rem var(--font-body); cursor: pointer;
}
.nav-group-toggle:hover, .nav-group.is-open .nav-group-toggle { background: var(--sky); color: var(--blue); }
.nav-menu {
  display: none; position: absolute; left: 0; top: 100%; min-width: 260px; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 10px 28px rgba(11,60,107,0.16);
}
.nav-group.is-open .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.nav-menu a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-menu a:hover { background: var(--sky); color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.member-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; padding: 8px 12px; }
.member-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; }

/* Ad band and slots */
.ad-band { background: var(--ground-alt); border-bottom: 1px solid var(--line); }
.ad-band-inner { display: flex; justify-content: center; padding-top: 10px; padding-bottom: 10px; }
.ad-band:has(.ad-leaderboard:empty) { display: none; }
.ad-slot:empty { display: none; }
.ad-leaderboard { width: 728px; max-width: 100%; min-height: 90px; }
.ad-skyscraper { width: 190px; min-height: 468px; margin: 0 auto; }

/* Hero and title band */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: 420px; display: flex; align-items: center; }
.hero-photo { position: absolute; inset: -32px; background-size: cover; background-position: center 40%; filter: blur(7px) saturate(1.15); opacity: 0.55; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,60,107,0.9) 0%, rgba(11,60,107,0.6) 55%, rgba(11,60,107,0.35) 100%); }
.hero-inner { position: relative; z-index: 1; justify-content: space-between; }
.hero-inner { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-kicker { margin: 0 0 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: #CFE3F7; }
.hero-title { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.15; margin: 0 0 16px; font-weight: 700; color: #fff; }
.hero-text { font-size: 1.1rem; margin: 0 0 24px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { flex: 0 1 340px; }
.hero-card .login-card { box-shadow: 0 8px 24px rgba(11,60,107,0.25); border: 0; }
.title-band { background-color: var(--navy); background-image: linear-gradient(90deg, #0B3C6B 0%, #1F6DB1 100%); color: #fff; }
.title-band .container { padding-top: 24px; padding-bottom: 24px; }
.crumbs { font-size: 0.85rem; color: #CFE3F7; }
.crumbs a { color: #CFE3F7; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.title-band-heading { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; margin: 4px 0 0; font-weight: 700; color: #fff; }

/* Main grid */
.site-main { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 48px; }
.site-content { flex: 999 1 560px; min-width: 0; overflow-x: auto; }
.site-aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 24px; }

/* Cards and forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0; }
.card-tint { background: var(--sky); border-color: transparent; }
.card-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin: 0 0 10px; }
.card-text { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.95rem; }
.link-list { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.link-list li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.link-list li:last-child { border-bottom: 0; }
.link-list a { text-decoration: none; font-weight: 600; }
.link-list a:hover { text-decoration: underline; }
.login-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.field-label, .legacy-content .field-label { font-weight: 600; font-size: 0.9rem; margin: 0; }
.legacy-content .card-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin: 0 0 10px; }
.legacy-content .login-card { width: 440px; max-width: 100%; margin: 0 0 20px; }
.legacy-content .login-card .field { width: 100%; }
.field::placeholder, .legacy-content input::placeholder { color: #7B8794; opacity: 1; }
.field, .legacy-content input[type="text"], .legacy-content input[type="email"], .legacy-content input[type="password"],
.legacy-content input[type="tel"], .legacy-content input:not([type]), .legacy-content select, .legacy-content textarea {
  font: 1rem var(--font-body); color: var(--ink); background: #fff;
  padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); min-height: 44px; max-width: 100%;
}
.legacy-content textarea { min-height: 96px; }
.legacy-content input[type="submit"], .legacy-content input[type="button"], .legacy-content button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
  background: var(--blue); color: #fff; border: 0; border-radius: var(--radius-sm);
  font: 600 1rem var(--font-body); cursor: pointer;
}
.legacy-content input[type="submit"]:hover, .legacy-content button:hover { background: var(--navy); }
.legacy-content input[type="image"] { min-height: 0; padding: 0; border: 0; background: none; }
.form-error { color: var(--red); font-weight: 600; margin: 0; }
.form-note { margin: 4px 0 0; font-size: 0.9rem; }
.welcome-name { margin: 0 0 4px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.facebook-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 600; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; min-height: 44px; }
.facebook-link:hover { background: var(--sky); }
.facebook-link svg { color: var(--blue); flex: none; }

/* Legacy page bodies: the converted markup inherits the new type and loses its fixed widths. */
.legacy-content { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.legacy-content h1 { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; color: var(--navy); margin: 0 0 16px; font-weight: 700; }
.legacy-content h2 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--navy); margin: 28px 0 10px; font-weight: 700; text-align: left; }
.legacy-content h3 { font-size: 1.2rem; color: var(--navy); margin: 22px 0 8px; font-weight: 600; }
.legacy-content h4, .legacy-content h5, .legacy-content h6 { font-size: 1rem; color: var(--navy); margin: 16px 0 6px; }
.legacy-content p { margin: 0 0 16px; color: inherit; font-weight: inherit; }
.legacy-content a { color: var(--blue); }
.legacy-content a:hover { color: var(--navy); }
.legacy-content ul, .legacy-content ol { margin: 0 0 16px 24px; padding: 0; }
.legacy-content li { padding: 0; margin: 4px 0; }
.legacy-content table { max-width: 100%; }
.legacy-content table[width], .legacy-content td[width], .legacy-content th[width] { width: auto !important; max-width: 100%; }
.legacy-content td, .legacy-content th { padding: 5px; }
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content font { font-family: inherit; }
.legacy-content .bodybold { font-weight: 600; }
.legacy-content .caption { font-style: italic; color: var(--ink-soft); }
.legacy-content .red { color: var(--red); font-weight: 600; }
.legacy-content .errormsg, .legacy-content .errormsglargefont {
  display: block; background: #FDECEE; color: var(--red); border: 1px solid #F3C2C7; border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 0 0 16px; font-size: 1rem; font-weight: 600; width: auto; text-align: left;
}
.legacy-content .errormsg a { color: var(--red); }
.legacy-content img[width], .legacy-content [width] { max-width: 100%; }
.legacy-content .requiredfield { color: var(--red); }
.legacy-content .bordered { border-collapse: collapse; }
.legacy-content .bordered td, .legacy-content .bordered th { border: 1px solid var(--line); padding: 8px 12px; }
.legacy-content .bordered th { background: var(--sky); color: var(--navy); }
.legacy-content #access, .legacy-content .gradientbg { background: var(--sky); border-radius: var(--radius-sm); padding: 12px 16px 12px 32px; }
.legacy-content #access li { margin: 6px 0; }
.legacy-content .card { font-size: inherit; }
.legacy-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Footer */
.site-footer { background: var(--navy); color: var(--line); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 24px; font-size: 0.9rem; }
.footer-brand { grid-column: span 1; }
.notice-unavailable { max-width: 640px; }
.notice-unavailable h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin: 0 0 16px; }
.footer-name { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.footer-heading { margin: 0 0 8px; font-weight: 600; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 6px; }
.site-footer a { color: var(--line); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); }
.footer-bottom p { margin: 0; padding-top: 16px; padding-bottom: 16px; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 900px) {
  .site-header-inner { gap: 12px; }
  .brand img { width: 48px; height: 49px; }
  .brand-name { font-size: 1rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 8px 12px;
    background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm); color: var(--navy);
    font: 600 1rem var(--font-body); cursor: pointer;
  }
  .site-nav { display: none; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 12px; padding: 8px 0 12px; border-top: 1px solid var(--line); }
  .site-header.is-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-group-toggle { width: 100%; justify-content: space-between; }
  .nav-menu { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--sky); border-radius: 0; margin: 0 0 4px 12px; min-width: 0; }
  .nav-group.is-open .nav-menu { display: block; }
  .nav-group:focus-within .nav-menu { display: none; }
  .nav-group.is-open:focus-within .nav-menu { display: block; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1 1 auto; }
  .site-main { gap: 32px; padding-top: 28px; }
  .site-aside { max-width: none; flex-basis: 100%; }
  .hero { min-height: 320px; }
  .hero-shade { background: linear-gradient(180deg, rgba(11,60,107,0.6) 0%, rgba(11,60,107,0.92) 70%); }
  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  .hero-title { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  html { font-size: 17px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 280px; }
  .hero-title { font-size: 1.7rem; }
  .hero-card { flex-basis: 100%; }
  .title-band-heading { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: span 1; }
  .legacy-content table { display: block; overflow-x: auto; }
}
