<?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_0fa1e3fc-d653-4446-9946-b9c4ee713efe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_a761270d-882b-46f1-ace3-bf2ccb8e52b0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_28db9786-e8e9-402b-b44f-4229f4774a12">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_ee23db23-c383-46fe-a456-e136a37fa2a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_e4cdfe0a-e2b8-4484-a43a-e74b79152005">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_253585a8-6824-4b3e-8743-2c14318442a4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_43c31677-78a3-482b-b018-25740201c5a7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_91f2de57-aead-4801-b563-dcd1fa1272c7">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_5a0ce717-d63e-42c6-9a95-e00379c94bf8">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_8641503b-731f-4b60-8385-5fde7bfe766e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      id="F_14823ae7-1d35-405d-9b2a-581fb99c4cda">&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,246,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_0fa1e3fc-d653-4446-9946-b9c4ee713efe"
      decimals="0"
      id="F_399a85a8-fb58-4fb2-a1ea-ffc02f54081d"
      unitRef="U_USD">1246000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
