/* Family profile: shared Bootstrap-compatible layout; editorial art is opt-in. */
.family-profile {
    --family-accent: var(--faction-accent, #d7bd71);
    --family-muted: var(--ff-muted);
    --family-heading-font: Georgia, "Times New Roman", serif;
    color: var(--ff-text);
    overflow: clip;
}
.family-profile .eyebrow { color: var(--family-accent); font-family: inherit; font-size: .6875rem; font-weight: 750; letter-spacing: .16em; margin-bottom: 12px; }
.family-profile h2 { font-family: var(--family-heading-font); font-size: clamp(1.9rem, 3.2vw, 2.85rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 10px; }
.family-profile h3 { font-size: 1rem; font-weight: 700; }
.family-profile .btn { min-height: 42px; font-size: .8125rem; padding: 9px 18px; }
.family-profile .btn .icon { width: 15px; height: 15px; flex-basis: 15px; }
.family-art { display: block; width: 100%; height: 100%; overflow: hidden; object-fit: cover; }
.family-scroll-section { scroll-margin-top: calc(var(--family-header-height, 88px) + 74px); }
.family-hero { position: relative; isolation: isolate; background: radial-gradient(ellipse at 20% 30%, color-mix(in srgb, var(--family-accent) 12%, transparent), transparent 70%), #0c0e11; border-bottom: 1px solid #34332d; color: #f0f1f4; }
.family-hero-art { position: absolute; inset: 0; width: 100%; z-index: -2; }
.family-hero-art .family-art { opacity: .88; }
.family-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0c0e11 7%, #0c0e11e8 39%, #0c0e1155 64%, #0c0e1100 86%), linear-gradient(0deg, #0c0e11c9, transparent 24%); }
.family-hero-inner { padding-block: 20px 0; }
.family-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: #adb3bd; font-size: .6875rem; margin-bottom: 46px; }
.family-breadcrumb a:hover { color: #fff; }
.family-hero-identity { display: flex; align-items: stretch; gap: 27px; padding-bottom: 38px; }
.family-crest { flex: 0 0 183px; width: 183px; height: 216px; filter: drop-shadow(0 8px 20px #0007); }
.family-crest .family-art { border-radius: 6px; }
.family-crest img.family-art { object-fit: contain; }
.family-monogram { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--family-accent); border-radius: 16px; background: color-mix(in srgb, var(--family-accent) 10%, #101319); color: var(--family-accent); font-size: 3rem; font-weight: 800; }
.family-hero-copy { min-height: 216px; max-width: 580px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 6px; }
.family-hero-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.family-hero-labels .eyebrow { color: #e5e6e9; font-size: .625rem; margin: 0; }
.family-profile .recruitment-pill { min-height: 24px; padding: 4px 9px; font-size: .625rem; gap: 5px; }
.family-profile .recruitment-pill::before { content: none; }
.family-profile-owl.accent-gold { --family-accent: #d7bd71; }
.family-hero .recruitment-pill { background: #12251c; }
.family-hero .status-selective { background: #342916; }
.family-hero .status-closed { background: #24262b; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.family-hero h1 { color: #f5f5f7; margin: 0; font-size: clamp(2rem, 3.7vw, 3.25rem); font-weight: 900; line-height: 1.05; letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; }
.family-motto { color: #dfc57c; font-family: var(--family-heading-font); font-size: clamp(1.1rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.25; margin: 0; }
.family-hero-description { max-width: 480px; color: #d0d2d7; font-size: .875rem; line-height: 1.5; margin: 0; }
.family-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.family-btn-outline { color: #f0f1f4; border: 1px solid #76797c; background: #0c0e1166; }
.family-btn-outline:hover { color: #fff; background: #24272dc9; border-color: #d7bd71; }
.family-hero .btn-ember, .family-closing .btn-ember { color: #17100b; background: #ff8139; border-color: #ff8139; }
.family-hero-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; list-style: none; padding: 20px 0; margin: 0; border-top: 1px solid #d7bd7126; }
.family-hero-facts li { display: flex; align-items: center; gap: 7px; font-size: .625rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.family-hero-facts li + li { padding-left: 30px; border-left: 1px solid #68707977; }
.family-hero-facts .icon { color: #dfc57c; margin-right: 9px; width: 18px; height: 18px; flex-basis: 18px; }
.family-section-nav { position: sticky; top: var(--family-header-height, 88px); z-index: 15; background: var(--ff-header); border-bottom: 1px solid var(--ff-line); backdrop-filter: blur(16px); }
.family-section-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.family-section-links { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.family-section-links::-webkit-scrollbar { display: none; }
.family-section-links a { position: relative; display: flex; align-items: center; min-height: 60px; flex-shrink: 0; color: var(--family-muted); font-size: .8125rem; white-space: nowrap; }
.family-section-links a:hover, .family-section-links a[aria-current] { color: var(--family-accent); }
.family-section-links a[aria-current] { font-weight: 700; }
.family-section-links a[aria-current]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: var(--family-accent); border-radius: 2px 2px 0 0; }
.family-profile .family-nav-apply { min-height: 35px; padding: 6px 15px; flex-shrink: 0; }
.family-opening-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; padding-top: 28px; padding-bottom: 26px; }
.family-story { position: relative; isolation: isolate; min-width: 0; min-height: 690px; display: flex; flex-direction: column; }
.family-story-copy { position: relative; z-index: 1; padding: 2px 0 20px; }
.family-story h2 { max-width: 480px; font-size: clamp(2.2rem, 3.8vw, 3.5rem); }
.family-story h2 > span { display: block; }
.family-story-prose { max-width: 650px; margin-top: 19px; }
.family-story-prose p { color: var(--ff-text); font-size: .9375rem; line-height: 1.65; margin-bottom: 14px; }
.family-story-prose p:first-child { color: var(--family-muted); }
.family-story blockquote { border-left: 3px solid var(--family-accent); padding: 0 0 0 15px; margin: 22px 0; color: var(--family-accent); font: italic 700 1.25rem/1.4 var(--family-heading-font); }
.family-values { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 20px; list-style: none; padding: 0; margin: 25px 0 0; }
.family-values li { display: flex; gap: 12px; align-items: center; }
.family-values .icon { color: var(--family-accent); width: 28px; height: 28px; flex-basis: 28px; }
.family-values strong, .family-values span { display: block; }
.family-values strong { font-size: .8125rem; line-height: 1.35; }
.family-values span { color: var(--family-muted); font-size: .6875rem; margin-top: 3px; }
.family-story-art { position: relative; width: calc(100% + 40px); margin-left: -40px; height: 320px; margin-top: auto; overflow: hidden; }
.family-story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ff-bg), transparent 25%), linear-gradient(90deg, transparent 70%, var(--ff-bg)); }
.family-sidebar { padding: 0 22px; border: 1px solid var(--ff-line); border-radius: 7px; background: linear-gradient(140deg, color-mix(in srgb, var(--family-accent) 4%, transparent), transparent 55%), var(--ff-surface); }
.family-sidebar-section { padding-block: 23px; }
.family-sidebar-section + .family-sidebar-section { border-top: 1px solid var(--ff-line); }
.family-sidebar .eyebrow { font-size: .625rem; letter-spacing: .17em; margin-bottom: 14px; }
.family-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.family-stat-grid > div { position: relative; display: flex; flex-direction: column-reverse; justify-content: center; min-height: 74px; padding: 12px 10px 12px 43px; border: 1px solid var(--ff-line); border-radius: 4px; background: var(--ff-bg); }
.family-stat-grid .icon { position: absolute; left: 12px; top: 24px; color: var(--family-accent); width: 20px; height: 20px; }
.family-stat-grid dt { color: var(--family-muted); font-size: .6875rem; font-weight: 400; }
.family-stat-grid dd { margin: 0; font-size: 1rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.family-source-note { color: var(--family-muted); font-size: .6875rem; line-height: 1.5; margin: 13px 0 0; }
.family-contact-person { display: flex; gap: 13px; align-items: center; margin-bottom: 16px; }
.family-contact-avatar { display: grid; place-items: center; flex: 0 0 54px; height: 54px; color: var(--family-accent); border: 1px solid var(--family-accent); border-radius: 50%; font-size: 1.25rem; background: var(--ff-bg); }
.family-contact-person strong, .family-contact-person span, .family-contact-person small { display: block; line-height: 1.5; }
.family-contact-person > .family-contact-avatar { display: grid; line-height: 1; }
.family-contact-person strong { font-size: .9375rem; }
.family-contact-person div > span { font-size: .8125rem; }
.family-contact-person small { color: var(--family-muted); font-size: .6875rem; font-style: italic; }
.family-contact-instructions { color: var(--family-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.family-sidebar .btn { font-size: .75rem; min-height: 38px; }
.family-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.family-benefits li { display: flex; align-items: flex-start; gap: 10px; }
.family-benefits .icon { color: var(--family-accent); width: 17px; height: 17px; flex-basis: 17px; margin-top: 2px; }
.family-benefits strong { display: block; font-size: .8125rem; font-weight: 600; }
.family-benefits p { color: var(--family-muted); font-size: .75rem; margin: 4px 0 0; }
.family-requirement h3 { font-size: .8125rem; margin-bottom: 5px; }
.family-requirement p { color: var(--family-muted); font-size: .8125rem; line-height: 1.55; margin-bottom: 17px; }
.family-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.family-section-heading .eyebrow { margin-bottom: 8px; }
.family-section-heading h2 { margin-bottom: 7px; }
.family-section-heading > div > p:last-child:not(.eyebrow) { color: var(--family-muted); font-size: .875rem; line-height: 1.5; margin: 0; }
.family-section-count { color: var(--family-muted); font-size: .75rem; text-align: right; }
.family-factions-section { padding-block: 31px 40px; border-block: 1px solid var(--ff-line); }
.family-faction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.family-faction-card { --identity-accent: var(--family-accent); min-width: 0; border: 1px solid color-mix(in srgb, var(--identity-accent) 55%, var(--ff-line)); border-radius: 7px; overflow: hidden; background: var(--ff-surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.family-faction-card:hover { border-color: var(--identity-accent); transform: translateY(-3px); box-shadow: 0 14px 32px #0003; }
.family-tone-gold { --identity-accent: #d7bd71; }
.family-tone-teal { --identity-accent: #75c5cc; }
.family-tone-copper { --identity-accent: #e78c58; }
.family-faction-cover { position: relative; height: 158px; background: radial-gradient(ellipse at 55% 15%, color-mix(in srgb, var(--identity-accent) 18%, transparent), transparent 85%), var(--ff-bg); overflow: hidden; }
.family-faction-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ff-surface), transparent 55%); }
.family-faction-cover .family-art { transition: transform .4s; }
.family-faction-card:hover .family-faction-cover .family-art { transform: scale(1.04); }
.family-faction-pattern { display: grid; place-items: center; height: 100%; color: var(--identity-accent); opacity: .25; }
.family-faction-pattern .icon { width: 90px; height: 90px; }
.family-faction-content { position: relative; padding: 0 22px 20px; }
.family-faction-title { display: flex; align-items: center; gap: 15px; min-height: 95px; margin-top: -29px; margin-bottom: 9px; }
.family-faction-crest { flex: 0 0 80px; width: 80px; height: 94px; filter: drop-shadow(0 5px 8px #0008); }
.family-faction-crest .family-art { border-radius: 4px; }
.family-faction-crest img.family-art { object-fit: contain; }
.family-faction-monogram { display: grid; place-items: center; flex: 0 0 62px; height: 70px; color: var(--identity-accent); border: 1px solid var(--identity-accent); border-radius: 6px; background: var(--ff-surface); font-size: 1.4rem; font-weight: 800; }
.family-faction-title h3 { font-size: 1.25rem; margin: 0 0 5px; line-height: 1.2; overflow-wrap: anywhere; }
.family-faction-title .eyebrow { color: var(--family-muted); font-size: .5625rem; line-height: 1.5; margin: 0; letter-spacing: .08em; }
.family-faction-description { color: var(--family-muted); font-size: .875rem; line-height: 1.55; margin: 16px 0 20px; min-height: 43px; }
.family-profile .family-faction-link { width: 100%; border: 1px solid color-mix(in srgb, var(--identity-accent) 60%, var(--ff-line)); color: var(--ff-text); background: var(--ff-bg); font-weight: 500; }
.family-faction-link:hover { border-color: var(--identity-accent); color: var(--identity-accent); }
.family-history-section { position: relative; background: linear-gradient(120deg, color-mix(in srgb, var(--family-accent) 4%, transparent), transparent 85%); border-bottom: 1px solid var(--ff-line); }
.family-history-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 44px; padding-block: 39px; isolation: isolate; }
.family-history-copy { position: relative; z-index: 1; }
.family-history-copy h2 { max-width: 660px; }
.family-history-copy .family-source-note { margin-top: 8px; }
.family-timeline { list-style: none; padding: 0 0 0 33px; margin: 28px 0 0; }
.family-timeline li { position: relative; padding-bottom: 22px; }
.family-timeline li:last-child { padding-bottom: 0; }
.family-timeline li::before { content: ""; position: absolute; left: -28px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--family-accent); box-shadow: 0 0 0 3px var(--ff-bg), 0 0 0 4px color-mix(in srgb, var(--family-accent) 55%, transparent); }
.family-timeline li:not(:last-child)::after { content: ""; position: absolute; left: -24px; top: 19px; bottom: -4px; width: 1px; background: color-mix(in srgb, var(--family-accent) 40%, transparent); }
.family-timeline h3 { font-size: .9375rem; margin: 0 0 4px; }
.family-timeline h3 > span:first-child { font-variant-numeric: tabular-nums; }
.family-timeline p { color: var(--family-muted); font-size: .8125rem; margin: 0; }
.family-history-art { position: absolute; right: 31%; bottom: 0; width: 43%; height: 70%; z-index: -1; opacity: .45; mask-image: linear-gradient(0deg, #000, transparent 94%); }
.family-record-panel { align-self: center; padding: 28px; border: 1px solid var(--ff-line); border-radius: 6px; background: color-mix(in srgb, var(--ff-surface) 95%, transparent); box-shadow: 0 10px 35px #0002; }
.family-record-feature { display: flex; gap: 20px; }
.family-record-feature > .icon { color: var(--family-accent); width: 36px; height: 36px; flex-basis: 36px; margin-top: 3px; }
.family-record-feature .eyebrow { font-size: .5625rem; margin-bottom: 7px; }
.family-record-feature strong { font-size: 2.5rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.family-record-feature h3 { font-size: 1.15rem; margin: 8px 0; }
.family-record-feature p:last-child { color: var(--family-muted); font-size: .8125rem; margin: 0; }
.family-record-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--ff-line); gap: 14px; }
.family-record-stats > div { position: relative; display: flex; flex-direction: column-reverse; padding-left: 34px; justify-content: center; }
.family-record-stats .icon { color: var(--family-accent); position: absolute; left: 0; top: 4px; width: 24px; height: 24px; }
.family-record-stats dt { color: var(--family-muted); font-size: .625rem; font-weight: 400; }
.family-record-stats dd { margin: 0; font-size: 1.4rem; font-weight: 750; line-height: 1.3; }
.family-honours-section { padding-block: 36px 38px; border-bottom: 1px solid var(--ff-line); }
.family-honours-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.family-honours-controls .family-source-note { margin: 0; }
.family-honours-filters { display: flex; gap: 6px; }
.family-honours-filters[hidden] { display: none; }
.family-honours-filters button { padding: 5px 10px; border: 1px solid var(--ff-line); border-radius: 4px; background: transparent; color: var(--family-muted); font-size: .6875rem; }
.family-honours-filters button:hover, .family-honours-filters button[aria-pressed="true"] { color: var(--family-accent); border-color: var(--family-accent); background: color-mix(in srgb, var(--family-accent) 8%, transparent); }
.family-honours-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.family-honour-card { display: flex; align-items: stretch; min-width: 0; padding: 5px; border: 1px solid color-mix(in srgb, var(--family-accent) 65%, var(--ff-line)); border-radius: 6px; background: var(--ff-surface); }
.family-honour-card[hidden] { display: none; }
.family-honour-avatar { flex: 0 0 37%; min-height: 155px; overflow: hidden; border-radius: 4px; }
.family-honour-content { padding: 13px 12px 5px; min-width: 0; }
.family-honour-content h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 1.0625rem; }
.family-honour-content h3 .icon { color: var(--family-accent); width: 18px; height: 18px; flex-basis: 18px; }
.family-honour-content .eyebrow { font-size: .5rem; letter-spacing: .1em; margin-bottom: 9px; line-height: 1.5; }
.family-honour-record { font-size: .6875rem; color: var(--family-muted); line-height: 1.5; margin: 0 0 13px; }
.family-honour-story { border-top: 1px solid var(--ff-line); padding-top: 10px; }
.family-honour-story summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; font-size: .6875rem; cursor: pointer; }
.family-honour-story summary::-webkit-details-marker { display: none; }
.family-honour-story summary .icon { width: 13px; height: 13px; flex-basis: 13px; transition: transform .2s; }
.family-honour-story[open] summary .icon { transform: rotate(90deg); }
.family-honour-story p { margin: 12px 0 4px; color: var(--family-muted); font-size: .75rem; line-height: 1.6; }
.family-life-section { padding-block: 35px; }
.family-life-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; }
.family-life-section h2 { font-size: clamp(1.75rem, 2.6vw, 2.3rem); }
.family-life-section .family-section-heading { gap: 16px; margin-bottom: 18px; }
.family-life-section .family-source-note { flex-shrink: 0; margin: 0; }
.family-activity-feed { margin: 0; padding: 0 19px; list-style: none; border: 1px solid var(--ff-line); border-radius: 5px; background: var(--ff-surface); }
.family-activity-feed li { display: flex; gap: 17px; align-items: center; padding: 17px 0; }
.family-activity-feed li + li { border-top: 1px solid var(--ff-line); }
.family-activity-feed .icon { color: var(--family-accent); width: 23px; height: 23px; flex-basis: 23px; }
.family-activity-feed h3 { font-size: .875rem; margin: 0 0 3px; }
.family-activity-feed p { font-size: .75rem; color: var(--family-muted); margin: 0; }
.family-activity-tag { margin-left: auto; flex-shrink: 0; padding: 4px 8px; border: 1px solid #69879b55; border-radius: 4px; background: #69879b22; color: #a6c5db; font-size: .5625rem; font-weight: 750; text-transform: uppercase; }
.family-tag-event { color: #efab7d; border-color: #d77c4055; background: #d77c4022; }
.family-tag-war { color: #eaa7aa; border-color: #cf5c6555; background: #cf5c6522; }
.family-opportunity { padding: 24px 26px; border: 1px solid color-mix(in srgb, var(--family-accent) 50%, var(--ff-line)); border-radius: 6px; background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--family-accent) 13%, transparent), transparent 75%), var(--ff-surface); }
.family-opportunity h3 { color: var(--family-accent); font-size: 1.15rem; margin-bottom: 22px; }
.family-opportunity ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.family-opportunity li { display: flex; gap: 14px; align-items: center; }
.family-opportunity li .icon { color: var(--family-accent); width: 25px; height: 25px; flex-basis: 25px; }
.family-opportunity strong, .family-opportunity span { display: block; }
.family-opportunity strong { font-size: .8125rem; }
.family-opportunity li span { color: var(--family-muted); font-size: .6875rem; margin-top: 2px; }
.family-opportunity-footer { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.family-opportunity-footer .family-member-stack { display: flex; flex: 0 0 auto; }
.family-member-stack .family-art { width: 31px; height: 31px; border: 2px solid var(--ff-surface); border-radius: 50%; }
.family-member-stack .family-art + .family-art { margin-left: -9px; }
.family-opportunity-footer p { margin: 0; font-size: .6875rem; color: var(--family-muted); }
.family-closing { position: relative; isolation: isolate; border-block: 1px solid #d7bd7144; background: radial-gradient(ellipse at 80% 50%, #765c2e66, transparent 75%), #0e1013; overflow: hidden; }
.family-closing-art { position: absolute; inset: 0; z-index: -2; opacity: .4; }
.family-closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0c0e11 8%, #0c0e11b8 45%, #0c0e1155 80%); }
.family-closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding-block: 40px; }
.family-closing h2 { color: #f0f1f4; font-size: clamp(1.8rem, 3vw, 2.65rem); max-width: 790px; }
.family-closing p:not(.eyebrow) { color: #e1e2e6; font-size: .9375rem; margin: 12px 0; }
.family-closing span { color: #b4b7bd; font-size: .75rem; }
.family-closing-actions { display: grid; gap: 12px; flex: 0 0 auto; min-width: 218px; }
.family-demo-note { color: var(--family-muted); font-size: .625rem; text-align: right; line-height: 1.5; padding-top: 15px; margin-bottom: 0; }
[data-bs-theme="light"] .family-profile-owl.accent-gold { --family-accent: #826422; }
[data-bs-theme="light"] .family-profile .status-open { color: #226b42; background: #eaf4ed; border-color: #b4d1be; }
[data-bs-theme="light"] .family-profile .status-selective { color: #765717; background: #f5f0e3; border-color: #d6c9a4; }
[data-bs-theme="light"] .family-profile .status-closed { color: #5b626b; background: #eceef1; }
[data-bs-theme="light"] .family-hero .eyebrow, [data-bs-theme="light"] .family-hero-facts { color: #e5e6e9; }
[data-bs-theme="light"] .family-hero .recruitment-pill { color: #acd9bb; }
[data-bs-theme="light"] .family-hero .status-selective { color: #edc67d; }
[data-bs-theme="light"] .family-hero .status-closed { color: #c3c6ce; }
[data-bs-theme="light"] .family-tone-gold { --identity-accent: #957023; }
[data-bs-theme="light"] .family-tone-teal { --identity-accent: #2b777e; }
[data-bs-theme="light"] .family-tone-copper { --identity-accent: #a95022; }
[data-bs-theme="light"] .family-tag-community { color: #31576e; }
[data-bs-theme="light"] .family-tag-event { color: #8f4919; }
[data-bs-theme="light"] .family-tag-war { color: #973b43; }
.family-profile:not(.family-profile-owl) .family-story { min-height: 0; }
@media (min-width: 1500px) { .family-story-art { width: 100%; margin-left: 0; } }
@media (max-width: 1199px) {
    .family-opening-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 27px; }
    .family-history-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; }
    .family-faction-content { padding-inline: 17px; }
    .family-faction-title { gap: 10px; }
    .family-faction-crest { width: 65px; flex-basis: 65px; height: 79px; }
    .family-faction-title h3 { font-size: 1.0625rem; }
    .family-honour-avatar { flex-basis: 32%; }
    .family-honour-content { padding-inline: 9px; }
    .family-life-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .family-life-section .family-section-heading { display: block; }
    .family-life-section .family-source-note { display: block; margin-top: 9px; }
}
@media (max-width: 991px) {
    .family-profile-page .navbar { flex-wrap: nowrap; min-height: 76px; gap: 14px; }
    .family-profile-page .brand { width: 180px; }
    .family-profile-page .nav-actions { gap: 8px; }
    .family-profile-page .nav-tools { margin-right: 4px; font-size: .75rem; white-space: nowrap; }
    .family-profile-page .nav-actions .btn { font-size: .75rem; padding: 8px 12px; white-space: nowrap; }
    .family-opening-grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
    .family-sidebar { padding-inline: 16px; }
    .family-stat-grid > div { padding-left: 33px; }
    .family-stat-grid .icon { left: 8px; width: 17px; height: 17px; }
    .family-stat-grid dd { font-size: .875rem; }
    .family-values { grid-template-columns: 1fr; gap: 13px; }
    .family-values .icon { width: 23px; height: 23px; flex-basis: 23px; }
    .family-story { min-height: 720px; }
    .family-story-art { height: 280px; }
    .family-faction-grid { gap: 12px; }
    .family-faction-title { display: block; margin-top: -38px; margin-bottom: 14px; }
    .family-faction-crest, .family-faction-monogram { display: block; margin-bottom: 12px; }
    .family-faction-monogram { display: grid; width: 62px; }
    .family-faction-title h3 { font-size: 1.1rem; }
    .family-faction-description { min-height: 68px; }
    .family-honour-card { display: block; }
    .family-honour-avatar { height: 140px; min-height: 0; }
    .family-honour-content { padding: 15px 12px 10px; }
    .family-honour-content .eyebrow { font-size: .5625rem; }
    .family-honour-record { font-size: .75rem; }
    .family-honour-story summary { font-size: .75rem; }
    .family-history-grid { grid-template-columns: minmax(0, 1fr) 290px; }
    .family-record-panel { padding: 23px 18px; }
    .family-record-feature { gap: 13px; }
    .family-record-feature > .icon { width: 28px; height: 28px; flex-basis: 28px; }
    .family-record-stats { gap: 9px; }
    .family-life-grid { grid-template-columns: 1fr; }
    .family-opportunity ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
    .family-opportunity li { align-items: flex-start; }
    .family-closing-inner { gap: 24px; }
    .family-closing-actions { min-width: 195px; }
}
@media (max-width: 767px) {
    .family-scroll-section { scroll-margin-top: calc(var(--family-header-height, 132px) + 64px); }
    .family-hero-inner { padding-top: 16px; }
    .family-breadcrumb { margin-bottom: 31px; }
    .family-hero-art { width: 100%; opacity: .65; }
    .family-hero-art .family-art { object-position: 85% center; }
    .family-hero::after { background: linear-gradient(90deg, #0c0e11eb, #0c0e1199 55%, #0c0e1122), linear-gradient(0deg, #0c0e11c9, transparent 70%); }
    .family-hero-identity { gap: 18px; padding-bottom: 31px; }
    .family-crest { width: 136px; flex-basis: 136px; height: 190px; align-self: center; }
    .family-hero-copy { min-height: 190px; }
    .family-hero-labels { gap: 8px; }
    .family-hero-labels .eyebrow { font-size: .5625rem; }
    .family-hero h1 { font-size: clamp(1.65rem, 5.2vw, 2.4rem); }
    .family-motto { font-size: clamp(1.05rem, 3.2vw, 1.4rem); }
    .family-hero-description { font-size: .8125rem; }
    .family-hero-actions { gap: 8px; }
    .family-hero-actions .btn { font-size: .75rem; padding: 8px 12px; min-height: 38px; gap: 8px; }
    .family-hero-facts { gap: 12px 15px; padding-block: 17px; }
    .family-hero-facts li { font-size: .5625rem; letter-spacing: .07em; }
    .family-hero-facts li + li { padding-left: 15px; }
    .family-hero-facts .icon { margin-right: 3px; width: 16px; height: 16px; flex-basis: 16px; }
    .family-section-nav { top: var(--family-header-height, 132px); }
    .family-section-nav-inner { gap: 10px; }
    .family-section-links { gap: 22px; }
    .family-section-links a { min-height: 52px; font-size: .75rem; }
    .family-profile .family-nav-apply { padding-inline: 11px; font-size: .6875rem; }
    .family-nav-apply .icon { display: none; }
    .family-opening-grid { grid-template-columns: 1fr; padding-block: 28px; }
    .family-story { min-height: 0; }
    .family-story-copy { padding-bottom: 0; }
    .family-story h2 { max-width: 440px; font-size: 2.6rem; }
    .family-story-prose { max-width: none; }
    .family-values { grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; }
    .family-values li { gap: 8px; }
    .family-values strong { font-size: .75rem; }
    .family-values span { font-size: .625rem; }
    .family-story-art { width: calc(100% + 48px); margin-left: -24px; margin-top: 6px; height: 240px; }
    .family-sidebar { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding-inline: 20px; }
    .family-sidebar-section { padding-block: 22px; }
    .family-sidebar-section:nth-child(2) { border-top: 0; }
    .family-sidebar-section:nth-child(2n) { border-left: 1px solid var(--ff-line); padding-left: 24px; }
    .family-section-heading { gap: 14px; }
    .family-section-count { display: none; }
    .family-factions-section { padding-block: 29px; }
    .family-faction-grid { grid-template-columns: 1fr; gap: 18px; }
    .family-faction-cover { height: 168px; }
    .family-faction-title { display: flex; margin-top: -28px; gap: 16px; }
    .family-faction-crest { width: 80px; flex-basis: 80px; height: 94px; margin-bottom: 0; }
    .family-faction-title h3 { font-size: 1.4rem; }
    .family-faction-title .eyebrow { font-size: .625rem; }
    .family-faction-description { min-height: 0; }
    .family-faction-content { padding-inline: 22px; }
    .family-history-grid { grid-template-columns: 1fr; padding-block: 30px; gap: 24px; }
    .family-history-art { width: 80%; right: 0; top: 10%; height: 40%; }
    .family-record-panel { padding: 25px; }
    .family-record-feature > .icon { width: 34px; height: 34px; flex-basis: 34px; }
    .family-record-feature .eyebrow { font-size: .625rem; }
    .family-record-stats dt { font-size: .75rem; }
    .family-honours-section { padding-block: 30px; }
    .family-honours-section .family-section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .family-honours-controls { align-items: flex-start; }
    .family-honours-grid { grid-template-columns: 1fr; }
    .family-honour-card { display: flex; }
    .family-honour-avatar { flex-basis: 30%; height: auto; min-height: 170px; }
    .family-honour-content { padding: 16px 16px 12px; }
    .family-honour-content h3 { font-size: 1.2rem; }
    .family-honour-content .eyebrow { font-size: .625rem; }
    .family-honour-record, .family-honour-story summary { font-size: .8125rem; }
    .family-opportunity ul { grid-template-columns: 1fr; }
    .family-activity-feed { padding-inline: 14px; }
    .family-activity-feed li { gap: 12px; }
    .family-activity-feed h3 { font-size: .8125rem; }
    .family-activity-feed p { font-size: .6875rem; }
    .family-closing-inner { align-items: flex-start; flex-direction: column; padding-block: 32px; }
    .family-closing-actions { width: 100%; grid-template-columns: 1fr 1fr; }
    .family-demo-note { text-align: left; }
}
@media (max-width: 479px) {
    .family-hero-identity { gap: 13px; }
    .family-crest { width: 89px; flex-basis: 89px; height: 153px; align-self: flex-start; }
    .family-hero-copy { min-height: 153px; gap: 9px; }
    .family-hero-labels .eyebrow { display: none; }
    .family-hero h1 { font-size: 1.8rem; }
    .family-motto { font-size: 1.05rem; }
    .family-hero-description { font-size: .75rem; }
    .family-hero-actions { margin-top: 2px; gap: 8px; }
    .family-hero-actions .btn { font-size: .6875rem; padding: 7px 10px; min-height: 35px; }
    .family-hero-actions .btn .icon { width: 12px; height: 12px; flex-basis: 12px; }
    .family-hero-facts li:last-child { flex-basis: 100%; padding-left: 0; border-left: 0; }
    .family-story h2 { font-size: 2.25rem; }
    .family-story-prose p { font-size: .875rem; }
    .family-values { grid-template-columns: 1fr 1fr; gap: 16px; }
    .family-values li:last-child { grid-column: 1 / -1; }
    .family-sidebar { display: block; padding-inline: 20px; }
    .family-sidebar-section:nth-child(2) { border-top: 1px solid var(--ff-line); }
    .family-sidebar-section:nth-child(2n) { border-left: 0; padding-left: 0; }
    .family-stat-grid > div { padding-left: 45px; }
    .family-stat-grid .icon { left: 14px; }
    .family-honour-avatar { flex-basis: 32%; }
    .family-honour-content { padding-inline: 12px; }
    .family-activity-feed li { flex-wrap: wrap; }
    .family-activity-tag { margin-left: 35px; }
    .family-closing-actions { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .family-profile-page .navbar { flex-wrap: wrap; justify-content: space-between; gap: 11px; }
    .family-profile-page .brand { width: 145px; }
    .family-profile-page .nav-actions { width: 100%; justify-content: space-between; gap: 6px; }
    .family-profile-page .nav-tools { margin-right: 0; font-size: .75rem; }
    .family-profile-page .nav-actions .btn { min-height: 35px; padding: 7px 11px; }
    .family-profile-page .theme-toggle { flex: 0 0 30px; width: 30px; height: 35px; }
}
@media (max-width: 380px) {
    .family-profile-page .nav-tools, .family-profile-page .nav-actions .btn { font-size: .6875rem; }
    .family-profile-page .nav-actions { gap: 4px; }
    .family-profile-page .nav-actions .btn { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .family-faction-card, .family-faction-cover .family-art, .family-honour-story summary .icon { transition: none; }
    .family-faction-card:hover, .family-faction-card:hover .family-faction-cover .family-art { transform: none; }
}
.family-honour-initials { display: grid; place-items: center; height: 100%; min-height: 155px; color: var(--family-accent); background: linear-gradient(135deg, #242b34, #101419); font-size: 2rem; font-weight: 700; }
.family-member-link { display: inline-flex; align-items: center; gap: 8px; color: var(--family-accent); font-size: .75rem; text-decoration: none; margin-bottom: 9px; }
.family-member-link .icon { width: 13px; height: 13px; }

.family-profile .family-story-without-art { min-height: 0; }
