<?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_0f18420e-e2ec-4f06-9d6b-7f339a2b111d">
        <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>
    <ffd:FormTp
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_a4559597-7c19-49ba-98e3-503dcc6fd724">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_2bc9c042-668d-456d-8472-e60dd7b7c2d9">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_9e58dc48-dc2b-4841-9730-a68cf906000f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_6623d849-91e0-4f7d-8d86-9140081ae669">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_9b4a5608-79ca-4a9a-804f-1564e957b86e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_83cc366c-ef76-4ec6-bbaa-49213a840e44">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_d324f265-81b5-43b5-9d3e-1d6fa41930ad">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_cf0ea67a-35a0-484a-9fee-9477aa20652b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_cc9a83f9-c608-40db-a947-262258ce7827">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      id="F_03200c99-70e5-441f-8b76-1ff0684097e4">&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;965,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_0f18420e-e2ec-4f06-9d6b-7f339a2b111d"
      decimals="0"
      id="F_b32f734e-27b7-47dd-a327-a69f99c8f226"
      unitRef="U_USD">965000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
