<?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_4b2f550b-8606-49c7-a80a-25283d30208d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_09f4fa4f-0a2e-42a3-ada8-961334f2fc3b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_08c88d93-9d8d-4b0f-9b31-c4f2833701e8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_340cc032-7831-4b68-8a76-1156f4a6e624">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_842e57c6-2e51-4405-a2ff-58eb83f4ac57">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_a3a0cbaa-57b0-47aa-a49d-a52b8cdb2a91">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_0c8691fe-1a22-4cf0-97b7-9ed28ca752ed">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_f2af462c-4d0e-42d0-88cc-5900c0acd35a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_be0009d9-db96-49a1-8150-134475bb171c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_1069a97c-6e83-4e50-91f1-29f46c18ac61">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4b2f550b-8606-49c7-a80a-25283d30208d"
      id="F_46074da7-e8c5-4ca2-a70e-f8d3acddc9cc">&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_4b2f550b-8606-49c7-a80a-25283d30208d"
      decimals="0"
      id="F_e72ee216-0519-4323-80b5-0f422c78ea12"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
