<?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_a5e6f47c-0f13-4643-ba07-78a47e49acb4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_59a3d3c7-26bf-46a3-b78b-42e107dde06b">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_3e5d35cc-e196-4c54-a7f7-9892447d5473">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_d20953aa-812e-4c36-b1f4-65d6017cd63b">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_ce85e302-518d-4794-b800-0796ce69fb81">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_f4a97f2a-4dd5-4fcf-a9f6-2f26d40932c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_32afae99-adb4-4064-8a9c-81efcd8d22e2">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_d7beba5d-67fc-423c-b7c5-974ab38f5013">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_78db45c0-7fef-40ad-b7e4-b364ffdd868d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_a9f6f917-3d60-4935-a3e8-16f46ff000ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      id="F_3aca385e-8aa3-4485-817a-005887832300">&lt;p style="font-size:10pt;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;11,657,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_a5e6f47c-0f13-4643-ba07-78a47e49acb4"
      decimals="-3"
      id="F_f2cd9a41-3bb6-4aed-b19a-f98370133897"
      unitRef="U_USD">11657000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
