/* NYE2027 Blocksy Portal — CSS-only visual treatment; no external fonts/scripts */
body.nye2027-portal {
  --nye-navy: #11273d;
  --nye-navy-deep: #0b1e30;
  --nye-navy-soft: #1b3853;
  --nye-gold: #e0b77d;
  --nye-ink: #172b40;
  --nye-muted: #637589;
  --nye-paper: #ffffff;
  --nye-background: #f3f6f9;
  --theme-palette-color-1: #b98346;
  --theme-palette-color-2: #11273d;
  --theme-text-color: #26384c;
  --theme-headings-color: #11273d;
  --theme-link-initial-color: #1c5e86;
  --theme-link-hover-color: #b4773f;
  --theme-button-background-initial-color: #11273d;
  --theme-button-background-hover-color: #1e4968;
  background-color: var(--nye-background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Site header */
body.nye2027-portal #header,
body.nye2027-portal #header [data-row],
body.nye2027-portal #header .ct-header {
  background-color: var(--nye-navy-deep);
}
body.nye2027-portal #header {
  box-shadow: 0 3px 22px rgba(8, 26, 43, .16);
  position: relative;
  z-index: 10;
}
body.nye2027-portal #header .site-title,
body.nye2027-portal #header .site-title a,
body.nye2027-portal #header .site-description,
body.nye2027-portal #header .ct-header-text,
body.nye2027-portal #header [data-id="menu"] a,
body.nye2027-portal #header [data-id="menu-secondary"] a,
body.nye2027-portal #header .ct-header-trigger,
body.nye2027-portal #header .ct-search-button,
body.nye2027-portal #header .ct-icon {
  color: #fff !important;
}
body.nye2027-portal #header .site-title {
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.35;
}
body.nye2027-portal #header [data-id="menu"] a:hover,
body.nye2027-portal #header .ct-menu-link:hover {
  color: var(--nye-gold) !important;
}

