/* Loaded after the shared theme: one scoped, warm profile design. */
.profile-page { --profile-text:#482633; --profile-muted:#75656b; --profile-border:#eaded3; background:#faf7f2; color:var(--profile-text); }
.profile-topbar { gap:1rem; }
.profile-back { margin-left:auto; display:flex; align-items:center; gap:.55rem; color:var(--profile-muted); font-size:.8rem; font-weight:700; text-decoration:none; }
.profile-back:hover { color:var(--fr-red); }
.profile-root { max-width:1380px; margin:auto; padding:1.8rem clamp(1rem,3vw,3rem) 4rem; }
.profile-root :is(h1,h2,h3,p,strong,span) { overflow-wrap:break-word; }
.profile-root a { transition:color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.profile-root :focus-visible { outline:3px solid var(--fr-red); outline-offset:4px; }
.profile-page.has-side-rail .profile-hero { position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:flex-end; min-height:460px; border:1px solid #79303e; border-radius:24px; background-image:var(--profile-photo); background-size:cover; background-position:center; color:#fff; box-shadow:0 14px 35px #60233116; }
.profile-hero-shade { position:absolute; inset:0; background:linear-gradient(100deg,#361722ed 0%,#491b2bae 60%,#331c2870),linear-gradient(0deg,#2f172a90,transparent); }
.profile-hero-content { position:relative; padding:clamp(1.5rem,4vw,3.5rem); width:100%; }
.profile-status { display:inline-flex; align-items:center; flex-wrap:wrap; max-width:100%; margin-bottom:1.3rem; border:1px solid #ffffff55; border-radius:30px; padding:.45rem .85rem; color:#fff1e4; background:#431c2ca6; font-size:.72rem; font-weight:700; backdrop-filter:blur(8px); }
.profile-status.is-verified { border-color:#eed09a80; color:#ffe1a1; }
.profile-hero-content>p:first-of-type { margin:0 0 .5rem; color:#f5d7a6; font-size:.82rem; }
.profile-hero h1 { max-width:950px; margin:0; color:#fff; font-size:clamp(2rem,3.8vw,3.7rem); line-height:1.12; letter-spacing:-.055em; text-wrap:balance; }
.profile-lede { max-width:750px; margin:1.1rem 0 1.5rem; color:#f4e8e7; font-size:.92rem; line-height:1.65; }
.profile-primary { display:inline-flex; align-items:center; justify-content:space-between; gap:1.6rem; min-height:46px; padding:.75rem 1.1rem; border:1px solid #f4d295; border-radius:12px; background:#f5d18c; color:#4b1c2d; text-decoration:none; font-size:.82rem; font-weight:800; }
.profile-primary:hover { transform:translateY(-2px); background:#ffe4af; box-shadow:0 6px 18px #20101b25; }
.profile-jump-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.25rem 0; padding:.35rem 0; }
.profile-jump-nav a { display:flex; align-items:center; gap:.5rem; min-height:42px; padding:.55rem .9rem; border:1px solid var(--profile-border); border-radius:30px; background:#fffcf8; color:var(--profile-text); font-size:.77rem; font-weight:700; white-space:nowrap; }
.profile-jump-nav a span { color:#a16b25; font:500 .65rem var(--mono); }
.profile-jump-nav a:hover { background:#fff0eb; border-color:#dcadb0; color:var(--fr-red); transform:translateY(-2px); }
.profile-notice { margin:1rem 0; padding:1rem 1.2rem; border:1px solid #ecd6ae; border-left:3px solid var(--fr-gold); border-radius:14px; color:#795523; background:#fff7e8; font-size:.8rem; line-height:1.6; }
.profile-page.has-side-rail .profile-section { margin-top:1.4rem; padding:clamp(1.2rem,2.8vw,2.3rem); border:1px solid var(--profile-border); border-radius:22px; background:#fffdfa; box-shadow:0 6px 24px #62332806; scroll-margin-top:96px; }
.profile-section-heading { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; margin-bottom:1.6rem; }
.profile-section-heading>div { min-width:0; }
.profile-section-heading>div>p { margin:0 0 .55rem; color:var(--fr-red); font:500 .65rem var(--mono); letter-spacing:.06em; text-transform:uppercase; }
.profile-section-heading h2 { max-width:740px; margin:0; color:var(--fr-wine); font-size:clamp(1.55rem,2.4vw,2.35rem); line-height:1.2; letter-spacing:-.045em; text-wrap:balance; }
.profile-section-heading>a { flex-shrink:0; padding:.6rem .8rem; border:1px solid #eadac2; border-radius:10px; color:#865922; background:#fff7e9; font-size:.74rem; font-weight:700; text-decoration:none; }
.profile-section-heading>a:hover { background:#ffecc8; }
.profile-section-heading>p { max-width:360px; margin:0; color:var(--profile-muted); font-size:.8rem; line-height:1.65; }
.profile-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
.profile-page .profile-stat-grid article { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:.75rem; min-width:0; min-height:146px; padding:1.15rem; border:1px solid #efded3; border-radius:16px; background:#fff; box-shadow:none; transition:transform .2s ease,box-shadow .2s ease; }
.profile-stat-grid article:first-child { background:#fff4df; border-color:#eed6a7; }
.profile-stat-grid .profile-stat-index { display:block; color:#a97631; font:500 .62rem var(--mono); }
.profile-stat-grid strong { display:block; max-width:100%; color:var(--fr-red-dark); font-size:clamp(1.5rem,2.8vw,2.5rem); line-height:1.1; letter-spacing:-.05em; }
.profile-stat-grid strong.is-text-value { font-size:clamp(1.1rem,1.5vw,1.5rem); line-height:1.3; letter-spacing:-.025em; }
.profile-stat-grid .profile-stat-label { margin-top:auto; color:var(--profile-muted); font-size:.78rem; line-height:1.4; }
.profile-stat-grid article:hover { transform:translateY(-3px); box-shadow:0 8px 20px #78202f0c; }
.profile-aid-note { display:grid; grid-template-columns:minmax(120px,170px) minmax(0,1fr); align-items:start; gap:1rem; margin:1rem 0 0; padding:1.15rem 1.25rem; border:1px solid #ecd5ac; border-radius:14px; background:linear-gradient(115deg,#fff1d3,#fffbf3); }
.profile-aid-note span { color:#875622; font:500 .65rem/1.6 var(--mono); text-transform:uppercase; }
.profile-aid-note p { margin:0; color:#614235; font-size:.85rem; line-height:1.7; }
.profile-fact-wrap { margin-top:1.8rem; }
.profile-fact-wrap h3 { margin:0 0 1rem; color:var(--fr-wine); font-size:.95rem; font-weight:800; }
.profile-fact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem 1rem; }
.profile-page .profile-fact-grid article { display:flex; flex-direction:column; justify-content:flex-start; gap:.5rem; min-width:0; padding:.95rem 0 .95rem .9rem; border:0; border-left:2px solid #e6c482; border-radius:0; background:transparent; }
.profile-fact-grid span { color:var(--profile-muted); font-size:.75rem; line-height:1.5; }
.profile-fact-grid strong { color:var(--profile-text); font-size:.95rem; line-height:1.5; letter-spacing:-.02em; }
.profile-fineprint { margin:1.2rem 0 0; padding-top:.9rem; border-top:1px dashed var(--profile-border); color:var(--profile-muted); font-size:.72rem; line-height:1.65; }
.profile-policy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:.8rem; }
.profile-page .profile-policy-grid article { min-width:0; padding:1.15rem 1.25rem; border:1px solid #ecdcd1; border-radius:16px; background:#fff; box-shadow:none; transition:transform .2s ease,box-shadow .2s ease; }
.profile-policy-grid article[data-policy-field="aid"] { grid-column:1/-1; border-top:3px solid var(--fr-gold); background:linear-gradient(130deg,#fffaf0,#fff); }
.policy-heading { display:flex; align-items:center; gap:.75rem; }
.policy-icon { flex-shrink:0; display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#fff0eb; color:var(--fr-red); }
.policy-icon svg { width:19px; height:19px; }
.policy-heading h3 { margin:0; color:var(--fr-wine); font-size:.88rem; line-height:1.4; }
.profile-policy-grid .policy-status { display:block; margin:.85rem 0 0; color:#876d60; font-size:.75rem; font-weight:700; line-height:1.5; }
.profile-policy-grid .policy-status::before { content:""; display:inline-block; width:6px; height:6px; margin:0 .4rem .05rem 0; border-radius:50%; background:#c9a363; }
.profile-policy-grid .policy-status.is-verified { color:#27624d; }
.profile-policy-grid .policy-status.is-verified::before { background:#36846a; }
.profile-policy-grid article[data-policy-status="conflict"] { border-color:#e2a4aa; background:#fff7f5; }
.profile-policy-grid article[data-policy-status="conflict"] .policy-status { color:var(--fr-red); }
.profile-policy-grid p { margin:.7rem 0 .9rem; color:var(--profile-text); font-size:.87rem; line-height:1.75; }
.profile-policy-grid article[data-policy-status="pending"] p { color:var(--profile-muted); font-size:.8rem; margin-bottom:0; }
.profile-policy-grid article>a { display:inline-flex; width:fit-content; margin-top:.3rem; padding:.4rem .65rem; border:1px solid #e9d5b6; border-radius:8px; color:#815321; background:#fff8ed; font-size:.7rem; font-weight:700; text-decoration:none; }
.profile-policy-grid article>a:hover { background:#ffedc9; }
.profile-policy-grid article:hover { transform:translateY(-2px); box-shadow:0 7px 18px #78202f08; }
.policy-conflict { margin:.75rem 0; padding:.8rem; border-left:3px solid var(--fr-red); border-radius:6px; color:#87323e; background:#ffe9e6; font-size:.8rem; }
.policy-evidence { margin-top:.85rem; padding:.75rem; border:1px solid #ecdfcd; border-radius:10px; background:#fffbf4; }
.policy-evidence summary { cursor:pointer; color:#865c2c; font-size:.72rem; font-weight:700; }
.policy-evidence blockquote { margin:.75rem 0; padding-left:.75rem; border-left:2px solid var(--fr-gold); color:var(--profile-muted); font-size:.78rem; line-height:1.65; overflow-wrap:anywhere; }
.policy-evidence small,.policy-method { color:var(--profile-muted); font-size:.65rem; }
.policy-method { display:block; margin-top:.65rem; }
.policy-evidence[open] blockquote { animation:profile-evidence-in .2s ease both; }
.profile-checklist-status { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; color:var(--profile-muted); font-size:.75rem; }
.profile-checklist-status strong { color:var(--fr-red); }
.profile-checklist-status progress { width:100px; height:6px; accent-color:var(--fr-red); border:0; border-radius:10px; overflow:hidden; background:#f1e5dc; }
.profile-checklist-status progress::-webkit-progress-bar { background:#f1e5dc; }
.profile-checklist-status progress::-webkit-progress-value { background:var(--fr-red); }
.profile-checklist-status progress::-moz-progress-bar { background:var(--fr-red); }
.profile-checklist ol { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; padding:0; margin:0; }
.profile-checklist li { min-width:0; }
.profile-checklist label { display:flex; align-items:center; gap:.85rem; min-height:74px; height:100%; padding:.9rem 1rem; border:1px solid var(--profile-border); border-radius:12px; background:#fff; cursor:pointer; transition:background .18s ease,border-color .18s ease; }
.profile-checklist label:hover { background:#fff8ef; border-color:#dbbb88; }
.profile-checklist input { flex-shrink:0; width:18px; height:18px; margin:0; accent-color:var(--fr-red); cursor:pointer; }
.profile-checklist-text { color:var(--profile-text); font-size:.85rem; line-height:1.55; }
.profile-checklist li.is-complete label { background:#fff4ed; border-color:#e4b9b0; }
.profile-checklist li.is-complete .profile-checklist-text { color:#8b5d64; }
.profile-checklist-note { margin:.85rem 0 0; color:var(--profile-muted); font-size:.69rem; }
.profile-gallery { display:grid; grid-template-columns:1.2fr .8fr; grid-template-rows:1fr 1fr; gap:.75rem; min-height:450px; }
.gallery-image { position:relative; isolation:isolate; display:block; min-height:220px; overflow:hidden; border-radius:16px; background:#eadfd7; }
.gallery-image::before { content:""; position:absolute; inset:0; z-index:-1; background-image:linear-gradient(0deg,#341c2bc4,transparent 55%),var(--gallery); background-size:cover; background-position:center; transition:transform .35s ease; }
.gallery-image:first-child,.gallery-image:nth-child(2):last-child { grid-row:1/-1; }
.gallery-image:hover::before { transform:scale(1.035); }
.gallery-image span { position:absolute; bottom:1rem; left:1rem; right:1rem; width:fit-content; max-width:calc(100% - 2rem); padding:.35rem .65rem; border:1px solid #ffffff44; border-radius:8px; background:#38203185; color:#fff; font-size:.65rem; }
.profile-gallery.is-single { display:block; min-height:0; }
.profile-gallery.is-single .gallery-image { min-height:400px; }
.profile-source-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.profile-page.has-side-rail .profile-source-list a { display:flex; align-items:center; justify-content:space-between; gap:.85rem; min-width:0; min-height:60px; padding:.9rem 1rem; border:1px solid var(--profile-border); border-radius:12px; background:#fff; color:var(--profile-text); font-size:.8rem; font-weight:600; text-decoration:none; }
.profile-source-list a b { flex-shrink:0; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:var(--fr-red); background:#fff0eb; }
.profile-page.has-side-rail .profile-source-list a:hover { background:#fff7eb; border-color:#ddbd88; transform:translateY(-2px); text-decoration:none; }
.profile-missing { min-height:65vh; display:grid; place-content:center; text-align:center; }
.profile-missing>span { color:var(--fr-red); font:800 6rem/1 var(--sans); }
.profile-missing h1 { font-size:2rem; }
.profile-missing p { color:var(--profile-muted); }
.profile-loading { min-height:55vh; display:grid; place-items:center; color:var(--profile-muted); font-size:.85rem; }
.profile-section.is-revealed { animation:profile-section-in .4s cubic-bezier(.2,.7,.3,1) both; }
@keyframes profile-section-in { from { opacity:.6; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes profile-evidence-in { from { opacity:.4; transform:translateY(3px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:1000px) {
  .profile-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-fact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
  .profile-topbar { flex-wrap:wrap; }
  .profile-back { order:3; width:100%; padding-bottom:.65rem; }
  .profile-root { padding-top:1rem; }
  .profile-page.has-side-rail .profile-hero { min-height:410px; border-radius:18px; }
  .profile-hero h1 { font-size:clamp(1.8rem,7vw,2.8rem); }
  .profile-section-heading { flex-direction:column; align-items:flex-start; gap:.75rem; margin-bottom:1.3rem; }
  .profile-section-heading h2 { font-size:1.65rem; }
  .profile-page.has-side-rail .profile-section { scroll-margin-top:135px; border-radius:18px; }
  .profile-jump-nav { gap:.4rem; }
  .profile-jump-nav a { font-size:.7rem; padding:.5rem .65rem; }
  .profile-policy-grid,.profile-checklist ol,.profile-source-list { grid-template-columns:1fr; }
  .profile-aid-note { grid-template-columns:1fr; gap:.4rem; }
  .profile-stat-grid { gap:.6rem; }
  .profile-page .profile-stat-grid article { min-height:140px; padding:.9rem; }
  .profile-stat-grid strong { font-size:1.9rem; }
  .profile-stat-grid strong.is-text-value { font-size:1.15rem; }
  .profile-fact-grid { gap:.5rem; }
  .profile-fact-grid strong { font-size:.85rem; }
  .profile-gallery { display:grid; min-height:0; grid-template-columns:1fr; grid-template-rows:auto; }
  .gallery-image,.gallery-image:first-child,.gallery-image:nth-child(2):last-child { min-height:250px; grid-row:auto; }
  .profile-gallery.is-single .gallery-image { min-height:280px; }
}
@media (prefers-reduced-motion:reduce) {
  html:has(.profile-page) { scroll-behavior:auto; }
  .profile-root *, .profile-root *::before { transition:none !important; animation:none !important; }
  .profile-root a:hover,.profile-root article:hover,.gallery-image:hover::before { transform:none; }
}
