<?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_f878c1c4-8670-4091-95c5-348c056b4c90">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_fc041484-7502-45a4-80dc-0ba72ca5369a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_b91e13c8-3f62-4183-ac50-de56249716be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_118dc2fb-744a-4462-a774-3e7f007529ab">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_da185b73-19b4-45f6-ba5e-efea117030d7">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_3ae8b325-76c7-48d7-87b7-7d9e28609afa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_ba4698a5-f2c2-4151-a28b-2b4dc4a9a748">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_2f8aee1a-ca6b-4416-8ff7-dc3986333e0f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_b5b0cdcb-58cb-4efe-9ca5-330ddb69ce66">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_f2ef89e1-0704-47fb-a744-c5250881b0a9">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f878c1c4-8670-4091-95c5-348c056b4c90"
      id="F_d8226982-4730-4c18-8cdc-7e158cf09ce2">&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;1,719,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_f878c1c4-8670-4091-95c5-348c056b4c90"
      decimals="-3"
      id="F_1926ca5f-685b-4800-aca1-bc1c8a40ed43"
      unitRef="U_USD">1719000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
