<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_fa9d24d2-4822-4f34-85f3-353fb22c5519">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-05</startDate>
            <endDate>2025-11-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_8fd6fab6-98d4-4c67-8f50-4931665e4c93">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_e1d1ca51-e025-452e-916c-203235dc24bc">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_b74a07ba-2131-4d4c-97b8-b32469cfb624">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_9a9e87bc-49ff-40e0-be8c-600216643964">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_237e0167-d59e-42a7-a179-f7bcbd643ce2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_d9570460-2bf1-42f3-b1e5-3322eab2574a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_7ccc4570-8c67-4c10-ab03-00cde45c1d21">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_7d10aef7-d471-4cb9-8a8c-09ca34bbaeb8">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_3653dfaa-e53f-47a1-9565-022b66a1427e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      id="F_e6970215-20b2-4e25-a9eb-bd6e3c826691">&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;500,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_fa9d24d2-4822-4f34-85f3-353fb22c5519"
      decimals="0"
      id="F_dadadd25-cd11-4f48-9c72-2e558b73e39d"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
