<?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_19b07e56-a21f-410e-882d-c2e178dc655d">
        <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>
    <dei:EntityCentralIndexKey
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_21e7f676-a5a6-40d7-9b49-62bbdfb168e9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_f73e544d-09f5-4e92-894f-41960addbbad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_996e8f4a-7f5a-4f2d-9399-617f6aece57e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_32c9dc0b-3d22-4a16-8c64-a47c4f8d171e">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_d1f45d1b-c0b3-4d89-8510-605e6353a6d6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_542a710c-fa12-4bd3-8864-f61beb514d91">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_dd11b255-da54-4c41-9efa-48ae806296e3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_1fb7871f-809b-4ab1-9e2c-73953bc30379">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_0bab8474-1e9c-4e5c-8f27-f1ec2c34e076">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_19b07e56-a21f-410e-882d-c2e178dc655d"
      id="F_86359742-dfb2-45c2-99d9-4ba5ea46a89f">&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;6,887,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_19b07e56-a21f-410e-882d-c2e178dc655d"
      decimals="0"
      id="F_a57d5d49-a341-42f0-88e5-33d2eb48afb9"
      unitRef="U_USD">6887000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
