<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_67780222-0423-4c59-b5d7-ea74614b6369">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_55361f15-c6ad-40b6-8b1c-17eecb5e9e89">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_56bf60b4-9034-4516-aa35-c50539760217">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_1a210c34-be53-4336-9b19-25beabe6f717">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_e9b4326a-3eee-42b3-8b71-5e1ee78263be">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_08819e6e-1d9f-4e74-929c-e4ac11de563d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_9774d188-e854-4d46-8e91-8c3c51957856">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_51b1625b-c78e-4064-b798-e9807bc052d1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_8fcfa941-b8e6-4d72-b5bb-1a8b9c14d043">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      id="F_e7949c87-ff0f-4642-9b73-3458aed03412">&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,461,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_3cec7f0d-eb72-4950-949f-ee3abca5da0c"
      decimals="-3"
      id="F_52388c61-dae7-45d1-a611-f54df9194291"
      unitRef="U_USD">2461000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
