<?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_b065a362-9d7a-47fa-89a0-57a1f6b70aef">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-19</startDate>
            <endDate>2026-10-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_151db175-8d1a-4f92-8cd5-52a0f5c187d4">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_740103ac-6f5b-48f8-b24d-dc892ad1c40d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_64869476-b9a0-43fa-896c-2e7c46d2e08a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_60220c6b-8d2f-4bb1-b7a0-8ee0bcfa572a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_4e257d91-9525-4293-a5a4-291a4a39c3b1">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_0449c53a-b382-49cc-b27e-ffc7cb71f89f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_acf9ee67-bfe9-4a8c-8f98-f4d681d93fb5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_c3816813-5e0c-44b8-9f8d-c1c6b5cc7f75">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_dd78c50e-619f-489b-9479-0a222e343774">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      id="F_fec9ab86-a202-4d34-88b2-3297295cc782">&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;7,129,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_b065a362-9d7a-47fa-89a0-57a1f6b70aef"
      decimals="-3"
      id="F_c10ca93a-e72f-4fe2-af83-375edc517aa8"
      unitRef="U_USD">7129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
