<?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_52dcb65d-22c3-4e72-8d9e-0e831c15df39">
        <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>
    <ffd:OfferingTableNa
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_2e9057b2-a9bd-488c-b83a-ec53da597f72">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_c17fadc5-8194-4d37-88ed-d9e4789e7046">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_45b193d0-46f1-4262-b3f0-1fa8656a944e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_ff872dc8-afc6-4dd3-bd0d-b56aef10c199">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_9819eeaf-e016-40b6-80b4-295f6796d753">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_0bc79b9d-7233-487a-ad21-b336547fa21e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_c51569cd-3b09-49f1-bb69-5b5a05e215fd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_969dc31b-2c7f-4b08-8231-b8d516923e45">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_8736219b-9f86-4b21-af49-28a0e8903c42">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      id="F_fad93447-a054-45d4-9b28-79156fc19a05">&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;4,057,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_52dcb65d-22c3-4e72-8d9e-0e831c15df39"
      decimals="-3"
      id="F_ab898345-a526-47d2-812e-62380f076ac0"
      unitRef="U_USD">4057000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
