/* =====================================================================
   Shared site chrome: header, menu, search, newsletter, footer.
   Used by the home page and, through the new header/footer, by every other page.
   Everything is scoped to .rv-home (home page) or .rv-chrome (header/footer wrapper
   on pages that still load style.css), so it does not change the old page content.
   Desktop layout from 1024px wide, phone and tablet layout below that.
   ===================================================================== */

.rv-home, .rv-chrome {
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
  background: #FFFFFF;
  color: #000000;
  font: 400 15px/20px var(--sans);
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* on old pages the wrapper adds no box of its own, so the sticky header can follow the whole page */
.rv-chrome { display: contents; }
.rv-home *, .rv-home *::before, .rv-home *::after,
.rv-chrome *, .rv-chrome *::before, .rv-chrome *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
/* Newsreader at its 36pt optical size everywhere, as in the designs (the font shorthand would otherwise reset this) */
.rv-home, .rv-home *, .rv-chrome, .rv-chrome * { font-optical-sizing: none; font-variation-settings: 'opsz' 36 !important; }
:where(.rv-home, .rv-chrome) :is(h1, h2, h3, p, li, label) { font: inherit; letter-spacing: inherit; color: inherit; text-transform: none; text-wrap: wrap; }
:where(.rv-home, .rv-chrome) a { color: inherit; text-decoration: none; }
:where(.rv-home, .rv-chrome) :focus:not(:focus-visible) { outline: none; }
:where(.rv-home, .rv-chrome) :is(ul, ol) { list-style: none; }
:where(.rv-home, .rv-chrome) :is(img, svg) { display: block; max-width: none; }
:where(.rv-home, .rv-chrome) img { width: 100%; height: auto; object-fit: cover; }
:where(.rv-home, .rv-chrome) :is(button, input) { font: inherit; color: inherit; }
.rv-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: #000000; color: #FFFFFF; }
.rv-skip:focus { top: 16px; }
.rv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.rv-newsletter__title { font: 400 40px/44px var(--serif); letter-spacing: -0.4px; }
.rv-sf { font: 400 18px/28px var(--serif); letter-spacing: 0; color: #2E2E2E; }
.rv-label { font: 600 13px/18px var(--sans); letter-spacing: 0; }
.rv-meta { font: 400 13px/18px var(--sans); letter-spacing: 0; color: #5C5C5C; }
.rv-nav, .rv-footer__nav ul { font: 400 15px/20px var(--sans); letter-spacing: 0; }
.rv-link { font: 600 15px/20px var(--sans); letter-spacing: 0; }
.rv-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (hover: hover) {
  .rv-link:hover { color: #5C5C5C; }
  .rv-dark .rv-link:hover, .rv-charcoal .rv-link:hover { color: #C9C9C9; }
  .rv-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .rv-form button:hover { background: #C9C9C9; }
}

/* Colour themes */
.rv-dark { background: #000000; color: #FFFFFF; }
.rv-dark .rv-sf { color: #C9C9C9; }
.rv-dark .rv-meta { color: #9E9E9E; }

/* ---------- Layout ---------- */
.rv-wrap { width: min(1264px, 100% - 96px); margin-left: auto; margin-right: auto; }
.rv-newsletter__title + .rv-sf { margin-top: 16px; }

/* ---------- Header ---------- */
.rv-header { padding: 32px 0 24px; border-bottom: 1px solid #E3E3E0; background: #FFFFFF; }
.rv-menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rv-header__bar { position: relative; display: flex; justify-content: center; align-items: center; }
.rv-header__logo img { width: 240px; height: auto; }
.rv-header__menu { display: none; }
.rv-icon-close { display: none; }
.rv-header__search { position: absolute; right: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; }
.rv-nav__list { display: flex; justify-content: center; gap: 40px; margin-top: 24px; }
.rv-nav__item { position: relative; display: flex; align-items: center; }
.rv-nav a { display: inline-flex; align-items: center; white-space: nowrap; }
/* the main menu words: bold, a little larger than the lists under them */
.rv-nav__list > .rv-nav__item > .rv-nav__link { font-weight: 600; }
@media (min-width: 1024px) { .rv-nav__list > .rv-nav__item > .rv-nav__link { font-size: 17px; line-height: 24px; } .rv-nav__list { gap: 44px; } }

/* ---------- Menu sections: News, Features and Reference open a list ---------- */
/* the header sits above the hero so the lists can open over it */
.rv-header { position: relative; z-index: 20; }
/* the arrow is its own button, 8px after the word, with a slightly larger hit area */
.rv-nav__toggle { display: flex; align-items: center; justify-content: center; width: 26px; height: 32px; margin: -6px -8px -6px 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.rv-nav__toggle:focus-visible { outline: 2px solid #000000; outline-offset: -4px; }
.rv-nav__chev { display: block; transition: transform 0.2s ease; }
.rv-nav__item.is-open .rv-nav__chev { transform: rotate(180deg); }
/* the list hangs from the header's bottom line, its words lined up with the menu word above */
.rv-nav__sub { position: absolute; top: calc(100% + 24px); left: -25px; z-index: 30; min-width: 224px; padding: 16px 0; background: #FFFFFF; border: 1px solid #E3E3E0; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s; }
/* an invisible bridge over the gap, so the pointer can travel from the word down to the list */
.rv-nav__sub::before { content: ''; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 25px; }
.rv-nav__item.is-open > .rv-nav__sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.rv-nav__sub a { display: block; padding: 8px 24px; }
@media (min-width: 1024px) {
  .rv-nav__item.is-open > .rv-nav__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
@media (hover: hover) and (min-width: 1024px) {
  .rv-nav__item--menu:hover > .rv-nav__sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .rv-nav__item--menu:hover .rv-nav__chev { transform: rotate(180deg); }
  .rv-nav__item--menu:hover > .rv-nav__link, .rv-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
  /* Escape hides a list even while the pointer is still over it */
  .rv-nav__item--menu.is-hushed > .rv-nav__sub { visibility: hidden; opacity: 0; }
  .rv-nav__item--menu.is-hushed .rv-nav__chev { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rv-nav__sub, .rv-nav__chev { transition: none; } }

/* ---------- Newsletter + footer ---------- */
.rv-footer { padding: 120px 0 48px; }
.rv-newsletter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
.rv-form label { display: block; }
.rv-form__row { display: flex; gap: 16px; align-items: flex-end; margin-top: 8px; }
.rv-form input { flex: 1 1 auto; min-width: 0; width: 100%; height: 48px; padding: 0; border: 0; border-bottom: 1px solid #FFFFFF; border-radius: 0; background: transparent; color: #FFFFFF; font: 400 15px/20px var(--sans); box-shadow: none; -webkit-appearance: none; appearance: none; }
.rv-form input::placeholder { color: #9E9E9E; opacity: 1; }
.rv-form button { flex: 0 0 auto; height: 48px; padding: 0 32px; border: 0; border-radius: 0; background: #FFFFFF; color: #000000; font: 600 15px/20px var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: none; }
.rv-footer__cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; margin-top: 48px; padding-top: 48px; border-top: 1px solid #333333; }
.rv-footer__brand { grid-column: span 4; }
.rv-footer__shop { grid-column: span 2; }
.rv-footer__support { grid-column: span 3; }
.rv-footer__legal { grid-column: span 3; }
.rv-footer__brand > a { display: block; width: fit-content; }
.rv-footer__brand img { width: 184px; height: auto; }
.rv-footer__brand .rv-meta { margin-top: 16px; }
.rv-social { display: flex; gap: 24px; margin-top: 24px; }
.rv-footer__nav .rv-label { color: #9E9E9E; }
.rv-footer__nav ul { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.rv-footer__nav ul + .rv-label { margin-top: 48px; }
.rv-footer__copy { margin-top: 48px; }

/* ---------- Search: the icon is a button that opens a panel under the header ---------- */
button.rv-header__search { background: none; cursor: pointer; color: inherit; }
.rv-search { display: none; border-top: 1px solid #E3E3E0; border-bottom: 1px solid #E3E3E0; background: #FFFFFF; }
.rv-search.is-open { display: block; animation: rv-search-in .18s ease-out; }
@keyframes rv-search-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rv-search.is-open { animation: none; } }
.rv-search form { display: flex; gap: 12px; align-items: stretch; padding: 28px 0 32px; margin: 0; }
.rv-search__field { position: relative; flex: 1 1 auto; min-width: 0; display: block; color: #6B6B66; }
.rv-search__field svg { position: absolute; left: 18px; top: 50%; margin-top: -10px; pointer-events: none; }
.rv-search .rv-search__field input[type="search"] { display: block; width: 100%; height: 56px; margin: 0; padding: 0 20px 0 52px; border: 1px solid #D4D4D0; border-radius: 0; background: #FFFFFF; box-shadow: none; outline: none; color: #000000; font: 400 18px/24px var(--sans); -webkit-appearance: none; appearance: none; transition: border-color .15s; }
.rv-search .rv-search__field input[type="search"]::placeholder { color: #8A8A85; opacity: 1; }
.rv-search .rv-search__field input[type="search"]:hover { border-color: #8A8A85; }
.rv-search .rv-search__field input[type="search"]:focus, .rv-search .rv-search__field input[type="search"]:focus-visible { border-color: #000000; box-shadow: none; outline: none; }
.rv-search .rv-search__field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.rv-search button { flex: 0 0 auto; height: 56px; padding: 0 36px; border: 0; border-radius: 0; background: #000000; color: #FFFFFF; font: 600 15px/20px var(--sans); cursor: pointer; transition: background .15s; }
.rv-search button:hover { background: #333333; }
@media (max-width: 640px) { .rv-search form { gap: 8px; padding: 20px 0 24px; } .rv-search button { padding: 0 22px; } .rv-search .rv-search__field input[type="search"] { padding-left: 46px; font-size: 16px; } .rv-search__field svg { left: 14px; } }
.rv-search button:focus-visible { outline: 2px solid #000000; outline-offset: 2px; }
/* newsletter confirmation */
.rv-form__msg { margin-top: 16px; color: #C9C9C9; }

/* =====================================================================
   Phone and tablet (below 1024px)
   ===================================================================== */
@media (max-width: 1023.98px) {
  .rv-wrap { width: min(100% - 40px, 640px); }
  .rv-newsletter__title { font: 400 28px/32px var(--serif); letter-spacing: -0.28px; }
  .rv-sf { font-size: 16px; line-height: 24px; }
  .rv-label, .rv-meta { font-size: 12px; line-height: 16px; }
  .rv-newsletter__title + .rv-sf { margin-top: 8px; }

  /* header: logo, menu button and search only; the menu opens below */
  .rv-header { padding: 0; }
  .rv-header__bar { width: auto; padding: 12px 8px; justify-content: space-between; }
  .rv-header__icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
  .rv-header__search { position: static; margin: 0; }
  .rv-header__logo img { width: 152px; }
  .rv-menu-toggle:checked ~ .rv-header__bar .rv-icon-open { display: none; }
  .rv-menu-toggle:checked ~ .rv-header__bar .rv-icon-close { display: block; }
  .rv-menu-toggle:focus-visible ~ .rv-header__bar .rv-header__menu { outline: 2px solid #000000; outline-offset: -4px; }
  .rv-nav { display: none; border-top: 1px solid #E3E3E0; }
  .rv-menu-toggle:checked ~ .rv-nav { display: block; }
  .rv-nav__list { display: block; width: min(100% - 40px, 640px); margin: 0 auto; padding: 8px 0; }
  .rv-nav__list > li + li { border-top: 1px solid #E3E3E0; }
  .rv-nav__item { flex-wrap: wrap; }
  .rv-nav__link { flex: 1 1 auto; }
  .rv-nav a { display: flex; padding: 14px 0; font: 400 17px/24px var(--sans); }
  /* the arrow (right-aligned with the search icon) opens the sections inside the menu */
  .rv-nav__toggle { width: 44px; height: 44px; margin: 0 -17px 0 0; }
  .rv-nav__sub { position: static; flex: 0 0 100%; display: none; min-width: 0; padding: 0 0 12px 16px; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .rv-nav__sub::before { display: none; }
  .rv-nav__item.is-open > .rv-nav__sub { display: block; }
  .rv-nav__sub a { padding: 8px 0; font: 400 15px/20px var(--sans); }
  /* tap and hover: the row tints edge to edge. The tint is a layer behind the row that also covers the
     divider lines above and below it (they fade out), so no line cuts through it. */
  .rv-nav__toggle { height: 52px; }
  .rv-nav a:hover, .rv-nav a:focus, .rv-nav a:active { text-decoration: none; }
  .rv-nav__item::before { content: ''; position: absolute; z-index: -1; left: -20px; right: -20px; top: 0; height: 53px; background: transparent; pointer-events: none; transition: background-color 0.15s ease; }
  .rv-nav__list > li + li::before { top: -1px; height: 54px; }
  .rv-nav__list > li { transition: border-color 0.15s ease; }
  .rv-nav__list > li:has(> .rv-nav__link:hover, > .rv-nav__toggle:hover, > .rv-nav__link:focus-visible, > .rv-nav__toggle:focus-visible) { border-top-color: transparent; }
  .rv-nav__list > li:has(> .rv-nav__link:hover, > .rv-nav__toggle:hover, > .rv-nav__link:focus-visible, > .rv-nav__toggle:focus-visible) + li { border-top-color: transparent; }
  .rv-nav__list > li:has(> .rv-nav__link:hover, > .rv-nav__toggle:hover, > .rv-nav__link:focus-visible, > .rv-nav__toggle:focus-visible)::before { background: #F1F1EF; }
  .rv-nav__list > li:has(> .rv-nav__link:active, > .rv-nav__toggle:active)::before { background: #E3E3E0; }
  .rv-nav__sub a { transition: background-color 0.15s ease, box-shadow 0.15s ease; }
  .rv-nav__sub a:hover, .rv-nav__sub a:focus-visible { background: #F1F1EF; box-shadow: -36px 0 0 #F1F1EF, 20px 0 0 #F1F1EF; }
  .rv-nav__sub a:active { background: #E3E3E0; box-shadow: -36px 0 0 #E3E3E0, 20px 0 0 #E3E3E0; }

  /* newsletter + footer */
  .rv-footer { padding: 48px 0 32px; }
  .rv-newsletter { display: block; padding-top: 48px; border-top: 1px solid #333333; }
  .rv-form { margin-top: 24px; }
  .rv-form__row { display: block; }
  .rv-form input { font-size: 16px; }
  .rv-form button { display: block; width: 100%; margin-top: 16px; }
  .rv-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "brand brand" "shop support" "legal legal"; column-gap: 16px; margin-top: 48px; padding-top: 32px; }
  .rv-footer__brand { grid-area: brand; }
  .rv-footer__shop { grid-area: shop; margin-top: 32px; }
  .rv-footer__support { grid-area: support; margin-top: 32px; }
  .rv-footer__legal { grid-area: legal; margin-top: 32px; }
  .rv-footer__brand img { width: 152px; }
  .rv-footer__brand .rv-meta { margin-top: 12px; }
  .rv-social { margin-top: 16px; }
  .rv-footer__nav ul { gap: 12px; margin-top: 12px; }
  .rv-footer__nav ul + .rv-label { margin-top: 32px; }
  .rv-footer__copy { margin-top: 16px; }

  /* the header stays with the page and slides away while scrolling down (assets/site/chrome.js) */
  .rv-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); transition: transform 0.25s ease; }
  .rv-header.is-hidden { transform: translateY(-100%); }
}
@media (max-width: 1023.98px) and (prefers-reduced-motion: reduce) { .rv-header, .rv-nav__item::before, .rv-nav__list > li, .rv-nav__sub a { transition: none; } }

/* =====================================================================
   Pages still on style.css (body.rv-legacy): the new fonts, nothing else.
   Newsreader for headlines and large text, Albert Sans for everything else.
   Icon fonts (Font Awesome, Slick) are left alone.
   ===================================================================== */
body.rv-legacy {
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
}
body.rv-legacy,
body.rv-legacy :is(h1, h2, h3, h4, h5, h6, p, li, a, span, div, em, strong, small, label, td, th, figcaption, blockquote, input, textarea, select, button):not([class*="fa-"], [class*="icon"], [class^="slick"], [class*=" slick"], .fa, .fas, .far, .fab, .rv-chrome *) {
  font-family: var(--sans);
}
body.rv-legacy :is(h1, h2, h3, h4, h5, h6):not(.rv-chrome *),
body.rv-legacy :is(h1, h2, h3, h4, h5, h6) :is(a, span):not(.rv-chrome *) {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 36;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
/* archive page titles: sentence case in the serif, not Bootstrap's uppercase */
body.rv-legacy .three_column_list h1.title { text-transform: none !important; font-size: 40px; line-height: 44px; }
/* spacing under the header: the old header sat higher, so pull-ups and tight breadcrumbs need a little room */
body.rv-legacy article.page .post__header { margin-top: 0; padding-top: 24px; }
body.rv-legacy #breadcrumbs:not(article #breadcrumbs) { padding-top: 16px; }

/* 404 page: the search box was a fixed half-width column, which cut the button off on phones */
body.rv-legacy .error-404 .mx-auto { width: min(100%, 480px) !important; }
body.rv-legacy .error-404 #searchform > div { display: flex; gap: 16px; align-items: flex-end; }
body.rv-legacy .error-404 #searchform #s { flex: 1 1 auto; min-width: 0; width: 100%; height: 48px; padding: 0; border: 0; border-bottom: 1px solid #000000; border-radius: 0; background: transparent; font: 400 16px/24px var(--sans); }
body.rv-legacy .error-404 #searchform #searchsubmit { flex: 0 0 auto; width: auto; height: 48px; padding: 0 32px; border: 0; border-radius: 0; background: #000000; color: #FFFFFF; font: 600 15px/20px var(--sans); cursor: pointer; }
body.rv-legacy .error-404 #searchform #searchsubmit:hover { background: #333333; }
