<?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_53cbc868-9bbd-4c26-8d74-6161c049d14f">
        <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:FormTp
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_7cc4c4f4-7c61-4b60-9824-371a8b933298">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_96a71039-b1bb-41f6-a1fd-92acdcdafab4">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_7756ecca-579d-47d0-bfc3-b0203cf82875">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_3ed80ca8-2486-4c59-8370-b7da41ca7d18">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_7f54f88e-0a02-4b80-8674-f7a7ea69551d">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_fd133357-8af2-435c-8be0-4492457b0472">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_ebcb179a-fc9e-4815-b28a-7a3e55dba2c8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_9fd5e850-cb42-4446-a68c-89a4a9585b98">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_38eacce8-8166-4cc6-9c4a-7f721d35ecf1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      id="F_403a0b03-37d2-4fb9-949a-49048b7d9dc2">&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;33,487,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_53cbc868-9bbd-4c26-8d74-6161c049d14f"
      decimals="0"
      id="F_22ab31ca-925b-427f-bef3-4ac5a7563076"
      unitRef="U_USD">33487000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
