<?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_86f674cd-f0c3-4654-8339-955becb95d13">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_c432961f-5c59-4a30-b3a3-99488f94d9e4">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_24333d9f-4407-4959-b6c1-bb69751a7002">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_9612a778-eea1-4629-90fd-59bdeddf6bc6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_b5c88819-6e54-4622-a011-0e0bcd805f6b">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_350cf3d5-1bc6-4881-ab35-fa508cedc026">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_1dd44fba-7db0-478a-92ef-4ff6e9400589">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_c347bbff-a674-4ee5-a421-9954ff92f76e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_c113a6e8-4172-49b6-8e8d-710d7d6054fa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_bee4ee5d-1a99-4f6b-9a32-8d04453af8fc">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_86f674cd-f0c3-4654-8339-955becb95d13"
      id="F_037eadbd-4691-42f6-8ee5-242d88d9bb64">&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;2,811,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_86f674cd-f0c3-4654-8339-955becb95d13"
      decimals="-3"
      id="F_ee0b725f-4c2f-4857-90af-5ded139f67ca"
      unitRef="U_USD">2811000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
