<?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_9d4ed471-1046-4635-8c0c-7deace5ec797">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_055a0fdc-8578-465d-b54a-46edb26d24b7">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_d3e11f88-8461-40a2-92b2-f6f302dc13b2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_dd792443-0889-484c-91af-ccc47a65203d">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_c3d4d21d-bd10-47c9-9b23-c2099a0449bf">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_b555563b-9ef1-4aad-baed-5c3366e6b46f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_0b24a847-38b7-4c40-9c1c-4c2680355cd9">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_9963587a-f21c-4249-bf5c-5b411f1c409c">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_7623d1de-fe4a-47cb-81d5-8b9326ff1e9e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_4420df84-e977-4594-8d22-6d8833bbb16b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9d4ed471-1046-4635-8c0c-7deace5ec797"
      id="F_b4a9150a-c79f-4483-bc10-6f386120d164">&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;240,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_9d4ed471-1046-4635-8c0c-7deace5ec797"
      decimals="0"
      id="F_e9ea9820-5486-4fc8-b0c1-966e4bd78315"
      unitRef="U_USD">240000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
