/* ALEX "Your view" control (Area 23, 11-27 PREVIEW v4): mic · Language · Age group · ALEX's voice at the top of every page. */
html.pv-on #genPin { display: none !important; }

/* landing page: hide only the pill LISTS and the "Ask ALEX in your language" eyebrow; the notes below them stay */
html.pv-hero #heroLangList, html.pv-hero #heroVoiceList, html.pv-hero #heroLangs > .eyebrow { display: none !important; }
html.pv-hero #heroLangs { margin-top: .5rem !important; }
html.pv-hero #heroVoice { margin-top: .25rem !important; }

.pv-row, #pvTop .pv-in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; }
.pv-row { margin-top: 1.25rem; }
.pv-row.pv-above-mic { margin: 0 0 .6rem; }   /* landing: one line directly above the mic */
.pv-f { display: flex; flex-direction: column; gap: .2rem; margin: 0; min-width: 0; }
.pv-l { font: .64rem/1 "Geist Mono", "JetBrains Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.pv-note { flex: 1 1 100%; margin: .15rem 0 0; font-size: .7rem; line-height: 1.3; opacity: .7; }
.pv-row select, #pvTop select { appearance: none; -webkit-appearance: none; font: inherit; font-size: .85rem; line-height: 1.2; color: inherit; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .7rem center;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .35rem 2rem .35rem .8rem; max-width: 100%; }
.pv-row select option, #pvTop select option { color: #1A1A1A; background: #fff; }
.pv-row select:hover, #pvTop select:hover { border-color: rgba(255,255,255,.6); }
.pv-row select:focus-visible, #pvTop select:focus-visible, #pvTop .pv-mic:focus-visible { outline: 2px solid var(--mit-red-bright, #C5A880); outline-offset: 2px; }
.pv-row [data-p="voice"] { min-width: 7.5rem; }

/* the standard top bar */
#pvTop { box-sizing: border-box; color: #FBFBF9; background: rgba(13,14,18,.94); border: 1px solid rgba(197,168,128,.55); border-radius: 14px;
  padding: .45rem .8rem .4rem; font: 400 1rem/1.25 Geist, Inter, system-ui, sans-serif; box-shadow: 0 8px 28px rgba(0,0,0,.3); text-align: left; }
#pvTop.pv-float { position: fixed; left: 50%; transform: translateX(-50%); z-index: 1040; width: max-content; max-width: calc(100vw - 20px); }
#pvTop.pv-flow { position: relative; z-index: 5; margin: 10px auto; width: max-content; max-width: calc(100vw - 20px); }
#pvTop .pv-in { align-items: center; }
#pvTop .pv-f { flex-direction: row; align-items: center; gap: .4rem; }
#pvTop .pv-mic { display: inline-flex; align-items: center; gap: .4rem; font: 600 .85rem/1 Geist, Inter, system-ui, sans-serif; color: #0D0E12; background: #C5A880;
  border: 0; border-radius: 999px; padding: .45rem .85rem; cursor: pointer; }
#pvTop .pv-mic:hover { background: #d6bd99; }
#pvTop .pv-note { text-align: center; }
@media (max-width: 720px) {   /* phones: mic + three dropdowns share the line, labels go small above */
  #pvTop .pv-f { flex-direction: column; align-items: stretch; gap: .15rem; flex: 1 1 0; }
  #pvTop .pv-in { flex-wrap: nowrap; gap: .4rem; align-items: flex-end; }
  #pvTop .pv-mic span { display: none; } #pvTop .pv-mic { padding: .5rem; flex: 0 0 auto; }
  #pvTop select { width: 100%; font-size: 16px; padding: .35rem 1.5rem .35rem .6rem; text-overflow: ellipsis; background-position: right .5rem center; }
  #pvTop.pv-float, #pvTop.pv-flow { width: calc(100vw - 20px); padding: .35rem .5rem; }
  .pv-l { font-size: .58rem; letter-spacing: .08em; }
}
@media (max-width: 560px) {
  .pv-row { gap: .4rem; max-width: 100%; box-sizing: border-box; }
  .pv-row .pv-f { flex: 1 1 0; min-width: 0; } .pv-row [data-p="voice"] { min-width: 0; }   /* three equal columns that never pass the edge (Area 15, 11-28) */
  .pv-row select { width: 100%; box-sizing: border-box; font-size: 16px; padding: .4rem 1.5rem .4rem .6rem; text-overflow: ellipsis; background-position: right .5rem center; }
}

/* room made under a fixed header so the bar covers no text (screen only) */
@media screen {
  .pv-room { padding-top: var(--pv-pad) !important; }
  .pv-room-h { height: auto !important; min-height: var(--pv-h); }
  .pv-room-abs { top: var(--pv-top) !important; }
}
/* printed pages and PDFs rendered from the site: no controls (Area 31, 11-28: alex-join.pdf printed the bar) */
@media print { #pvTop, .pv-row, #pvVoice, #pvBar, #pvPop { display: none !important; } }

/* carried look on pages without tone copy (/homes/ and the rest): type size + accent only; never content */
html[data-gen="greatest"] { font-size: 125%; } html[data-gen="silent"] { font-size: 118.75%; } html[data-gen="boomer"] { font-size: 112.5%; }
html[data-gen="greatest"] { --brass: #8E2C3A; } html[data-gen="silent"] { --brass: #4F6D8F; } html[data-gen="boomer"] { --brass: #B8892E; }
html[data-gen="genx"] { --brass: #6F7F45; } html[data-gen="millennial"] { --brass: #D0694F; } html[data-gen="genz"] { --brass: #8BD12E; }
