/* Urban Human Resources 1.1.0 experience layer.
   Presentation only: every word and link is already in the page without it. */

/* Theme switch fades instead of snapping */
html.uhr-theme-fade, html.uhr-theme-fade * { transition: background-color .4s ease, color .4s ease, border-color .4s ease !important; }

/* Frosted glass navigation over the page */
.nav { background: color-mix(in srgb, var(--color-bg) 74%, transparent) !important; -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }

/* Film grain: warms the flat color fields */
body::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .035; }

/* Micro-interactions: buttons answer the press, fields answer the mistake */
.btn { transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, background-color .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -12px color-mix(in srgb, var(--color-accent-700, #1A424B) 70%, transparent); }
.btn:active { transform: translateY(0) scale(.97); }
:focus-visible { outline: 3px solid #9F4C1A; outline-offset: 3px; }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: #9F4C1A !important; animation: uhr-nudge .32s ease; }
@keyframes uhr-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Branded page transitions (browsers that support cross-page view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: uhr-vt-out .28s ease both; }
::view-transition-new(root) { animation: uhr-vt-in .52s cubic-bezier(.16,1,.3,1) both; }
@keyframes uhr-vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes uhr-vt-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html::view-transition { background: #1A424B; }

/* Reading progress bar on articles */
#uhr-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #1A424B, #9F4C1A); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  #uhr-progress { animation: uhr-grow linear both; animation-timeline: scroll(root); }
  @keyframes uhr-grow { to { transform: scaleX(1); } }
}

/* Kinetic headlines: the page title rises into place, section headings tighten as they arrive */
html.uhr-motion main h1 { animation: uhr-rise .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes uhr-rise { from { opacity: 0; transform: translateY(.35em); clip-path: inset(0 0 100% 0); letter-spacing: .06em; } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }
@supports (animation-timeline: view()) {
  html.uhr-motion main h2 { animation: uhr-tighten linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  @keyframes uhr-tighten { from { letter-spacing: .08em; opacity: .35; } to { letter-spacing: normal; opacity: 1; } }
}

/* Desktop only: depth and touch */
@media (pointer: fine) and (min-width: 1100px) {
  @supports (animation-timeline: view()) {
    html.uhr-motion main figure { overflow: clip; }
    html.uhr-motion main figure img { animation: uhr-parallax linear both; animation-timeline: view(); will-change: transform; }
    @keyframes uhr-parallax { from { transform: translateY(-4%) scale(1.1); } to { transform: translateY(4%) scale(1.1); } }
  }
  html.uhr-motion .blueprint { transform: perspective(900px) rotateX(var(--uhr-rx, 0deg)) rotateY(var(--uhr-ry, 0deg)) translateY(var(--uhr-lift, 0px)); transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease; }
  html.uhr-motion .blueprint.uhr-hot { --uhr-lift: -6px; box-shadow: 0 24px 48px -28px rgba(26,66,75,.55); transition-duration: .12s, .35s; }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-stopped { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  #uhr-progress { transition: none; }
}

/* Nav consult button: white on teal (was inheriting the dark nav link color) */
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
html[data-theme="dark"] .nav .btn-primary, html[data-theme="dark"] .nav .btn-primary:hover { color: #16181a; }

/* Bento: the nine disciplines, custom icon set */
.uhr-bento-9 > a { position: relative; padding-top: 64px !important; }
.uhr-bento-9 > a::before { content: ""; position: absolute; left: 22px; top: 20px; width: 30px; height: 30px; background: var(--color-accent-700, #1A424B); -webkit-mask: var(--uhr-ico) center / contain no-repeat; mask: var(--uhr-ico) center / contain no-repeat; transition: background-color .2s ease, transform .3s cubic-bezier(.16,1,.3,1); }
.uhr-bento-9 > a:hover::before { background: #9F4C1A; transform: scale(1.12) rotate(-4deg); }
html[data-theme="dark"] .uhr-bento-9 > a::before { background: #8fc3ca; }
.uhr-bento-9 > a:nth-child(1) { --uhr-ico: url("icons/talent.svg"); }
.uhr-bento-9 > a:nth-child(2) { --uhr-ico: url("icons/compensation.svg"); }
.uhr-bento-9 > a:nth-child(3) { --uhr-ico: url("icons/benefits.svg"); }
.uhr-bento-9 > a:nth-child(4) { --uhr-ico: url("icons/relations.svg"); }
.uhr-bento-9 > a:nth-child(5) { --uhr-ico: url("icons/compliance.svg"); }
.uhr-bento-9 > a:nth-child(6) { --uhr-ico: url("icons/global.svg"); }
.uhr-bento-9 > a:nth-child(7) { --uhr-ico: url("icons/leadership.svg"); }
.uhr-bento-9 > a:nth-child(8) { --uhr-ico: url("icons/technology.svg"); }
.uhr-bento-9 > a:nth-child(9) { --uhr-ico: url("icons/labor.svg"); }
@media (min-width: 1000px) {
  .uhr-bento-9 { grid-template-columns: repeat(3, 1fr) !important; }
  .uhr-bento-9 > a:nth-child(1), .uhr-bento-9 > a:nth-child(4), .uhr-bento-9 > a:nth-child(9) { grid-column: span 2; }
  .uhr-bento-tiers { grid-template-columns: 1fr 1.2fr 1fr !important; align-items: stretch; }
  .uhr-bento-tiers > article:nth-child(2) { border-color: #1A424B !important; box-shadow: 0 30px 60px -40px rgba(26,66,75,.6); }
}
.uhr-bento-9 > a, .uhr-bento-tiers > article { border-radius: 14px; }

/* Maximalist footer */
.uhr-mega { max-width: 1200px; margin: 0 auto 56px; padding: 0 clamp(20px, 5vw, 72px); }
.uhr-mega-line { font-family: var(--font-heading); text-transform: uppercase; font-weight: 600; line-height: .88; letter-spacing: -.01em; font-size: clamp(30px, 5.5vw, 88px); margin: 0 0 22px; color: #1A424B; }
.uhr-mega-line span { display: block; }
.uhr-mega-line em { font-style: normal; color: #9F4C1A; }
html[data-theme="dark"] .uhr-mega-line { color: #8fc3ca; }
.uhr-mega-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.uhr-kbd { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 7px; border: 1px solid var(--color-divider); border-radius: 6px; }
.uhr-mega-search { background: none; border: 1px solid var(--color-divider); color: inherit; padding: 12px 16px; border-radius: 999px; font: inherit; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; }
.uhr-mega-search:hover { border-color: #9F4C1A; }
@media (pointer: fine) and (min-width: 1000px) {
  .nav form[role="search"] { position: relative; }
  .nav form[role="search"]::after { content: "\2318K"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 11px/1 ui-monospace, Menlo, monospace; padding: 3px 6px; border: 1px solid var(--color-divider); border-radius: 5px; opacity: .7; pointer-events: none; }
}

/* Command-K palette */
#uhr-pal { position: fixed; inset: 0; z-index: 2147483100; display: none; background: rgba(10,22,26,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 10vh 16px 16px; }
#uhr-pal.open { display: block; animation: uhr-fade .18s ease; }
@keyframes uhr-fade { from { opacity: 0; } }
#uhr-pal .box { max-width: 640px; margin: 0 auto; background: var(--color-bg, #f2f2f3); color: var(--color-text, #1d1f20); border: 1px solid var(--color-divider); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: uhr-pop .26s cubic-bezier(.16,1,.3,1); }
@keyframes uhr-pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
#uhr-pal input { width: 100%; border: 0; border-bottom: 1px solid var(--color-divider); background: transparent; color: inherit; font: 500 19px/1.4 var(--font-body, system-ui); padding: 20px 22px; outline: none; }
#uhr-pal ul { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow: auto; }
#uhr-pal li a { display: grid; grid-template-columns: 64px 1fr; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; }
#uhr-pal li a b { grid-column: 2; font-weight: 600; }
#uhr-pal li a small { grid-column: 2; opacity: .72; font-size: 13px; line-height: 1.45; }
#uhr-pal li a i { grid-row: 1 / span 2; font: 600 10px/1 var(--font-body, system-ui); letter-spacing: .08em; text-transform: uppercase; color: #9F4C1A; padding-top: 5px; font-style: normal; }
#uhr-pal li[aria-selected="true"] a { background: color-mix(in srgb, #1A424B 12%, transparent); }
#uhr-pal .foot { display: flex; justify-content: space-between; padding: 10px 18px; font-size: 12px; opacity: .7; border-top: 1px solid var(--color-divider); }

/* Homepage router: doors and the pinned pill */
.uhr-half { scroll-margin-top: 150px; }
.uhr-door { position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.uhr-door:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -34px rgba(26,66,75,.55); }
.uhr-door:focus-visible { outline: 3px solid #9F4C1A; outline-offset: 4px; }
#uhr-pill { position: fixed; left: 50%; top: 100px; z-index: 59; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--color-bg, #f2f2f3) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--color-divider); box-shadow: 0 12px 32px -18px rgba(0,0,0,.5); font: 600 12px/1 var(--font-body, system-ui); letter-spacing: .06em; text-transform: uppercase; opacity: 0; pointer-events: none; transform: translate(-50%, -8px); transition: opacity .22s ease, transform .22s ease; }
#uhr-pill.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#uhr-pill button { border: 0; background: none; color: var(--color-text, inherit); padding: 0 16px; min-height: 40px; border-radius: 999px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
#uhr-pill button[aria-pressed="true"] { background: #1A424B; color: #fff; }
html[data-theme="dark"] #uhr-pill button[aria-pressed="true"] { background: #8fc3ca; color: #16181a; }
#uhr-pill button:focus-visible { outline: 2px solid #9F4C1A; outline-offset: 2px; }
@media (max-width: 600px) { #uhr-pill { font-size: 11px; } #uhr-pill button { padding: 0 13px; min-height: 44px; } .uhr-half { scroll-margin-top: 140px; } }
@media (max-width: 340px) { #uhr-pill button { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { #uhr-pill, .uhr-door { transition: none; } .uhr-door:hover { transform: none; } }
@media (pointer: fine) and (min-width: 1000px) { .nav form[role="search"] input { padding-right: 44px; } }

/* Interactive tools */
.uhr-tool { border: 1px solid var(--color-divider); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin: 8px 0 28px; background: color-mix(in srgb, var(--color-bg) 92%, #1A424B 8%); display: grid; gap: 18px; }
.uhr-tool h3 { margin: 0; font-family: var(--font-heading); text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
.uhr-f { display: grid; gap: 6px; } .uhr-f > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.uhr-f input[type=range] { width: 100%; accent-color: #9F4C1A; }
.uhr-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.uhr-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.uhr-col { border: 1px solid var(--color-divider); border-radius: 12px; padding: 14px; display: grid; gap: 12px; margin: 0; } .uhr-col legend { font-weight: 700; padding: 0 6px; }
.uhr-out { display: grid; gap: 6px; } .uhr-out p { margin: 0; } .uhr-out ul { margin: 4px 0 8px; padding-left: 20px; } .uhr-out li { margin: 4px 0; } .uhr-out small, .uhr-check small { display: block; opacity: .7; font-size: 13px; }
.uhr-k { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9F4C1A; margin: 0; }
.uhr-big { font-family: var(--font-heading); font-weight: 600; font-size: clamp(40px, 6vw, 68px) !important; line-height: 1 !important; color: #1A424B; margin: 0; }
.uhr-big small { font-size: .38em; margin-left: 8px; color: inherit; opacity: .8; }
html[data-theme="dark"] .uhr-big { color: #8fc3ca; }
.uhr-chart { width: 100%; height: auto; } .uhr-chart rect { fill: color-mix(in srgb, #1A424B 55%, transparent); transition: height .3s ease, y .3s ease; } .uhr-chart rect.hi { fill: #9F4C1A; }
.uhr-chart .ax { stroke: var(--color-divider); } .uhr-chart text { font: 600 11px/1 var(--font-body, system-ui); fill: currentColor; opacity: .7; }
html[data-theme="dark"] .uhr-chart rect { fill: color-mix(in srgb, #8fc3ca 60%, transparent); }
.uhr-bars { display: grid; gap: 10px; } .uhr-bars div { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.uhr-bars i { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #1A424B, #9F4C1A); transition: width .4s cubic-bezier(.16,1,.3,1); }
.uhr-range-track { position: relative; height: 16px; border-radius: 999px; background: color-mix(in srgb, #1A424B 16%, transparent); margin: 18px 0 6px; }
.uhr-range-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, #1A424B 45%, transparent); transition: width .35s ease; }
.uhr-range-track b, .uhr-range-track em { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #1A424B; border: 3px solid var(--color-bg); transition: left .35s cubic-bezier(.16,1,.3,1); }
.uhr-range-track em { background: #9F4C1A; } .uhr-range-lab { display: flex; justify-content: space-between; font-size: 13px; opacity: .75; }
.uhr-meter { height: 8px; border-radius: 999px; background: color-mix(in srgb, #1A424B 14%, transparent); overflow: hidden; } .uhr-meter.big { height: 12px; }
.uhr-meter i { display: block; height: 100%; width: 0; background: #1A424B; border-radius: inherit; transition: width .4s cubic-bezier(.16,1,.3,1); } .uhr-meter.mid i { background: #b8862b; } .uhr-meter.bad i { background: #9F4C1A; }
.uhr-opts { display: grid; gap: 10px; } .uhr-opt { text-align: left; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--color-divider); background: var(--color-bg); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.uhr-opt:hover { border-color: #9F4C1A; transform: translateX(3px); } .uhr-back { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; justify-self: start; padding: 0; font: inherit; opacity: .75; }
.uhr-check, .uhr-yn { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: c; }
.uhr-check li label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--color-divider); cursor: pointer; }
.uhr-check input { width: 20px; height: 20px; accent-color: #1A424B; margin-top: 2px; } .uhr-check li:has(input:checked) b { text-decoration: line-through; opacity: .6; }
.uhr-check li.uhr-na, .uhr-yn li.uhr-na { opacity: .38; } .uhr-check li.uhr-na label { cursor: default; }
.uhr-yn li { border: 1px solid var(--color-divider); border-radius: 10px; padding: 12px 14px; } .uhr-yn p { margin: 0 0 8px; font-weight: 600; } .uhr-yn [role=radiogroup] { display: flex; flex-wrap: wrap; gap: 14px; } .uhr-yn input { accent-color: #1A424B; }
.uhr-mail { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; } @media (max-width: 600px) { .uhr-mail { grid-template-columns: 1fr 1fr; } .uhr-mail .uhr-f { grid-column: 1 / -1; } .uhr-bars div { grid-template-columns: 1fr auto; } .uhr-bars i { grid-column: 1 / -1; grid-row: 2; } }
.uhr-mail .uhr-form-msg { grid-column: 1 / -1; margin: 0; font-size: 14px; }
@media print { .nav, footer, #uhr-pill, #uhr-pal, .uhr-mail, .uhr-offer { display: none !important; } body::after { display: none; } }

/* Glossary hover cards */
#uhr-gtip { position: absolute; z-index: 2147483050; max-width: 340px; padding: 14px 16px; border-radius: 12px; background: #1A424B; color: #fff; font: 14px/1.5 var(--font-body, system-ui); box-shadow: 0 20px 40px -20px rgba(0,0,0,.55); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
#uhr-gtip.on { opacity: 1; transform: none; } #uhr-gtip b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #f0b58f; margin-bottom: 4px; }
a.uhr-term { text-decoration-style: dotted; text-underline-offset: 3px; }

/* Bay Area salary map */
.uhr-map-ctl { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: space-between; } .uhr-map-ctl .uhr-f { min-width: 220px; flex: 1 1 220px; }
.uhr-seg { display: inline-flex; border: 1px solid var(--color-divider); border-radius: 999px; padding: 3px; gap: 2px; }
.uhr-seg button { border: 0; background: none; color: inherit; font: 600 13px/1 var(--font-body, system-ui); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.uhr-seg button[aria-checked="true"] { background: #1A424B; color: #fff; }
.uhr-map-svg { width: 100%; height: auto; overflow: visible; }
.uhr-map-svg .sea { fill: color-mix(in srgb, #1A424B 10%, transparent); } .uhr-map-svg .bay { fill: color-mix(in srgb, #1A424B 16%, transparent); stroke: color-mix(in srgb, #1A424B 30%, transparent); stroke-width: 1; }
.uhr-map-svg .col { cursor: pointer; outline: none; } .uhr-map-svg .col .t { fill: url(#uhrMapTop); } .uhr-map-svg .col .f { fill: #143740; } .uhr-map-svg .col .s { fill: #0e2a31; }
.uhr-map-svg .col:hover .t, .uhr-map-svg .col:focus-visible .t, .uhr-map-svg .col.on .t { fill: #c0662c; } .uhr-map-svg .col:hover .f, .uhr-map-svg .col:focus-visible .f, .uhr-map-svg .col.on .f { fill: #9F4C1A; } .uhr-map-svg .col:hover .s, .uhr-map-svg .col:focus-visible .s, .uhr-map-svg .col.on .s { fill: #7a3913; }
.uhr-map-svg .col.na polygon { fill: color-mix(in srgb, currentColor 22%, transparent) !important; }
.uhr-map-svg text { fill: currentColor; font-family: var(--font-body, system-ui); } .uhr-map-svg .v { font-weight: 800; font-size: 14px; } .uhr-map-svg .n { font-weight: 600; font-size: 11px; opacity: .72; }
html[data-theme="dark"] .uhr-map-svg .col .f { fill: #2c6a75; } html[data-theme="dark"] .uhr-map-svg .col .s { fill: #1f4f58; } html[data-theme="dark"] .uhr-map-svg .sea { fill: rgba(143,195,202,.07); } html[data-theme="dark"] .uhr-map-svg .bay { fill: rgba(143,195,202,.13); }
.uhr-band { position: relative; height: 14px; border-radius: 999px; background: color-mix(in srgb, #1A424B 14%, transparent); margin: 10px 0 4px; }
.uhr-band i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, #1A424B 55%, transparent); } .uhr-band b { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #9F4C1A; border: 3px solid var(--color-bg); }
.uhr-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.uhr-rank button, .uhr-rank li.ca { width: 100%; display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: inherit; font: 14px/1.2 var(--font-body, system-ui); text-align: left; cursor: pointer; }
.uhr-rank button:hover { border-color: var(--color-divider); } .uhr-rank i { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #1A424B, #9F4C1A); transition: width .5s cubic-bezier(.16,1,.3,1); } .uhr-rank li.ca { grid-template-columns: 1fr auto; opacity: .75; cursor: default; border-top: 1px dashed var(--color-divider); border-radius: 0; }
.uhr-src { font-size: 12px; opacity: .65; margin: 0; }
@media (max-width: 600px) { .uhr-seg { width: 100%; } .uhr-seg button { flex: 1; padding: 10px 6px; } .uhr-rank button { grid-template-columns: 1fr auto; } .uhr-rank i { grid-column: 1 / -1; grid-row: 2; } .uhr-map-svg .n { font-size: 21px; } .uhr-map-svg .v { font-size: 25px; } }
.uhr-changed { font-size: 14px; line-height: 1.5; padding: 10px 14px; border-left: 3px solid #9F4C1A; background: color-mix(in srgb, #9F4C1A 7%, transparent); border-radius: 0 10px 10px 0; margin: 0 0 24px; }
html[data-theme="dark"] .uhr-map-svg .col:hover .f, html[data-theme="dark"] .uhr-map-svg .col:focus-visible .f, html[data-theme="dark"] .uhr-map-svg .col.on .f { fill: #9F4C1A; } html[data-theme="dark"] .uhr-map-svg .col:hover .s, html[data-theme="dark"] .uhr-map-svg .col:focus-visible .s, html[data-theme="dark"] .uhr-map-svg .col.on .s { fill: #7a3913; }

/* Ask Mac's playbook */
#uhr-pal li.ask a i { background: #9F4C1A; color: #fff; }
#uhr-pal .ans:empty { display: none; }
#uhr-pal .ans { max-height: 46vh; overflow: auto; border-bottom: 1px solid var(--color-divider); }
.uhr-ask { padding: 16px 22px; font: 15px/1.6 var(--font-body, system-ui); } .uhr-ask p { margin: 0 0 10px; } .uhr-ask ul { margin: 0 0 10px; padding-left: 20px; }
.uhr-ask a { color: #9F4C1A; text-decoration: underline; text-underline-offset: 3px; } html[data-theme="dark"] .uhr-ask a { color: #f0b58f; }
.uhr-ask .uhr-ask-note { font-size: 12px; opacity: .7; margin: 12px 0 0; }
.uhr-ask-wait { padding: 16px 22px; margin: 0; opacity: .7; animation: uhr-pulse 1.2s ease-in-out infinite; } @keyframes uhr-pulse { 50% { opacity: .35; } }
#uhr-pal .uhr-ask ul { list-style: disc; max-height: none; overflow: visible; padding: 0 0 0 20px; }
#uhr-pal li.ask a i { align-self: start; justify-self: start; padding: 3px 8px; border-radius: 6px; height: auto; }

/* Site network */
.uhr-net { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 22px 0 0; font: 600 13px/1.4 var(--font-body, system-ui); letter-spacing: .04em; }
.uhr-net span { text-transform: uppercase; opacity: .6; font-size: 11px; letter-spacing: .1em; }
.uhr-net a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #9F4C1A; }
.uhr-bridge { margin: 28px 0; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--color-divider); background: color-mix(in srgb, #9F4C1A 6%, transparent); } .uhr-bridge p { margin: 4px 0; } .uhr-bridge a { font-weight: 700; font-size: 18px; } .uhr-bridge small { opacity: .7; }

/* 1.1.5 image frames: photo-only frames hug the photo; one caption style */
main [style*="display: grid"] > figure:not(:has(:is(p, h1, h2, h3, h4, ul, ol, a, button, div, table, form))),
main [style*="display: grid"] > .blueprint:not(:has(:is(p, h1, h2, h3, h4, ul, ol, a, button, div, table, form))) { height: auto; align-self: start; }
.blueprint > figcaption, figure > figcaption.uhr-ai-caption { margin: 0 !important; padding: 8px 12px !important; font-size: 12px !important; line-height: 18px !important; border-top: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); }

/* Articles library filter */
.uhr-off { display: none !important; }
[data-uhr-lib-lane] { font: inherit; }

/* Homepage layout: founder card and summary live in the left rail on wide screens;
   phones and tablets get a compact founder strip above the doors and the summary at the end. */
@media (min-width: 1100px) { .uhr-m-only { display: none !important; } #uhr-gate { padding-top: 48px !important; } }
@media (max-width: 1099.98px) { .uhr-d-only { display: none !important; } #uhr-gate { padding-top: 8px !important; } }

/* 1.1.22 heading scale: four tiers applied site-wide so sections line up page to page.
   Page title 68px, section heading 40px, card heading 26px, item heading 22px on desktop;
   40 / 28 / 22 / 20 on phones. Homepage lead statements (.uhr-lead) and article bodies keep their own sizes. */
main h1:not(.uhr-lead) { font-size: clamp(40px, 4.8vw, 68px) !important; line-height: 1.04 !important; }
main h2:not(.uhr-lead):not(.blueprint *):not(article *):not(.uhr-post *):not(.uhr-tool *) { font-size: clamp(28px, 2.9vw, 40px) !important; line-height: 1.08 !important; }
main .blueprint h2:not(.uhr-lead), main article.blueprint h2 { font-size: clamp(22px, 1.9vw, 26px) !important; line-height: 1.1 !important; }
main .blueprint h3, main article.blueprint h3 { font-size: clamp(20px, 1.6vw, 22px) !important; line-height: 1.12 !important; }
main h3:not(.blueprint *):not(article *):not(.uhr-post *):not(.uhr-tool *):not(.uhr-ai-col *) { font-size: clamp(20px, 1.6vw, 22px) !important; line-height: 1.12 !important; }
main h1, main h2, main h3 { text-wrap: balance; }

/* Captions sit above the scroll-parallax zoom so notes like "AI-altered image" always show. */
main figure > figcaption { position: relative; z-index: 2; background: var(--color-bg, #f2f2f3); }
main figure.blueprint { overflow: hidden; }

/* Side rails beside centered pages */
.uhr-rail { position: fixed; z-index: 40; width: 172px; display: none; flex-direction: column; gap: 14px; transition: top .25s ease; }
.uhr-rail.on { display: flex; }
.uhr-rail.short .uhr-rail-card:nth-child(2) { display: none; }
.uhr-rail-card { display: flex; flex-direction: column; padding: 0 0 12px; text-decoration: none; color: var(--color-text); background: var(--color-bg, #f2f2f3); overflow: hidden; }
.uhr-rail-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 10px; }
.uhr-rail-card .k { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-700); padding: 0 12px; margin: 0 0 4px; }
.uhr-rail-card .t { font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; padding: 0 12px; }
.uhr-rail-card .p { font-size: 13px; font-weight: 600; padding: 4px 12px 8px; }
.uhr-rail-card .go { font-size: 12.5px; font-weight: 600; color: var(--color-accent-700); padding: 0 12px; }
.uhr-rail-card:hover .go { text-decoration: underline; text-underline-offset: 3px; }
.uhr-rail-card:focus-visible { outline: 3px solid #9F4C1A; outline-offset: 3px; }
@media (max-width: 1099.98px) { .uhr-rail { display: none !important; } }
@media print { .uhr-rail { display: none !important; } }

/* 1.1.46: floating newsletter button stays on desktop; on phones it covered body text and menu items. */
@media (max-width: 700px) { .uhr-fab { display: none !important; } }
/* 1.1.46: burnt orange text reads 3.0:1 on the dark background; use the light accent there. */
html[data-theme="dark"] .uhr-gl-coined, html[data-theme="dark"] .uhr-ai-real .uhr-ai-label, html[data-theme="dark"] .uhr-x-note .uhr-ai-label { color: #f0b58f; }
html[data-theme="dark"] p .uhr-gl-coined, html[data-theme="dark"] span.uhr-gl-coined { color: #fff; }
[id] { scroll-margin-top: 96px; }

/* 1.1.49: samples and outcomes */
.uhr-samples{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:28px;align-items:start}
.uhr-sample{margin:24px 0}.uhr-samples .uhr-sample{margin:0}
.uhr-sample a{display:block;border:1px solid var(--color-divider,#d6dcdd);background:#F6F3EE;transition:transform .15s ease,box-shadow .15s ease}
.uhr-sample a:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(26,66,75,.14)}
.uhr-sample img{display:block;width:100%;height:auto}
.uhr-sample figcaption{font-size:14px;line-height:22px;color:var(--color-text-muted,#5b6a6e);margin:8px 0 0}
.uhr-outcomes{margin:0;padding-left:20px}.uhr-outcomes li{font-size:16px;line-height:27px;margin:0 0 8px}
html[data-theme="dark"] .uhr-sample a{border-color:#3a4b50}
.uhr-sample a{overflow:hidden}.uhr-sample img,.uhr-sample a:hover img{transform:none!important;object-fit:contain!important;height:auto!important;aspect-ratio:auto!important;max-width:100%!important}
/* 1.1.54: tool data readable without JavaScript */
.uhr-data{margin:32px 0 0;border:1px solid var(--color-divider,#d6dcdd);padding:14px 18px;background:var(--color-bg)}
.uhr-data summary{cursor:pointer;font-weight:600;font-size:16px;line-height:26px}
.uhr-data h3{font-family:var(--font-heading);text-transform:uppercase;font-size:20px;margin:24px 0 8px}
.uhr-data-scroll{overflow-x:auto}.uhr-data table{border-collapse:collapse;width:100%;font-size:14px;min-width:560px}
.uhr-data th,.uhr-data td{border-bottom:1px solid var(--color-divider,#d6dcdd);padding:6px 8px;text-align:left}
.uhr-data thead th{background:#1A424B;color:#fff}.uhr-data td{font-variant-numeric:tabular-nums}
.uhr-data li{margin:0 0 8px;line-height:26px}.uhr-data-note{font-size:14px;color:var(--color-text-muted,#5b6a6e);margin:16px 0 0}
@media (max-width: 767.98px) { main .blueprint a { min-height: 24px; } } /* 1.1.66: tap targets at the 24px minimum */
/* 1.1.75: dark-mode contrast. Sample captions fell to 3.16:1 and the /ai/ byline to 2.99:1 on #16181a. */
html[data-theme="dark"] .uhr-sample figcaption { color: #a9b4b7; }
html[data-theme="dark"] .uhr-x-id { color: #e39a66; }

/* 1.1.84: not-an-attorney disclaimer, bold red at the end of every article, before the product ads. */
.uhr-disclaimer { font-weight: 700; color: #B42318; font-size: 16px; line-height: 26px; margin: 32px 0 24px; }
html[data-theme="dark"] .uhr-disclaimer { color: #FF8A80; }
/* 1.1.86: footer disclaimer, bold red. */
.uhr-disclaimer-foot { font-weight: 700; color: #B42318; }
html[data-theme="dark"] .uhr-disclaimer-foot { color: #FF8A80; }
