/* ============================================================
   Resources — one consolidated page for dues, documents, and finances
   Loaded after styles.css + portal.css; reuses the same tokens.
   ============================================================ */

.resources-body { --line: rgba(18,53,36,.1); --shadow: 0 22px 46px -30px rgba(8,25,18,.38); }
.resources-body :focus-visible { outline: 3px solid rgba(193,79,61,.5); outline-offset: 3px; border-radius: 8px; }
.resources-body [hidden] { display: none !important; }
.is-filtered-out { display: none !important; }

/* ---------- hero + search ---------- */
.rs-hero { padding-block: 2.8rem 1.6rem; background: radial-gradient(60% 90% at 92% 0%, rgba(255,214,205,.7), transparent 62%), var(--pearl); }
.rs-hero .eyebrow { color: var(--salmon-deep); }
.rs-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--ivy-black); }
.rs-hero .lede { color: var(--ink-soft); max-width: 60ch; font-size: 1.04rem; margin-top: .6rem; }
.rs-search { position: relative; display: flex; align-items: center; max-width: 640px; margin-top: 1.5rem; background: #fff; border: 1.5px solid rgba(18,53,36,.2); border-radius: 999px; padding: 0 1.3rem; box-shadow: 0 14px 30px -22px rgba(8,25,18,.5); transition: border-color .2s ease, box-shadow .2s ease; color: var(--ink-soft); }
.rs-search:focus-within { border-color: var(--salmon-deep); box-shadow: 0 0 0 4px rgba(242,145,126,.25); }
.rs-search input { flex: 1; min-width: 0; border: 0; background: none; font: 500 1rem var(--font-body); color: var(--ink); padding: 1.05em .8em; outline: none; }
.rs-search input::placeholder { color: rgba(23,31,25,.45); }
.rs-search-note { margin: .7rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.rs-portal-note { margin-top: .3rem; }

.rs-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.rs-quick-card { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem 1.3rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.rs-quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--salmon-deep); }
.rs-quick-card .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #ffe3dd; color: var(--ivy); margin-bottom: .6rem; }
.rs-quick-card strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ivy-black); }
.rs-quick-card span:last-child { font-size: .84rem; color: var(--ink-soft); }

