<?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_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-21</startDate>
            <endDate>2026-05-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_26576d1c-7ed3-4c4b-84d4-348b62c73959">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_cfbb5dcf-a031-4571-b1d9-385132b38c26">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_e8ef4160-67aa-46f1-9f98-8554e6c475ad">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_c3150c47-dcb4-4ff2-923f-259212190cbd">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_724e081f-a4dd-4a0f-a889-8a7d0317b260">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_c9c77986-a5b9-4fb0-9c27-a01136ad52e9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_fd49c720-d18f-4fcc-a339-af4a1f35ebbb">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_9945e971-c803-46a3-b143-7aace30dfcdb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_be4cd9ce-06e8-4ded-a806-9f1ac3841926">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      id="F_d8eaebe7-3bd8-4d1b-8577-8839c0ee7d18">&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;15,350,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_6f78f7f8-d5eb-4cfc-8f26-ff2993d240b2"
      decimals="0"
      id="F_24235403-3fdb-4d43-a3d6-157a279cee0b"
      unitRef="U_USD">15350000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
