/* Bluivance. One warm ground, one cream, one small seal. */

:root {
  --ground: #97452C;
  --text: #F4E8D4;
  --muted: #EBD5BF;
  --line: #C47A5E;
  --accent: #1F2A5C;
  --nevoa: #8E9BC4;
  --ribeira: #3A4C8C;
  --noite: #1F2A5C;
  --serif: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --s0: 0.8125rem;
  --s1: 0.9375rem;
  --s2: 1.125rem;
  --s3: 1.375rem;
  --s4: 1.75rem;
  --s5: 2.75rem;
  --l: 1.25rem;
  --r: 1.25rem;
  --hang: 3rem;
  --measure: 34em;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 760px) {
  :root {
    --l: clamp(6rem, 24vw, 22rem);
    --r: clamp(2rem, 9vw, 11rem);
    --hang: 0rem;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--s2);
  line-height: 1.8;
  font-weight: 400;
  font-variant-numeric: oldstyle-nums;
  font-kerning: normal;
  overflow-x: clip;
}

[hidden] { display: none !important; }

svg { display: block; width: 100%; height: auto; max-width: 100%; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, dt, td, th, h1, h2, h3, h4 { overflow-wrap: break-word; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

::selection { background: var(--accent); color: var(--text); }

.bv-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bv-skip {
  position: absolute;
  left: -999rem;
  top: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--accent);
  color: var(--text);
  font-size: var(--s1);
}
.bv-skip:focus { left: 1rem; }

.bv-page { padding: 0 var(--r) 0 var(--l); }

/* Masthead, at body size */

.bv-mast {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}
.bv-mast-text { min-width: 0; }
.bv-mastline {
  margin: 0;
  font-size: var(--s2);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}
.bv-mastline a { font-weight: 600; text-decoration: none; }

.bv-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1.5rem;
  margin-top: .55rem;
  font-size: var(--s1);
  line-height: 1.5;
}
.bv-nav a {
  position: relative;
  display: inline-block;
  padding: .15rem 0;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.bv-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.bv-nav a:hover, .bv-nav a[aria-current="page"] { color: var(--text); }
.bv-nav a:hover::after, .bv-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Phone menu: details and summary, so it opens without the script */

.bv-menu { display: none; }

.bv-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .85rem .45rem;
  border: 1px solid var(--text);
  border-radius: 3px;
  font-size: var(--s0);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.bv-menu-btn::-webkit-details-marker { display: none; }
.bv-menu-btn::marker { content: ""; }

.bv-menu-icon {
  position: relative;
  display: block;
  width: .95rem;
  height: .55rem;
}
.bv-menu-icon::before,
.bv-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.bv-menu-icon::before { top: 0; }
.bv-menu-icon::after { top: calc(100% - 1px); }
.bv-menu[open]:not(.is-closing) .bv-menu-icon::before { top: calc(50% - .5px); transform: rotate(45deg); }
.bv-menu[open]:not(.is-closing) .bv-menu-icon::after { top: calc(50% - .5px); transform: rotate(-45deg); }

.bv-menu-nav {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: .35rem 1.25rem;
  background: var(--ground);
  border: 1px solid var(--line);
}
.bv-menu-nav a {
  display: block;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: var(--s2);
  line-height: 1.4;
  text-decoration: none;
}
.bv-menu-nav a:first-child { border-top: 0; }
.bv-menu-nav a[aria-current="page"] { font-style: italic; }
.bv-menu-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 1.25rem; height: 1px; margin-right: .6rem; vertical-align: middle; background: var(--line); }

.bv-menu[open] .bv-menu-nav { animation: bv-menu-in .24s var(--ease) both; }
.bv-menu.is-closing .bv-menu-nav { animation: bv-menu-out .18s ease both; }

@keyframes bv-menu-in {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-.4rem); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes bv-menu-out {
  from { clip-path: inset(0 0 0 0); transform: none; }
  to { clip-path: inset(0 0 100% 0); transform: translateY(-.4rem); }
}

