/* Exact vintage Ejaaba profile tabs and inline question addenda, 2021 reference.
   This stylesheet deliberately overrides the earlier layered experiments
   without changing site-wide black header, account dock or stored content. */
.classic-member-profile .archive-member-toolbar.ejabat-four-profile-icons{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 grid-auto-flow:column!important;direction:rtl!important;gap:0!important;
 overflow:hidden!important;padding:0!important;margin:0!important;
 background:#e9ecf8!important;border:0!important;border-bottom:1px solid #b8cce9!important;
 min-height:37px!important;max-height:39px!important;
}
.classic-member-profile .ejabat-four-profile-icons>a{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:4px!important;padding:2px 5px!important;
 height:37px!important;max-height:39px!important;
 min-width:0!important;width:auto!important;background:transparent!important;
 border:0!important;border-left:1px solid #e1e5f3!important;
 border-radius:0!important;color:#3471b8!important;
}
.classic-member-profile .ejabat-four-profile-icons>a.active{
 background:#fff!important;color:#2466a9!important;
 border-bottom:2px solid #478ad5!important;
}
.classic-member-profile .ejabat-four-profile-icons>a svg{
 color:inherit!important;stroke:currentColor!important;
 width:23px!important;height:23px!important;max-width:23px!important;
}
.classic-member-profile .ejabat-four-profile-icons>a small{font-size:10px!important;color:#326ea5!important}
.classic-member-profile .ejabat-old-profile-subtabs{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:0!important;min-height:35px!important;
 direction:rtl!important;margin:0!important;padding:0!important;
 background:#fff!important;border:0!important;border-bottom:1px solid #d7e0ec!important;
}
.classic-member-profile .ejabat-old-profile-subtabs>a{
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:4px 7px!important;min-height:34px!important;
 text-decoration:none!important;background:#fff!important;
 border:0!important;border-bottom:3px solid transparent!important;
 color:#8b98aa!important;font:normal 13px/1.3 Tahoma,Arial,sans-serif!important;
}
.classic-member-profile .ejabat-old-profile-subtabs>a.active{
 color:#3378c3!important;border-bottom-color:#4f95e5!important;
}
.classic-member-profile.is-section-view .ejabat-profile-main>.ejabat-old-profile-subtabs{
 order:3!important;display:grid!important;
}
.classic-member-profile.is-section-view .ejabat-profile-main>.ejabat-tab-body{
 order:4!important;margin:0 0 6px!important;min-height:75px!important;
 border:0!important;border-bottom:1px solid #d2dce8!important;
 padding:0 2px 8px!important;
}
.classic-member-profile.is-section-view[data-profile-active-tab="questions"] .ejabat-tab-title,
.classic-member-profile.is-section-view[data-profile-active-tab="directed"] .ejabat-tab-title{
 display:none!important;
}
.classic-member-profile .ejabat-profile-main>.ejabat-profile-tabs{
 display:none!important;
}
.classic-member-profile .ejabat-heritage-more-services{
 background:#fff!important;border:0!important;
 border-top:1px solid #e4e9f2!important;margin:3px 0 13px!important;
 font-size:11px!important;
}
.classic-member-profile .ejabat-heritage-more-services>summary{
 font:normal 11px/1.6 Tahoma,Arial,sans-serif!important;
 color:#2d75b6!important;cursor:pointer!important;
 padding:7px 9px!important;text-align:right!important;
}
.classic-member-profile .ejabat-heritage-service-links{
 display:flex!important;flex-wrap:wrap!important;gap:6px 10px!important;
 background:#f9fbfe!important;padding:8px 10px!important;
 border-top:1px solid #e4e9f2!important;
}
.classic-member-profile .ejabat-heritage-service-links>a{
 color:#246eae!important;text-decoration:none!important;font-size:11px!important;
}
.classic-member-profile .ejabat-heritage-service-links>a:hover{text-decoration:underline!important}
/* Addenda are part of the same question body, not a second big card. */
.ejabat-clean-question>.ejabat-question-addenda{
 display:block!important;margin:7px 0 0!important;padding:0!important;
 border:0!important;border-top:1px solid #d2ddec!important;
 background:#fff!important;
}
.ejabat-clean-question>.ejabat-question-addenda:has([data-addendum-header][hidden]){
 display:none!important;
}
.ejabat-clean-question>.ejabat-question-addenda>header{
 display:none!important; /* Each old-style 'ملحق #n' header is sufficient. */
}
.ejabat-clean-question .ejabat-old-question-addendum{
 margin:0!important;padding:4px 9px 5px!important;
 background:#fff!important;border:0!important;
 border-bottom:1px solid #d7e3f0!important;
 min-height:0!important;
}
.ejabat-clean-question .ejabat-old-question-addendum+ .ejabat-old-question-addendum{
 border-top:1px solid #e8edf4!important;
}
.ejabat-clean-question .ejabat-old-question-addendum>header{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:3px 8px!important;margin:0!important;
 padding:4px 0!important;border:0!important;background:#fff!important;
 color:#778699!important;
}
.ejabat-old-addendum-label{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;
}
.ejabat-old-addendum-label strong{
 font:normal 13px/1.5 Tahoma,Arial,sans-serif!important;color:#2d6fac!important;
}
.ejabat-old-addendum-label time{font-size:10px!important;color:#8d96a3!important}
.ejabat-old-addendum-author{
 display:inline-flex!important;align-items:center!important;gap:5px!important;
}
.ejabat-old-addendum-author a{
 font-size:12px!important;color:#286eb7!important;font-weight:bold!important;
}
.ejabat-clean-question .ejabat-old-addendum-body{
 display:block!important;padding:5px 0 8px!important;
 min-height:0!important;margin:0!important;
 font:normal 13px/1.75 Tahoma,Arial,sans-serif!important;
 color:#2c3541!important;white-space:pre-wrap!important;
}
.ejabat-clean-question .ejabat-old-addendum-body p{margin:2px 0!important}
.ejabat-old-addendum-compose{
 margin:5px 0 9px!important;padding:6px 8px!important;
 background:#fff!important;border:1px solid #d8e3f2!important;
}
.has-classic-js .ejabat-old-addendum-compose:not(.is-open){display:none!important}
.ejabat-old-addendum-compose>h2{
 font:normal 12px/1.5 Tahoma,Arial,sans-serif!important;color:#286fae!important;
 margin:0 0 4px!important;
}
.ejabat-old-addendum-compose textarea{
 min-height:75px!important;height:75px!important;max-height:130px!important;
 font:normal 12px/1.6 Tahoma,Arial,sans-serif!important;padding:7px!important;
 border:1px solid #c4d2e4!important;background:#fff!important;
}
.ejabat-old-addendum-compose button{
 font-size:11px!important;margin:4px 0 0!important;
 padding:5px 10px!important;
}
.ejabat-archive-actionbar{border-top:1px solid #e5eaf3!important;margin-top:0!important}
@media(max-width:640px){
 .classic-member-profile .archive-member-toolbar.ejabat-four-profile-icons{min-height:35px!important;max-height:38px!important}
 .classic-member-profile .ejabat-four-profile-icons>a{height:35px!important;max-height:38px!important}
 .classic-member-profile .ejabat-four-profile-icons>a svg{width:22px!important;height:22px!important}
 .classic-member-profile .ejabat-old-profile-subtabs>a{font-size:12px!important}
 .ejabat-clean-question .ejabat-old-question-addendum>header{align-items:flex-start!important}
 .ejabat-clean-question .ejabat-old-addendum-body{font-size:12px!important}
}

/* The Ask-a-member control is preserved outside (not as a fifth tab). */
.classic-member-profile .ejabat-member-directed-ask-action{
 display:flex;justify-content:center;align-items:center;margin:4px 0 0;gap:5px;
 font:normal 11px/1.5 Tahoma,Arial,sans-serif;
}
.classic-member-profile .ejabat-member-directed-ask-action [hidden]{display:none!important}
.classic-member-profile .ejabat-old-directed-ask-link{
 display:inline-flex;align-items:center;gap:4px;
 color:#2b6ead!important;background:#fff!important;
 padding:4px 6px!important;border:0!important;font-size:11px!important;
}
.classic-member-profile .ejabat-old-directed-ask-link svg{width:16px;height:16px}
.classic-member-profile.is-section-view .ejabat-member-directed-ask-action{margin:0 0 2px}

/* Crucial: the question is a two-column CSS grid. Addenda must span both,
   otherwise the entire paragraph wraps to a one-character-wide voting cell. */
.ejabat-clean-question>.ejabat-question-addenda{
 grid-column:1 / -1!important;grid-row:auto!important;
 min-width:0!important;width:100%!important;box-sizing:border-box!important;
 align-self:stretch!important;justify-self:stretch!important;
}
.ejabat-clean-question .ejabat-old-question-addendum,
.ejabat-clean-question .ejabat-old-addendum-body{
 min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 overflow-wrap:break-word!important;word-break:normal!important;
}
/* Only the four 2021 icons and the tiny context tabs appear on section pages.
   Messaging/blocking, awards and other tools stay on the overview homepage. */
.classic-member-profile.is-section-view>.ejabat-member-breadcrumb{display:none!important}
.classic-member-profile.is-section-view .ejabat-profile-main>.ejabat-heritage-overview-block{display:none!important}
.classic-member-profile.is-section-view .ejabat-profile-main>.ejabat-profile-hero{
 min-height:0!important;margin:0!important;padding:4px 3px 5px!important;
 gap:1px!important;justify-content:center!important;
}
.classic-member-profile.is-section-view .ejabat-profile-hero .ejabat-profile-actions,
.classic-member-profile.is-section-view .ejabat-profile-hero .ejabat-member-directed-ask-action,
.classic-member-profile.is-section-view .ejabat-profile-hero .ejabat-earned-badges,
.classic-member-profile.is-section-view .ejabat-profile-hero .ejabat-username{
 display:none!important;
}
.classic-member-profile.is-section-view .ejabat-profile-hero>.ejabat-portrait{
 padding:1px!important;width:31px!important;height:31px!important;
 flex:0 0 31px!important;min-width:31px!important;max-width:31px!important;
 min-height:31px!important;max-height:31px!important;
}
.classic-member-profile.is-section-view .ejabat-profile-hero>.ejabat-portrait img{
 width:31px!important;height:31px!important;max-height:31px!important;
}
.classic-member-profile.is-section-view .ejabat-profile-heading{
 padding:0!important;margin:0!important;min-height:0!important;line-height:1.25!important;
}
.classic-member-profile.is-section-view .ejabat-profile-heading h1{
 font-size:14px!important;line-height:1.35!important;
}
