<?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_ea18528a-63b8-4d64-8ec7-da2dda6bfe18">
        <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:CombinedProspectusTableNa
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_dcca018a-4d40-4e18-834a-a88a102c416e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_c19a5b4d-d17c-400b-ace7-e29ee047250e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_cf53211e-48cd-40c5-abf2-682a77a18f4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_7c82400e-9098-4ceb-bc92-f4e3d109c043">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_4ab85aa0-abf2-4789-8b63-d55535ca3fe0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_a0bee436-3822-4912-ba73-7cbc3aef3a57">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_54f0ae44-d453-4f7e-b512-cc589b41557c">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_31ffaadf-7717-45c6-8d40-395d1c2d9adb">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_9ffd441b-70c6-4cce-a355-80750286ed3c">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      id="F_b3b0f0da-8b04-40f9-b873-287a7928d495">&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;1,183,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_ea18528a-63b8-4d64-8ec7-da2dda6bfe18"
      decimals="0"
      id="F_83d8b539-87be-43fc-a2ee-697506cc7924"
      unitRef="U_USD">1183000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
