<?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_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-22</startDate>
            <endDate>2025-08-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_e5e6e754-d4a6-440e-b49d-ab4f73fe1acb">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_aa4d3c29-d4ab-4938-8f2e-4b6d3290eb91">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_8761eaa1-ea1d-4714-b576-370a0da318b8">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_b6bc96dd-b64d-4178-97ba-0b35ea85acbb">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_aa81d4f8-82ea-40c7-9c00-b3338871b197">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_c9823872-6da4-4577-a3b2-937a85b34946">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      id="F_9122b9ce-d13f-48c7-b4b8-1a851c3f357e">&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;5,429,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_bc131e8d-d3ec-4a1d-ae16-ad7317de77fa"
      decimals="0"
      id="F_c3ebd444-0bc7-48e7-ba61-3ecab94d5872"
      unitRef="U_USD">5429000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
