<?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_2192bd7f-1c63-41d7-bb26-6fbc58a7d539">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-21</startDate>
            <endDate>2025-11-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_062a1e92-f4df-43fe-a075-a5fcd8822d9e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_a5a1e0f5-a7da-4525-9e2c-a555f1d34477">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_42c69e63-9408-49cf-b523-199796ee0cd3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_8193570b-4301-4488-a015-59d186660530">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_5ee88102-6ec1-4d00-a054-57a8224c6fc9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_c962c281-1a01-4d8a-8112-ecfc7a0a15c7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_0a5be345-9417-456c-95dc-686373643065">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_8a594f3b-6409-46e6-ac8a-8150a5068f49">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_dc34f441-5d28-4f07-a76a-7d5309a1eac6">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      id="F_16de3bd1-8001-42eb-adad-3ac98c729a37">&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;996,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_2192bd7f-1c63-41d7-bb26-6fbc58a7d539"
      decimals="0"
      id="F_f2ae810b-22bc-4e99-a0c0-46b1973fb05b"
      unitRef="U_USD">996000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
