<?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_1e5159c3-9656-4a83-b13b-3d6cb1364b86">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-27</startDate>
            <endDate>2026-10-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_dcdf2e83-9df0-4bfb-907a-f8f728f5755e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_11371299-7806-4606-91d7-10b99280696b">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_792da937-8949-4b7a-b964-81d158620b33">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_dd1b0b7a-a694-45a8-8bcf-d40d4bb553ed">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_3bcf315b-c9b4-4c93-a6f6-9d8208c8b058">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_15fa8c68-15c2-469d-899a-5ddf1fff5438">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_ea296131-cc13-4530-b1e3-ad90067501c2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_5004d241-f9e2-45f6-b207-fd522a823bea">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_cf483fe7-6d7b-4cc6-97bf-edc8b5b014a4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      id="F_cd4d2ff9-3948-42b9-b68a-a29672571ce9">&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;4,625,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_1e5159c3-9656-4a83-b13b-3d6cb1364b86"
      decimals="-3"
      id="F_b554cd91-b39e-4436-b09a-e3acbffb3f6c"
      unitRef="U_USD">4625000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
