<?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_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_f342f4e8-1a38-4262-9ed2-5615d3bb771b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_2e74e130-50e5-4a8d-961f-600a82e23117">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_6f91a55e-c8ba-486d-a33d-c3b08c05be63">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_cba3a59b-4dee-48b7-ba49-e449406347bf">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_48c6e207-1cca-46c7-8ddc-a36a757ebb4f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_73a8720d-2b30-4259-8235-048732bc8cdf">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_730a6986-086c-4936-a1d2-0a270ca5526e">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_158b647b-907d-40d2-a00a-a2879bf8c3a7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_ce40452b-6991-493d-a277-5fb276bbaabe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      id="F_00a38e42-41f6-412d-b628-1d8c988e8ec8">&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;3,944,900&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_5e3a5be9-cbc3-4c84-b38e-4cf72a69df4a"
      decimals="0"
      id="F_ddfcb33d-3523-4e38-ba3e-e17004225c8d"
      unitRef="U_USD">3944900</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
