<?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_77c11eb3-a139-461a-91c7-5dbeb48f1506">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_ba575e9e-c04a-4ad4-bfd0-78bd77a8971c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_784b0e3b-886f-41ef-8197-f24f5c67fcbc">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_26ac9e66-883f-4b32-b484-6ffa21053895">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_92aafaa7-e2bf-4352-9e62-e6d342d55645">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_bdfab5dc-d4a2-4fe7-823b-749c42205aac">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_873eebcd-87da-4538-967d-16dc0abf74ec">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_ed883a58-c2d0-4f52-b417-73716446659e">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_b2d2bea1-30d5-4cbe-a3c7-460f7cb39c06">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_290532a1-1234-4d76-aa72-c703f146b035">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      id="F_c44056c0-5340-4e87-908b-1c4faf472166">&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;2,063,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_77c11eb3-a139-461a-91c7-5dbeb48f1506"
      decimals="-3"
      id="F_ac95fb98-73c6-4345-92de-4cceec4ac3e0"
      unitRef="U_USD">2063000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
