<?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_9da06cfc-aab3-4f3a-ba43-938033cf3109">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_676d3827-1d29-421d-a298-48ab5163c85a">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_eb2e18ac-419d-4805-a531-20b7046a303b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_27c78640-75c2-4252-9ace-403e78295977">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_8dbcfd27-7d56-4afc-b5bb-02f3c0d767e8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_ed94a104-e0ba-4c9f-9c7b-d2ecc9c1120b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_137fc3e8-5cda-464f-a74c-72965edfe372">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_b5e3bd6d-3442-49f3-b2a4-dc2c1f56a5e7">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_16ae6dda-01e8-4beb-be1b-fd94d8f7802a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_96d10718-d7f7-4fae-853a-0aa0e2f30f19">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      id="F_68d83ef4-abdc-4f1a-a5e5-6fc3e6ac7f16">&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,855,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_9da06cfc-aab3-4f3a-ba43-938033cf3109"
      decimals="-3"
      id="F_fc815016-8574-458b-9d8f-dd8d3343b976"
      unitRef="U_USD">4855000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
