<?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_3f33dd7c-f259-4a41-b00a-c96f8b517cce">
        <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:SubmissnTp
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_1f38f168-d716-459d-89f5-3a4679209f18">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_38da63bc-15fb-4aa0-8d40-f8e5104b4b9b">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_dfe6279d-6968-4f0e-a007-5437c574fe3d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_7d65d182-c5cb-49a9-b037-5a8988551a8e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_e6612ed5-0814-404e-bbbd-b8dd1c05a9fd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_104d0b30-41fb-4edd-9a67-0dfee1e21197">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_8e190bd4-a833-445f-830b-1b07b83f6d91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_fc661fe0-7668-4c50-b186-fb2267e7db3d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_e4b71123-01fa-4e00-9118-75fe34a87240">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      id="F_0d809b99-a608-4cfd-bfc5-69f7449bab2f">&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;500,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_3f33dd7c-f259-4a41-b00a-c96f8b517cce"
      decimals="-3"
      id="F_9a154b32-fb93-4dd6-b825-073ff5989111"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
