/* Shared resource surfaces. The app's primary navy/gold tokens remain authoritative. */
.resource-icon{display:block;width:21px;height:21px;flex:none}
.resources-eyebrow{font-size:12px;letter-spacing:1.15px;font-weight:700;color:#7b6847;line-height:1.5;margin:0 0 8px}
.alga-resources-featured{margin-top:30px;padding-top:26px;border-top:1px solid var(--line,#dedfdc)}
.resources-featured-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:20px}
.resources-featured-heading h3{font-size:22px;line-height:1.35;color:var(--navy,#10283f);font-weight:600;margin:0 0 7px}
.resources-featured-heading>div>p:last-child{font-size:16px;color:var(--muted,#5d6975);line-height:1.6}
.resource-browse-button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:42px;padding:10px 15px;background:#fff;border:1px solid #c8ced1;border-radius:7px;color:var(--navy,#10283f);font-size:14px;font-weight:600;line-height:1.4}
.resource-browse-button:hover{background:#eef1f1}
.resources-featured-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.resources-featured-card{border:1px solid var(--line,#dedfdc);border-radius:12px;background:#fff;padding:24px;min-width:0;display:flex;flex-direction:column}
.resources-card-heading{display:flex;align-items:flex-start;gap:11px;color:var(--gold,#a67b32);margin-bottom:17px}
.resources-card-heading h4{font-size:17px;line-height:1.4;color:var(--navy,#10283f);font-weight:600;margin:0}
.resources-featured-faqs{list-style:none;padding:0;margin:0 0 17px}
.resources-featured-faqs li+li{border-top:1px solid #e7e9e4}
.resources-featured-faqs button{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;width:100%;padding:13px 0;background:none;font-size:15px;line-height:1.5;color:#304b5e}
.resources-featured-faqs button:hover{color:#916a2b}
.resources-featured-faqs .resource-icon{width:15px;height:15px;color:#a48754}
.resource-text-button{background:none;text-decoration:underline;text-underline-offset:4px;padding:0;color:var(--navy,#10283f);font-size:14px;line-height:1.5;text-align:left;align-self:flex-start;margin-top:auto}
.resources-planned-note{font-size:14px;color:var(--muted,#5d6975);line-height:1.6;margin:0 0 10px}
.resources-featured-materials{list-style:none;padding:0;margin:0 0 21px;display:grid;gap:0}
.resources-featured-materials li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0}
.resources-featured-materials li+li{border-top:1px solid #e7e9e4}
.resources-featured-materials strong{font-size:14px;font-weight:600;line-height:1.55;color:#304b5e;display:block}
.resources-featured-materials li>div>span{font-size:12px;color:#6d7a84;display:block;margin-top:4px}
.resource-coming-soon{display:inline-flex;align-items:center;white-space:nowrap;background:#f3ecdf;color:#80622d;border:1px solid #e5d6b9;border-radius:5px;font-size:12px;font-weight:600;line-height:1.5;padding:3px 7px;flex:none}
.resource-followup{margin-top:22px;border:1px solid #e0d6c2;background:#f7f3ea;border-radius:10px;padding:21px;text-align:left}
.resource-followup-heading{display:flex;align-items:flex-start;gap:10px;color:var(--gold,#a67b32)}
.resource-followup-heading h3{font-size:18px;line-height:1.4;font-weight:600;color:var(--navy,#10283f);margin:0}
.resource-followup>p{font-size:14px;color:#66716c;line-height:1.65;margin:10px 0 0}
.resource-followup-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.resource-followup-actions button{font-size:14px;line-height:1.4;padding:9px 13px;background:#fff;border:1px solid #c8cbbf;border-radius:6px;font-weight:600;color:#274657}
.resource-followup-actions button:hover{background:#edf1eb}
.resource-followup .resource-followup-recommendation{font-size:12px;color:#7d7d6f;margin-top:14px}
.resource-followup-recommendation strong{font-weight:600;color:#646b62}
.resource-followup-recommendation span{font-weight:600;color:#86662b}
#resources-dialog{width:min(1020px,calc(100% - 32px));max-height:90vh;max-height:90dvh;padding:0;border:1px solid #cdd2cb;border-radius:15px;background:#f9f9f5;color:var(--navy,#10283f);overflow:hidden;box-shadow:0 24px 100px #0b243d50}
#resources-dialog::backdrop{background:#0a2134b0;backdrop-filter:blur(3px)}
.resources-shell{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh}
.resources-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:27px 30px 19px;flex:none}
.resources-header h2{font:29px/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.3px;color:var(--navy,#10283f);margin:0}
.resources-close{display:flex;align-items:center;justify-content:center;min-width:36px;height:36px;border-radius:50%;border:1px solid #d7dbd3;background:#edeee7;color:#536876;flex:none}
.resources-close .resource-icon{width:18px;height:18px}
.resources-education-note{display:flex;align-items:flex-start;gap:14px;padding:14px 30px;background:#edf1f2;border-top:1px solid #e1e6e5;border-bottom:1px solid #dbe2e3;flex:none}
.resources-education-note>strong{font-size:13px;line-height:1.6;color:#35546b;white-space:nowrap;margin-top:1px}
.resources-education-note p{font-size:13px;line-height:1.65;color:#5c6b74;margin:0}
.resources-tabs{display:flex;gap:5px;padding:16px 30px 0;border-bottom:1px solid #d9ddd5;flex:none}
.resources-tabs button{position:relative;padding:10px 15px 15px;border:0;background:none;color:#6a7680;font-size:15px;font-weight:600;line-height:1.4}
.resources-tabs button[aria-selected=true]{color:var(--navy,#10283f)}
.resources-tabs button[aria-selected=true]::after{content:'';position:absolute;left:15px;right:15px;bottom:-1px;height:3px;background:var(--gold,#a67b32);border-radius:2px 2px 0 0}
.resources-context{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:11px 30px;background:#f1eadb;border-bottom:1px solid #e3d9c4;flex:none;font-size:13px;line-height:1.5;color:#776239}
.resources-context button{font-size:13px;background:none;color:#755621;text-decoration:underline;text-underline-offset:3px;padding:0;flex:none}
.resources-toolbar{display:flex;align-items:flex-end;gap:15px;padding:21px 30px 12px;flex:none}
.resources-toolbar label{display:block;font-size:14px;font-weight:600;line-height:1.5;color:#425869;margin-bottom:7px}
.resources-search-field{flex:1;min-width:0}
.resources-search-field>div{position:relative}
.resources-search-field .resource-icon{position:absolute;top:12px;left:12px;color:#879396;width:18px;height:18px;pointer-events:none}
#resources-dialog #resources-search{padding-left:38px;font-size:15px;min-height:44px;background:#fff}
.resources-filter{width:175px;flex:none;min-width:0}
#resources-dialog .resources-filter select{min-height:44px;font-size:14px;padding-left:10px}
.resources-result-count{font-size:12px;color:#7b878b;line-height:1.5;padding:0 30px 13px;margin:0;flex:none}
.resources-panel{overflow-y:auto;overscroll-behavior:contain;padding:0 30px 24px;min-height:80px;scrollbar-gutter:stable;flex:1}
.resource-faq-list{display:grid;gap:11px}
.resource-faq{border:1px solid #dce1d8;border-radius:10px;background:#fff}
.resource-faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;cursor:pointer}
.resource-faq summary::-webkit-details-marker{display:none}
.resource-faq summary small{display:block;font-size:12px;color:#8a7856;line-height:1.5;margin-bottom:4px}
.resource-faq summary strong{display:block;font-size:16px;line-height:1.5;color:#28495e;font-weight:600}
.resource-faq summary>.resource-icon{width:17px;height:17px;color:#a2864c;transition:transform .15s ease}
.resource-faq[open] summary>.resource-icon{transform:rotate(45deg)}
.resource-faq[open] summary{padding-bottom:12px}
.resource-faq-answer{padding:0 20px 20px}
.resource-faq-answer p{font-size:16px;line-height:1.75;color:#536773;margin:0}
.resource-faq-answer a{display:inline-block;margin-top:14px;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;color:#80612e}
.resources-material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.resource-material-card{display:flex;flex-direction:column;padding:22px 19px;border:1px solid #dce1d8;border-radius:10px;background:#fff;min-width:0}
.resource-material-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}
.resource-material-icon{width:36px;height:40px;border:1px solid #ddd2b9;border-radius:6px;background:#f7f1e6;display:flex;align-items:center;justify-content:center;color:#94713a}
.resource-material-category{font-size:12px;line-height:1.5;color:#8b7750;margin:0 0 7px}
.resource-material-card h3{font-size:17px;line-height:1.45;font-weight:600;color:#27475d;margin:0 0 10px}
.resource-material-description{font-size:15px;line-height:1.7;color:#68757e;margin:0 0 20px;flex:1}
.resource-material-meta{display:flex;gap:7px;flex-wrap:wrap;padding-top:13px;border-top:1px solid #e7ebe4}
.resource-material-meta span{font-size:12px;line-height:1.5;background:#f1f4f2;color:#66776f;padding:3px 6px;border-radius:4px}
.resource-material-unavailable{font-size:12px;color:#8a8e85;line-height:1.5;margin:12px 0 0}
.resources-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 30px;border-top:1px solid #dce1d8;background:#f3f4ee;flex:none}
.resources-footer p{font-size:12px;line-height:1.6;color:#7b857d;margin:0}
.resources-empty{text-align:center;padding:35px 20px 40px;background:#fff;border:1px dashed #cdd6cb;border-radius:10px}
.resources-empty>.resource-icon{width:28px;height:28px;color:#a68c5e;margin:0 auto 15px}
.resources-empty h3{font-size:20px;line-height:1.4;margin:0 0 10px;font-weight:600}
.resources-empty p{font-size:15px;line-height:1.6;color:#728177;margin:0 0 20px}
@media(max-width:1000px){.resources-featured-heading{align-items:flex-start}.resources-featured-heading h3{font-size:20px}.resources-featured-card{padding:21px}.resources-featured-grid{gap:16px}.resources-featured-materials li{display:block}.resources-featured-materials .resource-coming-soon{margin-top:7px}.resources-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.resources-featured-heading{display:block}.resources-featured-heading>.resource-browse-button{margin-top:15px}.resources-featured-grid{grid-template-columns:1fr}.resources-featured-materials li{display:flex}.resources-featured-materials .resource-coming-soon{margin-top:0}.resources-header{padding:22px 21px 18px}.resources-header h2{font-size:25px}.resources-education-note{display:block;padding:13px 21px}.resources-education-note>strong{display:block;margin-bottom:4px}.resources-tabs{padding:13px 16px 0;gap:2px}.resources-tabs button{font-size:14px;padding:10px 10px 14px;flex:1;text-align:left}.resources-tabs button[aria-selected=true]::after{left:10px;right:10px}.resources-toolbar{flex-wrap:wrap;padding:17px 21px 10px;gap:12px}.resources-search-field{flex-basis:100%}.resources-filter{flex:1;width:auto}.resources-context{padding:10px 21px;font-size:12px}.resources-result-count{padding:0 21px 12px}.resources-panel{padding:0 21px 20px}.resources-footer{padding:14px 21px;gap:15px}.resource-faq summary{padding:16px}.resource-faq-answer{padding:0 16px 18px}.resource-faq summary strong,.resource-faq-answer p{font-size:15px}.resource-followup{padding:19px}.resource-followup-heading h3{font-size:17px}}
@media(max-width:480px){#resources-dialog{width:calc(100% - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.resources-shell{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px)}.resources-header{padding:19px 16px 15px;gap:13px}.resources-header h2{font-size:23px}.resources-eyebrow{font-size:11px;letter-spacing:.85px}.resources-close{min-width:32px;height:32px}.resources-education-note{padding:11px 16px}.resources-education-note p{font-size:12px;line-height:1.6}.resources-education-note>strong{font-size:12px}.resources-tabs{padding:10px 9px 0}.resources-tabs button{font-size:13px;padding:9px 8px 12px;line-height:1.45}.resources-context{padding:9px 16px;gap:12px;font-size:12px}.resources-context button{font-size:12px}.resources-toolbar{padding:14px 16px 10px;gap:11px}.resources-toolbar label{font-size:13px}.resources-toolbar input,.resources-toolbar select{font-size:16px!important}.resources-result-count{padding:0 16px 11px}.resources-panel{padding:0 16px 17px}.resources-material-grid{grid-template-columns:1fr}.resource-material-card{padding:19px}.resource-material-description{font-size:16px}.resources-footer{padding:12px 16px;gap:12px}.resources-footer .resource-browse-button{font-size:13px;padding:9px 11px}.resources-footer p{font-size:11px}.resource-faq summary strong,.resource-faq-answer p{font-size:16px}.resources-featured-heading h3{font-size:20px}.resources-featured-heading>div>p:last-child{font-size:15px}.resources-featured-card{padding:20px}.resources-featured-materials li{display:block}.resources-featured-materials .resource-coming-soon{margin-top:7px}.resource-followup-actions{flex-direction:column}.resource-followup-actions button{width:100%}}
@media print{#resources-dialog,.alga-resources-featured,.resource-followup{display:none!important}}

/* Short phone viewports scroll the complete dialog so filters cannot squeeze
   the results or footer outside the accessible area. */
@media(max-width:700px) and (max-height:760px){
  #resources-dialog{overflow-y:auto;overscroll-behavior:contain}
  #resources-dialog .resources-shell{max-height:none}
  #resources-dialog .resources-panel{flex:none;min-height:0;overflow:visible;scrollbar-gutter:auto}
}
