/* Paint explorer: navy hero like the homepage, swatch grids, slide-up color detail. */
.ph-paint { --pp-ink: #1a2d4a; --pp-brick: #b05a44; --pp-cream: #faf7f0; --pp-sand: #f2ead9; --pp-line: #e3dccb; --pp-muted: #6b6559; }
.ph-paint .pp-hero { background: var(--pp-ink); color: #fff; padding: 44px 0 30px; }
.ph-paint .pp-hero h1 { color: #fff; margin: 0 0 8px; }
.ph-paint .pp-lede { color: #d7deea; max-width: 60ch; margin-bottom: 16px; }
.ph-paint .pp-search { position: relative; max-width: 640px; }
.ph-paint #pp-q { width: 100%; padding: 12px 14px; border-radius: 4px; border: 0; font-size: 16px; }
.ph-paint .pp-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; color: #222; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-height: 420px; overflow-y: auto; }
.ph-paint .pp-res { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-bottom: 1px solid #eee; cursor: pointer; }
.ph-paint .pp-res:hover, .ph-paint .pp-res:focus { background: #f5f2ea; }
.ph-paint .pp-res i { width: 34px; height: 34px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.08); }
.ph-paint .pp-res small { color: #777; display: block; }
.ph-paint .pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ph-paint .pp-chips a { color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 12px; font-size: 14px; text-decoration: none; }
.ph-paint .pp-sec { padding: 36px 0; }
.ph-paint .pp-band { background: var(--pp-sand); }
.ph-paint .pp-sub { color: var(--pp-muted); margin-bottom: 16px; }
.ph-paint .pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.ph-paint .pp-grid-lg { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ph-paint .pp-sw { border: 1px solid var(--pp-line); border-radius: 6px; background: #fff; padding: 0; overflow: hidden; text-align: left; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.ph-paint .pp-sw:focus-visible { outline: 3px solid var(--pp-brick); outline-offset: 2px; }
.ph-paint .pp-sw i { display: block; aspect-ratio: 4 / 3; }
.ph-paint .pp-sw span { padding: 6px 8px 8px; font-size: 13px; line-height: 1.25; }
.ph-paint .pp-sw small { display: block; color: var(--pp-muted); font-size: 11.5px; }
.ph-paint .pp-sw b.pp-badge { display: inline-block; margin-top: 3px; font-size: 11px; color: var(--pp-brick); font-weight: 700; }
.ph-paint .pp-fams { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ph-paint .pp-fams button { border: 1px solid var(--pp-line); background: #fff; border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.ph-paint .pp-fams button i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.ph-paint .pp-fams button[aria-pressed="true"] { background: var(--pp-ink); color: #fff; border-color: var(--pp-ink); }
.ph-paint .pp-more { text-align: center; margin-top: 18px; }
.ph-paint .pp-loading { color: var(--pp-muted); }
.ph-paint .pp-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ph-paint .pp-step { margin-bottom: 16px; }
.ph-paint .pp-step h4 { font-size: 16px; margin: 0 0 8px; }
.ph-paint .pp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-paint .pp-opts button { border: 1px solid var(--pp-line); background: #fff; border-radius: 6px; padding: 8px 12px; text-align: left; font-size: 14px; max-width: 100%; }
.ph-paint .pp-opts button small { display: block; color: var(--pp-muted); font-size: 12px; }
.ph-paint .pp-opts button[aria-pressed="true"] { border-color: var(--pp-brick); box-shadow: inset 0 0 0 1px var(--pp-brick); background: #fbf1ee; }
.ph-paint .pp-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.ph-paint .pp-size label { font-size: 12.5px; color: var(--pp-muted); display: flex; flex-direction: column; gap: 2px; }
.ph-paint .pp-size input { padding: 6px 8px; border: 1px solid var(--pp-line); border-radius: 4px; }
.ph-paint .pp-plan { background: #fff; border: 2px solid var(--pp-ink); border-radius: 8px; padding: 18px; position: sticky; top: 90px; }
.ph-paint .pp-plan h4 { margin: 0 0 4px; }
.ph-paint .pp-plan .pp-color { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ph-paint .pp-plan .pp-color i { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); }
.ph-paint .pp-item { border-top: 1px solid var(--pp-line); padding-top: 10px; margin-top: 10px; }
.ph-paint .pp-item .pp-why { color: var(--pp-muted); font-size: 13.5px; }
.ph-paint .pp-item .pp-cans { font-weight: 700; margin-top: 4px; }
.ph-paint .pp-alt { font-size: 13px; color: var(--pp-muted); margin-top: 8px; }
.ph-paint .pp-note p { color: var(--pp-muted); font-size: 14px; max-width: 75ch; margin: 0; }
.ph-paint .pp-detail { position: fixed; inset: 0; z-index: 1050; background: rgba(10,18,30,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ph-paint .pp-detail[hidden] { display: none; }
.ph-paint .pp-d-card { background: #fff; border-radius: 10px; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; position: relative; }
.ph-paint .pp-d-swatch { height: 190px; border-radius: 10px 10px 0 0; }
.ph-paint .pp-d-body { padding: 16px 18px 20px; }
.ph-paint .pp-d-body h3 { margin: 0; }
.ph-paint .pp-d-meta { color: var(--pp-muted); font-size: 14px; margin: 2px 0 8px; }
.ph-paint .pp-d-mixed { font-size: 14px; color: var(--pp-brick); font-weight: 600; min-height: 1em; }
.ph-paint .pp-d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ph-paint .pp-d-sim-h { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ph-paint .pp-d-sim { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ph-paint .pp-d-sim button { border: 1px solid var(--pp-line); padding: 0; border-radius: 4px; aspect-ratio: 1 / 1; cursor: pointer; }
.ph-paint .pp-d-close { position: absolute; right: 8px; top: 6px; border: 0; background: rgba(255,255,255,.85); border-radius: 50%; width: 34px; height: 34px; font-size: 22px; line-height: 1; }
@media (max-width: 768px) {
  .ph-paint .pp-guide { grid-template-columns: minmax(0, 1fr); }
  .ph-paint .pp-plan { position: static; }
  .ph-paint .pp-d-sim { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
