<?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_815487f6-c305-4f23-a3b4-65628407e231">
        <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_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_6b7ef21e-7aff-4635-8852-cede1c6982d3">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_d801dd0f-cd25-4941-89a4-7a1dac6a4041">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_096646a4-259a-48cb-83b9-df4f20a25ef6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_5a6113d8-790e-4857-98c0-741448a19fa3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_5538273f-2e87-4122-a9e5-29422e098d3e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_18f25d11-72e8-4ffd-89a1-fb7f932b00a5">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_3e59306f-9c1a-4986-bb92-749d8f07fd0d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_9894a174-4c07-4498-8ba6-6bd94e599e77">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_ac3f89ce-132d-4ef5-99af-80168240a847">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_815487f6-c305-4f23-a3b4-65628407e231"
      id="F_3af03c6c-7641-497e-aaa4-1c93f3de8aab">&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;729,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_815487f6-c305-4f23-a3b4-65628407e231"
      decimals="0"
      id="F_59368289-2b7e-4dd5-adbf-ba32ac49cf30"
      unitRef="U_USD">729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
