
:root {
  /* Core palette */
  --ct-bg: #f6f7f4;
  --ct-surface: #ffffff;
  --ct-surface-2: #eef1ec;
  --ct-ink: #17211d;
  --ct-muted: #66716c;
  --ct-border: #dce2de;

  /* Adventure accents */
  --ct-forest: #173f35;
  --ct-forest-2: #24584a;
  --ct-route: #d99132;
  --ct-route-soft: #fff3df;
  --ct-sky: #dbe8e6;

  /* UI */
  --ct-radius-sm: 10px;
  --ct-radius: 16px;
  --ct-radius-lg: 24px;
  --ct-shadow-sm: 0 1px 2px rgba(16, 35, 28, 0.04),
                  0 6px 18px rgba(16, 35, 28, 0.05);
  --ct-shadow: 0 18px 50px rgba(16, 35, 28, 0.09);
  --ct-content: 1180px;
  --ct-reading: 760px;

  /* Typography */
  --ct-font:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Olivero / Drupal-friendly variable overrides */
  --color--gray-0: #ffffff;
  --color--gray-5: #f6f7f4;
  --color--gray-10: #eef1ec;
  --color--gray-20: #dce2de;
  --color--gray-45: #8c9691;
  --color--gray-60: #66716c;
  --color--gray-80: #27332e;
  --color--gray-95: #17211d;

  --color--primary-40: #24584a;
  --color--primary-50: #173f35;
  --color--primary-60: #113229;
  --color--primary-80: #0b241d;

  --color-text-primary-medium: #24584a;
  --color-text-primary-loud: #173f35;
  --color-link: #24584a;
}


/* ============================================================
   2. BASE
   ============================================================ */

html {
  scroll-behavior: smooth;
  background: var(--ct-bg);
}

