<?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_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_3274c18e-e673-4571-a9c5-76aa0cf16797">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_b77d0e5e-c808-4030-92bd-3bba8d1bc0e8">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_e2d89b13-d982-433c-8ba0-e38cd6ca2380">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_f22960a6-5f2e-4ac7-97ff-3d5ba1d7648e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_50b865da-aad3-4c45-ab53-cb381489bc93">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_1cafbff8-06f2-483c-8bfb-bab819698383">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_f4be4b2e-6b5f-4d6d-bc29-ac4698d75d0e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_4ecddf37-4c12-44ad-9107-8300d782edb4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_c5086348-6ee2-4164-baee-2af9bc3428e7">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      id="F_748925c1-1c88-43d7-81d7-c401af604731">&lt;p style="tab-size:26.66px;font-size:12pt;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,355,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_6e60bc3a-7d5f-4f57-807b-5d1f5e2fe844"
      decimals="-3"
      id="F_a4ef546d-3df4-4fb7-8f01-7c2fea31c63d"
      unitRef="U_USD">1355000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
