<?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_b0c9e50a-4e33-45db-99b6-34798752b6a5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_1c9cce14-92b0-4ebb-85bf-21640d43cdb8">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_302d872f-6cd3-420c-8cdd-9ba8a5d83863">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_60b78f0d-399c-442f-a71d-33060f56c120">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_4adf5704-b371-4d79-8a4f-fddfefbc1650">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_da65950f-2fb7-4835-b768-296f4aae327a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_c0a82f1c-c616-4ab8-9c21-d63044bd2232">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_c2de70f3-51aa-48dc-a18e-e15b8cb41fd7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_72394191-c1cf-4d72-93bc-de13120dd4c1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_90c326c8-cc69-433c-bdda-931c65f8a34b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      id="F_1b5f19ef-ae2f-4b96-b472-a31f8f8ad42d">&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;10,239,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_b0c9e50a-4e33-45db-99b6-34798752b6a5"
      decimals="-3"
      id="F_c5216e0a-f4ac-4b02-b97a-43a96b7ab308"
      unitRef="U_USD">10239000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
