<?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_dadbdd63-9d85-477f-ad3c-b0ed45e653cc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_5fb96113-cd52-49e5-8bbb-ced104ed3a70">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_7049c31a-e8ce-47eb-afb2-4a49d40aed01">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_d95cb739-dec0-43d3-8780-6f8c5a3c7e8a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_9480f1f3-a4fc-49a6-9cc6-a1437d4b1c8c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_eecee715-8866-4972-a8e9-ce7f30d26d49">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_24a17289-47a0-47a4-9ed3-27457cf301a2">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_676f7d67-595a-410f-acb1-795e08fa768a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_157ec6df-778b-4685-878a-e867d778d0c8">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_745272dd-81b8-415a-b0a0-6256d5ceeb23">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      id="F_af539825-3d24-42e4-adf1-a8dbde24b514">&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;458,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_dadbdd63-9d85-477f-ad3c-b0ed45e653cc"
      decimals="-3"
      id="F_5df692a5-c6c2-4457-83d9-9628c9684206"
      unitRef="U_USD">458000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
