<?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_57e633ba-14b2-4e17-a89c-420987a37679">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_3edb7bc7-5afd-49b7-a20b-adb06bb42ce3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_357934e9-3265-4917-8806-99a0392bf138">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_b581843f-7f65-4c74-91b8-2c38106fbace">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_5c0d32a3-8647-4d87-b8fd-55c65c55182c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_c7e7ce23-4e8b-46a3-9315-0b6083724cf9">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_9086e215-9ecd-43b8-9bed-474477f04efe">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_d51025c1-79a8-4498-92bf-3e0d255f2952">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_5e52a1c6-0a62-4a72-a311-a4d285683c21">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_9886b6c8-723a-4847-abd0-a880016f894c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_57e633ba-14b2-4e17-a89c-420987a37679"
      id="F_dc23943e-6d1d-460e-822a-deb0c2fa7605">&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;6,801,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_57e633ba-14b2-4e17-a89c-420987a37679"
      decimals="-3"
      id="F_3d46f32b-67b8-43cb-bdba-ec3dcb192949"
      unitRef="U_USD">6801000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
