<?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_f8e24673-d953-4c37-8418-5ff9726868e9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-16</startDate>
            <endDate>2025-12-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_d9900b2b-617d-46fb-8db1-912d7e8aedd9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_d159c5b4-c47f-4a97-85aa-8a73646c9a03">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_0cff563b-59ba-40d4-8b7e-81b615c3a52a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_a4a9de71-74a2-46c3-b7ab-5c34b18a3d51">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_745c38b6-cc9f-4736-ad21-b60ba783ee5d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_b5263adf-e508-4821-9884-998e167011bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_eb9e91d5-7ce0-4e14-8671-fd12a8017e53">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_6f3fbd94-fd5a-4b22-9276-cc4cef30a213">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_f20196b1-bab3-4da2-873b-8d114ca7f428">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_f8e24673-d953-4c37-8418-5ff9726868e9"
      id="F_9b79c3eb-5024-4728-b67e-1806d50ae7c6">&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;19,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_f8e24673-d953-4c37-8418-5ff9726868e9"
      decimals="0"
      id="F_ba173d24-a322-4c30-bfc8-a7d553b8ebb9"
      unitRef="U_USD">19000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