body {
  margin: 0;
  color: var(--ct-ink);
  background: var(--ct-bg);
  font-family: var(--ct-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tiny route-grid detail — intentionally very subtle. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(23, 63, 53, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 63, 53, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

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

::selection {
  color: var(--ct-ink);
  background: #f5d6a6;
}


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.node__title,
.node__title a,
.site-branding__name,
.site-branding__name a {
  margin-top: 0;
  color: var(--ct-ink);
  font-family: var(--ct-font);
  font-weight: 780;
  letter-spacing: -0.035em;
}

h1,
.page-title {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.96;
}

h2,
.node__title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

strong {
  color: var(--ct-ink);
  font-weight: 760;
}

small,
.node__meta,
.submitted,
.author,
.date,
.views-field-created {
  color: var(--ct-muted);
  font-size: 0.88rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  color: var(--ct-ink);
  background: var(--ct-surface-2);
  border: 1px solid var(--ct-border);
  border-left: 4px solid var(--ct-route);
  border-radius: 0 var(--ct-radius) var(--ct-radius) 0;
  font-size: 1.08rem;
}

hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background: var(--ct-border);
}


/* ============================================================
   4. LINKS + ACCESSIBILITY
   ============================================================ */

a {
  color: var(--ct-forest-2);
  text-decoration-color: rgba(36, 88, 74, 0.32);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

a:hover {
  color: var(--ct-forest);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(217, 145, 50, 0.55);
  outline-offset: 3px;
}


/* ============================================================
   5. HEADER / BRAND
   ============================================================ */

.site-header,
body > header,
header[role="banner"] {
  position: relative;
  z-index: 20;
//  color: #fff;
//  background: rgba(23, 63, 53, 0.97);
//  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
//  box-shadow: 0 10px 30px rgba(14, 37, 30, 0.12);
}

/* Fine amber "route" line under the header. */
/*
.site-header::after,
body > header::after,
header[role="banner"]::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      var(--ct-route) 0 14%,
      transparent 14% 16%,
      var(--ct-route) 16% 34%,
      transparent 34% 36%,
      var(--ct-route) 36% 100%
    );
  opacity: 0.9;
}
*/

.site-header__inner,
.region--header,
.region-header,
.site-branding,
.site-branding__inner,
.site-branding__text {
  background: transparent !important;
}

.site-branding__name,
.site-branding__name a,
.site-name,
.site-name a {
  color: #fff !important;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 820;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-branding__slogan,
.site-slogan {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */

/*
.primary-nav__menu-link,
.site-header nav a,
header[role="banner"] nav a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.94rem;
  font-weight: 680;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
}

.primary-nav__menu-link:hover,
.primary-nav__menu-link:focus-visible,
.site-header nav a:hover,
.site-header nav a:focus-visible,
header[role="banner"] nav a:hover,
header[role="banner"] nav a:focus-visible {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.10);
}

.primary-nav__menu-link--active-trail,
.primary-nav__menu-link[aria-current="page"],
.site-header nav a[aria-current="page"] {
  color: var(--ct-ink) !important;
  background: #fff;
}
*/


/* ============================================================
   7. LAYOUT
   ============================================================ */

.layout-container,
.site-header__inner,
.main-content,
.region--content,
.region-content,
footer .region,
.site-footer__inner {
  width: min(calc(100% - 40px), var(--ct-content));
  margin-inline: auto;
}

main,
main[role="main"],
.main-content {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* Keep long-form article text pleasantly narrow. */
.node--view-mode-full .node__content,
article.node--view-mode-full .node__content,
article .field--name-body {
  max-width: var(--ct-reading);
}


/* ============================================================
   8. HOME / TEASER CARDS
   ============================================================ */

.view-content {
  display: grid;
  gap: 1.5rem;
}

/*
 * Covers common Drupal teaser output:
 * article.node--view-mode-teaser
 * article.node
 * .views-row
 */
article.node--view-mode-teaser,
.view-content > .views-row,
main article.node:not(.node--view-mode-full) {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  box-shadow: var(--ct-shadow-sm);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

article.node--view-mode-teaser:hover,
.view-content > .views-row:hover,
main article.node:not(.node--view-mode-full):hover {
  transform: translateY(-3px);
  border-color: #cbd6d1;
  box-shadow: var(--ct-shadow);
}

/* Minimal waypoint dot */
article.node--view-mode-teaser::before,
.view-content > .views-row::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 10px;
  height: 10px;
  background: var(--ct-route);
  border: 3px solid var(--ct-route-soft);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(217, 145, 50, 0.25);
}

.node__title a {
  color: var(--ct-ink);
  text-decoration: none;
}

.node__title a:hover {
  color: var(--ct-forest-2);
}


/* ============================================================
   9. META — CLEAN "EXPEDITION LOG" LABEL
   ============================================================ */

.node__meta,
.submitted {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  color: var(--ct-muted);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.node__meta::before,
.submitted::before {
  content: "LOG";
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.5rem;
  color: var(--ct-forest);
  background: var(--ct-surface-2);
  border: 1px solid var(--ct-border);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}


/* ============================================================
   10. READ MORE / BUTTONS
   ============================================================ */

.node-readmore a,
.links .node-readmore a,
.more-link a,
a.button,
.button,
button,
input[type="submit"] {
//  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.72rem 1rem;
  color: #fff !important;
  background: var(--ct-forest);
  border: 1px solid var(--ct-forest);
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
  font-size: 1.0rem;
  font-weight: 740;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
}

.node-readmore a::after,
.links .node-readmore a::after,
.more-link a::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 160ms ease;
}

.node-readmore a:hover,
.links .node-readmore a:hover,
.more-link a:hover,
a.button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  color: #fff !important;
  background: var(--ct-forest-2);
  border-color: var(--ct-forest-2);
  transform: translateY(-1px);
}

.node-readmore a:hover::after,
.links .node-readmore a:hover::after,
.more-link a:hover::after {
  transform: translateX(3px);
}


/* ============================================================
   11. IMAGES — CLEAN TRAVEL PHOTOGRAPHY PRESENTATION
   ============================================================ */

.node__content img,
.field--type-image img,
article img {
  border-radius: var(--ct-radius);
}

figure {
  margin: 2rem 0;
}

figcaption {
  margin-top: 0.7rem;
  color: var(--ct-muted);
  font-size: 0.82rem;
}


/* ============================================================
   12. FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  color: var(--ct-ink);
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-sm);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ct-forest-2);
  box-shadow: 0 0 0 4px rgba(36, 88, 74, 0.10);
  outline: 0;
}


/* ============================================================
   13. TABLES
   ============================================================ */

table {
  width: 100%;
  overflow: hidden;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--ct-radius);
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ct-border);
}

th {
  color: var(--ct-forest);
  background: var(--ct-surface-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}


/* ============================================================
   14. BREADCRUMBS
   ============================================================ */

/*
.breadcrumb {
  margin-bottom: 2rem;
  color: var(--ct-muted);
  font-size: 0.8rem;
  font-weight: 660;
}

.breadcrumb a {
  color: var(--ct-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ct-forest);
}
*/


/* ============================================================
   15. SIDEBAR / BLOCKS
   ============================================================ */

aside .block,
.region--sidebar .block,
.region-sidebar-first .block,
.region-sidebar-second .block {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
}

aside .block h2,
.region--sidebar .block h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}


/* ============================================================
   16. PAGER
   ============================================================ */

.pager__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.pager__item a {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--ct-ink);
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: 999px;
  text-decoration: none;
}

.pager__item.is-active a,
.pager__item a:hover {
  color: #fff;
  background: var(--ct-forest);
  border-color: var(--ct-forest);
}


/* ============================================================
   17. FOOTER
   ============================================================ */

.site-footer,
body > footer,
footer[role="contentinfo"] {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  background: #102d26;
  border-top: 0;
}

.site-footer::before,
body > footer::before,
footer[role="contentinfo"]::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer a,
body > footer a,
footer[role="contentinfo"] a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.site-footer h2,
.site-footer h3,
body > footer h2,
body > footer h3 {
  color: #fff;
}


/* ============================================================
   18. OPTIONAL CARtARL HELPER CLASSES
   Use these in future content if desired.
   ============================================================ */

/* Clean hero panel */
.cartarl-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 6vw, 5rem);
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(217, 145, 50, 0.28), transparent 18rem),
    linear-gradient(135deg, #173f35, #0f3129);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: var(--ct-shadow);
}

