<?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_987b67f0-75dc-4c70-8d8e-bafe848e8030">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-06</startDate>
            <endDate>2025-10-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_20470f4d-8e2f-43cc-9fd2-25ae6620aaf9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_955abb6f-100e-49b2-b0e8-c8b8c2b6cff3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_219f6061-50e9-4315-91ce-6a9d1b5ef6f8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_0780af6b-372c-48b9-9326-6c755a45029f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_9e9c94ee-bba5-495e-aff5-2e4001e1b802">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_e5b5fce0-29e5-4c47-8825-0873ac35fafc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_2c8fea83-7538-448a-af8d-407813a75581">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_463a51f8-e8c5-43e3-92fb-f23442fad229">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_97958578-b7e1-421b-b4b1-fb40514f245a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      id="F_86a2a29e-b202-48c8-a916-f75d66845820">&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;6,685,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_987b67f0-75dc-4c70-8d8e-bafe848e8030"
      decimals="0"
      id="F_9d5e5873-8542-4700-971a-f334c987e5ec"
      unitRef="U_USD">6685000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
