<?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_4561ec3b-704c-4c61-8b76-8c2b965ddfd2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_d243ebcb-d0b6-4741-9ad1-d6159147a7dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_1eb3f4f3-6568-4021-969e-90d00e37d157">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_15cf6ae8-9477-41e1-bfda-be9bef4183b8">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_0e4ecf43-4dce-4af6-9ddd-0a99a208775b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_20eb7f92-cdff-4546-84e2-496e61511f29">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_1b5bab4a-cf7f-495a-9cfd-d4acb8932cf6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_6f3d802c-39b3-4c59-855e-5d7cbec8a986">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_2aeb0745-74c2-48b2-beec-ba7b2064e560">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_f7d60791-dd05-4c2b-87ba-9ff24fd1cb14">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      id="F_50b0352a-b730-439f-93b5-8070f4d707e9">&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,033,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_4561ec3b-704c-4c61-8b76-8c2b965ddfd2"
      decimals="-3"
      id="F_17948bbc-bba5-466f-bf11-6d176f37a3cb"
      unitRef="U_USD">1033000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
