/* ==========================================================================
   Victor Harbour Whale Sighting — base styles & shared primitives
   Requires tokens.css. Component-specific styles live in css/components/.
   ========================================================================== */

/* --- Reset-lite ---
   WordPress port: every component's markup is wrapped in a `.vhws` embed
   container, and the base/element rules below are scoped to it so they never
   leak into the surrounding theme (header/footer/other page content). The
   `.vh-*` class primitives further down are already namespaced and stay global. */
.vhws,
.vhws *,
.vhws *::before,
.vhws *::after {
  box-sizing: border-box;
}

.vhws {
  background: var(--vh-bone);
  color: var(--vh-black);
  font-family: var(--vh-font-body);
  font-size: var(--vh-text-body);
  line-height: var(--vh-leading-body);
  -webkit-font-smoothing: antialiased;
}

/* Element resets use :where() so they carry zero class-specificity — i.e. the
   SAME (0,0,1) weight the scaffold's bare `button {}` / `a {}` / `h1 {}` rules
   had. This keeps them scoped to the .vhws subtree (no theme leak) while making
   sure every `.vh-*` component rule (0,1,0) still wins, exactly as in the
   scaffold. (Without :where(), `.vhws button` = (0,1,1) would beat
   `.vh-select__btn`/`.vh-btn` and force the body font onto component buttons.) */
:where(.vhws) img,
:where(.vhws) svg {
  display: block;
  max-width: 100%;
}

:where(.vhws) h1,
:where(.vhws) h2,
:where(.vhws) h3,
:where(.vhws) h4 {
  margin: 0;
  font-family: var(--vh-font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

:where(.vhws) p {
  margin: 0;
}

:where(.vhws) a {
  color: inherit;
}

:where(.vhws) button {
  font: inherit;
  color: inherit;
}

:where(.vhws) :focus-visible {
  outline: 2px solid var(--vh-black);
  outline-offset: 2px;
}

/* --- Layout --- */
.vh-container {
  width: 100%;
  max-width: calc(var(--vh-container) + 2 * var(--vh-gutter));
  margin-inline: auto;
  padding-inline: var(--vh-gutter);
}

@media (min-width: 1024px) {
  .vh-container {
    max-width: calc(var(--vh-container) + 160px);
    /*padding-inline: 80px;*/
  }
}

/* --- Button (black, 2px radius, Josefin bold uppercase) --- */
.vh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--vh-radius);
  background: var(--vh-black);
  color: var(--vh-white);
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: var(--vh-text-btn);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

/* Hover not designed in Figma — extrapolated (see DECISIONS.md) */
.vh-btn:hover {
  background: #262626;
}

.vh-btn img {
  flex: 0 0 auto;
}

/* Theme guard: the host theme styles content links/buttons (often a dark link
   colour), which otherwise wins over `.vh-btn` and renders the white label as
   black-on-black. Re-assert the button's own colours with wrapper + element
   specificity so components look right inside any theme's content area. */
.vhws a.vh-btn,
.vhws a.vh-btn:link,
.vhws a.vh-btn:visited,
.vhws a.vh-btn:hover,
.vhws a.vh-btn:focus,
.vhws button.vh-btn {
  color: var(--vh-white);
  text-decoration: none;
}

.vhws a.vh-btn:hover,
.vhws button.vh-btn:hover {
  background: #262626;
}

.vhws .vh-badge {
  color: var(--vh-white);
}

/* Theme guard #2: the host theme ships a global
   `button:hover, input[type=submit]:hover, .elementor-button:hover { background:#000; border-color:#000; color:#fff }`
   which bleeds an unexpected BLACK hover onto component <button>s that have no
   designed hover fill. Re-assert each one's resting appearance so the widgets
   match the scaffold. (`.vh-btn` buttons are already covered above.) */

/* Field-style buttons keep their grey fill + stroke */
.vhws .vh-select__btn:hover,
.vhws .vh-dropdown__toggle:hover {
  background-color: var(--vh-gray-10);
  border-color: #69727D;
  color: #21272A;
}

/* Chromeless buttons keep a transparent background + their own colour */
.vhws .vh-carousel__nav:hover,
.vhws .vh-log__page:hover,
.vhws .vh-log__next:hover,
.vhws .vh-log-entry__zoom:hover,
.vhws .vh-log-filters__clear:hover,
.vhws .vh-upload__remove:hover,
.vhws .vh-modal__x:hover,
.vhws .vh-modal__nav:hover {
  background: none;
  border-color: transparent;
  color: var(--vh-black);
}

/* Carousel dots keep their palette (active stays black) */
.vhws .vh-carousel__dot:hover {
  background: #A8A7A4;
  border-color: transparent;
}

.vhws .vh-carousel__dot.is-active:hover {
  background: var(--vh-black);
}

/* --- Verified badge --- */
.vh-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--vh-radius);
  background: var(--vh-black);
  color: var(--vh-white);
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: var(--vh-text-btn);
  line-height: 1;
  text-transform: uppercase;
}

.vh-badge img {
  width: 14px;
  height: 12px;
}

/* --- Sighting meta rows (icon + Lora text) --- */
.vh-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vh-meta li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* A display rule beats the browser's [hidden] rule, so restore it (e.g. the
   log modal's count row for sightings without a count). */
.vh-meta li[hidden] {
  display: none;
}

.vh-meta img {
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

/* --- Live updates label --- */
.vh-live {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--vh-font-display);
  font-weight: 700;
  font-size: var(--vh-text-btn);
  line-height: 1;
  text-transform: uppercase;
}

.vh-live::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vh-live);
}

/* --- Theme-provided chrome placeholders (WordPress supplies these) --- */
.vh-theme-placeholder {
  position: relative;
}

.vh-theme-placeholder img {
  width: 100%;
  height: auto;
}

/* --- Utilities --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


.page-id-21092 .wrapper {
  padding: 0;
  width: 100%;
}

.page-id-21092 .site-main {
  padding: 0
}