<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_4ee34551-894e-4e88-b41f-ba554fb4af3f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-11</startDate>
            <endDate>2026-06-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_ff97c24b-ed36-48df-b5bb-2bbc514da776">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_82ac10e4-60ea-472a-831a-885df5587e71">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_924de9d2-15c0-4258-9c4c-089583eadccb">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_0575b84f-9d57-4e64-b83c-e49c0810eef3">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_aa3e4096-1c32-46bd-9a67-ae9c27373bea">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_e1c5e1ec-bdc2-43aa-9fa0-504d2b5ee899">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_f1501ec2-2985-46b0-8697-0e0356400bcb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_4eac7b70-99f7-47fe-9649-e043979622b6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_05c99fab-aa12-4f50-b6d5-173e28001a09">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      id="F_8f611c5b-aee0-4aeb-acfb-def936c75a3e">&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;419,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_4ee34551-894e-4e88-b41f-ba554fb4af3f"
      decimals="-3"
      id="F_4c90e20c-5546-4135-a35e-176f96b32e6f"
      unitRef="U_USD">419000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
