/* Shared connection controls. Keep book companion layouts and downloads local. */
.vernlo-utility,
.vernlo-footer-connect {
  box-sizing: border-box;
  color: #173f42;
  font: 400 1rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.vernlo-utility *,
.vernlo-footer-connect * { box-sizing: border-box; }
.vernlo-utility {
  position: relative;
  border-bottom: 1px solid #d6c8aa;
  background: #f2e8d1;
}
.vernlo-utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .5rem 0;
}
.vernlo-utility .vernlo-utility-title {
  flex: 0 0 auto;
  margin: 0;
  color: #173f42;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;
}
.vernlo-connect-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vernlo-connect-links > li { min-width: 0; margin: 0; padding: 0; }
.vernlo-connect-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  min-width: 48px;
  min-height: 56px;
  max-width: 100%;
  padding: .25rem .375rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #173f42;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: .2em;
}
.vernlo-connect-link:hover {
  border-color: #bbab87;
  background: #fffdf7;
  color: #173f42;
  text-decoration: underline;
}
.vernlo-icon-tile {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  overflow: visible;
  border-radius: 5px;
  background: #fff;
  color: #173f42;
}
.vernlo-icon-tile img {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  transform: none;
  filter: none;
}
.vernlo-email-icon svg { display: block; width: 26px; height: 26px; flex: 0 0 auto; }
/* Unaltered official public previews, framed with clearspace at display time. */
.vernlo-connect-link[data-metric-item="facebook"] .vernlo-icon-tile,
.vernlo-connect-link[data-metric-item="instagram"] .vernlo-icon-tile { overflow:hidden; position:relative; }
.vernlo-connect-link[data-metric-item="facebook"] .vernlo-icon-tile img { position:absolute; left:50%; top:50%; width:100px; height:auto; max-width:none; max-height:none; transform:translate(-50%,-50%); }
.vernlo-connect-link[data-metric-item="instagram"] .vernlo-icon-tile { background:#000; }
.vernlo-connect-link[data-metric-item="instagram"] .vernlo-icon-tile img { position:absolute; left:50%; top:50%; width:148px; height:auto; max-width:none; max-height:none; transform:translate(-50%,-50%); }
.vernlo-connect-link[data-metric-item="youtube"] .vernlo-icon-tile img { width:48px; height:44px; max-width:48px; max-height:44px; }
.vernlo-footer-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem 2rem;
  flex: 0 0 100%;
  width: min(1180px, 100%);
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  border-top: 1px solid #a59066;
  background: #173f42;
  color: #fffdf7;
}
.vernlo-footer-copy { min-width: 0; }
.vernlo-footer-connect .vernlo-footer-title {
  margin: 0 0 .5rem;
  color: #ead8ad;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.4;
}
.vernlo-footer-connect .vernlo-connect-link {
  color: #fffdf7;
  font-size: 1rem;
}
.vernlo-footer-connect .vernlo-connect-link:hover {
  border-color: #ead8ad;
  background: #225b5d;
  color: #fffdf7;
}
.vernlo-footer-connect .vernlo-email-link { padding-left: 0; overflow-wrap: anywhere; }
.vernlo-footer-connect .vernlo-email-link > span:last-child { min-width: 0; }
.vernlo-footer-connect .vernlo-connect-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1rem;
}
.vernlo-footer-updates,
.vernlo-footer-pages a {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  max-width: 100%;
  padding: .65rem 0;
  color: #fffdf7;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.vernlo-footer-updates { gap: .5rem; }
.vernlo-footer-updates:hover,
.vernlo-footer-pages a:hover { color: #ead8ad; text-decoration-thickness: 2px; }
.vernlo-footer-pages { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; grid-column: 1 / -1; }
.vernlo-utility a:focus-visible {
  outline: 3px solid #173f42;
  outline-offset: 3px;
}
.vernlo-footer-connect a:focus-visible {
  outline: 3px solid #f0bd58;
  outline-offset: 3px;
}
.vernlo-skip-link {
  position: absolute;
  left: -10000px;
  z-index: 100;
  min-height: 48px;
  padding: .75rem 1rem;
  color: #173f42;
  background: #fffdf7;
  font: 700 1rem/1.5 system-ui, sans-serif;
}
.vernlo-skip-link:focus-visible { position: fixed; top: 1rem; left: 1rem; outline: 3px solid #173f42; outline-offset: 3px; }

/* Shared primary navigation: readable labels and a compact tablet menu. */
body[data-vernlo-shell="main"] > .site-header .header-inner {
  min-height: 104px;
  gap: 1.25rem;
}
body[data-vernlo-shell="main"] > .site-header .brand-lockup { width: clamp(15rem, 23vw, 19rem); }
body[data-vernlo-shell="main"] > .site-header .nav-list { gap: 1.15rem; }
body[data-vernlo-shell="main"] > .site-header .nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
}
body[data-vernlo-shell="main"] > .site-header .nav-list a:focus-visible,
body[data-vernlo-shell="main"] > .site-header .menu-button:focus-visible {
  outline: 3px solid #173f42;
  outline-offset: 3px;
}
@media (max-width: 1080px) {
  body[data-vernlo-shell="main"] > .site-header .menu-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    min-width: 64px;
    justify-content: center;
  }
  body[data-vernlo-shell="main"] > .site-header .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    padding: .5rem 1rem 1rem;
    border-bottom: 1px solid #cfc3a8;
    background: #fbf6e9;
  }
  body[data-vernlo-shell="main"] > .site-header .site-nav.open { display: block; }
  body[data-vernlo-shell="main"] > .site-header .nav-list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  body[data-vernlo-shell="main"] > .site-header .nav-list a { display: flex; padding: .65rem .4rem; white-space: normal; }
  body[data-vernlo-shell="main"] > .site-header .nav-list a[aria-current="page"]::after { right: auto; width: 42px; }
  .vernlo-utility-inner { justify-content: flex-start; }
  .vernlo-utility .vernlo-utility-title { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .vernlo-footer-connect { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .vernlo-footer-connect .vernlo-connect-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
}
@media (max-width: 640px) {
  .vernlo-utility-inner { gap: .5rem; padding: .75rem 0; }
  .vernlo-utility > .vernlo-utility-inner > .vernlo-connect-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .25rem;
    width: 100%;
  }
  .vernlo-connect-link { width: 100%; padding-inline: .125rem; gap: .375rem; }
  .vernlo-utility .vernlo-connect-link { flex-direction:column; justify-content:center; gap:.2rem; font-size:.72rem; line-height:1.4; min-width:0; min-height:74px; width:100%; }
  .vernlo-utility .vernlo-icon-tile { width:40px; height:40px; flex-basis:40px; }
  .vernlo-utility .vernlo-utility-title { font-size:.85rem; }
  body[data-vernlo-shell="main"] > .site-header .header-inner { min-height: 88px; }
  body[data-vernlo-shell="main"] > .site-header .brand-lockup { width: min(15rem, 55vw); }
  body[data-vernlo-shell="main"] > .site-header .site-nav { max-height: calc(100dvh - 88px); }
}
@media (forced-colors: active) {
  .vernlo-icon-tile { border: 1px solid CanvasText; }
  .vernlo-connect-link { border-color: LinkText; }
  .vernlo-utility a:focus-visible,
  .vernlo-footer-connect a:focus-visible { outline-color: Highlight; }
}
@media print {
  .vernlo-utility,
  .vernlo-footer-connect { display: none; }
}

/* Approved studio motto remains text beneath, and separate from, the logo. */
body[data-vernlo-shell="main"] > .site-header .brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .25rem;
  padding-block: .65rem;
}
body[data-vernlo-shell="main"] > .site-header .brand-motto {
  display: block;
  max-width: 100%;
  color: #173f42;
  font: 500 .85rem/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}
.vernlo-footer-branding { min-width: 0; max-width: 100%; }
footer .brand-motto-footer {
  display: block;
  flex-basis: 100%;
  max-width: 100%;
  margin: .4rem 0 0;
  color: inherit;
  font: 500 .95rem/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.site-footer .brand-motto-footer,
.footer .brand-motto-footer { color: #ead8ad; }
