/* NobleRings – ring governance (0.14.0): Manage ring and the Ring owner area. */

.nr-gov { --nr-gov-line: rgba(0, 0, 0, .1); --nr-gov-soft: rgba(18, 64, 60, .06); }
.nr-gov > * + * { margin-top: 16px; }
.nr-gov h4 { margin: 12px 0 6px; font-size: 15px; }
.nr-gov-ring { margin: 0; }
.nr-gov-small { font-size: 13px; }

/* Tabs */
.nr-gov-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--nr-gov-line); }
.nr-gov-tab { padding: 8px 14px; text-decoration: none; font-weight: 600; color: inherit; border-radius: 6px 6px 0 0; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.nr-gov-tab:hover, .nr-gov-tab:focus { background: var(--nr-gov-soft); }
.nr-gov-tab.is-current { border-bottom-color: #12403c; color: #12403c; }

/* Members */
.nr-gov-members { list-style: none; margin: 0; padding: 0; }
.nr-gov-members li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--nr-gov-line); }
.nr-gov-members li:first-child { border-top: 0; }
.nr-gov-members li.is-left { opacity: .65; }
.nr-gov-members__who { flex: 1 1 220px; min-width: 0; }
.nr-gov-rolebadge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #12403c; color: #fff; vertical-align: middle; }
.nr-gov-status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--nr-gov-soft); white-space: nowrap; }
.nr-gov-status--active { background: #e3f3ea; color: #1d6b3f; }
.nr-gov-status--pending { background: #e6eef6; color: #2f6f9f; }
.nr-gov-status--suspended { background: #fff4d6; color: #7a5600; }
.nr-gov-status--left { background: #f1f1f1; color: #555; }
.nr-gov-memberform input[type="text"], .nr-gov-memberform input[type="tel"], .nr-gov-memberform input[type="email"], .nr-gov-memberform select, .nr-gov-memberform textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.nr-gov-memberform [hidden] { display: none !important; }

/* Leadership */
.nr-gov-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.nr-gov-role { border-top: 4px solid #12403c; margin: 0 !important; }
.nr-gov-role--membership_coordinator { border-top-color: #2f6f9f; }
.nr-gov-role--treasurer { border-top-color: #b07d1a; }
.nr-gov-role h3 { margin-top: 0; }
.nr-gov-role p { margin: 4px 0; }
.nr-gov-vacant { font-style: italic; opacity: .7; }
.nr-gov-term { font-size: 13px; }
.nr-gov-appoint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 6px; }
.nr-gov-appoint select { flex: 1 1 160px; min-width: 0; max-width: 100%; }
.nr-gov-inline { display: inline-block; margin: 4px 0 0; }

/* History */
.nr-gov-history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nr-gov-history li { padding: 8px 0; border-top: 1px solid var(--nr-gov-line); }
.nr-gov-history li:first-child { border-top: 0; }
.nr-gov-history__note { display: inline-block; margin-top: 2px; font-style: italic; }

/* Owner overview */
.nr-gov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.nr-gov-stat { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; }
.nr-gov-stat__num { font-size: 26px; font-weight: 700; color: #12403c; line-height: 1.1; }
.nr-gov-stat__label { font-size: 13px; opacity: .8; }
.nr-gov-ringpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nr-dashboard--owner { display: block; }
.nr-dashboard--owner .nr-gov-owner-main { max-width: 1100px; }
.nr-gov-logout { margin-top: 24px; }

@media (max-width: 600px) {
	.nr-gov-tab { padding: 8px 10px; font-size: 14px; }
	.nr-gov-members .nr-button { margin-left: auto; }
}

/* Candidates and votes (0.14.1) */
.nr-cand-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(18, 64, 60, .06); white-space: nowrap; vertical-align: middle; }
.nr-cand-badge--elected, .nr-cand-badge--joined, .nr-poll-badge--passed, .nr-visit--attended { background: #e3f3ea; color: #1d6b3f; }
.nr-cand-badge--voting, .nr-poll-badge--open, .nr-poll-badge--requested { background: #e6eef6; color: #2f6f9f; }
.nr-cand-badge--invited, .nr-cand-badge--visited, .nr-visit--invited { background: #fff4d6; color: #7a5600; }
.nr-cand-badge--not_elected, .nr-cand-badge--declined, .nr-cand-badge--withdrawn, .nr-poll-badge--failed, .nr-poll-badge--cancelled, .nr-poll-badge--declined, .nr-visit--no_show { background: #f1f1f1; color: #555; }
.nr-cand-list, .nr-cand-results, .nr-cand-comments { list-style: none; margin: 0; padding: 0; }
.nr-cand-list > li, .nr-cand-results > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.nr-cand-results > li { display: block; }
.nr-cand-list > li:first-child, .nr-cand-results > li:first-child { border-top: 0; }
.nr-cand-list__who { flex: 1 1 220px; min-width: 0; }
.nr-cand-list__extra { flex-basis: 100%; font-size: 13px; }
.nr-cand-list__form { flex-basis: 100%; margin: 0 !important; }
.nr-cand-list__buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.nr-cand-poll { border: 1px solid rgba(0, 0, 0, .1); border-radius: 8px; padding: 12px 14px; margin: 12px 0; }
.nr-cand-poll h4 { margin: 0 0 4px; }
.nr-cand-poll p { margin: 6px 0; }
.nr-cand-quote { border-left: 3px solid rgba(18, 64, 60, .3); padding: 4px 0 4px 12px; font-style: italic; margin: 8px 0; }
.nr-cand-choice { border: 0; padding: 0; margin: 8px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.nr-cand-choice label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 2px solid rgba(0, 0, 0, .15); border-radius: 8px; font-weight: 700; cursor: pointer; min-width: 96px; }
.nr-cand-choice .nr-cand-yes:has(input:checked) { border-color: #1d6b3f; background: #e3f3ea; }
.nr-cand-choice .nr-cand-no:has(input:checked) { border-color: #8a2b2b; background: #f6e1e1; }
.nr-cand-form input[type="text"], .nr-cand-form input[type="email"], .nr-cand-form input[type="tel"], .nr-cand-form select, .nr-cand-form textarea, .nr-cand-voteform textarea, .nr-cand-note textarea, .nr-join__form input[type="text"], .nr-join__form input[type="email"], .nr-join__form input[type="tel"], .nr-join__form select, .nr-join__form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.nr-cand-inline { display: inline-block; margin: 4px 6px 0 0; }
.nr-cand-inline .nr-cand-note { display: block; margin: 0 0 6px; max-width: 520px; }
.nr-cand-comments li { padding: 4px 0; font-size: 14px; }
.nr-cand-comments li::before { content: "“"; } .nr-cand-comments li::after { content: "”"; }
.nr-join { max-width: 760px; }
.nr-join__intro { margin-bottom: 16px; }
.nr-join .nr-meet-form__row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.nr-join .nr-meet-form__row > .nr-field { flex: 1 1 220px; min-width: 0; }
.nr-join__consent label { display: flex; gap: 8px; align-items: flex-start; }
/* Add member (0.14.2) */
.nr-gov-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.nr-gov-head h3 { margin: 0; }
.nr-gov-head + p { margin-top: 10px; }
.nr-gov-addform .nr-meet-form__row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.nr-gov-addform .nr-meet-form__row > .nr-field { flex: 1 1 220px; min-width: 0; }
.nr-gov-addform .nr-field > label { display: block; font-weight: 600; margin-bottom: 4px; }
.nr-gov-addform .nr-field > .nr-muted { display: block; font-size: 13px; margin-top: 4px; }
.nr-gov-addform input[type="text"], .nr-gov-addform input[type="email"], .nr-gov-addform input[type="tel"], .nr-gov-addform select, .nr-gov-addform textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.nr-gov-addform select option:disabled { color: #999; }
.nr-gov-pass { display: flex; gap: 6px; align-items: center; }
.nr-gov-pass input { flex: 1 1 auto; min-width: 0; font-family: monospace; }
.nr-gov-addform .nr-field--check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.nr-gov-addform .nr-field--check input { margin-top: 3px; }
.nr-gov-added { border-left: 4px solid #1d6b3f; }
.nr-gov-added__details { width: 100%; max-width: 560px; box-sizing: border-box; font-family: monospace; font-size: 14px; }
.nr-gov-addform input[type="tel"], .nr-gov-addform select, .nr-gov-addform textarea { padding: 10px 12px; border: 1px solid var(--nr-border); border-radius: 6px; font-size: 15px; background: #fff; font-family: inherit; }
.nr-gov-addform input[type="text"], .nr-gov-addform input[type="email"] { max-width: 100%; }
.nr-gov-addform select:focus, .nr-gov-addform textarea:focus { outline: 2px solid var(--nr-accent); outline-offset: 1px; }
.nr-gov-added__details { white-space: pre; overflow-wrap: normal; overflow-x: auto; padding: 10px 12px; border: 1px solid var(--nr-border); border-radius: 6px; background: #fff; resize: vertical; }

/* 0.16.0: removal reason, earlier memberships, adding an existing account */
.nr-gov-leftreason { border: 0; padding: 0; margin: 0 0 14px; }
.nr-gov-leftreason legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.nr-gov-leftreason .nr-choice { display: block; margin: 4px 0; }
.nr-gov-leftreason[hidden] { display: none; }
.nr-gov-memberships li.is-excluded { border-left: 3px solid #b32d2e; padding-left: 8px; }
.nr-gov-addswitch { margin-bottom: 12px; }
.nr-gov-rejoin h4 { margin: 16px 0 6px; }