@media (max-width: 759px) {
  .bv-nav { display: none; }
  .bv-menu { display: block; margin-top: .65rem; }
}

.bv-seal {
  display: block;
  flex: 0 0 auto;
  width: clamp(2.5rem, 3.4vw, 3.1rem);
  margin-top: .1rem;
  transform: rotate(-3deg);
}

/* Page rhythm, deliberately uneven */

.bv-main { padding-top: clamp(3.5rem, 8vw, 6.5rem); }

.bv-sec { margin-top: 6rem; }
.bv-sec--tight { margin-top: 2.5rem; }
.bv-sec--near { margin-top: 4rem; }
.bv-sec--far { margin-top: clamp(6.5rem, 12vw, 10rem); }
.bv-sec--note { margin-top: clamp(5rem, 10vw, 8.5rem); }

.bv-col { max-width: var(--measure); }

.bv-kicker {
  margin: 0 0 .6rem;
  font-size: var(--s0);
  font-weight: 400;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.bv-head {
  margin: 0 0 1.25rem;
  font-size: var(--s3);
  font-weight: 600;
  line-height: 1.3;
}
.bv-head--it { font-style: italic; }

.bv-sub {
  margin: -.4rem 0 2.25rem;
  max-width: var(--measure);
  font-size: var(--s1);
  line-height: 1.7;
  color: var(--muted);
}
.bv-sub--after { margin-top: 1.25rem; }

.bv-lede { margin: 0; font-style: italic; }

.bv-prose p { margin: 0 0 1.2em; }
.bv-prose h3 {
  margin: 2.6em 0 .45em;
  font-size: var(--s2);
  font-weight: 600;
  line-height: 1.4;
}
.bv-prose .bv-head + p, .bv-prose .bv-head + h3 { margin-top: 0; }

.bv-main a:not([class]) {
  text-decoration-line: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color .2s ease;
}
.bv-main a:not([class]):hover { text-decoration-color: var(--text); }

/* Opening statement and the three blues */

.bv-hero {
  position: relative;
  margin: 0 0 3.5rem;
}
.bv-lead {
  margin: 0;
  max-width: 18em;
  font-size: var(--s4);
  font-style: italic;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.005em;
  text-wrap: balance;
}
@media (min-width: 640px) {
  .bv-hero { margin-bottom: 4rem; }
  .bv-lead { font-size: var(--s5); line-height: 1.15; }
}

.bv-swatches {
  max-width: 26rem;
  margin: 1.75rem 0 0;
}
.bv-swatches-cap {
  margin: 0 0 .65rem;
  font-size: var(--s0);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--muted);
}
.bv-shades {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bv-shades li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Each shade shown as its dips: one indigo cell per dip, as on work.html */
.bv-shades .bv-dips {
  max-width: none;
  gap: 2px;
  margin: 0 0 .55rem;
}
.bv-shades li:nth-child(1) .bv-dips { transform: rotate(-1.2deg); }
.bv-shades li:nth-child(2) .bv-dips { transform: rotate(.7deg); }
.bv-shades li:nth-child(3) .bv-dips { transform: rotate(-.5deg); }
.bv-shade {
  font-size: var(--s2);
  font-style: italic;
  line-height: 1.3;
}
.bv-shade-dips {
  font-size: var(--s0);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--muted);
}

@media (min-width: 1200px) {
  .bv-swatches {
    position: absolute;
    top: calc(100% + 4rem);
    right: 0;
    width: clamp(8rem, 11vw, 12rem);
    max-width: none;
    margin: 0;
  }
  .bv-shades { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .bv-shades .bv-dips i { height: 2rem; }
}

/* Steps with hanging old style numerals */

.bv-steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0 0 0 var(--hang);
  max-width: calc(var(--measure) + var(--hang));
}
.bv-step {
  position: relative;
  padding: 1.7rem 0 1.9rem;
  border-top: 1px solid var(--line);
}
.bv-step:first-child { border-top: 0; padding-top: 0; }
.bv-num {
  position: absolute;
  top: 1.15rem;
  left: -4.75rem;
  width: 3.5rem;
  text-align: right;
  font-size: var(--s5);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: oldstyle-nums;
}
.bv-step:first-child .bv-num { top: -.55rem; }
.bv-step h3 {
  margin: 0 0 .3rem;
  font-size: var(--s2);
  font-weight: 600;
  line-height: 1.5;
}
.bv-step p { margin: 0; }
.bv-step .bv-fine {
  margin-top: .55rem;
  font-size: var(--s1);
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 759px) {
  .bv-num { left: calc(-1 * var(--hang)); width: 2.4rem; text-align: left; font-size: 2.25rem; }
  .bv-step:first-child .bv-num { top: -.35rem; }
}

