<?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_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a">
        <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:SubmissnTp
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_dbbe4aaf-ede5-478f-9ec0-22f254b7a8b6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_ea442a15-c13e-4a1a-b7c4-ef8e7d6a6973">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_9f3c0a45-de5c-46e1-976b-af6a84285af4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_f610497b-e248-4d34-8c27-381e7bdaa7f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_bbe02b05-743f-44f8-9156-4323ccb247c1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_05842f03-22d8-4022-8c5e-46b8aa7cc3d5">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_ccb7d621-c08f-4c81-b6c0-d474c72056a5">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_4a58c4d5-ce21-4a45-9e9c-5b79f82b62a7">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_59f7c596-7f8a-4c65-828a-c642a8b21077">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      id="F_b5ed3847-a9d5-47c7-9063-3d07e68c26d8">&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,415,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_6cf4dfdc-3fd6-4c97-a88e-5508b8633c2a"
      decimals="-3"
      id="F_841fbd26-1f9d-435d-87fb-aef530d589ca"
      unitRef="U_USD">1415000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
