<?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_4c9c65e6-acb2-4f01-ae90-0d7c4376b614">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-12</startDate>
            <endDate>2025-11-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_76785adb-2da0-4298-9227-b2bf3401b2f6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_7a873834-d506-4fcf-97fc-23ad1cecdfe0">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_549f75ca-189f-4be5-b05a-0185e748a26a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_f6e0c34d-bfc8-442f-ac96-e6181d8f50b3">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_a03caaf1-0f18-4926-b4f5-bf25ba3fb4f2">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_f1fc6e42-025d-4352-b37e-e0c44d60dfa7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_c350f3bc-4850-4352-87d5-0b8a4e5b7dbf">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_69076a74-c30c-4d0f-9189-d6434c72f311">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_0e4b12e6-f674-4f6a-8019-30a69d39bfee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      id="F_ac93e66d-ae3a-4da1-87d9-ee4b30368d3d">&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;13,000,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_4c9c65e6-acb2-4f01-ae90-0d7c4376b614"
      decimals="0"
      id="F_dcaf7b6e-64a0-40a2-9525-b7fd5dffcf88"
      unitRef="U_USD">13000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
