<?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_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-30</startDate>
            <endDate>2025-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_8fe0abb2-d228-47ea-a952-052ab2f69fe0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_f992ac41-592d-4709-84f9-e0a47169d5ed">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_c6c44316-d337-4842-b365-dd75ba1650c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_a1bd9848-42e9-420d-af84-968765db0e07">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_83f38f5c-86da-44e8-a574-f357a0cd6174">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_99b4b5cc-300f-4dee-a632-75e9c668a725">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_e873960b-a5cd-4e6b-ae09-73e16c700be0">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_0cff823c-5c59-45e1-b877-c40af6f67dfb">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_615133fd-1c7e-4e5d-b994-7acc085981c1">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      id="F_0277dbc1-73a1-4879-bbfe-4e10ccb09693">&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;25,676,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_0a1ad49b-3071-4c09-8cd8-60ed5bedc7e2"
      decimals="0"
      id="F_5ecaadfd-f8b3-4dbb-9804-83a7616e2e12"
      unitRef="U_USD">25676000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
