<?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_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8">
        <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:FeeExhibitTp
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_138c4b6c-ef3f-4b18-95f0-68bf956a95e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_93fbca8e-bd77-4592-8260-1b76ceb871b7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_a7d44c86-590b-4cca-a163-2d01e5351dc1">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_f9aa2ee8-4447-442e-abe9-52ed9d449be3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_57c4b0ea-3ee7-4187-9714-3244ef824830">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_0f9a3f8d-5dd0-40b7-9a1d-bf093341c074">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_b136cc84-ce15-484c-a10f-8b4a377ff7b9">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_29e0b184-03f8-423b-80ec-92dadfe4e773">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_7055b4f8-6dbf-4ff6-ab1e-c2c1d803f429">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      id="F_db844625-deb3-48b4-9dd0-5c4558ef9c4b">&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;387,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_f24f2c91-8cf1-472d-b4bb-ea22da44b7a8"
      decimals="0"
      id="F_7e30dd36-7f60-45ed-87fc-195ed8b2a3d1"
      unitRef="U_USD">387000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
