<?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_5662188c-f1b3-4ba0-8cf8-05ee320899a1">
        <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_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_627dd298-e812-4772-a3a2-41bd2bbced6f">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_2af47a81-e90f-443f-a129-c8dff22666e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_4f5dc70c-b849-47a6-89fa-ba0ca6e14b1f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_0175a82c-7234-4f1a-a544-4c8b4e5c0fba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_5c539f1f-146f-4c4c-afaa-0135a9478868">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_1b1477e3-3be3-438d-a38e-aef604cb06fd">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_c0693511-4a8b-4863-9aa7-d0e317679f95">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_4f0c9aa7-7c7a-4bfe-981f-b9be18dc481b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_f194c557-5c4f-48bc-8aad-a46eff00e5f9">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      id="F_94c41d26-e6c3-474b-b5d6-d35933f5e711">&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,939,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_5662188c-f1b3-4ba0-8cf8-05ee320899a1"
      decimals="0"
      id="F_a56f13d9-6c56-4e82-a001-75dfa3a5c836"
      unitRef="U_USD">3939000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
