<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_f8e573ea-28cf-4cb4-bc3a-42712064a441">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_5aaa43eb-db44-474a-915e-d7e1470e6dff">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_cd0be685-e1c7-4dce-9403-cbff32e08735">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_5e710b7e-2447-47a6-829d-24960309e4b6">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_7f708af5-6542-4dbb-a3d1-bbeee1eda789">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_10263de4-eb40-4e01-baeb-1df4411927a3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_ee3e7347-e04e-45d2-8f50-84630c208f26">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_0ca38ac8-c95e-46de-8817-c1e5d3823357">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_09f55f45-24ea-4381-9684-9e2d4b59d98c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      id="F_7df166cc-597f-40e3-a477-ff1400c982e5">&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;353,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_e2f6edd0-9be6-4a4d-ab04-371d04ff8e6a"
      decimals="0"
      id="F_9afef1a6-b483-472a-8550-e4e2c56526ab"
      unitRef="U_USD">353000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
