<?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_e64db2d7-4a9a-46cd-9b27-e194216fb6ca">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_01cf6ce1-095a-4bda-871b-76318021ccf9">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_c22351eb-7262-4a80-b5dc-b9f7723b0218">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_695b18ea-8e82-4b0e-8aff-ef58824b0280">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_cd50ffd3-53c4-4eef-b472-bbf3f0df62f9">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_20f4b1a7-af81-40f3-ab3a-e985bb19ba3f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_c872f9d2-d5a7-4f1a-8ca9-aafd64c28a18">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_6b99256f-460c-4e9f-8cf4-9e1b7b317ff8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_13e6b709-6696-4e2e-b804-fd789eaebde2">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_4577f792-7486-4ce0-8bd5-cc9b4b253651">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      id="F_448034d7-de04-4398-8ece-981291ee1e9c">&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;3,318,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_e64db2d7-4a9a-46cd-9b27-e194216fb6ca"
      decimals="0"
      id="F_971b7214-bf9a-4d35-b0eb-1428991e8d00"
      unitRef="U_USD">3318000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
