<?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_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-07-21</startDate>
            <endDate>2025-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_663d9d09-411c-4c63-a742-fd4c5b5f9d6c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_dfa2f7bb-47c2-4993-bc3e-44a0d013eef0">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_8f85fb63-461e-4f42-993b-118a7f28a2cc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_68855cf4-a144-4726-b4bc-f16badfc1c9e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_54906bef-8121-4878-98c4-ac578bd5a791">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_972c9a07-6f2e-47b0-9194-43601d599284">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      id="F_ceb5c261-0317-479e-85d9-c85994ca27b9">&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;1,825,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_4e0a68c6-2ec7-4c7c-90cb-09ce1e8a4d4d"
      decimals="0"
      id="F_6a45c2be-4711-4516-9da6-37d428f48701"
      unitRef="U_USD">1825000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
