/* nfc.pm and rfid.pm on the suite's charter (/cdn/common/suite/landing.css):
 * only the catalogue's own drawings live here: the wordmark, the white
 * plates of the product pictures, the family and product grids, the
 * gallery, the specifications and the selection. Tokens of landing.css only;
 * the plates stay white in both themes because the pictures are JPEGs on a
 * white ground. */

.hw [hidden] { display: none !important; }

/* the wordmark: the name in capitals, a ".pm" pill, like the suite's logos */
.hw-logo { display: inline-flex; align-items: center; gap: 3px; font: 800 19px/1 Outfit, system-ui, sans-serif; letter-spacing: .1em; color: var(--ink); text-decoration: none; }
.hw-logo span { padding: 3px 8px 4px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; letter-spacing: .02em; }

.hw-ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.hw-count { display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 11px; font-weight: 500; line-height: 20px; text-align: center; }

/* a picture's white plate, its hairline */
.hw-plate { display: grid; place-items: center; aspect-ratio: 1; padding: 12%; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.hw-plate img { width: 100%; height: 100%; object-fit: contain; }

/* the hero's specimen: the first family, between crop marks */
.hw-proof { display: block; text-decoration: none; }
.hw-proof .hw-plate { padding: 10%; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.hw-proof:hover .hw-plate { transform: scale(1.015); }
.hw-proof-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 13px; color: var(--faint); }
.hw-proof-cap b { font-weight: 500; color: var(--ink); }

/* families: a hairline grid, a plate and a name each */
.hw-fams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.hw-fam { display: grid; gap: 22px; align-content: start; padding: 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color .2s; }
.hw-fam:hover { background: var(--sheet); }
.hw-fam .hw-plate { padding: 14%; }
.hw-fam b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.hw-fam small { display: block; margin-top: 4px; font-size: 13px; color: var(--faint); }
@media (max-width: 1060px) { .hw-fams { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hw-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hw-fam { padding: 18px; gap: 14px; } }

/* products: plates in a grid, the name under, a star on the plate */
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 48px 28px; }
@media (max-width: 560px) { .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; } }
.hw-card { position: relative; display: grid; align-content: start; gap: 10px; min-width: 0; }
.hw-card .hw-plate { margin-bottom: 6px; transition: box-shadow .2s; }
.hw-card:hover .hw-plate { box-shadow: inset 0 0 0 1px var(--faint); }
.hw-card h3 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; }
.hw-card h3 a { text-decoration: none; }
.hw-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.hw-chip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--soft); }
.hw-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hw-keep { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #6b717c; box-shadow: 0 0 0 1px #e2e5e9; cursor: pointer; transition: color .2s; }
.hw-keep:hover { color: #17191d; }
.hw-keep[aria-pressed="true"] { color: #17191d; }
.hw-keep[aria-pressed="true"] .hw-ico, .hw-keep-btn[aria-pressed="true"] .hw-ico { fill: currentColor; }
.hw-keep-btn { gap: 10px; }

/* inner pages: the crumbs under the bar, a title, the sub-families */
.hw-page { padding: clamp(40px, 2vw + 28px, 72px) var(--gut) var(--sec); }
.hw-title { margin-bottom: 48px; }
.hw-title h1, .hw-info h1 { font-weight: 500; font-size: clamp(32px, 1.9vw + 19px, 58px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 22px; max-width: 22ch; text-wrap: balance; }
.hw-title .ld-lead { max-width: 60ch; margin-bottom: 0; }
.hw-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 56px; }
.hw-subs a { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--soft); text-decoration: none; box-shadow: inset 0 0 0 1px var(--rule); transition: color .2s, box-shadow .2s; }
.hw-subs a:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--faint); }
.hw-subs a.is-on { background: var(--ink); color: var(--paper); box-shadow: none; }
.hw-subs small { margin-left: 4px; color: var(--faint); }

/* a product: its gallery, its card */
.hw-product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
@media (max-width: 960px) { .hw-product { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.hw-gallery { position: sticky; top: calc(var(--top-h) + 24px); }
@media (max-width: 960px) { .hw-gallery { position: static; } }
.hw-main { padding: 8%; border-radius: 22px; }
.hw-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hw-thumbs button { width: 72px; padding: 6px; border: 0; border-radius: 12px; cursor: pointer; }
.hw-thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.hw-info .ld-lead { max-width: 44ch; margin-bottom: 32px; }
.hw-opt { margin: 0 0 22px; }
.hw-opt .ld-label { margin-bottom: 10px; }
.hw-acts { margin: 36px 0 28px; }
.hw-note { font-size: 13px; }
.hw-specs { margin: 32px 0 0; padding: 0; font-size: 14px; }
.hw-specs div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--rule); }
.hw-specs div:last-child { border-bottom: 1px solid var(--rule); }
.hw-specs dt { color: var(--soft); }
.hw-specs dd { margin: 0; text-align: right; color: var(--ink); overflow-wrap: anywhere; }
.hw-desc > p { max-width: 62ch; }
.hw-desc .ld-h3 { margin-top: 28px; }
.hw-desc .hw-li { position: relative; margin-bottom: 8px; padding-left: 20px; }
.hw-desc .hw-li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* the selection: rows of a plate, a name, a remove button */
.hw-sel-list { display: grid; max-width: 860px; }
.hw-sel-item { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule); }
.hw-sel-item:last-child { border-bottom: 1px solid var(--rule); }
.hw-sel-item img { width: 72px; height: 72px; flex: none; padding: 6px; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.hw-sel-item > div { flex: 1; min-width: 0; }
.hw-sel-item b { display: block; font-weight: 500; }
.hw-sel-item b a { text-decoration: none; }
.hw-sel-item small { display: block; overflow: hidden; color: var(--soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hw-sel-rm { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--faint); font: inherit; font-size: 20px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--rule); }
.hw-sel-rm:hover { color: var(--ink); }
.hw-empty { max-width: 46ch; padding: 48px 0; border-top: 1px solid var(--rule); }
.hw-empty h2 { margin: 0 0 8px; font-weight: 500; font-size: 22px; }
.hw-empty p { margin: 0 0 28px; color: var(--soft); }
#hw-sel-actions { margin-top: 36px; }
/* a product's page goes on with sections: less air before them, a hairline */
.hw-page:has(.hw-product) { padding-bottom: clamp(64px, 4vw + 32px, 120px); }
.hw-page + .ld-section { border-top: 1px solid var(--rule); }
.ld-sitemap .hw-logo { display: inline-flex; }
