<?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_e8e890bf-3b86-4aa3-95e2-1f462b3543b3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_f93378a2-c514-423f-962d-02c8bbb85924">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_cd117414-8cea-47d0-84a4-7b462f911526">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_99b2cd96-3ea6-4159-abb5-1ab08073a56f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_b6d531a0-0390-4b5d-bcd3-03c826655124">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_1cddfb15-5da7-4574-972e-2d70f9e1536b">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_b7881d99-df6c-41da-8d54-0cf82a127b67">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_f74ac668-78bc-4c33-8e87-0200b593fc68">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_b0062321-b327-41e5-8312-7d52221dcd21">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_04665af2-daa9-4087-860a-9addf29c3dc4">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      id="F_9f1d9076-ce42-4dc6-b37d-7b42e7a7e40e">&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;3,958,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_e8e890bf-3b86-4aa3-95e2-1f462b3543b3"
      decimals="-3"
      id="F_68f0ee04-9c1e-4552-9eaf-3e5ec7626c72"
      unitRef="U_USD">3958000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
