<?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_72b5da95-eca2-478c-9ab9-911ceaac39c2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-21</startDate>
            <endDate>2025-10-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_b31ca4e4-84c7-499f-b45c-f3831846b870">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_9c5aa698-91d1-43c7-b1e4-50a77951d8e9">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_470c4d16-d847-4503-985b-b7199d28aed3">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_298b8008-4155-449a-845f-7f09ded6e0ff">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_87276cc7-b3dc-4464-9884-8db83c701307">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_d6df9636-0f86-4657-b638-4d2f95a98954">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_0b51ede4-7c83-4ec2-860d-73fb4e9da207">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_28a7b0c4-cf3e-48b7-b7d3-fa08762de15d">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_c1ee464e-1063-41e7-b31d-14b8eb254758">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      id="F_6eae9e3e-24e2-44bf-a671-2841b176362c">&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;20,556,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_72b5da95-eca2-478c-9ab9-911ceaac39c2"
      decimals="0"
      id="F_c8eb5b48-aee1-4da9-b7ef-1f6bf6256d83"
      unitRef="U_USD">20556000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
