<?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_e1a2ff27-eb66-4532-af54-65785d72dbfe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-06</startDate>
            <endDate>2026-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_f22339d1-1587-47f9-ac37-02e96faaa524">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_f7204491-a834-459a-bbd3-84d10c3df298">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_8b4a1a52-011d-4794-9e4f-c57ea2fd1964">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_79b16a0a-aadd-4bc7-b7e4-ae36bd4515ab">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_981ebb9e-6868-4906-a7f7-7407cbf1dafb">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_4332c7c7-d1ab-4f5b-a336-6c2e942232f7">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_88d07118-dbeb-4448-bc59-2527be01e938">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_6779e709-bf7b-4fd1-aba0-195fadc5fa46">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_f66f7b5b-ddfc-4201-bb9d-daa73fb8d15a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      id="F_a5396795-8858-4228-9339-4dd185e8fd1b">&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;2,873,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_e1a2ff27-eb66-4532-af54-65785d72dbfe"
      decimals="-3"
      id="F_a61707b1-e3d5-4208-8f75-37642d893c70"
      unitRef="U_USD">2873000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
