<?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_df949a6b-65b1-4317-b6ca-18f39717df3e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_5e49e21d-b810-4823-a035-b1107bb12901">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_20a09ade-f48b-40f3-85c1-a0e1045ee037">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_5d6d89ee-dbd4-4e30-8ba5-be0ffb27271f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_a7baddcb-8f5c-4556-aae8-9ed8f4a50185">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_d50593f0-8d06-492e-801e-e004ca1072e7">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_7f0a9c29-3885-4835-86fe-e0c8305752bd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_aeb3f667-f104-4e8d-85d0-5ef904528742">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_28507df2-334e-4442-a407-2f05b51c1bee">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_d7c46ae4-a080-424a-bda3-67c1ea436ada">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_df949a6b-65b1-4317-b6ca-18f39717df3e"
      id="F_e35ab479-57f4-4470-b5c6-cd9a4f6b9b9d">&lt;p style="tab-size:26.66px;font-size:12pt;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;529,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_df949a6b-65b1-4317-b6ca-18f39717df3e"
      decimals="-3"
      id="F_735b1436-052b-4b8d-b610-61be3e4b8e76"
      unitRef="U_USD">529000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
