<?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_ecb4c266-bcad-4129-b30c-d48db86a9ed3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-03</startDate>
            <endDate>2025-09-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_265dd185-f732-4a7b-996d-a77af609d880">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_0fefb958-2ac1-4d57-8e4c-5be3096123da">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_a8bfca3e-4d33-4165-9185-c65389eeb734">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_0db1fde6-53b0-4034-87fd-82c6fb8163f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_811bd8b8-87f8-4222-8e20-e986968ffbbc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_480ec082-4cd3-44bf-b8e8-e5c9bfb2e6ec">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      id="F_f4b30e68-eecf-4901-9e17-8f9b7a720be3">&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;924,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_ecb4c266-bcad-4129-b30c-d48db86a9ed3"
      decimals="0"
      id="F_6786b989-b473-42d7-8291-1c0b172ba3a7"
      unitRef="U_USD">924000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
