/* Let's Go Road Trippin — hand-written clone of the BoldGrid Hydra theme.
   Measurements from the old site (Step 4, docs/migration/screenshots/). */

@font-face {
  font-family: "Francois One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/css/fonts/francois-one-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/css/fonts/open-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/css/fonts/open-sans-italic-latin.woff2") format("woff2");
}

:root {
  --blue: #1c4fce;
  --bar: #466fd4;
  --text: #333;
  --muted: #666;
  --rule: #ddd;
  --heading-font: "Francois One", Helvetica, Arial, sans-serif;
  --body-font: "Open Sans", Helvetica, Arial, sans-serif;
  --container: 1170px;
  --gutter: 15px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

p { margin: 0 0 10px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  margin: 20px 0 10px;
}
h1 { font-size: 46px; line-height: 1.1; }
h2 { font-size: 38px; line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.1; }
h4 { font-size: 23px; line-height: 1.5; color: var(--blue); }
h5 { font-size: 18px; line-height: 1.3; }
h6 { font-size: 16px; line-height: 1.3; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 12px;
  background: #fff;
}
.skip-link:focus { left: 8px; }

/* ---------- Header: banner photo behind a translucent white bar ---------- */

.site-top {
  background: url("/images/theme/banner.jpg") center top / cover no-repeat;
}

.site-header {
  background: rgba(255, 255, 255, 0.8);
}

.header-inner {
  max-width: 1270px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 188px;
  padding-top: 5px;
}

.site-logo {
  align-self: flex-start;
  display: block;
}
.site-logo img { display: block; width: 120px; height: 120px; }

.nav-toggle { display: none; }

.header-social {
  position: absolute;
  top: 12px;
  right: 60px;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-social a { display: block; padding: 4px 11px; color: var(--blue); }
.header-social svg { display: block; }

.primary-nav ul,
.secondary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav > ul {
  display: flex;
  margin-right: 45px;
  margin-bottom: 4px;
}

.primary-nav a {
  display: block;
  padding: 12px 10px;
  font-family: var(--heading-font);
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--text);
}
.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: none;
}

.has-submenu { position: relative; }
.has-submenu > a::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  border-top: 4px solid;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 160px;
  background: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { display: block; }

