<?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_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-31</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_3e77507f-b1bf-45ad-8f9d-567a9f7029c9">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_b3e74a74-514d-4fc4-82d1-6ec4088d183a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_6cd5d0df-9588-4cbf-b082-abfd51d8cf80">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_397eb63a-ac7a-4185-b182-01ac8a897de4">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_956a6b3d-4548-4352-a448-d44f3cbde31b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_123949dd-483a-45f4-affd-37e45355128f">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_92d3d7e9-4d03-4075-9756-a8571401a1c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_63be6ff2-64dd-463b-b270-069e5fd5c929">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_d015509e-1e6d-4f4b-8d5c-71bdd3edc351">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      id="F_6af7a478-665d-43cd-b1ba-1b174185f8aa">&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;50,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_b8e10f07-b8e6-422a-91eb-1b9cfbb7d01d"
      decimals="0"
      id="F_20fbe927-3b23-4448-aa88-098d9655ebd7"
      unitRef="U_USD">50000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
