<?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_14140daa-b693-40eb-af4b-cdac5b94387e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_d8302c8f-2858-4c25-a0d3-a26fbc15df2c">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_89198620-8a93-4e97-86db-8840164064cf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_bce95acb-ad0a-43d8-8e03-67ac64a67c3b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_b1dffdc0-8f6b-4cf1-887a-b9a8e7fbef13">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_ee667c77-e9da-40a5-b853-ba6a73f6fa23">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_6e713182-6aab-4f68-98d9-2fd1df29a748">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_4b30be7b-f278-48f5-94d6-ebb9d496b59a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_74369f03-3f58-4292-8775-6efa26cda3a6">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_37d8fb0b-9844-48c8-bd75-7fb047251774">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_14140daa-b693-40eb-af4b-cdac5b94387e"
      id="F_b0e1a98d-1bfb-4b57-b436-4c5639d8574e">&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;5,670,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_14140daa-b693-40eb-af4b-cdac5b94387e"
      decimals="-3"
      id="F_aed83924-4578-49e2-b989-baa941b4e79a"
      unitRef="U_USD">5670000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
