/* Article FAQ */
.bw-faq { margin: 0 ; border: 1px solid #2e6da4; border-radius: 6px; overflow: hidden; background: #e8f2ff; }
.bw-faq > summary { cursor: pointer; list-style: none; background: #3a78b6; color: #fff; padding: .55rem .6rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.bw-faq > summary::-webkit-details-marker { display: none; }
.bw-faq .bw-check-arrow { transition: transform .2s ease; }
.bw-faq[open] .bw-check-arrow { transform: rotate(90deg); }
.bw-faq-title { font-size: 2rem; flex: 1 1 auto; }
.bw-faq img { margin: 0; }
.bw-faq-thumb { width: 75px !important; height: 75px !important; object-fit: cover; border-radius: 6px; ;}
.bw-faq-body { padding: .75rem .9rem; background: #bfd7eb; }
/* Article checklist */
.bw-check { margin: 0 0 1rem; border: 1px solid #d0d8e2; border-radius: 6px; overflow: hidden; background: #eef5ff; }
.bw-check > summary { cursor: pointer; list-style: none; background: #3a78b6; color: #fff; padding: .4rem .6rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.bw-check > summary::-webkit-details-marker { display: none; }
.bw-check .bw-check-arrow { transition: transform .2s ease; }
.bw-check[open] .bw-check-arrow { transform: rotate(90deg); }
.bw-check-title { font-size: 1.5rem; }
.bw-check-body { padding: .75rem .9rem; background: #bfd7eb; }
.bw-check-panel { margin-top: .2rem; border-radius: 8px; padding: .2rem; }
.bw-check-figure { margin: .5rem 0 0; }
.bw-check-figure img { width: 100%; height: auto; display: block; border-radius: 4px; }
/* Icons block */
.bw-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: .5rem 0 1rem; }
.bw-icon { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; background: #e0e5ea; border: 1px solid #cbd5df; border-radius: 8px; padding: .5rem .6rem; }
.bw-icon-img { 
  background-repeat: no-repeat; background-size: auto; margin: 0; 
  filter: invert(43%) sepia(11%) saturate(6966%) hue-rotate(338deg) brightness(93%) contrast(81%);
  max-height: 30px; height: 30px; max-width: 40px; padding: 0; display: inline-block;
}
.bw-icon-text { display: grid; line-height: 1.2; }
.bw-icon-val { font-weight: 700; }
.bw-icon-key { font-size: .9rem; opacity: .8; text-transform: none; }

/* Soft tile inside checklist */
.bw-tile--soft { background: #fff; border: 1px solid #e6ecf2; }
* { box-sizing: border-box; }

/* Shrink state */
.sft-navbar.shrink .container { padding: .35rem .8rem; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.sft-navbar.shrink .sft-logo { height: 36px; }
@media (min-width: 1200px) {
  .sft-navbar.shrink .sft-logo { height: 40px; }
}

/* Breadcrumbs */
.breadcrumbsItems {
    max-height: 25px;
    height: 25px;
    font-size: 1.5rem;
    background: var(--colour-primary);
    color: var(--colour-white);
    outline: none;
    padding: .35em .5em .35em .9em;
    position: relative;
    transition: .2s linear;
    display: flex;
    align-items: center
}

.breadcrumbText {
    margin-left: 8px;
    color: var(--colour-white)
}

.breadcrumbsItems:last-child .breadcrumbText {
    color: var(--colour-primary)
}

.breadcrumbsItem {
    text-decoration: none;
    color: var(--colour-white);
    position: relative;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-flex;
    align-items: center
}

.breadcrumbsDropdown {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 0px;
    height: 0px;
    z-index: 200;
    pointer-events: none;
    top: 100%; /* place directly below parent to avoid hover gap */
    left: 0;   /* align with crumb start */
}

.breadcrumbsDropdownlist {
    display: none;
    position: absolute;
    width: 0px;
    background-color: var(--colour-white);
    padding: 0;
    box-shadow: 2px 2px 4px var(--colour-shadow);
    border-radius: 6px;
    border: 1px solid var(--colour-primary);

}

.dropdownItem {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--colour-primary);
    transition: background-color .2s
}

.dropdownItem a{
  color: var(--colour-primary) !important;
}

.breadcrumbsItem .material-icons {
    color: var(--colour-white);
    margin-right: 8px
}

.breadcrumbsItem .material-icons:hover {
  color: var(--colour-primary);
}

.dropdownItem:hover {
    background-color: var(--colour-background-light)
}

.breadcrumbsItems:hover .breadcrumbsDropdown,
.breadcrumbsDropdown:hover {
    visibility: visible;
    height: auto;
    opacity: 1;
    transition: .4s linear;
    pointer-events: auto
}

.breadcrumbsItems:hover .breadcrumbsDropdownlist,
.breadcrumbsDropdown:hover .breadcrumbsDropdownlist {
    display: block;
    width: max-content;
    padding: 10px
}

.breadcrumbsItems:after,.breadcrumbsItems:before {
    background: var(--colour-primary);
    bottom: 0;
    clip-path: polygon(50% 50%,-50% -50%,0 100%);
    content: "";
    left: 100%;
    position: absolute;
    top: 0;
    transition: background .2s linear;
    width: 1em;
    z-index: 1
}

.breadcrumbsItems:before {
    background: var(--colour-border);
    margin-left: 1px
}

.breadcrumbsItems:last-child:after,.breadcrumbsItems:last-child:before {
    display: none
}

.breadcrumbsItems:hover:after,.breadcrumbsItems:hover {
    background: var(--colour-background-light)
}

.breadcrumbsItems:hover:after,.breadcrumbsItems:hover .breadcrumbsItem {
    color: var(--colour-primary);
    overflow: visible
}

.breadcrumbsItems:hover .breadcrumbText {
    color: var(--colour-primary)
}

.breadcrumbsItems:focus:after,.breadcrumbsItems:focus {
    background: var(--colour-text-primary);
    color: var(--colour-white)
}

.breadcrumbsItems:last-child {
    border-right: none;
    border-radius: 0 0 4rem;
    padding-right: 3rem;
    background: var(--colour-background-light);
    color: var(--colour-primary)
}

.breadcrumbsItems:last-child .breadcrumbsItem {
    color: var(--colour-primary)
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    max-width: 100%;
    align-items: center;
    gap: 1px 0
}

:root {--colour-primary: #d84627; --colour-white: #fff;}
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #223; }
a { color: #0a58ca; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 980px; padding: 0 1rem; margin: 0 auto; }
.site-header { background: #0b3558; color: white; padding: 1rem 0 0.5rem; }
.site-title { margin: 0; font-size: 1.5rem; }
.site-title a { color: white; }
.site-subtitle { margin: 0.25rem 0 0.75rem; opacity: 0.85; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; padding: 0; margin: 0; }
.site-nav a { color: #e6eff7; }
.site-main { padding: 2rem 0; }
article h1 { margin-top: 0; }
.content img { max-width: 100%; height: auto; }
.list { padding-left: 1rem; }
.site-footer { background: #f4f6f8; padding: 1rem 0; color: #556; font-size: 0.95rem; }
.site-footer a { color: #0a58ca; }

/* Gallery shortcode */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
.gallery img { width: 100%; height: auto; display: block; border-radius: 4px; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* Video embeds */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Video cards */
.video-card { display: block; }
.video-card .video-title { margin: 0 0 .5rem; font-size: 2.1rem; }
.video-card .video-summary { margin-top: .5rem; color: #2a2e3a; }

/* Video grid */
.video-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }

/* Map embed */
.map-embed { position: relative; width: 100%; height: var(--map-h, min(80svh, 800px)); background: #eef2f6; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-embed.fullbleed { border-radius: 0; box-shadow: none; }

/* CleanWhite overrides */
.intro-header {
  /* Force the banner height exactly to the configured value */
  height: var(--banner-height, 80vh);
  min-height: 0; /* override any theme min-height */
  position: relative;
  display: flex;                    /* enable vertical centering */
  align-items: var(--banner-align, center);
  overflow: hidden;
  /*
  top: -77px;
  padding-top: 77px;
  margin-bottom: -50px;
  */
}
.intro-header::after {
  /* subtle dark overlay for text readability */
  content: "";
  position: absolute; inset: 0; background: rgba(0,0,0,0.15);
}
.intro-header .intro-photo {
  position: absolute; inset: 0; 
  max-width: min(100%, 2000px);
  width: var(--banner-width, 100%);
  margin-left: auto;
  margin-right: auto;
  object-fit: cover; /* crop if narrower than container */
  object-position: center var(--banner-pos-y, center); /* top | center | bottom */
  height: -webkit-fill-available;
}
.site-heading { position: relative; z-index: 1; text-align: left; padding: 0; }
.intro-header > .container { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.intro-header .site-heading h1 { color: #fff; font-weight: 300; font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 0.25rem; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.intro-header .site-heading h1 { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.2px; }
.intro-header .site-heading .subheading { color: #e8eef6; font-size: clamp(1rem, 2.5vw, 1.5rem); text-shadow: 0 1px 4px rgba(0,0,0,.3); margin-top: .25rem; }

/* Custom nav with logo */
.sft-navbar { position: sticky; top: 0; width:100%; z-index: 1000; background: linear-gradient(180deg, rgba(11,53,88,0.98), rgba(11,53,88,0.92)); border-bottom: none; }
.sft-navbar { transition: background .25s ease, box-shadow .25s ease, transform .2s ease; }
.sft-navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: .7rem 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: padding .2s ease, box-shadow .25s ease; }
/* Glass effect over hero */
.sft-navbar.on-hero { background: rgba(11,53,88); backdrop-filter: saturate(140%) blur(1px); box-shadow: none; }
.sft-navbar.on-hero .container { box-shadow: none; }
.sft-brand { display: inline-flex; align-items: center; }
.sft-logo { height: 50px; width: auto; display: block; transition: height .2s ease; cursor: default !important;}
.sft-nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: #fff; }
.sft-nav-links ul { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; flex-wrap: nowrap; }
.sft-nav-links a { color: #e6eff7; font-weight: 600; font-size: 1.5rem; letter-spacing: .2px; text-decoration: none; padding: .6rem 1rem; border-radius: 20px; line-height: 1; display: inline-block; }
.sft-navbar:not(.on-hero) .sft-nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.sft-navbar.on-hero .sft-nav-links a { color: #ffffff; }
.sft-navbar.on-hero .sft-nav-links a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.sft-nav-links li.active a { background: #f0642c; color: #fff; box-shadow: 0 6px 18px rgba(240,100,44,.28); }

@media (min-width: 1200px) {
  .sft-logo { height: 56px; }
  .sft-nav-links ul { gap: 1.6rem; }
}

@media (max-width: 1100px) and (min-width: 900px) {
  .sft-nav-links a { font-size: 1.2rem; padding: .55rem .85rem; }
  .sft-nav-links ul { gap: 1rem; }
}

@media (max-width: 900px) {
  .sft-nav-toggle { display: inline-block; }
  .sft-nav-links { display: none; }
  .sft-nav-links.open { display: block; position: absolute; right: 1rem; top: 58px; background: #0b3558; border: 1px solid #e5e8ec; border-radius: 12px; box-shadow: 0 22px 48px rgba(0,0,0,.18); overflow: hidden; min-width: 220px; }
  .sft-nav-links.open ul { display: flex; flex-direction: column; gap: 0; }
  .sft-nav-links.open li { border-bottom: 1px solid #f1f2f4; }
  .sft-nav-links.open li:last-child { border-bottom: 0; }
  .sft-nav-links.open a { display: block; padding: 1rem 1.1rem; color: #223; font-size: 1.2rem; border-radius: 0; }
  .sft-nav-links.open li.active a { background: #f0642c; color: #fff; }
}

/* Team grid (About Us) */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1rem 0 2rem; }
.team-grid figure { margin: 0;  border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.team-grid img { width: 100%; height: auto; display: block; }
.team-grid figcaption { padding: .85rem 1rem 1rem; }
.team-grid h3 { margin: 0 0 .4rem; font-size: 2.1rem; }
.team-grid p { margin: 0; color: #2a2e3a; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* Tracknotes */
.tracknotes { display: grid; gap: 1rem; }
.tn-card { border-radius: 8px; overflow: hidden; border: 1px solid #dfe5ec; background: #f6f8fa; }
.tn-card .tn-head { background: rgba(0,0,0,.12); padding: .5rem .75rem; }
.tn-card .tn-title { margin: 0; font-size: 2rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.tn-card .tn-body { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .9rem; align-items: start; }
.tn-meta { display: grid; gap: .5rem; align-content: start; }
.tn-chip { padding: .45rem .6rem; border-radius: 8px; font-size: 1.25rem; color: #2a2e3a; }
.tn-badge {padding: .35rem .6rem; border-radius: 999px; font-size: 1.25rem; display: inline-block; color: #2a2e3a; }
.tn-notes { color: #2b3340; }
/* Allow long text/URLs in notes to wrap instead of overflowing */
.tn-notes, .tn-notes p, .tn-notes li, .tn-notes a { 
  overflow-wrap: anywhere; 
  word-break: break-word; 
}
.tn-card { max-width: 100%; }
.tn-card .tn-body { overflow: visible; }
@media (max-width: 780px){ .tn-card .tn-body { grid-template-columns: 1fr; } }

/* Tracknotes ref thumbnails */
.tn-refs { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: .5rem; overflow-x: auto; padding-bottom: 4px; }
.tn-refthumb { position: relative; display: inline-block; text-decoration: none; color: inherit; flex: 0 0 auto; }
.tn-refthumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; display: block; margin: 0; }
.tn-refthumb sup { position: absolute; top: 4px; right: 6px; background: rgba(0,0,0,.65); color: #fff; padding: 1px 5px; border-radius: 999px; font-size: 1.2rem; line-height: 1; }

/* Color variants */
/* main route (grey) */
.tn--main { --tn-bg: #616b75; --tn-body: #dddddd; --tn-border: #d4d9df; }
.tn--main .tn-head { background: var(--tn-bg); }
.tn--main { background: var(--tn-body); border-color: var(--tn-border); }

/* points of interest (blue) */
.tn--poi { --tn-bg: #4a90e2; --tn-body: #d2e5ff; --tn-border: #d9e7ff; }
.tn--poi .tn-head { background: var(--tn-bg); }
.tn--poi { background: var(--tn-body); border-color: var(--tn-border); }

/* side trips (green) */
.tn--sidetrip { --tn-bg: #36a36a; --tn-body: #caefdb; --tn-border: #cfeedd; }
.tn--sidetrip .tn-head { background: var(--tn-bg); }
.tn--sidetrip { background: var(--tn-body); border-color: var(--tn-border); }

/* alternate routes (purple) */
.tn--alt { --tn-bg: #9a63c7; --tn-body: #ecdcff; --tn-border: #e6d8fb; }
.tn--alt .tn-head { background: var(--tn-bg); }
.tn--alt { background: var(--tn-body); border-color: var(--tn-border); }

/* Articles */
.bw-article { display: grid; gap: 1rem; }
.bw-hero { text-align: center; padding: 0.5rem 0 1rem; }
.bw-hero img { float: none;  margin-right: 5px;  position: relative;  width: 75px;  background-repeat: no-repeat;  background-size: cover;  background-position: center; }
.bw-hero h1 { margin: .5rem 0 .25rem; font-size: clamp(1.8rem, 4.8vw, 3rem); }
.bw-hero .lead { font-size: 1.1rem; color: #2b3340; max-width: 900px; margin: 0 auto; }
.bw-h2 { margin: 1.2rem 0 .4rem; font-size: 1.5rem; }
.bw-html p { margin: 0 0 .9rem; }
.bw-tile { display: grid; grid-template-columns: 75px 1fr; gap: .75rem; align-items: center; padding: 0;  background: #f5f7fa; border: 1px solid #dfe5ec; border-radius: 10px; color: inherit; text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,.06);}
.bw-tile:hover { background: #eef2f7; text-decoration: none; color: #000; }
.bw-tile img { width: 75px; height: 80px; object-fit: cover; border-radius: 10px 0 0 10px ;  display: block;  margin: 0;}
.bw-tile-title { padding: 0;  margin: 0; color: #000; font-weight: 650; font-size: 1.7rem;  white-space: nowrap;  overflow: hidden;  text-overflow: ellipsis; }
.bw-tile-desc { color: #2a2e3a; }
@media (max-width: 560px) { .bw-tile { grid-template-columns: 1fr; } .bw-tile img { width: 100%; height: auto; } }

/* Journey Gallery */
.pg-gallery { margin: 1rem 0 2rem; }
.pg-grid { display: grid; gap: 3px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: stretch; }
/* Justified variant switches to flex for exact row packing */
.pg-grid.justified { display: flex; flex-wrap: wrap; gap: 3px; align-items: stretch; }
.pg-item { display: block; background: transparent; border: 0; border-radius: 0; padding: 0; overflow: hidden; cursor: zoom-in; }
.pg-grid.justified .pg-item { flex: 0 0 auto; }
.pg-item img { display: block; width: 100%; height: 150px; object-fit: contain; background: transparent; margin: 0;}
.pg-grid.justified .pg-item img { height: 100%; object-fit: cover; }
.pg-item:focus { outline: 2px solid #4a90e2; outline-offset: 2px; }

.pg-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; z-index: 2000; }
.pg-lightbox[hidden] { display: none; }
.pg-figure { margin: 0; max-width: 95vw; max-height: 88vh; display: grid; gap: .5rem; }
.pg-full { max-width: 95vw; max-height: 80vh; width: auto; height: auto; display: block; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.pg-title { color: #eaeef5; text-align: center; }
.pg-close { position: absolute; top: 10px; right: 16px; background: none; color: #fff; border: 0; font-size: 2rem; cursor: pointer; }
.pg-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.pg-prev { left: 16px; }
.pg-next { right: 16px; }


/* Alerts Badge */
[data-alerts-link] {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.alerts-badge {
  display: none;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin-left: 6px;
  background-color: #ff4d4f;
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1;
}

/* Alerts Dropdown */
.alerts-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

[data-alerts-link]:hover .alerts-dropdown,
.alerts-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Alert Items */
.alert-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.alert-item:last-child {
  border-bottom: none;
}

.alert-item:hover {
  background-color: #f9f9f9;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.alert-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.alert-icon {
  font-size: 16px;
}

/* Alert Type Colors */
.alert-type-warning .alert-title {
  color: #d46b08;
}

.alert-type-closed_area .alert-title {
  color: #cf1322;
}

.alert-type-information .alert-title {
  color: #096dd9;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .alerts-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 60vh;
    border-radius: 8px 8px 0 0;
    transform: translateY(100%);
  }

  .alerts-dropdown.active {
    transform: translateY(0);
  }

  [data-alerts-link]:hover .alerts-dropdown {
    transform: translateY(100%);
  }

  [data-alerts-link]:hover .alerts-dropdown.active {
    transform: translateY(0);
  }
}