.bv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 2.25rem 0 0;
  padding-left: var(--hang);
}

.bv-ico { display: inline-block; width: 1em; flex: 0 0 auto; transition: transform .3s var(--ease); }

.bv-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  padding: .75rem 1.15rem .7rem;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: var(--s1);
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.bv-btn:hover { background: var(--text); border-color: var(--text); color: var(--ground); }
.bv-btn:hover .bv-ico, .bv-link:hover .bv-ico { transform: translateX(3px); }

.bv-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--s1);
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
  transition: text-decoration-color .2s ease;
}
.bv-link:hover { text-decoration-color: var(--text); }

/* Index cards laid on the table */

.bv-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 56rem;
  align-items: start;
}

.bv-card {
  position: relative;
  min-width: 0;
  margin-top: calc(2.1rem + var(--drop, 0rem));
  padding: 1.4rem 1.45rem 1.35rem;
  border: 1px solid var(--line);
  transition: border-color .3s ease;
}

.bv-card:nth-child(3n+1) { --tx: 4%; }
.bv-card:nth-child(3n+2) { --tx: 34%; }
.bv-card:nth-child(3n) { --tx: 66%; }

.bv-tab {
  position: absolute;
  bottom: calc(100% - 1px);
  left: var(--tx, 4%);
  transform: translateX(calc(var(--tx, 4%) * -1));
  max-width: 100%;
  margin: 0;
  padding: .45rem .8rem .42rem;
  border: 1px solid var(--text);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: var(--ground);
  font-size: var(--s0);
  font-weight: 400;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv-fig {
  display: block;
  margin: .05rem 0 .6rem;
  font-size: var(--s5);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-variant-numeric: oldstyle-nums tabular-nums;
  overflow-wrap: anywhere;
}
.bv-fig small {
  margin-left: .3rem;
  font-size: var(--s2);
  font-style: normal;
  letter-spacing: 0;
  color: var(--muted);
}
.bv-fig small.bv-pre { margin: 0 .25rem 0 0; }

.bv-card p {
  margin: 0;
  font-size: var(--s1);
  line-height: 1.65;
  color: var(--muted);
}
.bv-card p + p { margin-top: .7rem; }

.bv-cardhead {
  margin: 0 0 .5rem;
  font-size: var(--s2);
  font-weight: 600;
  line-height: 1.4;
}

.bv-card--solo { max-width: 40rem; margin-left: clamp(0rem, 4vw, 3.5rem); --tx: 8%; }
.bv-card--since { max-width: 22rem; --tx: 62%; }
.bv-cardlead { margin-bottom: 1rem !important; }

/* Mobile: alternating nudges */
.bv-index > .bv-card:nth-child(odd) { margin-right: 1.5rem; }
.bv-index > .bv-card:nth-child(even) { margin-left: 1.5rem; --drop: .5rem; }

@media (min-width: 640px) {
  .bv-index { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 1.75rem); }
  .bv-index > .bv-card:nth-child(n) { margin-left: 0; margin-right: 0; }
  .bv-index > :nth-child(4n+1) { grid-column: 1 / span 7; --drop: 0rem; }
  .bv-index > :nth-child(4n+2) { grid-column: 8 / span 5; --drop: 2.5rem; }
  .bv-index > :nth-child(4n+3) { grid-column: 1 / span 5; --drop: 1.5rem; }
  .bv-index > :nth-child(4n+4) { grid-column: 6 / span 7; --drop: 3rem; }

  .bv-index--three > :nth-child(1) { grid-column: 1 / span 6; --drop: 0rem; }
  .bv-index--three > :nth-child(2) { grid-column: 7 / span 6; --drop: 2.5rem; }
  .bv-index--three > :nth-child(3) { grid-column: 3 / span 7; --drop: 1.5rem; }

  .bv-index--two > :nth-child(1) { grid-column: 1 / span 6; --drop: 0rem; }
  .bv-index--two > :nth-child(2) { grid-column: 7 / span 6; --drop: 3rem; }
}

