<?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_1ab2b819-1206-4636-ab75-7667e97dd8e6">
        <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:EntityCentralIndexKey
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_b4d0a334-edc4-4dcd-a021-45d102564cf0">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_0ebb7f5d-f166-412d-a540-c9e7c97b85bb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_647271ed-3242-4381-8402-02aa455314f1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_89601e88-94f5-4aab-80fd-b6e3c83f8f09">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_40e954a2-8b3f-452e-a247-afe00e51e872">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_04191f8f-839b-474d-aa74-17c8caff3802">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_690f84cd-c62b-4393-81e5-226b7d3a667c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_06a75bdb-8ab4-4ee9-b0c8-bed447187ba1">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_83e248e2-8b48-4ed3-8937-76f23d8ad9f8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      id="F_92120748-8da7-4e2a-a28c-fcf2b1239b56">&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;112,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_1ab2b819-1206-4636-ab75-7667e97dd8e6"
      decimals="-3"
      id="F_c17ee5cd-d903-435c-8184-3d3ee4db3d09"
      unitRef="U_USD">112000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