/* Main post hero, with one unmistakable visual hierarchy */
body.nye2027-portal.single-post .hero-section,
body.nye2027-portal.single-post .hero-section[data-type="type-1"] {
  background: radial-gradient(circle at 95% 0%, rgba(224,183,125,.17), transparent 34%), linear-gradient(125deg, #10273f 0%, #173650 70%, #24435a 100%) !important;
  padding: clamp(38px, 5vw, 68px) clamp(22px, 4vw, 48px);
  /* Override Blocksy Type 1's narrow hero width without moving it to the left. */
  box-sizing: border-box;
  width: calc(100% - 32px) !important;
  max-width: 1080px !important;
  margin: 30px auto 0 !important;
  border-radius: 16px 16px 0 0;
  border-bottom: 4px solid var(--nye-gold);
}
/* Hero and content should span a full grid track if theme uses Grid. */
body.nye2027-portal.single-post #main > .hero-section,
body.nye2027-portal.single-post #main > .ct-container,
body.nye2027-portal.single-post #main > .ct-container-full {
  grid-column: 1 / -1;
}
body.nye2027-portal.single-post .hero-section .entry-header {
  max-width: 1060px;
  margin-inline: auto;
  text-align: left;
}
body.nye2027-portal.single-post .hero-section .entry-header::before {
  content: "DESTINATION GUIDE  /  NEW YEAR 2027";
  display: block;
  margin-bottom: 17px;
  color: var(--nye-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
body.nye2027-portal.single-post .hero-section .page-title,
body.nye2027-portal.single-post .hero-section .entry-title,
body.nye2027-portal.single-post .hero-section h1 {
  color: #fff !important;
  max-width: 990px;
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 53px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.035em;
  text-align: left;
  text-wrap: balance;
}
body.nye2027-portal.single-post .hero-section .entry-meta,
body.nye2027-portal.single-post .hero-section .entry-meta a,
body.nye2027-portal.single-post .hero-section .ct-breadcrumbs,
body.nye2027-portal.single-post .hero-section .ct-breadcrumbs a {
  color: #dce4ee !important;
}

/* Constrain the outer Blocksy post wrapper, not only its inner paragraph area.
 * The v1.0 CSS set a non-native theme variable and let a full-width card grow
 * to the viewport while the Type 1 hero remained at Blocksy's narrow width. */
body.nye2027-portal.single-post #main .ct-container,
body.nye2027-portal.single-post #main .ct-container-full {
  box-sizing: border-box;
  width: calc(100% - 32px) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.nye2027-portal.single-post #main .entry-content,
body.nye2027-portal.single-post #main .ct-entry-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
  background: var(--nye-paper);
  border: 1px solid #e5ebf0;
  border-radius: 18px;
  padding: clamp(18px, 4vw, 48px);
  margin-block: 30px 45px;
  box-shadow: 0 12px 32px rgba(17,39,61,.055);
  color: var(--nye-ink);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
body.nye2027-portal.single-post .entry-content > :first-child { margin-top: 0; }
body.nye2027-portal.single-post .entry-content p { margin-bottom: 21px; }
body.nye2027-portal.single-post .entry-content h2 {
  color: var(--nye-navy);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 42px 0 21px;
  padding-left: 16px;
  border-left: 4px solid #cf9a5d;
}
body.nye2027-portal.single-post .entry-content h3 {
  color: #213d56;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 750;
  line-height: 1.35;
  margin: 32px 0 17px;
}
body.nye2027-portal.single-post .entry-content a:not(:has(img)) {
  text-underline-offset: 3px;
}

/* Existing clickable external images preserved; only presentation changes */
body.nye2027-portal.single-post .entry-content a:has(>img) {
  display: block;
  max-width: 820px;
  margin: 24px auto 13px;
  line-height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 9px 23px rgba(15,39,58,.09);
}
body.nye2027-portal.single-post .entry-content a > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border: none;
}
body.nye2027-portal.single-post .entry-content img:not(a img) {
  border-radius: 12px;
}

/* Turn original red, centered affiliate copy links into clear travel portal CTAs */
body.nye2027-portal.single-post .entry-content p[style*="text-align: center"] a:not(:has(img)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  padding: 13px 21px;
  background: var(--nye-navy);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  box-shadow: 0 5px 13px rgba(13,43,68,.12);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none !important;
  transition: background-color .15s ease, box-shadow .15s ease;
}
body.nye2027-portal.single-post .entry-content p[style*="text-align: center"] a:not(:has(img)):hover {
  background: #254c68;
  box-shadow: 0 6px 18px rgba(13,43,68,.19);
}
body.nye2027-portal.single-post .entry-content p[style*="text-align: center"] a:not(:has(img)) span,
body.nye2027-portal.single-post .entry-content p[style*="text-align: center"] a:not(:has(img)) strong,
body.nye2027-portal.single-post .entry-content p[style*="text-align: center"] a:not(:has(img)) em {
  color: inherit !important;
  text-decoration: none !important;
}

/* Stay22 embeds: preserve original src, parameters and load behavior */
body.nye2027-portal.single-post .entry-content iframe[src*="stay22.com/embed"],
body.nye2027-portal.single-post .entry-content iframe[src*="www.stay22.com/embed"] {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 1px solid #e3e9ef !important;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(18,40,60,.06);
  background-color: #fff;
  margin: 20px auto 34px;
}

/* Archives — tidy cards without extra database reads or images */
body.nye2027-portal .entries article {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 7px 24px rgba(17,39,61,.065);
}
body.nye2027-portal .entries article .entry-title a:hover { color: #bc874f; }

/* Hide optional article chrome (nothing is deleted) */
body.nye2027-portal-hide-meta.single-post .hero-section .entry-meta,
body.nye2027-portal-hide-meta.single-post .entry-meta {
  display: none !important;
}
body.nye2027-portal-hide-comments.single-post #comments,
body.nye2027-portal-hide-comments.single-post .ct-comments-container,
body.nye2027-portal-hide-comments.single-post .ct-comments,
body.nye2027-portal-hide-comments.single-post .comment-respond {
  display: none !important;
}
body.nye2027-portal-hide-extras.single-post .ct-author-box,
body.nye2027-portal-hide-extras.single-post .ct-related-posts,
body.nye2027-portal-hide-extras.single-post .post-navigation,
body.nye2027-portal-hide-extras.single-post .ct-posts-nav {
  display: none !important;
}
body.nye2027-portal-hide-sidebar.single-post #main .ct-sidebar,
body.nye2027-portal-hide-sidebar.single-post #main aside.ct-sidebar {
  display: none !important;
}
body.nye2027-portal-hide-sidebar.single-post #main .ct-container[data-sidebar] {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.nye2027-portal #footer,
body.nye2027-portal #footer [data-row] {
  background-color: #10263b;
  color: #dfebf5;
}
body.nye2027-portal #footer a { color: #e8c79b; }

@media (max-width: 768px) {
  body.nye2027-portal #header .site-title { font-size: 15px; }
  body.nye2027-portal.single-post .hero-section {
    padding: 35px 20px 39px;
    margin-top: 14px !important;
    border-radius: 11px 11px 0 0;
  }
  body.nye2027-portal.single-post .hero-section .entry-header::before { font-size: 10px; letter-spacing: .11em; }
  body.nye2027-portal.single-post .entry-content,
  body.nye2027-portal.single-post .ct-entry-content {
    border-radius: 12px;
    margin-block: 16px 25px;
    padding: 20px 16px;
    font-size: 16px;
  }
  body.nye2027-portal.single-post .entry-content p[style*="text-align: center"] a:not(:has(img)) {
    width: 100%;
  }
  body.nye2027-portal.single-post .entry-content a > img { max-height: none; }
  body.nye2027-portal.single-post .entry-content iframe[src*="stay22.com/embed"] {
    height: 670px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nye2027-portal.single-post .entry-content a { transition: none !important; }
}
