<?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_9587c133-bc7e-46c2-9925-9184c21c06bb">
        <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:OfferingTableNa
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_a387af26-875d-4e0a-9335-5f894171cc49">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_36dd84cf-5894-4676-ae0e-018a6e8b5218">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_0c35cc80-865f-4d4d-9f0e-a8f2058c3e68">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_f5bd7a94-dab8-4174-8dca-6411aa79d30e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_8aee1c91-afea-40fd-bf3e-d89c16a82e20">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_7a36fe24-578f-460e-b5a4-dbf0b012cbfb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_6c5004d9-b819-4409-8e6b-8be33c6735de">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_6a74be74-d05e-40fa-8209-8fbb31012b2d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_f08f5466-51fb-42e3-9e2a-ebc7efbe1b6a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_9587c133-bc7e-46c2-9925-9184c21c06bb"
      id="F_dee1e50c-5d6b-4caa-b689-1eb3d03e9f48">&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,219,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_9587c133-bc7e-46c2-9925-9184c21c06bb"
      decimals="-3"
      id="F_0c185bfb-dad6-47e8-abc8-e2b08f806d46"
      unitRef="U_USD">1219000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
