<?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_67ae1a4a-230f-4928-aeab-305816061747">
        <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:CombinedProspectusTableNa
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_0f236e4c-709c-4606-a40f-53347cb2fb3a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_1d47802c-da7c-463f-a32b-733956eedfa8">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_2c569249-a67e-42dd-8bf7-1faace8f9eda">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_11ba1e58-88ff-411a-8ab6-4886f819aa0f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_172161fb-df9f-4f3d-b2ec-da73b7e5da51">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_ce39ce0e-81e3-4dc4-9150-3102a1a2601c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_afcf217a-1bea-4a9d-90a7-dc5d68890232">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_1a2e066d-6c9f-48d3-bbb9-7147d920d51d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_b7debc16-e7e8-4b12-b763-8fe637b27133">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_67ae1a4a-230f-4928-aeab-305816061747"
      id="F_916894b6-900e-42af-8749-a0e4b7e61476">&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;789,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_67ae1a4a-230f-4928-aeab-305816061747"
      decimals="-3"
      id="F_77c0371b-d867-46ad-bf15-1c07a8f771b5"
      unitRef="U_USD">789000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
