<?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_8531bbc4-cbc4-4e57-9915-707012ee5525">
        <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:RegnFileNb
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_756aaa30-a929-4d27-b594-53ab755a8b0e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_62e55b9c-60cb-47f0-8ffd-207a2c57fedb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_f08c83c1-5537-4bdf-9a6f-a8efabd5d551">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_4a229ca2-6460-4198-8cff-6a5562bba7be">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_bfba3f08-98e1-40f4-bc15-45b07e056bf5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_6e3a6669-8120-4e2c-b5f4-f4e00055bab1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_ee387285-b320-4c80-89c8-04ac544bc551">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_93002eb8-770e-451f-be36-e7bb6b8e2b13">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_ba767ddc-2c68-4e4b-af2a-79a580868000">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8531bbc4-cbc4-4e57-9915-707012ee5525"
      id="F_3d172f28-c48b-4510-813b-041e170338d3">&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;21,937,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_8531bbc4-cbc4-4e57-9915-707012ee5525"
      decimals="0"
      id="F_c821018f-0ca8-43a3-a8d1-2b8ee3def135"
      unitRef="U_USD">21937000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
