/* online-resources.css — styles for online_resources.php only (15 Nov 2026).
   The collapsible sections reuse the .ps-accordion* rules in site.css (same arrow as the Clinical Resources page);
   everything here is prefixed or- and is used by no other page. Loads AFTER site.css. */

.or-wrap { padding: 24px 20px 40px; margin: 0 auto; }
.or-lede { color: var(--ps-ink-soft, #475569); font-size: var(--ps-fs-md, 1.05rem); line-height: 1.6; margin: 0 0 18px; }

/* Search + expand / collapse row */
.or-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 8px; }
.or-search { flex: 1 1 260px; min-width: 0; padding: 10px 12px; font-size: 16px; /* 16px stops iPhone zooming in */
    border: 1px solid var(--ps-line-strong, #cbd5e1); border-radius: var(--ps-r, 8px); background: var(--ps-surface, #fff); color: var(--ps-ink, #1f2937); }
.or-search:focus { outline: 2px solid var(--ps-brand, #0b5394); outline-offset: 1px; }
.or-toolbtn { padding: 9px 14px; font: inherit; font-size: var(--ps-fs-sm, .85rem); font-weight: 600; cursor: pointer;
    color: var(--ps-brand, #0b5394); background: var(--ps-surface, #fff);
    border: 1px solid var(--ps-line-strong, #cbd5e1); border-radius: var(--ps-r, 8px); }
.or-toolbtn:hover { background: var(--ps-brand-tint, #eef4fb); }
.or-status { min-height: 1.4em; margin: 0 0 12px; font-size: var(--ps-fs-sm, .85rem); color: var(--ps-muted, #6b7280); }

/* Key to the access labels */
.or-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; padding: 0; list-style: none;
    font-size: var(--ps-fs-sm, .85rem); color: var(--ps-ink-soft, #475569); }
.or-key li { display: flex; align-items: center; gap: 6px; }

.or-wrap .ps-accordion { padding-bottom: 8px; }
.or-wrap .ps-accordion-body { gap: 10px; padding-bottom: 16px; }
.or-intro { margin: 0; font-size: var(--ps-fs-base, .95rem); color: var(--ps-ink-soft, #475569); line-height: 1.55; }

/* The links: two columns on a wide screen, one on a phone */
.or-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.or-item { margin: 0; }
.or-link { display: block; height: 100%; padding: 11px 13px; text-decoration: none;
    border: 1px solid var(--ps-line, #e2e8f0); border-radius: var(--ps-r, 8px); background: var(--ps-surface, #fff);
    transition: border-color .15s, background .15s; }
.or-link:hover, .or-link:focus-visible { border-color: var(--ps-brand, #0b5394); background: var(--ps-brand-tint, #eef4fb); }
.or-name { display: block; font-weight: 700; color: var(--ps-brand, #0b5394); line-height: 1.35; overflow-wrap: anywhere; }
.or-ext { width: 12px; height: 12px; margin-left: 5px; vertical-align: -1px; opacity: .65; }
.or-desc { display: block; margin-top: 3px; font-size: var(--ps-fs-sm, .85rem); line-height: 1.5; color: var(--ps-ink, #1f2937); }
.or-host { display: block; margin-top: 4px; font-size: var(--ps-fs-xs, .75rem); color: var(--ps-muted, #6b7280); overflow-wrap: anywhere; }

/* Sub-groups inside a category: a small heading with its own arrow (closed to start with on a phone) */
.or-group { display: flex; flex-direction: column; gap: 8px; }
.or-group-head { display: flex; align-items: center; gap: 8px; width: 100%; margin: 4px 0 0; padding: 8px 10px;
    font: inherit; font-size: var(--ps-fs-base, .95rem); font-weight: 700; text-align: left; cursor: pointer;
    color: var(--ps-heading, #0f172a); background: var(--ps-surface-alt, #f8fafc);
    border: 1px solid var(--ps-line, #e2e8f0); border-radius: var(--ps-r, 8px); }
.or-group-head:hover { background: var(--ps-brand-tint, #eef4fb); }
.or-group-label { flex: 1; min-width: 0; }
.or-group-count { font-size: var(--ps-fs-xs, .75rem); font-weight: 600; color: var(--ps-muted, #6b7280); }
.or-group-chevron { flex: none; color: var(--ps-slate-400, #94a3b8); transition: transform .2s ease; }
.or-group-head[aria-expanded="false"] .or-group-chevron { transform: rotate(-90deg); }
.or-list[hidden] { display: none; }

/* Access labels */
.or-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: var(--ps-fs-xs, .75rem); font-weight: 600;
    line-height: 1.5; border-radius: var(--ps-r-pill, 999px); vertical-align: 1px; white-space: nowrap; }
.or-key .or-tag { margin-left: 0; }
.or-tag--login   { background: var(--ps-brand-tint, #eef4fb); color: var(--ps-brand-dark, #0a4279); }
.or-tag--members { background: var(--ps-warn-tint, #fffbeb); color: var(--ps-warn, #b45309); }
.or-tag--sub     { background: var(--ps-danger-tint, #fef2f2); color: var(--ps-danger, #b91c1c); }

/* Section dots */
.or-dot--blue   { background: #0b5394; } .or-dot--teal   { background: #0d9488; } .or-dot--red    { background: #dc2626; }
.or-dot--purple { background: #7c3aed; } .or-dot--green  { background: #16a34a; } .or-dot--amber  { background: #d97706; }
.or-dot--slate  { background: #64748b; } .or-dot--orange { background: #ea580c; } .or-dot--navy   { background: #1e3a8a; }
.or-dot--indigo { background: #4f46e5; } .or-dot--lime   { background: #65a30d; } .or-dot--pink   { background: #db2777; }
.or-dot--cyan   { background: #0891b2; } .or-dot--brown  { background: #92400e; } .or-dot--violet { background: #9333ea; }
.or-dot--rose   { background: #e11d48; } .or-dot--gold   { background: #ca8a04; }

.or-none { margin: 0 0 16px; padding: 14px 16px; border: 1px dashed var(--ps-line-strong, #cbd5e1); border-radius: var(--ps-r, 8px);
    color: var(--ps-ink-soft, #475569); }
.or-foot { margin: 8px 0 0; font-size: var(--ps-fs-sm, .85rem); line-height: 1.6; color: var(--ps-ink-soft, #475569); }
.or-foot + .or-foot { margin-top: 8px; }
.or-hide { display: none !important; }

@media (max-width: 700px) {
    .or-wrap { padding: 18px 14px 32px; }
    .or-list { grid-template-columns: 1fr; }
    .or-toolbtn { flex: 1 1 auto; }
}
@media print {
    .or-tools, .or-status { display: none; }
    .or-wrap .ps-accordion-body[hidden] { display: flex !important; }
    .or-wrap .or-list[hidden] { display: grid !important; }
    .or-host { color: #000; }
}
