<?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_9de64cc2-13b9-40a7-9224-64495e073a28">
        <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:OffsetTableNa
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_b6439a51-f21c-46cc-a607-d73f4288d081">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_5331359b-cf26-4e25-a242-5930f3bdff08">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_a28fb91a-429e-445d-bc7c-9f9a8c20af61">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_8b240184-f9f5-4ba1-a095-019b5451950e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_b4b78f69-ab07-4c14-b02b-4260222dc680">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_d7fe36bf-fe3d-45cb-abdd-c788344666f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_d52c549f-0f89-482f-9fc0-2b7b29d6a727">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_b2382d1d-8661-4d3a-b565-bc22bfa8e943">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_9ac19e7f-e4ff-4aae-b7ac-d731fe2df8d6">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_9de64cc2-13b9-40a7-9224-64495e073a28"
      id="F_d1d2680f-f21c-43c6-bad7-352175fb4366">&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;14,545,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_9de64cc2-13b9-40a7-9224-64495e073a28"
      decimals="0"
      id="F_8d205955-622a-493b-8a1c-ba54aea7b7a6"
      unitRef="U_USD">14545000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
