<?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_23785596-ece9-4558-9aef-db5d9d6df84b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_c77bb087-51f5-4402-b0f2-9c098297230b">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_0eb4b3ec-b70c-42e9-b18d-325742bc6a58">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_49ee4746-1138-4f1f-be8c-bc130fa7b941">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_d68cac94-dc00-4c95-bc57-bc0b61e8b98a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_8d055758-096e-440c-a57f-9d2992aa139d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_04136d12-f98c-478b-89f9-ec40c0356dca">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_e371ba1c-fdde-416a-b761-6c27bf9e978f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_4c9c8c69-7412-4859-88ce-2ad4dd7b5e07">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_950ccd93-cb61-48e4-8bf9-05cbcd6e8971">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_23785596-ece9-4558-9aef-db5d9d6df84b"
      id="F_fee39d9c-e673-44b5-a791-f9eac8077fa5">&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;433,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_23785596-ece9-4558-9aef-db5d9d6df84b"
      decimals="-3"
      id="F_550c7f4e-cc39-42b1-b75a-e106d15094b1"
      unitRef="U_USD">433000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
