<?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_6230d400-82b4-4704-85db-4de13777468e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-07</startDate>
            <endDate>2025-10-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_34e939df-9c29-4cec-965a-c08b9bb6213c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_944a00f1-8ddc-484f-abd9-86f08fd01c56">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_c0071ad0-a6a2-47c3-87c9-34d016642119">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_f54000bf-84a4-4c60-bb8d-552031e899fe">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_839d405e-5a89-48c5-9c78-9e55c814a730">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_30dba204-7b72-4d4b-8eba-fe0a54f19781">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_c1224438-e5b7-4214-b6a5-c894f2fe48ae">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_cc1381b8-cd7f-43f8-a2c5-77eabe9b9545">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_8a6cb761-eaa9-4824-9e18-e58a4c352311">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6230d400-82b4-4704-85db-4de13777468e"
      id="F_71e9f383-57e7-44c0-8403-cd6110ca8fe2">&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;527,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_6230d400-82b4-4704-85db-4de13777468e"
      decimals="0"
      id="F_7eb289af-6113-4730-9090-0eb0964f601f"
      unitRef="U_USD">527000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
