<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_4f86d0af-a213-4a8a-a794-c4b793df4a91">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-22</startDate>
            <endDate>2026-07-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_641b6429-5b7c-4323-b697-49e7f677f57f">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_53c22aa6-23be-4092-9a7b-c910d1197cd3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_5aed14d5-f847-472d-9653-8556549537c1">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_1aa53e2b-287c-4391-8621-8fa41882815f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_0cdca545-4ad6-4d85-b2cf-90400baf3883">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_36dea8b4-35f5-4807-8366-cf139dfa02e3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_3aeddc38-e631-438f-9a19-d680f8d6c800">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_6ca9bf20-0cbe-409c-94a2-ed1587d272e5">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_5c1b2f77-b2cc-439d-b981-648f04b23181">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      id="F_b3721019-eb2e-424f-95e0-a9a9bc64c223">&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,500,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_4f86d0af-a213-4a8a-a794-c4b793df4a91"
      decimals="-3"
      id="F_fbab11e4-5a51-45b6-bf86-d663ca9c34d1"
      unitRef="U_USD">1500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