@media (min-width: 1000px) {
  .bv-index--six > :nth-child(1) { grid-column: 1 / span 4; --drop: 0rem; }
  .bv-index--six > :nth-child(2) { grid-column: 5 / span 5; --drop: 2.5rem; }
  .bv-index--six > :nth-child(3) { grid-column: 10 / span 3; --drop: 1.5rem; }
  .bv-index--six > :nth-child(4) { grid-column: 2 / span 3; --drop: 3.5rem; }
  .bv-index--six > :nth-child(5) { grid-column: 5 / span 4; --drop: 1.5rem; }
  .bv-index--six > :nth-child(6) { grid-column: 9 / span 4; --drop: 3rem; }

  /* Terms on work.html: long copy gets the wide slots */
  .bv-index--terms > :nth-child(1) { grid-column: 1 / span 4; --drop: 0rem; }
  .bv-index--terms > :nth-child(2) { grid-column: 5 / span 5; --drop: 2.5rem; }
  .bv-index--terms > :nth-child(3) { grid-column: 10 / span 3; --drop: 1.5rem; }
  .bv-index--terms > :nth-child(4) { grid-column: 1 / span 5; --drop: 3rem; }
  .bv-index--terms > :nth-child(5) { grid-column: 6 / span 4; --drop: 1.5rem; }
  .bv-index--terms > :nth-child(6) { grid-column: 10 / span 3; --drop: 3.5rem; }

  .bv-index--three { max-width: 52rem; }
  .bv-index--three > :nth-child(1) { grid-column: 1 / span 4; --drop: 0rem; }
  .bv-index--three > :nth-child(2) { grid-column: 5 / span 4; --drop: 2.5rem; }
  .bv-index--three > :nth-child(3) { grid-column: 9 / span 4; --drop: 1.5rem; }

  .bv-index--four > :nth-child(1) { grid-column: 1 / span 5; --drop: 0rem; }
  .bv-index--four > :nth-child(2) { grid-column: 6 / span 4; --drop: 2.5rem; }
  .bv-index--four > :nth-child(3) { grid-column: 2 / span 4; --drop: 1.5rem; }
  .bv-index--four > :nth-child(4) { grid-column: 6 / span 5; --drop: 3.5rem; }

  .bv-index--two { max-width: 50rem; }
}

/* Price stack: a grid without the script, a tabbed stack with it */

.bv-stack { position: relative; max-width: 56rem; }

.bv-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: stretch;
}
.bv-panels > .bv-card:nth-child(n) { margin-left: 0; margin-right: 0; --drop: 0rem; }

