<?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_9de58475-05b8-4a7d-beb0-dc5612e0a443">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_b48c9861-cf1e-4c9b-8a96-079e54b2c028">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_8749aaa4-26e2-48ad-ad63-86190252398e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_87acda8e-a78b-4180-92a2-5666d8dec46d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_819c1d6f-8baf-43af-bc5a-b400dd8ef8db">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_e229ee2b-3cf7-4af6-a386-1f302160547e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_ee754c30-19b9-4833-96d0-f7fdc9054e91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_82727571-955e-4bbf-bc5e-b86874cc87cd">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_da829749-4043-4283-a0fd-c8a28357814f">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_66e49554-147c-4f2f-a8fd-41235d0024d8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      id="F_ae5e7e77-a364-4ca3-ba30-ce62294a5e3d">&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;8,058,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_9de58475-05b8-4a7d-beb0-dc5612e0a443"
      decimals="0"
      id="F_3b1f5d16-b8c0-43fb-b0fc-06ae30dd1dc6"
      unitRef="U_USD">8058000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
