<?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_b52dbe12-882c-43a9-bcb4-f491c3557060">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_ac3ca88d-a566-4160-8cf5-a73a11ac335a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_edb0709e-a836-41ab-a819-c3538c938902">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_7e0a82ff-d66c-4804-9c62-ec030d413b63">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_76373de7-a59f-4658-a6cf-e2298ef57a99">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_781abaf7-1e5d-4f8a-8f3d-8905ecceacde">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_22c117c4-be33-47c2-bc50-cf6063d0dfe6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_8b845f71-f9c5-476f-acba-7fb8918098f3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_94eb2f8b-3de0-4aea-90ac-db02698674f4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_f0dba1ae-7e24-40ef-8e4d-3729b075f792">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b52dbe12-882c-43a9-bcb4-f491c3557060"
      id="F_849c528a-9443-4654-a645-c1a515abcbec">&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;7,500,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_b52dbe12-882c-43a9-bcb4-f491c3557060"
      decimals="-3"
      id="F_41102b36-bbaf-4a86-8778-dad9682c4ff9"
      unitRef="U_USD">7500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