@media (min-width: 640px) {
  .bv-panels { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bv-panels > .bv-card { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .bv-panels > .bv-card:nth-child(n+3) { grid-column: span 4; }
}

.bv-tabrow {
  position: relative;
  z-index: 2;
  display: flex;
  gap: .35rem;
  margin-bottom: -1px;
  padding: .25rem .25rem 0 1rem;
  flex-wrap: wrap;
  row-gap: .35rem;
}

.bv-tabrow button {
  flex: 0 0 auto;
  margin: 0;
  padding: .6rem .9rem .55rem;
  border: 1px solid var(--text);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: var(--ground);
  color: var(--muted);
  font: inherit;
  font-size: var(--s0);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}
.bv-tabrow button:hover { color: var(--text); }
.bv-tabrow button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}
.bv-tabrow button:focus-visible { outline-offset: -4px; }

/* Phones: the five tabs wrap onto two rows, both sitting on the card */
@media (max-width: 639px) {
  .bv-tabrow {
    flex-wrap: wrap;
    row-gap: .35rem;
    padding-left: 0;
    padding-right: 0;
    gap: .3rem;
  }
  .bv-tabrow button {
    padding: .55rem .6rem .5rem;
    letter-spacing: .04em;
  }
}

.bv-stack.is-tabbed { max-width: 40rem; }
.bv-stack.is-tabbed .bv-panels { display: block; }
.bv-stack.is-tabbed .bv-card {
  margin: 0;
  padding: 1.9rem 1.8rem 1.6rem;
  background: var(--ground);
}
.bv-stack.is-tabbed .bv-card:hover { border-color: var(--line); }
.bv-stack.is-tabbed .bv-card::before,
.bv-stack.is-tabbed .bv-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid var(--line);
  z-index: -1;
}
.bv-stack.is-tabbed .bv-card::before { top: 7px; left: 7px; right: -7px; bottom: -7px; }
.bv-stack.is-tabbed .bv-card::after { top: 14px; left: 14px; right: -14px; bottom: -14px; opacity: .55; }
.bv-stack.is-tabbed .bv-card > .bv-tab {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  transform: none;
}

.bv-tablewrap { max-width: 100%; overflow-x: auto; margin: .9rem 0 1rem; }

.bv-price {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--s2);
  line-height: 1.4;
  font-variant-numeric: oldstyle-nums tabular-nums;
}
.bv-price th {
  padding: 0 0 .55rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--s0);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}
.bv-price td {
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.bv-price td span {
  display: block;
  font-size: var(--s1);
  color: var(--muted);
}
.bv-price th:last-child, .bv-price td:last-child {
  text-align: right;
  padding-left: 1rem;
  white-space: nowrap;
}
.bv-price td:last-child { font-size: var(--s3); font-style: italic; }

.bv-card .bv-terms { font-size: var(--s1); }

/* Dip bars: each filled bar is one dip, filled in its own shade of indigo */

.bv-dips {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3px;
  max-width: 12rem;
  margin: .3rem 0 1rem;
}
.bv-dips i { display: block; height: 1.4rem; border: 1px solid var(--line); }
.bv-dips[data-n="2"] i:nth-child(-n+2) { background: var(--nevoa); border-color: var(--nevoa); }
.bv-dips[data-n="5"] i:nth-child(-n+5) { background: var(--ribeira); border-color: var(--ribeira); }
.bv-dips[data-n="10"] i:nth-child(-n+10) { background: var(--noite); border-color: var(--noite); }
.bv-dips[data-n="10"] i:nth-child(n+11) { border-style: dashed; border-color: var(--muted); }

/* Lists */

.bv-list { list-style: none; margin: 0; padding: 0; }
.bv-list li {
  position: relative;
  padding: .7rem 0 .7rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: var(--s2);
  line-height: 1.6;
  color: var(--muted);
}
.bv-list li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: 1.4em;
  width: .42rem;
  height: .42rem;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.bv-ol { list-style: none; margin: 0; padding: 0 0 0 2.4rem; counter-reset: bv; }
.bv-ol li {
  position: relative;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  counter-increment: bv;
}
.bv-ol li:last-child { border-bottom: 1px solid var(--line); }
.bv-ol li::before {
  content: counter(bv);
  position: absolute;
  left: -2.4rem;
  top: .55rem;
  font-size: var(--s3);
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}

.bv-rows { list-style: none; margin: 1.5rem 0 0; padding: 0; max-width: 46rem; }
.bv-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.bv-rows li:last-child { border-bottom: 1px solid var(--line); }
.bv-rows h3 { margin: 0; font-size: var(--s2); font-weight: 600; line-height: 1.5; }
.bv-rows p { margin: 0; color: var(--muted); }
@media (min-width: 640px) {
  .bv-rows li { grid-template-columns: 14rem minmax(0, 1fr); gap: 1.75rem; }
}

/* Where next: a short onward block at the end of a page */

.bv-next { max-width: var(--measure); }
.bv-nextlist { list-style: none; margin: 0; padding: 0; }
.bv-nextlist li { padding: .9rem 0; border-top: 1px solid var(--line); }
.bv-nextlist li:last-child { border-bottom: 1px solid var(--line); }
.bv-nextlist a { font-size: var(--s2); font-style: italic; line-height: 1.4; }
.bv-nextlist span {
  display: block;
  margin-top: .2rem;
  font-size: var(--s1);
  line-height: 1.6;
  color: var(--muted);
}

/* Note from Inês */

.bv-note {
  max-width: 30em;
  margin-left: clamp(1.5rem, 8vw, 6.5rem);
  font-style: italic;
}
.bv-note p { margin: 0 0 1em; }
.bv-sign {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 1.4rem 0 0 !important;
  font-style: italic;
}
.bv-sign::before { content: ""; width: 2.25rem; height: 1px; background: var(--line); }

/* Vats */

.bv-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.25rem;
  max-width: 56rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}
