<?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_557689d9-e200-477e-96e0-5e2d3a3e5be4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-17</startDate>
            <endDate>2025-10-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_c7ea62b8-bbce-413d-8e99-fd4486261ad2">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_f6814332-e805-4b9e-a9ee-59b3dd4ca9d7">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_6b2c292d-a1c2-43be-9beb-130e97e7562d">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_d069f3c1-0d49-49a0-818d-8b99bdc3c370">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_7f5247a9-e58e-4c90-b71d-75ba4e16c9de">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_9238a469-43e6-4bdd-b280-3fe79a27699e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_8044aa59-1826-497d-af3f-743458905459">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_7173102f-ba4f-459a-aa03-eb8600b04ca8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_5b57b713-6998-42ad-84b8-ba8d77280a00">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      id="F_5393318b-893f-437d-bddc-cffd5b579590">&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;1,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_557689d9-e200-477e-96e0-5e2d3a3e5be4"
      decimals="0"
      id="F_84757aef-5f5f-426c-b008-2801f56b8781"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
