<?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_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_819adb2e-ff7f-48d6-bd9a-0367820f532a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_1411dfb2-c217-4ae8-999e-9852e90a01c5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_720f657a-bf63-4254-b241-c5c3cd5c3f26">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_e63eb415-82ea-4b51-8801-d92c73d242b1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_c0220cdc-dcce-4763-8ea0-c7aeb381755c">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_fe9ff8b9-ad5d-490f-9e8f-2a1aeb209d01">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_45fed872-8d03-47d6-8fd2-769c50c72aa9">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_7b4971b0-0c56-4b23-a136-c45b582ee18b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_7df4baf9-42e1-405e-b5b9-4f1426221243">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      id="F_c0dafb15-bbd6-4d69-92ee-ec6c243af259">&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;4,336,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_a9981a0c-c73b-46ce-89d8-ab52b1eb4d32"
      decimals="-3"
      id="F_210e589f-2de7-4281-af10-63983f7723f2"
      unitRef="U_USD">4336000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