.bv-figs li { min-width: 0; padding: 1rem 0 1.4rem; border-top: 1px solid var(--line); }
.bv-figs .bv-fig { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: .3rem; }
.bv-figs .bv-fig small { font-size: var(--s1); }
.bv-lab {
  display: block;
  font-size: var(--s0);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}
@media (min-width: 1000px) { .bv-figs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.bv-draw {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 56rem;
  margin: 4.5rem 0 0;
}
.bv-draw svg { max-width: 28rem; }
@media (min-width: 900px) {
  .bv-draw { grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
}
.bv-caplist { margin: 0; padding: 0 0 0 1.6rem; list-style: none; counter-reset: cap; font-size: var(--s1); line-height: 1.65; color: var(--muted); }
.bv-caplist li { position: relative; padding: .45rem 0; counter-increment: cap; border-top: 1px solid var(--line); }
.bv-caplist li::before { content: counter(cap); position: absolute; left: -1.6rem; font-style: italic; color: var(--text); }

.bv-dipbar {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: var(--measure);
  margin: .5rem 0 2rem;
  font-size: var(--s0);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.bv-dipbar span { min-width: 0; padding: .7rem .75rem; border: 1px solid var(--text); }
.bv-dipbar span + span { border-left: 0; border-style: dashed; border-color: var(--muted); color: var(--muted); }

/* Contact */

.bv-emailline { margin: 1.25rem 0 0; }
.bv-email {
  display: inline-block;
  max-width: 100%;
  font-size: var(--s4);
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
  transition: text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}
.bv-email:hover { text-decoration-color: var(--text); text-decoration-thickness: 2px; }

.bv-dl {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: .5rem 1.25rem;
  margin: 0;
  font-size: var(--s1);
  line-height: 1.55;
  font-variant-numeric: oldstyle-nums tabular-nums;
}
.bv-dl dt { color: var(--muted); }
.bv-dl dd { margin: 0; }
@media (max-width: 420px) {
  .bv-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bv-dl dd { margin-bottom: .55rem; }
}
.bv-card p.bv-place { margin-bottom: .6rem; font-size: var(--s2); color: var(--text); font-style: italic; }

/* Footer */

.bv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 2.25rem;
  margin-top: clamp(6rem, 12vw, 9rem);
  padding: 1.75rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: var(--s1);
  line-height: 1.6;
  color: var(--muted);
}
.bv-foot p { margin: 0; min-width: 0; }
.bv-foot a {
  color: var(--text);
  text-decoration-color: var(--line);
  text-underline-offset: .22em;
  overflow-wrap: anywhere;
  transition: text-decoration-color .2s ease;
}
.bv-foot a:hover { text-decoration-color: var(--text); }
.bv-foot-nav {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 100%;
  gap: .3rem 1.5rem;
  margin-bottom: .6rem;
}
.bv-foot-nav a[aria-current="page"] { font-style: italic; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}