<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_8c911553-1c25-4f3e-bed9-59e6237e30d2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_d2571d81-1d47-457f-9ddd-99ac7014f991">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_49366e9a-ae20-4cf8-bce0-11e2392a8d42">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_19b46472-b0ec-4cdc-a166-71d6905e25bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_dfaae2d3-db6a-43c5-9881-e813b7034916">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_b277be58-71df-41cb-baa0-9381ebdbd6ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_184654cd-7890-4cba-bd66-82cb3c657935">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_582a1e50-a9e0-44ae-887e-1c13237260ff">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_34130c54-6d87-482d-bf90-cbc2605636a0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      id="F_cd5865ce-4576-45fc-ab12-a32c8b3c2b9c">&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,000,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_fa58d4cb-5c30-4eb5-b418-5f0eab8152bf"
      decimals="0"
      id="F_9b34d018-112d-49eb-9f9b-63ba2a5efaa3"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
