<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_4a458180-e17c-47a4-9245-fe2e9c18db89">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_4612e5c5-8e6c-411a-a683-1bcb79780ec6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_d16555c5-c252-4e39-90aa-08253a0b9932">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_797c614a-4954-45ad-98a0-8855bef99039">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_60be557e-a1b0-4613-9657-e2802bdb7e92">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_3bc484b7-e319-437b-985e-733bebcfb471">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_59dfb0b5-62b9-406c-b33b-bbc6a720d9e5">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_5bf72f08-2c02-410f-a6aa-fe3ba59bb1c4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_7b37780d-9728-4857-9e16-af47bf2e81c6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_c5ee9ded-c3b5-433f-8b79-9a94fd9043f6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_4a458180-e17c-47a4-9245-fe2e9c18db89"
      id="F_da34ac07-02fd-4d95-a148-ec37fc174525">&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;5,068,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_4a458180-e17c-47a4-9245-fe2e9c18db89"
      decimals="-3"
      id="F_ac1651c5-5708-4ecf-97d5-ed2b57d04541"
      unitRef="U_USD">5068000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