.secondary-nav {
  background: var(--bar);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.secondary-nav ul {
  display: flex;
  justify-content: center;
  min-height: 55px;
  align-items: center;
}
.secondary-nav a {
  display: block;
  padding: 8px 12px;
  font-family: var(--heading-font);
  font-size: 12px;
  text-transform: uppercase;
  color: #fff;
}
.secondary-nav a:hover,
.secondary-nav a[aria-current="page"] { text-decoration: underline; }

/* Banner strip below the nav; plain pages show their title in it.
   Articles and category archives only show a sliver of it. */
.hero { min-height: 173px; display: flex; align-items: center; }
body.article .hero,
body.category .hero,
body.tag .hero,
body.archive .hero { min-height: 42px; }
.hero-title {
  margin: 0;
  text-align: center;
  font-size: 38px;
  color: var(--blue);
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

/* ---------- Body: content + sidebar on articles and category pages ---------- */

.site-body { padding-top: 40px; padding-bottom: 40px; }

.sidebar { display: none; }

body.article .site-body,
body.category .site-body,
body.tag .site-body,
body.archive .site-body {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: 30px;
}
body.article .sidebar,
body.category .sidebar,
body.tag .sidebar,
body.archive .sidebar { display: block; }

body.page .site-main,
body.home .site-main { max-width: 1112px; margin: 0 auto; }

/* ---------- Article ---------- */

.entry-title { margin-top: 0; font-size: 46px; font-weight: 700; }

.entry-meta { color: var(--text); margin-bottom: 15px; }

.featured-image { display: block; width: 100%; margin: 0 0 10px; }

/* "has-large-font-size" paragraphs the old editor used as headings. */
body.article .site-main > h2 {
  font-family: var(--body-font);
  font-weight: 400;
  text-transform: none;
  font-size: 28px;
  line-height: 1.6;
  margin: 10px 0;
}

figure { margin: 0 0 10px; }
.alignleft { float: left; margin: 4px 20px 10px 0; }
.alignright { float: right; margin: 4px 0 10px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
figure.alignleft img, figure.alignright img { display: block; }

.site-main iframe { display: block; margin: 0 auto 10px; aspect-ratio: 16 / 9; width: 100%; max-width: 640px; height: auto; border: 0; }

.site-main table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.site-main td, .site-main th { vertical-align: top; padding: 8px; border: 1px solid var(--rule); }

blockquote { margin: 0 0 15px; padding: 0 0 0 15px; border-left: 4px solid var(--rule); font-style: italic; }

.article-footer { clear: both; margin-top: 30px; }
.entry-categories { margin-bottom: 30px; }

.related { border-top: 1px solid var(--rule); padding-top: 10px; }
.related-title { font-size: 24px; }
.post-list-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post-list-related .post-card { margin: 0; }
.post-list-related .post-card-title { font-size: 18px; }
.post-list-related .entry-meta,
.post-list-related .post-card-description,
.post-list-related .more-link { display: none; }

/* ---------- Post cards (home + category archives) ---------- */

body.category .site-main > h1,
body.tag .site-main > h1,
body.archive .site-main > h1 { font-size: 38px; margin: 0 0 40px; }
body.category .site-main > h1::before { content: "Category: "; }
body.tag .site-main > h1::before { content: "Tag: "; }
body.archive .site-main > h1::before { content: "Month: "; }

.post-card { margin-bottom: 40px; }
.post-card-title { margin: 0 0 10px; font-size: 38px; line-height: 1.1; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--blue); text-decoration: none; }
.post-card-image { display: block; margin: 0 auto 10px; text-align: center; }
.post-card-image img { max-height: 400px; width: auto; }

/* ---------- Home ---------- */

.home-welcome { text-align: center; font-size: 38px; color: var(--blue); margin: 50px 0 45px; }
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}
.home-intro-image {
  padding: 34px 14px;
  background: var(--blue);
  border-radius: 0 30px 0 30px;
}
.home-intro-image img { display: block; width: 100%; border-radius: 0 30px 0 30px; }
.home-intro-text h4 { margin-top: 0; }

/* ---------- Sidebar ---------- */

.widget { margin-bottom: 30px; }
.widget-title {
  font-family: var(--body-font);
  font-weight: 400;
  text-transform: none;
  font-size: 26px;
  margin: 0 0 10px;
}
.widget-list { list-style: none; margin: 0; padding: 0 0 0 10px; }
.widget-list li { padding: 9px 0; }
.tag-cloud { line-height: 1.5; }
.tag-cloud a { margin-right: 4px; white-space: nowrap; }
.tag-size-8 { font-size: 8pt; }
.tag-size-9 { font-size: 9pt; }
.tag-size-10 { font-size: 10pt; }
.tag-size-11 { font-size: 11pt; }
.tag-size-12 { font-size: 12pt; }
.tag-size-13 { font-size: 13pt; }
.tag-size-14 { font-size: 14pt; }
.tag-size-15 { font-size: 15pt; }
.tag-size-16 { font-size: 16pt; }
.tag-size-17 { font-size: 17pt; }
.tag-size-18 { font-size: 18pt; }
.tag-size-19 { font-size: 19pt; }
.tag-size-20 { font-size: 20pt; }
.tag-size-21 { font-size: 21pt; }
.tag-size-22 { font-size: 22pt; }

/* ---------- Footer ---------- */

.site-footer { padding: 30px 0 40px; text-align: center; clear: both; }
.copyright { margin-bottom: 15px; }
.copyright a { text-decoration: underline; }
/* "Powered by Redline" pill — light version of demo.coderb.dev's footer. */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  color: #57606a;
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.footer-brand:hover,
.footer-brand:focus {
  text-decoration: none;
  border-color: rgba(255, 59, 48, 0.35);
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.25);
}
.footer-brand-logo { width: 22px; height: 22px; border-radius: 6px; display: block; }
.footer-brand strong { color: #1f2328; font-weight: 600; }

/* ---------- Tablet ---------- */

@media (max-width: 991px) {
  .primary-nav > ul { margin-right: 0; }
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  /* Old mobile header: tinted banner behind the logo, solid white below it. */
  .header-inner { background: linear-gradient(to bottom, transparent 115px, #fff 115px); }
  .header-inner {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 20px var(--gutter) 10px;
  }
  .site-logo { align-self: center; }
  .header-social { position: static; justify-content: center; margin-top: 23px; }

  .nav-toggle {
    display: block;
    align-self: flex-end;
    margin-top: 10px;
    padding: 9px 10px;
    background: transparent;
    border: 1px solid var(--blue);
    border-radius: 4px;
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
  }
  .nav-toggle-bars { position: relative; margin: 6px 0; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; margin: 10px 0 0; }
  .primary-nav a { padding: 10px 0; text-align: center; }
  .has-submenu > a::after { display: none; }
  .submenu { display: block; position: static; box-shadow: none; background: transparent; }

  /* Old mobile layout: plain white below the blue bar. */
  .hero { min-height: 0; background: #fff; }
  .hero-title { padding: 20px 0; }

  .site-body { padding-top: 30px; }
  body.article .site-body,
  body.category .site-body,
  body.tag .site-body,
  body.archive .site-body { display: block; }

  h1, .entry-title { font-size: 34px; }
  .post-card-title, .home-welcome { font-size: 30px; }
  .hero-title { font-size: 40px; }
  .entry-title { text-align: center; }

  .home-intro { grid-template-columns: 1fr; }
  .post-list-related { grid-template-columns: 1fr; }

  /* Narrow screens: no text wrapping around floated photos. */
  .alignleft, .alignright { float: none; margin: 0 auto 10px; display: block; }
  figure.alignleft img, figure.alignright img { margin: 0 auto; }
}

/* ---------- Two-column page sections (About Us) ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto 40px;
}
.two-col h2 { margin-top: 0; }
.two-col h4 { font-size: 18px; color: var(--text); margin: 0 0 10px; }
.two-col hr { border: 0; border-top: 1px solid var(--muted); margin: 10px 0 20px; }
.two-col img { display: block; width: 100%; }
.two-col-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.two-col-reverse .two-col-images { padding-top: 60px; }

@media (max-width: 767px) {
  .two-col, .two-col-reverse { grid-template-columns: 1fr; }
  .two-col-reverse .two-col-images { padding-top: 0; }
}

body.page .site-body { padding-top: 120px; }
@media (max-width: 767px) { body.page .site-body { padding-top: 30px; } }

/* ---------- Travel News (live RSS, replaces the Feedzy widget) ---------- */

.news { margin: 0; }
.news-feed { margin-bottom: 30px; }
.news-feed-title { font-size: 38px; margin: 30px 0 40px; }
.news-feed-link { color: var(--blue); }
.news-feed-description { color: #161616; }
.news-items { list-style: none; margin: 0; padding: 0; }
/* Shrink-to-fit like Feedzy's inline-block items (rule only as wide as the
   text), but each item stays on its own line. */
.news-item { display: table; padding: 15px 0 25px; margin-bottom: 40px; border-bottom: 1px solid #e5e5e5; }
.news-item-title { font-weight: 600; }
.news-item-meta { margin: 0 0 4px; font-size: 12px; font-style: italic; }
.news-item-summary { margin: 0; }
.news-unavailable { text-align: center; color: var(--muted); }

/* ---------- Videos from YouTube (channel feed; app.js plays in place) ---------- */

.video-grid {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.video-play, .video-player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
/* hqdefault is 4:3 with black bars; crop it to 16:9. */
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 12px;
  background: rgba(33, 33, 33, .8);
}
.video-play-icon::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 27px;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-play:hover .video-play-icon, .video-play:focus-visible .video-play-icon { background: #f00; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-size: 20px; margin: 12px 0 4px; }
.video-title a { color: var(--text); }
.video-title a:hover { color: var(--blue); text-decoration: none; }
.video time { font-size: 12px; font-style: italic; color: var(--muted); }
