<?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_eb38be6b-7e2f-4a72-a693-1b3fb633c107">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-10</startDate>
            <endDate>2025-10-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_31bdc6fd-962e-48ba-8c91-51c9377db21e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_5eea46a7-a1ce-49e2-9df5-4642abdc5505">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_14352f24-f561-42df-b790-a013fca0eb8f">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_55acb92c-af00-42cb-95c3-b80b5a902ed1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_76a6ca84-ce7d-4fb4-b7c5-b8fb9ad01c61">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_8e0b5f74-9ed3-4ad6-afb7-8a3989d903b5">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_d6d7e005-f868-4c92-a588-77db0bde1dc7">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_4095b782-745b-4be8-af1b-535bf606d825">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_3bfc0c00-9576-4147-94c1-e413c798fac5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      id="F_301b96e2-2d81-493a-829e-79f0703cd9d2">&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;4,356,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_eb38be6b-7e2f-4a72-a693-1b3fb633c107"
      decimals="0"
      id="F_3a3dddfe-09b6-498a-8274-8ab75430bf6c"
      unitRef="U_USD">4356000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
