<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_22509d88-fa48-4e8a-8996-17a3a052d726">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_e1c1a83a-012f-4887-b8d7-2c57db43c8e4">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_992e9304-83b1-44cb-a637-db94b6f3bca3">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_bfdbb708-ade4-44b6-a8bf-4ff32ac7ddf8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_35998d26-b75c-4ccf-b105-b2628511a03a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_bd5c7553-27c5-4a53-8e38-7105c0b041a9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_4d77fd89-ec49-4c4e-921e-4b80c3005f5e">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_ce898f85-9e88-4298-b544-d5d1fe08e4b0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_722ab31b-b996-4dd8-8041-f4349eade23b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_c9c17954-5af9-4fe7-b721-7b8185563718">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      id="F_709f259a-fc77-4870-a500-4287485534c6">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,000,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_22509d88-fa48-4e8a-8996-17a3a052d726"
      decimals="0"
      id="F_84ad4a54-c477-4ad1-8cde-76dd2e07a9ad"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
