<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_04c2b804-449b-450d-a5ac-c364c2b03848">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_737ffbe2-57b2-4793-9408-163536db342f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_05968af1-1bb3-432a-8d4c-3a107740a2e1">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_601dac29-fbcb-484a-a21f-453563118075">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_a139d781-07db-4e3f-b0ca-62ee314af3c1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_de8052e8-f771-48a7-bda1-e6d56eedf8ec">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_1c6254f2-4616-403d-8986-4d5bda8eed47">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_6a1880a0-7b05-420f-a909-0fd0a0ae7a9e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_ed1166b2-dc0b-48d5-b97f-3db872be4394">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_53595bae-2e7c-4ab6-aea7-ab25e6cd327a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_04c2b804-449b-450d-a5ac-c364c2b03848"
      id="F_896349ed-f904-4490-8d11-d800e0ee9301">&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,817,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_04c2b804-449b-450d-a5ac-c364c2b03848"
      decimals="0"
      id="F_1ec22ff0-8802-4587-9a0c-a1a01f30ecdd"
      unitRef="U_USD">1817000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
