<?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_b7d77172-820e-488c-ab6d-694b7a373c78">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_77b5877d-3e43-4e1a-991a-e2b76765684c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_2ce69cf1-f10f-445c-99bf-8b13a78709c9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_96cbc15f-dd35-47e9-9db6-ca35029b1cbf">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_dc8bb458-0dac-4402-9b46-211f3578313c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_d62037ea-8c90-4693-9c7e-18d45e48c027">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_7ddf4c92-4675-4e63-934d-d464ee2bfead">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_4fb2708c-a327-42b2-aa7a-e01ffc7fb88c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_47efd424-705e-49eb-918a-29eaf05d3f70">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_83615195-0d0a-44e5-83c0-1d4d4723b609">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b7d77172-820e-488c-ab6d-694b7a373c78"
      id="F_9058fc1d-08b5-4a90-a456-4243e01b56a6">&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,181,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_b7d77172-820e-488c-ab6d-694b7a373c78"
      decimals="-3"
      id="F_948f150c-79b9-4520-93b9-8647bd2b4ffb"
      unitRef="U_USD">2181000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
