<?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_77266d7d-dba2-4461-92d2-ea12ada5d86d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-14</startDate>
            <endDate>2026-05-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_7ea64673-f17e-497e-9478-aa52c0d989e6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_357a0754-dcf8-49a6-8b14-94b5c5e3bd07">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_69ab5509-9535-41c9-8d20-1cc98025dd17">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_6d0fbca5-0483-46ee-b5e6-b3439d5be241">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_6648477c-a4d6-4449-a744-111896a948ea">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_f7e9eff4-4031-47c7-b8ab-9bf62280b1a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_926f8a6b-d3ba-4dd2-970d-945fbbf7dfaa">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_b63f196d-c91e-469b-9485-07fbe6ef2a06">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_f8ec524c-0b58-43ba-96df-10cb1826bc06">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      id="F_e4143d5b-d349-460c-9f08-ea798022d5eb">&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;8,000,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_77266d7d-dba2-4461-92d2-ea12ada5d86d"
      decimals="0"
      id="F_a55a6db1-3ea1-40a4-a568-fc20cc70d292"
      unitRef="U_USD">8000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
