<?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_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_11545ddf-96c8-4e15-8c18-d2840b85a411">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_404df61d-b359-4bca-88c9-3dcbeea12ca7">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_2382dddf-195e-4b72-b22e-3f73e3f16069">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_5878aad8-edca-40d4-a915-891cadcc7f8c">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_09de2ac5-5573-4fca-b15a-2b99735dfb6f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_99281ece-ee3a-41fb-932c-54b886a00bdc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_77cbcb88-b152-4d8a-a430-d5990b54face">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_4a291458-8df3-4847-82c8-bb7a57f66df3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_edaeb3aa-2dbc-4891-ae18-38f997c85ae5">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      id="F_7ac6507e-0261-4239-aec8-a9385805e3a1">&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;12,316,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_ee1b6b4f-4d0a-46fb-a8f2-1f07c87ad6c9"
      decimals="-3"
      id="F_d9b343cb-3546-4d0a-bf82-6af9a5665563"
      unitRef="U_USD">12316000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
