<?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_ad08d05d-6123-4fc2-843b-eb7f9eebdc83">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_269d07a4-91b0-49e7-9fd2-898f0d196ab4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_f1890642-3d3f-4fd5-8997-1ff46986079a">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_516fc779-15a9-4466-989a-387010bf1170">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_6f1ff2c5-6b18-42a4-b056-8b9fad3bd938">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_c312d7f0-5687-474c-99fa-f7aa5f6656ba">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_5fa0ddb9-e736-4fd2-b31a-5690b5e8e30a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_c8000282-e81e-42a2-acbd-9115fab927e1">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_740254e5-0eb1-4063-a1e2-77713018be9d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_71ad00bf-7da2-47ce-be2d-cc4f4aad6f71">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      id="F_7597ba4b-27ad-4d9f-8c0d-e7bee655752a">&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;41,389,400&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_ad08d05d-6123-4fc2-843b-eb7f9eebdc83"
      decimals="0"
      id="F_603a5e52-1979-4203-963e-3c5d37868bc6"
      unitRef="U_USD">41389400</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