/* ---------- section chips ---------- */
.rs-chips { position: sticky; top: var(--tabs-h, 46px); z-index: 40; background: rgba(250,246,238,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rs-chips .container { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.rs-chips .container::-webkit-scrollbar { display: none; }
.rs-chips a { flex: none; font-size: .82rem; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid rgba(18,53,36,.15); border-radius: 999px; padding: .5em 1.1em; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.rs-chips a:hover { border-color: var(--ivy); color: var(--ivy); }
.rs-chips a.is-active { background: var(--ivy); border-color: var(--ivy); color: var(--pearl); }

/* ---------- sections ---------- */
.rs-section { padding-block: clamp(2rem, 4.5vw, 3.2rem); scroll-margin-top: 110px; }
.rs-alt { background: linear-gradient(180deg, #fff 0%, var(--pearl-dim) 100%); }
.rs-head { margin-bottom: 1.5rem; }
.rs-head .eyebrow { color: var(--salmon-deep); }
.rs-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--ivy-black); }
.rs-head .sub { color: var(--ink-soft); margin: .4rem 0 0; max-width: 60ch; }
.rs-sub-h { font-family: var(--font-display); font-size: 1.25rem; color: var(--ivy-black); margin: 2.2rem 0 .8rem; }
.rs-fine { margin: .5rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.rs-after { margin: 1.2rem 0 0; }
.rs-contact { margin-top: 1.4rem; }
.rs-empty { margin-block: 1.5rem; padding: 1.2rem 1.4rem; background: #fff; border: 1px dashed rgba(18,53,36,.25); border-radius: 12px; color: var(--ink-soft); }

/* ---------- link lists ---------- */
.rs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rs-list-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rs-link { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ivy-black); font-weight: 500; font-size: .95rem; line-height: 1.3; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.rs-link:hover { border-color: var(--salmon-deep); transform: translateX(3px); box-shadow: 0 10px 22px -18px rgba(8,25,18,.5); }
.rs-link .ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8f2d6; color: var(--apple-deep); }
.rs-link .t { flex: 1; min-width: 0; }
.rs-link .t small { display: block; font-size: .74rem; font-weight: 600; color: var(--salmon-deep); margin-top: .1rem; }
.rs-kind { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--pearl-dim); border-radius: 999px; padding: .3em .75em; }
.rs-gate { flex: none; display: inline-flex; color: var(--ink-soft); opacity: .7; }
.rs-link .go { flex: none; color: var(--ink-soft); transition: transform .2s ease, color .2s ease; }
.rs-link:hover .go { transform: translateX(3px); color: var(--salmon-deep); }

.rs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.rs-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.3rem 1.3rem 1.4rem; }
.rs-card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--ivy-black); margin-bottom: .8rem; display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.rs-card h3 span { font-family: var(--font-body); font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.rs-card .rs-list { gap: .4rem; }
.rs-card .rs-link { background: var(--pearl); border-color: transparent; }
.rs-card .rs-kind { display: none; }
.rs-card .rs-link:hover { background: #fff; border-color: var(--salmon-deep); }

/* ---------- dues ---------- */
.rs-dues { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.rs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.rs-steps li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.rs-date { flex: none; min-width: 96px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--pearl); background: linear-gradient(150deg, #1f5138, #0a2418); border-radius: 12px; padding: .7rem .6rem; }
.rs-steps li:nth-child(3) .rs-date { background: linear-gradient(150deg, #d9708b, #b8456a); }
.rs-steps strong { color: var(--ivy-black); }
.rs-steps p { margin: .15rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.rs-pay { background: linear-gradient(155deg, #1f5138, #081912); color: var(--pearl); border: 1px solid rgba(201,162,77,.55); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); }
.rs-pay h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--pearl); margin-bottom: .9rem; }
.rs-pay .rs-fine { color: rgba(250,246,238,.75); }
.rs-or { margin: 1.1rem 0 .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.rs-pay address { font-style: normal; font-size: .92rem; line-height: 1.55; color: rgba(250,246,238,.9); }
.rs-breakdown { margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.rs-breakdown summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; color: var(--ivy); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rs-breakdown summary::-webkit-details-marker { display: none; }
.rs-breakdown summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--salmon-deep); transition: transform .25s ease; }
.rs-breakdown[open] summary::after { transform: rotate(45deg); }
.rs-breakdown > :not(summary) { padding: 0 1.3rem 1.2rem; }
.rs-policy p { color: var(--ink-soft); font-size: .93rem; max-width: 70ch; }
.rs-table-scroll { overflow-x: auto; }
#dues-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
#dues-table th, #dues-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
#dues-table th:first-child, #dues-table td:first-child { text-align: left; font-weight: 600; }
#dues-table thead th { color: var(--ink-soft); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
#dues-table tr:last-child td { font-weight: 800; color: var(--ivy-black); background: var(--pearl); }
#dues-table td.na { color: rgba(23,31,25,.35); }

/* ---------- finance finder ---------- */
.rs-finder { background: linear-gradient(155deg, #1f5138, #081912); color: var(--pearl); border: 1px solid rgba(201,162,77,.55); border-radius: 22px; padding: clamp(1.4rem, 3.4vw, 2.2rem); box-shadow: var(--shadow); }
.rs-finder-grid { display: grid; grid-template-columns: 1.6fr 1.2fr .8fr .9fr; gap: 1rem; }
.rs-finder label { display: flex; flex-direction: column; gap: .4rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.rs-finder select { appearance: none; -webkit-appearance: none; width: 100%; font: 600 .95rem var(--font-body); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23123524' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center; border: 0; border-radius: 12px; padding: .85em 2.4em .85em 1em; cursor: pointer; text-transform: none; letter-spacing: 0; }
.rs-finder select:disabled { opacity: .55; cursor: not-allowed; }
.rs-finder-out { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(201,162,77,.35); }
.rs-finder-sum { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--pearl); }
.rs-finder .rs-fine { color: rgba(250,246,238,.7); }
.rs-latest { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin-top: 1.2rem; font-size: .78rem; color: rgba(250,246,238,.75); }
.rs-latest > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-latest button { font: 600 .78rem var(--font-body); color: var(--pearl); background: rgba(250,246,238,.1); border: 1px solid rgba(250,246,238,.3); border-radius: 999px; padding: .5em 1.1em; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.rs-latest button:hover { background: rgba(250,246,238,.2); border-color: var(--gold-soft); }

/* ---------- toast ---------- */
.rs-toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 500; transform: translate(-50%, 18px); max-width: min(92vw, 520px); background: var(--ivy-black); color: var(--pearl); border: 1px solid rgba(201,162,77,.55); border-radius: 14px; padding: .95em 1.3em; font-size: .9rem; line-height: 1.45; box-shadow: 0 20px 40px -16px rgba(8,25,18,.7); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .rs-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-dues { grid-template-columns: 1fr; }
  .rs-finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .rs-list-wide, .rs-cards, .rs-cards-3 { grid-template-columns: 1fr; }
  .rs-date { min-width: 78px; font-size: 1rem; }
  .rs-finder-grid { grid-template-columns: 1fr; }
  .rs-finder-out .btn { width: 100%; justify-content: center; min-height: 50px; }
  .rs-pay .btn { width: 100%; justify-content: center; min-height: 50px; }
  .rs-kind { display: none; }
}
@media (max-width: 480px) {
  .rs-quick { grid-template-columns: 1fr; }
}

/* ---------- committee dashboard ---------- */
.cm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.cm-card { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.4rem; }
.cm-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ivy-black); margin: 0; }
.cm-card p { margin: 0 0 .6rem; font-size: .9rem; color: var(--ink-soft); }
.cm-card .btn { margin-top: auto; align-self: flex-start; }
.cm-tip { margin-top: 1.2rem; }
.cm-live { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 1000px) { .cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cm-grid { grid-template-columns: 1fr; } .cm-live .btn { width: 100%; justify-content: center; min-height: 50px; } }

.rs-contact { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(250,246,238,.18); font-size: .9rem; color: rgba(250,246,238,.9); line-height: 1.55; }
.rs-contact a { color: var(--gold-soft, #e8d9a6); font-weight: 700; text-decoration: none; }
.rs-contact a:hover { text-decoration: underline; }

/* ---------- chapter leadership ---------- */
.ld-search { margin: 0 0 1.4rem; }
.ld-note { color: var(--ink-soft); font-size: .92rem; margin: .4rem 0 1rem; }
.ld-h { font-family: var(--font-display); font-size: 1.25rem; color: var(--ivy-black); margin: 1.6rem 0 .9rem; }
.ld-root > .ld-h:first-child { margin-top: .2rem; }
.ld-officers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }
.ld-officer, .ld-pan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.ld-officer[hidden], .ld-pan[hidden], .ld-group[hidden], .ld-table tr[hidden] { display: none; }
.ld-role { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--salmon-deep); }
.ld-officer strong, .ld-pan strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--ivy-black); font-weight: 600; }
.ld-pan { margin-top: .8rem; background: var(--pearl); }
.ld-group { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; overflow: hidden; }
.ld-group summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--ivy-black); display: flex; align-items: center; gap: .7rem; list-style: none; }
.ld-group summary::-webkit-details-marker { display: none; }
.ld-group summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--salmon-deep); }
.ld-group[open] summary::after { content: "\2212"; }
.ld-count { font-size: .72rem; font-weight: 800; background: var(--pearl); border-radius: 999px; padding: .15em .7em; color: var(--ink-soft); }
.ld-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.ld-table th, .ld-table td { padding: .65rem 1.2rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.ld-table thead th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); background: var(--pearl); }
.ld-table tbody th { font-weight: 600; color: var(--ivy-black); }
.ld-table td.is-empty { color: rgba(23,31,25,.35); }
