<?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_e9d82332-4236-4257-bfba-d14534323ce1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-27</startDate>
            <endDate>2026-04-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_9de14095-c86c-4bf1-b284-03e2b8378004">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_8c50f9ab-c5ad-43b1-bf3e-ad4c214cb9f5">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_62bcf4a9-5290-4c0c-b8ea-4d42336648df">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_992a38dc-f929-4273-8022-a9b483146c3f">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_6bc46874-d749-4a33-a782-971f9ddaea4b">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_a00c4bbc-96eb-4d59-8e8c-3a8c920f9814">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_97e4ea44-bded-4712-aa55-57a375c44f53">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_b63127c6-3f25-4ea1-90a2-8290e416296a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_0e37f030-68b0-4aea-85d1-23bb5172514d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e9d82332-4236-4257-bfba-d14534323ce1"
      id="F_db4a90ff-8dcd-42b4-9fd4-f9234d084bb1">&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;18,821,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_e9d82332-4236-4257-bfba-d14534323ce1"
      decimals="0"
      id="F_d82382d9-aaa1-4089-9402-030f268bd66e"
      unitRef="U_USD">18821000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>