<?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_c895c5ad-acba-412b-bf87-a30c42dc6668">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-23</startDate>
            <endDate>2025-12-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_f04dc8c3-3528-4cd5-942a-e84897a51a27">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_2f2643c3-b3cf-4d64-9336-865e6176feb1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_a1f292b3-28b1-4c9e-b5d9-76cd02c0bd4d">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_4e50b5b4-9811-4226-aadb-024f757d57ca">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_53949f5b-fefd-4848-8e3a-8398a1b17a9b">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_b5e6ab86-e13a-46ee-aaae-a4b0c854a87b">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_5bfa2d07-d5be-4526-9d0c-b5144826137a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_901eb48c-5dfd-4e57-a6eb-5eca7b88bbe8">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_b8875c35-9495-4287-8f91-2f7d2e24eb3b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c895c5ad-acba-412b-bf87-a30c42dc6668"
      id="F_1426e95c-56b8-4233-bfae-97a78e9a8e8a">&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;370,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_c895c5ad-acba-412b-bf87-a30c42dc6668"
      decimals="0"
      id="F_88b5f5a7-0d64-47d9-88dd-a5d326e73620"
      unitRef="U_USD">370000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
