<?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_40efd58e-6024-437a-8a54-c71c46108219">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_25119a72-3800-480c-902d-5bdae6d2de48">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_e8bd5ac3-7213-4cf4-9894-61e29bff60b1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_2fd63e2e-239b-4fce-9cb6-00317ac0730b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_19f5964e-da88-448b-8f43-cd16f51ec1cc">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_1cf7ad67-0594-4d0f-9b54-6446c3e749b8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_7b400b8b-016d-4f32-bd00-9ac4ea394338">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_3d2dc7ba-5c8f-4145-aae3-d60559dde222">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_1271b09b-a79e-47e8-bcf8-5030619010bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_62b51d20-5289-4f4b-8635-698806b0b827">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_40efd58e-6024-437a-8a54-c71c46108219"
      id="F_62ee9e00-b4e2-4bf4-8fd3-4d8a57ce0e48">&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,768,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_40efd58e-6024-437a-8a54-c71c46108219"
      decimals="-3"
      id="F_d5e61553-cd65-4197-abe5-225852f97d97"
      unitRef="U_USD">3768000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
