<?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_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-04</startDate>
            <endDate>2025-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_434dc4f1-6233-49d0-98a0-3cb3a80877a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_fb79ab47-8960-434c-8111-7586da2a183a">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_7c086523-2cf4-4b3a-a516-46fc6ab3e744">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_337130bc-ab48-40bc-8b51-8f9169e2ed49">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_fb169b77-a5c1-4190-b057-2dfe9eee9ffc">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_6a9f7461-c5d3-4382-80d7-6f1d8c7eba44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      id="F_1a51cf8e-bc1f-450a-bc7a-2f58f42085cb">&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,076,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_3e1a1acb-6ed9-4857-89bd-c5346cf27bcb"
      decimals="0"
      id="F_5264e8b8-bbfe-42a6-8f8c-50539af7e1b3"
      unitRef="U_USD">4076000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
