/* ProHRHQ public research library. Keep page-specific styles isolated here.
 * CHANGE LOG
 * File: static/css/prohrhq_library.css
 * Purpose: The few additions https://prohrhq.com/library/ needs on top of
 *          static/css/carrier_tools.css, whose layout it reuses as-is (hero, jump buttons,
 *          category sections, picture cards, buttons).
 * How it works: .lib-more is the second link under a card's button (phone version, full paper,
 *          PNG); .lib-links is the link list on outside-research cards; the picture cursor
 *          shows it opens full size in the sitewide lightbox.
 * 2026-10-23 - Business-area picker: .lib-area tiles (area picture, name, one line, count), the
 *              .lib-bar switcher, focus headings, card titles as h4. .lib-js (set by
 *              static/js/library_areas.js) shows one area at a time; without it every area shows.
 * 2026-10-14 - Reduced to additions only; the page now uses the Carrier Tools layout (Michael).
 * 2026-10-14 - Mockup grid, panels and compact cards (superseded the same day).
 * 2026-10-04 - Small "See Carrier Tools" button on each research paper card.
 */

.ct .ct-card__shot img[data-lightbox] { cursor: zoom-in; }
.ct .ct-card { scroll-margin-top: calc(var(--navbar-h, 64px) + 12px); }

.lib-more { align-self: flex-start; font-size: .92rem; color: var(--color-accent); }

.lib-links { margin: 4px 0 0; padding-left: 18px; line-height: 1.45; }
.lib-links li { margin: 0 0 6px; }
.lib-links a { color: var(--color-accent); font-weight: 600; }

/* 2026-10-23: business-area picker and one-area-at-a-time view */
.lib-areas { max-width: 1120px; margin: 0 auto; padding: 32px 28px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; scroll-margin-top: calc(var(--navbar-h, 64px) + 12px); }
.lib-area { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--color-rule); border-radius: 12px; overflow: hidden;
  background: var(--color-bg); box-shadow: var(--shadow-soft); color: var(--color-text); text-decoration: none; padding-bottom: 14px; }
.lib-area:hover, .lib-area:focus-visible { border-color: var(--ct-navy); }
.lib-area__pic { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; margin-bottom: 8px; }
.lib-area__pic--icon { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--color-accent-soft); color: var(--color-accent); }
.lib-area__pic--icon .ct-icon { width: 64px; height: 64px; }
.lib-area__name { padding: 0 16px; font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; color: var(--ct-navy); }
.lib-area__line { padding: 0 16px; line-height: 1.45; flex: 1; }
.lib-area__count { padding: 4px 16px 0; font-size: .9rem; font-weight: 600; color: var(--color-accent); }
.lib-everything { grid-column: 1 / -1; margin: 0; }
.lib-everything a, .lib-back a { color: var(--color-accent); font-weight: 600; }
.lib-note { grid-column: 1 / -1; margin: 0; color: var(--color-error); font-weight: 600; }

.lib-bar { display: none; }
.lib-js.lib-open .lib-areas { display: none; }
.lib-js.lib-open .lib-bar { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: var(--navbar-h, 64px); z-index: 5;
  max-width: 1120px; margin: 0 auto; padding: 12px 28px; background: var(--color-bg); border-bottom: 1px solid var(--color-rule); }
.lib-bar a { padding: 7px 12px; border: 1px solid var(--color-rule); border-radius: 8px; color: var(--ct-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.lib-bar a:hover, .lib-bar a:focus-visible { border-color: var(--ct-navy); }
.lib-bar a[aria-current="true"] { background: var(--ct-navy); border-color: var(--ct-navy); color: #fff; }
.lib-bar a[data-lib-home] { border-color: transparent; color: var(--color-accent); }

.lib-sec__pic { flex: none; width: 180px; height: 75px; object-fit: cover; border-radius: 8px; }
.lib-focus { margin-top: 26px; }
.lib-focus__h { margin: 0 0 12px; padding: 0; border: 0; font-size: 1.15rem; color: var(--color-green); }
.ct .ct-card__body h4 { margin: 0; font-size: 1.15rem; color: var(--ct-navy); text-transform: none; letter-spacing: normal; }
.lib-back { margin: 26px 0 0; }
.lib-js .ct-cat, .lib-js .lib-focus, .lib-js .ct-card { scroll-margin-top: calc(var(--navbar-h, 64px) + 70px); }

@media (max-width: 960px) { .lib-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .lib-areas { grid-template-columns: 1fr; padding: 24px 20px 0; }
  .lib-js.lib-open .lib-bar { padding: 10px 20px; flex-wrap: nowrap; overflow-x: auto; }
  .lib-bar a { white-space: nowrap; }
  .lib-sec__pic { width: 120px; height: 50px; }
}
