<?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_0d470a5a-0e50-455e-87d8-adeab63b36ab">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-30</startDate>
            <endDate>2025-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_0317ce09-ffc0-40ed-a979-26f89dd43292">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_001d8d82-3dd8-4a11-bcc7-ccde02de3acb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_f5b6150e-a618-441a-ac6f-5fb4c0c47339">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_3a2bf0d5-2b79-4edb-8856-52fe0e59fe09">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_65231dc2-cf6b-4ecd-ba23-ff982897de93">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_59e700f5-9850-48e5-ada7-3037da83a813">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_8e5c28ec-b8a9-4a29-ab25-0b14c086ab2d">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_7be93ba0-c1e8-434d-ac56-0b972afb5f70">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_6d0b5c10-6afa-44dd-9cd6-e923d6bcc86c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      id="F_a8da0a85-063f-41de-8895-b3c7792e0d1d">&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,000,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_0d470a5a-0e50-455e-87d8-adeab63b36ab"
      decimals="0"
      id="F_63056ef8-8ed7-4ad8-a974-48cf0402f14f"
      unitRef="U_USD">4000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
