<?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_62234315-26f2-4348-8add-9039044e04dc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_4f0d5375-5081-4dd2-b472-9d8ee4b8549c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_a6de95d7-622b-4235-8b49-475731eb1908">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_cc0d9760-d91e-4faf-990f-a06d7fbc47b3">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_73081769-91e3-4205-ae25-d1728691d80b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_58a1d4f2-775c-4750-b6d3-edd3e345c3e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_a5b144d8-7e56-49c5-a884-a2b6e87c3afc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_e8636b36-3074-425b-9a02-03be24cb466e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_ea28f20a-6b7e-4695-8c65-4a2118cf037c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_2627a817-2cdf-41a2-bb66-8a210379f536">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_62234315-26f2-4348-8add-9039044e04dc"
      id="F_d2222884-3404-4153-a584-8c6058d48f42">&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;1,155,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_62234315-26f2-4348-8add-9039044e04dc"
      decimals="-3"
      id="F_0e52dfd8-7ebe-4153-a594-501ebd202040"
      unitRef="U_USD">1155000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
