﻿/* Shared individual-sign profile styles. */
#sign-view.profile-active { padding: 0; margin: 0; }
#sign-view.profile-active > .back-link, #sign-view.profile-active > .section-nav, #sign-view.profile-active > .sign-heading, #sign-view.profile-active > .notice { display: none; }
#profile-preview { background: #fff; border-radius: 10px; overflow: hidden; }
.pr-hero { position: relative; min-height: 245px; background: #071a35; color: white; isolation: isolate; }
.pr-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pr-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#061329d9,transparent); z-index: -1; }
.pr-hero-copy { padding: 24px 30px; }
.pr-hero-copy > p:first-child { font-size: 12px; }
.pr-hero a { color: white; text-decoration: none; }
.pr-title-row { display: flex; align-items: center; gap: 18px; }
.pr-title-row h1 { font-size: 46px; margin: 10px 0 0; line-height: 1.15; }
.pr-title-row h1:focus { outline: none; }
.pr-title-row p { margin: 8px 0; font-size: 18px; }
.pr-intro { max-width: 600px; font-size: 14px; line-height: 1.6; }
.pr-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 22px; border-bottom: 1px solid #e2eaf7; }
.pr-nav a { border: 1px solid #dce7f8; border-radius: 6px; padding: 11px 15px; font-size: 12px; text-decoration: none; }
.pr-nav a[aria-current] { background: #0866ed; color: white; border-color: #0866ed; }
.pr-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 22px; font-size: 12px; }
.pr-switch select { padding: 8px 12px; border: 1px solid #dce7f8; border-radius: 6px; background: white; }
.pr-switch span { color: #53698b; }
.pr-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; padding: 0 22px 24px; }
.pr-left, #pr-overview, #pr-forecast-slot { min-width: 0; }
#pr-overview { display: grid; gap: 18px; }
.pr-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 14px; background: #f7faff; border-radius: 9px; }
.pr-panel { min-width: 0; border: 1px solid #dce7f8; border-radius: 9px; padding: 18px; background: white; }
#profile-preview h2 { font-size: 21px; margin: 0 0 12px; }
#profile-preview h3 { font-size: 14px; margin: 8px 0; }
#profile-preview p { line-height: 1.65; }
.pr-panel p { font-size: 13px; color: #53698b; }
.pr-kicker { font-size: 11px !important; color: #7e6497 !important; }
.pr-description { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 20px; align-items: center; }
.pr-description figure { position: relative; margin: 0; align-self: stretch; min-height: 220px; overflow: hidden; border-radius: 7px; }
.pr-art { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: left center; }
.pr-art-sign { position: absolute; bottom: 15px; right: 15px; }
.pr-traits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pr-traits .pr-panel { padding: 14px; }
.pr-traits article > span { display: block; width: 40px; height: 40px; text-align: center; line-height: 40px; background: #f1eaff; border-radius: 50%; font-size: 26px; color: #854bc6; }
.pr-traits p { font-size: 12px; margin-bottom: 0; }
.pr-themes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.pr-themes article > div { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 14px; }
.pr-themes img { width: 115px; height: 150px; object-fit: cover; object-position: left center; border-radius: 6px; }
.pr-themes p { margin-top: 0; }
.pr-themes a { color: #0866ed; font-size: 12px; text-decoration: none; }
.pr-people { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pr-people article { border: 1px solid #e2eaf7; border-radius: 6px; overflow: hidden; padding: 0 10px 12px; }
.pr-people article > div { background: #f0edfa; margin: 0 -10px 10px; padding: 20px; text-align: center; }
.pr-people small, .pr-cultures small { font-size: 10px; color: #7e6497; }
.pr-cultures { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 20px; align-items: center; }
.pr-cultures > img { width: 100%; height: 150px; object-fit: cover; object-position: left center; border-radius: 6px; }
#profile-preview .pr-sidebar h2 { font-size: 17px; }
.pr-sidebar dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); font-size: 12px; margin: 0; }
.pr-sidebar dt, .pr-sidebar dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #edf2fa; line-height: 1.6; }
.pr-sidebar dt { color: #53698b; }
.pr-sidebar dd { padding-left: 8px; }
.pr-strengths, .pr-challenges { padding: 12px; border-radius: 7px; }
.pr-strengths { background: #edf9f1; }
.pr-challenges { background: #fff0f4; margin-top: 12px; }
.pr-sidebar ul { padding-left: 18px; font-size: 12px; line-height: 1.8; color: #53698b; }
.pr-sidebar li { margin: 7px 0; }
.pr-jobs { list-style: none; padding: 0 !important; }
.pr-jobs li { padding: 8px 0; border-bottom: 1px solid #edf2fa; }
.pr-sidebar > section:last-child { flex: 1; }
#pr-forecast-slot .sign-content { display: block; }
#pr-forecast-slot .content-panel { margin: 0; }
@media(max-width:1200px) {
  .pr-traits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pr-description { grid-template-columns: minmax(0,1fr); }
  .pr-description figure { min-height: 200px; }
  .pr-themes { grid-template-columns: minmax(0,1fr); }
  .pr-people { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pr-cultures { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:800px) {
  .pr-layout { grid-template-columns: minmax(0,1fr); padding: 0 16px 20px; }
  .pr-nav, .pr-switch { padding: 12px 16px; }
  .pr-hero-copy { padding: 20px; }
  .pr-title-row h1 { font-size: 36px; }
}
@media(max-width:420px) {
  .pr-title-row { gap: 10px; }
  .pr-title-row > img { width: 58px; height: 58px; }
  .pr-title-row h1 { font-size: 30px; overflow-wrap: anywhere; }
  .pr-title-row p { font-size: 14px; }
  .pr-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pr-nav a { padding: 9px 4px; text-align: center; font-size: 11px; }
  .pr-panel { padding: 14px; }
  .pr-themes article > div { grid-template-columns: 85px minmax(0,1fr); gap: 10px; }
  .pr-themes img { width: 85px; height: 140px; }
}

/* The same portal header styling applies while an individual profile is visible. */
body:has(#sign-view.profile-active:not([hidden])) { background: linear-gradient(#fff,#f7fbff); }
body:has(#sign-view.profile-active:not([hidden])) .wrap { max-width: 1536px; padding-left: 38px; padding-right: 38px; }
body:has(#sign-view.profile-active:not([hidden])) .header-inner { height: 56px; min-height: 56px; flex-direction: row; padding-top: 0; padding-bottom: 0; }
body:has(#sign-view.profile-active:not([hidden])) .brand > span { width: 35px; height: 35px; border: 0; padding: 0; display: grid; place-items: center; background: #0962e7; border-radius: 7px; color: white; font-size: 16px; }
body:has(#sign-view.profile-active:not([hidden])) .brand { gap: 11px; }
body:has(#sign-view.profile-active:not([hidden])) .brand strong { font-size: 19px; letter-spacing: .4px; }
body:has(#sign-view.profile-active:not([hidden])) .header-inner nav { font-size: 13px; gap: 25px; }
body:has(#sign-view.profile-active:not([hidden])) .demo-banner { font-size: 10px; padding: 4px 15px; }
#profile-preview h2 { font-family: Arial,Helvetica,sans-serif; font-weight: 700; }
#profile-preview .pr-switch select { width: 180px; margin: 0; min-height: 38px; }
@media(max-width:1150px) {
  body:has(#sign-view.profile-active:not([hidden])) .header-inner nav { gap: 13px; font-size: 11px; }
  body:has(#sign-view.profile-active:not([hidden])) .brand strong { font-size: 14px; }
}
@media(max-width:800px) {
  body:has(#sign-view.profile-active:not([hidden])) .wrap { padding-left: 12px; padding-right: 12px; }
  body:has(#sign-view.profile-active:not([hidden])) .header-inner { height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  body:has(#sign-view.profile-active:not([hidden])) .header-inner nav { width: 100%; gap: 14px; flex-wrap: wrap; line-height: 1.8; }
}

/* Trial limited to Gemini overview character card. */
#profile-preview .pr-character-character { display: block; --character-height: 320px; }
#profile-preview .pr-character-character figure { float: left; width: 220px; height: var(--character-height); min-height: 0; margin: 0 22px 14px 0; }
#profile-preview .pr-character-character .pr-art { object-fit: cover; }
#profile-preview .pr-character-copy { height: var(--character-height); overflow: hidden; position: relative; }
#profile-preview .pr-character-copy::after { content: ''; position: absolute; inset: auto 0 0; height: 65px; background: linear-gradient(transparent,white); pointer-events:none; }
#profile-preview .pr-character-character.is-expanded .pr-character-copy { height: auto; overflow: visible; }
#profile-preview .pr-character-character.is-expanded .pr-character-copy::after { display:none; }
#profile-preview .pr-character-toggle { display:block; clear:both; margin:18px auto 0; padding:11px 24px; border:0; border-radius:24px; background:#0866ed; color:white; font:inherit; font-weight:700; cursor:pointer; max-width:100%; }
@media(max-width:600px) {
 #profile-preview .pr-character-character figure { float:none; width:100%; height:220px; margin:0 0 18px; }
 #profile-preview .pr-character-copy { height:220px; }
}

#profile-preview .pr-character-title { display:flex; align-items:center; gap:12px; }
#profile-preview .pr-character-title > div { min-width:0; }
#profile-preview .pr-character-symbol { position:static; flex:0 0 48px; width:48px; height:48px; align-self:flex-start; }
@media(max-width:600px) {
 #profile-preview .pr-character-title { gap:9px; }
 #profile-preview .pr-character-symbol { flex-basis:40px; width:40px; height:40px; }
}

/* Visual polish confined to Gemini's overview character card. */
#profile-preview .pr-character-character { border-color:#cbd9ef; border-radius:14px; box-shadow:0 3px 10px rgba(25,55,112,.09); }
#profile-preview .pr-character-character #pr-character-text p { color:#151d35; font-size:15px; line-height:1.65; margin:0 0 16px; }
#profile-preview .pr-character-character #pr-character-text h3 { color:#070e2c; font-size:20px; font-weight:800; line-height:1.3; margin:24px 0 10px; }
#profile-preview .pr-character-character .pr-character-title h2 { color:#070e2c; font-size:25px; font-weight:800; line-height:1.2; margin:0 0 8px; letter-spacing:-.4px; }
#profile-preview .pr-character-character .pr-kicker { color:#283858; font-size:13px; line-height:1.5; margin:0; }
#profile-preview .pr-character-character .pr-character-title { margin-bottom:20px; }
#profile-preview .pr-character-character .pr-character-toggle { background:linear-gradient(180deg,#064ac4,#063197); box-shadow:0 2px 4px rgba(6,49,151,.17); padding:11px 28px; font-size:15px; line-height:1.3; }
#profile-preview .pr-character-character .pr-character-toggle::after { content:''; display:inline-block; width:9px; height:9px; margin:0 0 3px 14px; border-right:3px solid currentColor; border-bottom:3px solid currentColor; transform:rotate(45deg); }
#profile-preview .pr-character-character.is-expanded .pr-character-toggle::after { transform:rotate(225deg); margin-bottom:-2px; }
#profile-preview .pr-character-character .pr-character-toggle:hover { background:#063197; }
#profile-preview .pr-character-character .pr-character-toggle:focus-visible { outline:3px solid #80b5ff; outline-offset:3px; }
@media(max-width:600px) {
 #profile-preview .pr-character-character .pr-character-title h2 { font-size:21px; letter-spacing:-.3px; }
 #profile-preview .pr-character-character #pr-character-text h3 { font-size:19px; }
 #profile-preview .pr-character-character .pr-character-toggle { padding:11px 17px; font-size:14px; }
}
