// ARTICLE - /news/national-insurance-awards-shortlist
// "Product Studio shortlisted for the Innovative Product Award" - company news, 1 Dec 2026
// (from the LinkedIn announcement). Reuses the reading-column primitives exported by
// insights-article.jsx - load that file first.

const { EdCtx: NiaCtx, EdTag: NiaTag, EdChrome: NiaChrome, useIsMobile: niaUseIsMobile,
        ArtCol: NiaCol, ArtP: NiaP, ArtH2: NiaH2 } = window;

const NIA_META = { kicker: 'Company news', date: '1 December 2026', readTime: '2 min read' };

function NiaLink({ href, children }) {
  const ED = React.useContext(NiaCtx);
  const ext = href.startsWith('http');
  return <a href={href} {...(ext ? { target: '_blank', rel: 'noopener noreferrer' } : {})} style={{ color: ED.ink, textDecoration: 'underline', textUnderlineOffset: 3 }}>{children}</a>;
}

function NiaHeader() {
  const ED = React.useContext(NiaCtx);
  const edText = ED.text;
  const isMobile = niaUseIsMobile();
  return (
    <section style={{ padding: isMobile ? '40px 24px 40px' : '64px 90px 56px', background: ED.bg }}>
      <div style={{ maxWidth: 1240, margin: '0 auto' }}>
        <a href="/news" style={{ ...edText.med, fontSize: 13, color: ED.ink, textDecoration: 'none', borderBottom: `1px solid ${ED.rule}`, paddingBottom: 3 }}>&larr; Back to News &amp; Resources</a>
        <div style={{ marginTop: isMobile ? 36 : 56, display: 'flex', alignItems: 'center', gap: 16, flexWrap: 'wrap' }}>
          <span style={{ ...edText.tag, fontSize: 12, color: ED.accent }}>{NIA_META.kicker}</span>
          <span style={{ width: 4, height: 4, borderRadius: 999, background: ED.rule }}></span>
          <span style={{ ...edText.tag, fontSize: 12, color: ED.ink2 }}>{NIA_META.date}</span>
          <span style={{ width: 4, height: 4, borderRadius: 999, background: ED.rule }}></span>
          <span style={{ ...edText.tag, fontSize: 12, color: ED.ink2 }}>{NIA_META.readTime}</span>
        </div>
        <h1 style={{ ...edText.display, fontSize: isMobile ? 'clamp(38px, 11vw, 52px)' : 88, lineHeight: isMobile ? 1.05 : 1.02, color: ED.ink, margin: '20px 0 0', letterSpacing: '-0.035em', maxWidth: 1140 }}>
          Product Studio shortlisted for the Innovative Product Award
        </h1>
        <p style={{ ...edText.sans, fontSize: isMobile ? 18 : 22, lineHeight: 1.5, color: ED.ink2, margin: '28px 0 0', maxWidth: 820 }}>
          National Insurance Awards 2027. Winners announced 10 March 2027.
        </p>
      </div>
    </section>
  );
}

// Article lead images: one width for every article (960px), never cropped.
function NiaLeadImage() {
  const ED = React.useContext(NiaCtx);
  const isMobile = niaUseIsMobile();
  return (
    <section style={{ padding: isMobile ? '0 24px 40px' : '0 90px 64px', background: ED.bg }}>
      <div style={{ maxWidth: 960, margin: '0 auto', border: `1px solid ${ED.rule}`, overflow: 'hidden' }}>
        <img src={edAsset('images/news/national-insurance-awards-shortlist.jpg')} alt="Outrun Product Studio, Innovative Product Award, with the National Insurance Awards 2027 Shortlisted logo. Winners announced 10 March 2027 at the London Marriott Hotel, Grosvenor Square." style={{ display: 'block', width: '100%', height: 'auto' }} />
      </div>
    </section>
  );
}

// Product Studio launch video - same file and player settings as /product-studio.
// preload="metadata" keeps the 9 MB file off the initial load; absolute paths
// so it works from /news/.
function NiaVideo() {
  const ED = React.useContext(NiaCtx);
  return (
    <figure style={{ margin: '8px 0' }}>
      <video controls playsInline preload="metadata" poster="/assets/video/product-studio-launch-poster.jpg" width="1920" height="1080"
        aria-label="Introducing Outrun Product Studio (launch video, 62 seconds, captioned)"
        style={{ display: 'block', width: '100%', height: 'auto', aspectRatio: '16 / 9', background: ED.ink, border: `1px solid ${ED.rule}` }}>
        <source src="/assets/video/product-studio-launch.mp4" type="video/mp4" />
        <a href="/assets/video/product-studio-launch.mp4">Watch the Product Studio launch video (MP4, 62 seconds)</a>
      </video>
      <figcaption style={{ ...ED.text.sans, fontSize: 14, color: ED.ink2, marginTop: 12 }}>Introducing Product Studio (62 seconds).</figcaption>
    </figure>
  );
}

