<?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_18971b6c-fee6-43d5-b5ab-bf1eef9f562a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-06-27</startDate>
            <endDate>2025-06-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_5319e1b9-bf91-4ac9-8128-3c0a54df7708">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_f23a8372-2f6d-4c36-b143-c465db62a704">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_1912460c-1c98-4b67-8649-6bee39d14120">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_2bd8f565-e47a-4cd5-b85c-e4a94b57afcf">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_c61013b3-7020-4393-83b5-b2b89f98481f">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_01ae33fc-2989-4ace-b9ae-27b211fc6848">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      id="F_713653b3-43ae-48c2-b4dc-858620e66cec">&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;3,992,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_18971b6c-fee6-43d5-b5ab-bf1eef9f562a"
      decimals="0"
      id="F_40909173-26fd-4ea1-97e4-96d41031491d"
      unitRef="U_USD">3992000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
