<?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_de327b60-aaf0-4612-a2b8-031253e8be8f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-18</startDate>
            <endDate>2025-08-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_b94d8dd7-2ca1-4663-92e3-7f2fdedc7188">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_9613ab19-2cf8-4938-a2b0-63d8d96b2059">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_a97204e7-8849-48c2-b80f-acddd57d14fa">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_86b6006a-68ce-465d-a519-2d1310ace19a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_e1248692-a15d-4501-8513-c6808e1eca62">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_901380dd-f8ea-4582-9cfb-7d8256c2d853">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_de327b60-aaf0-4612-a2b8-031253e8be8f"
      id="F_bc173d2a-3e3a-4872-9d5c-1b9489801fac">&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;67,950,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_de327b60-aaf0-4612-a2b8-031253e8be8f"
      decimals="0"
      id="F_6234650d-8f93-481a-bec0-211856c5e9d8"
      unitRef="U_USD">67950000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
