/* FilingCard — the catalog entry.
   Source: index.html lines 152–162 (.ic[data-tab] / .icf / .go).

   Radius 0 8px 8px 8px: the top-left corner is squared so the tab can sit flush
   above it. The tab text lives in data-tab and is drawn with ::before, which is
   why it is an attribute here rather than a child element.

   The footer always pairs a Stamp with a mono arrow. No icons — the mono "→" is
   the only glyph affordance in this system. */
function FilingCard({ tab, title, children, stamp, stampState = 'live', action = 'Open →', href = '#' }) {
  return (
    <a className="ic" data-tab={tab} href={href}>
      <h3>{title}</h3>
      <p>{children}</p>
      <div className="icf">
        <Stamp state={stampState}>{stamp}</Stamp>
        <span className="go">{action}</span>
      </div>
    </a>
  );
}

window.FilingCard = FilingCard;
