<?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_9c13d7a1-598f-4254-9209-03bf8925052b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_75c5bde5-a724-44fb-be85-4a6c9694255e">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_a3aeafb0-249e-447c-8362-2b70ba122ead">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_a06c4a8a-ef90-4a74-830c-2af1028cfced">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_e410fc3a-e3ed-4f51-b022-12502cfcc141">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_25c85412-3b2d-49d8-824b-27ed7259fe1c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_66a0f524-a42d-4090-b54f-ce8c8a36e47d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_e87a1310-b7b6-40b7-bf27-d313b9e028f1">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_928fdf49-142e-448a-adab-22e526b130e2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_a0cd0c72-a49f-4e96-9bda-b4ceee0984e8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9c13d7a1-598f-4254-9209-03bf8925052b"
      id="F_0eba12a6-8bce-48a8-a365-c63ba182d677">&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;1,479,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_9c13d7a1-598f-4254-9209-03bf8925052b"
      decimals="0"
      id="F_af60c3d8-7e11-4f16-abec-08407bf412b6"
      unitRef="U_USD">1479000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
