<?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_1c4b182c-48e3-4164-ac4b-ec339a61703e">
        <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:FormTp
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_2fec9d58-85de-4216-9127-a46c38ac588f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_67b72568-c774-46dd-b3cf-0cf35a1df26b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_3fd37e85-4adb-4914-a2ce-c8fd13ab8bd6">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_53b75a71-abe4-4544-a225-f1a73b52c17b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_f266be6c-9973-4643-a5c3-270b6e3ab095">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_f4207cfa-fd31-47bf-b9a6-e9416cde5fcc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_0513ebd6-31a5-49e0-8b5c-6bb698adbc46">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_f414cd7d-479e-46ff-90c5-3d88e7a321e5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_67883c02-cf66-4803-8ba9-4a9d4d0907a5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      id="F_152bf0d5-1f13-4075-8817-4c0f918ad1ae">&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;726,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_1c4b182c-48e3-4164-ac4b-ec339a61703e"
      decimals="-3"
      id="F_9a6bad92-b200-493b-a1b0-21a7d45a29eb"
      unitRef="U_USD">726000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
