<?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_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-29</startDate>
            <endDate>2025-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_ccbe67cd-7662-45b7-a35d-8da558970da8">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_1f412d32-8281-4d35-b290-975e77a51a9c">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_a56de871-4d25-4589-8960-6685179ba6d8">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_a135acbd-1274-4116-acf9-889387b76a4b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_223ed67b-1345-4022-8713-5c8625f012c3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_a7afddef-146b-44d4-9ee5-0e0647b743db">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_c8754175-dedf-4465-92bd-e62e3da048bf">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_238fa9c2-08ca-4ec7-8018-62a025c3be44">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_c2a19751-a7aa-461d-9099-52bb148cd056">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      id="F_e4a0545c-ea4f-43ba-b0de-74b06453b398">&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;8,654,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_fbaf102c-dd68-4ac5-a56a-21e9f5eb4d27"
      decimals="0"
      id="F_56d54c8c-6386-4110-b9f4-da4a85afe85e"
      unitRef="U_USD">8654000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
