<?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_74fa480d-4a14-468b-ad1d-50c055ee9e6a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-30</startDate>
            <endDate>2026-03-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_54203611-dcea-4862-a2d2-b7920a11c91a">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_d9ff8a61-f38f-45dd-9546-9ac6405c270d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_326107bd-1d4c-4abf-926e-59675b748d65">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_5a8c940d-3694-4333-96b9-d6ca29177267">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_573f74b0-7483-43f3-8a03-cb4cb4151045">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_6b029eec-200f-419c-b7ad-17a18217bcdc">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_5dbe1a68-3f0e-4da2-af4c-07aaa094fc0e">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_af3cf99b-c078-4710-8c48-e9f6e7defc18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_d59e9804-dbdc-486b-aae5-9c1e6a6cc36f">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      id="F_08cbadb4-3750-4d81-a580-a5b8474a3136">&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;3,701,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_74fa480d-4a14-468b-ad1d-50c055ee9e6a"
      decimals="0"
      id="F_52b4e175-2d4d-474b-ba4b-97a6c12fffa7"
      unitRef="U_USD">3701000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
