<?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_f4159ad5-8f7d-4a07-8557-276db8108e90">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_ef7768cc-66c1-44d2-88d6-45e9cea6c911">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_0863102c-64eb-41e6-9213-a297e7b0957e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_e00d6e3b-b09a-4914-b53f-03ef6a3a28b4">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_47e651ba-20a1-4119-b10c-1fbadabfe8c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_f3cad387-f2f1-4099-a4cd-50443ed5e1ad">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_b071a1e7-e475-4418-a8e2-1565ae7e71c9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_d3ff42d8-1508-42df-ab2e-6bd042d31655">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_d7b6abef-3e5b-4883-872b-8b782ce75db3">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_675e39ee-ff15-43bd-b859-d19f3876b937">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f4159ad5-8f7d-4a07-8557-276db8108e90"
      id="F_8f2993c8-685c-4ee9-b2af-342e81a7b85d">&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;2,297,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_f4159ad5-8f7d-4a07-8557-276db8108e90"
      decimals="-3"
      id="F_a7803d47-ae93-4fa3-85f9-f635bbe0199f"
      unitRef="U_USD">2297000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
