<?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_3309a8ff-e314-414d-8222-6ab021557666">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-08-12</startDate>
            <endDate>2025-08-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_2059b13a-8a9c-4ffb-9a78-204adf2d41d2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_4c39f9c8-c928-4d62-a3c9-9794215dd5a5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_18791fcb-0d1e-4802-9f09-d59871e2561c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_9e727b27-9d63-4a0d-a509-42884338735a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_45d84908-57d2-42ba-a418-221a3b07aebc">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_aa9a3ef9-03e2-43be-9f0b-a7b41f465c13">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_3309a8ff-e314-414d-8222-6ab021557666"
      id="F_a8e672fd-d5fe-450c-beaa-8e6776098d8c">&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;2,194,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_3309a8ff-e314-414d-8222-6ab021557666"
      decimals="0"
      id="F_5215d73b-aac2-4e43-a6b2-42d3530549eb"
      unitRef="U_USD">2194000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
