<?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_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_c10c0819-6ac0-490a-a31e-3df9b1c4fce0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_72ba7618-1135-47c3-8ce2-b9ec34522cd0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_424f8f21-b8b6-4cd5-be54-ce1d733b2a07">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_18015c37-88ba-472b-9c04-45daa7287d11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_d9969398-45ae-462e-a0fe-ff42be6246e0">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_97ee2572-b4e2-4d32-9298-f4e2922a7cc0">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_bd3f4f91-458e-4c32-88d8-fafc8d849619">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_8d9b8c0f-4114-4773-b5f3-f8f24478167d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_64044762-4f40-4f90-9253-f27a9c1e5756">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      id="F_06dcb2fa-7992-4a00-a665-bcf0ca405c2c">&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;1,137,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_b4f9fd6d-58fa-4a0e-b60b-ec2e54fedd69"
      decimals="-3"
      id="F_0538a955-fc58-451a-885a-592c73f181e8"
      unitRef="U_USD">1137000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
