/* Icon pages (/icons/<name>) and the A–Z page. Builds on styles.css, landing.css (cards, buttons) and
   developers.css (code blocks); only the page's own blocks live here. */
.ip { padding-bottom: 24px; }
.ip-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 28px 0 0; font-size: 13.5px; color: var(--faint); }
.ip-crumbs a { color: var(--muted); }
.ip-crumbs a:hover { color: var(--text); }
.ip-crumbs [aria-current] { color: var(--text); }

/* Hero: the icon large, then what it is and the main actions */
.ip-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 0 0; }
.ip-big { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--icon); }
.ip-big svg { width: 128px; height: 128px; }
.ip h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; }
.ip-meaning { margin: 0 0 18px; max-width: 60ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
.ip-meaning a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ip-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.ip-tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); }
.ip-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ip-hero-cta .btn, .ip-hero-cta .btn-ghost { height: 42px; padding: 0 18px; font-size: 14.5px; }
.ip-fine { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

/* Sections */
.ip-sec { padding: 72px 0 0; }
.ip-sec h2, .az-group h2 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(22px, 2.8vw, 28px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }

/* Six styles */
.ip-styles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ip-style { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); }
.ip-style-tile { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface); color: var(--icon); }
.ip-style-tile svg { width: 56px; height: 56px; }
.ip-style-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 8px 14px; }
.ip-style-name { font-size: 13.5px; font-weight: 500; }
.ip-style-acts { display: flex; gap: 2px; }
.ip-act { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.ip-act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .ip-act:hover { background: var(--surface); color: var(--text); } }
.ip-act:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

/* Flat and 3D: the dark drawing swaps in with the theme */
.ip .dk { display: none; }
:root[data-theme="dark"] .ip .lt { display: none; }
:root[data-theme="dark"] .ip .dk { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ip .lt { display: none; }
  :root:not([data-theme="light"]) .ip .dk { display: block; }
}

/* Related icons and the A–Z list */
.ip-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ip-rel { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border: 1px solid var(--line); border-radius: 16px; color: var(--icon); text-align: center; transition: border-color .15s var(--ease), background .15s var(--ease); }
.ip-rel svg { width: 28px; height: 28px; }
.ip-rel span { font-size: 12.5px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
@media (hover: hover) { .ip-rel:hover { border-color: var(--line-strong); background: var(--surface); } .ip-rel:hover span { color: var(--text); } }

.ip-licence { margin: 72px 0 24px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.ip-licence p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.ip-licence strong { color: var(--text); font-weight: 600; }
.ip-licence a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.ip-licence code { font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); overflow-wrap: anywhere; }
.ip .l-card-p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

.az h1 { padding-top: 28px; }
.az-jump { position: sticky; top: 64px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 10px 0; background: var(--bg); }
.az-jump a { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.az-jump a:hover { background: var(--surface); color: var(--text); }
.az-group { padding: 40px 0 0; scroll-margin-top: 120px; }

@media (max-width: 1000px) { .ip-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ip-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ip-big { max-width: 220px; }
  .ip-big svg { width: 96px; height: 96px; }
  .ip-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-sec { padding-top: 56px; }
  .ip-rels { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .ip-licence { padding: 20px; }
}
@media (max-width: 640px) { main.ip { padding: 0 16px; } }
