<?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_49b17da6-104c-42d4-b898-44afce534c6f">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_efd8c220-2281-4b92-85ec-15a2141504ed">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_25f4e53d-1d43-47b3-ba06-a7bc1b545474">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_62dfbabd-a268-4de1-8553-e0e8a7e1f1b8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_82586dbe-bb51-4a7a-9cbc-052752f53208">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_7a250a08-5e32-405d-ba1a-72a5829b41be">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_0f4cb6eb-5e49-49cb-952e-a8bc0c6d66ce">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_94def2bf-2b41-420b-9ffd-9ab30f91f995">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_b77613ac-f65b-422c-8e7c-6e46393d3595">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_f5d9f3ff-fcaf-4114-94f2-bc440bba64cd">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_49b17da6-104c-42d4-b898-44afce534c6f"
      id="F_a14bc299-afdb-4475-bc46-f9ac0aaf0d1a">&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;622,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_49b17da6-104c-42d4-b898-44afce534c6f"
      decimals="0"
      id="F_a681e0e0-7018-4b25-a5d8-b654d9dd03b6"
      unitRef="U_USD">622000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
