<?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_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_899e94d9-01e0-4053-8829-1c2bd8ed6292">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_1bfea06c-3dd6-4e85-898e-d21f888e7d32">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_46f1dc71-6c63-423e-bd2f-0acf0c6c49b0">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_79399c5f-a19f-4814-8981-af2229363fe1">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_cf03c192-54f2-47aa-b0c9-36c2d422f2dc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_61bb6518-04ee-4f10-bf1a-acf7c72ad94b">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_6d646dfe-39d6-4998-81c5-2d6c06d181e4">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_7a29906f-2947-4814-9eef-4fc1336aa6f8">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_948ad243-255c-4ca0-8a0b-3f4bb1151617">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      id="F_e4380ff5-7761-4b3d-9293-f7811f6da88f">&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;7,000,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_bf2e4cdc-2f13-4d53-b96e-3fe95396cc8e"
      decimals="-6"
      id="F_2b5bd616-3ea5-4283-8d51-0d1347f9f6ec"
      unitRef="U_USD">7000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
