<?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_608007a3-f4b2-48ad-9f99-08e9eb4a384e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_23de45c2-1dcc-445b-9aed-9ee386d2d4bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_5d6af9f2-bcd6-429a-b9d9-b1c7fc743b45">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_7e97a134-d992-44fb-ba18-b29d3d49446d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_16f3a95f-1156-4f4a-a2a3-af755df2348d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_87146c27-69e5-40ed-a9b1-bd1084df1184">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_a08516f8-92b2-4ea0-b0c6-83a05c84cb84">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_7ccd0b7b-831c-4d9d-be7e-e0f35990459b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_ae17101d-a939-4bcf-80dc-7fb84a929add">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_d580d8f9-006f-4442-a3f3-4c2f8d4bdc66">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      id="F_0a9bad3d-b2a6-405b-9ff2-2edc68b8d58e">&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,543,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_608007a3-f4b2-48ad-9f99-08e9eb4a384e"
      decimals="-3"
      id="F_7c92dde7-c589-434c-afd2-08cb99823f02"
      unitRef="U_USD">2543000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
