<?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_f9be28d6-0f00-4cb2-9ddc-028dca100007">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-10</startDate>
            <endDate>2026-09-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_41bb403c-7fa2-4d4c-86b4-5fe3165e48db">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_dbf3ba15-1251-4f82-9df4-fc36c36522a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_43d7a797-891b-4fc4-a604-d0231e52ecc8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_26eb3a1a-2438-4412-9bd2-eeba11588276">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_266eabbd-7f17-4687-9a2a-6e579766f40b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_f638cbeb-9799-4622-b9cb-863934584761">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_302a3e84-1121-4c06-89c8-894e59153b23">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_7de02f37-6599-46b0-a51a-3f2a319e269c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_a8c2e723-308a-4470-a97a-b602d0d3f5d1">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      id="F_e6959fe6-66bd-42bd-9d54-17ff4c4add90">&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,175,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_f9be28d6-0f00-4cb2-9ddc-028dca100007"
      decimals="-3"
      id="F_eb800bf4-c2c9-4d9c-95b3-64b624a49a70"
      unitRef="U_USD">1175000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
