<?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_9fc79c43-06db-42aa-b570-7820520c9964">
        <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:FeeExhibitTp
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_b2ff0618-10ba-4238-a610-0b7bfa206c50">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_51ffd033-2bc7-4f4c-adc7-ac1a9926bd7a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_13a295bd-f394-44ae-af92-3212efda245b">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_573244b2-ac84-4a9b-b554-3db77a46ca43">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_ca45455f-0629-42d6-935d-7bda19fdda3b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_8db4703c-2e41-467b-aa18-55fc64039f8f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_279ea098-a795-4d79-ac67-c2ceade9b61b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_36ef54f0-7542-4a88-830b-52ba8355d25c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_01efcb62-6663-4411-8fd7-623cbbcd0c6b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9fc79c43-06db-42aa-b570-7820520c9964"
      id="F_9ae8391c-ad8d-4543-a51c-b89e61fc1dc0">&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,630,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_9fc79c43-06db-42aa-b570-7820520c9964"
      decimals="-3"
      id="F_e68f0698-94c6-472c-b998-15fe8bc910bc"
      unitRef="U_USD">7630000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
