<?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_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-20</startDate>
            <endDate>2025-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_bc12fd14-6939-4044-9c82-7a992989f01a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_4833bad7-71e3-4dab-8419-e3650fcf9c32">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_ffd1bc3a-548c-4edb-80b8-e23824a78337">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_b706cf22-6573-4a8c-869b-7ac698205aa7">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_887f435b-46a3-4064-83ea-c3a770acc89d">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_f812c676-ed78-43a2-ad60-0ec8c639f5ea">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_4e0ba919-6c0d-4ac1-a530-b53920d98dc6">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_b14743a0-425c-41bb-976e-77b67dede69e">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_c681a8d9-6a51-47f6-a72b-3f0c95f2cf04">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      id="F_b78a6a74-af22-46db-8501-89e129d3c6c2">&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;14,101,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_3f0de2a1-7cd9-4c30-8540-8fdcc16c50a8"
      decimals="0"
      id="F_087e80c3-6171-408d-b91b-34af07bf9866"
      unitRef="U_USD">14101000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
