<?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_6c1c4084-db5f-4187-b944-15b2e7c3a112">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_3209c122-827c-4946-941c-dd8ad9028fcd">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_df004ee9-49ad-4ffe-b5ef-8c419e14d09a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_28dfe251-3ca5-4a87-9f32-8f045e14707b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_d583849c-45f2-43e8-b2e8-e9159cf44826">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_42ee001a-8e3b-4c2f-8e54-94df50547308">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_dea22ed6-77ef-420b-b30d-026bff471435">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_e354f418-2563-451c-9b2b-618ceef25f9a">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_f20df733-c93b-4acd-997e-e756aea950ea">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_56718792-d78d-4870-8d31-03cc4c677802">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      id="F_d8674e63-fb4f-4cea-be50-cbe4566445a6">&lt;p style="tab-size:26.66px;font-size:12pt;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;870,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_6c1c4084-db5f-4187-b944-15b2e7c3a112"
      decimals="-3"
      id="F_736d883b-ed64-444e-920d-6cb51ec7eef6"
      unitRef="U_USD">870000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
