<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_28cb3bb9-4ee7-49f6-bb24-aec32bbdb48c">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_69b268de-7ab8-4995-8244-0e25d741a806">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_507516c1-db5c-48b4-b8f7-04c0ba09c88b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_8dc40115-4b83-4c20-83b4-a214426c3bfd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_b8a72eba-4aaf-4dfc-9d4e-2c0f0c680cf9">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_3cca6205-9d88-45b7-9542-062e6b4230e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_1325380f-34ce-4494-ae0d-44ad59a15c79">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_b1450a6f-57b4-4317-838c-5ff27f9dbaa9">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_a913aabc-66d4-4774-9113-cc0f57ac1934">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      id="F_6b5a7bc1-2377-4b65-b9cb-51d23f7963f4">&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;694,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_3faaf2fa-15cb-4a83-9394-f7af2d453c4d"
      decimals="0"
      id="F_c5dd89fa-a576-48cc-b648-82c0421cc8b0"
      unitRef="U_USD">694000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
