<?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_c692b2a9-b02c-4aea-92c3-3b83c470d73d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_02bc2c98-0107-4f12-abcb-1548865d93b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_db0b2981-f457-4ad8-a801-5c6091d64495">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_9641c194-4926-471f-af25-10b857c05ad3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_a0f4bd7d-86e4-40ae-afce-a365e3b074de">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_bff12d9a-afed-41fa-9256-2864f0c08ad8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_b9cf64cd-6244-46b3-87aa-1d7c63f6aa04">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_19ed6ca0-b70f-49db-896e-80307f263dcb">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_19a217b8-689b-4171-ad11-964747ef2800">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_18b0c2a4-d439-40aa-a16e-47c81e136ed0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      id="F_7d2c4940-8507-4bbc-9d48-13be2d5e0062">&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;1,601,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_c692b2a9-b02c-4aea-92c3-3b83c470d73d"
      decimals="-3"
      id="F_ff7cd09e-3c8a-4740-8ee5-a08dbf36953a"
      unitRef="U_USD">1601000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
