<?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_47fdd5b0-6859-4f95-855a-ea7f773b5424">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_81550063-fa52-4c81-a250-41c988a887fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_03cba224-6e21-495f-b3c0-0e9edbec26a3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_f07aee38-cddf-4a4b-a7e3-375bcc6d45fa">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_c478b60b-5827-432a-8e4b-e59b8ca1ba02">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_14ec767d-3b9a-4030-841a-01539844da82">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_dbb6fa66-255f-42ad-806a-cebb86a679b3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_dccbf605-1205-4d00-bb31-663978dc6651">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_8ae518d8-3976-4c48-b50f-36f0961a85b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_bb94d51b-5323-4e7e-b807-949d98972c75">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      id="F_d8755641-d391-48dc-9de5-6c555278fb75">&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,000,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_47fdd5b0-6859-4f95-855a-ea7f773b5424"
      decimals="0"
      id="F_60d799ba-87e6-47fc-b588-2c011b64c978"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
