<?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_d7015554-77b7-448a-bb5b-b7fc34649f5e">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-28</startDate>
            <endDate>2025-11-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_150c6cda-672e-43bc-941e-21f8b3d6b0d1">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_10cc642a-8d0d-411c-9114-699ec3b434e6">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_cfcc6900-294e-477e-965b-28110a31a5ed">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_0654d7c5-1659-4e06-8b5d-9373b4c3a0d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_9eb30ef8-9cb5-4d81-911b-bc530e140ae9">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_32c0ef53-899e-46f2-a88a-dd3c7d0fc948">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_02cca56b-9191-4eb3-8a4a-074b3cce0f0d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_256ceecf-5d8f-4875-ae93-a64dc1a9cdb6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_caf894d5-6f6c-453b-96b8-672b783751bd">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      id="F_66eeb279-6cdb-4be5-8a5c-cba2f0e354b7">&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;1,410,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_d7015554-77b7-448a-bb5b-b7fc34649f5e"
      decimals="0"
      id="F_e2a170bd-7893-4744-ab39-1ef114e3c922"
      unitRef="U_USD">1410000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
