/* Gold rating stars, shared by person cards and the quick feedback form. */
.star-rating-buttons .star-rating-button{color:#bf8f00}
.star-rating-buttons .star-rating-button.is-filled{color:#d4a017}
.star-rating-buttons .star-rating-button:hover{color:#c08b00;background:#fff5da}
.star-rating-buttons .star-rating-button:focus-visible{background:#fff5da}

/* v0.19: compact person metadata and rating spacing; kept in the shared theme. */
body .person-row .person-meta{margin:0 0 4px;min-height:20px}
body .person-row{padding-top:16px;padding-bottom:16px}
body .person-row .person-primary-role{margin:3px 0}
body .person-row .location{display:inline-flex}
body .person-row .institution-name{display:inline;margin:0 0 0 8px}
body .person-row .star-rating{margin-top:8px;padding-top:6px;gap:0 12px}
@media(max-width:680px){body .person-row .institution-name{display:block;margin:3px 0 0}body .person-row{padding-top:15px;padding-bottom:15px}}

/* One clear message for loading, errors or a place with no editorial record. */
body .place-profile-redesign:has(>.place-profile-state) .place-profile-stories,body .place-profile-redesign:has(>.place-profile-error) .place-profile-stories,body .place-profile-redesign:has(>.place-profile-state) .place-population-summary,body .place-profile-redesign:has(>.place-profile-error) .place-population-summary{display:none}

/* Deployment QA: collapse navigation before the complete header can overflow. */
@media(max-width:1000px){body .site-header .header-inner{min-height:76px;gap:16px;justify-content:space-between;width:calc(100% - 32px)}body .site-header .mobile-menu{display:inline-flex!important;margin-left:auto}body .site-header .header-cta{display:none}body .site-header nav{display:none}body .site-header nav.open{display:flex;position:absolute;top:100%;left:0;right:0;margin:0;padding:10px;background:#fff;border:1px solid #dbe4ef;border-radius:0 0 12px 12px;box-shadow:0 10px 25px #19365b18;flex-direction:column;align-items:stretch;gap:0;z-index:40}body .site-header nav.open a{display:flex;min-height:44px;padding:10px 12px}body .site-header nav.open a[aria-current]:after{display:none}}

/* Primary action: rating and commenting are the purpose of each person card. */
body .portal-v020 .star-rating-quick{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:13px 22px;margin:0;border:1px solid #1249b8;border-radius:6px;background:#1457d9;color:#fff;font-size:16px;font-weight:750;line-height:1.35;text-decoration:none;white-space:normal;text-align:center;box-shadow:0 3px 0 #103d96;cursor:pointer;transition:background .15s,box-shadow .15s}
body .portal-v020 .star-rating-quick:hover{background:#1046b4;box-shadow:0 3px 0 #092c74}
body .portal-v020 .star-rating-quick:focus-visible{outline:3px solid #bf8f00;outline-offset:4px}
body .portal-v020 :is(.person-row,.profile-summary) .star-rating{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 18px;padding:16px;margin:14px 0 8px;border:1px solid #c8daf5;border-left:4px solid #1457d9;border-radius:6px;background:#f2f6fd;max-width:760px;width:100%;box-sizing:border-box}
body .portal-v020 :is(.person-row,.profile-summary) .star-rating-line{grid-column:1;grid-row:1;gap:6px 10px}
body .portal-v020 :is(.person-row,.profile-summary) .star-rating-quick{grid-column:2;grid-row:1;align-self:center}
body .portal-v020 :is(.person-row,.profile-summary) .star-rating-note{grid-column:1/-1;grid-row:2;font-size:12px;line-height:1.5;margin:0;max-width:none;color:#475e78}
body .portal-v020 :is(.person-row,.profile-summary) .star-rating-message{grid-column:1/-1}
body .portal-v020 .profile-summary .person-name-line{display:block}
body .portal-v020 .profile-summary .star-rating{margin-top:18px;padding:20px;max-width:800px}
body .portal-v020 .profile-summary .star-rating-quick{font-size:18px;min-height:56px;padding:15px 26px}
body .portal-v020 .profile-summary .star-rating-button{width:38px;height:40px}
body .portal-v020 .profile-summary .star-rating-button svg{width:27px;height:27px}
@media(max-width:760px){body .portal-v020 :is(.person-row,.profile-summary) .star-rating{grid-template-columns:minmax(0,1fr);padding:14px;gap:10px;min-width:0}body .portal-v020 :is(.person-row,.profile-summary) .star-rating-quick{grid-column:1;grid-row:2;width:100%;min-height:52px;padding:13px 10px}body .portal-v020 :is(.person-row,.profile-summary) .star-rating-note{grid-row:3}body .portal-v020 .profile-summary .star-rating{padding:15px}body .portal-v020 .profile-summary .star-rating-quick{font-size:17px}body .portal-v020 .star-rating-quick{max-width:100%}}

/* Comments and their composer are the first content section of a person profile. */
body .portal-v020 .profile-feedback{margin:0 0 26px;padding:28px;border:1px solid #c6d7ef;border-top:5px solid #1457d9;border-radius:8px;background:#fff;scroll-margin-top:100px}
.profile-feedback-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,auto);gap:24px;align-items:center;padding-bottom:22px;border-bottom:1px solid #dce5f0}
body .portal-v020 .profile-feedback-heading h2{font-size:32px;line-height:1.2;margin:5px 0 10px;color:#17395f;letter-spacing:-.6px}
.profile-feedback-heading p{margin:0;color:#536b86}
body .portal-v020 .profile-feedback-heading .star-rating{margin:0;max-width:420px}
body .portal-v020 .profile-feedback-heading .star-rating-quick{display:none}
.profile-feedback-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;padding-top:24px}
.profile-feedback-composer h3{font-size:20px;margin:0 0 18px}
body .portal-v020 .profile-feedback .quick-comments-section{margin:0;padding:0 0 0 28px;border:0;border-left:1px solid #dce5f0;border-radius:0;box-shadow:none}
body .portal-v020 .profile-feedback .quick-comments-section h2{font-size:23px;margin:0 0 10px}
.profile-feedback .quick-comments-section .eyebrow,.profile-feedback .quick-person{display:none}
.profile-feedback .quick-feedback-form .notice{padding:12px;font-size:13px;margin:0 0 16px;line-height:1.65}
.profile-feedback .quick-feedback-form label{font-size:14px}
.profile-feedback .quick-feedback-form textarea{min-height:110px}
.profile-feedback .quick-feedback-form .form-actions .primary{min-height:50px;font-size:16px;width:100%}
body .portal-v020 .section-nav .feedback-nav-link{font-weight:750;color:#1457d9}
@media(max-width:760px){body .portal-v020 .profile-feedback{padding:19px 16px}.profile-feedback-heading{grid-template-columns:1fr;gap:16px;padding-bottom:18px}body .portal-v020 .profile-feedback-heading h2{font-size:28px}.profile-feedback-grid{grid-template-columns:1fr;gap:26px;padding-top:20px}body .portal-v020 .profile-feedback .quick-comments-section{border-left:0;border-top:1px solid #dce5f0;padding:24px 0 0}.profile-feedback-heading .star-rating-line{gap:8px}.profile-feedback-heading .star-rating-note{margin-top:6px}}

/* Keep the identity concise so the composer starts high on the first screen. */
body .portal-v020 .profile-page>.back-link{margin-bottom:10px}
body .portal-v020 .profile-summary{padding-top:4px;padding-bottom:18px;gap:18px}
body .portal-v020 .profile-summary .avatar.large{height:95px}
body .portal-v020 .profile-summary p{margin-top:8px;margin-bottom:8px}
.profile-feedback-heading>.star-rating .star-rating-button{width:38px;height:40px}
.profile-feedback-heading>.star-rating .star-rating-button svg{width:26px;height:26px}
.profile-feedback-heading>div>.eyebrow,.profile-feedback-heading>div>p{display:none}
.profile-feedback .quick-feedback-form{display:flex;flex-direction:column}
.profile-feedback .quick-feedback-form>.notice{order:1;margin-top:12px;margin-bottom:12px}
.profile-feedback .quick-feedback-form>.form-actions{order:2}
@media(max-width:760px){body .portal-v020 .profile-summary{padding-top:0;gap:12px}body .portal-v020 .profile-summary .avatar.large{height:78px}body .portal-v020 .profile-summary .profile-save{width:auto;min-height:32px;font-size:12px;padding:5px 9px;margin-left:auto}.profile-feedback-heading{gap:10px;padding-bottom:14px}body .portal-v020 .profile-feedback-heading h2{margin:0;font-size:27px}.profile-feedback-grid{padding-top:16px}.profile-feedback-composer h3{font-size:18px;margin-bottom:12px}}

/* Official weekly regional bulletin: publication dates and publishers stay distinct. */
.news-official-label{display:block;font-weight:750;color:#1457d9;letter-spacing:.09em;margin-bottom:8px;font-size:12px}
.news-period{margin:10px 0 0;color:#4d6682;font-size:15px;line-height:1.6}
.news-edition-note{font-size:13px;color:#60758e;line-height:1.7;margin:0 0 22px;max-width:900px}
body .portal-v020 .official-news .news-card>h3>a{color:inherit;text-decoration:none}
body .portal-v020 .official-news .news-card>h3>a:hover{color:#1457d9;text-decoration:underline;text-underline-offset:4px}
body .portal-v020 .official-news .news-card>p.news-publisher{grid-column:1;grid-row:3;font-size:12px;line-height:1.65;color:#4d6682;margin:0;overflow-wrap:anywhere}
body .portal-v020 .official-news .news-card>p:not(.small):not(.news-publisher){grid-column:2;grid-row:2}
body .portal-v020 .official-news .news-card>a:last-child{grid-column:2;grid-row:3}
@media(max-width:680px){.news-period{font-size:14px}.news-edition-note{font-size:12px}body .portal-v020 .official-news .news-card>p.news-publisher,body .portal-v020 .official-news .news-card>p:not(.small):not(.news-publisher),body .portal-v020 .official-news .news-card>a:last-child{grid-column:1;grid-row:auto}.official-news .section-heading{align-items:flex-start}.news-official-label{font-size:11px}}

/* Mobile rating actions: preserve the measured desktop grid. */
@media(max-width:760px){
 body .portal-v020 .star-rating[data-person-rating]{display:flex;flex-direction:column;align-items:stretch;min-width:0;max-width:100%;gap:12px}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-line,
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-note,
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-quick,
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-only,
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-message{grid-area:auto;position:static;min-width:0;box-sizing:border-box;margin:0}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-line{order:1;display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;width:100%;max-width:100%}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-line>.star-rating-average{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-note{order:2;width:100%;max-width:none;line-height:1.6;overflow-wrap:anywhere}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-quick,
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-only{display:inline-flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 auto;width:100%;max-width:100%;min-width:0;min-height:48px;height:auto;padding:12px 10px;border-radius:6px;font-family:inherit;font-size:15px;font-weight:700;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center;cursor:pointer}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-quick{order:3;border:1px solid #1249b8;background:#1457d9;color:#fff}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-quick:hover{background:#1046b4}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-only{order:4;border:1px solid #d4bb79;background:#fff9eb;color:#785416;box-shadow:none}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-only:hover{border-color:#b99848;background:#fff3d5;color:#68460a}
 body .portal-v020 .star-rating[data-person-rating]>.star-rating-message{order:5;width:100%;max-width:100%;overflow-wrap:anywhere}
 /* The inline profile composer already supplies its comment form. */
 body .portal-v020 .profile-feedback-heading .star-rating[data-person-rating]>.star-rating-quick{display:none}
}
@media(max-width:680px){
 /* 52px avatar + 12px column gap: let the rating span below both columns. */
 body .portal-v020 .person-row .star-rating[data-person-rating]{margin-left:-64px;width:calc(100% + 64px);max-width:none;min-width:0;box-sizing:border-box}
}
@media(max-width:380px){html body{min-width:0}}
