<?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_d59fbdf5-d3ac-4e68-afe8-d3759baf033d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_9b9aeca6-0ca3-42be-a79a-000d5f52d789">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_da1829a7-aa41-47c0-a356-e22d647a3055">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_ec9e7809-beb6-41ec-b2a1-404788be0192">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_5dfb8985-a6e2-4ca6-9b1c-00a9f0f723aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_33a67248-fc58-4d19-923a-926288ee4a2f">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_86c34d4a-ff92-45c3-a070-94dd8d3b944d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_1b86315c-bf0a-4028-a8e2-4ccd100172fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_3d7e4d1d-a9fd-41bc-ad29-faf0341d3d46">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_0a59da39-aba9-407b-8854-d9f67ee77b9c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      id="F_ebeaac0b-17f7-4d4c-9090-057a89358d86">&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;1,920,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_d59fbdf5-d3ac-4e68-afe8-d3759baf033d"
      decimals="0"
      id="F_18e6d1d7-e7b7-4b31-a2d7-e80b9f4b3f98"
      unitRef="U_USD">1920000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
