<?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_8882fbc3-244d-4b25-afea-9cfadaaac35c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_f3276613-85ae-4677-b06b-88663a408181">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_5fe647a7-4b48-49a7-86a4-e5760095cca5">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_7f9e3748-10fb-495d-9930-857c0d453df8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_91f8a6b3-7057-4c3b-9828-6cb02b85e185">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_60eeb7a4-06c6-459b-9117-6b44e03ea66d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_0e85a6e0-e4fa-4f12-bdff-bee7ce945932">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_b596d3bb-5e8c-406a-b127-7cb7f771a803">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_49c05704-e8d6-4ffb-8e89-efaff6e41f52">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_33bd5ec0-8c05-4436-afcd-566b09656950">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      id="F_6a549141-37a5-4a51-9853-6ed9876b7dac">&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;23,311,210&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_8882fbc3-244d-4b25-afea-9cfadaaac35c"
      decimals="0"
      id="F_7aa8c01d-34e5-4613-b6fc-5a06e8d8e076"
      unitRef="U_USD">23311210</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
