<?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_ce27e94d-597d-4c14-a36e-043abfa9f615">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_af6a3e6b-0f72-4108-84e7-b3efc6c68b2f">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_58e4304e-9ad0-4208-9770-50ec77177108">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_6d5f40b9-57c2-4872-af57-2082a5da5389">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_81204ef8-7a05-47ab-bb61-15d78645cf66">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_250add81-4ad5-4a18-bbb8-d3f0207326ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_d763088d-362c-4b6e-84e1-3565be19a387">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_35ebd1c9-8e5c-4c02-aae8-c98b88fc7928">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_458f8c90-8d5d-43a0-85f1-ef1df6282cb1">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_e01bc89f-e073-48de-82d9-5379ee7ff1b5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ce27e94d-597d-4c14-a36e-043abfa9f615"
      id="F_d021237a-499d-45c3-93d8-1cb6cafcf78d">&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;12,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_ce27e94d-597d-4c14-a36e-043abfa9f615"
      decimals="-6"
      id="F_dde0417e-ed76-42d6-8d2f-6eb4092e210c"
      unitRef="U_USD">12000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
