<?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_6f34f380-2f8a-4621-8657-8e5d11141ea9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-15</startDate>
            <endDate>2025-10-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_ef109754-7be3-4fe3-bab0-eee9ee92ba6a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_d9484b37-e06f-4f55-af2f-4b9ae45a20bb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_38379ea0-6f64-4b67-8b02-92b023d0b21e">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_af994542-cf90-48e1-8490-ef3b21f51ecc">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_6b290227-168b-4db3-9250-09f1776464c7">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_4de8c79c-7dfa-41c5-ae85-037451f0df82">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_abe5bd37-c694-4992-a4bc-3b08a6bc34a3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_d62517f3-7071-4f16-9dcd-ff6af2a1f804">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_551ffb4f-0547-41f2-921f-197264717a00">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      id="F_3b0bab1c-904f-4da0-b904-cb6bb0a1c2c8">&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,022,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_6f34f380-2f8a-4621-8657-8e5d11141ea9"
      decimals="0"
      id="F_b25b4384-8fdb-4ce1-9ba3-0c15d84544ab"
      unitRef="U_USD">5022000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
