<?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_2e169ef7-834f-4acc-a22f-2e5857f459d7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_2e22c744-1aae-4492-9a1a-74f00d1fc96d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_8d8883e8-08cb-401c-9f1d-189ebebc00b5">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_8e9f14b7-122b-4710-8848-cb57648a3eb8">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_f78de7fb-0afe-4b19-80cc-a1c84a8fc941">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_393a5f73-9684-42fa-80bb-6a670a8c3e86">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_52bed8e0-404a-4f18-bbe0-f9be78f4b9d3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_f356df55-5ba1-48b4-acb2-882d7945fed5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_45f77630-fc22-4c75-98eb-1bbcb863f4c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_e444795b-f786-429c-82c5-5255edd1a93d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      id="F_10b502dc-bbc5-4b3e-894a-70be006db2f7">&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;407,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_2e169ef7-834f-4acc-a22f-2e5857f459d7"
      decimals="-3"
      id="F_36afde90-6228-4682-a4cc-4ef20ba3796e"
      unitRef="U_USD">407000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
