<?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_ae2a3718-fc4b-4155-b20a-d2818a569069">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-12</startDate>
            <endDate>2026-10-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_6c2bea39-ec79-43f7-9d27-475d6cd6971e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_729b87c5-3c4f-4c4d-aa74-aef0becdc163">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_de8ff0ff-8d4b-4f2b-a781-a443dc4da845">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_e7b288c5-76e5-4982-a7d1-2b470bb1bd86">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_a96f6c90-8851-4e84-a09d-91689f0b8df9">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_4117606d-37b0-4470-a154-a4681e5af546">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_9facbfe8-2af8-425a-8e3a-3e2b8d81e538">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_5f5ac821-6cc6-4df4-859e-84a0cb9bb996">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_4cc930bb-4148-40a3-a404-af6005b2162e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ae2a3718-fc4b-4155-b20a-d2818a569069"
      id="F_a33fad5c-6067-4d5d-af5a-ab4b8e393fec">&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;3,600,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_ae2a3718-fc4b-4155-b20a-d2818a569069"
      decimals="-3"
      id="F_9c1019ce-a200-41fb-af27-55e3bc45c244"
      unitRef="U_USD">3600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
