<?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_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-23</startDate>
            <endDate>2026-10-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_09c8d2eb-f912-4953-8c5e-d3e00abbb5cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_26835eed-be9f-4742-805a-8178d857af15">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_6176c3b8-5950-432e-85ef-e21ae19165fd">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_f7cc58db-7459-4ad5-949d-3cb86b22e4a1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_65de7753-89d3-461e-a01b-cac2e816058b">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_37433744-30f6-463a-aef4-8db4864d86ba">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_3619623f-5b4a-45b8-b5c3-5969e5c5626f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_dfa49412-3b1b-4e49-81ca-535398f24ecb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_e58f219e-de71-4306-89ea-744f9bb6f7f0">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      id="F_7bbd8da1-e019-458f-b2da-8ba0a21d5548">&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,761,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_4caef3d9-c41d-47d2-b84a-bb62e4b0ba4d"
      decimals="-3"
      id="F_85150973-468d-403a-ad8d-983ced5f31c6"
      unitRef="U_USD">1761000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
