<?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_0aaab533-6e54-4bce-87d3-c639bcccbdbe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_bada3f69-d6bb-42d8-bce1-a6ceacf6272a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_0eb2ad3a-7be4-4ae2-880e-86baf35a7aeb">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_493261bb-9d88-4d1d-acca-1e2881260bff">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_767f350d-f98e-4d8a-8436-744e80ab1549">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_c4162e4c-d33a-4eef-9913-9bf405dc31c8">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_533c60b7-f0d0-4988-b553-aa1c02e1aaaf">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_b8e70b88-8401-4985-b5cd-b5fd943a60f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_32f9044e-208a-4bf5-a763-4a524c4e05ce">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_16bd5720-333c-4145-97df-e52d23024b33">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      id="F_a644ffc2-97d2-4b92-baed-b45cce5cb904">&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,419,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_0aaab533-6e54-4bce-87d3-c639bcccbdbe"
      decimals="-3"
      id="F_5e2dec0f-7d7e-4019-a724-2f6ba7867e69"
      unitRef="U_USD">1419000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
