<?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_9443d433-9d72-40d7-95fa-8f5304cf4b5d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_dd4b90c7-46b4-4a53-af80-ded1eb812037">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_0d5ffa71-0354-4bfc-990d-d5c69e118636">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_95388bd9-b474-45c8-a16b-de7821bfa4b7">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_a3b76aa0-37ed-4cd0-94a2-c7d338505968">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_5af681cc-fa5e-4aab-b02a-7f2788f952b2">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_507655bf-a4fe-49fe-865e-a761ec8c7df0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_1048d1bd-fa1f-413c-9c48-e3eb9ca3ce45">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_28815889-a647-4a41-8f5f-70ef19210c47">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_47d0c2e9-c576-4ed6-83c6-043749235e59">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      id="F_57669631-8926-4e12-aeed-d3c76920daa2">&lt;p style="tab-size:26.66px;font-size:12pt;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;910,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_9443d433-9d72-40d7-95fa-8f5304cf4b5d"
      decimals="-3"
      id="F_c54dfc76-2d84-44a3-9ff0-f049b3a6c4c1"
      unitRef="U_USD">910000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
