<?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_6573ad36-c314-4653-b73a-3efda4eb0e6d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-03</startDate>
            <endDate>2025-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_69e9576c-2751-472b-9836-5a0d5652973b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_c1d1ff29-56d2-4d6a-a31a-b557a7c0ca61">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_3d2d988d-3d5e-4695-a653-4f3c362f436a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_e2f3ecc8-c60f-4865-8013-69a4c3bef8b7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_07ec5c7e-c601-49d3-8a71-3f2f89b81715">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_a4f8756e-1b24-47e7-9a97-575b53bfc2bf">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_c0d52cf0-9d89-42fb-822f-abea5194cbd1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_0e89d612-4f7b-46fc-923b-ad1100d10d64">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_3f0ff4fd-5cc4-4a45-b590-d3a611203c72">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      id="F_aa41cf94-4fee-4616-8afe-dfde0cbbd0b2">&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,587,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_6573ad36-c314-4653-b73a-3efda4eb0e6d"
      decimals="0"
      id="F_39e371b9-e01c-4430-b694-12dcee4b0013"
      unitRef="U_USD">4587000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
