<?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_aff840c6-33a5-47ad-a289-5f41e3982f9e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-01</startDate>
            <endDate>2026-10-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_378a69a3-58ce-4e7a-b8c2-464ae7dceed6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_d2a4b9fe-175e-41b9-a77e-37034a6176e5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_f3f7f8b4-e777-4cc8-92fd-b93fd2829a21">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_4b9a6c7b-aa6b-41a7-9b86-0480cff246fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_d77e38e1-0d5d-4a1d-8c81-3ffc1ff7f609">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_02ea1468-8b2f-4e79-8df2-8002870b6e27">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_8973abcc-7173-4b0d-82b4-c3c750a8a352">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_c44d3975-b0c3-4420-9199-c72ed8db0079">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_59c1dc1b-96a0-4902-a889-847a72221fb2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      id="F_37d0f5c3-984c-4040-8f07-33d71b9cc95f">&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;913,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_aff840c6-33a5-47ad-a289-5f41e3982f9e"
      decimals="-3"
      id="F_62034732-156a-4e7c-9997-18a939271a0a"
      unitRef="U_USD">913000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
