<?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_9cde881b-1e09-4447-83a0-6cea94c6c4b2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_ad6dcf52-cb69-45a7-868e-5342fd663e2e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_d8dbe0ba-f161-41e5-9bab-7ac0332a3671">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_3cac8f6d-eaf7-4fb7-86c0-4e8c61fe5717">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_3bd1dc48-a6c5-409f-95cd-51f642bdc7e0">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_6653d042-d20e-4613-896e-3af30919310a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_91572181-ddb6-4b10-95e1-9e1006807970">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_16896947-dd23-4776-9f5d-65e09c4f3c98">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_a83918a4-5e36-4f3c-874d-8a5614a700af">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_9397c760-8bce-48e8-b5ce-a140ffa922a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      id="F_ae98c7c0-4a3d-4489-b5de-fbdbe2a5e8fb">&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;4,929,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_9cde881b-1e09-4447-83a0-6cea94c6c4b2"
      decimals="0"
      id="F_8047b9f1-24e1-491c-b744-fcd1a41f99c1"
      unitRef="U_USD">4929000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
