<?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_00ef81f5-1f35-4ce5-9903-8247643993c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-21</startDate>
            <endDate>2025-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_4f424757-c727-4733-8d01-78dd8ac67b50">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_978ec6cf-2ffb-4829-8adf-ecf1f7627eaf">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_b82982f2-be8f-488e-b284-ac7dea92cddd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_24858c79-32a1-48be-b69d-29184ddf127a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_3292359e-711d-4528-b97b-1de6cc45c059">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_caa6d4a3-f361-43ca-8088-36241ba1a68b">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_df52b8dd-0e48-445b-a6a6-30f4d3df3a4a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_eea0a53a-509d-4e8a-b7a0-6e98bf26b0df">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_e6568449-3979-42bc-b9d8-361773e22206">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_00ef81f5-1f35-4ce5-9903-8247643993c0"
      id="F_35c2d7dd-f2d2-4c57-9376-f0f36b543a72">&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;394,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_00ef81f5-1f35-4ce5-9903-8247643993c0"
      decimals="0"
      id="F_9dd1b8d8-5d84-4bdc-8d9d-75a29d7f3a6c"
      unitRef="U_USD">394000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
