<?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_6a76f30b-b7fc-4034-bc31-cb76767e216c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_619996d6-0baa-4aac-8951-fae7717cb4be">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_9dc71d18-06fa-4a08-bc09-c8c0af41baa0">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_cb4d4af9-f93c-431c-bea5-b136eabcf1a2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_c9fad0d8-5b5e-4eca-beba-3258398e05bd">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_51da83bc-2151-432e-b2d2-9715c9986c3e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_d2a00d65-9890-49c5-b74f-5d21f865eaae">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_86a584f9-9dad-41c5-af11-a37d91e380eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_9f66741a-b243-4c4f-9648-179fdc24721d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_32c4a662-d5fe-45f3-b838-a5ab913127d6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      id="F_f411e93c-9af5-4be6-9e57-c4c4766c4ad2">&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;300,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_6a76f30b-b7fc-4034-bc31-cb76767e216c"
      decimals="0"
      id="F_3934ccce-faf5-40c3-b1e6-138589faaf5d"
      unitRef="U_USD">300000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
