<?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_d4d711fc-57f8-4414-ad0b-660d76fcd99e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-26</startDate>
            <endDate>2026-08-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_03fe797d-f4a3-43b6-b9f7-2e14a636e614">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_a319d164-88d5-4b1f-b7dc-63a28af147e2">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_8850b3d2-58ec-496a-9ccb-2c426d232b32">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_02d078b0-410f-4a1f-a24a-acd0d203ae7e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_9ebff71e-9986-4bfe-8fe8-8b997afe7d56">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_b63fa84f-ee54-4f18-bcdd-5428e09ac787">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_de06990f-c898-4745-93c7-072fd035d867">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_9ebef031-ff25-417c-94ae-94bd156b0f29">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_75e33227-bf2a-44fb-b377-f889f2e10d11">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      id="F_a688c5e1-ea78-4ef6-84d3-6f9b49b9156e">&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;651,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_d4d711fc-57f8-4414-ad0b-660d76fcd99e"
      decimals="-3"
      id="F_272c9455-c40c-4b94-a720-d8a2c2233b23"
      unitRef="U_USD">651000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
