<?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_f7a45858-a93a-419e-85e6-dd8ef925dc18">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-31</startDate>
            <endDate>2026-08-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_612967d1-44f0-4df6-b06e-33f302ac8af6">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_9bb021ef-c357-4b06-b0cd-7a9354b6697f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_9052e3db-33a9-4bdc-a364-8911baa8dba6">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_224161ab-9e99-42b0-af17-97c5834b2cf7">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_aba72b57-59a1-4370-8b8c-a69994266669">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_916a18cc-93a8-44fc-95af-5144d7afe3b7">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_8f26b33a-ebca-4a20-ba2e-7f3e112735fd">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_9900a506-9169-458c-a5d2-37442b0c624f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_fdd09586-5293-4711-8efd-3b79c9278263">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      id="F_609c3863-651b-46f9-9806-07f003c6697c">&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;3,980,500&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_f7a45858-a93a-419e-85e6-dd8ef925dc18"
      decimals="0"
      id="F_a7b6227f-02bd-410e-ac78-e8841b4a938f"
      unitRef="U_USD">3980500</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
