<?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_03be856d-ba99-4511-ad05-40e9f1f51d8d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-10</startDate>
            <endDate>2026-03-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_279f4da6-819f-4783-8651-3956ae208c62">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_0e89abcd-2186-4983-b734-0cc364e78616">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_80c16e6a-fb81-45d5-ac83-4971772c459d">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_fe5a6fd2-514d-4672-849a-3beeaea75296">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_5d128702-8d92-44a8-8a4b-f3f5a502fcf7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_d75a1e13-1e0e-427d-90c5-f1adf2adcb3b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_12e66658-38a2-4a50-a673-44154e7a6318">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_59547420-05b7-450f-8b50-5a577e61d2e7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_c567c538-a2e3-45f7-a2c2-9b436f63b4c4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      id="F_d9fc0bb1-3922-4ab7-9bf2-6e5bd76ea76e">&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;10,675,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_03be856d-ba99-4511-ad05-40e9f1f51d8d"
      decimals="0"
      id="F_304170d8-5b95-47c3-b35d-e65c87d6dc5c"
      unitRef="U_USD">10675000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