.cartarl-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(255, 255, 255, 0.035),
    0 0 0 82px rgba(255, 255, 255, 0.025);
}

.cartarl-hero > * {
  position: relative;
  z-index: 1;
}

.cartarl-hero h1,
.cartarl-hero h2,
.cartarl-hero h3 {
  color: #fff;
}

.cartarl-hero p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* Small modern eyebrow / category */
.cartarl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #ffe3b7;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cartarl-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--ct-route);
}

/* Waypoint card */
.cartarl-waypoint {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.2rem;
  background: #fff;
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius);
}

.cartarl-waypoint::before {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.35rem;
  width: 12px;
  height: 12px;
  background: var(--ct-route);
  border: 3px solid var(--ct-route-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(217, 145, 50, 0.28);
}

/* Route list */
.cartarl-route {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  list-style: none;
}

.cartarl-route::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.42rem;
  width: 2px;
  background:
    repeating-linear-gradient(
      to bottom,
      var(--ct-route) 0 8px,
      transparent 8px 14px
    );
}

.cartarl-route > li {
  position: relative;
  margin-bottom: 1.25rem;
}

.cartarl-route > li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -1.95rem;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 3px solid var(--ct-route);
  border-radius: 50%;
}

/* Compact tag / stamp, intentionally not "vintage" */
.cartarl-tag,
.cartarl-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.65rem;
  color: var(--ct-forest);
  background: var(--ct-route-soft);
  border: 1px solid #f1d3a7;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}


/* ============================================================
   19. DRUPAL / OLIVERO CLEANUP
   ============================================================ */

/* Remove some of Olivero's more decorative defaults. */
.site-header__initial {
  background: var(--ct-forest) !important;
}

.site-header__fixable.is-fixed:not(.is-expanded) {
  box-shadow: var(--ct-shadow-sm);
}

.primary-nav__menu-link-inner::after {
  border-top-color: var(--ct-route) !important;
}

.node__content {
  color: var(--ct-ink);
}

.text-content a:not(.button) {
  box-shadow: none;
}

.feed-icons {
  margin-top: 2rem;
}

.skip-link {
  color: #fff !important;
  background: var(--ct-forest) !important;
}


/* ============================================================
   20. RESPONSIVE
   ============================================================ */

@media (min-width: 900px) {
  .view-content {
    gap: 1.75rem;
  }

  /* When a Drupal view outputs teasers, let them breathe. */
  article.node--view-mode-teaser,
  .view-content > .views-row {
    padding: 2.1rem 2.25rem;
  }
}

@media (max-width: 699px) {
  .layout-container,
  .site-header__inner,
  .main-content,
  .region--content,
  .region-content,
  footer .region,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--ct-content));
  }

  main,
  main[role="main"],
  .main-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  h1,
  .page-title {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  article.node--view-mode-teaser,
  .view-content > .views-row,
  main article.node:not(.node--view-mode-full) {
    padding: 1.35rem;
    border-radius: 18px;
  }

  article.node--view-mode-teaser::before,
  .view-content > .views-row::before {
    top: 1.25rem;
    right: 1.25rem;
  }

  .cartarl-hero {
    padding: 1.75rem;
    border-radius: 20px;
  }
}


/* ============================================================
   21. MOTION PREFERENCE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}





.tqa-first {
  min-width: 50px;
}
.tqa-second {
  min-width: 50px;
}
.tqa-third {
  min-width: 50px;
}

li.node-readmore {
  display: none;
}

footer {
  display: none; 
}

.menu--main {
  float: right;
}

a:link,
a:visited {
    color: blue;
}

.book-traversal__list {
  margin-top: 15px;
  padding-top: 5px;
  border-top: 1px solid black;
}

div.content nav hr {
  display: none;
}

.region-navigation .logo img {
  height: 40px;
}

/* MOBILE MENU: overlay content instead of pushing page down */
@media screen and (max-width: 768px) {

  /* Don't let the header clip the dropdown */
  header,
  header nav,
  header .navigation,
  header .navbar {
    overflow: visible !important;
  }

  /*
   * Target the menu list when the hamburger is open.
   * position:fixed removes it completely from page flow.
   */
  header:has(button[aria-expanded="true"]) nav > ul,
  header:has(button[aria-expanded="true"]) nav > div > ul,
  header:has([aria-expanded="true"]) .menu,
  header:has([aria-expanded="true"]) .menu-wrapper,
  header:has([aria-expanded="true"]) .nav-menu {
    position: fixed !important;

    top: 70px !important;
    right: 0 !important;
    left: auto !important;

    width: min(90vw, 360px) !important;
    height: auto !important;
    max-height: calc(100vh - 70px) !important;

    margin: 0 !important;

    overflow-y: auto !important;

    z-index: 999999 !important;

    background: #fff !important;

    box-shadow:
      0 10px 30px rgba(0,0,0,.20) !important;
  }
}
