/* ConsultiQ AlburyCity community review — projects explorer (v1)
 * Matches the site palette: navy #0d2a3a, teal #11adc4/#087e82, coral #d66b55.
 * No sticky element at top:0 (the v2 banner owns that; nav.css offsets the header).
 * Touch targets >= 44px; usable at 375px.
 */

.px-page { background: #f4f8f8; color: #163447; font-family: Inter, 'Aptos', 'Segoe UI', Arial, sans-serif; }
.px-page a { color: #087d8c; }

/* ---------- hero (navy) ---------- */

.px-hero { background: var(--cq-navy, #0d2a3a); color: #fff; padding: 54px 0 46px; }
.px-hero .container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.px-overline { font-size: 11.5px; letter-spacing: 0.18em; font-weight: 800; color: #7fe0e8; text-transform: uppercase; margin: 0 0 14px; }
.px-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.05em; font-weight: 850; margin: 0 0 16px; max-width: 900px; }
.px-hero .px-intro { font-size: clamp(15px, 1.8vw, 17.5px); line-height: 1.55; color: #d4e9ec; max-width: 860px; margin: 0 0 30px; }
.px-hero .px-intro strong { color: #fff; }

/* KPI cards on navy — white text stays readable (body copy >= #cfe3ea) */
.px-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.px-kpi { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 10px; padding: 20px 22px; }
.px-kpi strong { display: block; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 850; color: #fff; margin-bottom: 7px; }
.px-kpi span { display: block; font-size: 13px; line-height: 1.45; color: #cfe3ea; }
.px-kpi.warn strong { color: #ffb09a; }
.px-kpi-note { font-size: 12.5px; line-height: 1.5; color: #b9d2dd; max-width: 860px; margin: 0; }

/* ---------- controls (search + filters) ---------- */

.px-controls { padding: 30px 0 8px; }
.px-controls .container, .px-cards-sec .container, .px-featured .container, .px-coverage .container, .pxd-body .container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.px-filterbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; background: #fff; border: 1px solid #d3e2e6; border-radius: 12px; padding: 18px; }
.px-filterbar label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 750; color: #274958; }
/* The search field's LABEL is the flex item (the input sits inside a column-flex label,
   so flex-basis on the input itself would size its height). */
.px-filterbar .px-q { flex: 1 1 250px; }
.px-filterbar input[type="search"], .px-filterbar select { min-height: 46px; border: 1px solid #a4bfc5; border-radius: 8px; padding: 9px 12px; font-size: 14.5px; background: #fff; color: #163447; }
.px-filterbar input[type="search"] { min-width: 0; width: 100%; }
.px-filterbar select { min-width: 170px; }
.px-filterbar input:focus-visible, .px-filterbar select:focus-visible { outline: 2px solid #11adc4; border-color: #11adc4; }
.px-reset { min-height: 46px; padding: 10px 20px; border-radius: 8px; border: 1px solid #a4bfc5; background: #eef5f7; color: #17506b; font-weight: 750; font-size: 13.5px; cursor: pointer; }
.px-reset:hover { background: #dceced; border-color: #11adc4; }
.px-resultline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 4px; font-size: 13.5px; color: #47616d; }
.px-resultline strong { font-size: 15px; color: #163447; }

/* ---------- cards ---------- */

.px-cards-sec { padding-bottom: 26px; }
.px-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.px-card { background: #fff; border: 1px solid #c9dcdf; border-radius: 11px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.15s ease, transform 0.15s ease; }
.px-card:hover { border-color: #11adc4; transform: translateY(-2px); }
.px-card h3 { font-size: 16.5px; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.px-card h3 a { color: #103b50; text-decoration: none; font-weight: 800; }
.px-card h3 a:hover, .px-card h3 a:focus-visible { color: #087d8c; text-decoration: underline; outline-color: #11adc4; }
.px-badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
.px-badge-in { background: #e2f4f6; color: #0b6f86; border: 1px solid #b7dfe5; }
.px-badge-out { background: #fbeae6; color: #a04a37; border: 1px solid #eec9c0; }
.px-badge-said { background: #e7f6ee; color: #146c43; border: 1px solid #b7e0c8; }
.px-badge-src { background: #eef5f7; color: #17506b; border: 1px solid #c9dcdf; }
.px-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.px-more:empty { display: none; }
.px-more .px-more-btn { flex: 0 1 auto; }
.px-completed { padding: 28px 0 10px; }
.px-completed h2 { margin: 0 0 10px; }
.px-completed label { display: block; margin: 14px 0; font-weight: 750; color: #103b50; }
.px-completed select { display: block; margin-top: 6px; min-height: 44px; min-width: min(100%, 420px); }
.px-view-note { margin: 14px 0 0; padding: 12px 14px; background: #f4f7f8; border-left: 4px solid #0b6f86; color: #1d3c4a; font-size: 14.5px; line-height: 1.5; }
.px-card-meta { font-size: 12.5px; color: #60808b; margin: 0; line-height: 1.5; }
.px-card-amt { margin: 0; font-size: 13.5px; color: #47616d; line-height: 1.45; }
.px-card-amt strong { font-size: 20px; letter-spacing: -0.02em; color: #103b50; margin-right: 6px; }
.px-open { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 8px; background: var(--cq-navy, #0d2a3a); color: #fff !important; font-weight: 750; font-size: 13.5px; text-decoration: none; margin-top: auto; }
.px-open:hover { background: #164962; }
.px-empty { padding: 34px 26px; background: #fff; border: 1px dashed #a4bfc5; border-radius: 11px; font-size: 14.5px; line-height: 1.6; color: #47616d; margin-top: 12px; }
.px-empty strong { color: #163447; }

/* ---------- featured stories ---------- */

.px-featured { padding: 30px 0 8px; }
.px-featured h2, .px-coverage h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; margin: 0 0 6px; color: #103b50; }
.px-featured > .container > p, .px-coverage > .container > p { font-size: 14px; color: #47616d; max-width: 820px; margin: 0 0 18px; line-height: 1.55; }
.px-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.px-story { background: #fff; border: 1px solid #c9dcdf; border-left: 4px solid var(--cq-teal, #11adc4); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.px-story h3 { font-size: 16.5px; margin: 0; line-height: 1.3; color: #103b50; letter-spacing: -0.01em; }
.px-story ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.55; color: #3c5662; }
.px-quote { margin: 0; padding: 12px 14px; background: #f2f7f8; border-left: 3px solid var(--cq-teal, #11adc4); font-size: 13px; line-height: 1.55; color: #33505c; border-radius: 0 6px 6px 0; }
.px-quote cite { display: block; margin-top: 7px; font-style: normal; font-size: 11.5px; font-weight: 700; color: #0b6f86; }
.px-story-src { font-size: 12px; color: #60808b; line-height: 1.5; margin-top: auto; }
.px-story-src a { font-weight: 700; text-decoration: none; }
.px-story-src a:hover { text-decoration: underline; }

/* ---------- coverage note + method link ---------- */

.px-coverage { padding: 26px 0 54px; }
.px-callout { background: #eef5f7; border-left: 4px solid var(--cq-teal, #11adc4); border-radius: 0 8px 8px 0; padding: 18px 22px; font-size: 14px; line-height: 1.6; color: #33505c; max-width: 900px; }
.px-callout strong { color: #17506b; }
.px-methodlink { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; margin-top: 18px; border-radius: 8px; background: var(--cq-navy, #0d2a3a); color: #fff !important; font-weight: 750; font-size: 14px; text-decoration: none; }
.px-methodlink:hover { background: #164962; }

/* ---------- detail page (project.html) ---------- */

.pxd-hero { padding-bottom: 38px; }
.pxd-idchip { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.pxd-metarow { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: #cfe3ea; margin-top: 4px; line-height: 1.5; }
.pxd-metarow strong { color: #fff; display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.pxd-src-line { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 13px; line-height: 1.6; color: #b9d2dd; }
.pxd-src-line a { color: #7fe0e8; font-weight: 700; text-decoration: none; }
.pxd-src-line a:hover { text-decoration: underline; }

.pxd-body { padding: 34px 0 60px; }
.pxd-panel { background: #fff; border: 1px solid #c9dcdf; border-radius: 12px; padding: 24px 26px; margin-bottom: 20px; }
.pxd-panel h2 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -0.02em; margin: 0 0 6px; color: #103b50; }
.pxd-panel > p.pxd-sub { font-size: 13.5px; color: #47616d; line-height: 1.55; max-width: 820px; margin: 0 0 18px; }

/* evidence summary table */
.px-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; border: 1px solid #d3e2e6; }
table.px-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.px-table caption { text-align: left; padding: 14px 16px 10px; font-size: 12.5px; line-height: 1.55; color: #47616d; background: #f2f7f8; border-bottom: 1px solid #d3e2e6; }
.px-table th, .px-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #e2edee; line-height: 1.5; }
.px-table thead th { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #5b7683; background: #f7fafb; border-bottom: 2px solid #c9dcdf; white-space: nowrap; }
.px-table tbody th { font-weight: 750; color: #17506b; white-space: nowrap; }
.px-table td.num, .px-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.px-notest { color: #a04a37; font-weight: 750; background: #fbeae6; padding: 2px 8px; border-radius: 5px; font-size: 12.5px; white-space: nowrap; }
.px-zeroish { color: #9fb4bd; }

/* planned bars (detail page) */
.pxd-bars { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.pxd-bar-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; font-size: 13px; color: #47616d; }
.pxd-bar-track { background: #eef5f7; border-radius: 6px; height: 26px; position: relative; overflow: hidden; }
.pxd-bar-fill { height: 100%; background: var(--cq-teal, #11adc4); border-radius: 6px 0 0 6px; min-width: 3px; }
.pxd-bar-val { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 750; color: #17506b; }

/* removal panel */
.pxd-removal { border-left: 4px solid var(--cq-coral, #d66b55); }
.pxd-removal .px-quote { background: #fdf3f0; border-left-color: var(--cq-coral, #d66b55); }

/* unknown / missing id state */
.pxd-missing { padding: 40px 26px; background: #fff; border: 1px dashed #a4bfc5; border-radius: 12px; font-size: 15.5px; line-height: 1.7; color: #3c5662; }
.pxd-missing a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 8px; background: var(--cq-navy, #0d2a3a); color: #fff !important; font-weight: 750; text-decoration: none; margin-top: 16px; }

/* ---------- method page (projects-method.html) ---------- */

.pxmethod { padding: 48px 0 64px; background: #f4f8f8; color: #173745; font-family: Inter, 'Aptos', 'Segoe UI', Arial, sans-serif; }
.pxmethod .container { width: min(920px, calc(100% - 40px)); margin-inline: auto; }
.pxmethod h1 { font-size: clamp(30px, 4.5vw, 46px); letter-spacing: -0.04em; line-height: 1.08; margin: 0 0 12px; color: #103b50; }
.pxmethod .pxm-lede { font-size: 16px; line-height: 1.6; color: #3c5662; max-width: 760px; margin: 0 0 34px; }
.pxmethod section { background: #fff; border: 1px solid #dce7e7; border-radius: 10px; padding: 26px 28px; margin-bottom: 18px; }
.pxmethod h2 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 10px; color: #103b50; }
.pxmethod p, .pxmethod li { font-size: 14.5px; line-height: 1.65; color: #3c5662; max-width: 780px; }
.pxmethod ul { padding-left: 22px; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pxmethod a { color: #057b85; font-weight: 700; text-decoration: none; }
.pxmethod a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .px-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-grid, .px-stories { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .px-hero { padding: 38px 0 32px; }
  .px-filterbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  /* In a column, the label's desktop flex-basis would become a 250px height. */
  .px-filterbar .px-q { flex: 1 1 auto; }
  .px-filterbar input[type="search"], .px-filterbar select, .px-reset { width: 100%; min-width: 0; }
  .px-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .px-kpi { padding: 16px; }
  .px-card { padding: 17px 18px; }
  .pxd-metarow { flex-direction: column; gap: 12px; }
  .pxd-panel { padding: 19px 18px; }
  .pxm-section, .pxmethod section { padding: 20px 18px; }
}
