<?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_ec03fc40-3ec1-4a74-8039-39fb06197e83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_de243381-69ad-444c-b03e-230cc76a87bc">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_1b40b3a6-3822-49be-a18d-0c8cab13c83d">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_103a43ec-20c4-4c51-a457-eb46a2947644">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_ff6f4a68-b7f8-435d-a77d-ddeaae6c144f">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_3969035a-9ec0-472f-a452-4ecf6e49321f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_b95fe9f5-06fd-43af-b091-180232518f67">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_e8373fd5-ea53-4371-8c1e-f6e30854cbc0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_cfa8dfbc-d520-4c88-86ef-f9c7df965d39">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_e08e8595-e866-467d-ae2d-ce7e0099ff34">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      id="F_36a049c7-9f1e-47a6-8cc3-18eaf6666dd4">&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;2,150,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_ec03fc40-3ec1-4a74-8039-39fb06197e83"
      decimals="0"
      id="F_fde973f4-25c0-4cfd-823f-7704b84cc402"
      unitRef="U_USD">2150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
