/* ==========================================================================
   WORDPRESS — the few rules the WordPress build needs on top of the design.

   global.css, components.css and pages.css are byte-for-byte copies of the
   React stylesheets. Anything WordPress-specific lives here instead, so those
   three files can be compared with, and re-synced from, the React project.
   ========================================================================== */

/*
 * Menus, FAQ answers and form messages are shown and hidden with the `hidden`
 * attribute. Several of those elements declare their own display (flex,
 * grid), which would otherwise beat the browser's built-in [hidden] rule.
 */
[hidden] {
  display: none !important;
}

/* WordPress core's own visually-hidden class, used in core markup. */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------ logged-in admin toolbar offset */
.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

/* Below 601px the toolbar scrolls away with the page rather than staying put. */
@media screen and (max-width: 600px) {
  .admin-bar .navbar {
    top: 0;
  }
}

@media (min-width: 1020px) {
  .admin-bar .detail-aside {
    top: calc(var(--nav-h) + 52px);
  }
}

/* ------------------------------------------------------- blog pagination */
.pagination {
  margin-top: clamp(28px, 3vw, 40px);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.pagination a.page-numbers:hover {
  border-color: var(--color-navy);
  color: var(--color-primary);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ------------------------------------------ entry bodies from the editor */
/*
 * Route, wedding car, tour package and tempo traveller bodies are written as
 * HTML in the editor. Sections wrapped in the theme's own classes (.prose,
 * .content-block, .info-list …) style themselves; these rules are only for
 * loose blocks typed straight into the editor, so a plain paragraph, heading
 * or list still reads like the rest of the site. Only elements are matched,
 * never the wrapper divs, so .content-block keeps its own spacing.
 */
.entry-body > p,
.entry-body > ul,
.entry-body > ol,
.entry-body > blockquote,
.entry-body > figure {
  max-width: 74ch;
}

.entry-body > * + p,
.entry-body > * + ul,
.entry-body > * + ol,
.entry-body > * + blockquote,
.entry-body > * + figure,
.entry-body > * + .wp-block-table {
  margin-top: 1.05rem;
}

.entry-body > p,
.entry-body > ul li,
.entry-body > ol li {
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.78;
}

.entry-body > h2,
.entry-body > h3 {
  color: var(--color-navy);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.entry-body > * + h2 {
  margin-top: 2.5rem;
}

.entry-body > * + h3 {
  margin-top: 1.85rem;
}

.entry-body > ul:not([class]) {
  display: grid;
  gap: 11px;
  padding-left: 0;
}

.entry-body > ul:not([class]) li {
  position: relative;
  padding-left: 27px;
}

.entry-body > ul:not([class]) li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-gold);
}

.entry-body > ol {
  display: grid;
  gap: 11px;
  padding-left: 22px;
  list-style: decimal;
}

.entry-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.entry-body img {
  height: auto;
  border-radius: var(--radius-card);
}

/* -------------------------------------- block-editor content inside .prose */
/* Blog articles are edited in the block editor; these keep its output on-brand. */
.prose figure,
.prose .wp-block-image {
  margin-block: 1.7rem;
}

.prose img {
  height: auto;
  border-radius: var(--radius-card);
}

.prose figcaption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--color-muted);
  text-align: center;
}

.prose .aligncenter {
  margin-inline: auto;
}

.prose .alignleft {
  float: left;
  max-width: 50%;
  margin: 0.3rem 1.4rem 1rem 0;
}

.prose .alignright {
  float: right;
  max-width: 50%;
  margin: 0.3rem 0 1rem 1.4rem;
}

.prose h4 {
  margin-top: 1.6rem;
  color: var(--color-navy);
}

.prose blockquote p + p {
  margin-top: 0.8rem;
}

.prose hr,
.prose .wp-block-separator {
  height: 1px;
  border: 0;
  background: var(--color-border);
  margin-block: 2rem;
}

.prose .wp-block-table {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  /* Long place names (Mahakaleshwar, Chittorgarh) would otherwise set the
     table's min-content width and push it past a 320 px screen. */
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .prose th,
  .prose td {
    padding: 8px 8px;
  }
}

.prose th {
  background: var(--color-off-white);
  color: var(--color-navy);
}

/* -------------------------------------------------------- clickable cards */
/*
 * A click anywhere on a .card--link card opens it, not just on the title: the
 * title link's ::after is stretched over the whole card. It stays one real
 * link per card, so keyboard and screen-reader users still meet a single,
 * well-named link. "Read article" sits above the overlay so its own hover works.
 */
.card--link {
  position: relative;
}

.card--link .card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

.card--link .card__link {
  position: relative;
  z-index: 4;
}

/* The homepage banner is wrapped in <picture> for its WebP and phone sizes. */
.hero__banner-wrap picture {
  display: block;
}

/*
 * The brand teal (#087F8C) measured 4.49:1 as text on the off-white sections,
 * just under the 4.5:1 WCAG AA minimum. One shade darker (5.3:1) passes on
 * every light background without changing the look; buttons and icons follow.
 */
:root {
  --color-primary: #076f7a;
}

.eyebrow {
  color: var(--color-primary);
}

.section--navy .eyebrow {
  color: var(--color-gold);
}

/* About -> Business details (16 Nov 2026): when one card in a row is taller
   (the long address), the grid stretched its neighbour's rows and pushed the
   value away from its label. Keep label and value together at the top. */
.about-fact {
  align-content: start;
}