@font-face { font-family: "Cinzel Decorative"; font-weight: 400; font-display: swap; src: url("/fonts/cinzel-decorative-400.woff2") format("woff2"); }
@font-face { font-family: "Cinzel Decorative"; font-weight: 700; font-display: swap; src: url("/fonts/cinzel-decorative-700.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url("/fonts/mulish-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 500; font-display: swap; src: url("/fonts/mulish-500.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 600; font-display: swap; src: url("/fonts/mulish-600.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url("/fonts/mulish-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 400; font-display: swap; src: url("/fonts/merriweather-400.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/merriweather-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-weight: 700; font-display: swap; src: url("/fonts/merriweather-700.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 300; font-display: swap; src: url("/fonts/mulish-300.woff2") format("woff2"); }

:root {
  --teal: #0087a2;
  --teal-light: #44adc4;
  --text: #6a6b6c;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: "Mulish", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

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

main { flex: 1 0 auto; }

/* Header */

.site-header { background: linear-gradient(90deg, #006e85 0%, var(--teal) 50%, #006e85 100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
}

.header-logo { display: block; line-height: 0; }
.header-logo img { width: 172px; height: auto; }

.site-menu { display: flex; gap: 40px; }

.site-menu a {
  color: #fff;
  font-family: "Cinzel Decorative", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  text-decoration: none;
}

.site-menu a:hover, .site-menu a:focus-visible { text-decoration: underline; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px 6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 3px;
  margin-bottom: 6px;
  border-radius: 2px;
  background: #fff;
}

.menu-button span:last-child { margin-bottom: 0; }

.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1000px) {
  .site-menu { gap: 22px; }
  .header-logo img { width: 150px; }
}

@media (max-width: 767px) {
  .header-inner { flex-direction: column; padding: 16px 20px 10px; }
  .menu-button { display: block; margin-top: 8px; }
  .site-menu a { font-size: 19px; }
  .site-menu { display: none; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; }
  .site-menu.is-open { display: flex; }
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
  background: linear-gradient(90deg, #006e85 0%, var(--teal) 50%, #006e85 100%);
  color: #fff;
  text-align: center;
}

.footer-logo { display: block; line-height: 0; }

.footer-social { display: block; margin-top: 22px; line-height: 0; }

.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 36px; margin-top: 18px; }

.footer-menu a {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 26px;
  text-decoration: none;
}

.footer-menu a:hover, .footer-menu a:focus-visible { text-decoration: underline; }

.footer-copy { margin: 4px 0 0; font-family: "Montserrat", sans-serif; font-size: 12px; line-height: 21px; }

/* 404 page */

.not-found {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
}

.nf-image { position: absolute; inset: 0; }

.nf-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 60%;
}

.nf-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 236, 214, 0.9) 0%, rgba(255, 236, 214, 0.74) 34%, rgba(255, 236, 214, 0) 64%);
}

.nf-text {
  position: relative;
  max-width: 460px;
  margin-left: max(20px, calc((100vw - 1040px) / 2));
  padding: 40px 20px 40px 0;
}

.nf-text h1 {
  margin: 0 0 16px;
  color: var(--teal);
  font-family: "Cinzel Decorative", serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
}

.nf-text p { margin: 0 0 24px; color: #212121; font-size: 22px; line-height: 1.45; }

.nf-link {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.nf-link:hover, .nf-link:focus-visible { text-decoration: underline; }

@media (max-width: 767px) {
  .not-found { display: block; min-height: 560px; }
  .nf-image img { object-position: 75% 60%; }
  .nf-image::after { background: linear-gradient(to bottom, rgba(255, 236, 214, 0.9) 0%, rgba(255, 236, 214, 0.7) 45%, rgba(255, 236, 214, 0) 72%); }
  .nf-text { max-width: none; margin: 0; padding: 36px 20px; }
  .nf-text h1 { font-size: 48px; }
  .nf-text p { font-size: 20px; }
}

/* Shared page parts */

.wrap { max-width: 1060px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.wrap-wide { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.home h1, .about h1, .explore h1, .explore h2, .legal h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.75;
}

.home h1, .about h1, .explore h1, .legal h1 { color: var(--teal); font-size: 40px; }

.about, .explore, .legal, .home-intro { color: #1f1f1f; font-size: 16px; line-height: 28px; }

/* Home */

.home-hero { position: relative; }
.home-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 170px; background: linear-gradient(to bottom, rgba(0, 40, 50, 0.42), rgba(0, 40, 50, 0)); pointer-events: none; }
.home-hero img { display: block; width: 100%; height: 700px; object-fit: cover; object-position: 50% 54%; }

/* Home page: logo and menu sit on the photo */
.home-page .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: none; }
.home-page .site-menu a { text-shadow: 0 1px 4px rgba(0, 30, 40, 0.5); }
.home-intro { padding-top: 60px; color: #1f1f1f; text-align: center; }
.home-intro h1 { margin: 0 0 20px; }
.home-intro p { margin: 0 0 20px; }

.post-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 60px; padding-bottom: 80px; }

.post-card { display: flex; flex-direction: column; align-items: center; padding: 21px; border: 1px solid #c9d3d7; text-align: center; }
.post-card-image { position: relative; width: 100%; }
.post-card-image img { display: block; width: 100%; height: 265px; object-fit: cover; }
.post-card-image::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -10px; height: 10px; background: var(--teal-light); }
.post-card h2 { margin: 36px 0 20px; font-family: "Merriweather", serif; font-size: 22px; font-weight: 400; line-height: 31px; }
.post-card h2 a { color: #0c1115; text-decoration: none; }
.post-card h2 a:hover, .post-card h2 a:focus-visible { color: var(--teal); }
.post-card p { margin: 0 0 30px; color: #000; font-size: 14px; line-height: 22.4px; }
.read-more { display: inline-flex; align-items: center; gap: 15px; margin-top: auto; padding: 2px 0; color: #006e85; font-size: 13px; font-weight: 700; letter-spacing: 2px; line-height: 16px; text-decoration: none; }
.read-more::after { content: ""; flex: none; width: 14px; height: 14px; background: url("/img/chevron-right.svg") center / contain no-repeat; }

/* About Us */

.about { padding-top: 75px; padding-bottom: 80px; }
.image-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.image-row img { display: block; width: 100%; height: auto; }
.about h1 { margin: 54px 0 20px; }
.about h2 { margin: 40px 0 34px; font-size: 26px; font-weight: 400; line-height: 45.5px; }
.about p { margin: 0 0 28px; }
.about a { color: var(--teal); text-decoration: none; }
.about a:hover, .about a:focus-visible { text-decoration: underline; }
.sign-off { display: block; width: 152px; height: auto; margin: 20px 0 55px; }

/* Explore Castles */

.explore { padding-top: 60px; padding-bottom: 150px; }
.explore-head { text-align: center; }
.explore-head h1 { margin: 0 0 32px; }
.explore-head p { margin: 0 0 44px; }
.castle-map-wrap { position: relative; max-width: 560px; margin: 0 auto 60px; }
.castle-map { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--teal-light); }
.castle-map.is-zoomed { cursor: grab; touch-action: none; }
.map-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.map-zoom button { width: 38px; height: 38px; border: 0; background: #fff; color: #006e85; cursor: pointer; font-family: "Mulish", sans-serif; font-size: 24px; font-weight: 700; line-height: 1; }
.map-zoom button + button { border-top: 1px solid #d7dde0; }
.map-zoom button:hover:not(:disabled), .map-zoom button:focus-visible { background: #e6f1f4; }
.map-zoom button:disabled { color: #c3ccd0; cursor: default; }
.map-land path { stroke-width: 0.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-country { font-family: "Mulish", sans-serif; font-size: 22px; font-weight: 700; pointer-events: none; text-anchor: middle; }
.pin-body { fill: var(--pin-body); stroke: var(--pin-edge); }
.pin-castle { fill: var(--pin-castle); }

.castle-map { --pin-body: #e8452c; --pin-edge: #fff; --pin-castle: #fff; background: #76d3e8; }
.map-land path { fill: #b6e8d2; stroke: #b6e8d2; }
.map-land .map-border { fill: none; stroke: #2b3438; stroke-width: 0.9; }
.map-country { fill: #111; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
.map-city { pointer-events: none; }
.map-city circle { fill: #222; stroke: #fff; stroke-width: 1; }
.map-city text { fill: #222; font-family: "Mulish", sans-serif; font-size: 14px; font-weight: 500; stroke: #fff; stroke-width: 2.5px; stroke-linejoin: round; paint-order: stroke; }
.map-city-l { text-anchor: end; }
.map-city-r { text-anchor: start; }
.map-country-small { font-size: 14px; }
.map-marker { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.15s ease; }
.map-pin:hover .map-marker, .map-pin:focus-visible .map-marker { transform: scale(1.25); }
.map-hit { fill: transparent; }
.map-pin:focus-visible .map-marker { outline: 2px solid #0c1115; }
.map-label { opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.map-label rect { fill: #006e85; }
.map-label text { fill: #fff; text-anchor: middle; }
.map-name { font-family: "Merriweather", serif; font-size: 16px; }
.map-place { font-family: "Mulish", sans-serif; font-size: 12.5px; }
.map-pin:hover .map-label, .map-pin:focus-visible .map-label { opacity: 1; }
@media (max-width: 640px) {
  .map-country-small { display: none; }
  .castle-map:not(.is-zoomed) .map-city { display: none; }
  .map-city text { font-size: 22px; }
}
.jump-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.jump-menu a, .jump-menu span { min-width: 26px; font-size: 20px; line-height: 34px; text-align: center; }
.jump-menu a { color: var(--teal); font-weight: 700; text-decoration: none; }
.jump-menu a:hover, .jump-menu a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.jump-menu span { color: #c3ccd0; font-weight: 400; }
.letters { padding-top: 90px; scroll-margin-top: 0; }
.letters-head { position: relative; text-align: center; }
.letters-head h2 { margin: 0; line-height: 60px; }
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: #006e85; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover, .to-top:focus-visible { background: var(--teal); }
.castle-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 28px 5px 0; }
.castle-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; color: #fff; text-decoration: none; isolation: isolate; }
.castle-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.castle-tile-cap { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: rgba(0, 110, 133, 0.78); opacity: 0; text-align: center; transition: opacity 0.3s; }
.castle-tile-cap::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 6px; }
.castle-tile-cap strong { font-family: "Merriweather", serif; font-size: 26px; font-weight: 400; letter-spacing: 1px; line-height: 1.3; text-transform: uppercase; }
.castle-tile-cap em { margin-top: 8px; font-family: "Mulish", sans-serif; font-size: 15px; font-style: normal; letter-spacing: 0.5px; }
.castle-tile:hover .castle-tile-cap, .castle-tile:focus-visible .castle-tile-cap { opacity: 1; }
.castle-tile:hover img, .castle-tile:focus-visible img { transform: scale(1.06); }
@media (hover: none) {
  .castle-tile-cap { background: rgba(0, 110, 133, 0.6); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .castle-tile img, .castle-tile-cap { transition: none; }
}
@media (max-width: 1000px) {
  .castle-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .castle-tiles { grid-template-columns: 1fr; }
}

/* Privacy Policy and Terms */

.legal { padding-top: 60px; padding-bottom: 80px; }
.legal h1 { margin: 0; text-align: center; }
.legal-date { margin: 0 0 40px; text-align: center; }
.legal p { margin: 0 0 28px; }

/* Blog posts */

.post-layout { display: grid; grid-template-columns: minmax(0, 682px) 258px; justify-content: center; gap: 60px; padding: 60px 20px 80px; }

.post { color: #000; font-family: "Merriweather", serif; font-size: 16px; font-weight: 400; line-height: 28px; }
.post, .post-body { min-width: 0; overflow-wrap: anywhere; }
.post-category { margin: 0 0 18px; font-family: "Mulish", sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 2px; line-height: 27px; text-transform: uppercase; }
.post-category a { color: var(--teal); text-decoration: none; }
.post h1 { margin: 0 0 28px; color: #000; font-size: 36px; font-weight: 400; line-height: 44.8px; }
.post-intro { margin: 0 0 32px; }
.post-image { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.post-image-credit { margin: 4px 0 0; color: #6a6b6c; font-family: "Mulish", sans-serif; font-size: 10px; line-height: 17.5px; text-align: center; }
.post-date { margin: 26px 0 30px; font-family: "Mulish", sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 2px; line-height: 28px; text-transform: uppercase; }
.post-body h2 { margin: 44px 0 14px; color: #0c1115; font-size: 26px; font-weight: 400; line-height: 1.4; }
.post-body h2.post-opening { font-size: 30px; }
.post-body h3 { margin: 32px 0 12px; color: #0c1115; font-size: 22px; font-weight: 400; line-height: 1.4; }
.post-body p { margin: 0 0 24px; }
.post-body a { color: var(--teal); }
.post-body img { display: block; max-width: 100%; height: auto; margin: 0 auto 24px; }
.post-body img.portrait { max-width: 600px; width: 100%; }
.post-body img.small { max-width: 400px; width: 100%; }
.post-body img.signature { margin: 0 0 24px; }
.post-body .video-still { display: block; }
.post-body .photo-row { display: grid; gap: 14px; margin-bottom: 24px; }
.photo-row-2 { grid-template-columns: repeat(2, 1fr); }
.photo-row-3 { grid-template-columns: repeat(3, 1fr); }
.post-body .photo-row img { width: 100%; height: auto; margin: 0; }
@media (max-width: 600px) {
  .photo-row-2, .photo-row-3 { grid-template-columns: 1fr; }
}
.post-body .center { text-align: center; }
.post-body .caption { margin-top: -20px; color: #6a6b6c; font-family: "Mulish", sans-serif; font-size: 10px; line-height: 17.5px; text-align: center; }
.post-body .caption strong { font-size: 11px; font-weight: 600; }
.post-callout { display: flex; align-items: center; gap: 16px; margin: -8px 0 28px; font-family: "Merriweather", serif; font-size: 16px; font-weight: 700; }
.post-callout img { flex: none; width: 44px; height: 44px; margin: 0; }
.post-callout a { color: var(--teal); text-decoration: none; }
.post-callout a:hover, .post-callout a:focus-visible { text-decoration: underline; }
.post-callout span { font-weight: 400; }
.post-body .post-continue { justify-content: center; margin: 36px 0 0; }
.post-body .post-continue img { width: 22px; height: 22px; margin: 0; }

.post-body .quiz-button-row { margin: 60px 0 40px; text-align: center; }
.post-body .quiz-button { display: inline-flex; align-items: center; gap: 15px; padding: 12px 15px; border-radius: 5px; background: var(--teal); color: #fff; font-family: "Mulish", sans-serif; font-size: 24px; font-weight: 600; line-height: 24px; text-decoration: none; }
.post-body .quiz-button img { margin: 0; }
.post-rule { height: 0; margin: 0 0 20px; border: 0; border-top: 1px solid #d7d7d7; }
.post-rule-end { margin: 60px 0 20px; }
.post-rule-no-sources { margin-bottom: 40px; }
.post-body .sources { margin: 0 0 60px; color: #6a6b6c; font-family: "Mulish", sans-serif; font-size: 14px; font-weight: 300; line-height: 31.5px; }
.post-body .sources strong { font-weight: 600; }

.post-end { font-family: "Mulish", sans-serif; }
.post-end-row { display: flex; flex-direction: column; gap: 42px; }
.post-end-row > div:first-child { text-align: center; }
.share-title { margin: 0 0 8px; color: var(--teal); font-size: 18px; font-weight: 500; line-height: 31.5px; }
.share-links { display: flex; justify-content: center; gap: 10px; }
.share-links a { width: 30px; height: 30px; border-radius: 4px; color: #fff; font-size: 14px; font-weight: 700; line-height: 30px; text-align: center; text-decoration: none; }
.share-facebook { background: #2d4f96; }
.share-x { background: #222; }
.share-linkedin { background: #0a66a8; }
.share-pinterest { background: #bd1c1c; }
.post-nav { display: flex; justify-content: space-between; }
.post-nav a { display: inline-flex; align-items: center; gap: 12px; color: #006e85; font-size: 16px; font-weight: 700; letter-spacing: 1.5px; line-height: 19.2px; text-decoration: none; }
.post-nav a:hover, .post-nav a:focus-visible { text-decoration: underline; }
.nav-prev::before, .nav-next::after { content: ""; flex: none; width: 30px; height: 30px; border: 1.5px solid #006e85; border-radius: 4px; background: center / 16px 16px no-repeat; }
.nav-prev::before { background-image: url("/img/arrow-left.svg"); }
.nav-next::after { background-image: url("/img/arrow-right.svg"); }
.end-rule { height: 0; margin: 30px 0 15px; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.post-tags-label { margin: 0; color: #6a6b6c; font-size: 14px; font-weight: 500; letter-spacing: 1px; line-height: 24.5px; text-transform: uppercase; }
.post-tags { margin: 0; color: #5a6469; font-size: 14px; letter-spacing: 1px; line-height: 24.5px; }
.related-title { margin: 45px 0 20px; color: #0c1115; font-family: "Merriweather", serif; font-size: 20px; font-weight: 400; line-height: 28px; }
.end-rule + .related-title { margin-top: 45px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related a { color: #0c1115; font-family: "Merriweather", serif; font-size: 18px; font-weight: 400; line-height: 25.2px; text-decoration: none; }
.related img { display: block; width: 100%; height: 172px; margin-bottom: 12px; object-fit: cover; }

/* Blog listing, categories and search */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.blog-list h1 { margin: 0 0 32px; color: var(--teal); font-family: "Cinzel Decorative", serif; font-size: 40px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.blog-card { margin-bottom: 24px; border: 1px solid #cfcfcf; background: #fff; }
.blog-card-text { position: relative; margin: -38px 22px 22px; padding: 18px 25px 24px; border: 1px solid #cfcfcf; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); clip-path: inset(0 -30px -30px -30px); }
.blog-card .blog-card-date { margin: 0 0 6px; color: #3d3e40; font-family: "Mulish", sans-serif; font-size: 14px; line-height: 1.4; }
.blog-card-image { display: block; width: 100%; line-height: 0; }
.blog-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 680 / 480; object-fit: cover; }
.blog-card h2 { margin: 0 0 12px; font-family: "Merriweather", serif; font-size: 24px; font-weight: 400; line-height: 1.4; }
.blog-card h2 a { color: var(--teal); text-decoration: none; }
.blog-card .read-more { margin: 0; font-family: "Mulish", sans-serif; font-size: 14px; letter-spacing: 1px; line-height: 17px; }
.blog-card p { margin: 0 0 22px; color: #1f1f1f; font-family: "Merriweather", serif; font-size: 16px; line-height: 28px; }
.pager { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; font-size: 16px; font-weight: 700; }
.pager a, .pager span { min-width: 36px; height: 36px; border: 1.5px solid #006e85; border-radius: 4px; color: #006e85; line-height: 33px; text-align: center; text-decoration: none; }
.pager span { background: #006e85; color: #fff; }
.pager .pager-edge { padding: 0 12px; }
.pager span.pager-off { border-color: #c9d3d7; background: none; color: #8a9499; }
.search-empty { margin: 0; color: #1f1f1f; font-family: "Merriweather", serif; font-size: 18px; line-height: 30px; }

/* Blog sidebar */

.sidebar { align-self: start; padding: 10px; background: #f3f3f3; color: #3d3e40; font-size: 15px; line-height: 1.6; }
.side-box { margin-bottom: 14px; padding: 18px; background: #fff; }
.side-box:last-child { margin-bottom: 0; }
.side-box h2 { position: relative; margin: 0 0 26px; color: var(--teal); font-size: 18px; font-weight: 700; line-height: 25px; }
.side-box h2::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 28px; height: 2px; background: var(--teal); }
.side-search { display: flex; }
.side-search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--teal); border-radius: 0; font: inherit; font-size: 12px; letter-spacing: 1px; }
.side-search button { width: 46px; height: 46px; border: 0; background: var(--teal); cursor: pointer; }
.side-search button img { display: block; margin: 0 auto; }
.side-photo { display: block; width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; }
.side-about p { margin: 0 0 14px; }
.side-about .side-about-title { font-size: 17px; font-weight: 700; }
.side-latest, .side-categories { margin: 0; padding: 0; list-style: none; }
.side-latest li { margin-bottom: 14px; }
.side-latest li:last-child { margin-bottom: 0; }
.side-latest a { display: flex; gap: 12px; align-items: flex-start; color: #3d3e40; font-size: 13px; line-height: 1.5; text-decoration: none; }
.side-latest img { flex: none; width: 56px; height: 56px; object-fit: cover; }
.side-categories li { padding: 5px 0; }
.side-categories a { color: #3d3e40; font-size: 16px; text-decoration: none; }
.side-categories a:hover, .side-latest a:hover span { color: var(--teal); }

@media (max-width: 767px) {
  .home-hero img { height: 420px; object-position: 29% 50%; }
  .home-hero::before { height: 190px; }
  .home-page .site-menu.is-open { width: 100%; border-radius: 6px; background: var(--teal); }
  .post-cards { grid-template-columns: 1fr; padding-top: 30px; }
  .post-card-image img { height: 220px; }
  .about { padding-top: 30px; }
  .image-row { grid-template-columns: 1fr 1fr; }
  .jump-menu { justify-content: center; }
  .home h1, .about h1, .explore h1, .explore h2, .legal h1 { font-size: 30px; }
  .home h1, .about h1, .explore h1, .legal h1 { font-size: 33px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; }
  .post h1 { font-size: 30px; line-height: 38px; }
  .post-body h2 { font-size: 23px; }
  .post-body h2.post-opening { font-size: 26px; }
  .post-body h3 { font-size: 20px; }
  .blog-list h1 { font-size: 33px; }
  .blog-card h2 { font-size: 22px; }
  .blog-card-text { margin: -24px 12px 12px; padding: 16px 18px 20px; }
  .post-body .quiz-button { font-size: 20px; }
  .related { grid-template-columns: 1fr; }
}

/* Quizzes */

.quiz-list { padding-top: 60px; padding-bottom: 150px; text-align: center; }
.quiz-list h1 { margin: 0 0 16px; color: var(--teal); font-family: "Cinzel Decorative", serif; font-size: 40px; font-weight: 400; line-height: 1.4; }
.quiz-list > p { margin: 0 0 16px; font-size: 18px; }
.quiz-tiles { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }

.quiz { max-width: 720px; margin: 0 auto; padding: 50px 20px 130px; }
.quiz-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; transition: aspect-ratio 0.3s ease; }
.quiz.is-playing .quiz-photo, .quiz.is-done .quiz-photo { aspect-ratio: 16 / 7; }
.quiz-banner-top.is-playing .quiz-photo, .quiz-banner-top.is-done .quiz-photo { object-position: 50% 0; }
.quiz-start { text-align: center; }
.quiz-start h1 { margin: 36px 0 14px; color: var(--teal); font-family: "Merriweather", serif; font-size: 34px; font-weight: 400; line-height: 1.35; }
.quiz-start > p { margin: 0 0 28px; color: #1f1f1f; font-family: "Merriweather", serif; font-size: 18px; line-height: 30px; }
.quiz-begin { padding: 16px 44px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; cursor: pointer; font-family: "Mulish", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.quiz-begin:hover, .quiz-begin:focus-visible { background: #006e85; }
.quiz-start .quiz-posts-lead { margin: 48px 0 12px; font-family: "Mulish", sans-serif; font-size: 16px; }
.quiz-posts { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quiz-posts .read-more { font-size: 14px; letter-spacing: 1px; }

.quiz-count { margin: 30px 0 10px; color: #006e85; font-family: "Mulish", sans-serif; font-size: 14px; font-weight: 700; text-align: center; }
.quiz-bar { overflow: hidden; height: 6px; border-radius: 3px; background: #dcecf0; }
.quiz-bar span { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--teal); transition: width 0.25s ease; }
.quiz-play h2 { margin: 32px 0 26px; color: #0c1115; font-family: "Merriweather", serif; font-size: 26px; font-weight: 400; line-height: 1.4; text-align: center; outline: none; }
.quiz-answers { display: grid; gap: 12px; }
.quiz-answers button { padding: 17px 20px; border: 1.5px solid #cfe3e8; border-radius: 10px; background: #f3f9fb; color: #0c1115; cursor: pointer; font-family: "Mulish", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: center; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.quiz-answers button:focus-visible, .quiz-back:focus-visible { outline: 3px solid #0c1115; outline-offset: 2px; }
.quiz-answers button:hover:not(:disabled), .quiz-answers button.is-chosen { border-color: var(--teal); background: var(--teal); color: #fff; }
.quiz-answers button:disabled { cursor: default; }
.quiz-answers.is-arriving { animation: quiz-arrive 0.6s ease both; }
@keyframes quiz-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz-play { position: relative; }
.quiz-back { position: absolute; top: -3px; left: 0; display: inline-flex; align-items: center; gap: 10px; padding: 2px 0; border: 0; background: none; color: #2b2b2b; cursor: pointer; font-family: "Mulish", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.quiz-back[hidden] { display: none; }
.quiz-back::before { content: ""; width: 14px; height: 14px; background: url("/img/chevron-right.svg") center / contain no-repeat; transform: scaleX(-1); }
.quiz-back:disabled { cursor: default; opacity: 0.5; }
.quiz-error { margin: 20px 0 0; color: #b3261e; font-family: "Mulish", sans-serif; text-align: center; }

.quiz-card { margin-top: 64px; color: #2b2b2b; font-family: "Mulish", sans-serif; font-size: 17px; text-align: center; }
.quiz-sparks { position: fixed; top: 0; left: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }
.quiz-card p { margin: 0 0 8px; color: #2b2b2b; }
.quiz-card .quiz-card-title { outline: none; margin-bottom: 18px; color: var(--teal); font-family: "Cinzel Decorative", serif; font-size: 44px; line-height: 1.25; }
.quiz-card .quiz-card-score { margin-bottom: 26px; color: #006e85; font-family: "Merriweather", serif; font-size: 40px; line-height: 1.3; }
.quiz-card .read-more { color: #2b2b2b; font-size: 16px; letter-spacing: 1px; }
.quiz-divider { height: 0; margin: 70px 0 60px; border: 0; border-top: 1px solid #d7d7d7; }
.quiz-review { margin: 0; padding: 0 0 0 24px; font-family: "Merriweather", serif; }
.quiz-review li { margin-bottom: 22px; padding-left: 6px; color: #2b2b2b; }
.quiz-review p { margin: 0; color: #2b2b2b; font-size: 16px; line-height: 27px; }
.quiz-review .quiz-right { color: #006e85; font-family: "Mulish", sans-serif; font-weight: 700; }
.quiz-review .quiz-got-right, .quiz-review .quiz-got-wrong { font-family: "Mulish", sans-serif; font-weight: 700; }
.quiz-review .quiz-got-right { color: #006e85; }
.quiz-review .quiz-got-right::after { content: " \2713"; }
.quiz-review .quiz-got-wrong { color: #c0392b; }
.quiz-review .quiz-got-wrong::after { content: " \2717"; }

@media (max-width: 640px) {
  .quiz { padding-top: 24px; padding-bottom: 90px; }
  .quiz-start h1 { font-size: 27px; }
  .quiz-play h2 { font-size: 22px; }
  .quiz-card .quiz-card-title { font-size: 32px; }
  .quiz-tiles { grid-template-columns: 1fr; }
  .quiz-list h1 { font-size: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-photo, .quiz-bar span, .quiz-answers button { transition: none; }
  .quiz-answers.is-arriving { animation: none; }
}

/* Private quiz numbers */

.numbers { max-width: 860px; margin: 0 auto; padding: 50px 20px 90px; color: #2b2b2b; font-family: "Mulish", sans-serif; }
.numbers h1 { margin: 0 0 24px; color: var(--teal); font-family: "Merriweather", serif; font-size: 34px; font-weight: 400; }
.numbers-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.numbers-controls form { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.numbers-controls select { padding: 9px 12px; border: 1.5px solid #cfe3e8; border-radius: 8px; background: #fff; color: #2b2b2b; font: inherit; font-weight: 600; }
.numbers-go { padding: 9px 14px; border: 0; border-radius: 8px; background: #006e85; color: #fff; cursor: pointer; font: inherit; }
.numbers-go[hidden] { display: none; }
.numbers-tabs { display: flex; overflow: hidden; border: 1.5px solid #006e85; border-radius: 8px; font-size: 15px; font-weight: 700; }
.numbers-tabs a, .numbers-tabs span { padding: 8px 18px; color: #006e85; text-decoration: none; }
.numbers-tabs span { background: #006e85; color: #fff; }
.numbers-note { color: #c0392b; }
.numbers-panel { margin-bottom: 20px; padding: 26px 26px 20px; border: 1px solid #e2e8ea; border-radius: 10px; background: #fff; }
.numbers-panel h2 { margin: 0; font-family: "Merriweather", serif; font-size: 22px; font-weight: 400; }
.numbers-for { margin: 0; font-size: 15px; font-weight: 700; }
.numbers-big { margin: 2px 0 0; color: #006e85; font-family: "Merriweather", serif; font-size: 52px; line-height: 1.2; }
.numbers-caption { margin: 0 0 18px; color: #5a6469; font-size: 14px; }
.chart { display: block; width: 100%; height: auto; }
.chart-grid { stroke: #e9eef0; stroke-width: 1; }
.chart-base { stroke: #b9c6cb; }
.chart-axis { fill: #5a6469; font-family: "Mulish", sans-serif; font-size: 12px; }
.chart-hit { fill: transparent; }
.chart-bar { fill: var(--teal); transition: fill 0.12s; }
.chart-value { fill: #2b2b2b; font-family: "Mulish", sans-serif; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; }
.chart-col { outline: none; }
.chart-col.is-shown .chart-value, .chart-col:hover .chart-value, .chart-col:focus-visible .chart-value { opacity: 1; }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { fill: #006e85; }
.numbers-rank { margin: 0; padding: 0; list-style: none; }
.numbers-rank a { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr 56px; align-items: center; gap: 14px; padding: 11px 8px; border-radius: 6px; color: #2b2b2b; text-decoration: none; }
.numbers-rank a:hover, .numbers-rank a:focus-visible, .numbers-rank .is-selected a { background: #eef6f8; }
.rank-name { font-size: 15px; font-weight: 600; }
.rank-bar { display: block; width: 100%; height: 8px; border-radius: 4px; background: #eef2f4; }
.rank-bar rect { fill: var(--teal); }
.rank-value { font-size: 16px; font-weight: 700; text-align: right; }
.numbers-detail { padding: 4px 8px; font-size: 15px; }
.numbers-detail summary { cursor: pointer; color: #006e85; font-weight: 700; }
.numbers-detail table { width: 100%; max-width: 420px; margin-top: 12px; border-collapse: collapse; }
.numbers-detail th, .numbers-detail td { padding: 8px 4px; border-bottom: 1px solid #e2e8ea; font-weight: 500; }
.numbers-detail th { text-align: left; }
.numbers-detail td { text-align: right; font-weight: 700; }
@media (max-width: 640px) {
  .numbers { padding-top: 28px; }
  .numbers-panel { padding: 20px 14px 14px; }
  .numbers-rank a { grid-template-columns: 1fr 44px; }
  .rank-bar { grid-column: 1 / -1; grid-row: 2; }
  .chart-axis { font-size: 16px; }
  .chart-col:nth-child(even) .chart-axis { display: none; }
}

/* Contact */

.contact { padding-top: 60px; padding-bottom: 130px; }
.contact h1 { margin: 0 0 24px; color: var(--teal); font-family: "Cinzel Decorative", serif; font-size: 40px; font-weight: 400; line-height: 1.4; }
.contact-intro { margin: 0 0 40px; color: #1f1f1f; font-size: 17px; line-height: 28px; }
.contact-form { max-width: 480px; margin: 0 auto; font-family: "Mulish", sans-serif; }
.contact-field { margin-bottom: 14px; }
.contact-field input, .contact-field textarea { display: block; width: 100%; padding: 14px 16px; border: 1.5px solid #cfe3e8; border-radius: 10px; background: #f3f9fb; color: #0c1115; font: inherit; font-size: 16px; }
.contact-field textarea { resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 1px; }
.contact-field ::placeholder { color: #5a6469; }
.contact-count { margin: 4px 2px 0; color: #5a6469; font-size: 13px; text-align: right; }
.contact-error { margin: 4px 2px 0; color: #c0392b; font-size: 14px; font-weight: 600; }
.contact-error:empty { display: none; }
.contact-field [aria-invalid="true"] { border-color: #c0392b; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-send { display: block; width: 100%; max-width: 240px; margin: 8px auto 16px; padding: 15px 20px; border: 0; border-radius: 8px; background: var(--teal); color: #fff; cursor: pointer; font-family: "Mulish", sans-serif; font-size: 16px; font-weight: 700; }
.contact-send:hover, .contact-send:focus-visible { background: #006e85; }
.contact-send:disabled { cursor: default; opacity: 0.6; }
.cf-turnstile { display: flex; justify-content: center; }
/* Pop-up message after sending: green when sent, red otherwise. Closes by itself. */
.toast { position: fixed; top: 50px; left: 50%; transform: translateX(-50%); width: 60%; max-width: 500px; display: flex; background: #fff; color: #000; box-shadow: 0 0 15px #a7a7a7; z-index: 1000; transition: opacity .3s ease, visibility .3s ease; }
.toast[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
.toast-icon { flex: 0 0 50px; display: flex; align-items: center; justify-content: center; background: green; color: #fff; }
.toast.is-bad .toast-icon { background: red; }
.toast-icon svg { width: 22px; height: 22px; }
.toast .icon-err, .toast.is-bad .icon-ok { display: none; }
.toast.is-bad .icon-err { display: block; }
.toast-message { margin: auto 0; padding: 20px 10px 20px 20px; font-family: "Mulish", sans-serif; font-size: 16px; line-height: 1.4; }
@media (max-width: 640px) {
  .contact h1 { font-size: 33px; }
  .toast { width: calc(100% - 32px); top: 16px; }
}

/* Sign-in page in front of the private numbers page (/quiz-analytics/): JornEvent's layout and text, in the site's teal. */
body.welcome-page { min-height: 100vh; margin: 0; padding: 16px; display: flex; align-items: center; justify-content: center; background: #f6fafb; color: #1f1f1f; font-family: "Mulish", sans-serif; }
.welcome-wrap { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.welcome-logo { display: block; width: 100%; max-width: 190px; height: auto; }
.welcome-greeting { margin: 20px 0 32px; color: #1f1f1f; font-size: 30px; font-weight: 700; line-height: 1.2; }
.welcome-card { width: 100%; padding: 40px 32px 32px; display: flex; flex-direction: column; align-items: center; gap: 28px; background: #fff; border: 1px solid #dbe9ec; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 40, 50, 0.06); }
.welcome-card h1 { margin: 0; color: #1f1f1f; font-family: "Mulish", sans-serif; font-size: 26px; font-weight: 700; line-height: 1.2; }
.welcome-signin { display: inline-block; min-width: 180px; padding: 13px 32px; background: var(--teal); color: #fff; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.welcome-signin:hover { background: #006e85; }
.welcome-signin:focus-visible { outline: 3px solid #006e85; outline-offset: 3px; }
.welcome-org { margin: 8px 0 0; color: #8a9499; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.numbers-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.numbers-top h1 { margin: 0; }
.numbers-signout { color: var(--teal); font-size: 15px; font-weight: 600; text-decoration: none; }
.numbers-signout:hover, .numbers-signout:focus-visible { color: #006e85; text-decoration: underline; }

