<?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_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_69012325-0cfb-450a-aa34-d5002b88e0a7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_5556cdd0-9be8-4ba6-9ed6-dc03640a62f2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_cd72a1ed-8553-4aab-a5a2-b67fae83d416">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_228921ae-2bfd-4939-b05c-d00986af9385">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_55ad9753-12a7-492d-9fc3-399fc71b5abc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_2215db57-9865-4ffe-b803-1c0361fd7552">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_d49813b4-4888-45c3-a716-6d58235869e6">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_d3657c42-1204-4d0e-8e43-3f011cadacbe">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_71b5b456-74f8-413d-9ed9-3b8ed085a7b2">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      id="F_b14719f1-64de-49cc-9bc7-00d522fe53b9">&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;26,115,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_ab1750ab-9c71-4fb6-bb6e-4a8147c2e4c9"
      decimals="-3"
      id="F_b300c3b1-3706-4dbf-9abb-1d7819ca682c"
      unitRef="U_USD">26115000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
