<?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_4ffa30f0-9721-4e08-8b4c-60865613302f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-07-15</startDate>
            <endDate>2025-07-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_bf8241ea-07b2-4a18-93c6-1635c8cba548">0000886982</dei:EntityCentralIndexKey>
    <ffd:NetFeeAmt
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      decimals="0"
      id="F_37f29082-6b1b-4095-98a2-da16d97ea8cf"
      unitRef="U_USD">0</ffd:NetFeeAmt>
    <ffd:FeeExhibitTp
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_3f6df945-be65-4d25-86c9-88a41507b631">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_b8e3dad6-d398-431f-bbb1-0233001c6b79">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_09210fc4-9a74-4e79-8e91-c23972bb546f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_eea3757d-d807-40f2-a9d5-3651e678c5a1">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_99661c79-42e6-4cc8-80d9-84bd79899927">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_4ffa30f0-9721-4e08-8b4c-60865613302f"
      id="F_d13ec3bc-93f1-44d3-a7f1-5fe69f3ec39d">&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;4,878,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_4ffa30f0-9721-4e08-8b4c-60865613302f"
      decimals="0"
      id="F_e398bf42-de7e-402b-b587-ff82c7a1d234"
      unitRef="U_USD">4878000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