function NiaBody() {
  const ED = React.useContext(NiaCtx);
  const isMobile = niaUseIsMobile();
  return (
    <section style={{ padding: isMobile ? '8px 0 80px' : '16px 0 80px', background: ED.bg }}>
      <NiaCol>
        <div style={{ display: 'flex', flexDirection: 'column', gap: 28 }}>
          <NiaP lead>We&rsquo;re delighted to share that <NiaLink href="/product-studio">Product Studio</NiaLink> has been <NiaLink href="https://www.nationalinsuranceawards.co.uk/shortlist27.php">shortlisted for the Innovative Product Award</NiaLink> at the 2027 National Insurance Awards.</NiaP>
          <NiaP>Insurance has spent years speeding up quoting, binding and claims. The step before all of that, turning an underwriting guide into a live product, has barely changed in 30 years. That&rsquo;s the step we built Product Studio for, and it&rsquo;s good to see the judges paying attention to that part of the process too. Thank you to Insurance Today for nominating us.</NiaP>
          <NiaH2>What Product Studio does</NiaH2>
          <NiaP>Product Studio turns an underwriting guide, workbooks and supporting documents into a full product specification. Your underwriter reviews it, makes any changes and signs it off. Then the product is built automatically, with no developer needed.</NiaP>
          <NiaVideo />
          <NiaP>For the longer story of why this step has stood still for so long, read James Hill&rsquo;s <NiaLink href="/news/binder-signed-why-arent-we-trading">The binder&rsquo;s signed. So why aren&rsquo;t we trading?</NiaLink> Our monthly newsletter, The Outrunner, goes into more detail too: sign up at the foot of this page.</NiaP>
          <NiaH2>Credit where it&rsquo;s due</NiaH2>
          <NiaP>All credit goes to Steve Hirst, Ian Symondson and the team, who spent a long time understanding how products really get built before automating any of it. Thanks also to Laura Buzzard and the team at Perspective Publishing for organising the awards.</NiaP>
          <NiaP>Winners are announced on 10 March 2027 at the London Marriott Hotel, Grosvenor Square.</NiaP>
          <NiaH2>See it on your own product</NiaH2>
          <NiaP>In the meantime, if you&rsquo;ve got a product waiting to be built, send your underwriting guide to <NiaLink href="mailto:james.hill@outrun.insure">James Hill</NiaLink> and we&rsquo;ll show you what Product Studio makes of it. Or <NiaLink href="/demo">book a demo</NiaLink>.</NiaP>
        </div>
      </NiaCol>
    </section>
  );
}

function NiaKeepReading() {
  const ED = React.useContext(NiaCtx);
  const edText = ED.text;
  const isMobile = niaUseIsMobile();
  const items = [
    { href: '/news/binder-signed-why-arent-we-trading', title: 'The binder’s signed. So why aren’t we trading?', by: 'James Hill · 25 November 2026' },
    { href: '/news/build-the-right-product', title: 'Build the right product – and build it right.', by: 'Steve Hirst · 8 October 2026' },
  ];
  return (
    <section style={{ padding: isMobile ? '56px 24px' : '96px 90px', background: ED.bg, borderTop: `1px solid ${ED.rule}` }}>
      <div style={{ maxWidth: 1320 }}>
        <NiaTag color={ED.accent}>Keep reading</NiaTag>
        <div style={{ display: 'grid', gridTemplateColumns: isMobile ? '1fr' : 'repeat(2, minmax(0, 560px))', gap: isMobile ? 40 : 56, marginTop: isMobile ? 28 : 40 }}>
          {items.map(it => (
            <a key={it.href} href={it.href} style={{ textDecoration: 'none', color: 'inherit', display: 'block' }}>
              <h3 style={{ ...edText.display, fontSize: 26, lineHeight: 1.15, color: ED.ink, margin: '0 0 24px', letterSpacing: '-0.02em' }}>{it.title}</h3>
              <div style={{ ...edText.sans, fontSize: 13, color: ED.ink2, paddingTop: 16, borderTop: `1px solid ${ED.rule}` }}>{it.by}</div>
            </a>
          ))}
        </div>
      </div>
    </section>
  );
}

function NiaShortlistSite({ accent, fontMode = 'serif' }) {
  return (
    <NiaChrome accent={accent} fontMode={fontMode} current="/news/national-insurance-awards-shortlist">
      <NiaHeader />
      <NiaLeadImage />
      <NiaBody />
      <NiaKeepReading />
    </NiaChrome>
  );
}

Object.assign(window, { NiaShortlistSite });
